1992 lines
2.2 MiB
1992 lines
2.2 MiB
function __vite__mapDeps(indexes) {
|
||
if (!__vite__mapDeps.viteFileDeps) {
|
||
__vite__mapDeps.viteFileDeps = ["assets/dart-Mfk-3_r9.js","assets/clike-g6FUCYDC.js","assets/django-DXRi3JWy.js","assets/htmlmixed-BHqlKin0.js","assets/css-Bjqzbvs-.js","assets/overlay-Dt-dDdNq.js","assets/gfm-BzJZFp8y.js","assets/markdown-DpuKDTWJ.js","assets/haml-CeZp8xKs.js","assets/ruby-Y6xsTlHi.js","assets/handlebars-DadgnbgZ.js","assets/multiplex-CBSPbPeX.js","assets/haskell-literate-B8nBdFC8.js","assets/haskell-B7obNjb8.js","assets/htmlembedded-Ce2lDNbz.js","assets/htmlmixed-B5DGVdct.js","assets/markdown-KwFqhsKB.js","assets/php-CwiwEkpL.js","assets/pug-C2dz9sel.js","assets/rst-C_1qKyYm.js","assets/python-Ovj85m8b.js","assets/stex-ReWSeNiJ.js","assets/ruby-DXtzuAfY.js","assets/sass-CmuqXt1l.js","assets/slim-CP1FR5LY.js","assets/soy-Tqot7BLV.js","assets/stex-5uTglgZw.js","assets/tornado-Dz0ASCi-.js","assets/twig-DqrNGJhn.js","assets/vue-DwPiClwx.js","assets/coffeescript-CLSggxac.js","assets/stylus-33ewLRuQ.js","assets/yaml-frontmatter-8avfnQon.js","assets/yaml-Bsr5uiwn.js"]
|
||
}
|
||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
||
}
|
||
var rK=Object.defineProperty,nK=Object.defineProperties;var sK=Object.getOwnPropertyDescriptors;var X1=Object.getOwnPropertySymbols;var Q8=Object.prototype.hasOwnProperty,J8=Object.prototype.propertyIsEnumerable;var u0=Math.pow,lC=(e,t,r)=>t in e?rK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))Q8.call(t,r)&&lC(e,r,t[r]);if(X1)for(var r of X1(t))J8.call(t,r)&&lC(e,r,t[r]);return e},re=(e,t)=>nK(e,sK(t));var Ce=(e,t)=>{var r={};for(var n in e)Q8.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&X1)for(var n of X1(e))t.indexOf(n)<0&&J8.call(e,n)&&(r[n]=e[n]);return r};var St=(e,t,r)=>(lC(e,typeof t!="symbol"?t+"":t,r),r),cC=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var Ne=(e,t,r)=>(cC(e,t,"read from private field"),r?r.call(e):t.get(e)),Vt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},At=(e,t,r,n)=>(cC(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Q1=(e,t,r,n)=>({set _(a){At(e,t,a,r)},get _(){return Ne(e,t,n)}}),xr=(e,t,r)=>(cC(e,t,"access private method"),r);var pe=(e,t,r)=>new Promise((n,a)=>{var o=d=>{try{c(r.next(d))}catch(f){a(f)}},i=d=>{try{c(r.throw(d))}catch(f){a(f)}},c=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,i);c((r=r.apply(e,t)).next())});function E2(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();const aK="modulepreload",oK=function(e){return"/"+e},r7={},me=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));a=Promise.all(r.map(d=>{if(d=oK(d),d in r7)return;r7[d]=!0;const f=d.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!n)for(let S=o.length-1;S>=0;S--){const b=o[S];if(b.href===d&&(!f||b.rel==="stylesheet"))return}else if(document.querySelector('link[href="'.concat(d,'"]').concat(h)))return;const g=document.createElement("link");if(g.rel=f?"stylesheet":aK,f||(g.as="script",g.crossOrigin=""),g.href=d,c&&g.setAttribute("nonce",c),document.head.appendChild(g),f)return new Promise((S,b)=>{g.addEventListener("load",S),g.addEventListener("error",()=>b(new Error("Unable to preload CSS for ".concat(d))))})}))}return a.then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})};var Tr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iK(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var GA={exports:{}},N2={},YA={exports:{}},Ir={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Bv=Symbol.for("react.element"),lK=Symbol.for("react.portal"),cK=Symbol.for("react.fragment"),uK=Symbol.for("react.strict_mode"),dK=Symbol.for("react.profiler"),fK=Symbol.for("react.provider"),hK=Symbol.for("react.context"),pK=Symbol.for("react.forward_ref"),mK=Symbol.for("react.suspense"),gK=Symbol.for("react.memo"),vK=Symbol.for("react.lazy"),n7=Symbol.iterator;function xK(e){return e===null||typeof e!="object"?null:(e=n7&&e[n7]||e["@@iterator"],typeof e=="function"?e:null)}var ZA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XA=Object.assign,QA={};function cm(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||ZA}cm.prototype.isReactComponent={};cm.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")};cm.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JA(){}JA.prototype=cm.prototype;function fj(e,t,r){this.props=e,this.context=t,this.refs=QA,this.updater=r||ZA}var hj=fj.prototype=new JA;hj.constructor=fj;XA(hj,cm.prototype);hj.isPureReactComponent=!0;var s7=Array.isArray,eR=Object.prototype.hasOwnProperty,pj={current:null},tR={key:!0,ref:!0,__self:!0,__source:!0};function rR(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)eR.call(t,n)&&!tR.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var d=Array(c),f=0;f<c;f++)d[f]=arguments[f+2];a.children=d}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)a[n]===void 0&&(a[n]=c[n]);return{$$typeof:Bv,type:e,key:o,ref:i,props:a,_owner:pj.current}}function yK(e,t){return{$$typeof:Bv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function mj(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bv}function bK(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var a7=/\/+/g;function uC(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bK(""+e.key):t.toString(36)}function iy(e,t,r,n,a){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 Bv:case lK:i=!0}}if(i)return i=e,a=a(i),e=n===""?"."+uC(i,0):n,s7(a)?(r="",e!=null&&(r=e.replace(a7,"$&/")+"/"),iy(a,t,r,"",function(f){return f})):a!=null&&(mj(a)&&(a=yK(a,r+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(a7,"$&/")+"/")+e)),t.push(a)),1;if(i=0,n=n===""?".":n+":",s7(e))for(var c=0;c<e.length;c++){o=e[c];var d=n+uC(o,c);i+=iy(o,t,r,d,a)}else if(d=xK(e),typeof d=="function")for(e=d.call(e),c=0;!(o=e.next()).done;)o=o.value,d=n+uC(o,c++),i+=iy(o,t,r,d,a);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 J1(e,t,r){if(e==null)return e;var n=[],a=0;return iy(e,n,"","",function(o){return t.call(r,o,a++)}),n}function wK(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _a={current:null},ly={transition:null},kK={ReactCurrentDispatcher:_a,ReactCurrentBatchConfig:ly,ReactCurrentOwner:pj};Ir.Children={map:J1,forEach:function(e,t,r){J1(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return J1(e,function(){t++}),t},toArray:function(e){return J1(e,function(t){return t})||[]},only:function(e){if(!mj(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ir.Component=cm;Ir.Fragment=cK;Ir.Profiler=dK;Ir.PureComponent=fj;Ir.StrictMode=uK;Ir.Suspense=mK;Ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kK;Ir.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=XA({},e.props),a=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=pj.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in t)eR.call(t,d)&&!tR.hasOwnProperty(d)&&(n[d]=t[d]===void 0&&c!==void 0?c[d]:t[d])}var d=arguments.length-2;if(d===1)n.children=r;else if(1<d){c=Array(d);for(var f=0;f<d;f++)c[f]=arguments[f+2];n.children=c}return{$$typeof:Bv,type:e.type,key:a,ref:o,props:n,_owner:i}};Ir.createContext=function(e){return e={$$typeof:hK,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fK,_context:e},e.Consumer=e};Ir.createElement=rR;Ir.createFactory=function(e){var t=rR.bind(null,e);return t.type=e,t};Ir.createRef=function(){return{current:null}};Ir.forwardRef=function(e){return{$$typeof:pK,render:e}};Ir.isValidElement=mj;Ir.lazy=function(e){return{$$typeof:vK,_payload:{_status:-1,_result:e},_init:wK}};Ir.memo=function(e,t){return{$$typeof:gK,type:e,compare:t===void 0?null:t}};Ir.startTransition=function(e){var t=ly.transition;ly.transition={};try{e()}finally{ly.transition=t}};Ir.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Ir.useCallback=function(e,t){return _a.current.useCallback(e,t)};Ir.useContext=function(e){return _a.current.useContext(e)};Ir.useDebugValue=function(){};Ir.useDeferredValue=function(e){return _a.current.useDeferredValue(e)};Ir.useEffect=function(e,t){return _a.current.useEffect(e,t)};Ir.useId=function(){return _a.current.useId()};Ir.useImperativeHandle=function(e,t,r){return _a.current.useImperativeHandle(e,t,r)};Ir.useInsertionEffect=function(e,t){return _a.current.useInsertionEffect(e,t)};Ir.useLayoutEffect=function(e,t){return _a.current.useLayoutEffect(e,t)};Ir.useMemo=function(e,t){return _a.current.useMemo(e,t)};Ir.useReducer=function(e,t,r){return _a.current.useReducer(e,t,r)};Ir.useRef=function(e){return _a.current.useRef(e)};Ir.useState=function(e){return _a.current.useState(e)};Ir.useSyncExternalStore=function(e,t,r){return _a.current.useSyncExternalStore(e,t,r)};Ir.useTransition=function(){return _a.current.useTransition()};Ir.version="18.2.0";YA.exports=Ir;var m=YA.exports;const vt=Fi(m),_2=E2({__proto__:null,default:vt},[m]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var CK=m,SK=Symbol.for("react.element"),jK=Symbol.for("react.fragment"),EK=Object.prototype.hasOwnProperty,NK=CK.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_K={key:!0,ref:!0,__self:!0,__source:!0};function nR(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)EK.call(t,n)&&!_K.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:SK,type:e,key:o,ref:i,props:a,_owner:NK.current}}N2.Fragment=jK;N2.jsx=nR;N2.jsxs=nR;GA.exports=N2;var s=GA.exports;const TK=Fi(s);var um=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(){}},Lp=typeof window=="undefined"||"Deno"in window;function $o(){}function MK(e,t){return typeof e=="function"?e(t):e}function mS(e){return typeof e=="number"&&e>=0&&e!==1/0}function sR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function o7(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:i,stale:c}=e;if(i){if(n){if(t.queryHash!==gj(i,t.options))return!1}else if(!Lg(t.queryKey,i))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function i7(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ef(t.options.mutationKey)!==ef(o))return!1}else if(!Lg(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function gj(e,t){return((t==null?void 0:t.queryKeyHashFn)||ef)(e)}function ef(e){return JSON.stringify(e,(t,r)=>gS(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Lg(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Lg(e[r],t[r])):!1}function aR(e,t){if(e===t)return e;const r=l7(e)&&l7(t);if(r||gS(e)&&gS(t)){const n=r?e:Object.keys(e),a=n.length,o=r?t:Object.keys(t),i=o.length,c=r?[]:{};let d=0;for(let f=0;f<i;f++){const h=r?f:o[f];!r&&e[h]===void 0&&t[h]===void 0&&n.includes(h)?(c[h]=void 0,d++):(c[h]=aR(e[h],t[h]),c[h]===e[h]&&e[h]!==void 0&&d++)}return a===i&&d===a?e:c}return t}function Ly(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function l7(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gS(e){if(!c7(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!c7(r)||!r.hasOwnProperty("isPrototypeOf"))}function c7(e){return Object.prototype.toString.call(e)==="[object Object]"}function PK(e){return new Promise(t=>{setTimeout(t,e)})}function vS(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?aR(e,t):t}function DK(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function AK(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var vj=Symbol(),Ld,lu,yp,$A,RK=($A=class extends um{constructor(){super();Vt(this,Ld,void 0);Vt(this,lu,void 0);Vt(this,yp,void 0);At(this,yp,t=>{if(!Lp&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){Ne(this,lu)||this.setEventListener(Ne(this,yp))}onUnsubscribe(){var t;this.hasListeners()||((t=Ne(this,lu))==null||t.call(this),At(this,lu,void 0))}setEventListener(t){var r;At(this,yp,t),(r=Ne(this,lu))==null||r.call(this),At(this,lu,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){Ne(this,Ld)!==t&&(At(this,Ld,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof Ne(this,Ld)=="boolean"?Ne(this,Ld):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ld=new WeakMap,lu=new WeakMap,yp=new WeakMap,$A),Oy=new RK,bp,cu,wp,zA,LK=(zA=class extends um{constructor(){super();Vt(this,bp,!0);Vt(this,cu,void 0);Vt(this,wp,void 0);At(this,wp,t=>{if(!Lp&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){Ne(this,cu)||this.setEventListener(Ne(this,wp))}onUnsubscribe(){var t;this.hasListeners()||((t=Ne(this,cu))==null||t.call(this),At(this,cu,void 0))}setEventListener(t){var r;At(this,wp,t),(r=Ne(this,cu))==null||r.call(this),At(this,cu,t(this.setOnline.bind(this)))}setOnline(t){Ne(this,bp)!==t&&(At(this,bp,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return Ne(this,bp)}},bp=new WeakMap,cu=new WeakMap,wp=new WeakMap,zA),Iy=new LK;function OK(e){return Math.min(1e3*u0(2,e),3e4)}function T2(e){return(e!=null?e:"online")==="online"?Iy.isOnline():!0}var oR=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dC(e){return e instanceof oR}function iR(e){let t=!1,r=0,n=!1,a,o,i;const c=new Promise((w,C)=>{o=w,i=C}),d=w=>{var C;n||(S(new oR(w)),(C=e.abort)==null||C.call(e))},f=()=>{t=!0},h=()=>{t=!1},p=()=>!Oy.isFocused()||e.networkMode!=="always"&&!Iy.isOnline(),g=w=>{var C;n||(n=!0,(C=e.onSuccess)==null||C.call(e,w),a==null||a(),o(w))},S=w=>{var C;n||(n=!0,(C=e.onError)==null||C.call(e,w),a==null||a(),i(w))},b=()=>new Promise(w=>{var C;a=j=>{const E=n||!p();return E&&w(j),E},(C=e.onPause)==null||C.call(e)}).then(()=>{var w;a=void 0,n||(w=e.onContinue)==null||w.call(e)}),v=()=>{if(n)return;let w;try{w=e.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(g).catch(C=>{var P,D,A;if(n)return;const j=(P=e.retry)!=null?P:Lp?0:3,E=(D=e.retryDelay)!=null?D:OK,N=typeof E=="function"?E(r,C):E,M=j===!0||typeof j=="number"&&r<j||typeof j=="function"&&j(r,C);if(t||!M){S(C);return}r++,(A=e.onFail)==null||A.call(e,r,C),PK(N).then(()=>{if(p())return b()}).then(()=>{t?S(C):v()})})};return T2(e.networkMode)?v():b().then(v),{promise:c,cancel:d,continue:()=>(a==null?void 0:a())?c:Promise.resolve(),cancelRetry:f,continueRetry:h}}function IK(){let e=[],t=0,r=g=>{g()},n=g=>{g()},a=g=>setTimeout(g,0);const o=g=>{a=g},i=g=>{let S;t++;try{S=g()}finally{t--,t||f()}return S},c=g=>{t?e.push(g):a(()=>{r(g)})},d=g=>(...S)=>{c(()=>{g(...S)})},f=()=>{const g=e;e=[],g.length&&a(()=>{n(()=>{g.forEach(S=>{r(S)})})})};return{batch:i,batchCalls:d,schedule:c,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{n=g},setScheduler:o}}var ps=IK(),Od,FA,lR=(FA=class{constructor(){Vt(this,Od,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mS(this.gcTime)&&At(this,Od,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e!=null?e:Lp?1/0:5*60*1e3)}clearGcTimeout(){Ne(this,Od)&&(clearTimeout(Ne(this,Od)),At(this,Od,void 0))}},Od=new WeakMap,FA),kp,Cp,Lo,uu,Oo,ks,Tv,Id,Sp,cy,xi,Rl,HA,$K=(HA=class extends lR{constructor(t){super();Vt(this,Sp);Vt(this,xi);Vt(this,kp,void 0);Vt(this,Cp,void 0);Vt(this,Lo,void 0);Vt(this,uu,void 0);Vt(this,Oo,void 0);Vt(this,ks,void 0);Vt(this,Tv,void 0);Vt(this,Id,void 0);At(this,Id,!1),At(this,Tv,t.defaultOptions),xr(this,Sp,cy).call(this,t.options),At(this,ks,[]),At(this,Lo,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,At(this,kp,t.state||zK(this.options)),this.state=Ne(this,kp),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Ne(this,ks).length&&this.state.fetchStatus==="idle"&&Ne(this,Lo).remove(this)}setData(t,r){const n=vS(this.state.data,t,this.options);return xr(this,xi,Rl).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){xr(this,xi,Rl).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n;const r=Ne(this,uu);return(n=Ne(this,Oo))==null||n.cancel(t),r?r.then($o).catch($o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ne(this,kp))}isActive(){return Ne(this,ks).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||this.state.data===void 0||Ne(this,ks).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!sR(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=Ne(this,ks).find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=Ne(this,Oo))==null||r.continue()}onOnline(){var r;const t=Ne(this,ks).find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=Ne(this,Oo))==null||r.continue()}addObserver(t){Ne(this,ks).includes(t)||(Ne(this,ks).push(t),this.clearGcTimeout(),Ne(this,Lo).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){Ne(this,ks).includes(t)&&(At(this,ks,Ne(this,ks).filter(r=>r!==t)),Ne(this,ks).length||(Ne(this,Oo)&&(Ne(this,Id)?Ne(this,Oo).cancel({revert:!0}):Ne(this,Oo).cancelRetry()),this.scheduleGc()),Ne(this,Lo).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return Ne(this,ks).length}invalidate(){this.state.isInvalidated||xr(this,xi,Rl).call(this,{type:"invalidate"})}fetch(t,r){var f,h,p,g;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(Ne(this,uu))return(f=Ne(this,Oo))==null||f.continueRetry(),Ne(this,uu)}if(t&&xr(this,Sp,cy).call(this,t),!this.options.queryFn){const S=Ne(this,ks).find(b=>b.options.queryFn);S&&xr(this,Sp,cy).call(this,S.options)}const n=new AbortController,a={queryKey:this.queryKey,meta:this.meta},o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(At(this,Id,!0),n.signal)})};o(a);const i=()=>!this.options.queryFn||this.options.queryFn===vj?Promise.reject(new Error("Missing queryFn: '".concat(this.options.queryHash,"'"))):(At(this,Id,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)),c={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(c),(h=this.options.behavior)==null||h.onFetch(c,this),At(this,Cp,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=c.fetchOptions)==null?void 0:p.meta))&&xr(this,xi,Rl).call(this,{type:"fetch",meta:(g=c.fetchOptions)==null?void 0:g.meta});const d=S=>{var b,v,w,C;dC(S)&&S.silent||xr(this,xi,Rl).call(this,{type:"error",error:S}),dC(S)||((v=(b=Ne(this,Lo).config).onError)==null||v.call(b,S,this),(C=(w=Ne(this,Lo).config).onSettled)==null||C.call(w,this.state.data,S,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return At(this,Oo,iR({fn:c.fetchFn,abort:n.abort.bind(n),onSuccess:S=>{var b,v,w,C;if(S===void 0){d(new Error("".concat(this.queryHash," data is undefined")));return}this.setData(S),(v=(b=Ne(this,Lo).config).onSuccess)==null||v.call(b,S,this),(C=(w=Ne(this,Lo).config).onSettled)==null||C.call(w,S,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(S,b)=>{xr(this,xi,Rl).call(this,{type:"failed",failureCount:S,error:b})},onPause:()=>{xr(this,xi,Rl).call(this,{type:"pause"})},onContinue:()=>{xr(this,xi,Rl).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode})),At(this,uu,Ne(this,Oo).promise),Ne(this,uu)}},kp=new WeakMap,Cp=new WeakMap,Lo=new WeakMap,uu=new WeakMap,Oo=new WeakMap,ks=new WeakMap,Tv=new WeakMap,Id=new WeakMap,Sp=new WeakSet,cy=function(t){this.options=R(R({},Ne(this,Tv)),t),this.updateGcTime(this.options.gcTime)},xi=new WeakSet,Rl=function(t){const r=n=>{var a,o;switch(t.type){case"failed":return re(R({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return re(R({},n),{fetchStatus:"paused"});case"continue":return re(R({},n),{fetchStatus:"fetching"});case"fetch":return R(re(R({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:T2(this.options.networkMode)?"fetching":"paused"}),n.data===void 0&&{error:null,status:"pending"});case"success":return R(re(R({},n),{data:t.data,dataUpdateCount:n.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 dC(i)&&i.revert&&Ne(this,Cp)?re(R({},Ne(this,Cp)),{fetchStatus:"idle"}):re(R({},n),{error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"});case"invalidate":return re(R({},n),{isInvalidated:!0});case"setState":return R(R({},n),t.state)}};this.state=r(this.state),ps.batch(()=>{Ne(this,ks).forEach(n=>{n.onQueryUpdate()}),Ne(this,Lo).notify({query:this,type:"updated",action:t})})},HA);function zK(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ji,BA,FK=(BA=class extends um{constructor(t={}){super();Vt(this,Ji,void 0);this.config=t,At(this,Ji,new Map)}build(t,r,n){var c;const a=r.queryKey,o=(c=r.queryHash)!=null?c:gj(a,r);let i=this.get(o);return i||(i=new $K({cache:this,queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(i)),i}add(t){Ne(this,Ji).has(t.queryHash)||(Ne(this,Ji).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=Ne(this,Ji).get(t.queryHash);r&&(t.destroy(),r===t&&Ne(this,Ji).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ps.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ne(this,Ji).get(t)}getAll(){return[...Ne(this,Ji).values()]}find(t){const r=R({exact:!0},t);return this.getAll().find(n=>o7(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>o7(t,n)):r}notify(t){ps.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){ps.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ps.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ji=new WeakMap,BA),el,Mv,ho,jp,tl,Hc,UA,HK=(UA=class extends lR{constructor(t){super();Vt(this,tl);Vt(this,el,void 0);Vt(this,Mv,void 0);Vt(this,ho,void 0);Vt(this,jp,void 0);this.mutationId=t.mutationId,At(this,Mv,t.defaultOptions),At(this,ho,t.mutationCache),At(this,el,[]),this.state=t.state||cR(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=R(R({},Ne(this,Mv)),t),this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ne(this,el).includes(t)||(Ne(this,el).push(t),this.clearGcTimeout(),Ne(this,ho).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){At(this,el,Ne(this,el).filter(r=>r!==t)),this.scheduleGc(),Ne(this,ho).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ne(this,el).length||(this.state.status==="pending"?this.scheduleGc():Ne(this,ho).remove(this))}continue(){var t,r;return(r=(t=Ne(this,jp))==null?void 0:t.continue())!=null?r:this.execute(this.state.variables)}execute(t){return pe(this,null,function*(){var a,o,i,c,d,f,h,p,g,S,b,v,w,C,j,E,N,M,P,D;const r=()=>{var A;return At(this,jp,iR({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,$)=>{xr(this,tl,Hc).call(this,{type:"failed",failureCount:O,error:$})},onPause:()=>{xr(this,tl,Hc).call(this,{type:"pause"})},onContinue:()=>{xr(this,tl,Hc).call(this,{type:"continue"})},retry:(A=this.options.retry)!=null?A:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Ne(this,jp).promise},n=this.state.status==="pending";try{if(!n){xr(this,tl,Hc).call(this,{type:"pending",variables:t}),yield(o=(a=Ne(this,ho).config).onMutate)==null?void 0:o.call(a,t,this);const O=yield(c=(i=this.options).onMutate)==null?void 0:c.call(i,t);O!==this.state.context&&xr(this,tl,Hc).call(this,{type:"pending",context:O,variables:t})}const A=yield r();return yield(f=(d=Ne(this,ho).config).onSuccess)==null?void 0:f.call(d,A,t,this.state.context,this),yield(p=(h=this.options).onSuccess)==null?void 0:p.call(h,A,t,this.state.context),yield(S=(g=Ne(this,ho).config).onSettled)==null?void 0:S.call(g,A,null,this.state.variables,this.state.context,this),yield(v=(b=this.options).onSettled)==null?void 0:v.call(b,A,null,t,this.state.context),xr(this,tl,Hc).call(this,{type:"success",data:A}),A}catch(A){try{throw yield(C=(w=Ne(this,ho).config).onError)==null?void 0:C.call(w,A,t,this.state.context,this),yield(E=(j=this.options).onError)==null?void 0:E.call(j,A,t,this.state.context),yield(M=(N=Ne(this,ho).config).onSettled)==null?void 0:M.call(N,void 0,A,this.state.variables,this.state.context,this),yield(D=(P=this.options).onSettled)==null?void 0:D.call(P,void 0,A,t,this.state.context),A}finally{xr(this,tl,Hc).call(this,{type:"error",error:A})}}})}},el=new WeakMap,Mv=new WeakMap,ho=new WeakMap,jp=new WeakMap,tl=new WeakSet,Hc=function(t){const r=n=>{switch(t.type){case"failed":return re(R({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return re(R({},n),{isPaused:!0});case"continue":return re(R({},n),{isPaused:!1});case"pending":return re(R({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!T2(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()});case"success":return re(R({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return re(R({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"})}};this.state=r(this.state),ps.batch(()=>{Ne(this,el).forEach(n=>{n.onMutationUpdate(t)}),Ne(this,ho).notify({mutation:this,type:"updated",action:t})})},UA);function cR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Io,Pv,$d,WA,BK=(WA=class extends um{constructor(t={}){super();Vt(this,Io,void 0);Vt(this,Pv,void 0);Vt(this,$d,void 0);this.config=t,At(this,Io,[]),At(this,Pv,0)}build(t,r,n){const a=new HK({mutationCache:this,mutationId:++Q1(this,Pv)._,options:t.defaultMutationOptions(r),state:n});return this.add(a),a}add(t){Ne(this,Io).push(t),this.notify({type:"added",mutation:t})}remove(t){At(this,Io,Ne(this,Io).filter(r=>r!==t)),this.notify({type:"removed",mutation:t})}clear(){ps.batch(()=>{Ne(this,Io).forEach(t=>{this.remove(t)})})}getAll(){return Ne(this,Io)}find(t){const r=R({exact:!0},t);return Ne(this,Io).find(n=>i7(r,n))}findAll(t={}){return Ne(this,Io).filter(r=>i7(t,r))}notify(t){ps.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){var t;return At(this,$d,((t=Ne(this,$d))!=null?t:Promise.resolve()).then(()=>{const r=Ne(this,Io).filter(n=>n.state.isPaused);return ps.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch($o)),Promise.resolve()))}).then(()=>{At(this,$d,void 0)})),Ne(this,$d)}},Io=new WeakMap,Pv=new WeakMap,$d=new WeakMap,WA);function xS(e){return{onFetch:(t,r)=>{const n=()=>pe(this,null,function*(){var b,v,w,C,j,E;const a=t.options,o=(w=(v=(b=t.fetchOptions)==null?void 0:b.meta)==null?void 0:v.fetchMore)==null?void 0:w.direction,i=((C=t.state.data)==null?void 0:C.pages)||[],c=((j=t.state.data)==null?void 0:j.pageParams)||[],d={pages:[],pageParams:[]};let f=!1;const h=N=>{Object.defineProperty(N,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",()=>{f=!0}),t.signal)})},p=t.options.queryFn&&t.options.queryFn!==vj?t.options.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(t.options.queryHash,"'"))),g=(N,M,P)=>pe(this,null,function*(){if(f)return Promise.reject();if(M==null&&N.pages.length)return Promise.resolve(N);const D={queryKey:t.queryKey,pageParam:M,direction:P?"backward":"forward",meta:t.options.meta};h(D);const A=yield p(D),{maxPages:O}=t.options,$=P?AK:DK;return{pages:$(N.pages,A,O),pageParams:$(N.pageParams,M,O)}});let S;if(o&&i.length){const N=o==="backward",M=N?uR:yS,P={pages:i,pageParams:c},D=M(a,P);S=yield g(P,D,N)}else{S=yield g(d,(E=c[0])!=null?E:a.initialPageParam);const N=e!=null?e:i.length;for(let M=1;M<N;M++){const P=yS(a,S);S=yield g(S,P)}}return S});t.options.persister?t.fetchFn=()=>{var a,o;return(o=(a=t.options).persister)==null?void 0:o.call(a,n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=n}}}function yS(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function uR(e,{pages:t,pageParams:r}){var n;return(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r)}function UK(e,t){return t?yS(e,t)!=null:!1}function WK(e,t){return!t||!e.getPreviousPageParam?!1:uR(e,t)!=null}var cs,du,fu,Ep,Np,hu,_p,Tp,VA,VK=(VA=class{constructor(e={}){Vt(this,cs,void 0);Vt(this,du,void 0);Vt(this,fu,void 0);Vt(this,Ep,void 0);Vt(this,Np,void 0);Vt(this,hu,void 0);Vt(this,_p,void 0);Vt(this,Tp,void 0);At(this,cs,e.queryCache||new FK),At(this,du,e.mutationCache||new BK),At(this,fu,e.defaultOptions||{}),At(this,Ep,new Map),At(this,Np,new Map),At(this,hu,0)}mount(){Q1(this,hu)._++,Ne(this,hu)===1&&(At(this,_p,Oy.subscribe(()=>{Oy.isFocused()&&(this.resumePausedMutations(),Ne(this,cs).onFocus())})),At(this,Tp,Iy.subscribe(e=>{e&&(this.resumePausedMutations(),Ne(this,cs).onOnline())})))}unmount(){var e,t;Q1(this,hu)._--,Ne(this,hu)===0&&((e=Ne(this,_p))==null||e.call(this),At(this,_p,void 0),(t=Ne(this,Tp))==null||t.call(this),At(this,Tp,void 0))}isFetching(e){return Ne(this,cs).findAll(re(R({},e),{fetchStatus:"fetching"})).length}isMutating(e){return Ne(this,du).findAll(re(R({},e),{status:"pending"})).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Ne(this,cs).get(t.queryHash))==null?void 0:r.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:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=Ne(this,cs).get(n.queryHash),o=a==null?void 0:a.state.data,i=MK(t,o);if(i!==void 0)return Ne(this,cs).build(this,n).setData(i,re(R({},r),{manual:!0}))}setQueriesData(e,t,r){return ps.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=Ne(this,cs).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=Ne(this,cs);ps.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=Ne(this,cs),n=R({type:"active"},e);return ps.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r=R({revert:!0},t),n=ps.batch(()=>Ne(this,cs).findAll(e).map(a=>a.cancel(r)));return Promise.all(n).then($o).catch($o)}invalidateQueries(e={},t={}){return ps.batch(()=>{var n,a;if(Ne(this,cs).findAll(e).forEach(o=>{o.invalidate()}),e.refetchType==="none")return Promise.resolve();const r=re(R({},e),{type:(a=(n=e.refetchType)!=null?n:e.type)!=null?a:"active"});return this.refetchQueries(r,t)})}refetchQueries(e={},t){var a;const r=re(R({},t),{cancelRefetch:(a=t==null?void 0:t.cancelRefetch)!=null?a:!0}),n=ps.batch(()=>Ne(this,cs).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch($o)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then($o)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=Ne(this,cs).build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($o).catch($o)}fetchInfiniteQuery(e){return e.behavior=xS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($o).catch($o)}resumePausedMutations(){return Iy.isOnline()?Ne(this,du).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ne(this,cs)}getMutationCache(){return Ne(this,du)}getDefaultOptions(){return Ne(this,fu)}setDefaultOptions(e){At(this,fu,e)}setQueryDefaults(e,t){Ne(this,Ep).set(ef(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ne(this,Ep).values()];let r={};return t.forEach(n=>{Lg(e,n.queryKey)&&(r=R(R({},r),n.defaultOptions))}),r}setMutationDefaults(e,t){Ne(this,Np).set(ef(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ne(this,Np).values()];let r={};return t.forEach(n=>{Lg(e,n.mutationKey)&&(r=R(R({},r),n.defaultOptions))}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t=re(R(R(R({},Ne(this,fu).queries),this.getQueryDefaults(e.queryKey)),e),{_defaulted:!0});return t.queryHash||(t.queryHash=gj(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===vj&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:re(R(R(R({},Ne(this,fu).mutations),(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{_defaulted:!0})}clear(){Ne(this,cs).clear(),Ne(this,du).clear()}},cs=new WeakMap,du=new WeakMap,fu=new WeakMap,Ep=new WeakMap,Np=new WeakMap,hu=new WeakMap,_p=new WeakMap,Tp=new WeakMap,VA),Ha,yn,Dv,wa,zd,Mp,rl,Av,Pp,Dp,Fd,Hd,pu,Ap,Bd,q0,Rv,bS,Lv,wS,Ov,kS,Iv,CS,$v,SS,zv,jS,Fv,ES,j2,fR,qA,dR=(qA=class extends um{constructor(t,r){super();Vt(this,Bd);Vt(this,Rv);Vt(this,Lv);Vt(this,Ov);Vt(this,Iv);Vt(this,$v);Vt(this,zv);Vt(this,Fv);Vt(this,j2);Vt(this,Ha,void 0);Vt(this,yn,void 0);Vt(this,Dv,void 0);Vt(this,wa,void 0);Vt(this,zd,void 0);Vt(this,Mp,void 0);Vt(this,rl,void 0);Vt(this,Av,void 0);Vt(this,Pp,void 0);Vt(this,Dp,void 0);Vt(this,Fd,void 0);Vt(this,Hd,void 0);Vt(this,pu,void 0);Vt(this,Ap,new Set);this.options=r,At(this,Ha,t),At(this,rl,null),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Ne(this,yn).addObserver(this),u7(Ne(this,yn),this.options)?xr(this,Bd,q0).call(this):this.updateResult(),xr(this,Iv,CS).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return NS(Ne(this,yn),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return NS(Ne(this,yn),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,xr(this,$v,SS).call(this),xr(this,zv,jS).call(this),Ne(this,yn).removeObserver(this)}setOptions(t,r){const n=this.options,a=Ne(this,yn);if(this.options=Ne(this,Ha).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");xr(this,Fv,ES).call(this),Ly(this.options,n)||Ne(this,Ha).getQueryCache().notify({type:"observerOptionsUpdated",query:Ne(this,yn),observer:this});const o=this.hasListeners();o&&d7(Ne(this,yn),a,this.options,n)&&xr(this,Bd,q0).call(this),this.updateResult(r),o&&(Ne(this,yn)!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&xr(this,Rv,bS).call(this);const i=xr(this,Lv,wS).call(this);o&&(Ne(this,yn)!==a||this.options.enabled!==n.enabled||i!==Ne(this,pu))&&xr(this,Ov,kS).call(this,i)}getOptimisticResult(t){const r=Ne(this,Ha).getQueryCache().build(Ne(this,Ha),t),n=this.createResult(r,t);return KK(this,n)&&(At(this,wa,n),At(this,Mp,this.options),At(this,zd,Ne(this,yn).state)),n}getCurrentResult(){return Ne(this,wa)}trackResult(t,r){const n={};return Object.keys(t).forEach(a=>{Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),r==null||r(a),t[a])})}),n}trackProp(t){Ne(this,Ap).add(t)}getCurrentQuery(){return Ne(this,yn)}refetch(r={}){var t=Ce(r,[]);return this.fetch(R({},t))}fetchOptimistic(t){const r=Ne(this,Ha).defaultQueryOptions(t),n=Ne(this,Ha).getQueryCache().build(Ne(this,Ha),r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return xr(this,Bd,q0).call(this,re(R({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),Ne(this,wa)))}createResult(t,r){var D;const n=Ne(this,yn),a=this.options,o=Ne(this,wa),i=Ne(this,zd),c=Ne(this,Mp),f=t!==n?t.state:Ne(this,Dv),{state:h}=t;let{error:p,errorUpdatedAt:g,fetchStatus:S,status:b}=h,v=!1,w;if(r._optimisticResults){const A=this.hasListeners(),O=!A&&u7(t,r),$=A&&d7(t,n,r,a);(O||$)&&(S=T2(t.options.networkMode)?"fetching":"paused",h.data===void 0&&(b="pending")),r._optimisticResults==="isRestoring"&&(S="idle")}if(r.select&&h.data!==void 0)if(o&&h.data===(i==null?void 0:i.data)&&r.select===Ne(this,Av))w=Ne(this,Pp);else try{At(this,Av,r.select),w=r.select(h.data),w=vS(o==null?void 0:o.data,w,r),At(this,Pp,w),At(this,rl,null)}catch(A){At(this,rl,A)}else w=h.data;if(r.placeholderData!==void 0&&w===void 0&&b==="pending"){let A;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(c==null?void 0:c.placeholderData))A=o.data;else if(A=typeof r.placeholderData=="function"?r.placeholderData((D=Ne(this,Dp))==null?void 0:D.state.data,Ne(this,Dp)):r.placeholderData,r.select&&A!==void 0)try{A=r.select(A),At(this,rl,null)}catch(O){At(this,rl,O)}A!==void 0&&(b="success",w=vS(o==null?void 0:o.data,A,r),v=!0)}Ne(this,rl)&&(p=Ne(this,rl),w=Ne(this,Pp),g=Date.now(),b="error");const C=S==="fetching",j=b==="pending",E=b==="error",N=j&&C,M=h.data!==void 0;return{status:b,fetchStatus:S,isPending:j,isSuccess:b==="success",isError:E,isInitialLoading:N,isLoading:N,data:w,dataUpdatedAt:h.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>f.dataUpdateCount||h.errorUpdateCount>f.errorUpdateCount,isFetching:C,isRefetching:C&&!j,isLoadingError:E&&!M,isPaused:S==="paused",isPlaceholderData:v,isRefetchError:E&&M,isStale:xj(t,r),refetch:this.refetch}}updateResult(t){const r=Ne(this,wa),n=this.createResult(Ne(this,yn),this.options);if(At(this,zd,Ne(this,yn).state),At(this,Mp,this.options),Ne(this,zd).data!==void 0&&At(this,Dp,Ne(this,yn)),Ly(n,r))return;At(this,wa,n);const a={},o=()=>{if(!r)return!0;const{notifyOnChangeProps:i}=this.options,c=typeof i=="function"?i():i;if(c==="all"||!c&&!Ne(this,Ap).size)return!0;const d=new Set(c!=null?c:Ne(this,Ap));return this.options.throwOnError&&d.add("error"),Object.keys(Ne(this,wa)).some(f=>{const h=f;return Ne(this,wa)[h]!==r[h]&&d.has(h)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),xr(this,j2,fR).call(this,R(R({},a),t))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&xr(this,Iv,CS).call(this)}},Ha=new WeakMap,yn=new WeakMap,Dv=new WeakMap,wa=new WeakMap,zd=new WeakMap,Mp=new WeakMap,rl=new WeakMap,Av=new WeakMap,Pp=new WeakMap,Dp=new WeakMap,Fd=new WeakMap,Hd=new WeakMap,pu=new WeakMap,Ap=new WeakMap,Bd=new WeakSet,q0=function(t){xr(this,Fv,ES).call(this);let r=Ne(this,yn).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch($o)),r},Rv=new WeakSet,bS=function(){if(xr(this,$v,SS).call(this),Lp||Ne(this,wa).isStale||!mS(this.options.staleTime))return;const r=sR(Ne(this,wa).dataUpdatedAt,this.options.staleTime)+1;At(this,Fd,setTimeout(()=>{Ne(this,wa).isStale||this.updateResult()},r))},Lv=new WeakSet,wS=function(){var t;return(t=typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Ne(this,yn)):this.options.refetchInterval)!=null?t:!1},Ov=new WeakSet,kS=function(t){xr(this,zv,jS).call(this),At(this,pu,t),!(Lp||this.options.enabled===!1||!mS(Ne(this,pu))||Ne(this,pu)===0)&&At(this,Hd,setInterval(()=>{(this.options.refetchIntervalInBackground||Oy.isFocused())&&xr(this,Bd,q0).call(this)},Ne(this,pu)))},Iv=new WeakSet,CS=function(){xr(this,Rv,bS).call(this),xr(this,Ov,kS).call(this,xr(this,Lv,wS).call(this))},$v=new WeakSet,SS=function(){Ne(this,Fd)&&(clearTimeout(Ne(this,Fd)),At(this,Fd,void 0))},zv=new WeakSet,jS=function(){Ne(this,Hd)&&(clearInterval(Ne(this,Hd)),At(this,Hd,void 0))},Fv=new WeakSet,ES=function(){const t=Ne(this,Ha).getQueryCache().build(Ne(this,Ha),this.options);if(t===Ne(this,yn))return;const r=Ne(this,yn);At(this,yn,t),At(this,Dv,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},j2=new WeakSet,fR=function(t){ps.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(Ne(this,wa))}),Ne(this,Ha).getQueryCache().notify({query:Ne(this,yn),type:"observerResultsUpdated"})})},qA);function qK(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function u7(e,t){return qK(e,t)||e.state.data!==void 0&&NS(e,t,t.refetchOnMount)}function NS(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&xj(e,t)}return!1}function d7(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&xj(e,r)}function xj(e,t){return e.isStaleByTime(t.staleTime)}function KK(e,t){return!Ly(e.getCurrentResult(),t)}var GK=class extends dR{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(re(R({},e),{behavior:xS()}),t)}getOptimisticResult(e){return e.behavior=xS(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch(re(R({},e),{meta:{fetchMore:{direction:"forward"}}}))}fetchPreviousPage(e){return this.fetch(re(R({},e),{meta:{fetchMore:{direction:"backward"}}}))}createResult(e,t){var d,f,h,p;const{state:r}=e,n=super.createResult(e,t),{isFetching:a,isRefetching:o}=n,i=a&&((f=(d=r.fetchMeta)==null?void 0:d.fetchMore)==null?void 0:f.direction)==="forward",c=a&&((p=(h=r.fetchMeta)==null?void 0:h.fetchMore)==null?void 0:p.direction)==="backward";return re(R({},n),{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:UK(t,r.data),hasPreviousPage:WK(t,r.data),isFetchingNextPage:i,isFetchingPreviousPage:c,isRefetching:o&&!i&&!c})}},mu,gu,po,Gl,Rp,uy,Hv,_S,KA,YK=(KA=class extends um{constructor(r,n){super();Vt(this,Rp);Vt(this,Hv);Vt(this,mu,void 0);Vt(this,gu,void 0);Vt(this,po,void 0);Vt(this,Gl,void 0);At(this,mu,r),this.setOptions(n),this.bindMethods(),xr(this,Rp,uy).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var a;const n=this.options;this.options=Ne(this,mu).defaultMutationOptions(r),Ly(this.options,n)||Ne(this,mu).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Ne(this,po),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ef(n.mutationKey)!==ef(this.options.mutationKey)?this.reset():(a=Ne(this,po))==null||a.setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=Ne(this,po))==null||r.removeObserver(this)}onMutationUpdate(r){xr(this,Rp,uy).call(this),xr(this,Hv,_S).call(this,r)}getCurrentResult(){return Ne(this,gu)}reset(){var r;(r=Ne(this,po))==null||r.removeObserver(this),At(this,po,void 0),xr(this,Rp,uy).call(this),xr(this,Hv,_S).call(this)}mutate(r,n){var a;return At(this,Gl,n),(a=Ne(this,po))==null||a.removeObserver(this),At(this,po,Ne(this,mu).getMutationCache().build(Ne(this,mu),this.options)),Ne(this,po).addObserver(this),Ne(this,po).execute(r)}},mu=new WeakMap,gu=new WeakMap,po=new WeakMap,Gl=new WeakMap,Rp=new WeakSet,uy=function(){var n,a;const r=(a=(n=Ne(this,po))==null?void 0:n.state)!=null?a:cR();At(this,gu,re(R({},r),{isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset}))},Hv=new WeakSet,_S=function(r){ps.batch(()=>{var n,a,o,i,c,d,f,h;if(Ne(this,Gl)&&this.hasListeners()){const p=Ne(this,gu).variables,g=Ne(this,gu).context;(r==null?void 0:r.type)==="success"?((a=(n=Ne(this,Gl)).onSuccess)==null||a.call(n,r.data,p,g),(i=(o=Ne(this,Gl)).onSettled)==null||i.call(o,r.data,null,p,g)):(r==null?void 0:r.type)==="error"&&((d=(c=Ne(this,Gl)).onError)==null||d.call(c,r.error,p,g),(h=(f=Ne(this,Gl)).onSettled)==null||h.call(f,void 0,r.error,p,g))}this.listeners.forEach(p=>{p(Ne(this,gu))})})},KA),hR=m.createContext(void 0),vr=e=>{const t=m.useContext(hR);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ZK=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(hR.Provider,{value:e,children:t})),pR=m.createContext(!1),XK=()=>m.useContext(pR);pR.Provider;function QK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var JK=m.createContext(QK()),eG=()=>m.useContext(JK);function mR(e,t){return typeof e=="function"?e(...t):!!e}function tG(){}var rG=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},nG=e=>{m.useEffect(()=>{e.clearReset()},[e])},sG=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&mR(r,[e.error,n]),aG=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},oG=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,iG=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function gR(e,t,r){const n=vr(r),a=XK(),o=eG(),i=n.defaultQueryOptions(e);i._optimisticResults=a?"isRestoring":"optimistic",aG(i),rG(i,o),nG(o);const[c]=m.useState(()=>new t(n,i)),d=c.getOptimisticResult(i);if(m.useSyncExternalStore(m.useCallback(f=>{const h=a?()=>{}:c.subscribe(ps.batchCalls(f));return c.updateResult(),h},[c,a]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i,{listeners:!1})},[i,c]),oG(i,d))throw iG(i,c,o);if(sG({result:d,errorResetBoundary:o,throwOnError:i.throwOnError,query:n.getQueryCache().get(i.queryHash)}))throw d.error;return i.notifyOnChangeProps?d:c.trackResult(d)}function lG(e,t){return gR(e,dR,t)}function cG(e,t){const r=vr(t),[n]=m.useState(()=>new YK(r,e));m.useEffect(()=>{n.setOptions(e)},[n,e]);const a=m.useSyncExternalStore(m.useCallback(i=>n.subscribe(ps.batchCalls(i)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=m.useCallback((i,c)=>{n.mutate(i,c).catch(tG)},[n]);if(a.error&&mR(n.options.throwOnError,[a.error]))throw a.error;return re(R({},a),{mutate:o,mutateAsync:a.mutate})}function uG(e,t){return gR(e,GK,t)}var dG=function(){return null},fG={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const f7=1e3*60,hG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",vR=fG.VITE_ENABLE_REACT_QUERY_DEVTOOLS,pG=3;var xR={exports:{}},_o={},yR={exports:{}},bR={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(U,X){var G=U.length;U.push(X);e:for(;0<G;){var F=G-1>>>1,q=U[F];if(0<a(q,X))U[F]=X,U[G]=q,G=F;else break e}}function r(U){return U.length===0?null:U[0]}function n(U){if(U.length===0)return null;var X=U[0],G=U.pop();if(G!==X){U[0]=G;e:for(var F=0,q=U.length,Y=q>>>1;F<Y;){var se=2*(F+1)-1,ee=U[se],ae=se+1,oe=U[ae];if(0>a(ee,G))ae<q&&0>a(oe,ee)?(U[F]=oe,U[ae]=G,F=ae):(U[F]=ee,U[se]=G,F=se);else if(ae<q&&0>a(oe,G))U[F]=oe,U[ae]=G,F=ae;else break e}}return X}function a(U,X){var G=U.sortIndex-X.sortIndex;return G!==0?G:U.id-X.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 d=[],f=[],h=1,p=null,g=3,S=!1,b=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(U){for(var X=r(f);X!==null;){if(X.callback===null)n(f);else if(X.startTime<=U)n(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=r(f)}}function N(U){if(v=!1,E(U),!b)if(r(d)!==null)b=!0,K(M);else{var X=r(f);X!==null&&V(N,X.startTime-U)}}function M(U,X){b=!1,v&&(v=!1,C(A),A=-1),S=!0;var G=g;try{for(E(X),p=r(d);p!==null&&(!(p.expirationTime>X)||U&&!H());){var F=p.callback;if(typeof F=="function"){p.callback=null,g=p.priorityLevel;var q=F(p.expirationTime<=X);X=e.unstable_now(),typeof q=="function"?p.callback=q:p===r(d)&&n(d),E(X)}else n(d);p=r(d)}if(p!==null)var Y=!0;else{var se=r(f);se!==null&&V(N,se.startTime-X),Y=!1}return Y}finally{p=null,g=G,S=!1}}var P=!1,D=null,A=-1,O=5,$=-1;function H(){return!(e.unstable_now()-$<O)}function z(){if(D!==null){var U=e.unstable_now();$=U;var X=!0;try{X=D(!0,U)}finally{X?I():(P=!1,D=null)}}else P=!1}var I;if(typeof j=="function")I=function(){j(z)};else if(typeof MessageChannel!="undefined"){var W=new MessageChannel,_=W.port2;W.port1.onmessage=z,I=function(){_.postMessage(null)}}else I=function(){w(z,0)};function K(U){D=U,P||(P=!0,I())}function V(U,X){A=w(function(){U(e.unstable_now())},X)}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(U){U.callback=null},e.unstable_continueExecution=function(){b||S||(b=!0,K(M))},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return r(d)},e.unstable_next=function(U){switch(g){case 1:case 2:case 3:var X=3;break;default:X=g}var G=g;g=X;try{return U()}finally{g=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,X){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var G=g;g=U;try{return X()}finally{g=G}},e.unstable_scheduleCallback=function(U,X,G){var F=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?F+G:F):G=F,U){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=G+q,U={id:h++,callback:X,priorityLevel:U,startTime:G,expirationTime:q,sortIndex:-1},G>F?(U.sortIndex=G,t(f,U),r(d)===null&&U===r(f)&&(v?(C(A),A=-1):v=!0,V(N,G-F))):(U.sortIndex=q,t(d,U),b||S||(b=!0,K(M))),U},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(U){var X=g;return function(){var G=g;g=X;try{return U.apply(this,arguments)}finally{g=G}}}})(bR);yR.exports=bR;var mG=yR.exports;/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var wR=m,jo=mG;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var kR=new Set,Og={};function jf(e,t){Op(e,t),Op(e+"Capture",t)}function Op(e,t){for(Og[e]=t,e=0;e<t.length;e++)kR.add(t[e])}var oc=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),TS=Object.prototype.hasOwnProperty,gG=/^[: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]*$/,h7={},p7={};function vG(e){return TS.call(p7,e)?!0:TS.call(h7,e)?!1:gG.test(e)?p7[e]=!0:(h7[e]=!0,!1)}function xG(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yG(e,t,r,n){if(t===null||typeof t=="undefined"||xG(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ta(e,t,r,n,a,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var Vs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Vs[e]=new Ta(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Vs[t]=new Ta(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vs[e]=new Ta(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vs[e]=new Ta(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){Vs[e]=new Ta(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Vs[e]=new Ta(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Vs[e]=new Ta(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Vs[e]=new Ta(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Vs[e]=new Ta(e,5,!1,e.toLowerCase(),null,!1,!1)});var yj=/[\-:]([a-z])/g;function bj(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(yj,bj);Vs[t]=new Ta(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(yj,bj);Vs[t]=new Ta(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(yj,bj);Vs[t]=new Ta(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Vs[e]=new Ta(e,1,!1,e.toLowerCase(),null,!1,!1)});Vs.xlinkHref=new Ta("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Vs[e]=new Ta(e,1,!1,e.toLowerCase(),null,!0,!0)});function wj(e,t,r,n){var a=Vs.hasOwnProperty(t)?Vs[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(yG(t,r,a,n)&&(r=null),n||a===null?vG(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var yc=wR.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ex=Symbol.for("react.element"),Ah=Symbol.for("react.portal"),Rh=Symbol.for("react.fragment"),kj=Symbol.for("react.strict_mode"),MS=Symbol.for("react.profiler"),CR=Symbol.for("react.provider"),SR=Symbol.for("react.context"),Cj=Symbol.for("react.forward_ref"),PS=Symbol.for("react.suspense"),DS=Symbol.for("react.suspense_list"),Sj=Symbol.for("react.memo"),Kc=Symbol.for("react.lazy"),jR=Symbol.for("react.offscreen"),m7=Symbol.iterator;function d0(e){return e===null||typeof e!="object"?null:(e=m7&&e[m7]||e["@@iterator"],typeof e=="function"?e:null)}var An=Object.assign,fC;function K0(e){if(fC===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);fC=t&&t[1]||""}return"\n"+fC+e}var hC=!1;function pC(e,t){if(!e||hC)return"";hC=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var n=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){n=f}e.call(t.prototype)}else{try{throw Error()}catch(f){n=f}e()}}catch(f){if(f&&n&&typeof f.stack=="string"){for(var a=f.stack.split("\n"),o=n.stack.split("\n"),i=a.length-1,c=o.length-1;1<=i&&0<=c&&a[i]!==o[c];)c--;for(;1<=i&&0<=c;i--,c--)if(a[i]!==o[c]){if(i!==1||c!==1)do if(i--,c--,0>c||a[i]!==o[c]){var d="\n"+a[i].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=i&&0<=c);break}}}finally{hC=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?K0(e):""}function bG(e){switch(e.tag){case 5:return K0(e.type);case 16:return K0("Lazy");case 13:return K0("Suspense");case 19:return K0("SuspenseList");case 0:case 2:case 15:return e=pC(e.type,!1),e;case 11:return e=pC(e.type.render,!1),e;case 1:return e=pC(e.type,!0),e;default:return""}}function AS(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 Ah:return"Portal";case MS:return"Profiler";case kj:return"StrictMode";case PS:return"Suspense";case DS:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case SR:return(e.displayName||"Context")+".Consumer";case CR:return(e._context.displayName||"Context")+".Provider";case Cj:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sj:return t=e.displayName||null,t!==null?t:AS(e.type)||"Memo";case Kc:t=e._payload,e=e._init;try{return AS(e(t))}catch(r){}}return null}function wG(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 AS(t);case 8:return t===kj?"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 Pu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ER(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kG(e){var t=ER(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r!="undefined"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(i){n=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function tx(e){e._valueTracker||(e._valueTracker=kG(e))}function NR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ER(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function $y(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function RS(e,t){var r=t.checked;return An({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:e._wrapperState.initialChecked})}function g7(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Pu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function _R(e,t){t=t.checked,t!=null&&wj(e,"checked",t,!1)}function LS(e,t){_R(e,t);var r=Pu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?OS(e,t.type,r):t.hasOwnProperty("defaultValue")&&OS(e,t.type,Pu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function v7(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function OS(e,t,r){(t!=="number"||$y(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var G0=Array.isArray;function rp(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Pu(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function IS(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dt(91));return An({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function x7(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(dt(92));if(G0(r)){if(1<r.length)throw Error(dt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Pu(r)}}function TR(e,t){var r=Pu(t.value),n=Pu(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function y7(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function MR(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 $S(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?MR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rx,PR=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(rx=rx||document.createElement("div"),rx.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=rx.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ig(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ig={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},CG=["Webkit","ms","Moz","O"];Object.keys(ig).forEach(function(e){CG.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ig[t]=ig[e]})});function DR(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ig.hasOwnProperty(e)&&ig[e]?(""+t).trim():t+"px"}function AR(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=DR(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var SG=An({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 zS(e,t){if(t){if(SG[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function FS(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 HS=null;function jj(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var BS=null,np=null,sp=null;function b7(e){if(e=Vv(e)){if(typeof BS!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=R2(t),BS(e.stateNode,e.type,t))}}function RR(e){np?sp?sp.push(e):sp=[e]:np=e}function LR(){if(np){var e=np,t=sp;if(sp=np=null,b7(e),t)for(e=0;e<t.length;e++)b7(t[e])}}function OR(e,t){return e(t)}function IR(){}var mC=!1;function $R(e,t,r){if(mC)return e(t,r);mC=!0;try{return OR(e,t,r)}finally{mC=!1,(np!==null||sp!==null)&&(IR(),LR())}}function $g(e,t){var r=e.stateNode;if(r===null)return null;var n=R2(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(dt(231,t,typeof r));return r}var US=!1;if(oc)try{var f0={};Object.defineProperty(f0,"passive",{get:function(){US=!0}}),window.addEventListener("test",f0,f0),window.removeEventListener("test",f0,f0)}catch(e){US=!1}function jG(e,t,r,n,a,o,i,c,d){var f=Array.prototype.slice.call(arguments,3);try{t.apply(r,f)}catch(h){this.onError(h)}}var lg=!1,zy=null,Fy=!1,WS=null,EG={onError:function(e){lg=!0,zy=e}};function NG(e,t,r,n,a,o,i,c,d){lg=!1,zy=null,jG.apply(EG,arguments)}function _G(e,t,r,n,a,o,i,c,d){if(NG.apply(this,arguments),lg){if(lg){var f=zy;lg=!1,zy=null}else throw Error(dt(198));Fy||(Fy=!0,WS=f)}}function Ef(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function zR(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 w7(e){if(Ef(e)!==e)throw Error(dt(188))}function TG(e){var t=e.alternate;if(!t){if(t=Ef(e),t===null)throw Error(dt(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return w7(a),e;if(o===n)return w7(a),t;o=o.sibling}throw Error(dt(188))}if(r.return!==n.return)r=a,n=o;else{for(var i=!1,c=a.child;c;){if(c===r){i=!0,r=a,n=o;break}if(c===n){i=!0,n=a,r=o;break}c=c.sibling}if(!i){for(c=o.child;c;){if(c===r){i=!0,r=o,n=a;break}if(c===n){i=!0,n=o,r=a;break}c=c.sibling}if(!i)throw Error(dt(189))}}if(r.alternate!==n)throw Error(dt(190))}if(r.tag!==3)throw Error(dt(188));return r.stateNode.current===r?e:t}function FR(e){return e=TG(e),e!==null?HR(e):null}function HR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=HR(e);if(t!==null)return t;e=e.sibling}return null}var BR=jo.unstable_scheduleCallback,k7=jo.unstable_cancelCallback,MG=jo.unstable_shouldYield,PG=jo.unstable_requestPaint,Yn=jo.unstable_now,DG=jo.unstable_getCurrentPriorityLevel,Ej=jo.unstable_ImmediatePriority,UR=jo.unstable_UserBlockingPriority,Hy=jo.unstable_NormalPriority,AG=jo.unstable_LowPriority,WR=jo.unstable_IdlePriority,M2=null,fl=null;function RG(e){if(fl&&typeof fl.onCommitFiberRoot=="function")try{fl.onCommitFiberRoot(M2,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Pi=Math.clz32?Math.clz32:IG,LG=Math.log,OG=Math.LN2;function IG(e){return e>>>=0,e===0?32:31-(LG(e)/OG|0)|0}var nx=64,sx=4194304;function Y0(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 By(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var c=i&~a;c!==0?n=Y0(c):(o&=i,o!==0&&(n=Y0(o)))}else i=r&~a,i!==0?n=Y0(i):o!==0&&(n=Y0(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Pi(t),a=1<<r,n|=e[r],t&=~a;return n}function $G(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 zG(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Pi(o),c=1<<i,d=a[i];d===-1?(!(c&r)||c&n)&&(a[i]=$G(c,t)):d<=t&&(e.expiredLanes|=c),o&=~c}}function VS(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function VR(){var e=nx;return nx<<=1,!(nx&4194240)&&(nx=64),e}function gC(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Uv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pi(t),e[t]=r}function FG(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-Pi(r),o=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~o}}function Nj(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Pi(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var sn=0;function qR(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var KR,_j,GR,YR,ZR,qS=!1,ax=[],ku=null,Cu=null,Su=null,zg=new Map,Fg=new Map,ru=[],HG="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 C7(e,t){switch(e){case"focusin":case"focusout":ku=null;break;case"dragenter":case"dragleave":Cu=null;break;case"mouseover":case"mouseout":Su=null;break;case"pointerover":case"pointerout":zg.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fg.delete(t.pointerId)}}function h0(e,t,r,n,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Vv(t),t!==null&&_j(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function BG(e,t,r,n,a){switch(t){case"focusin":return ku=h0(ku,e,t,r,n,a),!0;case"dragenter":return Cu=h0(Cu,e,t,r,n,a),!0;case"mouseover":return Su=h0(Su,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return zg.set(o,h0(zg.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,Fg.set(o,h0(Fg.get(o)||null,e,t,r,n,a)),!0}return!1}function XR(e){var t=kd(e.target);if(t!==null){var r=Ef(t);if(r!==null){if(t=r.tag,t===13){if(t=zR(r),t!==null){e.blockedOn=t,ZR(e.priority,function(){GR(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function dy(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=KS(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);HS=n,r.target.dispatchEvent(n),HS=null}else return t=Vv(r),t!==null&&_j(t),e.blockedOn=r,!1;t.shift()}return!0}function S7(e,t,r){dy(e)&&r.delete(t)}function UG(){qS=!1,ku!==null&&dy(ku)&&(ku=null),Cu!==null&&dy(Cu)&&(Cu=null),Su!==null&&dy(Su)&&(Su=null),zg.forEach(S7),Fg.forEach(S7)}function p0(e,t){e.blockedOn===t&&(e.blockedOn=null,qS||(qS=!0,jo.unstable_scheduleCallback(jo.unstable_NormalPriority,UG)))}function Hg(e){function t(a){return p0(a,e)}if(0<ax.length){p0(ax[0],e);for(var r=1;r<ax.length;r++){var n=ax[r];n.blockedOn===e&&(n.blockedOn=null)}}for(ku!==null&&p0(ku,e),Cu!==null&&p0(Cu,e),Su!==null&&p0(Su,e),zg.forEach(t),Fg.forEach(t),r=0;r<ru.length;r++)n=ru[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<ru.length&&(r=ru[0],r.blockedOn===null);)XR(r),r.blockedOn===null&&ru.shift()}var ap=yc.ReactCurrentBatchConfig,Uy=!0;function WG(e,t,r,n){var a=sn,o=ap.transition;ap.transition=null;try{sn=1,Tj(e,t,r,n)}finally{sn=a,ap.transition=o}}function VG(e,t,r,n){var a=sn,o=ap.transition;ap.transition=null;try{sn=4,Tj(e,t,r,n)}finally{sn=a,ap.transition=o}}function Tj(e,t,r,n){if(Uy){var a=KS(e,t,r,n);if(a===null)EC(e,t,n,Wy,r),C7(e,n);else if(BG(a,e,t,r,n))n.stopPropagation();else if(C7(e,n),t&4&&-1<HG.indexOf(e)){for(;a!==null;){var o=Vv(a);if(o!==null&&KR(o),o=KS(e,t,r,n),o===null&&EC(e,t,n,Wy,r),o===a)break;a=o}a!==null&&n.stopPropagation()}else EC(e,t,n,null,r)}}var Wy=null;function KS(e,t,r,n){if(Wy=null,e=jj(n),e=kd(e),e!==null)if(t=Ef(e),t===null)e=null;else if(r=t.tag,r===13){if(e=zR(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wy=e,null}function QR(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(DG()){case Ej:return 1;case UR:return 4;case Hy:case AG:return 16;case WR:return 536870912;default:return 16}default:return 16}}var vu=null,Mj=null,fy=null;function JR(){if(fy)return fy;var e,t=Mj,r=t.length,n,a="value"in vu?vu.value:vu.textContent,o=a.length;for(e=0;e<r&&t[e]===a[e];e++);var i=r-e;for(n=1;n<=i&&t[r-n]===a[o-n];n++);return fy=a.slice(e,1<n?1-n:void 0)}function hy(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 ox(){return!0}function j7(){return!1}function To(e){function t(r,n,a,o,i){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(r=e[c],this[c]=r?r(o):o[c]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ox:j7,this.isPropagationStopped=j7,this}return An(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ox)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ox)},persist:function(){},isPersistent:ox}),t}var dm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pj=To(dm),Wv=An({},dm,{view:0,detail:0}),qG=To(Wv),vC,xC,m0,P2=An({},Wv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dj,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!==m0&&(m0&&e.type==="mousemove"?(vC=e.screenX-m0.screenX,xC=e.screenY-m0.screenY):xC=vC=0,m0=e),vC)},movementY:function(e){return"movementY"in e?e.movementY:xC}}),E7=To(P2),KG=An({},P2,{dataTransfer:0}),GG=To(KG),YG=An({},Wv,{relatedTarget:0}),yC=To(YG),ZG=An({},dm,{animationName:0,elapsedTime:0,pseudoElement:0}),XG=To(ZG),QG=An({},dm,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JG=To(QG),eY=An({},dm,{data:0}),N7=To(eY),tY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rY={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"},nY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sY(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nY[e])?!!t[e]:!1}function Dj(){return sY}var aY=An({},Wv,{key:function(e){if(e.key){var t=tY[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hy(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rY[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dj,charCode:function(e){return e.type==="keypress"?hy(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hy(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),oY=To(aY),iY=An({},P2,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_7=To(iY),lY=An({},Wv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dj}),cY=To(lY),uY=An({},dm,{propertyName:0,elapsedTime:0,pseudoElement:0}),dY=To(uY),fY=An({},P2,{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}),hY=To(fY),pY=[9,13,27,32],Aj=oc&&"CompositionEvent"in window,cg=null;oc&&"documentMode"in document&&(cg=document.documentMode);var mY=oc&&"TextEvent"in window&&!cg,eL=oc&&(!Aj||cg&&8<cg&&11>=cg),T7=" ",M7=!1;function tL(e,t){switch(e){case"keyup":return pY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rL(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lh=!1;function gY(e,t){switch(e){case"compositionend":return rL(t);case"keypress":return t.which!==32?null:(M7=!0,T7);case"textInput":return e=t.data,e===T7&&M7?null:e;default:return null}}function vY(e,t){if(Lh)return e==="compositionend"||!Aj&&tL(e,t)?(e=JR(),fy=Mj=vu=null,Lh=!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 eL&&t.locale!=="ko"?null:t.data;default:return null}}var xY={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 P7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xY[e.type]:t==="textarea"}function nL(e,t,r,n){RR(n),t=Vy(t,"onChange"),0<t.length&&(r=new Pj("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ug=null,Bg=null;function yY(e){pL(e,0)}function D2(e){var t=$h(e);if(NR(t))return e}function bY(e,t){if(e==="change")return t}var sL=!1;if(oc){var bC;if(oc){var wC="oninput"in document;if(!wC){var D7=document.createElement("div");D7.setAttribute("oninput","return;"),wC=typeof D7.oninput=="function"}bC=wC}else bC=!1;sL=bC&&(!document.documentMode||9<document.documentMode)}function A7(){ug&&(ug.detachEvent("onpropertychange",aL),Bg=ug=null)}function aL(e){if(e.propertyName==="value"&&D2(Bg)){var t=[];nL(t,Bg,e,jj(e)),$R(yY,t)}}function wY(e,t,r){e==="focusin"?(A7(),ug=t,Bg=r,ug.attachEvent("onpropertychange",aL)):e==="focusout"&&A7()}function kY(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return D2(Bg)}function CY(e,t){if(e==="click")return D2(t)}function SY(e,t){if(e==="input"||e==="change")return D2(t)}function jY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Li=typeof Object.is=="function"?Object.is:jY;function Ug(e,t){if(Li(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!TS.call(t,a)||!Li(e[a],t[a]))return!1}return!0}function R7(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function L7(e,t){var r=R7(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=R7(r)}}function oL(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oL(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iL(){for(var e=window,t=$y();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch(n){r=!1}if(r)e=t.contentWindow;else break;t=$y(e.document)}return t}function Rj(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 EY(e){var t=iL(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&oL(r.ownerDocument.documentElement,r)){if(n!==null&&Rj(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=L7(r,o);var i=L7(r,n);a&&i&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var NY=oc&&"documentMode"in document&&11>=document.documentMode,Oh=null,GS=null,dg=null,YS=!1;function O7(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;YS||Oh==null||Oh!==$y(n)||(n=Oh,"selectionStart"in n&&Rj(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),dg&&Ug(dg,n)||(dg=n,n=Vy(GS,"onSelect"),0<n.length&&(t=new Pj("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Oh)))}function ix(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ih={animationend:ix("Animation","AnimationEnd"),animationiteration:ix("Animation","AnimationIteration"),animationstart:ix("Animation","AnimationStart"),transitionend:ix("Transition","TransitionEnd")},kC={},lL={};oc&&(lL=document.createElement("div").style,"AnimationEvent"in window||(delete Ih.animationend.animation,delete Ih.animationiteration.animation,delete Ih.animationstart.animation),"TransitionEvent"in window||delete Ih.transitionend.transition);function A2(e){if(kC[e])return kC[e];if(!Ih[e])return e;var t=Ih[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in lL)return kC[e]=t[r];return e}var cL=A2("animationend"),uL=A2("animationiteration"),dL=A2("animationstart"),fL=A2("transitionend"),hL=new Map,I7="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 Wu(e,t){hL.set(e,t),jf(t,[e])}for(var CC=0;CC<I7.length;CC++){var SC=I7[CC],_Y=SC.toLowerCase(),TY=SC[0].toUpperCase()+SC.slice(1);Wu(_Y,"on"+TY)}Wu(cL,"onAnimationEnd");Wu(uL,"onAnimationIteration");Wu(dL,"onAnimationStart");Wu("dblclick","onDoubleClick");Wu("focusin","onFocus");Wu("focusout","onBlur");Wu(fL,"onTransitionEnd");Op("onMouseEnter",["mouseout","mouseover"]);Op("onMouseLeave",["mouseout","mouseover"]);Op("onPointerEnter",["pointerout","pointerover"]);Op("onPointerLeave",["pointerout","pointerover"]);jf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));jf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));jf("onBeforeInput",["compositionend","keypress","textInput","paste"]);jf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));jf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));jf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Z0="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(" "),MY=new Set("cancel close invalid load scroll toggle".split(" ").concat(Z0));function $7(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,_G(n,t,void 0,e),e.currentTarget=null}function pL(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var c=n[i],d=c.instance,f=c.currentTarget;if(c=c.listener,d!==o&&a.isPropagationStopped())break e;$7(a,c,f),o=d}else for(i=0;i<n.length;i++){if(c=n[i],d=c.instance,f=c.currentTarget,c=c.listener,d!==o&&a.isPropagationStopped())break e;$7(a,c,f),o=d}}}if(Fy)throw e=WS,Fy=!1,WS=null,e}function xn(e,t){var r=t[e3];r===void 0&&(r=t[e3]=new Set);var n=e+"__bubble";r.has(n)||(mL(t,e,2,!1),r.add(n))}function jC(e,t,r){var n=0;t&&(n|=4),mL(r,e,n,t)}var lx="_reactListening"+Math.random().toString(36).slice(2);function Wg(e){if(!e[lx]){e[lx]=!0,kR.forEach(function(r){r!=="selectionchange"&&(MY.has(r)||jC(r,!1,e),jC(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lx]||(t[lx]=!0,jC("selectionchange",!1,t))}}function mL(e,t,r,n){switch(QR(t)){case 1:var a=WG;break;case 4:a=VG;break;default:a=Tj}r=a.bind(null,t,r,e),a=void 0,!US||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function EC(e,t,r,n,a){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var c=n.stateNode.containerInfo;if(c===a||c.nodeType===8&&c.parentNode===a)break;if(i===4)for(i=n.return;i!==null;){var d=i.tag;if((d===3||d===4)&&(d=i.stateNode.containerInfo,d===a||d.nodeType===8&&d.parentNode===a))return;i=i.return}for(;c!==null;){if(i=kd(c),i===null)return;if(d=i.tag,d===5||d===6){n=o=i;continue e}c=c.parentNode}}n=n.return}$R(function(){var f=o,h=jj(r),p=[];e:{var g=hL.get(e);if(g!==void 0){var S=Pj,b=e;switch(e){case"keypress":if(hy(r)===0)break e;case"keydown":case"keyup":S=oY;break;case"focusin":b="focus",S=yC;break;case"focusout":b="blur",S=yC;break;case"beforeblur":case"afterblur":S=yC;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=E7;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=GG;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=cY;break;case cL:case uL:case dL:S=XG;break;case fL:S=dY;break;case"scroll":S=qG;break;case"wheel":S=hY;break;case"copy":case"cut":case"paste":S=JG;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=_7}var v=(t&4)!==0,w=!v&&e==="scroll",C=v?g!==null?g+"Capture":null:g;v=[];for(var j=f,E;j!==null;){E=j;var N=E.stateNode;if(E.tag===5&&N!==null&&(E=N,C!==null&&(N=$g(j,C),N!=null&&v.push(Vg(j,N,E)))),w)break;j=j.return}0<v.length&&(g=new S(g,b,null,r,h),p.push({event:g,listeners:v}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",g&&r!==HS&&(b=r.relatedTarget||r.fromElement)&&(kd(b)||b[ic]))break e;if((S||g)&&(g=h.window===h?h:(g=h.ownerDocument)?g.defaultView||g.parentWindow:window,S?(b=r.relatedTarget||r.toElement,S=f,b=b?kd(b):null,b!==null&&(w=Ef(b),b!==w||b.tag!==5&&b.tag!==6)&&(b=null)):(S=null,b=f),S!==b)){if(v=E7,N="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(v=_7,N="onPointerLeave",C="onPointerEnter",j="pointer"),w=S==null?g:$h(S),E=b==null?g:$h(b),g=new v(N,j+"leave",S,r,h),g.target=w,g.relatedTarget=E,N=null,kd(h)===f&&(v=new v(C,j+"enter",b,r,h),v.target=E,v.relatedTarget=w,N=v),w=N,S&&b)t:{for(v=S,C=b,j=0,E=v;E;E=sh(E))j++;for(E=0,N=C;N;N=sh(N))E++;for(;0<j-E;)v=sh(v),j--;for(;0<E-j;)C=sh(C),E--;for(;j--;){if(v===C||C!==null&&v===C.alternate)break t;v=sh(v),C=sh(C)}v=null}else v=null;S!==null&&z7(p,g,S,v,!1),b!==null&&w!==null&&z7(p,w,b,v,!0)}}e:{if(g=f?$h(f):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var M=bY;else if(P7(g))if(sL)M=SY;else{M=kY;var P=wY}else(S=g.nodeName)&&S.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(M=CY);if(M&&(M=M(e,f))){nL(p,M,r,h);break e}P&&P(e,g,f),e==="focusout"&&(P=g._wrapperState)&&P.controlled&&g.type==="number"&&OS(g,"number",g.value)}switch(P=f?$h(f):window,e){case"focusin":(P7(P)||P.contentEditable==="true")&&(Oh=P,GS=f,dg=null);break;case"focusout":dg=GS=Oh=null;break;case"mousedown":YS=!0;break;case"contextmenu":case"mouseup":case"dragend":YS=!1,O7(p,r,h);break;case"selectionchange":if(NY)break;case"keydown":case"keyup":O7(p,r,h)}var D;if(Aj)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Lh?tL(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(eL&&r.locale!=="ko"&&(Lh||A!=="onCompositionStart"?A==="onCompositionEnd"&&Lh&&(D=JR()):(vu=h,Mj="value"in vu?vu.value:vu.textContent,Lh=!0)),P=Vy(f,A),0<P.length&&(A=new N7(A,e,null,r,h),p.push({event:A,listeners:P}),D?A.data=D:(D=rL(r),D!==null&&(A.data=D)))),(D=mY?gY(e,r):vY(e,r))&&(f=Vy(f,"onBeforeInput"),0<f.length&&(h=new N7("onBeforeInput","beforeinput",null,r,h),p.push({event:h,listeners:f}),h.data=D))}pL(p,t)})}function Vg(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Vy(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=$g(e,r),o!=null&&n.unshift(Vg(e,o,a)),o=$g(e,t),o!=null&&n.push(Vg(e,o,a))),e=e.return}return n}function sh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function z7(e,t,r,n,a){for(var o=t._reactName,i=[];r!==null&&r!==n;){var c=r,d=c.alternate,f=c.stateNode;if(d!==null&&d===n)break;c.tag===5&&f!==null&&(c=f,a?(d=$g(r,o),d!=null&&i.unshift(Vg(r,d,c))):a||(d=$g(r,o),d!=null&&i.push(Vg(r,d,c)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var PY=/\r\n?/g,DY=/\u0000|\uFFFD/g;function F7(e){return(typeof e=="string"?e:""+e).replace(PY,"\n").replace(DY,"")}function cx(e,t,r){if(t=F7(t),F7(e)!==t&&r)throw Error(dt(425))}function qy(){}var ZS=null,XS=null;function QS(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 JS=typeof setTimeout=="function"?setTimeout:void 0,AY=typeof clearTimeout=="function"?clearTimeout:void 0,H7=typeof Promise=="function"?Promise:void 0,RY=typeof queueMicrotask=="function"?queueMicrotask:typeof H7!="undefined"?function(e){return H7.resolve(null).then(e).catch(LY)}:JS;function LY(e){setTimeout(function(){throw e})}function NC(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),Hg(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);Hg(t)}function ju(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 B7(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var fm=Math.random().toString(36).slice(2),al="__reactFiber$"+fm,qg="__reactProps$"+fm,ic="__reactContainer$"+fm,e3="__reactEvents$"+fm,OY="__reactListeners$"+fm,IY="__reactHandles$"+fm;function kd(e){var t=e[al];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ic]||r[al]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=B7(e);e!==null;){if(r=e[al])return r;e=B7(e)}return t}e=r,r=e.parentNode}return null}function Vv(e){return e=e[al]||e[ic],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $h(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dt(33))}function R2(e){return e[qg]||null}var t3=[],zh=-1;function Vu(e){return{current:e}}function bn(e){0>zh||(e.current=t3[zh],t3[zh]=null,zh--)}function pn(e,t){zh++,t3[zh]=e.current,e.current=t}var Du={},da=Vu(Du),Za=Vu(!1),tf=Du;function Ip(e,t){var r=e.type.contextTypes;if(!r)return Du;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Xa(e){return e=e.childContextTypes,e!=null}function Ky(){bn(Za),bn(da)}function U7(e,t,r){if(da.current!==Du)throw Error(dt(168));pn(da,t),pn(Za,r)}function gL(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(dt(108,wG(e)||"Unknown",a));return An({},r,n)}function Gy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Du,tf=da.current,pn(da,e),pn(Za,Za.current),!0}function W7(e,t,r){var n=e.stateNode;if(!n)throw Error(dt(169));r?(e=gL(e,t,tf),n.__reactInternalMemoizedMergedChildContext=e,bn(Za),bn(da),pn(da,e)):bn(Za),pn(Za,r)}var Bl=null,L2=!1,_C=!1;function vL(e){Bl===null?Bl=[e]:Bl.push(e)}function $Y(e){L2=!0,vL(e)}function qu(){if(!_C&&Bl!==null){_C=!0;var e=0,t=sn;try{var r=Bl;for(sn=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Bl=null,L2=!1}catch(a){throw Bl!==null&&(Bl=Bl.slice(e+1)),BR(Ej,qu),a}finally{sn=t,_C=!1}}return null}var Fh=[],Hh=0,Yy=null,Zy=0,Bo=[],Uo=0,rf=null,Yl=1,Zl="";function hd(e,t){Fh[Hh++]=Zy,Fh[Hh++]=Yy,Yy=e,Zy=t}function xL(e,t,r){Bo[Uo++]=Yl,Bo[Uo++]=Zl,Bo[Uo++]=rf,rf=e;var n=Yl;e=Zl;var a=32-Pi(n)-1;n&=~(1<<a),r+=1;var o=32-Pi(t)+a;if(30<o){var i=a-a%5;o=(n&(1<<i)-1).toString(32),n>>=i,a-=i,Yl=1<<32-Pi(t)+a|r<<a|n,Zl=o+e}else Yl=1<<o|r<<a|n,Zl=e}function Lj(e){e.return!==null&&(hd(e,1),xL(e,1,0))}function Oj(e){for(;e===Yy;)Yy=Fh[--Hh],Fh[Hh]=null,Zy=Fh[--Hh],Fh[Hh]=null;for(;e===rf;)rf=Bo[--Uo],Bo[Uo]=null,Zl=Bo[--Uo],Bo[Uo]=null,Yl=Bo[--Uo],Bo[Uo]=null}var wo=null,yo=null,Sn=!1,ki=null;function yL(e,t){var r=qo(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function V7(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wo=e,yo=ju(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wo=e,yo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=rf!==null?{id:Yl,overflow:Zl}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=qo(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,wo=e,yo=null,!0):!1;default:return!1}}function r3(e){return(e.mode&1)!==0&&(e.flags&128)===0}function n3(e){if(Sn){var t=yo;if(t){var r=t;if(!V7(e,t)){if(r3(e))throw Error(dt(418));t=ju(r.nextSibling);var n=wo;t&&V7(e,t)?yL(n,r):(e.flags=e.flags&-4097|2,Sn=!1,wo=e)}}else{if(r3(e))throw Error(dt(418));e.flags=e.flags&-4097|2,Sn=!1,wo=e}}}function q7(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wo=e}function ux(e){if(e!==wo)return!1;if(!Sn)return q7(e),Sn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!QS(e.type,e.memoizedProps)),t&&(t=yo)){if(r3(e))throw bL(),Error(dt(418));for(;t;)yL(e,t),t=ju(t.nextSibling)}if(q7(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){yo=ju(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}yo=null}}else yo=wo?ju(e.stateNode.nextSibling):null;return!0}function bL(){for(var e=yo;e;)e=ju(e.nextSibling)}function $p(){yo=wo=null,Sn=!1}function Ij(e){ki===null?ki=[e]:ki.push(e)}var zY=yc.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){t=An({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Xy=Vu(null),Qy=null,Bh=null,$j=null;function zj(){$j=Bh=Qy=null}function Fj(e){var t=Xy.current;bn(Xy),e._currentValue=t}function s3(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function op(e,t){Qy=e,$j=Bh=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ya=!0),e.firstContext=null)}function Xo(e){var t=e._currentValue;if($j!==e)if(e={context:e,memoizedValue:t,next:null},Bh===null){if(Qy===null)throw Error(dt(308));Bh=e,Qy.dependencies={lanes:0,firstContext:e}}else Bh=Bh.next=e;return t}var Cd=null;function Hj(e){Cd===null?Cd=[e]:Cd.push(e)}function wL(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,Hj(t)):(r.next=a.next,a.next=r),t.interleaved=r,lc(e,n)}function lc(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Gc=!1;function Bj(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kL(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 Jl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Eu(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Hr&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,lc(e,r)}return a=n.interleaved,a===null?(t.next=t,Hj(n)):(t.next=a.next,a.next=t),n.interleaved=t,lc(e,r)}function py(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nj(e,r)}}function K7(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Jy(e,t,r,n){var a=e.updateQueue;Gc=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var d=c,f=d.next;d.next=null,i===null?o=f:i.next=f,i=d;var h=e.alternate;h!==null&&(h=h.updateQueue,c=h.lastBaseUpdate,c!==i&&(c===null?h.firstBaseUpdate=f:c.next=f,h.lastBaseUpdate=d))}if(o!==null){var p=a.baseState;i=0,h=f=d=null,c=o;do{var g=c.lane,S=c.eventTime;if((n&g)===g){h!==null&&(h=h.next={eventTime:S,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var b=e,v=c;switch(g=t,S=r,v.tag){case 1:if(b=v.payload,typeof b=="function"){p=b.call(S,p,g);break e}p=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,g=typeof b=="function"?b.call(S,p,g):b,g==null)break e;p=An({},p,g);break e;case 2:Gc=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,g=a.effects,g===null?a.effects=[c]:g.push(c))}else S={eventTime:S,lane:g,tag:c.tag,payload:c.payload,callback:c.callback,next:null},h===null?(f=h=S,d=p):h=h.next=S,i|=g;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;g=c,c=g.next,g.next=null,a.lastBaseUpdate=g,a.shared.pending=null}}while(!0);if(h===null&&(d=p),a.baseState=d,a.firstBaseUpdate=f,a.lastBaseUpdate=h,t=a.shared.interleaved,t!==null){a=t;do i|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);sf|=i,e.lanes=i,e.memoizedState=p}}function G7(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(dt(191,a));a.call(n)}}}var CL=new wR.Component().refs;function a3(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:An({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var O2={isMounted:function(e){return(e=e._reactInternals)?Ef(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ea(),a=_u(e),o=Jl(n,a);o.payload=t,r!=null&&(o.callback=r),t=Eu(e,o,a),t!==null&&(Di(t,e,a,n),py(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ea(),a=_u(e),o=Jl(n,a);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Eu(e,o,a),t!==null&&(Di(t,e,a,n),py(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ea(),n=_u(e),a=Jl(r,n);a.tag=2,t!=null&&(a.callback=t),t=Eu(e,a,n),t!==null&&(Di(t,e,n,r),py(t,e,n))}};function Y7(e,t,r,n,a,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Ug(r,n)||!Ug(a,o):!0}function SL(e,t,r){var n=!1,a=Du,o=t.contextType;return typeof o=="object"&&o!==null?o=Xo(o):(a=Xa(t)?tf:da.current,n=t.contextTypes,o=(n=n!=null)?Ip(e,a):Du),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=O2,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Z7(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&O2.enqueueReplaceState(t,t.state,null)}function o3(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs=CL,Bj(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=Xo(o):(o=Xa(t)?tf:da.current,a.context=Ip(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(a3(e,t,o,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&O2.enqueueReplaceState(a,a.state,null),Jy(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function g0(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(dt(309));var n=r.stateNode}if(!n)throw Error(dt(147,e));var a=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var c=a.refs;c===CL&&(c=a.refs={}),i===null?delete c[o]:c[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(dt(284));if(!r._owner)throw Error(dt(290,e))}return e}function dx(e,t){throw e=Object.prototype.toString.call(t),Error(dt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function X7(e){var t=e._init;return t(e._payload)}function jL(e){function t(C,j){if(e){var E=C.deletions;E===null?(C.deletions=[j],C.flags|=16):E.push(j)}}function r(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function n(C,j){for(C=new Map;j!==null;)j.key!==null?C.set(j.key,j):C.set(j.index,j),j=j.sibling;return C}function a(C,j){return C=Tu(C,j),C.index=0,C.sibling=null,C}function o(C,j,E){return C.index=E,e?(E=C.alternate,E!==null?(E=E.index,E<j?(C.flags|=2,j):E):(C.flags|=2,j)):(C.flags|=1048576,j)}function i(C){return e&&C.alternate===null&&(C.flags|=2),C}function c(C,j,E,N){return j===null||j.tag!==6?(j=LC(E,C.mode,N),j.return=C,j):(j=a(j,E),j.return=C,j)}function d(C,j,E,N){var M=E.type;return M===Rh?h(C,j,E.props.children,N,E.key):j!==null&&(j.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Kc&&X7(M)===j.type)?(N=a(j,E.props),N.ref=g0(C,j,E),N.return=C,N):(N=by(E.type,E.key,E.props,null,C.mode,N),N.ref=g0(C,j,E),N.return=C,N)}function f(C,j,E,N){return j===null||j.tag!==4||j.stateNode.containerInfo!==E.containerInfo||j.stateNode.implementation!==E.implementation?(j=OC(E,C.mode,N),j.return=C,j):(j=a(j,E.children||[]),j.return=C,j)}function h(C,j,E,N,M){return j===null||j.tag!==7?(j=Wd(E,C.mode,N,M),j.return=C,j):(j=a(j,E),j.return=C,j)}function p(C,j,E){if(typeof j=="string"&&j!==""||typeof j=="number")return j=LC(""+j,C.mode,E),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case ex:return E=by(j.type,j.key,j.props,null,C.mode,E),E.ref=g0(C,null,j),E.return=C,E;case Ah:return j=OC(j,C.mode,E),j.return=C,j;case Kc:var N=j._init;return p(C,N(j._payload),E)}if(G0(j)||d0(j))return j=Wd(j,C.mode,E,null),j.return=C,j;dx(C,j)}return null}function g(C,j,E,N){var M=j!==null?j.key:null;if(typeof E=="string"&&E!==""||typeof E=="number")return M!==null?null:c(C,j,""+E,N);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ex:return E.key===M?d(C,j,E,N):null;case Ah:return E.key===M?f(C,j,E,N):null;case Kc:return M=E._init,g(C,j,M(E._payload),N)}if(G0(E)||d0(E))return M!==null?null:h(C,j,E,N,null);dx(C,E)}return null}function S(C,j,E,N,M){if(typeof N=="string"&&N!==""||typeof N=="number")return C=C.get(E)||null,c(j,C,""+N,M);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case ex:return C=C.get(N.key===null?E:N.key)||null,d(j,C,N,M);case Ah:return C=C.get(N.key===null?E:N.key)||null,f(j,C,N,M);case Kc:var P=N._init;return S(C,j,E,P(N._payload),M)}if(G0(N)||d0(N))return C=C.get(E)||null,h(j,C,N,M,null);dx(j,N)}return null}function b(C,j,E,N){for(var M=null,P=null,D=j,A=j=0,O=null;D!==null&&A<E.length;A++){D.index>A?(O=D,D=null):O=D.sibling;var $=g(C,D,E[A],N);if($===null){D===null&&(D=O);break}e&&D&&$.alternate===null&&t(C,D),j=o($,j,A),P===null?M=$:P.sibling=$,P=$,D=O}if(A===E.length)return r(C,D),Sn&&hd(C,A),M;if(D===null){for(;A<E.length;A++)D=p(C,E[A],N),D!==null&&(j=o(D,j,A),P===null?M=D:P.sibling=D,P=D);return Sn&&hd(C,A),M}for(D=n(C,D);A<E.length;A++)O=S(D,C,A,E[A],N),O!==null&&(e&&O.alternate!==null&&D.delete(O.key===null?A:O.key),j=o(O,j,A),P===null?M=O:P.sibling=O,P=O);return e&&D.forEach(function(H){return t(C,H)}),Sn&&hd(C,A),M}function v(C,j,E,N){var M=d0(E);if(typeof M!="function")throw Error(dt(150));if(E=M.call(E),E==null)throw Error(dt(151));for(var P=M=null,D=j,A=j=0,O=null,$=E.next();D!==null&&!$.done;A++,$=E.next()){D.index>A?(O=D,D=null):O=D.sibling;var H=g(C,D,$.value,N);if(H===null){D===null&&(D=O);break}e&&D&&H.alternate===null&&t(C,D),j=o(H,j,A),P===null?M=H:P.sibling=H,P=H,D=O}if($.done)return r(C,D),Sn&&hd(C,A),M;if(D===null){for(;!$.done;A++,$=E.next())$=p(C,$.value,N),$!==null&&(j=o($,j,A),P===null?M=$:P.sibling=$,P=$);return Sn&&hd(C,A),M}for(D=n(C,D);!$.done;A++,$=E.next())$=S(D,C,A,$.value,N),$!==null&&(e&&$.alternate!==null&&D.delete($.key===null?A:$.key),j=o($,j,A),P===null?M=$:P.sibling=$,P=$);return e&&D.forEach(function(z){return t(C,z)}),Sn&&hd(C,A),M}function w(C,j,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 ex:e:{for(var M=E.key,P=j;P!==null;){if(P.key===M){if(M=E.type,M===Rh){if(P.tag===7){r(C,P.sibling),j=a(P,E.props.children),j.return=C,C=j;break e}}else if(P.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Kc&&X7(M)===P.type){r(C,P.sibling),j=a(P,E.props),j.ref=g0(C,P,E),j.return=C,C=j;break e}r(C,P);break}else t(C,P);P=P.sibling}E.type===Rh?(j=Wd(E.props.children,C.mode,N,E.key),j.return=C,C=j):(N=by(E.type,E.key,E.props,null,C.mode,N),N.ref=g0(C,j,E),N.return=C,C=N)}return i(C);case Ah:e:{for(P=E.key;j!==null;){if(j.key===P)if(j.tag===4&&j.stateNode.containerInfo===E.containerInfo&&j.stateNode.implementation===E.implementation){r(C,j.sibling),j=a(j,E.children||[]),j.return=C,C=j;break e}else{r(C,j);break}else t(C,j);j=j.sibling}j=OC(E,C.mode,N),j.return=C,C=j}return i(C);case Kc:return P=E._init,w(C,j,P(E._payload),N)}if(G0(E))return b(C,j,E,N);if(d0(E))return v(C,j,E,N);dx(C,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,j!==null&&j.tag===6?(r(C,j.sibling),j=a(j,E),j.return=C,C=j):(r(C,j),j=LC(E,C.mode,N),j.return=C,C=j),i(C)):r(C,j)}return w}var zp=jL(!0),EL=jL(!1),qv={},hl=Vu(qv),Kg=Vu(qv),Gg=Vu(qv);function Sd(e){if(e===qv)throw Error(dt(174));return e}function Uj(e,t){switch(pn(Gg,t),pn(Kg,e),pn(hl,qv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$S(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$S(t,e)}bn(hl),pn(hl,t)}function Fp(){bn(hl),bn(Kg),bn(Gg)}function NL(e){Sd(Gg.current);var t=Sd(hl.current),r=$S(t,e.type);t!==r&&(pn(Kg,e),pn(hl,r))}function Wj(e){Kg.current===e&&(bn(hl),bn(Kg))}var Mn=Vu(0);function eb(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var TC=[];function Vj(){for(var e=0;e<TC.length;e++)TC[e]._workInProgressVersionPrimary=null;TC.length=0}var my=yc.ReactCurrentDispatcher,MC=yc.ReactCurrentBatchConfig,nf=0,Dn=null,fs=null,Ss=null,tb=!1,fg=!1,Yg=0,FY=0;function Ys(){throw Error(dt(321))}function qj(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Li(e[r],t[r]))return!1;return!0}function Kj(e,t,r,n,a,o){if(nf=o,Dn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,my.current=e===null||e.memoizedState===null?WY:VY,e=r(n,a),fg){o=0;do{if(fg=!1,Yg=0,25<=o)throw Error(dt(301));o+=1,Ss=fs=null,t.updateQueue=null,my.current=qY,e=r(n,a)}while(fg)}if(my.current=rb,t=fs!==null&&fs.next!==null,nf=0,Ss=fs=Dn=null,tb=!1,t)throw Error(dt(300));return e}function Gj(){var e=Yg!==0;return Yg=0,e}function Zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ss===null?Dn.memoizedState=Ss=e:Ss=Ss.next=e,Ss}function Qo(){if(fs===null){var e=Dn.alternate;e=e!==null?e.memoizedState:null}else e=fs.next;var t=Ss===null?Dn.memoizedState:Ss.next;if(t!==null)Ss=t,fs=e;else{if(e===null)throw Error(dt(310));fs=e,e={memoizedState:fs.memoizedState,baseState:fs.baseState,baseQueue:fs.baseQueue,queue:fs.queue,next:null},Ss===null?Dn.memoizedState=Ss=e:Ss=Ss.next=e}return Ss}function Zg(e,t){return typeof t=="function"?t(e):t}function PC(e){var t=Qo(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=fs,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var i=a.next;a.next=o.next,o.next=i}n.baseQueue=a=o,r.pending=null}if(a!==null){o=a.next,n=n.baseState;var c=i=null,d=null,f=o;do{var h=f.lane;if((nf&h)===h)d!==null&&(d=d.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),n=f.hasEagerState?f.eagerState:e(n,f.action);else{var p={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};d===null?(c=d=p,i=n):d=d.next=p,Dn.lanes|=h,sf|=h}f=f.next}while(f!==null&&f!==o);d===null?i=n:d.next=c,Li(n,t.memoizedState)||(Ya=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=d,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do o=a.lane,Dn.lanes|=o,sf|=o,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function DC(e){var t=Qo(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var i=a=a.next;do o=e(o,i.action),i=i.next;while(i!==a);Li(o,t.memoizedState)||(Ya=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function _L(){}function TL(e,t){var r=Dn,n=Qo(),a=t(),o=!Li(n.memoizedState,a);if(o&&(n.memoizedState=a,Ya=!0),n=n.queue,Yj(DL.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||Ss!==null&&Ss.memoizedState.tag&1){if(r.flags|=2048,Xg(9,PL.bind(null,r,n,a,t),void 0,null),Ts===null)throw Error(dt(349));nf&30||ML(r,t,a)}return a}function ML(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Dn.updateQueue,t===null?(t={lastEffect:null,stores:null},Dn.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function PL(e,t,r,n){t.value=r,t.getSnapshot=n,AL(t)&&RL(e)}function DL(e,t,r){return r(function(){AL(t)&&RL(e)})}function AL(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Li(e,r)}catch(n){return!0}}function RL(e){var t=lc(e,1);t!==null&&Di(t,e,1,-1)}function Q7(e){var t=Zi();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zg,lastRenderedState:e},t.queue=e,e=e.dispatch=UY.bind(null,Dn,e),[t.memoizedState,e]}function Xg(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Dn.updateQueue,t===null?(t={lastEffect:null,stores:null},Dn.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function LL(){return Qo().memoizedState}function gy(e,t,r,n){var a=Zi();Dn.flags|=e,a.memoizedState=Xg(1|t,r,void 0,n===void 0?null:n)}function I2(e,t,r,n){var a=Qo();n=n===void 0?null:n;var o=void 0;if(fs!==null){var i=fs.memoizedState;if(o=i.destroy,n!==null&&qj(n,i.deps)){a.memoizedState=Xg(t,r,o,n);return}}Dn.flags|=e,a.memoizedState=Xg(1|t,r,o,n)}function J7(e,t){return gy(8390656,8,e,t)}function Yj(e,t){return I2(2048,8,e,t)}function OL(e,t){return I2(4,2,e,t)}function IL(e,t){return I2(4,4,e,t)}function $L(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 zL(e,t,r){return r=r!=null?r.concat([e]):null,I2(4,4,$L.bind(null,t,e),r)}function Zj(){}function FL(e,t){var r=Qo();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&qj(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function HL(e,t){var r=Qo();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&qj(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function BL(e,t,r){return nf&21?(Li(r,t)||(r=VR(),Dn.lanes|=r,sf|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ya=!0),e.memoizedState=r)}function HY(e,t){var r=sn;sn=r!==0&&4>r?r:4,e(!0);var n=MC.transition;MC.transition={};try{e(!1),t()}finally{sn=r,MC.transition=n}}function UL(){return Qo().memoizedState}function BY(e,t,r){var n=_u(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},WL(e))VL(t,r);else if(r=wL(e,t,r,n),r!==null){var a=Ea();Di(r,e,n,a),qL(r,t,n)}}function UY(e,t,r){var n=_u(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(WL(e))VL(t,a);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,r);if(a.hasEagerState=!0,a.eagerState=c,Li(c,i)){var d=t.interleaved;d===null?(a.next=a,Hj(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch(f){}finally{}r=wL(e,t,a,n),r!==null&&(a=Ea(),Di(r,e,n,a),qL(r,t,n))}}function WL(e){var t=e.alternate;return e===Dn||t!==null&&t===Dn}function VL(e,t){fg=tb=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function qL(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Nj(e,r)}}var rb={readContext:Xo,useCallback:Ys,useContext:Ys,useEffect:Ys,useImperativeHandle:Ys,useInsertionEffect:Ys,useLayoutEffect:Ys,useMemo:Ys,useReducer:Ys,useRef:Ys,useState:Ys,useDebugValue:Ys,useDeferredValue:Ys,useTransition:Ys,useMutableSource:Ys,useSyncExternalStore:Ys,useId:Ys,unstable_isNewReconciler:!1},WY={readContext:Xo,useCallback:function(e,t){return Zi().memoizedState=[e,t===void 0?null:t],e},useContext:Xo,useEffect:J7,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,gy(4194308,4,$L.bind(null,t,e),r)},useLayoutEffect:function(e,t){return gy(4194308,4,e,t)},useInsertionEffect:function(e,t){return gy(4,2,e,t)},useMemo:function(e,t){var r=Zi();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Zi();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=BY.bind(null,Dn,e),[n.memoizedState,e]},useRef:function(e){var t=Zi();return e={current:e},t.memoizedState=e},useState:Q7,useDebugValue:Zj,useDeferredValue:function(e){return Zi().memoizedState=e},useTransition:function(){var e=Q7(!1),t=e[0];return e=HY.bind(null,e[1]),Zi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Dn,a=Zi();if(Sn){if(r===void 0)throw Error(dt(407));r=r()}else{if(r=t(),Ts===null)throw Error(dt(349));nf&30||ML(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,J7(DL.bind(null,n,o,e),[e]),n.flags|=2048,Xg(9,PL.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Zi(),t=Ts.identifierPrefix;if(Sn){var r=Zl,n=Yl;r=(n&~(1<<32-Pi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Yg++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=FY++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VY={readContext:Xo,useCallback:FL,useContext:Xo,useEffect:Yj,useImperativeHandle:zL,useInsertionEffect:OL,useLayoutEffect:IL,useMemo:HL,useReducer:PC,useRef:LL,useState:function(){return PC(Zg)},useDebugValue:Zj,useDeferredValue:function(e){var t=Qo();return BL(t,fs.memoizedState,e)},useTransition:function(){var e=PC(Zg)[0],t=Qo().memoizedState;return[e,t]},useMutableSource:_L,useSyncExternalStore:TL,useId:UL,unstable_isNewReconciler:!1},qY={readContext:Xo,useCallback:FL,useContext:Xo,useEffect:Yj,useImperativeHandle:zL,useInsertionEffect:OL,useLayoutEffect:IL,useMemo:HL,useReducer:DC,useRef:LL,useState:function(){return DC(Zg)},useDebugValue:Zj,useDeferredValue:function(e){var t=Qo();return fs===null?t.memoizedState=e:BL(t,fs.memoizedState,e)},useTransition:function(){var e=DC(Zg)[0],t=Qo().memoizedState;return[e,t]},useMutableSource:_L,useSyncExternalStore:TL,useId:UL,unstable_isNewReconciler:!1};function Hp(e,t){try{var r="",n=t;do r+=bG(n),n=n.return;while(n);var a=r}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function AC(e,t,r){return{value:e,source:null,stack:r!=null?r:null,digest:t!=null?t:null}}function i3(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var KY=typeof WeakMap=="function"?WeakMap:Map;function KL(e,t,r){r=Jl(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){sb||(sb=!0,v3=n),i3(e,t)},r}function GL(e,t,r){r=Jl(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){i3(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){i3(e,t),typeof n!="function"&&(Nu===null?Nu=new Set([this]):Nu.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function eT(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new KY;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=iZ.bind(null,e,t,r),t.then(e,e))}function tT(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 rT(e,t,r,n,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Jl(-1,1),t.tag=2,Eu(r,t,1))),r.lanes|=1),e)}var GY=yc.ReactCurrentOwner,Ya=!1;function Ca(e,t,r,n){t.child=e===null?EL(t,null,r,n):zp(t,e.child,r,n)}function nT(e,t,r,n,a){r=r.render;var o=t.ref;return op(t,a),n=Kj(e,t,r,n,o,a),r=Gj(),e!==null&&!Ya?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,cc(e,t,a)):(Sn&&r&&Lj(t),t.flags|=1,Ca(e,t,n,a),t.child)}function sT(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!sE(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,YL(e,t,o,n,a)):(e=by(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&a)){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:Ug,r(i,n)&&e.ref===t.ref)return cc(e,t,a)}return t.flags|=1,e=Tu(o,n),e.ref=t.ref,e.return=t,t.child=e}function YL(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(Ug(o,n)&&e.ref===t.ref)if(Ya=!1,t.pendingProps=n=o,(e.lanes&a)!==0)e.flags&131072&&(Ya=!0);else return t.lanes=e.lanes,cc(e,t,a)}return l3(e,t,r,n,a)}function ZL(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pn(Wh,mo),mo|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pn(Wh,mo),mo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,pn(Wh,mo),mo|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,pn(Wh,mo),mo|=n;return Ca(e,t,a,r),t.child}function XL(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function l3(e,t,r,n,a){var o=Xa(r)?tf:da.current;return o=Ip(t,o),op(t,a),r=Kj(e,t,r,n,o,a),n=Gj(),e!==null&&!Ya?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,cc(e,t,a)):(Sn&&n&&Lj(t),t.flags|=1,Ca(e,t,r,a),t.child)}function aT(e,t,r,n,a){if(Xa(r)){var o=!0;Gy(t)}else o=!1;if(op(t,a),t.stateNode===null)vy(e,t),SL(t,r,n),o3(t,r,n,a),n=!0;else if(e===null){var i=t.stateNode,c=t.memoizedProps;i.props=c;var d=i.context,f=r.contextType;typeof f=="object"&&f!==null?f=Xo(f):(f=Xa(r)?tf:da.current,f=Ip(t,f));var h=r.getDerivedStateFromProps,p=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function";p||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==n||d!==f)&&Z7(t,i,n,f),Gc=!1;var g=t.memoizedState;i.state=g,Jy(t,n,i,a),d=t.memoizedState,c!==n||g!==d||Za.current||Gc?(typeof h=="function"&&(a3(t,r,h,n),d=t.memoizedState),(c=Gc||Y7(t,r,c,n,g,d,f))?(p||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=n,t.memoizedState=d),i.props=n,i.state=d,i.context=f,n=c):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,kL(e,t),c=t.memoizedProps,f=t.type===t.elementType?c:mi(t.type,c),i.props=f,p=t.pendingProps,g=i.context,d=r.contextType,typeof d=="object"&&d!==null?d=Xo(d):(d=Xa(r)?tf:da.current,d=Ip(t,d));var S=r.getDerivedStateFromProps;(h=typeof S=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==p||g!==d)&&Z7(t,i,n,d),Gc=!1,g=t.memoizedState,i.state=g,Jy(t,n,i,a);var b=t.memoizedState;c!==p||g!==b||Za.current||Gc?(typeof S=="function"&&(a3(t,r,S,n),b=t.memoizedState),(f=Gc||Y7(t,r,f,n,g,b,d)||!1)?(h||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,b,d),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,b,d)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=b),i.props=n,i.state=b,i.context=d,n=f):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return c3(e,t,r,n,o,a)}function c3(e,t,r,n,a,o){XL(e,t);var i=(t.flags&128)!==0;if(!n&&!i)return a&&W7(t,r,!1),cc(e,t,o);n=t.stateNode,GY.current=t;var c=i&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&i?(t.child=zp(t,e.child,null,o),t.child=zp(t,null,c,o)):Ca(e,t,c,o),t.memoizedState=n.state,a&&W7(t,r,!0),t.child}function QL(e){var t=e.stateNode;t.pendingContext?U7(e,t.pendingContext,t.pendingContext!==t.context):t.context&&U7(e,t.context,!1),Uj(e,t.containerInfo)}function oT(e,t,r,n,a){return $p(),Ij(a),t.flags|=256,Ca(e,t,r,n),t.child}var u3={dehydrated:null,treeContext:null,retryLane:0};function d3(e){return{baseLanes:e,cachePool:null,transitions:null}}function JL(e,t,r){var n=t.pendingProps,a=Mn.current,o=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(a&2)!==0),c?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),pn(Mn,a&1),e===null)return n3(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=n.children,e=n.fallback,o?(n=t.mode,o=t.child,i={mode:"hidden",children:i},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=F2(i,n,0,null),e=Wd(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=d3(r),t.memoizedState=u3,e):Xj(t,i));if(a=e.memoizedState,a!==null&&(c=a.dehydrated,c!==null))return YY(e,t,i,n,c,a,r);if(o){o=n.fallback,i=t.mode,a=e.child,c=a.sibling;var d={mode:"hidden",children:n.children};return!(i&1)&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=d,t.deletions=null):(n=Tu(a,d),n.subtreeFlags=a.subtreeFlags&14680064),c!==null?o=Tu(c,o):(o=Wd(o,i,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,i=e.child.memoizedState,i=i===null?d3(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=u3,n}return o=e.child,e=o.sibling,n=Tu(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Xj(e,t){return t=F2({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function fx(e,t,r,n){return n!==null&&Ij(n),zp(t,e.child,null,r),e=Xj(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function YY(e,t,r,n,a,o,i){if(r)return t.flags&256?(t.flags&=-257,n=AC(Error(dt(422))),fx(e,t,i,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=F2({mode:"visible",children:n.children},a,0,null),o=Wd(o,a,i,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&zp(t,e.child,null,i),t.child.memoizedState=d3(i),t.memoizedState=u3,o);if(!(t.mode&1))return fx(e,t,i,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var c=n.dgst;return n=c,o=Error(dt(419)),n=AC(o,n,void 0),fx(e,t,i,n)}if(c=(i&e.childLanes)!==0,Ya||c){if(n=Ts,n!==null){switch(i&-i){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(n.suspendedLanes|i)?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,lc(e,a),Di(n,e,a,-1))}return nE(),n=AC(Error(dt(421))),fx(e,t,i,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=lZ.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,yo=ju(a.nextSibling),wo=t,Sn=!0,ki=null,e!==null&&(Bo[Uo++]=Yl,Bo[Uo++]=Zl,Bo[Uo++]=rf,Yl=e.id,Zl=e.overflow,rf=t),t=Xj(t,n.children),t.flags|=4096,t)}function iT(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),s3(e.return,t,r)}function RC(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function eO(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(Ca(e,t,n.children,r),n=Mn.current,n&2)n=n&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&&iT(e,r,t);else if(e.tag===19)iT(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(pn(Mn,n),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&eb(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),RC(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&eb(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}RC(t,!0,r,null,o);break;case"together":RC(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vy(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function cc(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),sf|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,r=Tu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Tu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function ZY(e,t,r){switch(t.tag){case 3:QL(t),$p();break;case 5:NL(t);break;case 1:Xa(t.type)&&Gy(t);break;case 4:Uj(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;pn(Xy,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(pn(Mn,Mn.current&1),t.flags|=128,null):r&t.child.childLanes?JL(e,t,r):(pn(Mn,Mn.current&1),e=cc(e,t,r),e!==null?e.sibling:null);pn(Mn,Mn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return eO(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),pn(Mn,Mn.current),n)break;return null;case 22:case 23:return t.lanes=0,ZL(e,t,r)}return cc(e,t,r)}var tO,f3,rO,nO;tO=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};f3=function(){};rO=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Sd(hl.current);var o=null;switch(r){case"input":a=RS(e,a),n=RS(e,n),o=[];break;case"select":a=An({},a,{value:void 0}),n=An({},n,{value:void 0}),o=[];break;case"textarea":a=IS(e,a),n=IS(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=qy)}zS(r,n);var i;r=null;for(f in a)if(!n.hasOwnProperty(f)&&a.hasOwnProperty(f)&&a[f]!=null)if(f==="style"){var c=a[f];for(i in c)c.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Og.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in n){var d=n[f];if(c=a!=null?a[f]:void 0,n.hasOwnProperty(f)&&d!==c&&(d!=null||c!=null))if(f==="style")if(c){for(i in c)!c.hasOwnProperty(i)||d&&d.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in d)d.hasOwnProperty(i)&&c[i]!==d[i]&&(r||(r={}),r[i]=d[i])}else r||(o||(o=[]),o.push(f,r)),r=d;else f==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,c=c?c.__html:void 0,d!=null&&c!==d&&(o=o||[]).push(f,d)):f==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(f,""+d):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Og.hasOwnProperty(f)?(d!=null&&f==="onScroll"&&xn("scroll",e),o||c===d||(o=[])):(o=o||[]).push(f,d))}r&&(o=o||[]).push("style",r);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};nO=function(e,t,r,n){r!==n&&(t.flags|=4)};function v0(e,t){if(!Sn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Zs(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function XY(e,t,r){var n=t.pendingProps;switch(Oj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zs(t),null;case 1:return Xa(t.type)&&Ky(),Zs(t),null;case 3:return n=t.stateNode,Fp(),bn(Za),bn(da),Vj(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ux(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ki!==null&&(b3(ki),ki=null))),f3(e,t),Zs(t),null;case 5:Wj(t);var a=Sd(Gg.current);if(r=t.type,e!==null&&t.stateNode!=null)rO(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(dt(166));return Zs(t),null}if(e=Sd(hl.current),ux(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[al]=t,n[qg]=o,e=(t.mode&1)!==0,r){case"dialog":xn("cancel",n),xn("close",n);break;case"iframe":case"object":case"embed":xn("load",n);break;case"video":case"audio":for(a=0;a<Z0.length;a++)xn(Z0[a],n);break;case"source":xn("error",n);break;case"img":case"image":case"link":xn("error",n),xn("load",n);break;case"details":xn("toggle",n);break;case"input":g7(n,o),xn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},xn("invalid",n);break;case"textarea":x7(n,o),xn("invalid",n)}zS(r,o),a=null;for(var i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="children"?typeof c=="string"?n.textContent!==c&&(o.suppressHydrationWarning!==!0&&cx(n.textContent,c,e),a=["children",c]):typeof c=="number"&&n.textContent!==""+c&&(o.suppressHydrationWarning!==!0&&cx(n.textContent,c,e),a=["children",""+c]):Og.hasOwnProperty(i)&&c!=null&&i==="onScroll"&&xn("scroll",n)}switch(r){case"input":tx(n),v7(n,o,!0);break;case"textarea":tx(n),y7(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=qy)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{i=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=MR(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),r==="select"&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[al]=t,e[qg]=n,tO(e,t,!1,!1),t.stateNode=e;e:{switch(i=FS(r,n),r){case"dialog":xn("cancel",e),xn("close",e),a=n;break;case"iframe":case"object":case"embed":xn("load",e),a=n;break;case"video":case"audio":for(a=0;a<Z0.length;a++)xn(Z0[a],e);a=n;break;case"source":xn("error",e),a=n;break;case"img":case"image":case"link":xn("error",e),xn("load",e),a=n;break;case"details":xn("toggle",e),a=n;break;case"input":g7(e,n),a=RS(e,n),xn("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=An({},n,{value:void 0}),xn("invalid",e);break;case"textarea":x7(e,n),a=IS(e,n),xn("invalid",e);break;default:a=n}zS(r,a),c=a;for(o in c)if(c.hasOwnProperty(o)){var d=c[o];o==="style"?AR(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&PR(e,d)):o==="children"?typeof d=="string"?(r!=="textarea"||d!=="")&&Ig(e,d):typeof d=="number"&&Ig(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Og.hasOwnProperty(o)?d!=null&&o==="onScroll"&&xn("scroll",e):d!=null&&wj(e,o,d,i))}switch(r){case"input":tx(e),v7(e,n,!1);break;case"textarea":tx(e),y7(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Pu(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?rp(e,!!n.multiple,o,!1):n.defaultValue!=null&&rp(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=qy)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Zs(t),null;case 6:if(e&&t.stateNode!=null)nO(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(dt(166));if(r=Sd(Gg.current),Sd(hl.current),ux(t)){if(n=t.stateNode,r=t.memoizedProps,n[al]=t,(o=n.nodeValue!==r)&&(e=wo,e!==null))switch(e.tag){case 3:cx(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&cx(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[al]=t,t.stateNode=n}return Zs(t),null;case 13:if(bn(Mn),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sn&&yo!==null&&t.mode&1&&!(t.flags&128))bL(),$p(),t.flags|=98560,o=!1;else if(o=ux(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(dt(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(dt(317));o[al]=t}else $p(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zs(t),o=!1}else ki!==null&&(b3(ki),ki=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Mn.current&1?gs===0&&(gs=3):nE())),t.updateQueue!==null&&(t.flags|=4),Zs(t),null);case 4:return Fp(),f3(e,t),e===null&&Wg(t.stateNode.containerInfo),Zs(t),null;case 10:return Fj(t.type._context),Zs(t),null;case 17:return Xa(t.type)&&Ky(),Zs(t),null;case 19:if(bn(Mn),o=t.memoizedState,o===null)return Zs(t),null;if(n=(t.flags&128)!==0,i=o.rendering,i===null)if(n)v0(o,!1);else{if(gs!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=eb(e),i!==null){for(t.flags|=128,v0(o,!1),n=i.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,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}),r=r.sibling;return pn(Mn,Mn.current&1|2),t.child}e=e.sibling}o.tail!==null&&Yn()>Bp&&(t.flags|=128,n=!0,v0(o,!1),t.lanes=4194304)}else{if(!n)if(e=eb(i),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),v0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Sn)return Zs(t),null}else 2*Yn()-o.renderingStartTime>Bp&&r!==1073741824&&(t.flags|=128,n=!0,v0(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Yn(),t.sibling=null,r=Mn.current,pn(Mn,n?r&1|2:r&1),t):(Zs(t),null);case 22:case 23:return rE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?mo&1073741824&&(Zs(t),t.subtreeFlags&6&&(t.flags|=8192)):Zs(t),null;case 24:return null;case 25:return null}throw Error(dt(156,t.tag))}function QY(e,t){switch(Oj(t),t.tag){case 1:return Xa(t.type)&&Ky(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fp(),bn(Za),bn(da),Vj(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Wj(t),null;case 13:if(bn(Mn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(dt(340));$p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bn(Mn),null;case 4:return Fp(),null;case 10:return Fj(t.type._context),null;case 22:case 23:return rE(),null;case 24:return null;default:return null}}var hx=!1,ra=!1,JY=typeof WeakSet=="function"?WeakSet:Set,Ut=null;function Uh(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){zn(e,t,n)}else r.current=null}function h3(e,t,r){try{r()}catch(n){zn(e,t,n)}}var lT=!1;function eZ(e,t){if(ZS=Uy,e=iL(),Rj(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(N){r=null;break e}var i=0,c=-1,d=-1,f=0,h=0,p=e,g=null;t:for(;;){for(var S;p!==r||a!==0&&p.nodeType!==3||(c=i+a),p!==o||n!==0&&p.nodeType!==3||(d=i+n),p.nodeType===3&&(i+=p.nodeValue.length),(S=p.firstChild)!==null;)g=p,p=S;for(;;){if(p===e)break t;if(g===r&&++f===a&&(c=i),g===o&&++h===n&&(d=i),(S=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=S}r=c===-1||d===-1?null:{start:c,end:d}}else r=null}r=r||{start:0,end:0}}else r=null;for(XS={focusedElem:e,selectionRange:r},Uy=!1,Ut=t;Ut!==null;)if(t=Ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ut=e;else for(;Ut!==null;){t=Ut;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 v=b.memoizedProps,w=b.memoizedState,C=t.stateNode,j=C.getSnapshotBeforeUpdate(t.elementType===t.type?v:mi(t.type,v),w);C.__reactInternalSnapshotBeforeUpdate=j}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(dt(163))}}catch(N){zn(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,Ut=e;break}Ut=t.return}return b=lT,lT=!1,b}function hg(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&h3(t,r,o)}a=a.next}while(a!==n)}}function $2(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function p3(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sO(e){var t=e.alternate;t!==null&&(e.alternate=null,sO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[al],delete t[qg],delete t[e3],delete t[OY],delete t[IY])),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 aO(e){return e.tag===5||e.tag===3||e.tag===4}function cT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aO(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 m3(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=qy));else if(n!==4&&(e=e.child,e!==null))for(m3(e,t,r),e=e.sibling;e!==null;)m3(e,t,r),e=e.sibling}function g3(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(g3(e,t,r),e=e.sibling;e!==null;)g3(e,t,r),e=e.sibling}var Ls=null,yi=!1;function Rc(e,t,r){for(r=r.child;r!==null;)oO(e,t,r),r=r.sibling}function oO(e,t,r){if(fl&&typeof fl.onCommitFiberUnmount=="function")try{fl.onCommitFiberUnmount(M2,r)}catch(c){}switch(r.tag){case 5:ra||Uh(r,t);case 6:var n=Ls,a=yi;Ls=null,Rc(e,t,r),Ls=n,yi=a,Ls!==null&&(yi?(e=Ls,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ls.removeChild(r.stateNode));break;case 18:Ls!==null&&(yi?(e=Ls,r=r.stateNode,e.nodeType===8?NC(e.parentNode,r):e.nodeType===1&&NC(e,r),Hg(e)):NC(Ls,r.stateNode));break;case 4:n=Ls,a=yi,Ls=r.stateNode.containerInfo,yi=!0,Rc(e,t,r),Ls=n,yi=a;break;case 0:case 11:case 14:case 15:if(!ra&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&h3(r,t,i),a=a.next}while(a!==n)}Rc(e,t,r);break;case 1:if(!ra&&(Uh(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(c){zn(r,t,c)}Rc(e,t,r);break;case 21:Rc(e,t,r);break;case 22:r.mode&1?(ra=(n=ra)||r.memoizedState!==null,Rc(e,t,r),ra=n):Rc(e,t,r);break;default:Rc(e,t,r)}}function uT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JY),t.forEach(function(n){var a=cZ.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function fi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var o=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 5:Ls=c.stateNode,yi=!1;break e;case 3:Ls=c.stateNode.containerInfo,yi=!0;break e;case 4:Ls=c.stateNode.containerInfo,yi=!0;break e}c=c.return}if(Ls===null)throw Error(dt(160));oO(o,i,a),Ls=null,yi=!1;var d=a.alternate;d!==null&&(d.return=null),a.return=null}catch(f){zn(a,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)iO(t,e),t=t.sibling}function iO(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fi(t,e),Ki(e),n&4){try{hg(3,e,e.return),$2(3,e)}catch(v){zn(e,e.return,v)}try{hg(5,e,e.return)}catch(v){zn(e,e.return,v)}}break;case 1:fi(t,e),Ki(e),n&512&&r!==null&&Uh(r,r.return);break;case 5:if(fi(t,e),Ki(e),n&512&&r!==null&&Uh(r,r.return),e.flags&32){var a=e.stateNode;try{Ig(a,"")}catch(v){zn(e,e.return,v)}}if(n&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{c==="input"&&o.type==="radio"&&o.name!=null&&_R(a,o),FS(c,i);var f=FS(c,o);for(i=0;i<d.length;i+=2){var h=d[i],p=d[i+1];h==="style"?AR(a,p):h==="dangerouslySetInnerHTML"?PR(a,p):h==="children"?Ig(a,p):wj(a,h,p,f)}switch(c){case"input":LS(a,o);break;case"textarea":TR(a,o);break;case"select":var g=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var S=o.value;S!=null?rp(a,!!o.multiple,S,!1):g!==!!o.multiple&&(o.defaultValue!=null?rp(a,!!o.multiple,o.defaultValue,!0):rp(a,!!o.multiple,o.multiple?[]:"",!1))}a[qg]=o}catch(v){zn(e,e.return,v)}}break;case 6:if(fi(t,e),Ki(e),n&4){if(e.stateNode===null)throw Error(dt(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(v){zn(e,e.return,v)}}break;case 3:if(fi(t,e),Ki(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Hg(t.containerInfo)}catch(v){zn(e,e.return,v)}break;case 4:fi(t,e),Ki(e);break;case 13:fi(t,e),Ki(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(eE=Yn())),n&4&&uT(e);break;case 22:if(h=r!==null&&r.memoizedState!==null,e.mode&1?(ra=(f=ra)||h,fi(t,e),ra=f):fi(t,e),Ki(e),n&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(Ut=e,h=e.child;h!==null;){for(p=Ut=h;Ut!==null;){switch(g=Ut,S=g.child,g.tag){case 0:case 11:case 14:case 15:hg(4,g,g.return);break;case 1:Uh(g,g.return);var b=g.stateNode;if(typeof b.componentWillUnmount=="function"){n=g,r=g.return;try{t=n,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(v){zn(n,r,v)}}break;case 5:Uh(g,g.return);break;case 22:if(g.memoizedState!==null){fT(p);continue}}S!==null?(S.return=g,Ut=S):fT(p)}h=h.sibling}e:for(h=null,p=e;;){if(p.tag===5){if(h===null){h=p;try{a=p.stateNode,f?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(c=p.stateNode,d=p.memoizedProps.style,i=d!=null&&d.hasOwnProperty("display")?d.display:null,c.style.display=DR("display",i))}catch(v){zn(e,e.return,v)}}}else if(p.tag===6){if(h===null)try{p.stateNode.nodeValue=f?"":p.memoizedProps}catch(v){zn(e,e.return,v)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:fi(t,e),Ki(e),n&4&&uT(e);break;case 21:break;default:fi(t,e),Ki(e)}}function Ki(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(aO(r)){var n=r;break e}r=r.return}throw Error(dt(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Ig(a,""),n.flags&=-33);var o=cT(e);g3(e,o,a);break;case 3:case 4:var i=n.stateNode.containerInfo,c=cT(e);m3(e,c,i);break;default:throw Error(dt(161))}}catch(d){zn(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tZ(e,t,r){Ut=e,lO(e)}function lO(e,t,r){for(var n=(e.mode&1)!==0;Ut!==null;){var a=Ut,o=a.child;if(a.tag===22&&n){var i=a.memoizedState!==null||hx;if(!i){var c=a.alternate,d=c!==null&&c.memoizedState!==null||ra;c=hx;var f=ra;if(hx=i,(ra=d)&&!f)for(Ut=a;Ut!==null;)i=Ut,d=i.child,i.tag===22&&i.memoizedState!==null?hT(a):d!==null?(d.return=i,Ut=d):hT(a);for(;o!==null;)Ut=o,lO(o),o=o.sibling;Ut=a,hx=c,ra=f}dT(e)}else a.subtreeFlags&8772&&o!==null?(o.return=a,Ut=o):dT(e)}}function dT(e){for(;Ut!==null;){var t=Ut;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ra||$2(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ra)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:mi(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&G7(t,o,n);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}G7(t,i,r)}break;case 5:var c=t.stateNode;if(r===null&&t.flags&4){r=c;var d=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&r.focus();break;case"img":d.src&&(r.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var p=h.dehydrated;p!==null&&Hg(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(dt(163))}ra||t.flags&512&&p3(t)}catch(g){zn(t,t.return,g)}}if(t===e){Ut=null;break}if(r=t.sibling,r!==null){r.return=t.return,Ut=r;break}Ut=t.return}}function fT(e){for(;Ut!==null;){var t=Ut;if(t===e){Ut=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Ut=r;break}Ut=t.return}}function hT(e){for(;Ut!==null;){var t=Ut;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{$2(4,t)}catch(d){zn(t,r,d)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(d){zn(t,a,d)}}var o=t.return;try{p3(t)}catch(d){zn(t,o,d)}break;case 5:var i=t.return;try{p3(t)}catch(d){zn(t,i,d)}}}catch(d){zn(t,t.return,d)}if(t===e){Ut=null;break}var c=t.sibling;if(c!==null){c.return=t.return,Ut=c;break}Ut=t.return}}var rZ=Math.ceil,nb=yc.ReactCurrentDispatcher,Qj=yc.ReactCurrentOwner,Ko=yc.ReactCurrentBatchConfig,Hr=0,Ts=null,ts=null,Bs=0,mo=0,Wh=Vu(0),gs=0,Qg=null,sf=0,z2=0,Jj=0,pg=null,Va=null,eE=0,Bp=1/0,zl=null,sb=!1,v3=null,Nu=null,px=!1,xu=null,ab=0,mg=0,x3=null,xy=-1,yy=0;function Ea(){return Hr&6?Yn():xy!==-1?xy:xy=Yn()}function _u(e){return e.mode&1?Hr&2&&Bs!==0?Bs&-Bs:zY.transition!==null?(yy===0&&(yy=VR()),yy):(e=sn,e!==0||(e=window.event,e=e===void 0?16:QR(e.type)),e):1}function Di(e,t,r,n){if(50<mg)throw mg=0,x3=null,Error(dt(185));Uv(e,r,n),(!(Hr&2)||e!==Ts)&&(e===Ts&&(!(Hr&2)&&(z2|=r),gs===4&&nu(e,Bs)),Qa(e,n),r===1&&Hr===0&&!(t.mode&1)&&(Bp=Yn()+500,L2&&qu()))}function Qa(e,t){var r=e.callbackNode;zG(e,t);var n=By(e,e===Ts?Bs:0);if(n===0)r!==null&&k7(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&k7(r),t===1)e.tag===0?$Y(pT.bind(null,e)):vL(pT.bind(null,e)),RY(function(){!(Hr&6)&&qu()}),r=null;else{switch(qR(n)){case 1:r=Ej;break;case 4:r=UR;break;case 16:r=Hy;break;case 536870912:r=WR;break;default:r=Hy}r=gO(r,cO.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function cO(e,t){if(xy=-1,yy=0,Hr&6)throw Error(dt(327));var r=e.callbackNode;if(ip()&&e.callbackNode!==r)return null;var n=By(e,e===Ts?Bs:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=ob(e,n);else{t=n;var a=Hr;Hr|=2;var o=dO();(Ts!==e||Bs!==t)&&(zl=null,Bp=Yn()+500,Ud(e,t));do try{aZ();break}catch(c){uO(e,c)}while(!0);zj(),nb.current=o,Hr=a,ts!==null?t=0:(Ts=null,Bs=0,t=gs)}if(t!==0){if(t===2&&(a=VS(e),a!==0&&(n=a,t=y3(e,a))),t===1)throw r=Qg,Ud(e,0),nu(e,n),Qa(e,Yn()),r;if(t===6)nu(e,n);else{if(a=e.current.alternate,!(n&30)&&!nZ(a)&&(t=ob(e,n),t===2&&(o=VS(e),o!==0&&(n=o,t=y3(e,o))),t===1))throw r=Qg,Ud(e,0),nu(e,n),Qa(e,Yn()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(dt(345));case 2:pd(e,Va,zl);break;case 3:if(nu(e,n),(n&130023424)===n&&(t=eE+500-Yn(),10<t)){if(By(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Ea(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=JS(pd.bind(null,e,Va,zl),t);break}pd(e,Va,zl);break;case 4:if(nu(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var i=31-Pi(n);o=1<<i,i=t[i],i>a&&(a=i),n&=~o}if(n=a,n=Yn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*rZ(n/1960))-n,10<n){e.timeoutHandle=JS(pd.bind(null,e,Va,zl),n);break}pd(e,Va,zl);break;case 5:pd(e,Va,zl);break;default:throw Error(dt(329))}}}return Qa(e,Yn()),e.callbackNode===r?cO.bind(null,e):null}function y3(e,t){var r=pg;return e.current.memoizedState.isDehydrated&&(Ud(e,t).flags|=256),e=ob(e,t),e!==2&&(t=Va,Va=r,t!==null&&b3(t)),e}function b3(e){Va===null?Va=e:Va.push.apply(Va,e)}function nZ(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],o=a.getSnapshot;a=a.value;try{if(!Li(o(),a))return!1}catch(i){return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nu(e,t){for(t&=~Jj,t&=~z2,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Pi(t),n=1<<r;e[r]=-1,t&=~n}}function pT(e){if(Hr&6)throw Error(dt(327));ip();var t=By(e,0);if(!(t&1))return Qa(e,Yn()),null;var r=ob(e,t);if(e.tag!==0&&r===2){var n=VS(e);n!==0&&(t=n,r=y3(e,n))}if(r===1)throw r=Qg,Ud(e,0),nu(e,t),Qa(e,Yn()),r;if(r===6)throw Error(dt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pd(e,Va,zl),Qa(e,Yn()),null}function tE(e,t){var r=Hr;Hr|=1;try{return e(t)}finally{Hr=r,Hr===0&&(Bp=Yn()+500,L2&&qu())}}function af(e){xu!==null&&xu.tag===0&&!(Hr&6)&&ip();var t=Hr;Hr|=1;var r=Ko.transition,n=sn;try{if(Ko.transition=null,sn=1,e)return e()}finally{sn=n,Ko.transition=r,Hr=t,!(Hr&6)&&qu()}}function rE(){mo=Wh.current,bn(Wh)}function Ud(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,AY(r)),ts!==null)for(r=ts.return;r!==null;){var n=r;switch(Oj(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ky();break;case 3:Fp(),bn(Za),bn(da),Vj();break;case 5:Wj(n);break;case 4:Fp();break;case 13:bn(Mn);break;case 19:bn(Mn);break;case 10:Fj(n.type._context);break;case 22:case 23:rE()}r=r.return}if(Ts=e,ts=e=Tu(e.current,null),Bs=mo=t,gs=0,Qg=null,Jj=z2=sf=0,Va=pg=null,Cd!==null){for(t=0;t<Cd.length;t++)if(r=Cd[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,o=r.pending;if(o!==null){var i=o.next;o.next=a,n.next=i}r.pending=n}Cd=null}return e}function uO(e,t){do{var r=ts;try{if(zj(),my.current=rb,tb){for(var n=Dn.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}tb=!1}if(nf=0,Ss=fs=Dn=null,fg=!1,Yg=0,Qj.current=null,r===null||r.return===null){gs=1,Qg=t,ts=null;break}e:{var o=e,i=r.return,c=r,d=t;if(t=Bs,c.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var f=d,h=c,p=h.tag;if(!(h.mode&1)&&(p===0||p===11||p===15)){var g=h.alternate;g?(h.updateQueue=g.updateQueue,h.memoizedState=g.memoizedState,h.lanes=g.lanes):(h.updateQueue=null,h.memoizedState=null)}var S=tT(i);if(S!==null){S.flags&=-257,rT(S,i,c,o,t),S.mode&1&&eT(o,f,t),t=S,d=f;var b=t.updateQueue;if(b===null){var v=new Set;v.add(d),t.updateQueue=v}else b.add(d);break e}else{if(!(t&1)){eT(o,f,t),nE();break e}d=Error(dt(426))}}else if(Sn&&c.mode&1){var w=tT(i);if(w!==null){!(w.flags&65536)&&(w.flags|=256),rT(w,i,c,o,t),Ij(Hp(d,c));break e}}o=d=Hp(d,c),gs!==4&&(gs=2),pg===null?pg=[o]:pg.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var C=KL(o,d,t);K7(o,C);break e;case 1:c=d;var j=o.type,E=o.stateNode;if(!(o.flags&128)&&(typeof j.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Nu===null||!Nu.has(E)))){o.flags|=65536,t&=-t,o.lanes|=t;var N=GL(o,c,t);K7(o,N);break e}}o=o.return}while(o!==null)}hO(r)}catch(M){t=M,ts===r&&r!==null&&(ts=r=r.return);continue}break}while(!0)}function dO(){var e=nb.current;return nb.current=rb,e===null?rb:e}function nE(){(gs===0||gs===3||gs===2)&&(gs=4),Ts===null||!(sf&268435455)&&!(z2&268435455)||nu(Ts,Bs)}function ob(e,t){var r=Hr;Hr|=2;var n=dO();(Ts!==e||Bs!==t)&&(zl=null,Ud(e,t));do try{sZ();break}catch(a){uO(e,a)}while(!0);if(zj(),Hr=r,nb.current=n,ts!==null)throw Error(dt(261));return Ts=null,Bs=0,gs}function sZ(){for(;ts!==null;)fO(ts)}function aZ(){for(;ts!==null&&!MG();)fO(ts)}function fO(e){var t=mO(e.alternate,e,mo);e.memoizedProps=e.pendingProps,t===null?hO(e):ts=t,Qj.current=null}function hO(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=QY(r,t),r!==null){r.flags&=32767,ts=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{gs=6,ts=null;return}}else if(r=XY(r,t,mo),r!==null){ts=r;return}if(t=t.sibling,t!==null){ts=t;return}ts=t=e}while(t!==null);gs===0&&(gs=5)}function pd(e,t,r){var n=sn,a=Ko.transition;try{Ko.transition=null,sn=1,oZ(e,t,r,n)}finally{Ko.transition=a,sn=n}return null}function oZ(e,t,r,n){do ip();while(xu!==null);if(Hr&6)throw Error(dt(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(dt(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(FG(e,o),e===Ts&&(ts=Ts=null,Bs=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||px||(px=!0,gO(Hy,function(){return ip(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Ko.transition,Ko.transition=null;var i=sn;sn=1;var c=Hr;Hr|=4,Qj.current=null,eZ(e,r),iO(r,e),EY(XS),Uy=!!ZS,XS=ZS=null,e.current=r,tZ(r),PG(),Hr=c,sn=i,Ko.transition=o}else e.current=r;if(px&&(px=!1,xu=e,ab=a),o=e.pendingLanes,o===0&&(Nu=null),RG(r.stateNode),Qa(e,Yn()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(sb)throw sb=!1,e=v3,v3=null,e;return ab&1&&e.tag!==0&&ip(),o=e.pendingLanes,o&1?e===x3?mg++:(mg=0,x3=e):mg=0,qu(),null}function ip(){if(xu!==null){var e=qR(ab),t=Ko.transition,r=sn;try{if(Ko.transition=null,sn=16>e?16:e,xu===null)var n=!1;else{if(e=xu,xu=null,ab=0,Hr&6)throw Error(dt(331));var a=Hr;for(Hr|=4,Ut=e.current;Ut!==null;){var o=Ut,i=o.child;if(Ut.flags&16){var c=o.deletions;if(c!==null){for(var d=0;d<c.length;d++){var f=c[d];for(Ut=f;Ut!==null;){var h=Ut;switch(h.tag){case 0:case 11:case 15:hg(8,h,o)}var p=h.child;if(p!==null)p.return=h,Ut=p;else for(;Ut!==null;){h=Ut;var g=h.sibling,S=h.return;if(sO(h),h===f){Ut=null;break}if(g!==null){g.return=S,Ut=g;break}Ut=S}}}var b=o.alternate;if(b!==null){var v=b.child;if(v!==null){b.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}Ut=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,Ut=i;else e:for(;Ut!==null;){if(o=Ut,o.flags&2048)switch(o.tag){case 0:case 11:case 15:hg(9,o,o.return)}var C=o.sibling;if(C!==null){C.return=o.return,Ut=C;break e}Ut=o.return}}var j=e.current;for(Ut=j;Ut!==null;){i=Ut;var E=i.child;if(i.subtreeFlags&2064&&E!==null)E.return=i,Ut=E;else e:for(i=j;Ut!==null;){if(c=Ut,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:$2(9,c)}}catch(M){zn(c,c.return,M)}if(c===i){Ut=null;break e}var N=c.sibling;if(N!==null){N.return=c.return,Ut=N;break e}Ut=c.return}}if(Hr=a,qu(),fl&&typeof fl.onPostCommitFiberRoot=="function")try{fl.onPostCommitFiberRoot(M2,e)}catch(M){}n=!0}return n}finally{sn=r,Ko.transition=t}}return!1}function mT(e,t,r){t=Hp(r,t),t=KL(e,t,1),e=Eu(e,t,1),t=Ea(),e!==null&&(Uv(e,1,t),Qa(e,t))}function zn(e,t,r){if(e.tag===3)mT(e,e,r);else for(;t!==null;){if(t.tag===3){mT(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nu===null||!Nu.has(n))){e=Hp(r,e),e=GL(t,e,1),t=Eu(t,e,1),e=Ea(),t!==null&&(Uv(t,1,e),Qa(t,e));break}}t=t.return}}function iZ(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ea(),e.pingedLanes|=e.suspendedLanes&r,Ts===e&&(Bs&r)===r&&(gs===4||gs===3&&(Bs&130023424)===Bs&&500>Yn()-eE?Ud(e,0):Jj|=r),Qa(e,t)}function pO(e,t){t===0&&(e.mode&1?(t=sx,sx<<=1,!(sx&130023424)&&(sx=4194304)):t=1);var r=Ea();e=lc(e,t),e!==null&&(Uv(e,t,r),Qa(e,r))}function lZ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),pO(e,r)}function cZ(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(dt(314))}n!==null&&n.delete(t),pO(e,r)}var mO;mO=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Za.current)Ya=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ya=!1,ZY(e,t,r);Ya=!!(e.flags&131072)}else Ya=!1,Sn&&t.flags&1048576&&xL(t,Zy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;vy(e,t),e=t.pendingProps;var a=Ip(t,da.current);op(t,r),a=Kj(null,t,n,e,a,r);var o=Gj();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xa(n)?(o=!0,Gy(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Bj(t),a.updater=O2,t.stateNode=a,a._reactInternals=t,o3(t,n,e,r),t=c3(null,t,n,!0,o,r)):(t.tag=0,Sn&&o&&Lj(t),Ca(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(vy(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=dZ(n),e=mi(n,e),a){case 0:t=l3(null,t,n,e,r);break e;case 1:t=aT(null,t,n,e,r);break e;case 11:t=nT(null,t,n,e,r);break e;case 14:t=sT(null,t,n,mi(n.type,e),r);break e}throw Error(dt(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:mi(n,a),l3(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:mi(n,a),aT(e,t,n,a,r);case 3:e:{if(QL(t),e===null)throw Error(dt(387));n=t.pendingProps,o=t.memoizedState,a=o.element,kL(e,t),Jy(t,n,null,r);var i=t.memoizedState;if(n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Hp(Error(dt(423)),t),t=oT(e,t,n,r,a);break e}else if(n!==a){a=Hp(Error(dt(424)),t),t=oT(e,t,n,r,a);break e}else for(yo=ju(t.stateNode.containerInfo.firstChild),wo=t,Sn=!0,ki=null,r=EL(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if($p(),n===a){t=cc(e,t,r);break e}Ca(e,t,n,r)}t=t.child}return t;case 5:return NL(t),e===null&&n3(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,QS(n,a)?i=null:o!==null&&QS(n,o)&&(t.flags|=32),XL(e,t),Ca(e,t,i,r),t.child;case 6:return e===null&&n3(t),null;case 13:return JL(e,t,r);case 4:return Uj(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=zp(t,null,n,r):Ca(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:mi(n,a),nT(e,t,n,a,r);case 7:return Ca(e,t,t.pendingProps,r),t.child;case 8:return Ca(e,t,t.pendingProps.children,r),t.child;case 12:return Ca(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value,pn(Xy,n._currentValue),n._currentValue=i,o!==null)if(Li(o.value,i)){if(o.children===a.children&&!Za.current){t=cc(e,t,r);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 d=c.firstContext;d!==null;){if(d.context===n){if(o.tag===1){d=Jl(-1,r&-r),d.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?d.next=d:(d.next=h.next,h.next=d),f.pending=d}}o.lanes|=r,d=o.alternate,d!==null&&(d.lanes|=r),s3(o.return,r,t),c.lanes|=r;break}d=d.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(dt(341));i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),s3(i,r,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}Ca(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,op(t,r),a=Xo(a),n=n(a),t.flags|=1,Ca(e,t,n,r),t.child;case 14:return n=t.type,a=mi(n,t.pendingProps),a=mi(n.type,a),sT(e,t,n,a,r);case 15:return YL(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:mi(n,a),vy(e,t),t.tag=1,Xa(n)?(e=!0,Gy(t)):e=!1,op(t,r),SL(t,n,a),o3(t,n,a,r),c3(null,t,n,!0,e,r);case 19:return eO(e,t,r);case 22:return ZL(e,t,r)}throw Error(dt(156,t.tag))};function gO(e,t){return BR(e,t)}function uZ(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qo(e,t,r,n){return new uZ(e,t,r,n)}function sE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dZ(e){if(typeof e=="function")return sE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cj)return 11;if(e===Sj)return 14}return 2}function Tu(e,t){var r=e.alternate;return r===null?(r=qo(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function by(e,t,r,n,a,o){var i=2;if(n=e,typeof e=="function")sE(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Rh:return Wd(r.children,a,o,t);case kj:i=8,a|=8;break;case MS:return e=qo(12,r,t,a|2),e.elementType=MS,e.lanes=o,e;case PS:return e=qo(13,r,t,a),e.elementType=PS,e.lanes=o,e;case DS:return e=qo(19,r,t,a),e.elementType=DS,e.lanes=o,e;case jR:return F2(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case CR:i=10;break e;case SR:i=9;break e;case Cj:i=11;break e;case Sj:i=14;break e;case Kc:i=16,n=null;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=qo(i,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function Wd(e,t,r,n){return e=qo(7,e,n,t),e.lanes=r,e}function F2(e,t,r,n){return e=qo(22,e,n,t),e.elementType=jR,e.lanes=r,e.stateNode={isHidden:!1},e}function LC(e,t,r){return e=qo(6,e,null,t),e.lanes=r,e}function OC(e,t,r){return t=qo(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fZ(e,t,r,n,a){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=gC(0),this.expirationTimes=gC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gC(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function aE(e,t,r,n,a,o,i,c,d){return e=new fZ(e,t,r,c,d),t===1?(t=1,o===!0&&(t|=8)):t=0,o=qo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bj(o),e}function hZ(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ah,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function vO(e){if(!e)return Du;e=e._reactInternals;e:{if(Ef(e)!==e||e.tag!==1)throw Error(dt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(dt(171))}if(e.tag===1){var r=e.type;if(Xa(r))return gL(e,r,t)}return t}function xO(e,t,r,n,a,o,i,c,d){return e=aE(r,n,!0,e,a,o,i,c,d),e.context=vO(null),r=e.current,n=Ea(),a=_u(r),o=Jl(n,a),o.callback=t!=null?t:null,Eu(r,o,a),e.current.lanes=a,Uv(e,a,n),Qa(e,n),e}function H2(e,t,r,n){var a=t.current,o=Ea(),i=_u(a);return r=vO(r),t.context===null?t.context=r:t.pendingContext=r,t=Jl(o,i),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Eu(a,t,i),e!==null&&(Di(e,a,i,o),py(e,a,i)),i}function ib(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 gT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function oE(e,t){gT(e,t),(e=e.alternate)&&gT(e,t)}function pZ(){return null}var yO=typeof reportError=="function"?reportError:function(e){console.error(e)};function iE(e){this._internalRoot=e}B2.prototype.render=iE.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(dt(409));H2(e,t,null,null)};B2.prototype.unmount=iE.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;af(function(){H2(null,e,null,null)}),t[ic]=null}};function B2(e){this._internalRoot=e}B2.prototype.unstable_scheduleHydration=function(e){if(e){var t=YR();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ru.length&&t!==0&&t<ru[r].priority;r++);ru.splice(r,0,e),r===0&&XR(e)}};function lE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function U2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function vT(){}function mZ(e,t,r,n,a){if(a){if(typeof n=="function"){var o=n;n=function(){var f=ib(i);o.call(f)}}var i=xO(t,n,e,0,null,!1,!1,"",vT);return e._reactRootContainer=i,e[ic]=i.current,Wg(e.nodeType===8?e.parentNode:e),af(),i}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var c=n;n=function(){var f=ib(d);c.call(f)}}var d=aE(e,0,!1,null,null,!1,!1,"",vT);return e._reactRootContainer=d,e[ic]=d.current,Wg(e.nodeType===8?e.parentNode:e),af(function(){H2(t,d,r,n)}),d}function W2(e,t,r,n,a){var o=r._reactRootContainer;if(o){var i=o;if(typeof a=="function"){var c=a;a=function(){var d=ib(i);c.call(d)}}H2(t,i,e,a)}else i=mZ(r,t,e,a,n);return ib(i)}KR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Y0(t.pendingLanes);r!==0&&(Nj(t,r|1),Qa(t,Yn()),!(Hr&6)&&(Bp=Yn()+500,qu()))}break;case 13:af(function(){var n=lc(e,1);if(n!==null){var a=Ea();Di(n,e,1,a)}}),oE(e,1)}};_j=function(e){if(e.tag===13){var t=lc(e,134217728);if(t!==null){var r=Ea();Di(t,e,134217728,r)}oE(e,134217728)}};GR=function(e){if(e.tag===13){var t=_u(e),r=lc(e,t);if(r!==null){var n=Ea();Di(r,e,t,n)}oE(e,t)}};YR=function(){return sn};ZR=function(e,t){var r=sn;try{return sn=e,t()}finally{sn=r}};BS=function(e,t,r){switch(t){case"input":if(LS(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=R2(n);if(!a)throw Error(dt(90));NR(n),LS(n,a)}}}break;case"textarea":TR(e,r);break;case"select":t=r.value,t!=null&&rp(e,!!r.multiple,t,!1)}};OR=tE;IR=af;var gZ={usingClientEntryPoint:!1,Events:[Vv,$h,R2,RR,LR,tE]},x0={findFiberByHostInstance:kd,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vZ={bundleType:x0.bundleType,version:x0.version,rendererPackageName:x0.rendererPackageName,rendererConfig:x0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yc.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=FR(e),e===null?null:e.stateNode},findFiberByHostInstance:x0.findFiberByHostInstance||pZ,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var mx=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mx.isDisabled&&mx.supportsFiber)try{M2=mx.inject(vZ),fl=mx}catch(e){}}_o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gZ;_o.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!lE(t))throw Error(dt(200));return hZ(e,t,null,r)};_o.createRoot=function(e,t){if(!lE(e))throw Error(dt(299));var r=!1,n="",a=yO;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=aE(e,1,!1,null,null,r,!1,n,a),e[ic]=t.current,Wg(e.nodeType===8?e.parentNode:e),new iE(t)};_o.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(dt(188)):(e=Object.keys(e).join(","),Error(dt(268,e)));return e=FR(t),e=e===null?null:e.stateNode,e};_o.flushSync=function(e){return af(e)};_o.hydrate=function(e,t,r){if(!U2(t))throw Error(dt(200));return W2(null,e,t,!0,r)};_o.hydrateRoot=function(e,t,r){if(!lE(e))throw Error(dt(405));var n=r!=null&&r.hydratedSources||null,a=!1,o="",i=yO;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=xO(t,null,e,1,r!=null?r:null,a,!1,o,i),e[ic]=t.current,Wg(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new B2(t)};_o.render=function(e,t,r){if(!U2(t))throw Error(dt(200));return W2(null,e,t,!1,r)};_o.unmountComponentAtNode=function(e){if(!U2(e))throw Error(dt(40));return e._reactRootContainer?(af(function(){W2(null,null,e,!1,function(){e._reactRootContainer=null,e[ic]=null})}),!0):!1};_o.unstable_batchedUpdates=tE;_o.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!U2(r))throw Error(dt(200));if(e==null||e._reactInternals===void 0)throw Error(dt(38));return W2(e,t,r,!1,n)};_o.version="18.2.0-next-9e3b772b8-20220608";function bO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(bO)}catch(e){console.error(e)}}bO(),xR.exports=_o;var sa=xR.exports;const wO=Fi(sa),xZ=E2({__proto__:null,default:wO},[sa]);var kO,xT=sa;kO=xT.createRoot,xT.hydrateRoot;function yZ(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function w3(e,t=!1){const r=yZ(),n="_".concat(r);return Object.defineProperty(window,n,{value:a=>(t&&Reflect.deleteProperty(window,n),e==null?void 0:e(a)),writable:!1,configurable:!0}),r}function _s(r){return pe(this,arguments,function*(e,t={}){return new Promise((n,a)=>{const o=w3(c=>{n(c),Reflect.deleteProperty(window,"_".concat(i))},!0),i=w3(c=>{a(c),Reflect.deleteProperty(window,"_".concat(o))},!0);window.__TAURI_IPC__(R({cmd:e,callback:o,error:i},t))})})}function Vd(e,t="asset"){return window.__TAURI__.convertFileSrc(e,t)}function Zt(e){return pe(this,null,function*(){return _s("tauri",e)})}function pl(e,t){return pe(this,null,function*(){var n,a;const r=typeof t=="string"?{title:t}:t;return Zt({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:e.toString(),title:(n=r==null?void 0:r.title)==null?void 0:n.toString(),type:r==null?void 0:r.type,buttonLabel:(a=r==null?void 0:r.okLabel)==null?void 0:a.toString()}})})}function lb(e,t){return pe(this,null,function*(){var n,a,o,i,c;const r=typeof t=="string"?{title:t}:t;return Zt({__tauriModule:"Dialog",message:{cmd:"confirmDialog",message:e.toString(),title:(n=r==null?void 0:r.title)==null?void 0:n.toString(),type:r==null?void 0:r.type,buttonLabels:[(o=(a=r==null?void 0:r.okLabel)==null?void 0:a.toString())!=null?o:"Ok",(c=(i=r==null?void 0:r.cancelLabel)==null?void 0:i.toString())!=null?c:"Cancel"]}})})}function CO(e,t){return pe(this,null,function*(){return Zt({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})})}function SO(e,t,r){return pe(this,null,function*(){yield Zt({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:r}})})}function cE(e,t,r){return pe(this,null,function*(){return Zt({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:w3(r)}}).then(n=>()=>pe(this,null,function*(){return CO(e,n)}))})}function jO(e,t,r){return pe(this,null,function*(){return cE(e,t,n=>{r(n),CO(e,n.id).catch(()=>{})})})}var us;(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"})(us||(us={}));function Ci(e,t){return pe(this,null,function*(){return cE(e,null,t)})}function bZ(e,t){return pe(this,null,function*(){return jO(e,null,t)})}function EO(e,t){return pe(this,null,function*(){return SO(e,void 0,t)})}function uE(){return navigator.appVersion.includes("Win")}uE();function wZ(){return pe(this,null,function*(){return Zt({__tauriModule:"Os",message:{cmd:"platform"}})})}function kZ(){return pe(this,null,function*(){return Zt({__tauriModule:"Os",message:{cmd:"version"}})})}function yT(){return pe(this,null,function*(){return Zt({__tauriModule:"Os",message:{cmd:"osType"}})})}function bT(){return pe(this,null,function*(){return Zt({__tauriModule:"Clipboard",message:{cmd:"readText",data:null}})})}var wT;(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"})(wT||(wT={}));var kT;(function(e){e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary"})(kT||(kT={}));uE();uE();function NO(){return pe(this,null,function*(){return Zt({__tauriModule:"Process",message:{cmd:"relaunch"}})})}function yl(e,t){return pe(this,null,function*(){return Zt({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})})}function dE(e){return pe(this,null,function*(){return Ci(us.STATUS_UPDATE,t=>{e(t==null?void 0:t.payload)})})}function CZ(){return pe(this,null,function*(){let e;function t(){e&&e(),e=void 0}return new Promise((r,n)=>{function a(o){if(o.error){t(),n(o.error);return}o.status==="DONE"&&(t(),r())}dE(a).then(o=>{e=o}).catch(o=>{throw t(),o}),EO(us.INSTALL_UPDATE).catch(o=>{throw t(),o})})})}function SZ(){return pe(this,null,function*(){let e;function t(){e&&e(),e=void 0}return new Promise((r,n)=>{function a(i){t(),r({manifest:i,shouldUpdate:!0})}function o(i){if(i.error){t(),n(i.error);return}i.status==="UPTODATE"&&(t(),r({shouldUpdate:!1}))}bZ(us.UPDATE_AVAILABLE,i=>{a(i==null?void 0:i.payload)}).catch(i=>{throw t(),i}),dE(o).then(i=>{e=i}).catch(i=>{throw t(),i}),EO(us.CHECK_UPDATE).catch(i=>{throw t(),i})})})}class fE{constructor(t,r){this.type="Logical",this.width=t,this.height=r}}class k3{constructor(t,r){this.type="Physical",this.width=t,this.height=r}toLogical(t){return new fE(this.width/t,this.height/t)}}class jZ{constructor(t,r){this.type="Logical",this.x=t,this.y=r}}class C3{constructor(t,r){this.type="Physical",this.x=t,this.y=r}toLogical(t){return new jZ(this.x/t,this.y/t)}}var S3;(function(e){e[e.Critical=1]="Critical",e[e.Informational=2]="Informational"})(S3||(S3={}));function CT(){return window.__TAURI_METADATA__.__windows.map(e=>new of(e.label,{skip:!0}))}const ST=["tauri://created","tauri://error"];class EZ{constructor(t){this.label=t,this.listeners=Object.create(null)}listen(t,r){return pe(this,null,function*(){return this._handleTauriEvent(t,r)?Promise.resolve(()=>{const n=this.listeners[t];n.splice(n.indexOf(r),1)}):cE(t,this.label,r)})}once(t,r){return pe(this,null,function*(){return this._handleTauriEvent(t,r)?Promise.resolve(()=>{const n=this.listeners[t];n.splice(n.indexOf(r),1)}):jO(t,this.label,r)})}emit(t,r){return pe(this,null,function*(){if(ST.includes(t)){for(const n of this.listeners[t]||[])n({event:t,id:-1,windowLabel:this.label,payload:r});return Promise.resolve()}return SO(t,this.label,r)})}_handleTauriEvent(t,r){return ST.includes(t)?(t in this.listeners?this.listeners[t].push(r):this.listeners[t]=[r],!0):!1}}class NZ extends EZ{scaleFactor(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})})}innerPosition(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:t,y:r})=>new C3(t,r))})}outerPosition(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:t,y:r})=>new C3(t,r))})}innerSize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:t,height:r})=>new k3(t,r))})}outerSize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:t,height:r})=>new k3(t,r))})}isFullscreen(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})})}isMinimized(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimized"}}}})})}isMaximized(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})})}isFocused(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFocused"}}}})})}isDecorated(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})})}isResizable(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})})}isMaximizable(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximizable"}}}})})}isMinimizable(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMinimizable"}}}})})}isClosable(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isClosable"}}}})})}isVisible(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})})}title(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"title"}}}})})}theme(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"theme"}}}})})}center(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})})}requestUserAttention(t){return pe(this,null,function*(){let r=null;return t&&(t===S3.Critical?r={type:"Critical"}:r={type:"Informational"}),Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:r}}}})})}setResizable(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:t}}}})})}setMaximizable(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaximizable",payload:t}}}})})}setMinimizable(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinimizable",payload:t}}}})})}setClosable(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setClosable",payload:t}}}})})}setTitle(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:t}}}})})}maximize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})})}unmaximize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})})}toggleMaximize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})})}minimize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})})}unminimize(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})})}show(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})})}hide(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})})}close(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})})}setDecorations(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:t}}}})})}setAlwaysOnTop(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:t}}}})})}setContentProtected(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setContentProtected",payload:t}}}})})}setSize(t){return pe(this,null,function*(){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:t.type,data:{width:t.width,height:t.height}}}}}})})}setMinSize(t){return pe(this,null,function*(){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Zt({__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}}}})})}setMaxSize(t){return pe(this,null,function*(){if(t&&t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Zt({__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}}}})})}setPosition(t){return pe(this,null,function*(){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})})}setFullscreen(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:t}}}})})}setFocus(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})})}setIcon(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof t=="string"?t:Array.from(t)}}}}})})}setSkipTaskbar(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:t}}}})})}setCursorGrab(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorGrab",payload:t}}}})})}setCursorVisible(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorVisible",payload:t}}}})})}setCursorIcon(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorIcon",payload:t}}}})})}setCursorPosition(t){return pe(this,null,function*(){if(!t||t.type!=="Logical"&&t.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setCursorPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})})}setIgnoreCursorEvents(t){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIgnoreCursorEvents",payload:t}}}})})}startDragging(){return pe(this,null,function*(){return Zt({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})})}onResized(t){return pe(this,null,function*(){return this.listen(us.WINDOW_RESIZED,r=>{r.payload=MZ(r.payload),t(r)})})}onMoved(t){return pe(this,null,function*(){return this.listen(us.WINDOW_MOVED,r=>{r.payload=TZ(r.payload),t(r)})})}onCloseRequested(t){return pe(this,null,function*(){return this.listen(us.WINDOW_CLOSE_REQUESTED,r=>{const n=new _Z(r);Promise.resolve(t(n)).then(()=>{if(!n.isPreventDefault())return this.close()})})})}onFocusChanged(t){return pe(this,null,function*(){const r=yield this.listen(us.WINDOW_FOCUS,a=>{t(re(R({},a),{payload:!0}))}),n=yield this.listen(us.WINDOW_BLUR,a=>{t(re(R({},a),{payload:!1}))});return()=>{r(),n()}})}onScaleChanged(t){return pe(this,null,function*(){return this.listen(us.WINDOW_SCALE_FACTOR_CHANGED,t)})}onMenuClicked(t){return pe(this,null,function*(){return this.listen(us.MENU,t)})}onFileDropEvent(t){return pe(this,null,function*(){const r=yield this.listen(us.WINDOW_FILE_DROP,o=>{t(re(R({},o),{payload:{type:"drop",paths:o.payload}}))}),n=yield this.listen(us.WINDOW_FILE_DROP_HOVER,o=>{t(re(R({},o),{payload:{type:"hover",paths:o.payload}}))}),a=yield this.listen(us.WINDOW_FILE_DROP_CANCELLED,o=>{t(re(R({},o),{payload:{type:"cancel"}}))});return()=>{r(),n(),a()}})}onThemeChanged(t){return pe(this,null,function*(){return this.listen(us.WINDOW_THEME_CHANGED,t)})}}class _Z{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 of extends NZ{constructor(t,r={}){super(t),r!=null&&r.skip||Zt({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:R({label:t},r)}}}).then(()=>pe(this,null,function*(){return this.emit("tauri://created")})).catch(n=>pe(this,null,function*(){return this.emit("tauri://error",n)}))}static getByLabel(t){return CT().some(r=>r.label===t)?new of(t,{skip:!0}):null}static getFocusedWindow(){return pe(this,null,function*(){for(const t of CT())if(yield t.isFocused())return t;return null})}}let Qs;"__TAURI_METADATA__"in window?Qs=new of(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.'),Qs=new of("main",{skip:!0}));function TZ(e){return new C3(e.x,e.y)}function MZ(e){return new k3(e.width,e.height)}const kr=_s,_O="en",hE=[{code:"en",name:"English",website:"www.pastebar.app",flag:"🇺🇸"},{code:"es",name:"Español",flag:"🇪🇸",website:"es.pastebar.app"},{code:"de",name:"Deutsch",flag:"🇩🇪",website:"de.pastebar.app"},{code:"fr",name:"Français",flag:"🇫🇷",website:"fr.pastebar.app"},{code:"uk",name:"Українська",flag:"🇺🇦",website:"ua.pastebar.app"},{code:"ru",name:"Русский",website:"www.pastebar.ru",flag:"🇷🇺"}];function V2(){throw new Error("Cycle detected")}var PZ=Symbol.for("preact-signals");function pE(){if(lp>1)lp--;else{for(var e,t=!1;gg!==void 0;){var r=gg;for(gg=void 0,j3++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&MO(r))try{r.c()}catch(a){t||(e=a,t=!0)}r=n}}if(j3=0,lp--,t)throw e}}var $n=void 0,gg=void 0,lp=0,j3=0,cb=0;function TO(e){if($n!==void 0){var t=e.n;if(t===void 0||t.t!==$n)return t={i:0,S:e,p:$n.s,n:void 0,t:$n,e:void 0,x:void 0,r:t},$n.s!==void 0&&($n.s.n=t),$n.s=t,e.n=t,32&$n.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=$n.s,t.n=void 0,$n.s.n=t,$n.s=t),t}}function qs(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}qs.prototype.brand=PZ;qs.prototype.h=function(){return!0};qs.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)};qs.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};qs.prototype.subscribe=function(e){var t=this;return RO(function(){var r=t.value,n=32&this.f;this.f&=-33;try{e(r)}finally{this.f|=n}})};qs.prototype.valueOf=function(){return this.value};qs.prototype.toString=function(){return this.value+""};qs.prototype.toJSON=function(){return this.value};qs.prototype.peek=function(){return this.v};Object.defineProperty(qs.prototype,"value",{get:function(){var e=TO(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if($n instanceof Nf&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){j3>100&&V2(),this.v=e,this.i++,cb++,lp++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{pE()}}}});function bt(e){return new qs(e)}function MO(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 PO(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function DO(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Nf(e){qs.call(this,void 0),this.x=e,this.s=void 0,this.g=cb-1,this.f=4}(Nf.prototype=new qs).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===cb))return!0;if(this.g=cb,this.f|=1,this.i>0&&!MO(this))return this.f&=-2,!0;var e=$n;try{PO(this),$n=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return $n=e,DO(this),this.f&=-2,!0};Nf.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)}qs.prototype.S.call(this,e)};Nf.prototype.U=function(e){if(this.t!==void 0&&(qs.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)}};Nf.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Nf.prototype.peek=function(){if(this.h()||V2(),16&this.f)throw this.v;return this.v};Object.defineProperty(Nf.prototype,"value",{get:function(){1&this.f&&V2();var e=TO(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function AO(e){var t=e.u;if(e.u=void 0,typeof t=="function"){lp++;var r=$n;$n=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,mE(e),n}finally{$n=r,pE()}}}function mE(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,AO(e)}function DZ(e){if($n!==this)throw new Error("Out-of-order effect");DO(this),$n=e,this.f&=-2,8&this.f&&mE(this),pE()}function Kv(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Kv.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()}};Kv.prototype.S=function(){1&this.f&&V2(),this.f|=1,this.f&=-9,AO(this),PO(this),lp++;var e=$n;return $n=this,DZ.bind(this,e)};Kv.prototype.N=function(){2&this.f||(this.f|=2,this.o=gg,gg=this)};Kv.prototype.d=function(){this.f|=8,1&this.f||mE(this)};function RO(e){var t=new Kv(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}var LO={exports:{}},OO={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Up=m;function AZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var RZ=typeof Object.is=="function"?Object.is:AZ,LZ=Up.useState,OZ=Up.useEffect,IZ=Up.useLayoutEffect,$Z=Up.useDebugValue;function zZ(e,t){var r=t(),n=LZ({inst:{value:r,getSnapshot:t}}),a=n[0].inst,o=n[1];return IZ(function(){a.value=r,a.getSnapshot=t,IC(a)&&o({inst:a})},[e,r,t]),OZ(function(){return IC(a)&&o({inst:a}),e(function(){IC(a)&&o({inst:a})})},[e]),$Z(r),r}function IC(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!RZ(e,r)}catch(n){return!0}}function FZ(e,t){return t()}var HZ=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?FZ:zZ;OO.useSyncExternalStore=Up.useSyncExternalStore!==void 0?Up.useSyncExternalStore:HZ;LO.exports=OO;var IO=LO.exports,$O={exports:{}},gE={};/**
|
||
* @license React
|
||
* react-jsx-dev-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var BZ=Symbol.for("react.fragment");gE.Fragment=BZ;gE.jsxDEV=void 0;$O.exports=gE;var UZ=$O.exports;const WZ=Fi(UZ);var zO=!1,$C=null,zC=!1,gx=null,jT=new Map;function ET(e){if(!e)return 1;var t,r=jT.get(e);if(r!==void 0)return r;var n=e.useCallback.toString();if(e.useReducer===e.useEffect)t=1;else if(e.useEffect===e.useImperativeHandle)t=32;else if(/Invalid/.test(n))t=2;else if(/updateCallback/.test(n)||/\[0\]/.test(n)&&/\[1\]/.test(n)){var a=e.useReducer.toString();/rerenderReducer/.test(a)||/return\s*\[\w+,/.test(a)?t=16:t=8}else t=4;return jT.set(e,t),t}var VZ=[],qZ=Symbol.for("react.element"),NT=function(){};function ud(e){return typeof e!="function"?e:function(t,r){if(typeof t=="string"&&r)for(var n in r){var a=r[n];n!=="children"&&a instanceof qs&&(r[n]=a.value)}return e.call.apply(e,[e,t,r].concat([].slice.call(arguments,2)))}}var FC,FO=Symbol.dispose||Symbol.for("Symbol.dispose");function HO(e){FC&&FC(),FC=e&&e.effect.S()}var _T,HC,vx=function(){return HO()},KZ=((_T={effect:{s:void 0,c:function(){},S:function(){return NT},d:function(){}},subscribe:function(){return NT},getSnapshot:function(){return 0},f:function(){}})[FO]=function(){},_T),GZ=Promise.prototype.then.bind(Promise.resolve());function BO(){vx(),HC||(HC=GZ(function(){HC=void 0,vx()}));var e=m.useRef();e.current==null&&(e.current=function(){var r,n,a,o=0,i=RO(function(){n=this});return n.c=function(){o=o+1|0,a&&a()},(r={effect:n,subscribe:function(c){return a=c,function(){o=o+1|0,a=void 0,i()}},getSnapshot:function(){return o},f:function(){vx()}})[FO]=function(){vx()},r}());var t=e.current;return IO.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getSnapshot),HO(t),t}Object.defineProperties(qs.prototype,{$$typeof:{configurable:!0,value:qZ},type:{configurable:!0,value:function(e){var t=e.data,r=function(){return zO?KZ:BO()}();try{return t.value}finally{r.f()}}},props:{configurable:!0,get:function(){return{data:this}}},ref:{configurable:!0,value:null}});function vs(e){return m.useMemo(function(){return bt(e)},VZ)}(function(){(function(){zO=!0,Object.defineProperty(m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,"current",{get:function(){return gx},set:function(e){if(zC)gx=e;else{var t=ET(gx),r=ET(e);if(gx=e,function(a,o){return 1&a&&28&o?!0:2&a||2&o?!1:!!(16&o)}(t,r))zC=!0,$C=BO(),zC=!1;else if(function(a,o){return!!(28&a&&1&o)}(t,r)){var n;(n=$C)==null||n.f(),$C=null}}}})})(),function(){var e=TK,t=WZ;vt.createElement=ud(vt.createElement),t.jsx&&(t.jsx=ud(t.jsx)),e.jsx&&(e.jsx=ud(e.jsx)),t.jsxs&&(t.jsxs=ud(t.jsxs)),e.jsxs&&(e.jsxs=ud(e.jsxs)),t.jsxDEV&&(t.jsxDEV=ud(t.jsxDEV)),e.jsxDEV&&(e.jsxDEV=ud(e.jsxDEV))}()})();function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(this,arguments)}function YZ(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function q2(...e){return t=>e.forEach(r=>YZ(r,t))}function Zr(...e){return m.useCallback(q2(...e),e)}const Au=m.forwardRef((e,t)=>{const i=e,{children:r}=i,n=Ce(i,["children"]),a=m.Children.toArray(r),o=a.find(ZZ);if(o){const c=o.props.children,d=a.map(f=>f===o?m.Children.count(c)>1?m.Children.only(null):m.isValidElement(c)?c.props.children:null:f);return m.createElement(E3,Be({},n,{ref:t}),m.isValidElement(c)?m.cloneElement(c,void 0,d):null)}return m.createElement(E3,Be({},n,{ref:t}),r)});Au.displayName="Slot";const E3=m.forwardRef((e,t)=>{const a=e,{children:r}=a,n=Ce(a,["children"]);return m.isValidElement(r)?m.cloneElement(r,re(R({},XZ(n,r.props)),{ref:t?q2(t,r.ref):r.ref})):m.Children.count(r)>1?m.Children.only(null):null});E3.displayName="SlotClone";const UO=({children:e})=>m.createElement(m.Fragment,null,e);function ZZ(e){return m.isValidElement(e)&&e.type===UO}function XZ(e,t){const r=R({},t);for(const n in t){const a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...c)=>{o(...c),a(...c)}:a&&(r[n]=a):n==="style"?r[n]=R(R({},a),o):n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return R(R({},e),r)}const QZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Cr=QZ.reduce((e,t)=>{const r=m.forwardRef((n,a)=>{const d=n,{asChild:o}=d,i=Ce(d,["asChild"]),c=o?Au:t;return m.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),m.createElement(c,Be({},i,{ref:a}))});return r.displayName="Primitive.".concat(t),re(R({},e),{[t]:r})},{});function WO(e,t){e&&sa.flushSync(()=>e.dispatchEvent(t))}const Ku=m.forwardRef((e,t)=>{var r;const o=e,{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body}=o,a=Ce(o,["container"]);return n?wO.createPortal(m.createElement(Cr.div,Be({},a,{ref:t})),n):null});function JZ(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return m.useMemo(()=>n=>{t.forEach(a=>a(n))},t)}const K2=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function hm(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function vE(e){return"nodeType"in e}function Ma(e){var t,r;return e?hm(e)?e:vE(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function xE(e){const{Document:t}=Ma(e);return e instanceof t}function Gv(e){return hm(e)?!1:e instanceof Ma(e).HTMLElement}function VO(e){return e instanceof Ma(e).SVGElement}function pm(e){return e?hm(e)?e.document:vE(e)?xE(e)?e:Gv(e)||VO(e)?e.ownerDocument:document:document:document}const Jo=K2?m.useLayoutEffect:m.useEffect;function G2(e){const t=m.useRef(e);return Jo(()=>{t.current=e}),m.useCallback(function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return t.current==null?void 0:t.current(...n)},[])}function eX(){const e=m.useRef(null),t=m.useCallback((n,a)=>{e.current=setInterval(n,a)},[]),r=m.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function Jg(e,t){t===void 0&&(t=[e]);const r=m.useRef(e);return Jo(()=>{r.current!==e&&(r.current=e)},t),r}function Yv(e,t){const r=m.useRef();return m.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function ub(e){const t=G2(e),r=m.useRef(null),n=m.useCallback(a=>{a!==r.current&&(t==null||t(a,r.current)),r.current=a},[]);return[r,n]}function db(e){const t=m.useRef();return m.useEffect(()=>{t.current=e},[e]),t.current}let BC={};function Zv(e,t){return m.useMemo(()=>{if(t)return t;const r=BC[e]==null?0:BC[e]+1;return BC[e]=r,e+"-"+r},[e,t])}function qO(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return n.reduce((o,i)=>{const c=Object.entries(i);for(const[d,f]of c){const h=o[d];h!=null&&(o[d]=h+e*f)}return o},R({},t))}}const cp=qO(1),fb=qO(-1);function tX(e){return"clientX"in e&&"clientY"in e}function Y2(e){if(!e)return!1;const{KeyboardEvent:t}=Ma(e.target);return t&&e instanceof t}function rX(e){if(!e)return!1;const{TouchEvent:t}=Ma(e.target);return t&&e instanceof t}function hb(e){if(rX(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return tX(e)?{x:e.clientX,y:e.clientY}:null}const ei=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[ei.Translate.toString(e),ei.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),TT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function nX(e){return e.matches(TT)?e:e.querySelector(TT)}const sX={display:"none"};function aX(e){let{id:t,value:r}=e;return vt.createElement("div",{id:t,style:sX},r)}function oX(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;const a={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 vt.createElement("div",{id:t,style:a,role:"status","aria-live":n,"aria-atomic":!0},r)}function iX(){const[e,t]=m.useState("");return{announce:m.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const KO=m.createContext(null);function lX(e){const t=m.useContext(KO);m.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function cX(){const[e]=m.useState(()=>new Set),t=m.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[m.useCallback(n=>{let{type:a,event:o}=n;e.forEach(i=>{var c;return(c=i[a])==null?void 0:c.call(i,o)})},[e]),t]}const uX={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 "},dX={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function fX(e){let{announcements:t=dX,container:r,hiddenTextDescribedById:n,screenReaderInstructions:a=uX}=e;const{announce:o,announcement:i}=iX(),c=Zv("DndLiveRegion"),[d,f]=m.useState(!1);if(m.useEffect(()=>{f(!0)},[]),lX(m.useMemo(()=>({onDragStart(p){let{active:g}=p;o(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:S}=p;t.onDragMove&&o(t.onDragMove({active:g,over:S}))},onDragOver(p){let{active:g,over:S}=p;o(t.onDragOver({active:g,over:S}))},onDragEnd(p){let{active:g,over:S}=p;o(t.onDragEnd({active:g,over:S}))},onDragCancel(p){let{active:g,over:S}=p;o(t.onDragCancel({active:g,over:S}))}}),[o,t])),!d)return null;const h=vt.createElement(vt.Fragment,null,vt.createElement(aX,{id:n,value:a.draggable}),vt.createElement(oX,{id:c,announcement:i}));return r?sa.createPortal(h,r):h}var hs;(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"})(hs||(hs={}));function pb(){}function Vh(e,t){return m.useMemo(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function N3(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return m.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const Oi=Object.freeze({x:0,y:0});function yE(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function hX(e,t){const r=hb(e);if(!r)return"0 0";const n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}function bE(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function pX(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function _3(e){let{left:t,top:r,height:n,width:a}=e;return[{x:t,y:r},{x:t+a,y:r},{x:t,y:r+n},{x:t+a,y:r+n}]}function wE(e,t){if(!e||e.length===0)return null;const[r]=e;return t?r[t]:r}function MT(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const mX=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=MT(t,t.left,t.top),o=[];for(const i of n){const{id:c}=i,d=r.get(c);if(d){const f=yE(MT(d),a);o.push({id:c,data:{droppableContainer:i,value:f}})}}return o.sort(bE)},gX=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=_3(t),o=[];for(const i of n){const{id:c}=i,d=r.get(c);if(d){const f=_3(d),h=a.reduce((g,S,b)=>g+yE(f[b],S),0),p=Number((h/4).toFixed(4));o.push({id:c,data:{droppableContainer:i,value:p}})}}return o.sort(bE)};function vX(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),i=a-n,c=o-r;if(n<a&&r<o){const d=t.width*t.height,f=e.width*e.height,h=i*c,p=h/(d+f-h);return Number(p.toFixed(4))}return 0}const kE=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const a=[];for(const o of n){const{id:i}=o,c=r.get(i);if(c){const d=vX(c,t);d>0&&a.push({id:i,data:{droppableContainer:o,value:d}})}}return a.sort(pX)};function xX(e,t){const{top:r,left:n,bottom:a,right:o}=t;return r<=e.y&&e.y<=a&&n<=e.x&&e.x<=o}const yX=e=>{let{droppableContainers:t,droppableRects:r,pointerCoordinates:n}=e;if(!n)return[];const a=[];for(const o of t){const{id:i}=o,c=r.get(i);if(c&&xX(n,c)){const f=_3(c).reduce((p,g)=>p+yE(n,g),0),h=Number((f/4).toFixed(4));a.push({id:i,data:{droppableContainer:o,value:h}})}}return a.sort(bE)};function bX(e,t,r){return re(R({},e),{scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1})}function GO(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Oi}function wX(e){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return a.reduce((i,c)=>re(R({},i),{top:i.top+e*c.y,bottom:i.bottom+e*c.y,left:i.left+e*c.x,right:i.right+e*c.x}),R({},r))}}const kX=wX(1);function YO(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 CX(e,t,r){const n=YO(t);if(!n)return e;const{scaleX:a,scaleY:o,x:i,y:c}=n,d=e.left-i-(1-a)*parseFloat(r),f=e.top-c-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),h=a?e.width/a:e.width,p=o?e.height/o:e.height;return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d}}const SX={ignoreTransform:!1};function mm(e,t){t===void 0&&(t=SX);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:h}=Ma(e).getComputedStyle(e);f&&(r=CX(r,f,h))}const{top:n,left:a,width:o,height:i,bottom:c,right:d}=r;return{top:n,left:a,width:o,height:i,bottom:c,right:d}}function PT(e){return mm(e,{ignoreTransform:!0})}function jX(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function EX(e,t){return t===void 0&&(t=Ma(e).getComputedStyle(e)),t.position==="fixed"}function NX(e,t){t===void 0&&(t=Ma(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?r.test(o):!1})}function CE(e,t){const r=[];function n(a){if(t!=null&&r.length>=t||!a)return r;if(xE(a)&&a.scrollingElement!=null&&!r.includes(a.scrollingElement))return r.push(a.scrollingElement),r;if(!Gv(a)||VO(a)||r.includes(a))return r;const o=Ma(e).getComputedStyle(a);return a!==e&&NX(a,o)&&r.push(a),EX(a,o)?r:n(a.parentNode)}return e?n(e):r}function ZO(e){const[t]=CE(e,1);return t!=null?t:null}function UC(e){return!K2||!e?null:hm(e)?e:vE(e)?xE(e)||e===pm(e).scrollingElement?window:Gv(e)?e:null:null}function XO(e){return hm(e)?e.scrollX:e.scrollLeft}function QO(e){return hm(e)?e.scrollY:e.scrollTop}function T3(e){return{x:XO(e),y:QO(e)}}var js;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(js||(js={}));function JO(e){return!K2||!e?!1:e===document.scrollingElement}function eI(e){const t={x:0,y:0},r=JO(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,i=e.scrollTop>=n.y,c=e.scrollLeft>=n.x;return{isTop:a,isLeft:o,isBottom:i,isRight:c,maxScroll:n,minScroll:t}}const _X={x:.2,y:.2};function TX(e,t,r,n,a){let{top:o,left:i,right:c,bottom:d}=r;n===void 0&&(n=10),a===void 0&&(a=_X);const{isTop:f,isBottom:h,isLeft:p,isRight:g}=eI(e),S={x:0,y:0},b={x:0,y:0},v={height:t.height*a.y,width:t.width*a.x};return!f&&o<=t.top+v.height?(S.y=js.Backward,b.y=n*Math.abs((t.top+v.height-o)/v.height)):!h&&d>=t.bottom-v.height&&(S.y=js.Forward,b.y=n*Math.abs((t.bottom-v.height-d)/v.height)),!g&&c>=t.right-v.width?(S.x=js.Forward,b.x=n*Math.abs((t.right-v.width-c)/v.width)):!p&&i<=t.left+v.width&&(S.x=js.Backward,b.x=n*Math.abs((t.left+v.width-i)/v.width)),{direction:S,speed:b}}function MX(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:r,right:n,bottom:a}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:a,width:e.clientWidth,height:e.clientHeight}}function tI(e){return e.reduce((t,r)=>cp(t,T3(r)),Oi)}function PX(e){return e.reduce((t,r)=>t+XO(r),0)}function DX(e){return e.reduce((t,r)=>t+QO(r),0)}function rI(e,t){if(t===void 0&&(t=mm),!e)return;const{top:r,left:n,bottom:a,right:o}=t(e);ZO(e)&&(a<=0||o<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const AX=[["x",["left","right"],PX],["y",["top","bottom"],DX]];class SE{constructor(t,r){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 n=CE(r),a=tI(n);this.rect=R({},t),this.width=t.width,this.height=t.height;for(const[o,i,c]of AX)for(const d of i)Object.defineProperty(this,d,{get:()=>{const f=c(n),h=a[o]-f;return this.rect[d]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class vg{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var a;(a=this.target)==null||a.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function RX(e){const{EventTarget:t}=Ma(e);return e instanceof t?e:pm(e)}function WC(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(u0(r,2)+u0(n,2))>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var Fo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Fo||(Fo={}));function DT(e){e.preventDefault()}function LX(e){e.stopPropagation()}var Pr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Pr||(Pr={}));const nI={start:[Pr.Space,Pr.Enter],cancel:[Pr.Esc],end:[Pr.Space,Pr.Enter]},OX=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case Pr.Right:return re(R({},r),{x:r.x+25});case Pr.Left:return re(R({},r),{x:r.x-25});case Pr.Down:return re(R({},r),{y:r.y+25});case Pr.Up:return re(R({},r),{y:r.y-25})}};class ev{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:r}}=t;this.props=t,this.listeners=new vg(pm(r)),this.windowListeners=new vg(Ma(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Fo.Resize,this.handleCancel),this.windowListeners.add(Fo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Fo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&rI(n),r(Oi)}handleKeyDown(t){if(Y2(t)){const{active:r,context:n,options:a}=this.props,{keyboardCodes:o=nI,coordinateGetter:i=OX,scrollBehavior:c="smooth"}=a,{code:d}=t;if(o.end.includes(d)){this.handleEnd(t);return}if(o.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:f}=n.current,h=f?{x:f.left,y:f.top}:Oi;this.referenceCoordinates||(this.referenceCoordinates=h);const p=i(t,{active:r,context:n.current,currentCoordinates:h});if(p){const g=fb(p,h),S={x:0,y:0},{scrollableAncestors:b}=n.current;for(const v of b){const w=t.code,{isTop:C,isRight:j,isLeft:E,isBottom:N,maxScroll:M,minScroll:P}=eI(v),D=MX(v),A={x:Math.min(w===Pr.Right?D.right-D.width/2:D.right,Math.max(w===Pr.Right?D.left:D.left+D.width/2,p.x)),y:Math.min(w===Pr.Down?D.bottom-D.height/2:D.bottom,Math.max(w===Pr.Down?D.top:D.top+D.height/2,p.y))},O=w===Pr.Right&&!j||w===Pr.Left&&!E,$=w===Pr.Down&&!N||w===Pr.Up&&!C;if(O&&A.x!==p.x){const H=v.scrollLeft+g.x,z=w===Pr.Right&&H<=M.x||w===Pr.Left&&H>=P.x;if(z&&!g.y){v.scrollTo({left:H,behavior:c});return}z?S.x=v.scrollLeft-H:S.x=w===Pr.Right?v.scrollLeft-M.x:v.scrollLeft-P.x,S.x&&v.scrollBy({left:-S.x,behavior:c});break}else if($&&A.y!==p.y){const H=v.scrollTop+g.y,z=w===Pr.Down&&H<=M.y||w===Pr.Up&&H>=P.y;if(z&&!g.x){v.scrollTo({top:H,behavior:c});return}z?S.y=v.scrollTop-H:S.y=w===Pr.Down?v.scrollTop-M.y:v.scrollTop-P.y,S.y&&v.scrollBy({top:-S.y,behavior:c});break}}this.handleMove(t,cp(fb(p,this.referenceCoordinates),S))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ev.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=nI,onActivation:a}=t,{active:o}=r;const{code:i}=e.nativeEvent;if(n.start.includes(i)){const c=o.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function AT(e){return!!(e&&"distance"in e)}function RT(e){return!!(e&&"delay"in e)}class jE{constructor(t,r,n){var a;n===void 0&&(n=RX(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=r;const{event:o}=t,{target:i}=o;this.props=t,this.events=r,this.document=pm(i),this.documentListeners=new vg(this.document),this.listeners=new vg(n),this.windowListeners=new vg(Ma(i)),this.initialCoordinates=(a=hb(o))!=null?a:Oi,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:r,bypassActivationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Fo.Resize,this.handleCancel),this.windowListeners.add(Fo.DragStart,DT),this.windowListeners.add(Fo.VisibilityChange,this.handleCancel),this.windowListeners.add(Fo.ContextMenu,DT),this.documentListeners.add(Fo.Keydown,this.handleKeydown),r){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(RT(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);return}if(AT(r))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:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Fo.Click,LX,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Fo.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:a,props:o}=this,{onMove:i,options:{activationConstraint:c}}=o;if(!a)return;const d=(r=hb(t))!=null?r:Oi,f=fb(a,d);if(!n&&c){if(AT(c)){if(c.tolerance!=null&&WC(f,c.tolerance))return this.handleCancel();if(WC(f,c.distance))return this.handleStart()}return RT(c)&&WC(f,c.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),i(d)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Pr.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const IX={move:{name:"pointermove"},end:{name:"pointerup"}};class tv extends jE{constructor(t){const{event:r}=t,n=pm(r.target);super(t,IX,n)}}tv.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const $X={move:{name:"mousemove"},end:{name:"mouseup"}};var M3;(function(e){e[e.RightClick=2]="RightClick"})(M3||(M3={}));class zX extends jE{constructor(t){super(t,$X,pm(t.event.target))}}zX.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===M3.RightClick?!1:(n==null||n({event:r}),!0)}}];const VC={move:{name:"touchmove"},end:{name:"touchend"}};class FX extends jE{constructor(t){super(t,VC)}static setup(){return window.addEventListener(VC.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(VC.move.name,t)};function t(){}}}FX.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:a}=r;return a.length>1?!1:(n==null||n({event:r}),!0)}}];var xg;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(xg||(xg={}));var mb;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(mb||(mb={}));function HX(e){let{acceleration:t,activator:r=xg.Pointer,canScroll:n,draggingRect:a,enabled:o,interval:i=5,order:c=mb.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:h,delta:p,threshold:g}=e;const S=UX({delta:p,disabled:!o}),[b,v]=eX(),w=m.useRef({x:0,y:0}),C=m.useRef({x:0,y:0}),j=m.useMemo(()=>{switch(r){case xg.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case xg.DraggableRect:return a}},[r,a,d]),E=m.useRef(null),N=m.useCallback(()=>{const P=E.current;if(!P)return;const D=w.current.x*C.current.x,A=w.current.y*C.current.y;P.scrollBy(D,A)},[]),M=m.useMemo(()=>c===mb.TreeOrder?[...f].reverse():f,[c,f]);m.useEffect(()=>{if(!o||!f.length||!j){v();return}for(const P of M){if((n==null?void 0:n(P))===!1)continue;const D=f.indexOf(P),A=h[D];if(!A)continue;const{direction:O,speed:$}=TX(P,A,j,t,g);for(const H of["x","y"])S[H][O[H]]||($[H]=0,O[H]=0);if($.x>0||$.y>0){v(),E.current=P,b(N,i),w.current=$,C.current=O;return}}w.current={x:0,y:0},C.current={x:0,y:0},v()},[t,N,n,v,o,i,JSON.stringify(j),JSON.stringify(S),b,f,M,h,JSON.stringify(g)])}const BX={x:{[js.Backward]:!1,[js.Forward]:!1},y:{[js.Backward]:!1,[js.Forward]:!1}};function UX(e){let{delta:t,disabled:r}=e;const n=db(t);return Yv(a=>{if(r||!n||!a)return BX;const o={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[js.Backward]:a.x[js.Backward]||o.x===-1,[js.Forward]:a.x[js.Forward]||o.x===1},y:{[js.Backward]:a.y[js.Backward]||o.y===-1,[js.Forward]:a.y[js.Forward]||o.y===1}}},[r,t,n])}function WX(e,t){const r=t!==null?e.get(t):void 0,n=r?r.node.current:null;return Yv(a=>{var o;return t===null?null:(o=n!=null?n:a)!=null?o:null},[n,t])}function VX(e,t){return m.useMemo(()=>e.reduce((r,n)=>{const{sensor:a}=n,o=a.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,n)}));return[...r,...o]},[]),[e,t])}var lf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(lf||(lf={}));var P3;(function(e){e.Optimized="optimized"})(P3||(P3={}));const LT=new Map;function qX(e,t){let{dragging:r,dependencies:n,config:a}=t;const[o,i]=m.useState(null),{frequency:c,measure:d,strategy:f}=a,h=m.useRef(e),p=w(),g=Jg(p),S=m.useCallback(function(C){C===void 0&&(C=[]),!g.current&&i(j=>j===null?C:j.concat(C.filter(E=>!j.includes(E))))},[g]),b=m.useRef(null),v=Yv(C=>{if(p&&!r)return LT;if(!C||C===LT||h.current!==e||o!=null){const j=new Map;for(let E of e){if(!E)continue;if(o&&o.length>0&&!o.includes(E.id)&&E.rect.current){j.set(E.id,E.rect.current);continue}const N=E.node.current,M=N?new SE(d(N),N):null;E.rect.current=M,M&&j.set(E.id,M)}return j}return C},[e,o,r,p,d]);return m.useEffect(()=>{h.current=e},[e]),m.useEffect(()=>{p||S()},[r,p]),m.useEffect(()=>{o&&o.length>0&&i(null)},[JSON.stringify(o)]),m.useEffect(()=>{p||typeof c!="number"||b.current!==null||(b.current=setTimeout(()=>{S(),b.current=null},c))},[c,p,S,...n]),{droppableRects:v,measureDroppableContainers:S,measuringScheduled:o!=null};function w(){switch(f){case lf.Always:return!1;case lf.BeforeDragging:return r;default:return!r}}}function EE(e,t){return Yv(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function KX(e,t){return EE(e,t)}function GX(e){let{callback:t,disabled:r}=e;const n=G2(t),a=m.useMemo(()=>{if(r||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:o}=window;return new o(n)},[n,r]);return m.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Z2(e){let{callback:t,disabled:r}=e;const n=G2(t),a=m.useMemo(()=>{if(r||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:o}=window;return new o(n)},[r]);return m.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function YX(e){return new SE(mm(e),e)}function OT(e,t,r){t===void 0&&(t=YX);const[n,a]=m.useReducer(c,null),o=GX({callback(d){if(e)for(const f of d){const{type:h,target:p}=f;if(h==="childList"&&p instanceof HTMLElement&&p.contains(e)){a();break}}}}),i=Z2({callback:a});return Jo(()=>{a(),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]),n;function c(d){if(!e)return null;if(e.isConnected===!1){var f;return(f=d!=null?d:r)!=null?f:null}const h=t(e);return JSON.stringify(d)===JSON.stringify(h)?d:h}}function ZX(e){const t=EE(e);return GO(e,t)}const IT=[];function XX(e){const t=m.useRef(e),r=Yv(n=>e?n&&n!==IT&&e&&t.current&&e.parentNode===t.current.parentNode?n:CE(e):IT,[e]);return m.useEffect(()=>{t.current=e},[e]),r}function QX(e){const[t,r]=m.useState(null),n=m.useRef(e),a=m.useCallback(o=>{const i=UC(o.target);i&&r(c=>c?(c.set(i,T3(i)),new Map(c)):null)},[]);return m.useEffect(()=>{const o=n.current;if(e!==o){i(o);const c=e.map(d=>{const f=UC(d);return f?(f.addEventListener("scroll",a,{passive:!0}),[f,T3(f)]):null}).filter(d=>d!=null);r(c.length?new Map(c):null),n.current=e}return()=>{i(e),i(o)};function i(c){c.forEach(d=>{const f=UC(d);f==null||f.removeEventListener("scroll",a)})}},[a,e]),m.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,i)=>cp(o,i),Oi):tI(e):Oi,[e,t])}function $T(e,t){t===void 0&&(t=[]);const r=m.useRef(null);return m.useEffect(()=>{r.current=null},t),m.useEffect(()=>{const n=e!==Oi;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?fb(e,r.current):Oi}function JX(e){m.useEffect(()=>{if(!K2)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function eQ(e,t){return m.useMemo(()=>e.reduce((r,n)=>{let{eventName:a,handler:o}=n;return r[a]=i=>{o(i,t)},r},{}),[e,t])}function sI(e){return m.useMemo(()=>e?jX(e):null,[e])}const qC=[];function tQ(e,t){t===void 0&&(t=mm);const[r]=e,n=sI(r?Ma(r):null),[a,o]=m.useReducer(c,qC),i=Z2({callback:o});return e.length>0&&a===qC&&o(),Jo(()=>{e.length?e.forEach(d=>i==null?void 0:i.observe(d)):(i==null||i.disconnect(),o())},[e]),a;function c(){return e.length?e.map(d=>JO(d)?n:new SE(t(d),d)):qC}}function aI(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Gv(t)?t:e}function rQ(e){let{measure:t}=e;const[r,n]=m.useState(null),a=m.useCallback(f=>{for(const{target:h}of f)if(Gv(h)){n(p=>{const g=t(h);return p?re(R({},p),{width:g.width,height:g.height}):g});break}},[t]),o=Z2({callback:a}),i=m.useCallback(f=>{const h=aI(f);o==null||o.disconnect(),h&&(o==null||o.observe(h)),n(h?t(h):null)},[t,o]),[c,d]=ub(i);return m.useMemo(()=>({nodeRef:c,rect:r,setRef:d}),[r,c,d])}const nQ=[{sensor:tv,options:{}},{sensor:ev,options:{}}],sQ={current:{}},wy={draggable:{measure:PT},droppable:{measure:PT,strategy:lf.WhileDragging,frequency:P3.Optimized},dragOverlay:{measure:mm}};class yg extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const aQ={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new yg,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:pb},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:wy,measureDroppableContainers:pb,windowRect:null,measuringScheduled:!1},oI={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:pb,draggableNodes:new Map,over:null,measureDroppableContainers:pb},Xv=m.createContext(oI),iI=m.createContext(aQ);function oQ(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new yg}}}function iQ(e,t){switch(t.type){case hs.DragStart:return re(R({},e),{draggable:re(R({},e.draggable),{initialCoordinates:t.initialCoordinates,active:t.active})});case hs.DragMove:return e.draggable.active?re(R({},e),{draggable:re(R({},e.draggable),{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})}):e;case hs.DragEnd:case hs.DragCancel:return re(R({},e),{draggable:re(R({},e.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case hs.RegisterDroppable:{const{element:r}=t,{id:n}=r,a=new yg(e.droppable.containers);return a.set(n,r),re(R({},e),{droppable:re(R({},e.droppable),{containers:a})})}case hs.SetDroppableDisabled:{const{id:r,key:n,disabled:a}=t,o=e.droppable.containers.get(r);if(!o||n!==o.key)return e;const i=new yg(e.droppable.containers);return i.set(r,re(R({},o),{disabled:a})),re(R({},e),{droppable:re(R({},e.droppable),{containers:i})})}case hs.UnregisterDroppable:{const{id:r,key:n}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new yg(e.droppable.containers);return o.delete(r),re(R({},e),{droppable:re(R({},e.droppable),{containers:o})})}default:return e}}function lQ(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:a}=m.useContext(Xv),o=db(n),i=db(r==null?void 0:r.id);return m.useEffect(()=>{if(!t&&!n&&o&&i!=null){if(!Y2(o)||document.activeElement===o.target)return;const c=a.get(i);if(!c)return;const{activatorNode:d,node:f}=c;if(!d.current&&!f.current)return;requestAnimationFrame(()=>{for(const h of[d.current,f.current]){if(!h)continue;const p=nX(h);if(p){p.focus();break}}})}},[n,t,a,i,o]),null}function lI(e,t){let a=t,{transform:r}=a,n=Ce(a,["transform"]);return e!=null&&e.length?e.reduce((o,i)=>i(R({transform:o},n)),r):r}function cQ(e){return m.useMemo(()=>({draggable:R(R({},wy.draggable),e==null?void 0:e.draggable),droppable:R(R({},wy.droppable),e==null?void 0:e.droppable),dragOverlay:R(R({},wy.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 uQ(e){let{activeNode:t,measure:r,initialRect:n,config:a=!0}=e;const o=m.useRef(!1),{x:i,y:c}=typeof a=="boolean"?{x:a,y:a}:a;Jo(()=>{if(!i&&!c||!t){o.current=!1;return}if(o.current||!n)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const h=r(f),p=GO(h,n);if(i||(p.x=0),c||(p.y=0),o.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const g=ZO(f);g&&g.scrollBy({top:p.y,left:p.x})}},[t,i,c,n,r])}const X2=m.createContext(re(R({},Oi),{scaleX:1,scaleY:1}));var Yc;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Yc||(Yc={}));const cI=m.memo(function(t){var r,n,a,o;let xe=t,{id:i,accessibility:c,autoScroll:d=!0,children:f,sensors:h=nQ,collisionDetection:p=kE,measuring:g,modifiers:S}=xe,b=Ce(xe,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const v=m.useReducer(iQ,void 0,oQ),[w,C]=v,[j,E]=cX(),[N,M]=m.useState(Yc.Uninitialized),P=N===Yc.Initialized,{draggable:{active:D,nodes:A,translate:O},droppable:{containers:$}}=w,H=D?A.get(D):null,z=m.useRef({initial:null,translated:null}),I=m.useMemo(()=>{var be;return D!=null?{id:D,data:(be=H==null?void 0:H.data)!=null?be:sQ,rect:z}:null},[D,H]),W=m.useRef(null),[_,K]=m.useState(null),[V,U]=m.useState(null),X=Jg(b,Object.values(b)),G=Zv("DndDescribedBy",i),F=m.useMemo(()=>$.getEnabled(),[$]),q=cQ(g),{droppableRects:Y,measureDroppableContainers:se,measuringScheduled:ee}=qX(F,{dragging:P,dependencies:[O.x,O.y],config:q.droppable}),ae=WX(A,D),oe=m.useMemo(()=>V?hb(V):null,[V]),le=lt(),ue=KX(ae,q.draggable.measure);uQ({activeNode:D?A.get(D):null,config:le.layoutShiftCompensation,initialRect:ue,measure:q.draggable.measure});const ce=OT(ae,q.draggable.measure,ue),he=OT(ae?ae.parentElement:null),we=m.useRef({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:$,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Se=$.getNodeFor((r=we.current.over)==null?void 0:r.id),Ae=rQ({measure:q.dragOverlay.measure}),je=(n=Ae.nodeRef.current)!=null?n:ae,Le=P?(a=Ae.rect)!=null?a:ce:null,Ee=!!(Ae.nodeRef.current&&Ae.rect),He=ZX(Ee?null:ce),Qe=sI(je?Ma(je):null),Ze=XX(P?Se!=null?Se:ae:null),mt=tQ(Ze),Ke=lI(S,{transform:{x:O.x-He.x,y:O.y-He.y,scaleX:1,scaleY:1},activatorEvent:V,active:I,activeNodeRect:ce,containerNodeRect:he,draggingNodeRect:Le,over:we.current.over,overlayNodeRect:Ae.rect,scrollableAncestors:Ze,scrollableAncestorRects:mt,windowRect:Qe}),Lt=oe?cp(oe,O):null,qt=QX(Ze),Xt=$T(qt),Ge=$T(qt,[ce]),zt=cp(Ke,Xt),ir=Le?kX(Le,Ke):null,Ft=I&&ir?p({active:I,collisionRect:ir,droppableRects:Y,droppableContainers:F,pointerCoordinates:Lt}):null,et=wE(Ft,"id"),[cr,ar]=m.useState(null),ur=Ee?Ke:cp(Ke,Ge),Sr=bX(ur,(o=cr==null?void 0:cr.rect)!=null?o:null,ce),Mt=m.useCallback((be,De)=>{let{sensor:Fe,options:Je}=De;if(W.current==null)return;const st=A.get(W.current);if(!st)return;const at=be.nativeEvent,wt=new Fe({active:W.current,activeNode:st,event:at,options:Je,context:we,onStart(Nt){const Gt=W.current;if(Gt==null)return;const kt=A.get(Gt);if(!kt)return;const{onDragStart:dr}=X.current,Yt={active:{id:Gt,data:kt.data,rect:z}};sa.unstable_batchedUpdates(()=>{dr==null||dr(Yt),M(Yc.Initializing),C({type:hs.DragStart,initialCoordinates:Nt,active:Gt}),j({type:"onDragStart",event:Yt})})},onMove(Nt){C({type:hs.DragMove,coordinates:Nt})},onEnd:ct(hs.DragEnd),onCancel:ct(hs.DragCancel)});sa.unstable_batchedUpdates(()=>{K(wt),U(be.nativeEvent)});function ct(Nt){return function(){return pe(this,null,function*(){const{active:kt,collisions:dr,over:Yt,scrollAdjustedTranslate:Ht}=we.current;let lr=null;if(kt&&Ht){const{cancelDrop:It}=X.current;lr={activatorEvent:at,active:kt,collisions:dr,delta:Ht,over:Yt},Nt===hs.DragEnd&&typeof It=="function"&&(yield Promise.resolve(It(lr)))&&(Nt=hs.DragCancel)}W.current=null,sa.unstable_batchedUpdates(()=>{C({type:Nt}),M(Yc.Uninitialized),ar(null),K(null),U(null);const It=Nt===hs.DragEnd?"onDragEnd":"onDragCancel";if(lr){const Mr=X.current[It];Mr==null||Mr(lr),j({type:It,event:lr})}})})}}},[A]),Rr=m.useCallback((be,De)=>(Fe,Je)=>{const st=Fe.nativeEvent,at=A.get(Je);if(W.current!==null||!at||st.dndKit||st.defaultPrevented)return;const wt={active:at};be(Fe,De.options,wt)===!0&&(st.dndKit={capturedBy:De.sensor},W.current=Je,Mt(Fe,De))},[A,Mt]),Me=VX(h,Rr);JX(h),Jo(()=>{ce&&N===Yc.Initializing&&M(Yc.Initialized)},[ce,N]),m.useEffect(()=>{const{onDragMove:be}=X.current,{active:De,activatorEvent:Fe,collisions:Je,over:st}=we.current;if(!De||!Fe)return;const at={active:De,activatorEvent:Fe,collisions:Je,delta:{x:zt.x,y:zt.y},over:st};sa.unstable_batchedUpdates(()=>{be==null||be(at),j({type:"onDragMove",event:at})})},[zt.x,zt.y]),m.useEffect(()=>{const{active:be,activatorEvent:De,collisions:Fe,droppableContainers:Je,scrollAdjustedTranslate:st}=we.current;if(!be||W.current==null||!De||!st)return;const{onDragOver:at}=X.current,wt=Je.get(et),ct=wt&&wt.rect.current?{id:wt.id,rect:wt.rect.current,data:wt.data,disabled:wt.disabled}:null,Nt={active:be,activatorEvent:De,collisions:Fe,delta:{x:st.x,y:st.y},over:ct};sa.unstable_batchedUpdates(()=>{ar(ct),at==null||at(Nt),j({type:"onDragOver",event:Nt})})},[et]),Jo(()=>{we.current={activatorEvent:V,active:I,activeNode:ae,collisionRect:ir,collisions:Ft,droppableRects:Y,draggableNodes:A,draggingNode:je,draggingNodeRect:Le,droppableContainers:$,over:cr,scrollableAncestors:Ze,scrollAdjustedTranslate:zt},z.current={initial:Le,translated:ir}},[I,ae,Ft,ir,A,je,Le,Y,$,cr,Ze,zt]),HX(re(R({},le),{delta:O,draggingRect:ir,pointerCoordinates:Lt,scrollableAncestors:Ze,scrollableAncestorRects:mt}));const Ye=m.useMemo(()=>({active:I,activeNode:ae,activeNodeRect:ce,activatorEvent:V,collisions:Ft,containerNodeRect:he,dragOverlay:Ae,draggableNodes:A,droppableContainers:$,droppableRects:Y,over:cr,measureDroppableContainers:se,scrollableAncestors:Ze,scrollableAncestorRects:mt,measuringConfiguration:q,measuringScheduled:ee,windowRect:Qe}),[I,ae,ce,V,Ft,he,Ae,A,$,Y,cr,se,Ze,mt,q,ee,Qe]),Te=m.useMemo(()=>({activatorEvent:V,activators:Me,active:I,activeNodeRect:ce,ariaDescribedById:{draggable:G},dispatch:C,draggableNodes:A,over:cr,measureDroppableContainers:se}),[V,Me,I,ce,C,G,A,cr,se]);return vt.createElement(KO.Provider,{value:E},vt.createElement(Xv.Provider,{value:Te},vt.createElement(iI.Provider,{value:Ye},vt.createElement(X2.Provider,{value:Sr},f)),vt.createElement(lQ,{disabled:(c==null?void 0:c.restoreFocus)===!1})),vt.createElement(fX,re(R({},c),{hiddenTextDescribedById:G})));function lt(){const be=(_==null?void 0:_.autoScrollEnabled)===!1,De=typeof d=="object"?d.enabled===!1:d===!1,Fe=P&&!be&&!De;return typeof d=="object"?re(R({},d),{enabled:Fe}):{enabled:Fe}}}),dQ=m.createContext(null),zT="button",fQ="Droppable";function uI(e){let{id:t,data:r,disabled:n=!1,attributes:a}=e;const o=Zv(fQ),{activators:i,activatorEvent:c,active:d,activeNodeRect:f,ariaDescribedById:h,draggableNodes:p,over:g}=m.useContext(Xv),{role:S=zT,roleDescription:b="draggable",tabIndex:v=0}=a!=null?a:{},w=(d==null?void 0:d.id)===t,C=m.useContext(w?X2:dQ),[j,E]=ub(),[N,M]=ub(),P=eQ(i,t),D=Jg(r);Jo(()=>(p.set(t,{id:t,key:o,node:j,activatorNode:N,data:D}),()=>{const O=p.get(t);O&&O.key===o&&p.delete(t)}),[p,t]);const A=m.useMemo(()=>({role:S,tabIndex:v,"aria-disabled":n,"aria-pressed":w&&S===zT?!0:void 0,"aria-roledescription":b,"aria-describedby":h.draggable}),[n,S,v,w,b,h.draggable]);return{active:d,activatorEvent:c,activeNodeRect:f,attributes:A,isDragging:w,listeners:n?void 0:P,node:j,over:g,setNodeRef:E,setActivatorNodeRef:M,transform:C}}function dI(){return m.useContext(iI)}const hQ="Droppable",pQ={timeout:25};function Q2(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:a}=e;const o=Zv(hQ),{active:i,dispatch:c,over:d,measureDroppableContainers:f}=m.useContext(Xv),h=m.useRef({disabled:r}),p=m.useRef(!1),g=m.useRef(null),S=m.useRef(null),{disabled:b,updateMeasurementsFor:v,timeout:w}=R(R({},pQ),a),C=Jg(v!=null?v:n),j=m.useCallback(()=>{if(!p.current){p.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{f(Array.isArray(C.current)?C.current:[C.current]),S.current=null},w)},[w]),E=Z2({callback:j,disabled:b||!i}),N=m.useCallback((A,O)=>{E&&(O&&(E.unobserve(O),p.current=!1),A&&E.observe(A))},[E]),[M,P]=ub(N),D=Jg(t);return m.useEffect(()=>{!E||!M.current||(E.disconnect(),p.current=!1,E.observe(M.current))},[M,E]),Jo(()=>(c({type:hs.RegisterDroppable,element:{id:n,key:o,disabled:r,node:M,rect:g,data:D}}),()=>c({type:hs.UnregisterDroppable,key:o,id:n})),[n]),m.useEffect(()=>{r!==h.current.disabled&&(c({type:hs.SetDroppableDisabled,id:n,key:o,disabled:r}),h.current.disabled=r)},[n,o,r,c]),{active:i,rect:g,isOver:(d==null?void 0:d.id)===n,node:M,over:d,setNodeRef:P}}function mQ(e){let{animation:t,children:r}=e;const[n,a]=m.useState(null),[o,i]=m.useState(null),c=db(r);return!r&&!n&&c&&a(c),Jo(()=>{if(!o)return;const d=n==null?void 0:n.key,f=n==null?void 0:n.props.id;if(d==null||f==null){a(null);return}Promise.resolve(t(f,o)).then(()=>{a(null)})},[t,n,o]),vt.createElement(vt.Fragment,null,r,n?m.cloneElement(n,{ref:i}):null)}const gQ={x:0,y:0,scaleX:1,scaleY:1};function vQ(e){let{children:t}=e;return vt.createElement(Xv.Provider,{value:oI},vt.createElement(X2.Provider,{value:gQ},t))}const xQ={position:"fixed",touchAction:"none"},yQ=e=>Y2(e)?"transform 250ms ease":void 0,bQ=m.forwardRef((e,t)=>{let{as:r,activatorEvent:n,adjustScale:a,children:o,className:i,rect:c,style:d,transform:f,transition:h=yQ}=e;if(!c)return null;const p=a?f:re(R({},f),{scaleX:1,scaleY:1}),g=R(re(R({},xQ),{width:c.width,height:c.height,top:c.top,left:c.left,transform:ei.Transform.toString(p),transformOrigin:a&&n?hX(n,c):void 0,transition:typeof h=="function"?h(n):h}),d);return vt.createElement(r,{className:i,style:g,ref:t},o)}),wQ=e=>t=>{let{active:r,dragOverlay:n}=t;const a={},{styles:o,className:i}=e;if(o!=null&&o.active)for(const[c,d]of Object.entries(o.active))d!==void 0&&(a[c]=r.node.style.getPropertyValue(c),r.node.style.setProperty(c,d));if(o!=null&&o.dragOverlay)for(const[c,d]of Object.entries(o.dragOverlay))d!==void 0&&n.node.style.setProperty(c,d);return i!=null&&i.active&&r.node.classList.add(i.active),i!=null&&i.dragOverlay&&n.node.classList.add(i.dragOverlay),function(){for(const[d,f]of Object.entries(a))r.node.style.setProperty(d,f);i!=null&&i.active&&r.node.classList.remove(i.active)}},kQ=e=>{let{transform:{initial:t,final:r}}=e;return[{transform:ei.Transform.toString(t)},{transform:ei.Transform.toString(r)}]},qd={duration:250,easing:"ease",keyframes:kQ,sideEffects:wQ({styles:{active:{opacity:"0"}}})};function CQ(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:a}=e;return G2((o,i)=>{if(t===null)return;const c=r.get(o);if(!c)return;const d=c.node.current;if(!d)return;const f=aI(i);if(!f)return;const{transform:h}=Ma(i).getComputedStyle(i),p=YO(h);if(!p)return;const g=typeof t=="function"?t:SQ(t);return rI(d,a.draggable.measure),g({active:{id:o,data:c.data,node:d,rect:a.draggable.measure(d)},draggableNodes:r,dragOverlay:{node:i,rect:a.dragOverlay.measure(f)},droppableContainers:n,measuringConfiguration:a,transform:p})})}function SQ(e){const{duration:t,easing:r,sideEffects:n,keyframes:a}=R(R({},qd),e);return o=>{let j=o,{active:i,dragOverlay:c,transform:d}=j,f=Ce(j,["active","dragOverlay","transform"]);if(!t)return;const h={x:c.rect.left-i.rect.left,y:c.rect.top-i.rect.top},p={scaleX:d.scaleX!==1?i.rect.width*d.scaleX/c.rect.width:1,scaleY:d.scaleY!==1?i.rect.height*d.scaleY/c.rect.height:1},g=R({x:d.x-h.x,y:d.y-h.y},p),S=a(re(R({},f),{active:i,dragOverlay:c,transform:{initial:d,final:g}})),[b]=S,v=S[S.length-1];if(JSON.stringify(b)===JSON.stringify(v))return;const w=n==null?void 0:n(R({active:i,dragOverlay:c},f)),C=c.node.animate(S,{duration:t,easing:r,fill:"forwards"});return new Promise(E=>{C.onfinish=()=>{w==null||w(),E()}})}}let FT=0;function jQ(e){return m.useMemo(()=>{if(e!=null)return FT++,FT},[e])}const fI=vt.memo(e=>{let{adjustScale:t=!1,children:r,dropAnimation:n,style:a,transition:o,modifiers:i,wrapperElement:c="div",className:d,zIndex:f=999}=e;const{activatorEvent:h,active:p,activeNodeRect:g,containerNodeRect:S,draggableNodes:b,droppableContainers:v,dragOverlay:w,over:C,measuringConfiguration:j,scrollableAncestors:E,scrollableAncestorRects:N,windowRect:M}=dI(),P=m.useContext(X2),D=jQ(p==null?void 0:p.id),A=lI(i,{activatorEvent:h,active:p,activeNodeRect:g,containerNodeRect:S,draggingNodeRect:w.rect,over:C,overlayNodeRect:w.rect,scrollableAncestors:E,scrollableAncestorRects:N,transform:P,windowRect:M}),O=EE(g),$=CQ({config:n,draggableNodes:b,droppableContainers:v,measuringConfiguration:j}),H=O?w.setRef:void 0;return vt.createElement(vQ,null,vt.createElement(mQ,{animation:$},p&&D?vt.createElement(bQ,{key:D,id:p.id,ref:H,as:c,activatorEvent:h,adjustScale:t,className:d,transition:o,rect:O,style:R({zIndex:f},a),transform:A},r):null))});function Jn(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function EQ(e,t){return e.reduce((r,n,a)=>{const o=t.get(n);return o&&(r[a]=o),r},Array(e.length))}function xx(e){return e!==null&&e>=0}function NQ(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function _Q(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const yx={scaleX:1,scaleY:1},TQ=e=>{var t;let{rects:r,activeNodeRect:n,activeIndex:a,overIndex:o,index:i}=e;const c=(t=r[a])!=null?t:n;if(!c)return null;const d=MQ(r,i,a);if(i===a){const f=r[o];return f?R({x:a<o?f.left+f.width-(c.left+c.width):f.left-c.left,y:0},yx):null}return i>a&&i<=o?R({x:-c.width-d,y:0},yx):i<a&&i>=o?R({x:c.width+d,y:0},yx):R({x:0,y:0},yx)};function MQ(e,t,r){const n=e[t],a=e[t-1],o=e[t+1];return!n||!a&&!o?0:r<t?a?n.left-(a.left+a.width):o.left-(n.left+n.width):o?o.left-(n.left+n.width):n.left-(a.left+a.width)}const hI=e=>{let{rects:t,activeIndex:r,overIndex:n,index:a}=e;const o=Jn(t,n,r),i=t[a],c=o[a];return!c||!i?null:{x:c.left-i.left,y:c.top-i.top,scaleX:c.width/i.width,scaleY:c.height/i.height}},pI="Sortable",mI=vt.createContext({activeIndex:-1,containerId:pI,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:hI,disabled:{draggable:!1,droppable:!1}});function D3(e){let{children:t,id:r,items:n,strategy:a=hI,disabled:o=!1}=e;const{active:i,dragOverlay:c,droppableRects:d,over:f,measureDroppableContainers:h}=dI(),p=Zv(pI,r),g=c.rect!==null,S=m.useMemo(()=>n.map(P=>typeof P=="object"&&"id"in P?P.id:P),[n]),b=i!=null,v=i?S.indexOf(i.id):-1,w=f?S.indexOf(f.id):-1,C=m.useRef(S),j=!NQ(S,C.current),E=w!==-1&&v===-1||j,N=_Q(o);Jo(()=>{j&&b&&h(S)},[j,S,b,h]),m.useEffect(()=>{C.current=S},[S]);const M=m.useMemo(()=>({activeIndex:v,containerId:p,disabled:N,disableTransforms:E,items:S,overIndex:w,useDragOverlay:g,sortedRects:EQ(S,d),strategy:a}),[v,p,N.draggable,N.droppable,E,S,w,d,g,a]);return vt.createElement(mI.Provider,{value:M},t)}const PQ=e=>{let{id:t,items:r,activeIndex:n,overIndex:a}=e;return Jn(r,n,a).indexOf(t)},DQ=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:a,items:o,newIndex:i,previousItems:c,previousContainerId:d,transition:f}=e;return!f||!n||c!==o&&a===i?!1:r?!0:i!==a&&t===d},AQ={duration:200,easing:"ease"},gI="transform",RQ=ei.Transition.toString({property:gI,duration:0,easing:"linear"}),LQ={roleDescription:"sortable"};function OQ(e){let{disabled:t,index:r,node:n,rect:a}=e;const[o,i]=m.useState(null),c=m.useRef(r);return Jo(()=>{if(!t&&r!==c.current&&n.current){const d=a.current;if(d){const f=mm(n.current,{ignoreTransform:!0}),h={x:d.left-f.left,y:d.top-f.top,scaleX:d.width/f.width,scaleY:d.height/f.height};(h.x||h.y)&&i(h)}}r!==c.current&&(c.current=r)},[t,r,n,a]),m.useEffect(()=>{o&&i(null)},[o]),o}function NE(e){let{animateLayoutChanges:t=DQ,attributes:r,disabled:n,data:a,getNewIndex:o=PQ,id:i,strategy:c,resizeObserverConfig:d,transition:f=AQ}=e;const{items:h,containerId:p,activeIndex:g,disabled:S,disableTransforms:b,sortedRects:v,overIndex:w,useDragOverlay:C,strategy:j}=m.useContext(mI),E=IQ(n,S),N=h.indexOf(i),M=m.useMemo(()=>R({sortable:{containerId:p,index:N,items:h}},a),[p,a,N,h]),P=m.useMemo(()=>h.slice(h.indexOf(i)),[h,i]),{rect:D,node:A,isOver:O,setNodeRef:$}=Q2({id:i,data:M,disabled:E.droppable,resizeObserverConfig:R({updateMeasurementsFor:P},d)}),{active:H,activatorEvent:z,activeNodeRect:I,attributes:W,setNodeRef:_,listeners:K,isDragging:V,over:U,setActivatorNodeRef:X,transform:G}=uI({id:i,data:M,attributes:R(R({},LQ),r),disabled:E.draggable}),F=JZ($,_),q=!!H,Y=q&&!b&&xx(g)&&xx(w),se=!C&&V,ee=se&&Y?G:null,ae=c!=null?c:j,oe=Y?ee!=null?ee:ae({rects:v,activeNodeRect:I,activeIndex:g,overIndex:w,index:N}):null,le=xx(g)&&xx(w)?o({id:i,items:h,activeIndex:g,overIndex:w}):N,ue=H==null?void 0:H.id,ce=m.useRef({activeId:ue,items:h,newIndex:le,containerId:p}),he=h!==ce.current.items,we=t({active:H,containerId:p,isDragging:V,isSorting:q,id:i,index:N,items:h,newIndex:ce.current.newIndex,previousItems:ce.current.items,previousContainerId:ce.current.containerId,transition:f,wasDragging:ce.current.activeId!=null}),Se=OQ({disabled:!we,index:N,node:A,rect:D});return m.useEffect(()=>{q&&ce.current.newIndex!==le&&(ce.current.newIndex=le),p!==ce.current.containerId&&(ce.current.containerId=p),h!==ce.current.items&&(ce.current.items=h)},[q,le,p,h]),m.useEffect(()=>{if(ue===ce.current.activeId)return;if(ue&&!ce.current.activeId){ce.current.activeId=ue;return}const je=setTimeout(()=>{ce.current.activeId=ue},50);return()=>clearTimeout(je)},[ue]),{active:H,activeIndex:g,attributes:W,data:M,rect:D,index:N,newIndex:le,items:h,isOver:O,isSorting:q,isDragging:V,listeners:K,node:A,overIndex:w,over:U,setNodeRef:F,setActivatorNodeRef:X,setDroppableNodeRef:$,setDraggableNodeRef:_,transform:Se!=null?Se:oe,transition:Ae()};function Ae(){if(Se||he&&ce.current.newIndex===N)return RQ;if(!(se&&!Y2(z)||!f)&&(q||we))return ei.Transition.toString(re(R({},f),{property:gI}))}}function IQ(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}Pr.Down,Pr.Right,Pr.Up,Pr.Left;function ta(e,t,r){const n=a=>e.filter(o=>o.parentId===a&&o.tabId===t).map(o=>re(R({},o),{id:o.itemId.toString(),children:[],type:o.isBoard?Hs:o.isClip?Co:void 0})).sort((o,i)=>o.orderNumber-i.orderNumber).map(o=>{const i=o;return"isBoard"in i&&i.isBoard&&i.type===Hs&&(i.children=n(i.id.toString()),i.children.length===0&&delete i.children),i});return n(r||null)}function vI(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=vI(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function gr(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=vI(e))&&(n&&(n+=" "),n+=t);return n}var is={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let $Q=0;function HT(e,t){const r="atom".concat(++$Q),n={toString:()=>r};return typeof e=="function"?n.read=e:(n.init=e,n.read=function(a){return a(this)},n.write=function(a,o,i){return o(this,typeof i=="function"?i(a(this)):i)}),t&&(n.write=t),n}const KC=e=>"init"in e,GC=e=>!!e.write,gb=new WeakMap,zQ=(e,t)=>{gb.set(e,t),e.catch(()=>{}).finally(()=>gb.delete(e))},BT=(e,t)=>{const r=gb.get(e);r&&(gb.delete(e),r(t))},UT=(e,t)=>{e.status="fulfilled",e.value=t},WT=(e,t)=>{e.status="rejected",e.reason=t},FQ=e=>typeof(e==null?void 0:e.then)=="function",y0=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),VT=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),ah=e=>!!e&&"v"in e&&e.v instanceof Promise,HQ=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,bx=e=>{if("e"in e)throw e.e;return e.v},BQ=()=>{const e=new WeakMap,t=new WeakMap,r=new Map;let n,a;(is?"production":void 0)!=="production"&&(n=new Set,a=new Set);const o=A=>e.get(A),i=(A,O)=>{(is?"production":void 0)!=="production"&&Object.freeze(O);const $=e.get(A);if(e.set(A,O),r.has(A)||r.set(A,$),ah($)){const H="v"in O?O.v instanceof Promise?O.v:Promise.resolve(O.v):Promise.reject(O.e);$.v!==H&&BT($.v,H)}},c=(A,O,$)=>{const H=new Map;let z=!1;$.forEach((I,W)=>{!I&&W===A&&(I=O),I?(H.set(W,I),O.d.get(W)!==I&&(z=!0)):(is?"production":void 0)!=="production"&&console.warn("[Bug] atom state not found")}),(z||O.d.size!==H.size)&&(O.d=H)},d=(A,O,$)=>{const H=o(A),z={d:(H==null?void 0:H.d)||new Map,v:O};if($&&c(A,z,$),y0(H,z)&&H.d===z.d)return H;if(ah(H)&&ah(z)&&HQ(H,z)){if(H.d===z.d)return H;z.v=H.v}return i(A,z),z},f=(A,O,$,H)=>{if(FQ(O)){let z;const I=()=>{const _=o(A);if(!ah(_)||_.v!==W)return;const K=d(A,W,$);t.has(A)&&_.d!==K.d&&M(A,K,_.d)},W=new Promise((_,K)=>{let V=!1;O.then(U=>{V||(V=!0,UT(W,U),_(U),I())},U=>{V||(V=!0,WT(W,U),K(U),I())}),z=U=>{V||(V=!0,U.then(X=>UT(W,X),X=>WT(W,X)),_(U))}});return W.orig=O,W.status="pending",zQ(W,_=>{_&&z(_),H==null||H()}),d(A,W,$)}return d(A,O,$)},h=(A,O,$)=>{const H=o(A),z={d:(H==null?void 0:H.d)||new Map,e:O};return $&&c(A,z,$),VT(H,z)&&H.d===z.d?H:(i(A,z),z)},p=(A,O)=>{const $=o(A);if(!O&&$&&(t.has(A)||Array.from($.d).every(([V,U])=>{if(V===A)return!0;const X=p(V);return X===U||y0(X,U)})))return $;const H=new Map;let z=!0;const I=V=>{if(V===A){const X=o(V);if(X)return H.set(V,X),bx(X);if(KC(V))return H.set(V,void 0),V.init;throw new Error("no atom init")}const U=p(V);return H.set(V,U),bx(U)};let W,_;const K={get signal(){return W||(W=new AbortController),W.signal},get setSelf(){return(is?"production":void 0)!=="production"&&!GC(A)&&console.warn("setSelf function cannot be used with read-only atom"),!_&&GC(A)&&(_=(...V)=>{if((is?"production":void 0)!=="production"&&z&&console.warn("setSelf function cannot be called in sync"),!z)return j(A,...V)}),_}};try{const V=A.read(I,K);return f(A,V,H,()=>W==null?void 0:W.abort())}catch(V){return h(A,V,H)}finally{z=!1}},g=A=>bx(p(A)),S=A=>{let O=t.get(A);return O||(O=E(A)),O},b=(A,O)=>!O.l.size&&(!O.t.size||O.t.size===1&&O.t.has(A)),v=A=>{const O=t.get(A);O&&b(A,O)&&N(A)},w=A=>{const O=new Map,$=new WeakMap,H=W=>{var _;const K=new Set((_=t.get(W))==null?void 0:_.t);return r.forEach((V,U)=>{var X;(X=o(U))!=null&&X.d.has(W)&&K.add(U)}),K},z=W=>{H(W).forEach(_=>{_!==W&&(O.set(_,(O.get(_)||new Set).add(W)),$.set(_,($.get(_)||0)+1),z(_))})};z(A);const I=W=>{H(W).forEach(_=>{var K;if(_!==W){let V=$.get(_);if(V&&$.set(_,--V),!V){let U=!!((K=O.get(_))!=null&&K.size);if(U){const X=o(_),G=p(_,!0);U=!y0(X,G)}U||O.forEach(X=>X.delete(_))}I(_)}})};I(A)},C=(A,...O)=>{let $=!0;const H=W=>bx(p(W)),z=(W,..._)=>{let K;if(W===A){if(!KC(W))throw new Error("atom not writable");const V=o(W),U=f(W,_[0]);y0(V,U)||w(W)}else K=C(W,..._);if(!$){const V=P();(is?"production":void 0)!=="production"&&n.forEach(U=>U({type:"async-write",flushed:V}))}return K},I=A.write(H,z,...O);return $=!1,I},j=(A,...O)=>{const $=C(A,...O),H=P();return(is?"production":void 0)!=="production"&&n.forEach(z=>z({type:"write",flushed:H})),$},E=(A,O,$)=>{var H;const z=$||[];(H=o(A))==null||H.d.forEach((W,_)=>{const K=t.get(_);K?K.t.add(A):_!==A&&E(_,A,z)}),p(A);const I={t:new Set(O&&[O]),l:new Set};if(t.set(A,I),(is?"production":void 0)!=="production"&&a.add(A),GC(A)&&A.onMount){const{onMount:W}=A;z.push(()=>{const _=W((...K)=>j(A,...K));_&&(I.u=_)})}return $||z.forEach(W=>W()),I},N=A=>{var O;const $=(O=t.get(A))==null?void 0:O.u;$&&$(),t.delete(A),(is?"production":void 0)!=="production"&&a.delete(A);const H=o(A);H?(ah(H)&&BT(H.v),H.d.forEach((z,I)=>{if(I!==A){const W=t.get(I);W&&(W.t.delete(A),b(I,W)&&N(I))}})):(is?"production":void 0)!=="production"&&console.warn("[Bug] could not find atom state to unmount",A)},M=(A,O,$)=>{const H=new Set(O.d.keys());$==null||$.forEach((z,I)=>{if(H.has(I)){H.delete(I);return}const W=t.get(I);W&&(W.t.delete(A),b(I,W)&&N(I))}),H.forEach(z=>{const I=t.get(z);I?I.t.add(A):t.has(A)&&E(z,A)})},P=()=>{let A;for((is?"production":void 0)!=="production"&&(A=new Set);r.size;){const O=Array.from(r);r.clear(),O.forEach(([$,H])=>{const z=o($);if(z){const I=t.get($);I&&z.d!==(H==null?void 0:H.d)&&M($,z,H==null?void 0:H.d),I&&!(!ah(H)&&(y0(H,z)||VT(H,z)))&&(I.l.forEach(W=>W()),(is?"production":void 0)!=="production"&&A.add($))}else(is?"production":void 0)!=="production"&&console.warn("[Bug] no atom state to flush")})}if((is?"production":void 0)!=="production")return A},D=(A,O)=>{const $=S(A),H=P(),z=$.l;return z.add(O),(is?"production":void 0)!=="production"&&n.forEach(I=>I({type:"sub",flushed:H})),()=>{z.delete(O),v(A),(is?"production":void 0)!=="production"&&n.forEach(I=>I({type:"unsub"}))}};return(is?"production":void 0)!=="production"?{get:g,set:j,sub:D,dev_subscribe_store:(A,O)=>{if(O!==2)throw new Error("The current StoreListener revision is 2.");return n.add(A),()=>{n.delete(A)}},dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:A=>e.get(A),dev_get_mounted:A=>t.get(A),dev_restore_atoms:A=>{for(const[$,H]of A)KC($)&&(f($,H),w($));const O=P();n.forEach($=>$({type:"restore",flushed:O}))}}:{get:g,set:j,sub:D}};let YC;(is?"production":void 0)!=="production"&&(typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__=="number"?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1);const UQ=()=>(YC||((is?"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"),YC=BQ()),YC),WQ=m.createContext(void 0),VQ=e=>{const t=m.useContext(WQ);return(e==null?void 0:e.store)||t||UQ()},qQ=e=>typeof(e==null?void 0:e.then)=="function",KQ=vt.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 xt(e,t){const r=VQ(t),[[n,a,o],i]=m.useReducer(f=>{const h=r.get(e);return Object.is(f[0],h)&&f[1]===r&&f[2]===e?f:[h,r,e]},void 0,()=>[r.get(e),r,e]);let c=n;(a!==r||o!==e)&&(i(),c=r.get(e));const d=t==null?void 0:t.delay;return m.useEffect(()=>{const f=r.sub(e,()=>{if(typeof d=="number"){setTimeout(i,d);return}i()});return i(),f},[r,e,d]),m.useDebugValue(c),qQ(c)?KQ(c):c}const _E="-";function GQ(e){const t=ZQ(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;function a(i){const c=i.split(_E);return c[0]===""&&c.length!==1&&c.shift(),xI(c,t)||YQ(i)}function o(i,c){const d=r[i]||[];return c&&n[i]?[...d,...n[i]]:d}return{getClassGroupId:a,getConflictingClassGroupIds:o}}function xI(e,t){var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?xI(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(_E);return(i=t.validators.find(({validator:c})=>c(o)))==null?void 0:i.classGroupId}const qT=/^\[(.+)\]$/;function YQ(e){if(qT.test(e)){const t=qT.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function ZQ(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return QQ(Object.entries(e.classGroups),r).forEach(([o,i])=>{A3(i,n,o,t)}),n}function A3(e,t,r,n){e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:KT(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(XQ(a)){A3(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,i])=>{A3(i,KT(t,o),r,n)})})}function KT(e,t){let r=e;return t.split(_E).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r}function XQ(e){return e.isThemeGetter}function QQ(e,t){return t?e.map(([r,n])=>{const a=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,c])=>[t+i,c])):o);return[r,a]}):e}function JQ(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function a(o,i){r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)}return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return a(o,i),i},set(o,i){r.has(o)?r.set(o,i):a(o,i)}}}const yI="!";function eJ(e){const t=e.separator,r=t.length===1,n=t[0],a=t.length;return function(i){const c=[];let d=0,f=0,h;for(let v=0;v<i.length;v++){let w=i[v];if(d===0){if(w===n&&(r||i.slice(v,v+a)===t)){c.push(i.slice(f,v)),f=v+a;continue}if(w==="/"){h=v;continue}}w==="["?d++:w==="]"&&d--}const p=c.length===0?i:i.substring(f),g=p.startsWith(yI),S=g?p.substring(1):p,b=h&&h>f?h-f:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:S,maybePostfixModifierPosition:b}}}function tJ(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t}function rJ(e){return R({cache:JQ(e.cacheSize),splitModifiers:eJ(e)},GQ(e))}const nJ=/\s+/;function sJ(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=new Set;return e.trim().split(nJ).map(i=>{const{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=r(i);let p=n(h?f.substring(0,h):f),g=!!h;if(!p){if(!h)return{isTailwindClass:!1,originalClassName:i};if(p=n(f),!p)return{isTailwindClass:!1,originalClassName:i};g=!1}const S=tJ(c).join(":");return{isTailwindClass:!0,modifierId:d?S+yI:S,classGroupId:p,originalClassName:i,hasPostfixModifier:g}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:c,classGroupId:d,hasPostfixModifier:f}=i,h=c+d;return o.has(h)?!1:(o.add(h),a(d,f).forEach(p=>o.add(c+p)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function aJ(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=bI(t))&&(n&&(n+=" "),n+=r);return n}function bI(e){if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=bI(e[n]))&&(r&&(r+=" "),r+=t);return r}function oJ(e,...t){let r,n,a,o=i;function i(d){const f=t.reduce((h,p)=>p(h),e());return r=rJ(f),n=r.cache.get,a=r.cache.set,o=c,c(d)}function c(d){const f=n(d);if(f)return f;const h=sJ(d,r);return a(d,h),h}return function(){return o(aJ.apply(null,arguments))}}function gn(e){const t=r=>r[e]||[];return t.isThemeGetter=!0,t}const wI=/^\[(?:([a-z-]+):)?(.+)\]$/i,iJ=/^\d+\/\d+$/,lJ=new Set(["px","full","screen"]),cJ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uJ=/\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$/,dJ=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function hi(e){return jd(e)||lJ.has(e)||iJ.test(e)}function Lc(e){return gm(e,"length",bJ)}function jd(e){return!!e&&!Number.isNaN(Number(e))}function wx(e){return gm(e,"number",jd)}function b0(e){return!!e&&Number.isInteger(Number(e))}function hJ(e){return e.endsWith("%")&&jd(e.slice(0,-1))}function jr(e){return wI.test(e)}function Oc(e){return cJ.test(e)}const pJ=new Set(["length","size","percentage"]);function mJ(e){return gm(e,pJ,kI)}function gJ(e){return gm(e,"position",kI)}const vJ=new Set(["image","url"]);function xJ(e){return gm(e,vJ,kJ)}function yJ(e){return gm(e,"",wJ)}function w0(){return!0}function gm(e,t,r){const n=wI.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1}function bJ(e){return uJ.test(e)}function kI(){return!1}function wJ(e){return dJ.test(e)}function kJ(e){return fJ.test(e)}function CJ(){const e=gn("colors"),t=gn("spacing"),r=gn("blur"),n=gn("brightness"),a=gn("borderColor"),o=gn("borderRadius"),i=gn("borderSpacing"),c=gn("borderWidth"),d=gn("contrast"),f=gn("grayscale"),h=gn("hueRotate"),p=gn("invert"),g=gn("gap"),S=gn("gradientColorStops"),b=gn("gradientColorStopPositions"),v=gn("inset"),w=gn("margin"),C=gn("opacity"),j=gn("padding"),E=gn("saturate"),N=gn("scale"),M=gn("sepia"),P=gn("skew"),D=gn("space"),A=gn("translate"),O=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",jr,t],z=()=>[jr,t],I=()=>["",hi,Lc],W=()=>["auto",jd,jr],_=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],U=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",jr],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>[jd,wx],q=()=>[jd,jr];return{cacheSize:500,separator:":",theme:{colors:[w0],spacing:[hi,Lc],blur:["none","",Oc,jr],brightness:F(),borderColor:[e],borderRadius:["none","","full",Oc,jr],borderSpacing:z(),borderWidth:I(),contrast:F(),grayscale:X(),hueRotate:q(),invert:X(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[hJ,Lc],inset:H(),margin:H(),opacity:F(),padding:z(),saturate:F(),scale:F(),sepia:X(),skew:q(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",jr]}],container:["container"],columns:[{columns:[Oc]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"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:[..._(),jr]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",b0,jr]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",jr]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",b0,jr]}],"grid-cols":[{"grid-cols":[w0]}],"col-start-end":[{col:["auto",{span:["full",b0,jr]},jr]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[w0]}],"row-start-end":[{row:["auto",{span:[b0,jr]},jr]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",jr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",jr]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",jr,t]}],"min-w":[{"min-w":["min","max","fit",jr,hi]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Oc]},Oc,jr]}],h:[{h:[jr,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",hi,jr]}],"max-h":[{"max-h":[jr,t,"min","max","fit"]}],"font-size":[{text:["base",Oc,Lc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wx]}],"font-family":[{font:[w0]}],"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",jr]}],"line-clamp":[{"line-clamp":["none",jd,wx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",hi,jr]}],"list-image":[{"list-image":["none",jr]}],"list-style-type":[{list:["none","disc","decimal",jr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",hi,Lc]}],"underline-offset":[{"underline-offset":["auto",hi,jr]}],"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",jr]}],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",jr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[..._(),gJ]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mJ]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xJ]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],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":[C]}],"border-style":[{border:[...K(),"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":[C]}],"divide-style":[{divide:K()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[hi,jr]}],"outline-w":[{outline:[hi,Lc]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[hi,Lc]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Oc,yJ]}],"shadow-color":[{shadow:[w0]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":V()}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Oc,jr]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[p]}],saturate:[{saturate:[E]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"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",jr]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",jr]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",jr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[N]}],"scale-x":[{"scale-x":[N]}],"scale-y":[{"scale-y":[N]}],rotate:[{rotate:[b0,jr]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",jr]}],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",jr]}],"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",jr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[hi,Lc,wx]}],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 SJ=oJ(CJ);function ec(e){if(!e&&typeof e!="string")return!1;const t=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return/^https?:\/\//.test(e)?!1:t.test(e)}function jJ(e){return/^\d+\.\d+\.\d+$/.test(e)}function EJ(e,t){if(!e||!jJ(e))return-1;const r=e.split("."),n=t.split(".");for(let a=0;a<r.length;a++){const o=parseInt(r[a],10),i=parseInt(n[a],10);if(o>i)return 1;if(o<i)return-1}return 0}var CI={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Tr,function(){var r=1e3,n=6e4,a=36e5,o="millisecond",i="second",c="minute",d="hour",f="day",h="week",p="month",g="quarter",S="year",b="date",v="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,j={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(W){var _=["th","st","nd","rd"],K=W%100;return"["+W+(_[(K-20)%10]||_[K]||_[0])+"]"}},E=function(W,_,K){var V=String(W);return!V||V.length>=_?W:""+Array(_+1-V.length).join(K)+W},N={s:E,z:function(W){var _=-W.utcOffset(),K=Math.abs(_),V=Math.floor(K/60),U=K%60;return(_<=0?"+":"-")+E(V,2,"0")+":"+E(U,2,"0")},m:function W(_,K){if(_.date()<K.date())return-W(K,_);var V=12*(K.year()-_.year())+(K.month()-_.month()),U=_.clone().add(V,p),X=K-U<0,G=_.clone().add(V+(X?-1:1),p);return+(-(V+(K-U)/(X?U-G:G-U))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:p,y:S,w:h,d:f,D:b,h:d,m:c,s:i,ms:o,Q:g}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},M="en",P={};P[M]=j;var D="$isDayjsObject",A=function(W){return W instanceof z||!(!W||!W[D])},O=function W(_,K,V){var U;if(!_)return M;if(typeof _=="string"){var X=_.toLowerCase();P[X]&&(U=X),K&&(P[X]=K,U=X);var G=_.split("-");if(!U&&G.length>1)return W(G[0])}else{var F=_.name;P[F]=_,U=F}return!V&&U&&(M=U),U||!V&&M},$=function(W,_){if(A(W))return W.clone();var K=typeof _=="object"?_:{};return K.date=W,K.args=arguments,new z(K)},H=N;H.l=O,H.i=A,H.w=function(W,_){return $(W,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var z=function(){function W(K){this.$L=O(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[D]=!0}var _=W.prototype;return _.parse=function(K){this.$d=function(V){var U=V.date,X=V.utc;if(U===null)return new Date(NaN);if(H.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var G=U.match(w);if(G){var F=G[2]-1||0,q=(G[7]||"0").substring(0,3);return X?new Date(Date.UTC(G[1],F,G[3]||1,G[4]||0,G[5]||0,G[6]||0,q)):new Date(G[1],F,G[3]||1,G[4]||0,G[5]||0,G[6]||0,q)}}return new Date(U)}(K),this.init()},_.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},_.$utils=function(){return H},_.isValid=function(){return this.$d.toString()!==v},_.isSame=function(K,V){var U=$(K);return this.startOf(V)<=U&&U<=this.endOf(V)},_.isAfter=function(K,V){return $(K)<this.startOf(V)},_.isBefore=function(K,V){return this.endOf(V)<$(K)},_.$g=function(K,V,U){return H.u(K)?this[V]:this.set(U,K)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(K,V){var U=this,X=!!H.u(V)||V,G=H.p(K),F=function(ue,ce){var he=H.w(U.$u?Date.UTC(U.$y,ce,ue):new Date(U.$y,ce,ue),U);return X?he:he.endOf(f)},q=function(ue,ce){return H.w(U.toDate()[ue].apply(U.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(ce)),U)},Y=this.$W,se=this.$M,ee=this.$D,ae="set"+(this.$u?"UTC":"");switch(G){case S:return X?F(1,0):F(31,11);case p:return X?F(1,se):F(0,se+1);case h:var oe=this.$locale().weekStart||0,le=(Y<oe?Y+7:Y)-oe;return F(X?ee-le:ee+(6-le),se);case f:case b:return q(ae+"Hours",0);case d:return q(ae+"Minutes",1);case c:return q(ae+"Seconds",2);case i:return q(ae+"Milliseconds",3);default:return this.clone()}},_.endOf=function(K){return this.startOf(K,!1)},_.$set=function(K,V){var U,X=H.p(K),G="set"+(this.$u?"UTC":""),F=(U={},U[f]=G+"Date",U[b]=G+"Date",U[p]=G+"Month",U[S]=G+"FullYear",U[d]=G+"Hours",U[c]=G+"Minutes",U[i]=G+"Seconds",U[o]=G+"Milliseconds",U)[X],q=X===f?this.$D+(V-this.$W):V;if(X===p||X===S){var Y=this.clone().set(b,1);Y.$d[F](q),Y.init(),this.$d=Y.set(b,Math.min(this.$D,Y.daysInMonth())).$d}else F&&this.$d[F](q);return this.init(),this},_.set=function(K,V){return this.clone().$set(K,V)},_.get=function(K){return this[H.p(K)]()},_.add=function(K,V){var U,X=this;K=Number(K);var G=H.p(V),F=function(se){var ee=$(X);return H.w(ee.date(ee.date()+Math.round(se*K)),X)};if(G===p)return this.set(p,this.$M+K);if(G===S)return this.set(S,this.$y+K);if(G===f)return F(1);if(G===h)return F(7);var q=(U={},U[c]=n,U[d]=a,U[i]=r,U)[G]||1,Y=this.$d.getTime()+K*q;return H.w(Y,this)},_.subtract=function(K,V){return this.add(-1*K,V)},_.format=function(K){var V=this,U=this.$locale();if(!this.isValid())return U.invalidDate||v;var X=K||"YYYY-MM-DDTHH:mm:ssZ",G=H.z(this),F=this.$H,q=this.$m,Y=this.$M,se=U.weekdays,ee=U.months,ae=U.meridiem,oe=function(ce,he,we,Se){return ce&&(ce[he]||ce(V,X))||we[he].slice(0,Se)},le=function(ce){return H.s(F%12||12,ce,"0")},ue=ae||function(ce,he,we){var Se=ce<12?"AM":"PM";return we?Se.toLowerCase():Se};return X.replace(C,function(ce,he){return he||function(we){switch(we){case"YY":return String(V.$y).slice(-2);case"YYYY":return H.s(V.$y,4,"0");case"M":return Y+1;case"MM":return H.s(Y+1,2,"0");case"MMM":return oe(U.monthsShort,Y,ee,3);case"MMMM":return oe(ee,Y);case"D":return V.$D;case"DD":return H.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return oe(U.weekdaysMin,V.$W,se,2);case"ddd":return oe(U.weekdaysShort,V.$W,se,3);case"dddd":return se[V.$W];case"H":return String(F);case"HH":return H.s(F,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return ue(F,q,!0);case"A":return ue(F,q,!1);case"m":return String(q);case"mm":return H.s(q,2,"0");case"s":return String(V.$s);case"ss":return H.s(V.$s,2,"0");case"SSS":return H.s(V.$ms,3,"0");case"Z":return G}return null}(ce)||G.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(K,V,U){var X,G=this,F=H.p(V),q=$(K),Y=(q.utcOffset()-this.utcOffset())*n,se=this-q,ee=function(){return H.m(G,q)};switch(F){case S:X=ee()/12;break;case p:X=ee();break;case g:X=ee()/3;break;case h:X=(se-Y)/6048e5;break;case f:X=(se-Y)/864e5;break;case d:X=se/a;break;case c:X=se/n;break;case i:X=se/r;break;default:X=se}return U?X:H.a(X)},_.daysInMonth=function(){return this.endOf(p).$D},_.$locale=function(){return P[this.$L]},_.locale=function(K,V){if(!K)return this.$L;var U=this.clone(),X=O(K,V,!0);return X&&(U.$L=X),U},_.clone=function(){return H.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()},W}(),I=z.prototype;return $.prototype=I,[["$ms",o],["$s",i],["$m",c],["$H",d],["$W",f],["$M",p],["$y",S],["$D",b]].forEach(function(W){I[W[1]]=function(_){return this.$g(_,W[0],W[1])}}),$.extend=function(W,_){return W.$i||(W(_,z,$),W.$i=!0),$},$.locale=O,$.isDayjs=A,$.unix=function(W){return $(1e3*W)},$.en=P[M],$.Ls=P,$.p={},$})})(CI);var NJ=CI.exports;const jn=Fi(NJ);function vm(e){const t=HT(e.getState());return t.onMount=r=>{const n=()=>{r(e.getState())},a=e.subscribe(n);return n(),a},HT(r=>r(t),(r,n,a)=>{const o=typeof a=="function"?a(r(t)):a;e.setState(o,!0)})}var _J={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GT=e=>{let t;const r=new Set,n=(d,f)=>{const h=typeof d=="function"?d(t):d;if(!Object.is(h,t)){const p=t;t=(f!=null?f:typeof h!="object")?h:Object.assign({},t,h),r.forEach(g=>g(t,p))}},a=()=>t,c={setState:n,getState:a,subscribe:d=>(r.add(d),()=>r.delete(d)),destroy:()=>{(_J?"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."),r.clear()}};return t=e(n,a,c),c},xm=e=>e?GT(e):GT,YT=bt(null),Si=bt(!1),Tn=bt(0),_h=bt(0),Ed=bt(!1),Ru=bt(!1),vb=bt(!1),Nd=bt(null),Wa=bt(null),_i=bt(null),gi=bt(null),Zc=bt(null),vd=bt(null),$a=bt(null),qh=bt(!1),bo=bt(!1),bl=bt(null),_d=bt(!1),up=bt(!1),fo=bt(!1),X0=bt(null),Ho=bt(null),R3=bt(null),Ll=bt(!1),xd=bt(null),Fs=bt(null),$s=bt(null),ea=bt(null),cf=bt(null),qa=bt(null),ol=bt(null),Q0=bt(null),Mu=bt(null),Wp=bt(null),rv=bt(null),Ol=bt(null),kx=bt(null),ZC=bt(null),Xc=bt(null),ky=bt(!1),Fl=bt(!1),On=bt(!1),XC=bt(null),Cx=bt(null),TJ=bt(null),yd=bt(null),ji=bt(null),su=bt(null),Bc=bt(null),au=bt(null),bd=bt(null),Ba=bt(null),Ka=bt(!1),Cs=bt(null),vi=bt(!1),Ai=bt(!1),ou=bt(!1),MJ=bt(!1);function xb(){Ho.value=null,rv.value=null,X0.value=null,cf.value=null,qa.value=null,Fs.value=null,up.value=!1,Fl.value=!1,fo.value=!1,On.value=!1,Mu.value=null,ol.value=null,Wp.value=null}function Kd(){Bc.value=null,ji.value=null,vi.value=!1,Ba.value=null,TJ.value=null,Cs.value=null,Ai.value=!1,ou.value=!1,MJ.value=!1,(au.value||bd.value)&&(Ka.value=!1)}const pr=bt(!1),PJ=bt(!1),bi=bt(null),yb=bt(null),Sx=bt(null),bb=bt(null),wb=bt(!1),Th=bt(!1),Uc=bt(!1),Ul=bt(!1),Kh=bt(!1),za=bt(!1);var DJ={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ZT={appLastUpdateVersion:"0.0.1",appLastUpdateDate:"",isAppReady:!1,deviceId:"",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:()=>{},setAppLastUpdateVersion:()=>{},setAppLastUpdateDate:()=>{},setUserSelectedLanguage:()=>{},initSettings:()=>{},checkForUpdate:()=>{},resetCheckForUpdate:()=>{},shouldSkipVersionCheck:()=>!1,setUpdaterRemindLater:()=>{},setUpdaterSkipVersion:()=>{},relaunchApp:()=>{NO()},installUpdate:()=>{},setDeviceId:()=>{},hashPassword:e=>kr("hash_password",{password:e}),storePassword:(e,t)=>kr("store_os_password",{name:e,password:t}),getStoredPassword:e=>{try{return kr("get_stored_os_password",{name:e})}catch(t){return Promise.resolve(null)}},verifyStoredPassword:(e,t)=>kr("verify_os_password",{name:e,password:t}),deleteStoredPassword:e=>kr("delete_os_password",{name:e}),verifyPassword:(e,t)=>kr("verify_password",{password:e,hash:t})},dp=xm()((e,t)=>re(R({},ZT),{updateSetting:(r,n)=>pe(void 0,null,function*(){let a;typeof n=="boolean"?a={valueBool:n}:typeof n=="string"?a={valueText:n}:typeof n=="number"?a={valueInt:n}:a={valueInt:null,valueText:null,valueBool:null};try{return yield kr("update_setting",{setting:R({name:r},a)}),(r==="isHistoryEnabled"||r==="userSelectedLanguage"||r==="isAppLocked")&&kr("build_system_menu"),e(r==="historyDetectLanguagesEnabledList"&&typeof n=="string"?()=>({historyDetectLanguagesEnabledList:n.split(",")}):()=>({[r]:n}))}catch(o){console.error(o)}}),setIsHistoryAutoUpdateOnCaputureEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isHistoryAutoUpdateOnCaputureEnabled",r)}),setDeviceId:r=>e(()=>({deviceId:r})),setIsHistoryEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isHistoryEnabled",r)}),setIsHistoryDetectLanguageEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isHistoryDetectLanguageEnabled",r)}),setHistoryDetectLanguageMinLines:r=>pe(void 0,null,function*(){return t().updateSetting("historyDetectLanguageMinLines",r)}),setHistoryExclusionList:r=>pe(void 0,null,function*(){return t().updateSetting("historyExclusionList",r)}),setAutoMaskWordsList:r=>pe(void 0,null,function*(){return t().updateSetting("autoMaskWordsList",r)}),setUserSelectedLanguage:r=>pe(void 0,null,function*(){return t().updateSetting("userSelectedLanguage",r)}),setAutoClearSettingsDuration:r=>pe(void 0,null,function*(){return t().updateSetting("autoClearSettingsDuration",r)}),setAutoClearSettingsDurationType:r=>pe(void 0,null,function*(){return t().updateSetting("autoClearSettingsDurationType",r)}),setIsAutoMaskWordsListEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isAutoMaskWordsListEnabled",r)}),setIsAutoCloseOnCopyPaste:r=>pe(void 0,null,function*(){return t().updateSetting("isAutoCloseOnCopyPaste",r)}),setIsSearchNameOrLabelOnly:r=>pe(void 0,null,function*(){return t().updateSetting("isSearchNameOrLabelOnly",r)}),setIsAutoClearSettingsEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isAutoClearSettingsEnabled",r)}),setIsAutoPreviewLinkCardsEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isAutoPreviewLinkCardsEnabled",r)}),setIsAutoFavoriteOnDoubleCopyEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isAutoFavoriteOnDoubleCopyEnabled",r)}),setIsExclusionListEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isExclusionListEnabled",r)}),setIsShowCollectionNameOnNavBar:r=>pe(void 0,null,function*(){return t().updateSetting("isShowCollectionNameOnNavBar",r)}),setIsSkipAutoStartPrompt:r=>pe(void 0,null,function*(){return t().updateSetting("isSkipAutoStartPrompt",r)}),setIsShowDisabledCollectionsOnNavBarMenu:r=>pe(void 0,null,function*(){return t().updateSetting("isShowDisabledCollectionsOnNavBarMenu",r)}),setHistoryDetectLanguagesEnabledList:r=>pe(void 0,null,function*(){return t().updateSetting("historyDetectLanguagesEnabledList",r.join())}),setCopyPasteDelay:r=>pe(void 0,null,function*(){return t().updateSetting("copyPasteDelay",r)}),setCopyPasteSequencePinnedDelay:r=>pe(void 0,null,function*(){return t().updateSetting("copyPasteSequencePinnedDelay",r)}),setCopyPasteSequenceIsReversOrder:r=>pe(void 0,null,function*(){return t().updateSetting("copyPasteSequenceIsReversOrder",r)}),setPasteSequenceEachSeparator:r=>pe(void 0,null,function*(){return t().updateSetting("pasteSequenceEachSeparator",r)}),setIsIdleScreenAutoLockEnabled:r=>pe(void 0,null,function*(){return t().updateSetting("isIdleScreenAutoLockEnabled",r)}),setIdleScreenAutoLockTimeInMinutes:r=>pe(void 0,null,function*(){return t().updateSetting("idleScreenAutoLockTimeInMinutes",r)}),setIsShowHistoryCaptureOnLockedScreen:r=>pe(void 0,null,function*(){return t().updateSetting("isShowHistoryCaptureOnLockedScreen",r)}),setScreenLockPassCode:r=>pe(void 0,null,function*(){return t().updateSetting("screenLockPassCode",r||null)}),setScreenLockPassCodeLength:r=>pe(void 0,null,function*(){return t().updateSetting("screenLockPassCodeLength",r)}),setScreenLockRecoveryPasswordMasked:r=>pe(void 0,null,function*(){return t().updateSetting("screenLockRecoveryPasswordMasked",r)}),setIsAppLocked:r=>pe(void 0,null,function*(){return t().updateSetting("isAppLocked",r)}),setIsScreenLockPassCodeRequireOnStart:r=>pe(void 0,null,function*(){return t().updateSetting("isScreenLockPassCodeRequireOnStart",r)}),setLicenseKey:r=>pe(void 0,null,function*(){return t().updateSetting("licenseKey",r)}),setIsFirstRunAfterUpdate:r=>pe(void 0,null,function*(){return t().updateSetting("isFirstRunAfterUpdate",r)}),setIsFirstRun:r=>t().updateSetting("isFirstRun",r),installUpdate:()=>pe(void 0,null,function*(){Kh.value=!0,Ul.value=!1;try{yield CZ(),Kh.value=!1,za.value=!0,t().setIsFirstRunAfterUpdate(!0),bi.value&&t().setAppLastUpdateVersion(bi.value),Sx.value&&t().setAppLastUpdateDate(Sx.value),setTimeout(()=>{NO()},600)}catch(r){console.error("Install Update Error:",r),Kh.value=!1,Ul.value=!0}}),checkForUpdate:r=>pe(void 0,null,function*(){var n,a,o;Uc.value=!0;try{const{shouldUpdate:i,manifest:c}=yield SZ();if(yield new Promise(d=>setTimeout(d,1e3)),i&&(c!=null&&c.version)&&!t().shouldSkipVersionCheck(c==null?void 0:c.version,r)){if(bi.value=(n=c==null?void 0:c.version)!=null?n:null,bb.value=(a=c==null?void 0:c.body.split("\n"))!=null?a:null,c!=null&&c.date){const d=(o=c==null?void 0:c.date.split(" ")[0])!=null?o:null;yb.value=jn(d).format("DD MMMM, YYYY"),Sx.value=jn(d).format("YYYY-MM-DD")}wb.value=!0,Uc.value=!1}else r?(Th.value=!0,setTimeout(()=>{Th.value=!1,Uc.value=!1},3e3)):Uc.value=!1}catch(i){console.error("Check Update Error:",i),r?(Uc.value=!1,Th.value=!0,setTimeout(()=>{Th.value=!1,Uc.value=!1},3e3)):Uc.value=!1}r&&(t().setUpdaterRemindLater(!0),t().setUpdaterSkipVersion(null))}),shouldSkipVersionCheck:(r,n)=>{if(n)return!1;const a=localStorage.getItem("updaterRemindLater");if(a&&jn().isBefore(a))return!0;const o=localStorage.getItem("updaterSkipVersion");return!!(o&&(o===r||EJ(o,r)>=0))},setUpdaterRemindLater:r=>{if(r){localStorage.removeItem("updaterRemindLater");return}localStorage.setItem("updaterRemindLater",jn().add(3,"day").format("YYYY-MM-DD")),t().resetCheckForUpdate()},setUpdaterSkipVersion:r=>{if(r===null){localStorage.removeItem("updaterSkipVersion");return}localStorage.setItem("updaterSkipVersion",r),t().resetCheckForUpdate()},resetCheckForUpdate:()=>{wb.value=!1,Th.value=!1,za.value=!1,Kh.value=!1,Ul.value=!1,bi.value=null,bb.value=null,yb.value=null,Sx.value=null},initConstants:r=>e(()=>({CONST:r})),setAppDataDir:r=>e(()=>({appDataDir:r})),setAppLastUpdateVersion:r=>t().updateSetting("appLastUpdateVersion",r),setAppLastUpdateDate:r=>t().updateSetting("appLastUpdateDate",r),initSettings:r=>{const n=Object.keys(ZT).reduce((a,o)=>(typeof r[o]!="undefined"&&(a[o]=r[o]),a),{});e(a=>R(R({},a),n))}})),Rn=vm(dp);DJ.TAURI_DEBUG&&(window.settingsStore=dp);const AJ=(e,t={enabled:!0})=>(r,n,a)=>{return t.enabled,e(r,n,a);const o=e(r,n,a),i=o.actions;if(i&&typeof i=="object"){const c=Object.fromEntries(Object.entries(i).map(([d,f])=>{let h=f;return typeof f=="function"&&(h=(...p)=>{var S;const g=f(...p);return(S=t.logger)==null||S.call(t,d,p),g}),[d,h]}));return re(R({},o),{actions:c})}return o};var RJ={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function J2(e,t){let r;try{r=e()}catch(a){return}return{getItem:a=>{var o;const i=d=>d===null?null:JSON.parse(d,t==null?void 0:t.reviver),c=(o=r.getItem(a))!=null?o:null;return c instanceof Promise?c.then(i):i(c)},setItem:(a,o)=>r.setItem(a,JSON.stringify(o,t==null?void 0:t.replacer)),removeItem:a=>r.removeItem(a)}}const nv=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return nv(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return nv(n)(r)}}}},LJ=(e,t)=>(r,n,a)=>{let o=R({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:w=>w,version:0,merge:(w,C)=>R(R({},C),w)},t),i=!1;const c=new Set,d=new Set;let f;try{f=o.getStorage()}catch(w){}if(!f)return e((...w)=>{console.warn("[zustand persist middleware] Unable to update item '".concat(o.name,"', the given storage is currently unavailable.")),r(...w)},n,a);const h=nv(o.serialize),p=()=>{const w=o.partialize(R({},n()));let C;const j=h({state:w,version:o.version}).then(E=>f.setItem(o.name,E)).catch(E=>{C=E});if(C)throw C;return j},g=a.setState;a.setState=(w,C)=>{g(w,C),p()};const S=e((...w)=>{r(...w),p()},n,a);let b;const v=()=>{var w;if(!f)return;i=!1,c.forEach(j=>j(n()));const C=((w=o.onRehydrateStorage)==null?void 0:w.call(o,n()))||void 0;return nv(f.getItem.bind(f))(o.name).then(j=>{if(j)return o.deserialize(j)}).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==o.version){if(o.migrate)return o.migrate(j.state,j.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return j.state}).then(j=>{var E;return b=o.merge(j,(E=n())!=null?E:S),r(b,!0),p()}).then(()=>{C==null||C(b,void 0),i=!0,d.forEach(j=>j(b))}).catch(j=>{C==null||C(void 0,j)})};return a.persist={setOptions:w=>{o=R(R({},o),w),w.getStorage&&(f=w.getStorage())},clearStorage:()=>{f==null||f.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>v(),hasHydrated:()=>i,onHydrate:w=>(c.add(w),()=>{c.delete(w)}),onFinishHydration:w=>(d.add(w),()=>{d.delete(w)})},v(),b||S},OJ=(e,t)=>(r,n,a)=>{let o=R({storage:J2(()=>localStorage),partialize:v=>v,version:0,merge:(v,w)=>R(R({},w),v)},t),i=!1;const c=new Set,d=new Set;let f=o.storage;if(!f)return e((...v)=>{console.warn("[zustand persist middleware] Unable to update item '".concat(o.name,"', the given storage is currently unavailable.")),r(...v)},n,a);const h=()=>{const v=o.partialize(R({},n()));return f.setItem(o.name,{state:v,version:o.version})},p=a.setState;a.setState=(v,w)=>{p(v,w),h()};const g=e((...v)=>{r(...v),h()},n,a);let S;const b=()=>{var v,w;if(!f)return;i=!1,c.forEach(j=>{var E;return j((E=n())!=null?E:g)});const C=((w=o.onRehydrateStorage)==null?void 0:w.call(o,(v=n())!=null?v:g))||void 0;return nv(f.getItem.bind(f))(o.name).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==o.version){if(o.migrate)return o.migrate(j.state,j.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return j.state}).then(j=>{var E;return S=o.merge(j,(E=n())!=null?E:g),r(S,!0),h()}).then(()=>{C==null||C(S,void 0),S=n(),i=!0,d.forEach(j=>j(S))}).catch(j=>{C==null||C(void 0,j)})};return a.persist={setOptions:v=>{o=R(R({},o),v),v.storage&&(f=v.storage)},clearStorage:()=>{f==null||f.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>i,onHydrate:v=>(c.add(v),()=>{c.delete(v)}),onFinishHydration:v=>(d.add(v),()=>{d.delete(v)})},o.skipHydration||b(),S||g},IJ=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((RJ?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),LJ(e,t)):OJ(e,t),TE=IJ,$J={avatar:"",userName:"",email:"",authority:[]},zJ=xm()(TE(AJ(e=>({user:R({},$J),signedIn:!1,token:null,setUser:t=>e(r=>re(R({},r),{user:re(R({},r.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:J2(()=>localStorage)}));vm(zJ);const FJ=["slate","sky","stone","teal","indigo","green","yellow","blue","purple","rose","lime","emerald","amber","cyan","fuchsia","pink"],Mh=["85%","90%","95%","100%","105%","110%","120%","125%"],HJ={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:()=>{}},SI=xm()(TE((e,t)=>re(R({},HJ),{setIsShowPinned:r=>e(()=>({isShowPinned:r})),setIsShowHistoryPinned:r=>e(()=>({isShowHistoryPinned:r})),setIsSwapPanels:r=>e(()=>({isSwapPanels:r})),resetFontSize:()=>{e(()=>({fontSize:"100%"}))},setIsScrolling(r){e(()=>({isScrolling:r}))},setOSType:r=>{e(()=>({isWindows:r==="Windows_NT",isMacOSX:r==="Darwin",isLinux:r==="Linux"}))},setFontSize:r=>{e(()=>({fontSize:r}))},increaseFontSize:()=>{e(r=>{const n=Mh.indexOf(r.fontSize),a=Math.min(Mh.length-1,n+1);return{fontSize:Mh[a]}})},decreaseFontSize:()=>{e(r=>{const n=Mh.indexOf(r.fontSize),a=Math.max(0,n-1);return{fontSize:Mh[a]}})},setReturnRoute:r=>{e(()=>({returnRoute:r}))}}),{name:"ui-store",storage:J2(()=>localStorage)})),xs=vm(SI),BJ={direction:"ltr",mode:"system",systemTheme:"light",themeDark:()=>!1,setSystemTheme:()=>{},setDirection:()=>{},setMode:()=>{}},UJ=xm()(TE((e,t)=>re(R({},BJ),{themeDark:()=>{const{mode:r,systemTheme:n}=t();return r==="system"?n==="dark":r==="dark"},setSystemTheme:r=>{e({systemTheme:r})},setMode:r=>{e({mode:r})}}),{name:"theme-store",storage:J2(()=>localStorage),partialize:e=>({mode:e.mode,direction:e.direction})})),_f=vm(UJ);var WJ=typeof global=="object"&&global&&global.Object===Object&&global,VJ=typeof self=="object"&&self&&self.Object===Object&&self,jI=WJ||VJ||Function("return this")(),kb=jI.Symbol,EI=Object.prototype,qJ=EI.hasOwnProperty,KJ=EI.toString,k0=kb?kb.toStringTag:void 0;function GJ(e){var t=qJ.call(e,k0),r=e[k0];try{e[k0]=void 0;var n=!0}catch(o){}var a=KJ.call(e);return n&&(t?e[k0]=r:delete e[k0]),a}var YJ=Object.prototype,ZJ=YJ.toString;function XJ(e){return ZJ.call(e)}var QJ="[object Null]",JJ="[object Undefined]",XT=kb?kb.toStringTag:void 0;function eee(e){return e==null?e===void 0?JJ:QJ:XT&&XT in Object(e)?GJ(e):XJ(e)}function tee(e){return e!=null&&typeof e=="object"}var ree="[object Symbol]";function nee(e){return typeof e=="symbol"||tee(e)&&eee(e)==ree}var see=/\s/;function aee(e){for(var t=e.length;t--&&see.test(e.charAt(t)););return t}var oee=/^\s+/;function iee(e){return e&&e.slice(0,aee(e)+1).replace(oee,"")}function Cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var QT=NaN,lee=/^[-+]0x[0-9a-f]+$/i,cee=/^0b[01]+$/i,uee=/^0o[0-7]+$/i,dee=parseInt;function JT(e){if(typeof e=="number")return e;if(nee(e))return QT;if(Cb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Cb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=iee(e);var r=cee.test(e);return r||uee.test(e)?dee(e.slice(2),r?2:8):lee.test(e)?QT:+e}var QC=function(){return jI.Date.now()},fee="Expected a function",hee=Math.max,pee=Math.min;function Td(e,t,r){var n,a,o,i,c,d,f=0,h=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(fee);t=JT(t)||0,Cb(r)&&(h=!!r.leading,p="maxWait"in r,o=p?hee(JT(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g);function S(P){var D=n,A=a;return n=a=void 0,f=P,i=e.apply(A,D),i}function b(P){return f=P,c=setTimeout(C,t),h?S(P):i}function v(P){var D=P-d,A=P-f,O=t-D;return p?pee(O,o-A):O}function w(P){var D=P-d,A=P-f;return d===void 0||D>=t||D<0||p&&A>=o}function C(){var P=QC();if(w(P))return j(P);c=setTimeout(C,v(P))}function j(P){return c=void 0,g&&n?S(P):(n=a=void 0,i)}function E(){c!==void 0&&clearTimeout(c),f=0,n=d=a=c=void 0}function N(){return c===void 0?i:j(QC())}function M(){var P=QC(),D=w(P);if(n=arguments,a=this,d=P,D){if(c===void 0)return b(d);if(p)return clearTimeout(c),c=setTimeout(C,t),S(d)}return c===void 0&&(c=setTimeout(C,t)),i}return M.cancel=E,M.flush=N,M}var mee="Expected a function";function NI(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(mee);return Cb(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Td(e,t,{leading:n,maxWait:t,trailing:a})}var gee={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const _I=xm()((e,t)=>({collections:[],tabs:[],tabsLoaded:!1,isMenuLoaded:!1,pinnedClips:[],currentCollectionId:null,currentTab:"",menuItems:[],clipItems:[],getTabLastBorderIndex:r=>{var i;const{clipItems:n}=t(),a=n.filter(c=>c.isBoard&&c.tabId===r);return((i=a.reduce((c,d)=>c.orderNumber>d.orderNumber?c:d,a[0]))==null?void 0:i.orderNumber)||0},setIsMenuLoaded:r=>{e(()=>({isMenuLoaded:r}))},getCurrentTab:()=>{var r;return t().currentTab||((r=t().tabs[0])==null?void 0:r.tabId)},setClipItemsDebounced:Td(r=>{e(()=>({pinnedClips:r.filter(n=>n.isPinned&&n.isClip).sort((n,a)=>n.pinnedOrderNumber-a.pinnedOrderNumber).map(n=>{var a,o,i;return{id:n.itemId,name:n.name,parentId:n.parentId,orderNumber:n.orderNumber,pinnedOrderNumber:n.pinnedOrderNumber,isPinned:n.isPinned,createdAt:n.createdAt,isFavorite:n.isFavorite,color:(i=(o=n.color)!=null?o:(a=r.find(c=>c.itemId===n.parentId))==null?void 0:a.color)!=null?i:"slate",borderWidth:n.borderWidth,value:n.value,tabId:n.tabId,type:"clip"}}),clipItems:r}))},300,{leading:!0}),setMenuItems:r=>{e(()=>({isMenuLoaded:!0,menuItems:r}))},setClipItems:r=>{e(()=>({pinnedClips:r.filter(n=>n.isPinned&&n.isClip).sort((n,a)=>n.pinnedOrderNumber-a.pinnedOrderNumber).map(n=>{var a,o,i;return{id:n.itemId,name:n.name,parentId:n.parentId,orderNumber:n.orderNumber,createdAt:n.createdAt,isPinned:n.isPinned,isFavorite:n.isFavorite,color:(i=(o=n.color)!=null?o:(a=r.find(c=>c.itemId===n.parentId))==null?void 0:a.color)!=null?i:"slate",borderWidth:n.borderWidth,value:n.value,tabId:n.tabId,type:"clip"}}),clipItems:r}))},isBoardHasChildren:r=>{const{clipItems:n}=t();return n.some(a=>a.parentId===r)},tabHasBoards:r=>{const{clipItems:n}=t();return n.some(a=>a.tabId===r&&a.isBoard)},setTabsByOrder:r=>{e({tabs:r.sort((n,a)=>n.tabOrderNumber-a.tabOrderNumber)})},setTabs:r=>{var h,p,g;const n=t().currentCollectionId,a=localStorage.getItem("currentTabs"),o=a!=null&&a.startsWith(n+":::")?a.split(":::")[1]:"",i=(h=r.find(S=>S.tabId===o))==null?void 0:h.tabId,d=((p=r.find(S=>S.tabId===t().currentTab))==null?void 0:p.tabId)||i||((g=r[0])==null?void 0:g.tabId),f=r.sort((S,b)=>S.tabOrderNumber-b.tabOrderNumber);e({currentTab:d,tabsLoaded:!0,tabs:f})},setCurrentTab:r=>{const n=t().currentCollectionId;n&&localStorage.setItem("currentTabs","".concat(n,":::").concat(r)),e(()=>({currentTab:r}))},getCurrentCollectionTitle:()=>{var a;const{collections:r,currentCollectionId:n}=t();return(a=r.find(o=>o.collectionId===n))==null?void 0:a.title},setCollections:r=>{const n=r.find(a=>a.isSelected);e(()=>({collections:r,currentCollectionId:(n==null?void 0:n.collectionId)||null}))}})),kn=vm(_I);gee.TAURI_DEBUG&&(window.collectionsStore=_I);var TI={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Tr,function(){return function(r,n,a){var o=n.prototype,i=function(p){return p&&(p.indexOf?p:p.s)},c=function(p,g,S,b,v){var w=p.name?p:p.$locale(),C=i(w[g]),j=i(w[S]),E=C||j.map(function(M){return M.slice(0,b)});if(!v)return E;var N=w.weekStart;return E.map(function(M,P){return E[(P+(N||0))%7]})},d=function(){return a.Ls[a.locale()]},f=function(p,g){return p.formats[g]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,v,w){return v||w.slice(1)})}(p.formats[g.toUpperCase()])},h=function(){var p=this;return{months:function(g){return g?g.format("MMMM"):c(p,"months")},monthsShort:function(g){return g?g.format("MMM"):c(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):c(p,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):c(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):c(p,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return f(p.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return h.bind(this)()},a.localeData=function(){var p=d();return{firstDayOfWeek:function(){return p.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(g){return f(p,g)},meridiem:p.meridiem,ordinal:p.ordinal}},a.months=function(){return c(d(),"months")},a.monthsShort=function(){return c(d(),"monthsShort","months",3)},a.weekdays=function(p){return c(d(),"weekdays",null,null,p)},a.weekdaysShort=function(p){return c(d(),"weekdaysShort","weekdays",3,p)},a.weekdaysMin=function(p){return c(d(),"weekdaysMin","weekdays",2,p)}}})})(TI);var vee=TI.exports;const xee=Fi(vee),yee={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 Sb{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||yee,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,a){return a&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[r](t))}create(t){return new Sb(this.logger,R({prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Sb(this.logger,t)}}var cl=new Sb;class ew{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const a=this.observers[n].get(r)||0;this.observers[n].set(r,a+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[c,d]=i;for(let f=0;f<d;f++)c(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[c,d]=i;for(let f=0;f<d;f++)c.apply(c,[t,...n])})}}function C0(){let e,t;const r=new Promise((n,a)=>{e=n,t=a});return r.resolve=e,r.reject=t,r}function e9(e){return e==null?"":""+e}function bee(e,t,r){e.forEach(n=>{t[n]&&(r[n]=t[n])})}const wee=/###/g;function bg(e,t,r){function n(c){return c&&c.indexOf("###")>-1?c.replace(wee,"."):c}function a(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let i=0;for(;i<o.length-1;){if(a())return{};const c=n(o[i]);!e[c]&&r&&(e[c]=new r),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++i}return a()?{}:{obj:e,k:n(o[i])}}function t9(e,t,r){const{obj:n,k:a}=bg(e,t,Object);if(n!==void 0||t.length===1){n[a]=r;return}let o=t[t.length-1],i=t.slice(0,t.length-1),c=bg(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=bg(e,i,Object),c&&c.obj&&typeof c.obj["".concat(c.k,".").concat(o)]!="undefined"&&(c.obj=void 0);c.obj["".concat(c.k,".").concat(o)]=r}function kee(e,t,r,n){const{obj:a,k:o}=bg(e,t,Object);a[o]=a[o]||[],n&&(a[o]=a[o].concat(r)),n||a[o].push(r)}function jb(e,t){const{obj:r,k:n}=bg(e,t);if(r)return r[n]}function Cee(e,t,r){const n=jb(e,r);return n!==void 0?n:jb(t,r)}function MI(e,t,r){for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):MI(e[n],t[n],r):e[n]=t[n]);return e}function oh(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var See={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function jee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>See[t]):e}class Eee{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const Nee=[" ",",","?","!",";"],_ee=new Eee(20);function Tee(e,t,r){t=t||"",r=r||"";const n=Nee.filter(i=>t.indexOf(i)<0&&r.indexOf(i)<0);if(n.length===0)return!0;const a=_ee.getRegExp("(".concat(n.map(i=>i==="?"?"\\?":i).join("|"),")"));let o=!a.test(e);if(!o){const i=e.indexOf(r);i>0&&!a.test(e.substring(0,i))&&(o=!0)}return o}function L3(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let a=e;for(let o=0;o<n.length;){if(!a||typeof a!="object")return;let i,c="";for(let d=o;d<n.length;++d)if(d!==o&&(c+=r),c+=n[d],i=a[c],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&d<n.length-1)continue;o+=d-o+1;break}a=i}return a}function Eb(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class r9 extends ew{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,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 r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,r],n&&(Array.isArray(n)?c.push(...n):typeof n=="string"&&o?c.push(...n.split(o)):c.push(n)));const d=jb(this.data,c);return!d&&!r&&!n&&t.indexOf(".")>-1&&(t=c[0],r=c[1],n=c.slice(2).join(".")),d||!i||typeof n!="string"?d:L3(this.data&&this.data[t]&&this.data[t][r],n,o)}addResource(t,r,n,a){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,r];n&&(c=c.concat(i?n.split(i):n)),t.indexOf(".")>-1&&(c=t.split("."),a=r,r=c[1]),this.addNamespaces(r),t9(this.data,c,a),o.silent||this.emit("added",t,r,n,a)}addResources(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in n)(typeof n[o]=="string"||Object.prototype.toString.apply(n[o])==="[object Array]")&&this.addResource(t,r,o,n[o],{silent:!0});a.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,a,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[t,r];t.indexOf(".")>-1&&(c=t.split("."),a=n,n=r,r=c[1]),this.addNamespaces(r);let d=jb(this.data,c)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),a?MI(d,n,o):d=R(R({},d),n),t9(this.data,c,d),i.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?R({},this.getResource(t,r)):this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(a=>r[a]&&Object.keys(r[a]).length>0)}toJSON(){return this.data}}var PI={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,a){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,r,n,a))}),t}};const n9={};class Nb extends ew{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),bee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=cl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const i=n&&t.indexOf(n)>-1,c=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Tee(t,n,a);if(i&&!c){const d=t.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:t,namespaces:o};const f=t.split(n);(n!==a||n===a&&this.options.ns.indexOf(f[0])>-1)&&(o=f.shift()),t=f.join(a)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r=R({},r)),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:i,namespaces:c}=this.extractFromKey(t[t.length-1],r),d=c[c.length-1],f=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(h){const N=r.nsSeparator||this.options.nsSeparator;return a?{res:"".concat(d).concat(N).concat(i),usedKey:i,exactUsedKey:i,usedLng:f,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:"".concat(d).concat(N).concat(i)}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:i}const p=this.resolve(t,r);let g=p&&p.res;const S=p&&p.usedKey||i,b=p&&p.exactUsedKey||i,v=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],C=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject;if(j&&g&&(typeof g!="string"&&typeof g!="boolean"&&typeof g!="number")&&w.indexOf(v)<0&&!(typeof C=="string"&&v==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,g,re(R({},r),{ns:c})):"key '".concat(i," (").concat(this.language,")' returned an object instead of string.");return a?(p.res=N,p.usedParams=this.getUsedParamsDetails(r),p):N}if(o){const N=v==="[object Array]",M=N?[]:{},P=N?b:S;for(const D in g)if(Object.prototype.hasOwnProperty.call(g,D)){const A="".concat(P).concat(o).concat(D);M[D]=this.translate(A,re(R({},r),{joinArrays:!1,ns:c})),M[D]===A&&(M[D]=g[D])}g=M}}else if(j&&typeof C=="string"&&v==="[object Array]")g=g.join(C),g&&(g=this.extendTranslation(g,t,r,n));else{let N=!1,M=!1;const P=r.count!==void 0&&typeof r.count!="string",D=Nb.hasDefaultValue(r),A=P?this.pluralResolver.getSuffix(f,r.count,r):"",O=r.ordinal&&P?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",$=P&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),H=$&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]||r["defaultValue".concat(A)]||r["defaultValue".concat(O)]||r.defaultValue;!this.isValidLookup(g)&&D&&(N=!0,g=H),this.isValidLookup(g)||(M=!0,g=i);const I=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:g,W=D&&H!==g&&this.options.updateMissing;if(M||N||W){if(this.logger.log(W?"updateKey":"missingKey",f,d,i,W?H:g),o){const U=this.resolve(i,re(R({},r),{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 _=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let U=0;U<K.length;U++)_.push(K[U]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(r.lng||this.language):_.push(r.lng||this.language);const V=(U,X,G)=>{const F=D&&G!==g?G:I;this.options.missingKeyHandler?this.options.missingKeyHandler(U,d,X,F,W,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,d,X,F,W,r),this.emit("missingKey",U,d,X,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?_.forEach(U=>{const X=this.pluralResolver.getSuffixes(U,r);$&&r["defaultValue".concat(this.options.pluralSeparator,"zero")]&&X.indexOf("".concat(this.options.pluralSeparator,"zero"))<0&&X.push("".concat(this.options.pluralSeparator,"zero")),X.forEach(G=>{V([U],i+G,r["defaultValue".concat(G)]||H)})}):V(_,i,H))}g=this.extendTranslation(g,t,r,p,n),M&&g===i&&this.options.appendNamespaceToMissingKey&&(g="".concat(d,":").concat(i)),(M||N)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(i):i,N?g:void 0):g=this.options.parseMissingKeyHandler(g))}return a?(p.res=g,p.usedParams=this.getUsedParamsDetails(r),p):g}extendTranslation(t,r,n,a,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,R(R({},this.options.interpolation.defaultVariables),n),n.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(re(R({},n),{interpolation:R(R({},this.options.interpolation),n.interpolation)}));const f=typeof t=="string"&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let p=n.replace&&typeof n.replace!="string"?n.replace:n;if(this.options.interpolation.defaultVariables&&(p=R(R({},this.options.interpolation.defaultVariables),p)),t=this.interpolator.interpolate(t,p,n.lng||this.language,n),f){const g=t.match(this.interpolator.nestingRegexp),S=g&&g.length;h<S&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(n.lng=a.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var g=arguments.length,S=new Array(g),b=0;b<g;b++)S[b]=arguments[b];return o&&o[0]===S[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(r[0])),null):i.translate(...S,r)},n)),n.interpolation&&this.interpolator.reset()}const c=n.postProcess||this.options.postProcess,d=typeof c=="string"?[c]:c;return t!=null&&d&&d.length&&n.applyPostProcessor!==!1&&(t=PI.handle(d,t,r,this.options&&this.options.postProcessPassResolved?R({i18nResolved:re(R({},a),{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,a,o,i,c;return typeof t=="string"&&(t=[t]),t.forEach(d=>{if(this.isValidLookup(n))return;const f=this.extractFromKey(d,r),h=f.key;a=h;let p=f.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const g=r.count!==void 0&&typeof r.count!="string",S=g&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),b=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",v=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);p.forEach(w=>{this.isValidLookup(n)||(c=w,!n9["".concat(v[0],"-").concat(w)]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(n9["".concat(v[0],"-").concat(w)]=!0,this.logger.warn('key "'.concat(a,'" for languages "').concat(v.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!!!")),v.forEach(C=>{if(this.isValidLookup(n))return;i=C;const j=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(j,h,C,w,r);else{let N;g&&(N=this.pluralResolver.getSuffix(C,r.count,r));const M="".concat(this.options.pluralSeparator,"zero"),P="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(g&&(j.push(h+N),r.ordinal&&N.indexOf(P)===0&&j.push(h+N.replace(P,this.options.pluralSeparator)),S&&j.push(h+M)),b){const D="".concat(h).concat(this.options.contextSeparator).concat(r.context);j.push(D),g&&(j.push(D+N),r.ordinal&&N.indexOf(P)===0&&j.push(D+N.replace(P,this.options.pluralSeparator)),S&&j.push(D+M))}}let E;for(;E=j.pop();)this.isValidLookup(n)||(o=E,n=this.getResource(C,w,E,r))}))})}),{res:n,usedKey:a,exactUsedKey:o,usedLng:i,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,a):this.resourceStore.getResource(t,r,n,a)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&typeof t.replace!="string";let a=n?t.replace:t;if(n&&typeof t.count!="undefined"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a=R(R({},this.options.interpolation.defaultVariables),a)),!n){a=R({},a);for(const o of r)delete a[o]}return a}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}function JC(e){return e.charAt(0).toUpperCase()+e.slice(1)}class s9{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cl.create("languageUtils")}getScriptPartFromCode(t){if(t=Eb(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Eb(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(a=>a.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=JC(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=JC(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=JC(n[2].toLowerCase()))),n.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 r;return t.forEach(n=>{if(r)return;const a=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(a))&&(r=a)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const a=this.getLanguagePartFromCode(n);if(this.isSupportedCode(a))return r=a;r=this.options.supportedLngs.find(o=>{if(o===a)return o;if(!(o.indexOf("-")<0&&a.indexOf("-")<0)&&o.indexOf(a)===0)return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),a=[],o=i=>{i&&(this.isSupportedCode(i)?a.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)),n.forEach(i=>{a.indexOf(i)<0&&o(this.formatLanguageCode(i))}),a}}let Mee=[{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}],Pee={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 Dee=["v1","v2","v3"],Aee=["v4"],a9={zero:0,one:1,two:2,few:3,many:4,other:5};function Ree(){const e={};return Mee.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Pee[t.fc]}})}),e}class Lee{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=cl.create("pluralResolver"),(!this.options.compatibilityJSON||Aee.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!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=Ree()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Eb(t==="dev"?"en":t),{type:r.ordinal?"ordinal":"cardinal"})}catch(n){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,n).map(a=>"".concat(r).concat(a))}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((a,o)=>a9[a]-a9[o]).map(a=>"".concat(this.options.prepend).concat(r.ordinal?"ordinal".concat(this.options.prepend):"").concat(a)):n.numbers.map(a=>this.getSuffix(t,a,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(t,n);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(t)),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let a=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const o=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Dee.includes(this.options.compatibilityJSON)}}function o9(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Cee(e,t,r);return!o&&a&&typeof r=="string"&&(o=L3(e,r,n),o===void 0&&(o=L3(t,r,n))),o}class Oee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=cl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:jee,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?oh(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?oh(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?oh(r.nestingPrefix):r.nestingPrefixEscaped||oh("$t("),this.nestingSuffix=r.nestingSuffix?oh(r.nestingSuffix):r.nestingSuffixEscaped||oh(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"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,r,n,a){let o,i,c;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(b){return b.replace(/\$/g,"$$$$")}const h=b=>{if(b.indexOf(this.formatSeparator)<0){const j=o9(r,d,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,n,re(R(R({},a),r),{interpolationkey:b})):j}const v=b.split(this.formatSeparator),w=v.shift().trim(),C=v.join(this.formatSeparator).trim();return this.format(o9(r,d,w,this.options.keySeparator,this.options.ignoreJSONStructure),C,n,re(R(R({},a),r),{interpolationkey:w}))};this.resetRegExp();const p=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,g=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>f(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?f(this.escape(b)):f(b)}].forEach(b=>{for(c=0;o=b.regex.exec(t);){const v=o[1].trim();if(i=h(v),i===void 0)if(typeof p=="function"){const C=p(t,o,a);i=typeof C=="string"?C:""}else if(a&&Object.prototype.hasOwnProperty.call(a,v))i="";else if(g){i=o[0];continue}else this.logger.warn("missed to pass in variable ".concat(v," for interpolating ").concat(t)),i="";else typeof i!="string"&&!this.useRawValueToEscape&&(i=e9(i));const w=b.safeValue(i);if(t=t.replace(o[0],w),g?(b.regex.lastIndex+=i.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,o,i;function c(d,f){const h=this.nestingOptionsSeparator;if(d.indexOf(h)<0)return d;const p=d.split(new RegExp("".concat(h,"[ ]*{")));let g="{".concat(p[1]);d=p[0],g=this.interpolate(g,i);const S=g.match(/'/g),b=g.match(/"/g);(S&&S.length%2===0&&!b||b.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i=R(R({},f),i))}catch(v){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),v),"".concat(d).concat(h).concat(g)}return delete i.defaultValue,d}for(;a=this.nestingRegexp.exec(t);){let d=[];i=R({},n),i=i.replace&&typeof i.replace!="string"?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(p=>p.trim());a[1]=h.shift(),d=h,f=!0}if(o=r(c.call(this,a[1].trim(),i),i),o&&a[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=e9(o)),o||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(t)),o=""),f&&(o=d.reduce((h,p)=>this.format(h,p,n.lng,re(R({},n),{interpolationkey:a[1].trim()})),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}function Iee(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const a=n[1].substring(0,n[1].length-1);t==="currency"&&a.indexOf(":")<0?r.currency||(r.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?r.range||(r.range=a.trim()):a.split(";").forEach(i=>{if(!i)return;const[c,...d]=i.split(":"),f=d.join(":").trim().replace(/^'+|'+$/g,"");r[c.trim()]||(r[c.trim()]=f),f==="false"&&(r[c.trim()]=!1),f==="true"&&(r[c.trim()]=!0),isNaN(f)||(r[c.trim()]=parseInt(f,10))})}return{formatName:t,formatOptions:r}}function ih(e){const t={};return function(n,a,o){const i=a+JSON.stringify(o);let c=t[i];return c||(c=e(Eb(a),o),t[i]=c),c(n)}}class $ee{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=cl.create("formatter"),this.options=t,this.formats={number:ih((r,n)=>{const a=new Intl.NumberFormat(r,R({},n));return o=>a.format(o)}),currency:ih((r,n)=>{const a=new Intl.NumberFormat(r,re(R({},n),{style:"currency"}));return o=>a.format(o)}),datetime:ih((r,n)=>{const a=new Intl.DateTimeFormat(r,R({},n));return o=>a.format(o)}),relativetime:ih((r,n)=>{const a=new Intl.RelativeTimeFormat(r,R({},n));return o=>a.format(o,n.range||"day")}),list:ih((r,n)=>{const a=new Intl.ListFormat(r,R({},n));return o=>a.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,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=ih(r)}format(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((c,d)=>{const{formatName:f,formatOptions:h}=Iee(d);if(this.formats[f]){let p=c;try{const g=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},S=g.locale||g.lng||a.locale||a.lng||n;p=this.formats[f](c,S,R(R(R({},h),a),g))}catch(g){this.logger.warn(g)}return p}else this.logger.warn("there was no format function for ".concat(f));return c},t)}}function zee(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Fee extends ew{constructor(t,r,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=a,this.logger=cl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,a.backend,a)}queueLoad(t,r,n,a){const o={},i={},c={},d={};return t.forEach(f=>{let h=!0;r.forEach(p=>{const g="".concat(f,"|").concat(p);!n.reload&&this.store.hasResourceBundle(f,p)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),o[g]===void 0&&(o[g]=!0),d[p]===void 0&&(d[p]=!0)))}),h||(c[f]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}loaded(t,r,n){const a=t.split("|"),o=a[0],i=a[1];r&&this.emit("failedLoading",o,i,r),n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2;const c={};this.queue.forEach(d=>{kee(d.loaded,[o],i),zee(d,t),r&&d.errors.push(r),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(f=>{c[f]||(c[f]={});const h=d.loaded[f];h.length&&h.forEach(p=>{c[f][p]===void 0&&(c[f][p]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(d=>!d.done)}read(t,r,n){let a=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:r,fcName:n,tried:a,wait:o,callback:i});return}this.readingCalls++;const c=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,a+1,o*2,i)},o);return}i(f,h)},d=this.backend[n].bind(this.backend);if(d.length===2){try{const f=d(t,r);f&&typeof f.then=="function"?f.then(h=>c(null,h)).catch(c):c(null,f)}catch(f){c(f)}return}return d(t,r,c)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const o=this.queueLoad(t,r,n,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),a=n[0],o=n[1];this.read(a,o,"read",void 0,void 0,(i,c)=>{i&&this.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(a," failed"),i),!i&&c&&this.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(a),c),this.loaded(t,i,c)})}saveMissing(t,r,n,a,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(r)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(r,'" 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(!(n==null||n==="")){if(this.backend&&this.backend.create){const d=re(R({},i),{isUpdate:o}),f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(t,r,n,a,d):h=f(t,r,n,a),h&&typeof h.then=="function"?h.then(p=>c(null,p)).catch(c):c(null,h)}catch(h){c(h)}else f(t,r,n,a,c,d)}!t||!t[0]||this.store.addResource(t[0],r,n,a)}}}function i9(){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(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(a=>{r[a]=n[a]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function l9(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 jx(){}function Hee(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class sv extends ew{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=l9(t),this.services={},this.logger=cl,this.modules={external:[]},Hee(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const a=i9();this.options=R(R(R({},a),this.options),l9(r)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=R(R({},a.interpolation),this.options.interpolation)),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function o(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?cl.init(o(this.modules.logger),this.options):cl.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl!="undefined"&&(h=$ee);const p=new s9(this.options);this.store=new r9(this.options.resources,this.options);const g=this.services;g.logger=cl,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new Lee(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=o(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new Oee(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new Fee(o(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(S){for(var b=arguments.length,v=new Array(b>1?b-1:0),w=1;w<b;w++)v[w-1]=arguments[w];t.emit(S,...v)}),this.modules.languageDetector&&(g.languageDetector=o(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=o(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Nb(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,v=new Array(b>1?b-1:0),w=1;w<b;w++)v[w-1]=arguments[w];t.emit(S,...v)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,n||(n=jx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=function(){return t.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return t.store[h](...arguments),t}});const d=C0(),f=()=>{const h=(p,g)=>{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),d.resolve(g),n(p,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),d}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jx;const a=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],i=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&o.indexOf(f)<0&&o.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>i(d)),this.options.preload&&this.options.preload.forEach(c=>i(c)),this.services.backendConnector.load(o,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(t,r,n){const a=C0();return t||(t=this.languages),r||(r=this.options.ns),n||(n=jx),this.services.backendConnector.reload(t,r,o=>{a.resolve(),n(o)}),a}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"&&PI.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 r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const a=C0();this.emit("languageChanging",t);const o=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},i=(d,f)=>{f?(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return n.t(...arguments)}),r&&r(d,function(){return n.t(...arguments)})},c=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const f=typeof d=="string"?d:this.services.languageUtils.getBestMatchFromCodes(d);f&&(this.language||o(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,h=>{i(h,f)})};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),a}getFixedT(t,r,n){var a=this;const o=function(i,c){let d;if(typeof c!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),p=2;p<f;p++)h[p-2]=arguments[p];d=a.options.overloadTranslationOptionHandler([i,c].concat(h))}else d=R({},c);d.lng=d.lng||o.lng,d.lngs=d.lngs||o.lngs,d.ns=d.ns||o.ns,d.keyPrefix=d.keyPrefix||n||o.keyPrefix;const g=a.options.keySeparator||".";let S;return d.keyPrefix&&Array.isArray(i)?S=i.map(b=>"".concat(d.keyPrefix).concat(g).concat(b)):S=d.keyPrefix?"".concat(d.keyPrefix).concat(g).concat(i):i,a.t(S,d)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=n,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 r=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 n=r.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(c,d)=>{const f=this.services.backendConnector.state["".concat(c,"|").concat(d)];return f===-1||f===2};if(r.precheck){const c=r.precheck(this,i);if(c!==void 0)return c}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,t)&&(!a||i(o,t)))}loadNamespaces(t,r){const n=C0();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=C0();typeof t=="string"&&(t=[t]);const a=this.options.preload||[],o=t.filter(i=>a.indexOf(i)<0);return o.length?(this.options.preload=a.concat(o),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["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"],n=this.services&&this.services.languageUtils||new s9(i9());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new sv(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jx;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const a=re(R(R({},this.options),t),{isClone:!0}),o=new sv(a);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services=R({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new r9(this.store.data,a),o.services.resourceStore=o.store),o.translator=new Nb(o.services,a),o.translator.on("*",function(c){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];o.emit(c,...f)}),o.init(a,r),o.translator.options=a,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 un=sv.createInstance();un.createInstance=sv.createInstance;un.createInstance;un.dir;un.init;un.loadResources;un.reloadResources;un.use;un.changeLanguage;un.getFixedT;un.t;un.exists;un.setDefaultNamespace;un.hasLoadedNamespace;un.loadNamespaces;un.loadLanguages;function Bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uf(e){"@babel/helpers - typeof";return uf=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},uf(e)}function Uee(e,t){if(uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wee(e){var t=Uee(e,"string");return uf(t)=="symbol"?t:String(t)}function c9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wee(n.key),n)}}function Vee(e,t,r){return t&&c9(e.prototype,t),r&&c9(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var DI=[],qee=DI.forEach,Kee=DI.slice;function Gee(e){return qee.call(Kee.call(arguments,1),function(t){if(t)for(var r in t)e[r]===void 0&&(e[r]=t[r])}),e}var u9=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Yee=function(t,r,n){var a=n||{};a.path=a.path||"/";var o=encodeURIComponent(r),i="".concat(t,"=").concat(o);if(a.maxAge>0){var c=a.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");i+="; Max-Age=".concat(Math.floor(c))}if(a.domain){if(!u9.test(a.domain))throw new TypeError("option domain is invalid");i+="; Domain=".concat(a.domain)}if(a.path){if(!u9.test(a.path))throw new TypeError("option path is invalid");i+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(i+="; HttpOnly"),a.secure&&(i+="; Secure"),a.sameSite){var d=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(d){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i},d9={create:function(t,r,n,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),a&&(o.domain=a),document.cookie=Yee(t,encodeURIComponent(r),o)},read:function(t){for(var r="".concat(t,"="),n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(r)===0)return o.substring(r.length,o.length)}return null},remove:function(t){this.create(t,"",-1)}},Zee={name:"cookie",lookup:function(t){var r;if(t.lookupCookie&&typeof document!="undefined"){var n=d9.read(t.lookupCookie);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupCookie&&typeof document!="undefined"&&d9.create(r.lookupCookie,t,r.cookieMinutes,r.cookieDomain,r.cookieOptions)}},Xee={name:"querystring",lookup:function(t){var r;if(typeof window!="undefined"){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 a=n.substring(1),o=a.split("&"),i=0;i<o.length;i++){var c=o[i].indexOf("=");if(c>0){var d=o[i].substring(0,c);d===t.lookupQuerystring&&(r=o[i].substring(c+1))}}}return r}},S0=null,f9=function(){if(S0!==null)return S0;try{S0=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(r){S0=!1}return S0},Qee={name:"localStorage",lookup:function(t){var r;if(t.lookupLocalStorage&&f9()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupLocalStorage&&f9()&&window.localStorage.setItem(r.lookupLocalStorage,t)}},j0=null,h9=function(){if(j0!==null)return j0;try{j0=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(r){j0=!1}return j0},Jee={name:"sessionStorage",lookup:function(t){var r;if(t.lookupSessionStorage&&h9()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(r=n)}return r},cacheUserLanguage:function(t,r){r.lookupSessionStorage&&h9()&&window.sessionStorage.setItem(r.lookupSessionStorage,t)}},ete={name:"navigator",lookup:function(t){var r=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)r.push(navigator.languages[n]);navigator.userLanguage&&r.push(navigator.userLanguage),navigator.language&&r.push(navigator.language)}return r.length>0?r:void 0}},tte={name:"htmlTag",lookup:function(t){var r,n=t.htmlTag||(typeof document!="undefined"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(r=n.getAttribute("lang")),r}},rte={name:"path",lookup:function(t){var r;if(typeof window!="undefined"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;r=n[t.lookupFromPathIndex].replace("/","")}else r=n[0].replace("/","")}return r}},nte={name:"subdomain",lookup:function(t){var r=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=typeof window!="undefined"&&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[r]}};function ste(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var AI=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Bee(this,e),this.type="languageDetector",this.detectors={},this.init(t,r)}return Vee(e,[{key:"init",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=r||{languageUtils:{}},this.options=Gee(n,this.options||{},ste()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Zee),this.addDetector(Xee),this.addDetector(Qee),this.addDetector(Jee),this.addDetector(ete),this.addDetector(tte),this.addDetector(rte),this.addDetector(nte)}},{key:"addDetector",value:function(r){this.detectors[r.name]=r}},{key:"detect",value:function(r){var n=this;r||(r=this.options.order);var a=[];return r.forEach(function(o){if(n.detectors[o]){var i=n.detectors[o].lookup(n.options);i&&typeof i=="string"&&(i=[i]),i&&(a=a.concat(i))}}),a=a.map(function(o){return n.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(r,n){var a=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(r)>-1||n.forEach(function(o){a.detectors[o]&&a.detectors[o].cacheUserLanguage(r,a.options)}))}}]),e}();AI.type="languageDetector";var RI="en",ME={},O3={};function LI(){return RI}function ate(e){RI=e}function ote(e){return ME[e]}function ite(e){if(!e)throw new Error("No locale data passed");ME[e.locale]=e,O3[e.locale.toLowerCase()]=e.locale}function p9(e){if(ME[e])return e;if(O3[e.toLowerCase()])return O3[e.toLowerCase()]}function OI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.localeMatcher||"lookup";switch(r){case"lookup":return m9(e);case"best fit":return m9(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function m9(e){var t=p9(e);if(t)return t;for(var r=e.split("-");e.length>1;){r.pop(),e=r.join("-");var n=p9(e);if(n)return n}}var Re={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var r=String(t).split("."),n=!r[1];return t==1&&n?"one":"other"},be:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-1),o=n&&r[0].slice(-2);return a==1&&o!=11?"one":a>=2&&a<=4&&(o<12||o>14)?"few":n&&a==0||a>=5&&a<=9||o>=11&&o<=14?"many":"other"},br:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-1),o=n&&r[0].slice(-2),i=n&&r[0].slice(-6);return a==1&&o!=11&&o!=71&&o!=91?"one":a==2&&o!=12&&o!=72&&o!=92?"two":(a==3||a==4||a==9)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":t!=0&&n&&i==0?"many":"other"},bs:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),c=n.slice(-2),d=a.slice(-1),f=a.slice(-2);return o&&i==1&&c!=11||d==1&&f!=11?"one":o&&i>=2&&i<=4&&(c<12||c>14)||d>=2&&d<=4&&(f<12||f>14)?"few":"other"},ca:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t==1&&a?"one":n!=0&&o==0&&a?"many":"other"},ceb:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),c=a.slice(-1);return o&&(n==1||n==2||n==3)||o&&i!=4&&i!=6&&i!=9||!o&&c!=4&&c!=6&&c!=9?"one":"other"},cs:function(t){var r=String(t).split("."),n=r[0],a=!r[1];return t==1&&a?"one":n>=2&&n<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var r=String(t).split("."),n=r[0],a=Number(r[0])==t;return t==1||!a&&(n==0||n==1)?"one":"other"},dsb:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-2),c=a.slice(-2);return o&&i==1||c==1?"one":o&&i==2||c==2?"two":o&&(i==3||i==4)||c==3||c==4?"few":"other"},dz:function(t){return"other"},es:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t==1?"one":n!=0&&o==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return t>=0&&t<2?"one":n!=0&&o==0&&a?"many":"other"},ga:function(t){var r=String(t).split("."),n=Number(r[0])==t;return t==1?"one":t==2?"two":n&&t>=3&&t<=6?"few":n&&t>=7&&t<=10?"many":"other"},gd:function(t){var r=String(t).split("."),n=Number(r[0])==t;return t==1||t==11?"one":t==2||t==12?"two":n&&t>=3&&t<=10||n&&t>=13&&t<=19?"few":"other"},he:function(t){var r=String(t).split("."),n=r[0],a=!r[1];return n==1&&a||n==0&&!a?"one":n==2&&a?"two":"other"},is:function(t){var r=String(t).split("."),n=r[0],a=(r[1]||"").replace(/0+$/,""),o=Number(r[0])==t,i=n.slice(-1),c=n.slice(-2);return o&&i==1&&c!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var r=String(t).split("."),n=r[1]||"",a=Number(r[0])==t,o=a&&r[0].slice(-1),i=a&&r[0].slice(-2);return o==1&&(i<11||i>19)?"one":o>=2&&o<=9&&(i<11||i>19)?"few":n!=0?"many":"other"},lv:function(t){var r=String(t).split("."),n=r[1]||"",a=n.length,o=Number(r[0])==t,i=o&&r[0].slice(-1),c=o&&r[0].slice(-2),d=n.slice(-2),f=n.slice(-1);return o&&i==0||c>=11&&c<=19||a==2&&d>=11&&d<=19?"zero":i==1&&c!=11||a==2&&f==1&&d!=11||a!=2&&f==1?"one":"other"},mk:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"",o=!r[1],i=n.slice(-1),c=n.slice(-2),d=a.slice(-1),f=a.slice(-2);return o&&i==1&&c!=11||d==1&&f!=11?"one":"other"},mt:function(t){var r=String(t).split("."),n=Number(r[0])==t,a=n&&r[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-1),i=n.slice(-2);return t==1&&a?"one":a&&o>=2&&o<=4&&(i<12||i>14)?"few":a&&n!=1&&(o==0||o==1)||a&&o>=5&&o<=9||a&&i>=12&&i<=14?"many":"other"},pt:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-6);return n==0||n==1?"one":n!=0&&o==0&&a?"many":"other"},ro:function(t){var r=String(t).split("."),n=!r[1],a=Number(r[0])==t,o=a&&r[0].slice(-2);return t==1&&n?"one":!n||t==0||t!=1&&o>=1&&o<=19?"few":"other"},ru:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-1),i=n.slice(-2);return a&&o==1&&i!=11?"one":a&&o>=2&&o<=4&&(i<12||i>14)?"few":a&&o==0||a&&o>=5&&o<=9||a&&i>=11&&i<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var r=String(t).split("."),n=r[0],a=r[1]||"";return t==0||t==1||n==0&&a==1?"one":"other"},sl:function(t){var r=String(t).split("."),n=r[0],a=!r[1],o=n.slice(-2);return a&&o==1?"one":a&&o==2?"two":a&&(o==3||o==4)||!a?"few":"other"}};Re.as=Re.am;Re.az=Re.af;Re.bg=Re.af;Re.bn=Re.am;Re.brx=Re.af;Re.ce=Re.af;Re.chr=Re.af;Re.de=Re.ast;Re.ee=Re.af;Re.el=Re.af;Re.en=Re.ast;Re.et=Re.ast;Re.eu=Re.af;Re.fa=Re.am;Re.fi=Re.ast;Re.fil=Re.ceb;Re.fo=Re.af;Re.fur=Re.af;Re.fy=Re.ast;Re.gl=Re.ast;Re.gu=Re.am;Re.ha=Re.af;Re.hi=Re.am;Re.hr=Re.bs;Re.hsb=Re.dsb;Re.hu=Re.af;Re.hy=Re.ff;Re.ia=Re.ast;Re.id=Re.dz;Re.ig=Re.dz;Re.it=Re.ca;Re.ja=Re.dz;Re.jgo=Re.af;Re.jv=Re.dz;Re.ka=Re.af;Re.kea=Re.dz;Re.kk=Re.af;Re.kl=Re.af;Re.km=Re.dz;Re.kn=Re.am;Re.ko=Re.dz;Re.ks=Re.af;Re.ku=Re.af;Re.ky=Re.af;Re.lb=Re.af;Re.lkt=Re.dz;Re.lo=Re.dz;Re.ml=Re.af;Re.mn=Re.af;Re.mr=Re.af;Re.ms=Re.dz;Re.my=Re.dz;Re.nb=Re.af;Re.ne=Re.af;Re.nl=Re.ast;Re.nn=Re.af;Re.no=Re.af;Re.or=Re.af;Re.pcm=Re.am;Re.ps=Re.af;Re.rm=Re.af;Re.sah=Re.dz;Re.sc=Re.ast;Re.sd=Re.af;Re.sk=Re.cs;Re.so=Re.af;Re.sq=Re.af;Re.sr=Re.bs;Re.su=Re.dz;Re.sv=Re.ast;Re.sw=Re.ast;Re.ta=Re.af;Re.te=Re.af;Re.th=Re.dz;Re.ti=Re.pa;Re.tk=Re.af;Re.to=Re.dz;Re.tr=Re.af;Re.ug=Re.af;Re.uk=Re.ru;Re.ur=Re.ast;Re.uz=Re.af;Re.vi=Re.dz;Re.wae=Re.af;Re.wo=Re.dz;Re.xh=Re.af;Re.yi=Re.ast;Re.yo=Re.dz;Re.yue=Re.dz;Re.zh=Re.dz;Re.zu=Re.am;const g9=Re;function v9(e){return e==="pt-PT"?e:cte(e)}var lte=/^([a-z0-9]+)/i;function cte(e){var t=e.match(lte);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function ute(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dte(e,t,r){return t&&x9(e.prototype,t),r&&x9(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var I3=function(){function e(t,r){ute(this,e);var n=e.supportedLocalesOf(t);if(n.length===0)throw new RangeError("Unsupported locale: "+t);if(r&&r.type!=="cardinal")throw new RangeError('Only "cardinal" "type" is supported');this.$=g9[v9(n[0])]}return dte(e,[{key:"select",value:function(r){return this.$(r)}}],[{key:"supportedLocalesOf",value:function(r){return typeof r=="string"&&(r=[r]),r.filter(function(n){return g9[v9(n)]})}}]),e}();function $3(e){"@babel/helpers - typeof";return $3=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},$3(e)}function y9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function b9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y9(Object(r),!0).forEach(function(n){fte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w9(e,t){return gte(e)||mte(e,t)||pte(e,t)||hte()}function hte(){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 pte(e,t){if(e){if(typeof e=="string")return k9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k9(e,t)}}function k9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mte(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,c;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(d){o=!0,c=d}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw c}}return n}}function gte(e){if(Array.isArray(e))return e}function vte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xte(e,t,r){return t&&C9(e.prototype,t),r&&C9(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var yte=["second","minute","hour","day","week","month","quarter","year"],bte=["auto","always"],wte=["long","short","narrow"],kte=["lookup","best fit"],Lu=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vte(this,e);var n=r.numeric,a=r.style,o=r.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",n!==void 0){if(bte.indexOf(n)<0)throw new RangeError('Invalid "numeric" option: '.concat(n));this.numeric=n}if(a!==void 0){if(wte.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(o!==void 0){if(kte.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if(typeof t=="string"&&(t=[t]),t.push(LI()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");I3.supportedLocalesOf(this.locale).length>0?this.pluralRules=new I3(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl!="undefined"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=OI(this.locale,{localeMatcher:this.localeMatcher})}return xte(e,[{key:"format",value:function(){var r=S9(arguments),n=w9(r,2),a=n[0],o=n[1];return this.getRule(a,o).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var r=S9(arguments),n=w9(r,2),a=n[0],o=n[1],i=this.getRule(a,o),c=i.indexOf("{0}");if(c<0)return[{type:"literal",value:i}];var d=[];return c>0&&d.push({type:"literal",value:i.slice(0,c)}),d=d.concat(this.formatNumberToParts(Math.abs(a)).map(function(f){return b9(b9({},f),{},{unit:o})})),c+3<i.length-1&&d.push({type:"literal",value:i.slice(c+3)}),d}},{key:"getRule",value:function(r,n){var a=ote(this.locale)[this.style][n];if(typeof a=="string")return a;if(this.numeric==="auto"){if(r===-2||r===-1){var o=a["previous".concat(r===-1?"":"-"+Math.abs(r))];if(o)return o}else if(r===1||r===2){var i=a["next".concat(r===1?"":"-"+Math.abs(r))];if(i)return i}else if(r===0&&a.current)return a.current}var c=a[Nte(r)?"past":"future"];if(typeof c=="string")return c;var d=this.pluralRules&&this.pluralRules.select(Math.abs(r))||"other";return c[d]||c.other}},{key:"formatNumber",value:function(r){return this.numberFormat?this.numberFormat.format(r):String(r)}},{key:"formatNumberToParts",value:function(r){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(r):[{type:"integer",value:this.formatNumber(r)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}]),e}();Lu.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(r){return OI(r,t)})};Lu.addLocale=ite;Lu.setDefaultLocale=ate;Lu.getDefaultLocale=LI;Lu.PluralRules=I3;var e5='Invalid "unit" argument';function Cte(e){if($3(e)==="symbol")throw new TypeError(e5);if(typeof e!="string")throw new RangeError("".concat(e5,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),yte.indexOf(e)<0)throw new RangeError("".concat(e5,": ").concat(e));return e}var Ste='Invalid "number" argument';function jte(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(Ste,": ").concat(e));return e}function Ete(e){return 1/e===-1/0}function Nte(e){return e<0||e===0&&Ete(e)}function S9(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[jte(e[0]),Cte(e[1])]}function _b(e){"@babel/helpers - typeof";return _b=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},_b(e)}function _te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tte(e,t,r){return t&&j9(e.prototype,t),r&&j9(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var E9=function(){function e(){_te(this,e),this.cache={}}return Tte(e,[{key:"get",value:function(){for(var r=this.cache,n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];for(var i=0,c=a;i<c.length;i++){var d=c[i];if(_b(r)!=="object")return;r=r[d]}return r}},{key:"put",value:function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];for(var o=n.pop(),i=n.pop(),c=this.cache,d=0,f=n;d<f.length;d++){var h=f[d];_b(c[h])!=="object"&&(c[h]={}),c=c[h]}return c[i]=o}}]),e}();function z3(e){"@babel/helpers - typeof";return z3=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},z3(e)}function Mte(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Pte(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Pte(e,t){if(e){if(typeof e=="string")return N9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N9(e,t)}}function N9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dte(e,t){for(var r=Mte(e),n;!(n=r()).done;){var a=n.value;if(t(a))return a;for(var o=a.split("-");o.length>1;)if(o.pop(),a=o.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function Ate(){var e=(typeof Intl=="undefined"?"undefined":z3(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function F3(e){"@babel/helpers - typeof";return F3=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},F3(e)}function Rte(e){return Ote(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 Lte={}.constructor;function Ote(e){return F3(e)!==void 0&&e!==null&&e.constructor===Lte}var Wl=60,Tb=60*Wl,Gd=24*Tb,H3=7*Gd,B3=30.44*Gd,II=146097/400*Gd;function fp(e){switch(e){case"second":return 1;case"minute":return Wl;case"hour":return Tb;case"day":return Gd;case"week":return H3;case"month":return B3;case"year":return II}}function $I(e){return e.factor!==void 0?e.factor:fp(e.unit||e.formatAs)||1}function av(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function PE(e){switch(e){case"floor":return 1;default:return .5}}function U3(e){"@babel/helpers - typeof";return U3=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},U3(e)}function zI(e,t){var r=t.prevStep,n=t.timestamp,a=t.now,o=t.future,i=t.round,c;return r&&(r.id||r.unit)&&(c=e["threshold_for_".concat(r.id||r.unit)]),c===void 0&&e.threshold!==void 0&&(c=e.threshold,typeof c=="function"&&(c=c(a,o))),c===void 0&&(c=e.minTime),U3(c)==="object"&&(r&&r.id&&c[r.id]!==void 0?c=c[r.id]:c=c.default),typeof c=="function"&&(c=c(n,{future:o,getMinTimeForUnit:function(f,h){return _9(f,h||r&&r.formatAs,{round:i})}})),c===void 0&&e.test&&(e.test(n,{now:a,future:o})?c=0:c=9007199254740991),c===void 0&&(r?e.formatAs&&r.formatAs&&(c=_9(e.formatAs,r.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 _9(e,t,r){var n=r.round,a=fp(e),o;if(t==="now"?o=fp(e):o=fp(t),a!==void 0&&o!==void 0)return a-o*(1-PE(n))}function T9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ite(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T9(Object(r),!0).forEach(function(n){$te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zte(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.units,c=r.getNextStep;e=Hte(e,i);var d=Fte(e,t,{now:n,future:a,round:o});if(c){if(d){var f=e[e.indexOf(d)-1],h=e[e.indexOf(d)+1];return[f,d,h]}return[void 0,void 0,e[0]]}return d}function Fte(e,t,r){var n=r.now,a=r.future,o=r.round;if(e.length!==0){var i=FI(e,t,{now:n,future:a||t<0,round:o});if(i!==-1){var c=e[i];if(c.granularity){var d=av(o)(Math.abs(t)/$I(c)/c.granularity)*c.granularity;if(d===0&&i>0)return e[i-1]}return c}}}function FI(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=zI(e[n],Ite({prevStep:e[n-1],timestamp:r.now-t*1e3},r));return a===void 0||Math.abs(t)<a?n-1:n===e.length-1?n:FI(e,t,r,n+1)}function Hte(e,t){return e.filter(function(r){var n=r.unit,a=r.formatAs;return n=n||a,n?t.indexOf(n)>=0:!0})}function Bte(e,t,r){var n=r.now,a=r.round;if(fp(e)){var o=fp(e)*1e3,i=t>n,c=Math.abs(t-n),d=av(a)(c/o)*o;return i?d>0?c-d+Wte(a,o):c-d+1:-(c-d)+Ute(a,o)}}function Ute(e,t){return PE(e)*t}function Wte(e,t){return(1-PE(e))*t+1}var Vte=365*24*60*60*1e3,HI=1e3*Vte;function qte(e,t,r){var n=r.prevStep,a=r.nextStep,o=r.now,i=r.future,c=r.round,d=e.getTime?e.getTime():e,f=function(b){return Bte(b,d,{now:o,round:c})},h=Gte(i?t:a,d,{future:i,now:o,round:c,prevStep:i?n:t});if(h!==void 0){var p;if(t&&(t.getTimeToNextUpdate&&(p=t.getTimeToNextUpdate(d,{getTimeToNextUpdateForUnit:f,getRoundFunction:av,now:o,future:i,round:c})),p===void 0)){var g=t.unit||t.formatAs;g&&(p=f(g))}return p===void 0?h:Math.min(p,h)}}function Kte(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.prevStep,c=zI(e,{timestamp:t,now:n,future:a,round:o,prevStep:i});if(c!==void 0)return a?t-c*1e3+1:c===0&&t===n?HI:t+c*1e3}function Gte(e,t,r){var n=r.now,a=r.future,o=r.round,i=r.prevStep;if(e){var c=Kte(e,t,{now:n,future:a,round:o,prevStep:i});return c===void 0?void 0:c-n}else return a?t-n+1:HI}var BI={};function Gh(e){return BI[e]}function UI(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");BI[e.locale]=e}const Yte=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],W3={steps:Yte,labels:"long"};function M9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function P9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M9(Object(r),!0).forEach(function(n){Zte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const V3=P9(P9({},W3),{},{steps:W3.steps.filter(function(e){return e.formatAs!=="second"})}),WI=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:Wl,unit:"minute"},{threshold:2.5*Wl,granularity:5,factor:Wl,unit:"minute"},{threshold:22.5*Wl,factor:.5*Tb,unit:"half-hour"},{threshold:42.5*Wl,threshold_for_minute:52.5*Wl,factor:Tb,unit:"hour"},{threshold:20.5/24*Gd,factor:Gd,unit:"day"},{threshold:5.5*Gd,factor:H3,unit:"week"},{threshold:3.5*H3,factor:B3,unit:"month"},{threshold:10.5*B3,factor:II,unit:"year"}],D9={gradation:WI,flavour:"long",units:["now","minute","hour","day","week","month","year"]},Xte={gradation:WI,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function VI(e){return e instanceof Date?e:new Date(e)}var q3=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],il={},Qte={minTime:function(t,r){r.future;var n=r.getMinTimeForUnit;return n("day")},format:function(t,r){return il[r]||(il[r]={}),il[r].dayMonth||(il[r].dayMonth=new Intl.DateTimeFormat(r,{month:"short",day:"numeric"})),il[r].dayMonth.format(VI(t))}},Jte={minTime:function(t,r){var n=r.future;if(n){var a=new Date(new Date(t).getFullYear(),0).getTime()-1;return(t-a)/1e3}else{var o=new Date(new Date(t).getFullYear()+1,0).getTime();return(o-t)/1e3}},format:function(t,r){return il[r]||(il[r]={}),il[r].dayMonthYear||(il[r].dayMonthYear=new Intl.DateTimeFormat(r,{year:"numeric",month:"short",day:"numeric"})),il[r].dayMonthYear.format(VI(t))}};Ate()?q3.push(Qte,Jte):q3.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});const df={steps:q3,labels:["mini","short-time","narrow","short"]};function A9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function R9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A9(Object(r),!0).forEach(function(n){ere(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ere(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tre=R9(R9({},df),{},{steps:[{formatAs:"now"}].concat(df.steps)});function L9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function O9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L9(Object(r),!0).forEach(function(n){rre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const K3=O9(O9({},df),{},{steps:df.steps.filter(function(e){return e.formatAs!=="second"})});function I9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I9(Object(r),!0).forEach(function(n){nre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sre=$9($9({},K3),{},{steps:[{formatAs:"now"}].concat(K3.steps)});function z9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ex(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z9(Object(r),!0).forEach(function(n){are(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function are(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ore=Ex(Ex({},df),{},{steps:df.steps.filter(function(e){return e.formatAs!=="second"}).map(function(e){return e.formatAs==="minute"?Ex(Ex({},e),{},{minTime:Wl}):e})}),ov={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function F9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function H9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?F9(Object(r),!0).forEach(function(n){ire(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):F9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ire(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lre=H9(H9({},ov),{},{steps:[{formatAs:"now"}].concat(ov.steps)});function B9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B9(Object(r),!0).forEach(function(n){cre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const G3=U9(U9({},ov),{},{steps:ov.steps.filter(function(e){return e.formatAs!=="second"})});function W9(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function V9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W9(Object(r),!0).forEach(function(n){ure(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W9(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ure(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dre=V9(V9({},G3),{},{steps:[{formatAs:"now"}].concat(G3.steps)});function fre(e){switch(e){case"default":case"round":return W3;case"round-minute":return V3;case"approximate":return D9;case"time":case"approximate-time":return Xte;case"mini":return ov;case"mini-now":return lre;case"mini-minute":return G3;case"mini-minute-now":return dre;case"twitter":return df;case"twitter-now":return tre;case"twitter-minute":return K3;case"twitter-minute-now":return sre;case"twitter-first-minute":return ore;default:return D9}}function Mb(e){"@babel/helpers - typeof";return Mb=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},Mb(e)}function hre(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=qI(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 pre(e,t){return vre(e)||gre(e,t)||qI(e,t)||mre()}function mre(){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 qI(e,t){if(e){if(typeof e=="string")return q9(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q9(e,t)}}function q9(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gre(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],a=!0,o=!1,i,c;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(n.push(i.value),!(t&&n.length===t));a=!0);}catch(d){o=!0,c=d}finally{try{!a&&r.return!=null&&r.return()}finally{if(o)throw c}}return n}}function vre(e){if(Array.isArray(e))return e}function xre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yre(e,t,r){return t&&K9(e.prototype,t),r&&K9(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Us=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.polyfill;xre(this,e),typeof t=="string"&&(t=[t]),this.locale=Dte(t.concat(e.getDefaultLocale()),Gh),typeof Intl!="undefined"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),n===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Lu,this.IntlPluralRules=Lu.PluralRules),this.relativeTimeFormatCache=new E9,this.pluralRulesCache=new E9}return yre(e,[{key:"format",value:function(r,n,a){a||(n&&!Sre(n)?(a=n,n=void 0):a={}),n||(n=V3),typeof n=="string"&&(n=fre(n));var o=bre(r),i=this.getLabels(n.flavour||n.labels),c=i.labels,d=i.labelsType,f;n.now!==void 0&&(f=n.now),f===void 0&&a.now!==void 0&&(f=a.now),f===void 0&&(f=Date.now());var h=(f-o)/1e3,p=a.future||h<0,g=Cre(c,Gh(this.locale).now,Gh(this.locale).long,p);if(n.custom){var S=n.custom({now:f,date:new Date(o),time:o,elapsed:h,locale:this.locale});if(S!==void 0)return S}var b=kre(n.units,c,g),v=a.round||n.round,w=zte(n.gradation||n.steps||V3.steps,h,{now:f,units:b,round:v,future:p,getNextStep:!0}),C=pre(w,3),j=C[0],E=C[1],N=C[2],M=this.formatDateForStep(o,E,h,{labels:c,labelsType:d,nowLabel:g,now:f,future:p,round:v})||"";if(a.getTimeToNextUpdate){var P=qte(o,E,{nextStep:N,prevStep:j,now:f,future:p,round:v});return[M,P]}return M}},{key:"formatDateForStep",value:function(r,n,a,o){var i=this,c=o.labels,d=o.labelsType,f=o.nowLabel,h=o.now,p=o.future,g=o.round;if(n){if(n.format)return n.format(r,this.locale,{formatAs:function(C,j){return i.formatValue(j,C,{labels:c,future:p})},now:h,future:p});var S=n.unit||n.formatAs;if(!S)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(n)));if(S==="now")return f;var b=Math.abs(a)/$I(n);n.granularity&&(b=av(g)(b/n.granularity)*n.granularity);var v=-1*Math.sign(a)*av(g)(b);switch(v===0&&(p?v=0:v=-0),d){case"long":case"short":case"narrow":return this.getFormatter(d).format(v,S);default:return this.formatValue(v,S,{labels:c,future:p})}}}},{key:"formatValue",value:function(r,n,a){var o=a.labels,i=a.future;return this.getFormattingRule(o,n,r,{future:i}).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"getFormattingRule",value:function(r,n,a,o){var i=o.future;if(this.locale,r=r[n],typeof r=="string")return r;var c=a===0?i?"future":"past":a<0?"past":"future",d=r[c]||r;if(typeof d=="string")return d;var f=this.getPluralRules().select(Math.abs(a));return d[f]||d.other}},{key:"formatNumber",value:function(r){return this.numberFormat?this.numberFormat.format(r):String(r)}},{key:"getFormatter",value:function(r){return this.relativeTimeFormatCache.get(this.locale,r)||this.relativeTimeFormatCache.put(this.locale,r,new this.IntlRelativeTimeFormat(this.locale,{style:r}))}},{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 r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof r=="string"&&(r=[r]),r=r.map(function(c){switch(c){case"tiny":case"mini-time":return"mini";default:return c}}),r=r.concat("long");for(var n=Gh(this.locale),a=hre(r),o;!(o=a()).done;){var i=o.value;if(n[i])return{labelsType:i,labels:n[i]}}}}]),e}(),KI="en";Us.getDefaultLocale=function(){return KI};Us.setDefaultLocale=function(e){return KI=e};Us.addDefaultLocale=function(e){if(G9)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");G9=!0,Us.setDefaultLocale(e.locale),Us.addLocale(e)};var G9;Us.addLocale=function(e){UI(e),Lu.addLocale(e)};Us.locale=Us.addLocale;Us.addLabels=function(e,t,r){var n=Gh(e);n||(UI({locale:e}),n=Gh(e)),n[t]=r};function bre(e){if(e.constructor===Date||wre(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(Mb(e),", ").concat(e))}function wre(e){return Mb(e)==="object"&&typeof e.getTime=="function"}function kre(e,t,r){var n=Object.keys(t);return r&&n.push("now"),e&&(n=e.filter(function(a){return a==="now"||n.indexOf(a)>=0})),n}function Cre(e,t,r,n){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:n?a.future:a.past;if(r&&r.second&&r.second.current)return r.second.current}function Sre(e){return typeof e=="string"||Rte(e)}const jre={locale:"de",long:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes 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ächstes 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ächsten 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ächste 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":"übermorgen",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ächstes 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ächstes Quartal",past:"vor {0} Quart.",future:"in {0} Quart."},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten 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ächste 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":"übermorgen",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ächstes 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ächstes Quartal",past:"vor {0} Q",future:"in {0} Q"},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten 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ächste Woche",past:"vor {0} Wo.",future:"in {0} Wo."},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",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"}}},Ere={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"}}},Nre={locale:"es",long:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:{one:"hace {0} año",other:"hace {0} años"},future:{one:"dentro de {0} año",other:"dentro de {0} años"}},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo 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óximo 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óxima 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ñana","next-2":"pasado mañana",past:{one:"hace {0} día",other:"hace {0} días"},future:{one:"dentro de {0} día",other:"dentro de {0} días"}},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ño pasado",current:"este año",next:"el próximo año",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"próx. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",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ño pasado",current:"este año",next:"el próximo año",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"próx. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",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ño",other:"{0} años"},month:{one:"{0} mes",other:"{0} meses"},week:"{0} sem.",day:{one:"{0} día",other:"{0} días"},hour:{one:"{0} hora",other:"{0} horas"},minute:"{0} min.",second:"{0} seg.",now:"ahora"},"long-time":{year:{one:"{0} año",other:"{0} años"},month:{one:"{0} mes",other:"{0} meses"},week:{one:"{0} semana",other:"{0} semanas"},day:{one:"{0} día",other:"{0} días"},hour:{one:"{0} hora",other:"{0} horas"},minute:{one:"{0} minuto",other:"{0} minutos"},second:{one:"{0} segundo",other:"{0} segundos"}}},_re={locale:"fr",long:{year:{previous:"l’année dernière",current:"cette année",next:"l’année 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ère",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’hui",next:"demain","next-2":"après-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’année dernière",current:"cette année",next:"l’année 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ère",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’hui",next:"demain","next-2":"après-demain",past:"il y a {0} j",future:"dans {0} j"},hour:{current:"cette heure-ci",past:"il y a {0} h",future:"dans {0} h"},minute:{current:"cette minute-ci",past:"il y a {0} min",future:"dans {0} min"},second:{current:"maintenant",past:"il y a {0} s",future:"dans {0} s"}},narrow:{year:{previous:"l’année dernière",current:"cette année",next:"l’année 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ère",current:"cette semaine",next:"la semaine prochaine",past:"-{0} sem.",future:"+{0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-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:"à 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"}}},Tre={locale:"ru",long:{year:{previous:"в прошлом году",current:"в этом году",next:"в следующем году",past:{one:"{0} год назад",many:"{0} лет назад",other:"{0} года назад"},future:{one:"через {0} год",many:"через {0} лет",other:"через {0} года"}},quarter:{previous:"в прошлом квартале",current:"в текущем квартале",next:"в следующем квартале",past:{one:"{0} квартал назад",many:"{0} кварталов назад",other:"{0} квартала назад"},future:{one:"через {0} квартал",many:"через {0} кварталов",other:"через {0} квартала"}},month:{previous:"в прошлом месяце",current:"в этом месяце",next:"в следующем месяце",past:{one:"{0} месяц назад",many:"{0} месяцев назад",other:"{0} месяца назад"},future:{one:"через {0} месяц",many:"через {0} месяцев",other:"через {0} месяца"}},week:{previous:"на прошлой неделе",current:"на этой неделе",next:"на следующей неделе",past:{one:"{0} неделю назад",many:"{0} недель назад",other:"{0} недели назад"},future:{one:"через {0} неделю",many:"через {0} недель",other:"через {0} недели"}},day:{previous:"вчера","previous-2":"позавчера",current:"сегодня",next:"завтра","next-2":"послезавтра",past:{one:"{0} день назад",many:"{0} дней назад",other:"{0} дня назад"},future:{one:"через {0} день",many:"через {0} дней",other:"через {0} дня"}},hour:{current:"в этот час",past:{one:"{0} час назад",many:"{0} часов назад",other:"{0} часа назад"},future:{one:"через {0} час",many:"через {0} часов",other:"через {0} часа"}},minute:{current:"в эту минуту",past:{one:"{0} минуту назад",many:"{0} минут назад",other:"{0} минуты назад"},future:{one:"через {0} минуту",many:"через {0} минут",other:"через {0} минуты"}},second:{current:"сейчас",past:{one:"{0} секунду назад",many:"{0} секунд назад",other:"{0} секунды назад"},future:{one:"через {0} секунду",many:"через {0} секунд",other:"через {0} секунды"}}},short:{year:{previous:"в прошлом г.",current:"в этом г.",next:"в след. г.",past:{many:"{0} л. назад",other:"{0} г. назад"},future:{many:"через {0} л.",other:"через {0} г."}},quarter:{previous:"последний кв.",current:"текущий кв.",next:"следующий кв.",past:"{0} кв. назад",future:"через {0} кв."},month:{previous:"в прошлом мес.",current:"в этом мес.",next:"в следующем мес.",past:"{0} мес. назад",future:"через {0} мес."},week:{previous:"на прошлой нед.",current:"на этой нед.",next:"на следующей нед.",past:"{0} нед. назад",future:"через {0} нед."},day:{previous:"вчера","previous-2":"позавчера",current:"сегодня",next:"завтра","next-2":"послезавтра",past:"{0} дн. назад",future:"через {0} дн."},hour:{current:"в этот час",past:"{0} ч назад",future:"через {0} ч"},minute:{current:"в эту минуту",past:"{0} мин. назад",future:"через {0} мин."},second:{current:"сейчас",past:"{0} сек. назад",future:"через {0} сек."}},narrow:{year:{previous:"в пр. г.",current:"в эт. г.",next:"в сл. г.",past:{many:"-{0} л.",other:"-{0} г."},future:{many:"+{0} л.",other:"+{0} г."}},quarter:{previous:"посл. кв.",current:"тек. кв.",next:"след. кв.",past:"-{0} кв.",future:"+{0} кв."},month:{previous:"в пр. мес.",current:"в эт. мес.",next:"в след. мес.",past:"-{0} мес.",future:"+{0} мес."},week:{previous:"на пр. нед.",current:"на эт. нед.",next:"на след. нед.",past:"-{0} нед.",future:"+{0} нед."},day:{previous:"вчера","previous-2":"позавчера",current:"сегодня",next:"завтра","next-2":"послезавтра",past:"-{0} дн.",future:"+{0} дн."},hour:{current:"в этот час",past:"-{0} ч",future:"+{0} ч"},minute:{current:"в эту минуту",past:"-{0} мин",future:"+{0} мин"},second:{current:"сейчас",past:"-{0} с",future:"+{0} с"}},now:{now:{current:"сейчас",past:"только что",future:"сейчас"}},mini:{year:{many:"{0} л",other:"{0} г"},month:"{0} мес",week:"{0} нед",day:"{0} д",hour:"{0} ч",minute:"{0} мин",second:"{0} с",now:"сейчас"},"short-time":{year:{many:"{0} л.",other:"{0} г."},month:"{0} мес.",week:"{0} нед.",day:{one:"{0} д.",other:"{0} дн."},hour:"{0} ч.",minute:"{0} мин.",second:"{0} сек."},"long-time":{year:{one:"{0} год",many:"{0} лет",other:"{0} года"},month:{one:"{0} месяц",many:"{0} месяцев",other:"{0} месяца"},week:{one:"{0} неделю",many:"{0} недель",other:"{0} недели"},day:{one:"{0} день",few:"{0} дня",other:"{0} дней"},hour:{one:"{0} час",many:"{0} часов",other:"{0} часа"},minute:{one:"{0} минута",many:"{0} минут",other:"{0} минуты"},second:{one:"{0} секунда",many:"{0} секунд",other:"{0} секунды"}}},Mre={locale:"uk",long:{year:{previous:"минулого року",current:"цього року",next:"наступного року",past:{one:"{0} рік тому",few:"{0} роки тому",many:"{0} років тому",other:"{0} року тому"},future:{one:"через {0} рік",few:"через {0} роки",many:"через {0} років",other:"через {0} року"}},quarter:{previous:"минулого кварталу",current:"цього кварталу",next:"наступного кварталу",past:{one:"{0} квартал тому",few:"{0} квартали тому",many:"{0} кварталів тому",other:"{0} кварталу тому"},future:{one:"через {0} квартал",few:"через {0} квартали",many:"через {0} кварталів",other:"через {0} кварталу"}},month:{previous:"минулого місяця",current:"цього місяця",next:"наступного місяця",past:{one:"{0} місяць тому",few:"{0} місяці тому",many:"{0} місяців тому",other:"{0} місяця тому"},future:{one:"через {0} місяць",few:"через {0} місяці",many:"через {0} місяців",other:"через {0} місяця"}},week:{previous:"минулого тижня",current:"цього тижня",next:"наступного тижня",past:{one:"{0} тиждень тому",few:"{0} тижні тому",many:"{0} тижнів тому",other:"{0} тижня тому"},future:{one:"через {0} тиждень",few:"через {0} тижні",many:"через {0} тижнів",other:"через {0} тижня"}},day:{previous:"учора","previous-2":"позавчора",current:"сьогодні",next:"завтра","next-2":"післязавтра",past:{one:"{0} день тому",few:"{0} дні тому",many:"{0} днів тому",other:"{0} дня тому"},future:{one:"через {0} день",few:"через {0} дні",many:"через {0} днів",other:"через {0} дня"}},hour:{current:"цієї години",past:{one:"{0} годину тому",many:"{0} годин тому",other:"{0} години тому"},future:{one:"через {0} годину",many:"через {0} годин",other:"через {0} години"}},minute:{current:"цієї хвилини",past:{one:"{0} хвилину тому",many:"{0} хвилин тому",other:"{0} хвилини тому"},future:{one:"через {0} хвилину",many:"через {0} хвилин",other:"через {0} хвилини"}},second:{current:"зараз",past:{one:"{0} секунду тому",many:"{0} секунд тому",other:"{0} секунди тому"},future:{one:"через {0} секунду",many:"через {0} секунд",other:"через {0} секунди"}}},short:{year:{previous:"торік",current:"цьогоріч",next:"наст. року",past:"{0} р. тому",future:"через {0} р."},quarter:{previous:"минулого кв.",current:"цього кв.",next:"наступного кв.",past:"{0} кв. тому",future:"через {0} кв."},month:{previous:"минулого місяця",current:"цього місяця",next:"наступного місяця",past:"{0} міс. тому",future:"через {0} міс."},week:{previous:"мин. тижня",current:"цього тижня",next:"наст. тижня",past:"{0} тиж. тому",future:"через {0} тиж."},day:{previous:"учора","previous-2":"позавчора",current:"сьогодні",next:"завтра","next-2":"післязавтра",past:"{0} дн. тому",future:"через {0} дн."},hour:{current:"цієї години",past:"{0} год тому",future:"через {0} год"},minute:{current:"цієї хвилини",past:"{0} хв тому",future:"через {0} хв"},second:{current:"зараз",past:"{0} с тому",future:"через {0} с"}},narrow:{year:{previous:"торік",current:"цього року",next:"наст. р.",past:"{0} р. тому",future:"за {0} р."},quarter:{previous:"минулого кв.",current:"цього кв.",next:"наступного кв.",past:"{0} кв. тому",future:"за {0} кв."},month:{previous:"мин. міс.",current:"цього міс.",next:"наст. міс.",past:"{0} міс. тому",future:"за {0} міс."},week:{previous:"минулого тижня",current:"цього тижня",next:"наступного тижня",past:"{0} тиж. тому",future:"за {0} тиж."},day:{previous:"учора","previous-2":"позавчора",current:"сьогодні",next:"завтра","next-2":"післязавтра",past:"{0} дн. тому",future:"за {0} д."},hour:{current:"цієї години",past:"{0} год тому",future:"за {0} год"},minute:{current:"цієї хвилини",past:"{0} хв тому",future:"за {0} хв"},second:{current:"зараз",past:"{0} с тому",future:"за {0} с"}}};var Pre={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 Dre=Fi(Pre);var Are=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Y9(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(Dre[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var a=new RegExp(Are),o=null;(o=a.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],a.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var Rre=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Lre=/^\s*$/,Ore=Object.create(null);function GI(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var a in r)n.push(a+'="'+r[a]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(GI,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var Ire={parse:function(e,t){t||(t={}),t.components||(t.components=Ore);var r,n=[],a=[],o=-1,i=!1;if(e.indexOf("<")!==0){var c=e.indexOf("<");n.push({type:"text",content:c===-1?e:e.substring(0,c)})}return e.replace(Rre,function(d,f){if(i){if(d!=="</"+r.name+">")return;i=!1}var h,p=d.charAt(1)!=="/",g=d.startsWith("<!--"),S=f+d.length,b=e.charAt(S);if(g){var v=Y9(d);return o<0?(n.push(v),n):((h=a[o]).children.push(v),n)}if(p&&(o++,(r=Y9(d)).type==="tag"&&t.components[r.name]&&(r.type="component",i=!0),r.voidElement||i||!b||b==="<"||r.children.push({type:"text",content:e.slice(S,e.indexOf("<",S))}),o===0&&n.push(r),(h=a[o-1])&&h.children.push(r),a[o]=r),(!p||r.voidElement)&&(o>-1&&(r.voidElement||r.name===d.slice(2,-1))&&(o--,r=o===-1?n:a[o]),!i&&b!=="<"&&b)){h=o===-1?n:a[o].children;var w=e.indexOf("<",S),C=e.slice(S,w===-1?void 0:w);Lre.test(C)&&(C=" "),(w>-1&&o+h.length>=0||C!==" ")&&h.push({type:"text",content:C})}}),n},stringify:function(e){return e.reduce(function(t,r){return t+GI("",r)},"")}};function Cy(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]="react-i18next:: ".concat(t[0])),console.warn(...t)}}const Z9={};function Pb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&Z9[t[0]]||(typeof t[0]=="string"&&(Z9[t[0]]=new Date),Cy(...t))}const YI=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function X9(e,t,r){e.loadNamespaces(t,YI(e,r))}function Q9(e,t,r,n){typeof r=="string"&&(r=[r]),r.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,YI(e,n))}function $re(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=t.languages[0],a=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(c,d)=>{const f=t.services.backendConnector.state["".concat(c,"|").concat(d)];return f===-1||f===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(n,e)&&(!a||i(o,e)))}function zre(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Pb("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(a,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):$re(e,t,r)}const Fre=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hre={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Bre=e=>Hre[e],Ure=e=>e.replace(Fre,Bre);let Y3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ure};function Wre(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Y3=R(R({},Y3),e)}function ZI(){return Y3}let XI;function Vre(e){XI=e}function DE(){return XI}function t5(e,t){if(!e)return!1;const r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function r5(e){if(!e)return[];const t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?Yh(t):t}function qre(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(t=>m.isValidElement(t))}function Yh(e){return Array.isArray(e)?e:[e]}function Kre(e,t){const r=R({},t);return r.props=Object.assign(e.props,t.props),r}function QI(e,t){if(!e)return"";let r="";const n=Yh(e),a=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return n.forEach((o,i)=>{if(typeof o=="string")r+="".concat(o);else if(m.isValidElement(o)){const d=Object.keys(o.props).length,f=a.indexOf(o.type)>-1,h=o.props.children;if(!h&&f&&d===0)r+="<".concat(o.type,"/>");else if(!h&&(!f||d!==0))r+="<".concat(i,"></").concat(i,">");else if(o.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(f&&d===1&&typeof h=="string")r+="<".concat(o.type,">").concat(h,"</").concat(o.type,">");else{const p=QI(h,t);r+="<".concat(i,">").concat(p,"</").concat(i,">")}}else if(o===null)Cy("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof o=="object"){const c=o,{format:d}=c,f=Ce(c,["format"]),h=Object.keys(f);if(h.length===1){const p=d?"".concat(h[0],", ").concat(d):h[0];r+="{{".concat(p,"}}")}else Cy("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",o)}else Cy("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)}),r}function Gre(e,t,r,n,a,o){if(t==="")return[];const i=n.transKeepBasicHtmlNodesFor||[],c=t&&new RegExp(i.map(w=>"<".concat(w)).join("|")).test(t);if(!e&&!c&&!o)return[t];const d={};function f(w){Yh(w).forEach(j=>{typeof j!="string"&&(t5(j)?f(r5(j)):typeof j=="object"&&!m.isValidElement(j)&&Object.assign(d,j))})}f(e);const h=Ire.parse("<0>".concat(t,"</0>")),p=R(R({},d),a);function g(w,C,j){const E=r5(w),N=b(E,C.children,j);return qre(E)&&N.length===0||w.props&&w.props.i18nIsDynamicList?E:N}function S(w,C,j,E,N){w.dummy?(w.children=C,j.push(m.cloneElement(w,{key:E},N?void 0:C))):j.push(...m.Children.map([w],M=>{const P=R({},M.props);return delete P.i18nIsDynamicList,m.createElement(M.type,re(R({},P),{key:E,ref:M.ref}),N?null:C)}))}function b(w,C,j){const E=Yh(w);return Yh(C).reduce((M,P,D)=>{const A=P.children&&P.children[0]&&P.children[0].content&&r.services.interpolator.interpolate(P.children[0].content,p,r.language);if(P.type==="tag"){let O=E[parseInt(P.name,10)];j.length===1&&!O&&(O=j[0][P.name]),O||(O={});const $=Object.keys(P.attrs).length!==0?Kre({props:P.attrs},O):O,H=m.isValidElement($),z=H&&t5(P,!0)&&!P.voidElement,I=c&&typeof $=="object"&&$.dummy&&!H,W=typeof e=="object"&&e!==null&&Object.hasOwnProperty.call(e,P.name);if(typeof $=="string"){const _=r.services.interpolator.interpolate($,p,r.language);M.push(_)}else if(t5($)||z){const _=g($,P,j);S($,_,M,D)}else if(I){const _=b(E,P.children,j);S($,_,M,D)}else if(Number.isNaN(parseFloat(P.name)))if(W){const _=g($,P,j);S($,_,M,D,P.voidElement)}else if(n.transSupportBasicHtmlNodes&&i.indexOf(P.name)>-1)if(P.voidElement)M.push(m.createElement(P.name,{key:"".concat(P.name,"-").concat(D)}));else{const _=b(E,P.children,j);M.push(m.createElement(P.name,{key:"".concat(P.name,"-").concat(D)},_))}else if(P.voidElement)M.push("<".concat(P.name," />"));else{const _=b(E,P.children,j);M.push("<".concat(P.name,">").concat(_,"</").concat(P.name,">"))}else if(typeof $=="object"&&!H){const _=P.children[0]?A:null;_&&M.push(_)}else S($,A,M,D,P.children.length!==1||!A)}else if(P.type==="text"){const O=n.transWrapTextNodes,$=o?n.unescape(r.services.interpolator.interpolate(P.content,p,r.language)):r.services.interpolator.interpolate(P.content,p,r.language);O?M.push(m.createElement(O,{key:"".concat(P.name,"-").concat(D)},$)):M.push($)}return M},[])}const v=b([{dummy:!0,children:e||[]}],h,Yh(e||[]));return r5(v[0])}function Yre(e){let z=e,{children:t,count:r,parent:n,i18nKey:a,context:o,tOptions:i={},values:c,defaults:d,components:f,ns:h,i18n:p,t:g,shouldUnescape:S}=z,b=Ce(z,["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"]);const v=p||DE();if(!v)return Pb("You will need to pass in an i18next instance by using i18nextReactModule"),t;const w=g||v.t.bind(v)||(I=>I);o&&(i.context=o);const C=R(R({},ZI()),v.options&&v.options.react);let j=h||w.ns||v.options&&v.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"];const E=QI(t,C),N=d||E||C.transEmptyNodeValue||a,{hashTransKey:M}=C,P=a||(M?M(E||N):E||N);v.options&&v.options.interpolation&&v.options.interpolation.defaultVariables&&(c=c&&Object.keys(c).length>0?R(R({},c),v.options.interpolation.defaultVariables):R({},v.options.interpolation.defaultVariables));const D=c||r!==void 0?i.interpolation:{interpolation:re(R({},i.interpolation),{prefix:"#$?",suffix:"?$#"})},A=re(R(R(re(R({},i),{count:r}),c),D),{defaultValue:N,ns:j}),O=P?w(P,A):N;f&&Object.keys(f).forEach(I=>{const W=f[I];if(typeof W.type=="function"||!W.props||!W.props.children||O.indexOf("".concat(I,"/>"))<0&&O.indexOf("".concat(I," />"))<0)return;function _(){return m.createElement(m.Fragment,null,W)}f[I]=m.createElement(_)});const $=Gre(f||t,O,v,C,A,S),H=n!==void 0?n:C.defaultTransParent;return H?m.createElement(H,b,$):$}const Zre={type:"3rdParty",init(e){Wre(e.options.react),Vre(e)}},JI=m.createContext();class Xre{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function na(e){let E=e,{children:t,count:r,parent:n,i18nKey:a,context:o,tOptions:i={},values:c,defaults:d,components:f,ns:h,i18n:p,t:g,shouldUnescape:S}=E,b=Ce(E,["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"]);const{i18n:v,defaultNS:w}=m.useContext(JI)||{},C=p||v||DE(),j=g||C&&C.t.bind(C);return Yre(R({children:t,count:r,parent:n,i18nKey:a,context:o,tOptions:i,values:c,defaults:d,components:f,ns:h||j&&j.ns||w||C&&C.options&&C.options.defaultNS,i18n:C,t:g,shouldUnescape:S},b))}const Qre=(e,t)=>{const r=m.useRef();return m.useEffect(()=>{r.current=t?r.current:e},[e,t]),r.current};function e$(e,t,r,n){return e.getFixedT(t,r,n)}function Jre(e,t,r,n){return m.useCallback(e$(e,t,r,n),[e,t,r,n])}function Tt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:a}=m.useContext(JI)||{},o=r||n||DE();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new Xre),!o){Pb("You will need to pass in an i18next instance by using initReactI18next");const M=(D,A)=>typeof A=="string"?A:A&&typeof A=="object"&&typeof A.defaultValue=="string"?A.defaultValue:Array.isArray(D)?D[D.length-1]:D,P=[M,{},!1];return P.t=M,P.i18n={},P.ready=!1,P}o.options.react&&o.options.react.wait!==void 0&&Pb("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i=R(R(R({},ZI()),o.options.react),t),{useSuspense:c,keyPrefix:d}=i;let f=e||a||o.options&&o.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(f);const h=(o.isInitialized||o.initializedStoreOnce)&&f.every(M=>zre(M,o,i)),p=Jre(o,t.lng||null,i.nsMode==="fallback"?f:f[0],d),g=()=>p,S=()=>e$(o,t.lng||null,i.nsMode==="fallback"?f:f[0],d),[b,v]=m.useState(g);let w=f.join();t.lng&&(w="".concat(t.lng).concat(w));const C=Qre(w),j=m.useRef(!0);m.useEffect(()=>{const{bindI18n:M,bindI18nStore:P}=i;j.current=!0,!h&&!c&&(t.lng?Q9(o,t.lng,f,()=>{j.current&&v(S)}):X9(o,f,()=>{j.current&&v(S)})),h&&C&&C!==w&&j.current&&v(S);function D(){j.current&&v(S)}return M&&o&&o.on(M,D),P&&o&&o.store.on(P,D),()=>{j.current=!1,M&&o&&M.split(" ").forEach(A=>o.off(A,D)),P&&o&&P.split(" ").forEach(A=>o.store.off(A,D))}},[o,w]);const E=m.useRef(!0);m.useEffect(()=>{j.current&&!E.current&&v(g),E.current=!1},[o,d]);const N=[b,o,h];if(N.t=b,N.i18n=o,N.ready=h,h||!h&&!c)return N;throw new Promise(M=>{t.lng?Q9(o,t.lng,f,()=>M()):X9(o,f,()=>M())})}const ene={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","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 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 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",Renew:"Renew","Renew License":"Renew License","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 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 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","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",Views:{"Paste Menu":"Paste Menu"},Yes:"Yes",chars:"chars",found:"found",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","Move To":"Move 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>{{<b>{{name}}</b>}}</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 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","Panel for moved or copied items from other tabs":"Panel for moved or copied items from other tabs",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","Disabled field <b>{{<b>{{name}}</b>}}</b> has been found in the template":"Disabled field <b>{{<b>{{name}}</b>}}</b> has been found in the template","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 <b>{{<b>{{name}}</b>}}</b> has been found in the template":"Field <b>{{<b>{{name}}</b>}}</b> has been found in the template","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","Mask to hide clipboard value in preview":"Mask to hide clipboard value in preview","Move Clip":"Move Clip","Moved Clips Panel":"Moved Clips Panel",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⠀<b>{{output}}</b>⠀placeholder.":"Template should have⠀<b>{{output}}</b>⠀placeholder.","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 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>Your beta license has expired</strong>. If you wish to gain access to priority support and all features, please consider upgrade your license to Pro.":"<strong>Your beta license has expired</strong>. If you wish to gain access to priority support and all features, please consider upgrade your license to Pro.","<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:","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 <strong>{{screenLockPassCodeLength}} digits</strong> passcode":"Enter your <strong>{{screenLockPassCodeLength}} digits</strong> passcode","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}}","However, you can continue using the current version with access to all available Pro features.":"However, you can continue using the current version with access to all available Pro features.",'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.',"If you wish to upgrade to the latest version, gain access to priority support and new features, please consider renewing your license.":"If you wish to upgrade to the latest version, gain access to priority support and new features, please consider renewing your license.","Incorrect passcode.":"Incorrect passcode.","Increase UI Font Size":"Increase UI Font Size",Issued:"Issued",License:"License","License Id":"License Id","License Settings":"License Settings","License details":"License details","License expired":"License expired","License expires on {{date}}":"License expires on {{date}}","License expires":"License expires","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 has expired":"Pro license has expired","Pro license is activated":"Pro license is activated","Pro license is exprired":"Pro license is exprired","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 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","Renew License":"Renew 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!":"Thank you for testing!","Thank you for testing! 🙌":"Thank you for testing! 🙌","Thank you for testing! 🚀":"Thank you for testing! 🚀","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 <strong>{{name}}</strong> for 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 <strong>{{name}}</strong> for 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 downgrade your current version, please visit":"To downgrade your current version, please visit","To downgrade, please visit: ":"To downgrade, please visit: ","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.",Today:"Today",Tomorrow:"Tomorrow","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 and 1 year of free upgrades have expired. This app version, released on {{buildDate}}, is not covered. See License Settings for details.":"Your Pro license and 1 year of free upgrades have expired. This app version, released on {{buildDate}}, is not covered. See License Settings for details.","Your Pro license includes 1 year of free upgrades and priority support. However, this application version was released on {{buildDate}}, which occurred after your license expired on {{expiredDate}}. Unfortunately, this version is not compatible with your Pro license. If you wish to continue accessing all available Pro features with your current license, you will need to downgrade the application to the last compatible version released before your license expired. Thank you for using PasteBar! 🙌":"Your Pro license includes 1 year of free upgrades and priority support. However, this application version was released on {{buildDate}}, which occurred after your license expired on {{expiredDate}}. Unfortunately, this version is not compatible with your Pro license. If you wish to continue accessing all available Pro features with your current license, you will need to downgrade the application to the last compatible version released before your license expired. Thank you for using PasteBar! 🙌","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","{{licenseExpiredDaysAgo}} days ago":"{{licenseExpiredDaysAgo}} days ago","{{licenseIssuedDaysAgo}} days ago":"{{licenseIssuedDaysAgo}} days ago"},updater:{"Check for Update":"Check for Update","Checking for Update...":"Checking for Update...","Confirm Restart":"Confirm Restart","Confirm Update":"Confirm Update","Download and Install":"Download and Install","Install Update":"Install Update","Installing Update...":"Installing Update...","Installing...":"Installing...","No Update Available":"No Update Available","Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.":"Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.","Release date {{date}}":"Release date {{date}}","Remind Me Later":"Remind Me Later",Restart:"Restart","Restart Required":"Restart Required","Restart to Finish":"Restart to Finish","Skip This Version":"Skip This Version","Update Available":"Update Available","Update Error":"Update Error","Update Install Error":"Update Install Error","Upgrade removes Pro features":"Upgrade removes Pro features","Version {{newVersion}} is available":"Version {{newVersion}} is available","View Changes":"View Changes"}},tne={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"}},rne={calendar:{Day:"День",Days:"Дни",Month:"Месяц",Months:"Месяцы",Week:"Неделя",Weeks:"Недели",Year:"Год",Years:"Годы","and older":"и старше"},collections:{"Add Collection":"Добавить коллекцию","Add a description for your collection":"Добавьте описание для вашей коллекции","Add default menu, tab and board":"Добавить меню, вкладку и доску по умолчанию","Are you sure you want to delete this collection?":"Вы уверены, что хотите удалить эту коллекцию?","Collection Options":"Параметры коллекции","Collection Title":"Название коллекции",Collections:"Коллекции","Current Collection":"Текущая коллекция","Delete 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.":"Удаление коллекции приведет к ее полному удалению. Вы также можете удалить все элементы меню и клипов в коллекции, отметив флажок ниже.",Description:"Описание","Display full name of selected collection on the navigation bar":"Отображать полное название выбранной коллекции на панели навигации","Enter collection title":"Введите название коллекции","Manage Collections":"Управление коллекциями","Show collection name on the navbar":"Показывать название коллекции на панели навигации","Switch collections":"Переключить коллекции","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.":"Вам нужно выбрать другую коллекцию перед удалением текущей."},common:{" 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":"О PasteBar","About PasteBar Pro":"О PasteBar Pro","Action Menu":"Контекстное меню","Add Clip":"Добавить Клип","Add First Option":"Добавить первый вариант","Add License":"Добавить лицензию","Add Link Card":"Добавить карточку ссылки","Add Menu":"Добавить Меню","Add Option":"Добавить вариант","Add PasteBar to Accessibility":"Добавить PasteBar в Специальные возможности","Add to":"Добавить в","Add to Clips":"Добавить в Клипы","Add to Clips or Menu":"Добавить в Клипы или Меню","Add to Menu":"Добавить в Меню","Add to clip or menu":"Добавить в клипы или меню","Add to template fields":"Добавить в поля шаблона","Add {{Clipboard}} field to template. This allows you to copy text to the clipboard, and it will be inserted into the template":"Добавьте поле <b>{{Clipboard}}</b> в шаблон. Это позволит копировать текст в буфер обмена, и он будет вставлен в шаблон","Allow PasteBar to Copy and Paste from Clipboard":"Разрешить PasteBar копировать и вставлять из буфера обмена","Are you sure you want to delete?":"Вы уверены, что хотите удалить?","Are you sure?":"Вы уверены?",Back:"Назад","Build on {{buildDate}}":"Сборка от {{buildDate}}",Cancel:"Отмена","Cancel Reset":"Отменить сброс",Check:"Проверить","Check / Done":"Проверить / Готово","Check and Close":"Проверить и закрыть","Check and Done":"Проверить и готово","Clear found results and filters":"Очистить найденные результаты и фильтры","Click to Confirm":"Нажмите подтвердить",Clip:"Клип",Clipboard:"Буфер обмена","Clipboard History":"История буфера","Clipboard History Settings":"Настройки Истории Буфера",Close:"Закрыть","Close Edit":"Закрыть редактирование","Close Find":"Закрыть поиск","Close Large View Edit":"Закрыть редактирование",Confirm:"Подтвердить","Confirm Delete":"Подтвердить удаление","Confirm Email":"Подтвердить удаление","Confirm Passcode":"Подтвердите код","Confirm Password":"Подтвердите пароль","Confirm Remove":"Подтвердить удаление","Confirm Your Passcode":"Подтвердите ваш код доступа","Confirm action":"Подтвердить действие","Confirm license remove":"Подтвердить удаление лицензии","Confirm password reset":"Подтвердить сброс пароля","Confirm password reset action":"Подтвердить действие сброса пароля","Confirm remove license":"Подтвердить удаление лицензии","Confirm your action":"Подтвердите ваше действие","Confirm {{action}}":"Подтвердить {{action}}",Copied:"Скопировано",Copy:"Копировать","Copy & Paste":"Копировать и вставить","Copy and Paste":"Копировать и вставить","Copy of":"Копия","Copy to Clipboard":"Копировать в буфер обмена",Create:"Создать",Created:"Создано","Delay Next":"Задержка следующего",Delete:"Удалить","Deselect All":"Снять выделение","Deselect pinned":"Снять выделение закрепленных","Digits Only Passcode":"Код только цифры",Disabled:"Отключено",Done:"Готово","Done Adding":"Завершить добавление","Done Edit":"Завершить редактирование","Done Reorder":"Завершить изменение порядка",Drag:"Перетащить","Drag to Move":"Перетащите для перемещения","Drop To Add":"Перетащите для добавления","Drop Zone":"Зона перетаскивания",Edit:"Редактировать","Edit Label":"Редактировать название","Edit name":"Редактировать имя",Emoji:"Эмоджи",Empty:"Пустой","Empty Select":"Пустой выбор","Enable / Disable":"Включить / Отключить","Enable PasteBar in Accessibility Settings":"Включить PasteBar в настройках специальных возможностей",Enabled:"Включено","Enter Current Passcode":"Введите текущий код доступа","Enter Digits Only Passcode":"Введите код доступа, состоящий только из цифр","Enter Email":"Введите email","Enter Passcode":"Введите код доступа","Enter Password":"Введите пароль","Enter Recovery Password":"Введите пароль восстановления","Enter passcode or password to unlock":"Введите код доступа или пароль для разблокировки","Expires on {{licenseExpInDays}}":"Истекает через {{licenseExpInDays}}","Expires on {{proExpiresOn}}":"Истекает {{proExpiresOn}}","Field is not found in the template":"Поле не найдено в шаблоне","Field {{Clipboard}} has been found in the template. This allows you to copy text to the clipboard, and it will be inserted into the template":"Поле <b>{{Clipboard}}</b> найдено в шаблоне. Это позволяет копировать текст в буфер обмена, и он будет вставлен в шаблон","Find Clip":"Найти клип","Find History":"Найти в истории","Found in template but missing from fields definition":"Найдено в шаблоне, но отсутствует в определении полей","Got it":"Понятно","Hide Muli Select":"Скрыть множественный выбор","Hide Pinned Board":"Скрыть закрепленную доску",Image:"Изображение","Image Scale {{ImageScale}}x":"Масштаб изображения {{ImageScale}}x","Image size":"Размер изображения","Image size in pixels":"Размер изображения в пикселях","In Large View":"В увеличенном виде",Inactive:"Неактивно","Large View":"Увеличенный вид","Large View Edit":"Редактирование в увеличенном виде",Later:"Позже","License Expired":"Лицензия истекла",Light:"Светлый","Lines Wrap":"Перенос строк","Make Active":"Сделать активным","Make Disabled":"Сделать отключенными","Make Enabled":"Сделать включенным","Make Inactive":"Сделать неактивным",Manage:"Управление","Move Down":"Переместить вниз","Move Up":"Переместить вверх","Multi Select":"Множественный выбор","Next Delay":"Следующая задержка",No:"Нет","No Wrap":"Без переноса","Not found in the template":"Не найдено в шаблоне","Nothing found":"Ничего не найдено","Number of lines":"Количество строк","Ok, but later":"Хорошо, но позже",Open:"Открыть","Open Accessibility":"Открыть Специальные возможности","Open Window":"Открыть окно",Options:"Параметры",Password:"Пароль","Paste Delay":"Задержка вставки","Paste Menu":"Меню вставки","Paste in {{pastingCountDown}}...":"Вставка через {{pastingCountDown}}...",PasteBar:"PasteBar","PasteBar Pro":"PasteBar Pro","PasteBar application now can access the clipboard and perform copy and paste operations across applications.":"Приложение PasteBar теперь имеет доступ к буферу обмена и может выполнять операции копирования и вставки между приложениями.","PasteBar was successfuly added to Accessibility settings":"PasteBar был успешно добавлен в настройки Специальных возможностей",Pasted:"Вставлено",Path:"Путь","Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.":"Ошибка проверки: PasteBar не был успешно добавлен в настройки Специальных возможностей. Пожалуйста, предоставьте необходимые разрешения и нажмите «Готово» еще раз.","Pin Selected":"Закрепить выбранное",Pinned:"Закреплённый",Pinned_few:"Закреплённых",Pinned_many:"Закреплённых",Pinned_one:"Закреплённый",Pinned_two:"Закреплённых",Pinned_zero:"Закреплённых","Please add PasteBar to the list of apps in":"Пожалуйста, добавьте PasteBar в список приложений в","Please confirm your action!":"Пожалуйста, подтвердите свое действие!",Press:"Нажать","Press ESC key to close":"Нажмите клавишу ESC для закрытия",Pro:"Pro",Quit:"Выйти","Rebuild Menu":"Перестроить меню","Recent History":"Недавняя история","Recovery Password":"Пароль восстановления","Register License":"Регистрация лицензии",Remove:"Удалить","Remove License":"Удалить лицензию","Remove Link Card":"Удалить карточку ссылки","Remove Selected Star":"Удалить из избранных","Remove all fields from template":"Удалить все поля из шаблона","Remove from template":"Удалить из шаблона",Rename:"Переименовать",Renew:"Продлить","Renew License":"Продлить лицензию","Reorder pinned":"Изменить порядок закрепленных",Reset:"Сбросить","Reset Passcode":"Сбросить код доступа","Reset Password":"Сбросить пароль","Reset with Passcode":"Сбросить с помощью кода доступа","Reverse Order":"Обратный порядок","Run and Copy Response":"Запустить и скопировать ответ","Run and Paste Response":"Запустить и вставить ответ",Running:"Выполняется",Save:"Сохранить","Save It!":"Сохранить так!",Saved:"Сохранено","Scroll to Top":"Прокрутить вверх",Second:"Секунда",Seconds:"Секунды",Select:"Выбрать","Select Default Option":"Выбрать вариант по умолчанию","Select Language":"Выбрать язык","Select default":"Выбрать по умолчанию","Select is empty":"Выбор пуст","Select option":"Выбрать вариант","Select pinned":"Выбрать закрепленное","Sequence Copy":"Последовательное копирование","Sequence Copy Paste":"Последовательное копирование и вставка","Sequence Delay Next":"Последовательная задержка следующего","Sequence Next Delay":"Последовательная следующая задержка","Sequence Paste":"Последовательная вставка","Sequence Reverse Order":"Последовательный обратный порядок",Set:"Установить","Set Password":"Установить пароль","Show Large View":"Увеличенный вид","Show all":"Показать все",Star:"Избранное","Star Selected":"Добавить в избранное","Success!":"Готово!","Swap Panels Layout":"Поменять панели местами","System Settings -> Privacy & Security -> Accessibility":"Системные настройки -> Конфиденциальность и безопасность -> Специальные возможности",Tab:"Tab","Thank you for using Pro":"Спасибо, что выбрали Pro","This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.":"Это разрешение гарантирует, что PasteBar сможет получить доступ к буферу обмена и выполнять операции копирования и вставки между приложениями.","Too long":"Слишком длинный","Too short":"Слишком короткий",Toolbar:{"Blank Text Formatting":"Форматирование пустого текста","Bold Formatting":"Полужирное форматирование","Bold Text Formatting":"Форматирование полужирного текста","Copy and Paste Formatting":"Форматирование копирования и вставки","Header Formatting":"Форматирование заголовка","Hightlight Text Formatting":"Форматирование выделенного текста","Italic Formatting":"Курсивное форматирование","Masked Text Formatting":"Форматирование маскированного текста","Remove Text Formatting":"Удалить форматирование текста"},Type:{App:"Приложение","Auto Fill":"Автозаполнение",AutoFill:"AutoFill",Clip:"Клип",Code:"Код","Code Snippet":"Фрагмент кода",Command:"Команда",Email:"Email",Emoji:"Эмоджи",Empty:"Пустой",Error:"Ошибка","File, Path or App":"Файл, путь или приложение","Form Auto Fill":"Автозаполнение формы",Image:"Изображение",Label:"Название",Link:"Ссылка","Link or Email":"Ссылка или email",Menu:"Меню",Path:"Путь","Plain Text":"Простой текст",Request:"Запрос","Run Auto Fill":"Запустить автозаполнение",Scraper:"Скрапер",Secret:"Секрет","Shell Command":"Команда оболочки",Template:"Шаблон","Template Fill":"Заполнение шаблона",Text:"Текст",Video:"Видео","Web Request (HTTP)":"Веб-запрос (HTTP)","Web Scraper / Parser":"Веб-скрапер / парсер"},TypeMenu:{"Clip Type":"Тип клипа","Code Snippet":"Фрагмент кода","File, Path or App":"Файл, путь или приложение","Form Auto Fill":"Автозаполнение формы",Image:"Изображение","Link or Email":"Ссылка или email","Link or File, Path or App":"Ссылка или файл, путь или приложение","Plain Text":"Простой текст","Run, Execute":"Запуск, выполнение","Select Language":"Выбрать язык","Shell Command":"Команда оболочки",Template:"Шаблон","Template Fill":"Заполнение шаблона","Text Template":"Текстовый шаблон","Web Request (HTTP)":"Веб-запрос (HTTP)","Web Scraper / Parser":"Веб-скрапер / парсер"},"UnPin All":"Открепить все","UnPin Selected":"Открепить выбранное","Unlock Application Screen":"Разблокировать экран приложения","Unlock Pro features":"Разблокировать функции Pro","Unlock Screen":"Разблокировать экран","Unlock all features":"Разблокировать все функции","Unsaved label":"Несохраненное название","Update history list":"Обновить список истории",Updated:"Обновлено","Upgrade to Pro":"Перейти на Pro","Use Passcode":"Использовать код доступа","Use Password":"Использовать пароль","Using {{Clipboard}} field, allows you to copy text to the clipboard, and it will be inserted into the template":"Использование поля <b>{{Clipboard}}</b> позволяет копировать текст в буфер обмена, и он будет вставлен в шаблон",Verify:"Проверить","Verify Current Password":"Проверить текущий пароль","Verify Recovery Password":"Проверить пароль восстановления",Views:{"Paste Menu":"Меню вставки"},Yes:"Да",chars:"символов",found:"найдено",lines:"строк","menu items in":"элементов меню в",minutes:"минуты",second:"секунда",seconds:"секунды","show less":"показать меньше","Подтвердить license remove":"Подтвердить license remove","Подтвердить сброс кода доступа":"Подтвердить сброс кода доступа","Подтвердить удалить лицензию":"Подтвердить удалить лицензию"},contextMenus:{Activate:"Активировать","Add Board":"Добавить доску","Add Clip":"Добавить клип","Add First Tab":"Добавить первую вкладку","Add Item":"Добавить элемент","Add Link Card":"Добавить карточку ссылки","Add New":"Добавить новое","Add New After":"Добавить новое после","Add New Item":"Добавить новый элемент","Add Tab":"Добавить вкладку","Add to":"Добавить в","Add to Menu":"Добавить в меню",AddTo:{"Clip on Board":"Клипы","Paste Menu":"Меню"},"Board Icon":"Иконка доски","Clip Icon":"Иконка клипа","Close Edit":"Закрыть редактирование","Close Large":"Закрыть большое","Close Large View":"Закрыть большой вид","Copy & Paste":"Копировать и вставить","Copy To":"Копировать в",CopyTo:{Board:"Доска",Tab:"Вкладка"},"Custom Icon":"Пользовательская иконка",Dashboard:"Панель управления","Delete Board":"Удалить доску","Delete Clip":"Удалить клип",Deselect:"Снять выделение","Detected Language":"Обнаруженный язык",Duplicate:"Дублировать","Edit Board":"Редактировать доску","Edit Clip":"Редактировать клип","Edit Label":"Редактировать название","Edit Tabs":"Редактировать вкладки","Edit Value":"Редактировать значение",Hide:"Скрыть","Hide Details":"Скрыть детали","Hide Subtitle":"Скрыть подзаголовок","Icon Visibility":"Видимость иконки","Large View":"Увеличенный вид","Link To Clip":"Ссылка на клип","Locate Clip":"Найти клип","Locate Menu":"Найти меню","Make Disabled":"Сделать отключенным","Make Enabled":"Сделать включенными","Make Inactive":"Сделать неактивными",Manage:"Управлять","Mask Secret":"Маскировать секрет",Menu:"Меню","Menu is Not Active":"Меню неактивно","Move Board To":"Переместить в","Move To":"Переместить в",MoveTo:{Board:"Доска",Tab:"Вкладка"},"Open Link in Browser":"Открыть ссылку в браузере",Organize:"Расположить","Organize Layout":"Настройка расположения","Paste Delay":"Задержка вставки","Paste Menu":"Меню вставки",Pin:"Закрепить",RESET:"СБРОС","Remove Link Card":"Удалить карточку ссылки","Remove Star":"Удалить из избранных","Save as Image File":"Сохранить как файл изображения","Save as Text File":"Сохранить как текстовый файл",Select:"Выбрать","Select Icon":"Выбрать иконку",Separator:"Разделитель",Show:"Показать","Show Details":"Показать детали","Show Large View":"Увеличенный вид","Show Subtitle":"Показать подзаголовок",Star:"Избранное",Submenu:"Подменю",UnPin:"Открепить","UnPin Clip":"Открепить клип","Unmask Secret":"Снять макрировку секрета","not a code":"не код"},dashboard:{"API Key":"API ключ",Add:"Добавить","Add Auth":"Добавить авторизацию","Add Clipboard Value":"Добавить значение буфера обмена","Add Custom":"Добавить пользовательское","Add Custom Field":"Добавить пользовательское поле","Add Delay Time":"Добавить время задержки","Add First Board":"Добавить первую доску","Add Form Field":"Добавить поле формы","Add Header":"Добавить заголовок","Add Key Press":"Добавить нажатие клавиши","Add Link Card":"Добавить карточку ссылки","Add Open URL":"Добавить открытие URL","Add Output Template":"Добавить шаблон вывода","Add Regex Match Group Filter":"Добавить фильтр группы соответствия регулярному выражению","Add Request Header":"Добавить заголовок запроса","Add Response Filter":"Добавить фильтр ответа","Add Scraping Rule":"Добавить правило скрапинга","Add Section":"Добавить раздел","Add Tab":"Добавить вкладку","Add Template Field":"Добавить поле шаблона","Add a Tab":"Добавить вкладку","Add field <b>{{<b>{{name}}</b>}}</b> into the template":"Добавить поле <b>{{<b>{{name}}</b>}}</b> в шаблон","Add field <b>{{<b>{{name}}</b>}}</b> into the template":"Добавить поле <b>{{<b>{{name}}</b>}}</b> в шаблон","Add image":"Добавить изображение","Add note":"Добавить заметку","Add to Board":"Добавить на доску","Add {{type}}":"Добавить {{type}}","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?":"Вы уверены, что хотите удалить доску <strong>{{boardName}}</strong>?","Are you sure you want to delete <strong>{{tabName}}</strong> tab?":"Вы уверены, что хотите удалить вкладку <strong>{{tabName}}</strong> ?","Are you sure you want to delete?":"Вы уверены, что хотите удалить?","Are you sure you want to remove image from the clip?":"Вы уверены, что хотите удалить изображение из клипа?","Auto update is Off":"Автоматическое обновление выключено",Auth:"Aвторизация","Basic Auth":"Базовая авторизация","Basic Password":"Базовый пароль","Basic Username":"Базовое имя пользователя","Bearer Token":"Токен доступа","Board Layout Height":"Высота макета доски","Board Layout Split":"Разделение макета доски","Board Menu":"Меню доски","Board is Not Empty":"Доска не пуста",Boards:"Доски","Border Width":"Размер границы","CSS Selector":"CSS-селектор",Cancel:"Отмена","Change Layout":"Изменить макет","Change color":"Изменить цвет",Clear:"Очистить","Clear All Fields":"Очистить все поля","Click To Add":"Нажмите, чтобы добавить","Clip Menu":"Меню клипа","Clip Options":"Параметры клипа",Clipboard:"Буфер обмена",Clips:{App:"Приложение","Clip Menu":"Меню клипа",Clips:"Клипы",Link:"Ссылка"},"Close Edit":"Закрыть редактирование",Command:{error:"ошибка",output:"вывод"},"Command error":"Ошибка команды","Common Fields":"Общие поля","Confirm Clear All Fields":"Подтвердите очистку всех полей","Confirm to remove Auth":"Подтвердить удаление авторизации","Confirm to remove filters":"Подтвердить удаление фильтров","Confirm to remove headers":"Подтвердить удаление заголовков","Copy Clip":"Копировать клип","Create Board":"Создать доску","Create Tab":"Создать вкладку","Create tab":"Создать вкладку",Dashboard:"Панель управления","Panel for moved or copied items from other tabs":"Панель для перемещённых или скопированных элементов из других вкладок.",Delay:"Задержка","Delete Board":"Удалить доску","Delete Clip":"Удалить клип","Delete Tab":"Удалить вкладку","Delete board":"Удалить доску","Delete field":"Удалить поле","Delete tab":"Удалить вкладку","Detect Template Fields":"Обнаружить поля шаблона","Detect for Template Fields":"Обнаружить поля шаблона","Disabled field <b>{{<b>{{name}}</b>}}</b> has been found in the template":"Отключенное поле <b>{{<b>{{name}}</b>}}</b> найдено в шаблоне","Done Create Clip":"Завершить создание клипа","Done Edit":"Завершить редактирование","Done Edit Tabs":"Завершить редактирование вкладок","Done Organize":"Завершение настройки","Drag & Drop Path":"Перетащите путь","Drop To Add":"Перетащите, чтобы добавить","Drop image file here, or use a separate window for drag and drop.":"Перетащите файл изображения сюда или используйте отдельное окно для перетаскивания.","Drop to Pin":"Перетащите, чтобы закрепить","Edit Note":"Редактировать заметку","Edit Template":"Редактировать шаблон","Edit name":"Редактировать имя","Edit subtitle":"Редактировать подзаголовок","Edit tab name":"Редактировать название вкладки","Enable / Disable":"Включить / Отключить","Enable / Disable URL Open":"Включить / Отключить открытие URL","Enter Label":"Введите метку","Enter URL":"Введите URL","Enter board subtitle or description":"Введите подзаголовок или описание доски","Enter board title":"Введите название доски","Enter clip name":"Введите название клипа","Enter clip note":"Введите заметку к клипу","Enter code":"Введите код","Enter credit card number":"Введите номер кредитной карты","Enter default value":"Введите значение по умолчанию","Enter field value":"Введите значение поля","Enter full path to file, folder or application":"Введите полный путь к файлу, папке или приложению","Enter regex for output filer":"Введите регулярное выражение для фильтра вывода","Enter request url":"Введите URL запроса","Enter secret value":"Введите секретное значение","Enter section label":"Введите метку раздела","Enter select option":"Введите вариант выбора","Enter tab name":"Введите название вкладки","Enter template or drag from history":"Введите шаблон или перетащите из истории","Enter template value":"Введите значение шаблона","Enter value or drag from history":"Введите значение или перетащите из истории","Enter web link or email":"Введите веб-ссылку или адрес электронной почты",Errors:{"No fields found in the template.":"В шаблоне не найдено полей.","Please fix output template 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 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.":"Проверьте путь на наличие ошибок или подтвердите сохранение как есть.","Your command 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":"Точечный путь","JSON Path":"JSON путь",RegEx:"Регулярное выражение","RegEx Replace":"Замена регулярного выражения","Remove Quotes":"Удалить кавычки"},Field:"Поле","Field <b>{{<b>{{name}}</b>}}</b> has been found in the template":"Поле <b>{{<b>{{name}}<b>{{<b> найдено в шаблоне","Field Options":"Параметры поля","Fields Value":"Значение полей","File, folder or app path does not exist":"Путь к файлу, папке или приложению не существует","File, folder or app path is valid":"Путь к файлу, папке или приложению действителен","File, folder or app path might not be valid":"Путь к файлу, папке или приложению может быть недействительным","Fill Template":"Заполнить шаблон","Filter Type":"Тип фильтра","Filter's Value":"Значение фильтра","Find in Clip":"Найти в клипе","Find in clip":"Найти в клипе","Find in history":"Найти в истории","Form Fields":"Поля формы","General Fields":"Общие поля",HTML:"HTML",Headers:"Заголовки","Hide Label":"Скрыть метку","History capture is off":"Запись истории выключена","Key Press":"Нажатие клавиши","Key Press After":"Нажатие клавиши после","Label Left":"Метка слева","Label Top":"Метка сверху","Label on Left":"Метка слева",Labels:"Поля","Last run":"Последний запуск","Last update":"Последнее обновление","Layout Max Width":"Максимальная ширина макета","Mask to hide clipboard value in preview":"Маска для скрытия значения буфера обмена в предпросмотре","Move Clip":"Переместить клип","Moved Clips Panel":"Панель перемещённых клипов",Name:"Имя","New Board":"Новая доска","New Clip":"Новый клип","No Boards":"Нет досок","No Clipboard History":"Нет истории буфера обмена","No Tabs or Boards":"Нет вкладок или досок","Number of columns":"Количество столбцов",Open:"Открыть","Open URL Disable / Enable":"Открыть URL Отключить / Включить","Output Template":"Шаблон вывода","Please confirm to save as is.":"Пожалуйста, подтвердите сохранение как есть.",Press:"Нажать",RETURN_POSITION_TYPES:{"First Only":"Только первый","Last Only":"Только последний"},RULES_TYPES:{"CSS Selector":"CSS-селектор","RegEx Find":"Поиск регулярного выражения","RegEx Group Match":"Соответствие группы регулярного выражения","RegEx Match":"Соответствие регулярного выражения","RegEx Replace":"Замена регулярного выражения"},"RegEx Find":"Поиск регулярного выражения","RegEx Match":"Соответствие регулярного выражения","RegEx Match Group":"Группа соответствия регулярного выражения","RegEx Replace":"Замена регулярного выражения","Regex Match Group Filter":"Фильтр группы соответствия регулярному выражению","Remove Open URL":"Удалить открытие URL","Remove image":"Удалить изображение","Remove headers":"Удалить заголовки","Reset to Defaults":"Сбросить до значений по умолчанию","Response Filters":"Фильтры ответа",Result:"Результат",SEPARATOR_TYPES:{"Comma (,)":"Запятая (,)","New Line (\\n)":"Новая строка (\\n)","Pipe (|)":"Вертикальная черта (|)","Semicolon (;)":"Точка с запятой (;)","Space (' ')":"Пробел (' ')","Tab (\\t)":"Табуляция (\\t)"},"Save as Defaults":"Сохранить как значения по умолчанию","Scan for Template Fields":"Сканировать поля шаблона","Select Color":"Выбрать цвет","Select Default Option":"Выбрать вариант по умолчанию","Select Option":"Выбрать вариант","Select Options":"Выбрать варианты","Show Label":"Показать метку","Special Field":"Специальное поле",Subtitle:"Подзаголовок",Tab:"Вкладка","Tab is Not Empty":"Вкладка не пуста","Tabs Menu":"Меню вкладок",Template:"Шаблон","Template Edit":"Редактирование шаблона","Template Fields":"Поля шаблона","Template should have⠀<b>{{output}}</b>⠀placeholder.":"Шаблон должен содержать заполнитель⠀<b>{{output}}</b>⠀.","Test Request":"Тестовый запрос","Test Run":"Тестовый запуск",Text:"Текст","This action cannot be undone.":"Это действие необратимо.","This field allows to insert text from clipboard":"Это поле позволяет вставлять текст из буфера обмена","Too long":"Слишком длинный","Too short":"Слишком короткий","Turn On auto update":"Включить автоматическое обновление","Turn on history capture":"Включить запись истории",Type:{Command:"Команда",Request:"Запрос",Scraper:"Скрапер"},URL:"URL","Unsaved subtitle":"Несохраненный подзаголовок","Unsaved title":"Несохраненное название","Update Link Card":"Обновить карточку ссылки","Use double curly brackets for {{field name}}. Use {{clipboard}} to add current clipboard value.":"Используйте двойные фигурные скобки для {{field name}}. Используйте {{clipboard}} для добавления текущего значения буфера обмена.",Values:"Значения",Value:"Значение","Vertical Split":"Вертикальное разделение","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 or Email link is valid":"Веб-ссылка или адрес электронной почты действительны","Website URL":"URL веб-сайта","Website URL is valid":"URL веб-сайта действителен","Website URL might not be valid":"URL веб-сайта может быть недействительным","Wrap output using {{output}} placeholder":"Обернуть вывод с помощью заполнителя {{output}}","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 tab of all boards before it can be deleted.":"Вам нужно очистить эту вкладку от всех досок, прежде чем ее можно будет удалить.","filled template":"заполненный шаблон","new clips":"новые клипы",template:"шаблон","{{count}} fields found in template but missing from fields definition._one":"{{count}} поле найдено в шаблоне, но отсутствует в определении полей.","{{count}} fields found in template but missing from fields definition._other":"{{count}} полей найдено в шаблоне, но отсутствуют в определении полей.","{{count}} fields not found in the template._one":"{{count}} поле не найдено в шаблоне.","{{count}} fields not found in the template._other":"{{count}} полей не найдено в шаблоне.","{{type}} Field":"Поле {{type}}","{{type}} field":"поле {{type}}"},history:{"All History Settings":"Все настройки истории буфера","All done! History's been cleared.":"Готово! История очищена.","Auto Update on Capture":"Автоматическое обновление при захвате","Auto-Clear Settings":"Настройки автоматической очистки","Capture History":"Захват истории",Clear:"Очистить","Clear All":"Очистить все","Clear All History":"Очистить всю историю","Clear History":"Очистить историю","Confirm Clear All History":"Подтвердить очистку всей истории","Do you really want to remove ALL clipboard history items?":"Вы действительно хотите удалить ВСЕ элементы истории буфера обмена?","Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}":"Вы хотите удалить элементы истории буфера обмена старше {{olderThen}} {{durationType}}","Enable Capture History":"Включить захват истории",Filters:{"Clear Filters":"Очистить фильтры",Code:"Код",Emoji:"Эмоджи",Image:"Изображение","Language Filters":"Фильтры языков",Languages:"Языки","Languages Filter":"Фильтр языков","Languages Filters":"Фильтры языков",Link:"Ссылка",Pinned:"Закрепленные",Secret:"Секретные","Select Filters":"Выбрать фильтры",Starred:"Избранные",Text:"Текст",Video:"Видео"},"Hide pinned history":"Скрыть закрепленную историю","History Settings":"Настройки истории","Paste Menu":"Меню Вставки","Select Filters":"Выбрать фильтры","View pinned history":"Просмотреть закрепленную историю","{{isAll}} Clipboard History":"{{isAll}} История буфера обмена"},menus:{"Add First Item":"Добавить первый элемент","Add Item":"Добавить элемент","Add item":"Добавить элемент","Close Edit":"Закрыть редактирование","Create Menu":"Создать меню","Delete Menu":"Удалить меню","Disabled Item":"Неактивный элемент","Disabled Menu":"Неактивное меню","Drag items to reorder, double click to rename":"Перетащите элементы для изменения порядка, дважды щелкните для переименования","Enter menu label":"Введите метку меню","Find in menu":"Найти в меню","Link to Clip":"Ссылка на клип",Menu:"Меню","Menu Item":"Элемент меню","Menu Options":"Параметры меню","Menu Type":"Тип меню","Menu is a link to a clip":"Меню является ссылкой на клип","Menu is link to a clip and cannot be renamed. Please rename its linked clip.":"Меню является ссылкой на клип и не может быть переименовано. Пожалуйста, переименуйте связанный с ним клип.",Menus:"Меню","New Menu":"Новое меню","No Menu Items":"Нет элементов меню","No {{hasActive}} menu items in":"Нет {{hasActive}} элементов меню в","Select item to add a menu after":"Выберите элемент, после которого нужно добавить меню",Separator:"Разделитель",Submenu:"Подменю","Toggle inactive menu items":"Переключить неактивные элементы меню",active:"активные","menu items in":"элементы меню в"},navbar:{"Close Main Window":"Закрыть окно","Color Theme":"Цветовая тема",GlobalSearch:{"Auto Close on Copy & Paste":"Автоматически закрывать при копировании и вставке","Excludes clip or menu values":"Исключает значения клипов или меню","Nothing found in boards.":"Ничего не найдено на досках.","Nothing found in clips, boards or menus.":"Ничего не найдено в клипах, досках или меню.","Nothing found in clips.":"Ничего не найдено в клипах.","Nothing found in menus.":"Ничего не найдено в меню.","Press / key to search":"Нажмите клавишу / для поиска",Search:"Поиск","Search Name or Label Only":"Искать только по имени или метке","Search Options":"Параметры поиска","Type what you looking for":"Введите, что вы ищете"},Language:"Язык","Lock App Screen":"Заблокировать экран",Options:"Настройки","Show Collections Name":"Показывать название коллекции","Swap Panels Layout":"Поменять панели местами",Theme:{Dark:"Темная",Light:"Светлая",System:"Системная"},View:"Вид",Window:{"Close Window":"Закрыть окно","Maximize Window":"Развернуть окно","Minimize Window":"Свернуть окно"}},pinned:{"Hide Pinned":"Скрыть закрепленные",Pin:"Закрепить","Show Pinned":"Показать закрепленные"},settings:{"<strong>Your beta license has expired</strong>. If you wish to gain access to priority support and all features, please consider upgrade your license to Pro.":"<strong>Ваша beta лицензия истекла</strong>. Если вы хотите получить доступ к приоритетной поддержке и всем функциям, пожалуйста, рассмотрите возможность обновления лицензии до Pro.","<strong>{{screenLockPassCodeLength}}</strong> digits passcode is set.":"Установлен <strong>{{screenLockPassCodeLength}}</strong>-значный код доступа.","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.":"Добавляйте в избранное, когда копируете его дважды в течение 1 секунды. Это позволяет быстро добавлять скопированный текст или ссылки в избранное и легко находить их в истории буфера обмена.","Add an unlimited number of tabs within each collection for better organization and easy access.":"Добавляйте неограниченное количество вкладок в каждую коллекцию для лучшей организации и легкого доступа.","Advanced settings":"Дополнительные настройки","Application Auto Start":"Автозапуск приложения","Application Color Theme":"Цветовая тема приложения","Application License":"Лицензия приложения","Application UI Color Theme":"Цветовая тема интерфейса приложения","Application UI Fonts Scale":"Масштаб шрифтов интерфейса приложения","Application UI Language":"Язык интерфейса приложения","Auto Disable History Capture when Screen Unlocked":"Автоматически отключать захват истории при разблокировке экрана","Auto Lock Screen on User Inactivity":"Автоматическая блокировка экрана при бездействии пользователя","Auto Lock the Screen on User Inactivity":"Автоматическая блокировка экрана при бездействии пользователя","Auto Masking Words List":"Список слов для автоматического маскирования","Auto update on capture":"Автоматическое обновление при захвате","Auto-Clear Settings":"Настройки автоочистки","Auto-Preview Link on Hover":"Автоматический предварительный просмотр ссылки при наведении","Auto-Star on Double Copy":"Автоматическое добавление в избранное при двойном копировании","Auto-Update on Capture":"Автоматическое обновление при захвате","Auto-delete clipboard history after":"Автоматическое удаление истории буфера обмена после",Back:"Назад","By upgrading to <strong>PasteBar Pro</strong>, you'll gain access to:":"Pro версия предоставит вам доступ к дополнительным функциям:","Capture History":"Захват истории буфера","Change the application UI font size scale":"Изменить масштаб размера шрифта интерфейса приложения","Change the application UI language":"Изменить язык интерфейса приложения","Change the application user interface color theme":"Изменить цветовую тему интерфейса приложения","Change the application user interface font size scale":"Изменить масштаб размера шрифта интерфейса приложения","Change the application user interface language":"Изменить язык интерфейса приложения","Clipboard History Settings":"Настройки истории буфера","Complete details:":"Полные детали:","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 an unlimited number of collections to organize your clips and menus.":"Создавайте неограниченное количество коллекций для организации ваших клипов и меню.","Custom themes":"Пользовательские темы","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 disabled collections name on the navigation bar collections menu":"Отображать названия отключенных коллекций в меню коллекций на панели навигации","Display disabled collections name on the navigation bar under collections menu":"Отображать названия отключенных коллекций в меню коллекций на панели навигации","Display full name of selected collection on the navigation bar":"Отображать полное название выбранной коллекции на панели навигации",Email:"Email","Email is not valid":"Email недействителен","Email:":"Email:","Emails do not match":"Адреса электронной почты не совпадают","Enable Auto Start":"Включить автозапуск","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 update on capture":"Включить автоматическое обновление при захвате","Enable history capture":"Включить захват истории буфера","Enable programming language detection":"Включить определение языка программирования","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.":"Повышение безопасность, автоматически блокируя экран приложения после установленного периода бездействия пользователя.","Enter Passcode length":"Введите длину кода доступа","Enter recovery password to reset passcode.":"Введите пароль восстановления для сброса кода доступа.","Enter your <strong>{{screenLockPassCodeLength}} digits</strong> passcode":"Введите ваш <strong>{{screenLockPassCodeLength}}-значный</strong> код доступа","Entered Passcode is invalid":"Введенный код доступа недействителен","Execute Web Requests":"Выполнять веб-запросы","Execute terminal or shell commands directly from PasteBar clip and copy the results to the clipboard.":"Выполняйте терминальные или shell-команды непосредственно из клипа PasteBar и копируйте результаты в буфер обмена.","Expires:":"Истекает:","Forgot Passcode ? Enter your recovery password to reset the passcode.":"Забыли код доступа? Введите пароль восстановления для сброса кода доступа.","Forgot passcode ?":"Забыли код доступа?","Forgot?":"Забыли?","Free License":"Бесплатная лицензия","Get priority email support from us to resolve any issues or questions you may have about PasteBar.":"Получите приоритетную поддержку по электронной почте для решения любых проблем или вопросов, которые у вас могут возникнуть в работе с PasteBar.","Hint: {{screenLockRecoveryPasswordMasked}}":"Подсказка: {{screenLockRecoveryPasswordMasked}}","However, you can continue using the current version with access to all available Pro features.":"Однако вы можете продолжать использовать текущую версию программы с доступом ко всем функциям Pro.",'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.':"Если у вас есть лицензионный ключ, вы можете добавить его здесь, чтобы разблокировать Pro-версию со всеми доступными функциями. Пожалуйста, вставьте вашу лицензию ниже.","If you wish to upgrade to the latest version, gain access to priority support and new features, please consider renewing your license.":"Если вы хотите обновиться до последней версии, получить доступ к приоритетной поддержке и новым функциям, пожалуйста, рассмотрите возможность продления вашей лицензии.","Incorrect passcode.":"Неверный код доступа.","Increase UI Font Size":"Увеличить шрифт интерфейса",Issued:"Выдана",License:"Лицензия","License Id":"Уникальный Id лицензии","License Settings":"Настройки Лицензии","License details":"Детали лицензии","License expired":"Лицензия истекла","License expires":"Лицензия истекает","License expires on {{date}}":"Лицензия истекает {{date}}","License information":"Информация о лицензии","License key":"Лицензионный ключ","License key is not valid or malformed.":"Ключ лицензии недействителен или неверно сформирован.","License key is too short.":"Ключ лицензии слишком короткий.","List each word or sentence on a new line.":"Каждое слово или предложение списка должно быть на новой строке.","Lock Screen Clipboard History Capture Control":"Управление захватом истории буфера обмена на экране блокировки","Lock Screen Passcode":"Код доступа экрана блокировки","Manage Collections":"Управление коллекциями","Maximum 10 digits":"Максимум 10 цифр","Maximum devices":"Максимум устройств","Minimal 4 digits":"Минимум 4 цифры","Minimum number of lines to trigger detection":"Минимальное количество строк для срабатывания определения",Name:"Имя","Open Security Settings":"Открыть настройки безопасности","Passcode digits remaining":"Осталось цифр кода доступа","Passcode is not set":"Код доступа не установлен","Passcode is not valid":"Код доступа неверный","Passcode length":"Длина кода доступа","Passcode mismatch":"Несовпадение кода","Passcode successfully verified":"Код доступа успешно проверен","Password is incorrect.":"Неверный пароль.","Password is incorrect. <br/>{{screenLockRecoveryPasswordMasked}}":"Пароль неверный. <br/>{{screenLockRecoveryPasswordMasked}}","Password is incorrect. Hint: {{screenLockRecoveryPasswordMasked}}":"Пароль неверный. Подсказка: {{screenLockRecoveryPasswordMasked}}","Password is incorrect. Masked password is: {{screenLockRecoveryPasswordMasked}}":"Пароль неверный. Замаскированный пароль: {{screenLockRecoveryPasswordMasked}}","Password is incorrect. {{screenLockRecoveryPasswordMasked}}":"Пароль неверный. {{screenLockRecoveryPasswordMasked}}","Passwords do not match":"Пароли не совпадают","Paste your license below":"Вставьте вашу лицензию ниже","Paste your license here":"Вставьте вашу лицензию здесь","Paste your license key below":"Вставьте ваш лицензионный ключ ниже","PasteBar Settings":"Настройки PasteBar","Please try again":"Пожалуйста, попробуйте еще раз","Priority support":"Приоритетная поддержка","Pro license has expired":"Лицензия Pro истекла","Pro license is activated":"Pro лицензия активирована","Programming Language Detection":"Определение языка программирования","Programming language selection":"Выбор языка программирования","Protect your data by requiring screen unlock authentication whenever the application starts.":"Защитите ваши данные, требуя аутентификацию разблокировки экрана при каждом запуске приложения.","Recovery Password for Lock Screen Passcode":"Пароль восстановления для кода доступа экрана блокировки","Recovery password is set.":"Пароль восстановления установлен.","Refresh Application UI":"Обновить интерфейс приложения","Register a License":"Регистрация лицензии","Renew License":"Продлить лицензию","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.":"Требовать разблокировку экрана при запуске приложения для повышения безопасности. Эта настройка гарантирует, что только авторизованные пользователи могут получить доступ к приложению, защищая ваши данные от несанкционированного доступа с самого начала.","Reset Font Size":"Сбросить размер шрифта","Run Terminal or Shell Commands":"Выполнять терминальные или shell-команды","Scrape and parse websites or API responses using built-in web scraping tools and copy the extracted data to the clipboard.":"Извлекайте и анализируйте веб-сайты или ответы API с помощью встроенных инструментов веб-скрейпинга и копируйте извлеченные данные в буфер обмена.",Security:"Безопасность","Security Settings":"Настройки безопасности","Send HTTP requests to web APIs or services and copy the response data to the clipboard.":"Отправляйте HTTP-запросы к веб-API или сервисам и копируйте данные ответа в буфер обмена.","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 recovery password to easily reset your lock screen passcode if forgotten. Your password will be securely stored in your device's OS storage.":"Установите пароль восстановления, чтобы легко сбросить код доступа экрана блокировки, если вы его забыли. Ваш пароль будет надежно храниться в хранилище ОС вашего устройства.",Settings:"Настройки","Show Clipboard History Capture Control on Lock Screen":"Показывать управление захватом истории буфера обмена на экране блокировки","Show Disabled Collections":"Показывать отключенные коллекции","Show collection name on the navbar":"Показывать название коллекции на панели навигации","Show disabled collections on the navbar list":"Показывать отключенные коллекции в списке на панели навигации","Skip auto start prompt on app launch":"Пропустить запрос автозапуска при запуске приложения","Stop Words List":"Список стоп-слов","Swap Panels Layout":"Поменять панели местами","Switch the layout position of panels in Clipboard History and Paste Menu views":"Переключить положение панелей в представлениях истории буфера обмена и меню вставки","Thank you again for using PasteBar.":"Спасибо Вам еще раз за использование PasteBar.","Thank you for testing! 🙌":"Thank you for testing! 🙌","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.":"Спасибо Вам за использование PasteBar! Мы надеемся, что вам нравится бесплатная версия. Если вы хотите разблокировать все функции и поддержать нашу разработку, пожалуйста, рассмотрите возможность перехода на Pro-версию.","Thank you <strong>{{name}}</strong> for using Pro license. Your license allow you to use all available features with priority support and free upgdates until the license expires.":"Спасибо <strong>{{name}}</strong> за использование лицензии Pro. Ваша лицензия позволяет вам использовать все доступные функции с приоритетной поддержкой и бесплатными обновлениями до истечения срока действия лицензии.","Thank you <strong>{{name}}</strong> for 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.":"Спасибо <strong>{{name}}</strong> за использование лицензии Pro. Ваша лицензия предоставляет вам доступ ко всем доступным функциям, приоритетной поддержке и бесплатным обновлениям до истечения срока действия лицензии. Пожалуйста, ознакомьтесь с полной информацией ниже.","To downgrade, please visit: ":"Чтобы найти предыдущие версии, посетите следующую страницу: ","To ensure the best detection accuracy, please select up to 7 languages. Limiting choices improves precision.":"Для обеспечения наилучшей точности определения, пожалуйста, выберите до 7 языков. Ограничение выбора повышает точность.",Today:"Сегодня",Tomorrow:"Завтра","Try after <strong>{{resetPassCodeNextDelay}}</strong> seconds":"Повторите через <strong>{{resetPassCodeNextDelay}}</strong> секунд","Try again after <strong>{{resetPassCodeNextDelay}}</strong> seconds":"Попробуйте снова через <strong>{{resetPassCodeNextDelay}}</strong> секунд","Unlimited Collections":"Неограниченное количество коллекций","Unlimited Tabs per Collection":"Неограниченное количество вкладок на коллекцию","Unlimited paste history":"Неограниченная история вставки","Use Password":"Использовать пароль","User Preferences":"Пользовательские настройки","Web Scraping and Parsing":"Веб-скрейпинг и анализ","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.":"У вас Beta лицензия. Обычно это временная лицензия, которая предоставляет доступ ко всем текущим и новым бета-функциям. После истечения срока действия этой лицензии у вас не будет доступа к функциям Pro, и вам потребуется использовать обычную лицензию Pro или продлить вашу Бета-лицензию.","You license is valid.":"Ваша лицензия действительна.","Your Pro license and 1 year of free upgrades have expired. This app version, released on {{buildDate}}, is not covered. See License Settings for details.":"Ваша лицензия Pro и 1 год бесплатных обновлений истекли. Эта версия приложения, выпущенная {{buildDate}}, не покрывается. Смотрите детали в настройках лицензии.","Your Pro license includes 1 year of free upgrades and priority support. However, this application version was released on {{buildDate}}, which occurred after your license expired on {{expiredDate}}. Unfortunately, this version is not compatible with your Pro license. If you wish to continue accessing all available Pro features with your current license, you will need to downgrade the application to the last compatible version released before your license expired. Thank you for using PasteBar! 🙌":"Ваша Pro лицензия включает 1 год бесплатных обновлений и приоритетную поддержку. Тем не менее, данная версия приложения была выпущена {{buildDate}}, после истечения срока вашей лицензии {{expiredDate}}. К сожалению, эта версия не совместима с вашей Pro лицензией. Если вы хотите продолжить использовать все доступные функции Pro с вашей текущей лицензией, вам необходимо перейти на более старую версию программы, выпущенную до окончания срока вашей лицензии. Благодарим за использование PasteBar! 🙌","Your license key":"Ваш лицензионный ключ","in {{licenseExpInDays}} days":"через {{licenseExpInDays}} дней","in {{licenseIssuedDaysAgo}} days":"{{licenseIssuedDaysAgo}} дней назад","license remove":"удалить лицензию","passcode reset":"сброс кода доступа","password reset":"сброс пароля","remove license":"удалить лицензию","{{licenseExpiredDaysAgo}} days ago":"{{licenseExpiredDaysAgo}} дней назад","{{licenseIssuedDaysAgo}} days ago":"{{licenseIssuedDaysAgo}} дней назад"},updater:{"Check for Update":"Проверить обновление","Checking for Update...":"Проверка обновления...","Confirm Update":"Подтвердить обновление","Confirm Restart":"Подтвердить перезапуск","Download and Install":"Загрузить и установить","Install Update":"Установить обновление","Installing Update...":"Установка обновления...","Installing...":"Установка...","No Update Available":"Нет доступных обновлений","Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.":"Лицензия Pro истекла. Обновление удалит все функции Pro. Продлите лицензию для обновлений или используйте текущую версию бессрочно.","Release date {{date}}":"Дата выпуска {{date}}","Remind Me Later":"Напомнить позже","Restart Required":"Требуется перезапуск",Restart:"Перезапуск","Restart to Finish":"Перезапуск для завершения","Skip This Version":"Пропустить эту версию","Update Available":"Доступно обновление","Update Error":"Ошибка обновления","Update Install Error":"Ошибка установки обновления","Upgrade removes Pro features":"Обновление удалит функции Pro","Version {{newVersion}} is available":"Доступна версия {{newVersion}}","View Changes":"Посмотреть изменения"}},nne={en:ene,es:tne,ru:rne};jn.extend(xee);Us.addDefaultLocale(Ere);Us.addLocale(jre);Us.addLocale(Nre);Us.addLocale(_re);Us.addLocale(Tre);Us.addLocale(Mre);const Z3=new Map,Nx={en:new Us(_O)},J9=!1,sne=_O;un.use(AI).use(Zre).init({debug:!1,resources:nne,fallbackLng:sne,detection:{order:["localStorage","cookie","navigator"],caches:["localStorage"]},supportedLngs:hE.map(e=>e.code),interpolation:{escapeValue:!1},saveMissing:J9,defaultNS:"common",keySeparator:":::",nsSeparator:!1,saveMissingTo:"current",updateMissing:J9,missingKeyHandler:(e,t,r,n)=>pe(void 0,null,function*(){console.warn("missingKeyHandler",e,t,r,n)}),react:{transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","b","i"]}},e=>pe(void 0,null,function*(){e&&console.log(e),window.__locale__=un.language}));un.on("languageChanged",function(e){return pe(this,null,function*(){window.__locale__=e,dp.getState().setUserSelectedLanguage(e),kr("change_menu_language",{language:e}),kr("build_system_menu"),Z3.clear()})});const Ou=()=>{const e=un.language==="en"?"en":un.language;return Nx[e]?Nx[e]:(Nx[un.language]=new Us(un.language),Nx[un.language])},eM=/(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff])/gm;function _t(...e){return SJ(gr(e))}const tM="•",t$=(e,t)=>{for(const r of e){if(r.id===t)return r;if(r.children){const n=t$(r.children,t);if(n)return n}}return null},r$=(e,t)=>{let r=[];for(const n of e)t.includes(n.id)&&r.push(n),n.children&&(r=[...r,...r$(n.children,t)]);return r},X3=(e,t,r=[],n)=>{var f;let a=JSON.parse(JSON.stringify(e));t!==null&&(a=((f=t$(e,t))==null?void 0:f.children)||[]);const o=a.findIndex(h=>r.includes(h.id)),i=r$(e,r);i.forEach(h=>{h.parentId=t});const c=a.filter(h=>!r.includes(h.id));let d=n;return o!==-1&&n>o&&(d-=1),c.splice(d,0,...i),c.forEach((h,p)=>{h.orderNumber=p}),c},Wc=function(){let e="",t=null,r=null;if(window.getSelection)t=window.getSelection(),e=t?t.toString():"",r=t?t.anchorNode&&t.anchorNode.parentElement:null;else if(document.selection&&document.selection.type!=="Control"){const n=document.selection.createRange();e=n.text,r=n.parentElement?n.parentElement():null}return{selection:t,text:e,selectedElement:r}};function n$(e){return eM.lastIndex=0,eM.test(e)}function wn(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 s$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ane(e){if(!e)return"";const t=e.split("@"),r=ff(t[0]),n=t[1];return"".concat(r,"@").concat(n)}function Db(e,t=1,r=1,n=0){if(!e)return"";const a="•";return e.split("\n").map(o=>o.split(/\s+/).map(i=>{const c=i.slice(0,t),d=i.slice(-r);if(i.length>t+r+n){const f=i.length-t-r,h=a.repeat(f);if(n>0&&f>n){const p="...",g=a.repeat(f-n);return"".concat(c).concat(g).concat(p).concat(d)}else return"".concat(c).concat(h).concat(d)}else return i}).join(" ")).join("\n")}function ff(e){return e?e.split("\n").map(t=>t.split(/\s+/).map(r=>{const n=r.charAt(0);if(r.length>2){const a=r.length-2,o=r.charAt(r.length-1),i=tM.repeat(a);return"".concat(n).concat(i).concat(o)}else{const a=tM.repeat(1);return"".concat(n).concat(a)}}).join(" ")).join("\n"):""}function _x(e){return e?(e=e.trim().replace(/\n+/g,"\n"),e.endsWith("\n")&&(e=e.slice(0,-1)),e):""}function Md(e,t="200",r,n=!1){const a=e||"slate",o=r||(t==="200"&&a==="slate"?"700":a!=="slate"?"900":"600"),i=n?"border":"bg";return"".concat(i,"-").concat(a,"-").concat(t," dark:").concat(i,"-").concat(a,"-").concat(o)}function Sy(e,t="200",r){return Md(e,t,e==="slate"&&r==="700"?"600":r,!0)}const Ab=(e,t)=>pe(void 0,null,function*(){try{return _s(e,t)}catch(r){throw console.error("invoke command ".concat(e),r),r}}),Gu=(e,t)=>{var r;return lG(R({queryKey:[e,t],queryFn:()=>Ab(e,t)},(r=t==null?void 0:t.useQueryOptions)!=null?r:{}))},zr=(e,t)=>cG(R({mutationFn:r=>Ab(e,r)},t!=null?t:{}));var one={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const AE=xm()((e,t)=>({clipboardHistory:[],newClipboardHistory:[],foundClipboardHistory:[],newClipboardHistoryCount:0,historyListSimpleBar:null,scrollToTopHistoryList(n=!1){const{historyListSimpleBar:a}=t();a!=null&&a.current&&(dp.getState().isHistoryAutoUpdateOnCaputureEnabled||n)&&(a==null||a.current.scrollTo({top:0,behavior:"auto"}))},setHistoryListSimpleBar(n){e(()=>({historyListSimpleBar:n}))},removeLinkMetaData(n){return pe(this,null,function*(){return yield Ab("delete_link_metadata",{historyId:n})})},generateLinkMetaData(n,a,o=!1){return pe(this,null,function*(){return yield Ab("fetch_link_metadata",{historyId:n,url:a,isPreviewOnly:o})})},setClipboardHistory:(n,a=!1,o=!1)=>{let i=null;const c=Date.now(),d=!dp.getState().isHistoryAutoUpdateOnCaputureEnabled&&t().clipboardHistory.length>0&&!a?t().clipboardHistory:n;if(d.forEach((f,h)=>{if(f.links)try{f.arrLinks=JSON.parse(f.links)}catch(S){f.arrLinks=[]}f.hasEmoji&&(f.hasEmoji=n$(f.value));const p=f.updatedAt;let g=Z3.get(p);if(!g||c-g.timestamp>60*1e3||h===0){const S=Ou().format(p,{round:"floor"}),b=Ou().format(p,"twitter-first-minute",{round:"floor"});g={timestamp:c,timeAgo:S,timeAgoShort:b},Z3.set(p,g)}f.timeAgo=g.timeAgo,f.timeAgoShort=g.timeAgoShort,f.showTimeAgo=h===0||g.timeAgo!==i,i=g.timeAgo}),!dp.getState().isHistoryAutoUpdateOnCaputureEnabled&&t().clipboardHistory.length>0&&!a){const f=d[0].historyId,h=n.findIndex(p=>p.historyId===f);e(()=>({newClipboardHistoryCount:h,newClipboardHistory:n}));return}e(()=>({[o?"foundClipboardHistory":"clipboardHistory"]:d,newClipboardHistory:[],newClipboardHistoryCount:0}))},updateClipboardHistory:()=>{const{newClipboardHistory:n,scrollToTopHistoryList:a,setClipboardHistory:o}=t();o(n.length>0?n:t().clipboardHistory,!0),a(!0)}})),wl=vm(AE);one.TAURI_DEBUG&&(window.clipboardHistoryStore=AE);const RE=1,hp=100,wg=60,n5=300,rM={"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"},Vl={resetPassword:"RESET_PASSWORD",resetPasscode:"RESET_PASSCODE",removeLicense:"REMOVE_LICENSE"},ine=[5,10,15,20,30,45,60],nM=60,lne="PasteBar";window.PasteBar={APP_UI_VERSION:"0.0.11",APP_VERSION:"0.0.11",MAC_STORE:!1,BUILD_DATE:jn(1713929964727).format("YYYY-MM-DD")};/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var cne={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const une=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ie=(e,t)=>{const r=m.forwardRef((p,h)=>{var g=p,{color:n="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:c="",children:d}=g,f=Ce(g,["color","size","strokeWidth","absoluteStrokeWidth","className","children"]);return m.createElement("svg",R(re(R({ref:h},cne),{width:a,height:a,stroke:n,strokeWidth:i?Number(o)*24/Number(a):o,className:["lucide","lucide-".concat(une(e)),c].join(" ")}),f),[...t.map(([S,b])=>m.createElement(S,b)),...Array.isArray(d)?d:[d]])});return r.displayName="".concat(e),r};/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const a$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const o$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const i$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cne=ie("AreaChart",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M7 12v5h12V8l-5 5-4-4Z",key:"zxz28u"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jne=ie("ArrowDownFromLine",[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iv=ie("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const l$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ene=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const c$=ie("ArrowUpToLine",[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _ne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ane=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const One=ie("BellOff",[["path",{d:"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5",key:"o7mx20"}],["path",{d:"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7",key:"16f1lm"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ine=ie("BellRing",[["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"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $ne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Fne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Une=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Wne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xne=ie("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jne=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ese=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rse=ie("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bt=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nr=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sse=ie("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ym=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ase=ie("ChevronsDownUp",[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ose=ie("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ise=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const u$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const use=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const LE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mse=ie("CircleParking",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9 17V7h4a3 3 0 0 1 0 6H9",key:"1dfk2c"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const E0=ie("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gse=ie("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xse=ie("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lv=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const OE=ie("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const d$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yse=ie("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ms=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rb=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const f$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aa=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sse=ie("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ese=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _se=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const h$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const p$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $E=ie("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cv=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ase=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rse=ie("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ose=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ise=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $se=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const uc=ie("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const m$=ie("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Fse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Use=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hi=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Wse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const g$=ie("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qv=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bm=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qse=ie("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const FE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const HE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jse=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const BE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const UE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const uae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lb=ie("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sM=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mae=ie("FishSymbol",[["path",{d:"M2 16s9-15 20-4C11 23 2 8 2 8",key:"h4oh4o"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Eae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const v$=ie("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _ae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vp=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const WE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pae=ie("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Aae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Oae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Iae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $ae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Fae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const x$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tw=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Uae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Wae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const y$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qae=ie("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Q3=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ob=ie("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qae=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jae=ie("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const toe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const roe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const noe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const soe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ooe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ioe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const J3=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rw=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const loe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const coe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const uoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jv=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const doe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const VE=ie("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const foe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hoe=ie("ListFilter",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const poe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const moe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const goe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const voe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const boe=ie("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const woe=ie("LocateFixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nw=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const koe=ie("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Coe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Soe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const joe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Eoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Noe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _oe=ie("Map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Toe=ie("Martini",[["path",{d:"M8 22h8",key:"rmew8v"}],["path",{d:"M12 11v11",key:"ur9y6a"}],["path",{d:"m19 3-7 8-7-8Z",key:"1sgpiw"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Moe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Poe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Doe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Aoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Roe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Loe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const b$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ooe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ioe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $oe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const w$=ie("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zoe=ie("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Foe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hoe=ie("Mountain",[["path",{d:"m8 3 4 8 5-5 5 15H2L8 3z",key:"otkl63"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Boe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e1=ie("MoveDown",[["path",{d:"M8 18L12 22L16 18",key:"cskvfv"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Uoe=ie("MoveLeft",[["path",{d:"M6 8L2 12L6 16",key:"kyvwex"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Woe=ie("MoveRight",[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const t1=ie("MoveUp",[["path",{d:"M8 6L12 2L16 6",key:"1yvkyx"}],["path",{d:"M12 2V22",key:"r89rzk"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sw=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Voe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qoe=ie("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Koe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Goe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qoe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Joe=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const eie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const uv=ie("PanelTop",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qp=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const iie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hf=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dc=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const uie=ie("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const die=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const pie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pn=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kp=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const k$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ib=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aM=ie("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const C$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zh=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sie=ie("Rows2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Eie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _ie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gp=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mie=ie("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pie=ie("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tf=ie("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Die=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Aie=ie("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Lie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Oie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Iie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $ie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Fie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Hie=ie("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Bie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Uie=ie("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Wie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Vie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Kie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Gie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Yie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const S$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const j$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ja=ie("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Zie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Xie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const E$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Jie=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ele=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const tle=ie("SquareM",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 16V8l4 4 4-4v8",key:"141u4e"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rle=ie("SquareMinus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const nle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const sle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $b=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const N$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ale=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ole=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const KE=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const oa=ie("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const aw=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mf=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const T$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ile=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const lle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const cle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const M$=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ule=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e4=ie("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const dn=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const hle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ti=ie("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ple=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gle=ie("Twitch",[["path",{d:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",key:"c0yzno"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const yle=ie("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ble=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Sle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ele=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ur=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Nle=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _le=ie("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"}]]);/**
|
||
* @license lucide-react v0.363.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Tle=ie("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 Go;typeof window!="undefined"?Go=window:typeof self!="undefined"?Go=self:Go=global;let t4=null,r4=null;const oM=20,s5=Go.clearTimeout,iM=Go.setTimeout,a5=Go.cancelAnimationFrame||Go.mozCancelAnimationFrame||Go.webkitCancelAnimationFrame,lM=Go.requestAnimationFrame||Go.mozRequestAnimationFrame||Go.webkitRequestAnimationFrame;a5==null||lM==null?(t4=s5,r4=function(t){return iM(t,oM)}):(t4=function([t,r]){a5(t),s5(r)},r4=function(t){const r=lM(function(){s5(n),t()}),n=iM(function(){a5(r),t()},oM);return[r,n]});function Mle(e){let t,r,n,a,o,i,c;const d=typeof document!="undefined"&&document.attachEvent;if(!d){i=function(C){const j=C.__resizeTriggers__,E=j.firstElementChild,N=j.lastElementChild,M=E.firstElementChild;N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight,M.style.width=E.offsetWidth+1+"px",M.style.height=E.offsetHeight+1+"px",E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight},o=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},c=function(C){if(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const j=this;i(this),this.__resizeRAF__&&t4(this.__resizeRAF__),this.__resizeRAF__=r4(function(){o(j)&&(j.__resizeLast__.width=j.offsetWidth,j.__resizeLast__.height=j.offsetHeight,j.__resizeListeners__.forEach(function(M){M.call(j,C)}))})};let g=!1,S="";n="animationstart";const b="Webkit Moz O ms".split(" ");let v="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),w="";{const C=document.createElement("fakeelement");if(C.style.animationName!==void 0&&(g=!0),g===!1){for(let j=0;j<b.length;j++)if(C.style[b[j]+"AnimationName"]!==void 0){w=b[j],S="-"+w.toLowerCase()+"-",n=v[j],g=!0;break}}}r="resizeanim",t="@"+S+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",a=S+"animation: 1ms "+r+"; "}const f=function(g){if(!g.getElementById("detectElementResize")){const S=(t||"")+".resize-triggers { "+(a||"")+'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%; }',b=g.head||g.getElementsByTagName("head")[0],v=g.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=S:v.appendChild(g.createTextNode(S)),b.appendChild(v)}};return{addResizeListener:function(g,S){if(d)g.attachEvent("onresize",S);else{if(!g.__resizeTriggers__){const b=g.ownerDocument,v=Go.getComputedStyle(g);v&&v.position==="static"&&(g.style.position="relative"),f(b),g.__resizeLast__={},g.__resizeListeners__=[],(g.__resizeTriggers__=b.createElement("div")).className="resize-triggers";const w=b.createElement("div");w.className="expand-trigger",w.appendChild(b.createElement("div"));const C=b.createElement("div");C.className="contract-trigger",g.__resizeTriggers__.appendChild(w),g.__resizeTriggers__.appendChild(C),g.appendChild(g.__resizeTriggers__),i(g),g.addEventListener("scroll",c,!0),n&&(g.__resizeTriggers__.__animationListener__=function(E){E.animationName===r&&i(g)},g.__resizeTriggers__.addEventListener(n,g.__resizeTriggers__.__animationListener__))}g.__resizeListeners__.push(S)}},removeResizeListener:function(g,S){if(d)g.detachEvent("onresize",S);else if(g.__resizeListeners__.splice(g.__resizeListeners__.indexOf(S),1),!g.__resizeListeners__.length){g.removeEventListener("scroll",c,!0),g.__resizeTriggers__.__animationListener__&&(g.__resizeTriggers__.removeEventListener(n,g.__resizeTriggers__.__animationListener__),g.__resizeTriggers__.__animationListener__=null);try{g.__resizeTriggers__=!g.removeChild(g.__resizeTriggers__)}catch(b){}}}}}let kg=class extends m.Component{constructor(){super(...arguments);St(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0});St(this,"_autoSizer",null);St(this,"_detectElementResize",null);St(this,"_parentNode",null);St(this,"_resizeObserver",null);St(this,"_timeoutId",null);St(this,"_onResize",()=>{var o,i,c,d;this._timeoutId=null;const{disableHeight:r,disableWidth:n,onResize:a}=this.props;if(this._parentNode){const f=window.getComputedStyle(this._parentNode)||{},h=parseFloat((o=f.paddingLeft)!=null?o:"0"),p=parseFloat((i=f.paddingRight)!=null?i:"0"),g=parseFloat((c=f.paddingTop)!=null?c:"0"),S=parseFloat((d=f.paddingBottom)!=null?d:"0"),b=this._parentNode.getBoundingClientRect(),v=b.height-g-S,w=b.width-h-p,C=this._parentNode.offsetHeight-g-S,j=this._parentNode.offsetWidth-h-p;(!r&&(this.state.height!==C||this.state.scaledHeight!==v)||!n&&(this.state.width!==j||this.state.scaledWidth!==w))&&(this.setState({height:C,width:j,scaledHeight:v,scaledWidth:w}),typeof a=="function"&&a({height:C,scaledHeight:v,scaledWidth:w,width:j}))}});St(this,"_setRef",r=>{this._autoSizer=r})}componentDidMount(){const{nonce:r}=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!="undefined"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Mle(r),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 C=this.props,{children:r,defaultHeight:n,defaultWidth:a,disableHeight:o=!1,disableWidth:i=!1,nonce:c,onResize:d,style:f={},tagName:h="div"}=C,p=Ce(C,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style","tagName"]),{height:g,scaledHeight:S,scaledWidth:b,width:v}=this.state,w={};return o||(g===0?(w.height=n,w.scaledHeight=n):(w.height=g,w.scaledHeight=S)),i||(v===0?(w.width=a,w.scaledWidth=a):(w.width=v,w.scaledWidth=b)),s.jsx("div",re(R({ref:this._setRef},p),{children:r(w)}))}};const{createElement:Yp,createContext:Ple,forwardRef:P$,useCallback:Yi,useContext:D$,useEffect:tc,useImperativeHandle:A$,useLayoutEffect:Dle,useMemo:Ale,useRef:go,useState:Cg}=_2,cM=_2.useId,Sg=Dle,Rle=typeof cM=="function"?cM:()=>null;let Lle=0;function GE(e=null){const t=Rle(),r=go(e||t||null);return r.current===null&&(r.current=""+Lle++),r.current}const ow=Ple(null);ow.displayName="PanelGroupContext";function R$({children:e=null,className:t="",collapsedSize:r=0,collapsible:n=!1,defaultSize:a=null,forwardedRef:o,id:i=null,maxSize:c=null,minSizePixels:d,minSize:f,onCollapse:h=null,onResize:p=null,order:g=null,style:S={},tagName:b="div"}){const v=D$(ow);if(v===null)throw Error("Panel components must be rendered within a PanelGroup container");const w=GE(i),{collapsePanel:C,expandPanel:j,getPanelSize:E,getPanelSizePixels:N,getPanelStyle:M,registerPanel:P,resizePanel:D,units:A,unregisterPanel:O}=v;f==null&&(A==="percentages"?f=10:f=0);const $=go({onCollapse:h,onResize:p});tc(()=>{$.current.onCollapse=h,$.current.onResize=p});const H=M(w,a),z=go({size:uM(H)}),I=go({callbacksRef:$,collapsedSize:r,collapsible:n,defaultSize:a,id:w,idWasAutoGenerated:i==null,maxSize:c,minSizePixels:d,minSize:f,order:g});return Sg(()=>{z.current.size=uM(H),I.current.callbacksRef=$,I.current.collapsedSize=r,I.current.collapsible=n,I.current.defaultSize=a,I.current.id=w,I.current.idWasAutoGenerated=i==null,I.current.maxSize=c,I.current.minSize=f,I.current.minSizePixels=d,I.current.order=g}),Sg(()=>(P(w,I),()=>{O(w)}),[g,w,P,O]),A$(o,()=>({collapse:()=>C(w),expand:()=>j(w),getCollapsed(){return z.current.size===0},getId(){return w},getSize(W){return E(w,W)},getSizePixels(){return N(w)},resize:(W,_)=>D(w,W,_)}),[C,j,E,N,w,D]),Yp(b,{children:e,className:t,"data-panel":"","data-panel-collapsible":n||void 0,"data-panel-id":w,"data-panel-size":parseFloat(""+H.flexGrow).toFixed(1),id:"data-panel-id-".concat(w),style:R(R({},H),S)})}const zb=P$((e,t)=>Yp(R$,re(R({},e),{forwardedRef:t})));R$.displayName="Panel";zb.displayName="forwardRef(Panel)";function uM(e){const{flexGrow:t}=e;return typeof t=="string"?parseFloat(t):t}const pf=10;function L$(e,t="Assertion failed!"){if(!e)throw console.error(t),Error(t)}var Ole={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const iu=Ole.TAURI_DEBUG;function J0(e,t,r,n,a,o,i,c){const{id:d,panels:f,units:h}=t,p=h==="pixels"?ql(d):NaN,{sizes:g}=c||{},S=g||o,b=ka(f),v=S.concat();let w=0;{const E=a<0?n:r,N=b.findIndex(A=>A.current.id===E),M=b[N],P=S[N],D=n4(h,p,M,P,P+Math.abs(a),e);if(P===D)return S;D===0&&P>0&&i.set(E,P),a=a<0?P-D:D-P}let C=a<0?r:n,j=b.findIndex(E=>E.current.id===C);for(;;){const E=b[j],N=S[j],M=Math.abs(a)-Math.abs(w),P=n4(h,p,E,N,N-M,e);if(N!==P&&(P===0&&N>0&&i.set(E.current.id,N),w+=N-P,v[j]=P,w.toPrecision(pf).localeCompare(Math.abs(a).toPrecision(pf),void 0,{numeric:!0})>=0))break;if(a<0){if(--j<0)break}else if(++j>=b.length)break}return w===0?S:(C=a<0?n:r,j=b.findIndex(E=>E.current.id===C),v[j]=S[j]+w,v)}function lh(e,t,r){t.forEach((n,a)=>{const o=e[a];if(!o)return;const{callbacksRef:i,collapsedSize:c,collapsible:d,id:f}=o.current,h=r[f];if(h!==n){r[f]=n;const{onCollapse:p,onResize:g}=i.current;g&&g(n,h),d&&p&&((h==null||h===c)&&n!==c?p(!1):h!==c&&n===c&&p(!0))}})}function Ile({groupId:e,panels:t,units:r}){const n=r==="pixels"?ql(e):NaN,a=ka(t),o=Array(a.length);let i=0,c=100;for(let d=0;d<a.length;d++){const f=a[d],{defaultSize:h}=f.current;h!=null&&(i++,o[d]=r==="pixels"?h/n*100:h,c-=o[d])}for(let d=0;d<a.length;d++){const f=a[d];let{defaultSize:h,id:p,maxSize:g,minSize:S}=f.current;if(h!=null)continue;r==="pixels"&&(S=S/n*100,g!=null&&(g=g/n*100));const b=a.length-i,v=Math.min(g!=null?g:100,Math.max(S,c/b));o[d]=v,i++,c-=v}if(c!==0)for(let d=0;d<a.length;d++){const f=a[d];let{maxSize:h,minSize:p}=f.current;r==="pixels"&&(p=p/n*100,h!=null&&(h=h/n*100));const g=Math.min(h!=null?h:100,Math.max(p,o[d]+c));if(g!==o[d]&&(c-=g-o[d],o[d]=g,Math.abs(c).toFixed(3)==="0.000"))break}return Math.abs(c).toFixed(3)!=="0.000"&&iu&&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 o5(e,t){if(t.length<2)return[null,null];const r=t.findIndex(i=>i.current.id===e);if(r<0)return[null,null];const n=r===t.length-1,a=n?t[r-1].current.id:e,o=n?e:t[r+1].current.id;return[a,o]}function ql(e){const t=dv(e);if(t==null)return NaN;const r=t.getAttribute("data-panel-group-direction"),n=YE(e);return r==="horizontal"?t.offsetWidth-n.reduce((a,o)=>a+o.offsetWidth,0):t.offsetHeight-n.reduce((a,o)=>a+o.offsetHeight,0)}function O$(e,t,r){if(e.size===1)return"100";const a=ka(e).findIndex(i=>i.current.id===t),o=r[a];return o==null?"0":o.toPrecision(pf)}function $le(e){const t=document.querySelector('[data-panel-id="'.concat(e,'"]'));return t||null}function dv(e){const t=document.querySelector('[data-panel-group-id="'.concat(e,'"]'));return t||null}function iw(e){const t=document.querySelector('[data-panel-resize-handle-id="'.concat(e,'"]'));return t||null}function zle(e){const r=I$().findIndex(n=>n.getAttribute("data-panel-resize-handle-id")===e);return r!=null?r:null}function I$(){return Array.from(document.querySelectorAll("[data-panel-resize-handle-id]"))}function YE(e){return Array.from(document.querySelectorAll('[data-panel-resize-handle-id][data-panel-group-id="'.concat(e,'"]')))}function ZE(e,t,r){var d,f,h,p,g,S;const n=iw(t),a=YE(e),o=n?a.indexOf(n):-1,i=(h=(f=(d=r[o])==null?void 0:d.current)==null?void 0:f.id)!=null?h:null,c=(S=(g=(p=r[o+1])==null?void 0:p.current)==null?void 0:g.id)!=null?S:null;return[i,c]}function ka(e){return Array.from(e.values()).sort((t,r)=>{const n=t.current.order,a=r.current.order;return n==null&&a==null?0:n==null?-1:a==null?1:n-a})}function n4(e,t,r,n,a,o=null){var h;let{collapsedSize:i,collapsible:c,maxSize:d,minSize:f}=r.current;if(e==="pixels"&&(i=i/t*100,d!=null&&(d=d/t*100),f=f/t*100),c){if(n>i){if(a<=f/2+i)return i}else if(!((h=o==null?void 0:o.type)==null?void 0:h.startsWith("key"))&&a<f)return i}return Math.min(d!=null?d:100,Math.max(f,a))}function Fle(e,t){const{collapsible:r,defaultSize:n,maxSize:a,minSize:o}=t.current;(o<0||e==="percentages"&&o>100)&&(iu&&console.error("Invalid Panel minSize provided, ".concat(o)),t.current.minSize=0),a!=null&&(a<0||e==="percentages"&&a>100)&&(iu&&console.error("Invalid Panel maxSize provided, ".concat(a)),t.current.maxSize=null),n!==null&&(n<0||e==="percentages"&&n>100?(iu&&console.error("Invalid Panel defaultSize provided, ".concat(n)),t.current.defaultSize=null):n<o&&!r?(iu&&console.error("Panel minSize (".concat(o,") cannot be greater than defaultSize (").concat(n,")")),t.current.defaultSize=o):a!=null&&n>a&&(iu&&console.error("Panel maxSize (".concat(a,") cannot be less than defaultSize (").concat(n,")")),t.current.defaultSize=a))}function i5({groupId:e,panels:t,nextSizes:r,prevSizes:n,units:a}){r=[...r];const o=ka(t),i=a==="pixels"?ql(e):NaN;let c=0;for(let d=0;d<o.length;d++){const f=o[d],h=n[d],p=r[d],g=n4(a,i,f,h,p);p!=g&&(c+=p-g,r[d]=g,iu&&console.error("Invalid size (".concat(p,') specified for Panel "').concat(f.current.id,"\" given the panel's min/max size constraints")))}if(c.toFixed(3)!=="0.000")for(let d=0;d<o.length;d++){const f=o[d];let{maxSize:h,minSize:p}=f.current;a==="pixels"&&(p=p/i*100,h!=null&&(h=h/i*100));const g=Math.min(h!=null?h:100,Math.max(p,r[d]+c));if(g!==r[d]&&(c-=g-r[d],r[d]=g,Math.abs(c).toFixed(3)==="0.000"))break}return c.toFixed(3)!=="0.000"&&iu&&console.error('"Invalid panel group configuration; default panel sizes should total 100% but was '.concat(100-c,"%")),r}function Hle({committedValuesRef:e,groupId:t,panels:r,setSizes:n,sizes:a,panelSizeBeforeCollapse:o}){tc(()=>{const{direction:i,panels:c}=e.current,d=dv(t);L$(d!=null,'No group found for id "'.concat(t,'"'));const{height:f,width:h}=d.getBoundingClientRect(),g=YE(t).map(S=>{const b=S.getAttribute("data-panel-resize-handle-id"),v=ka(c),[w,C]=ZE(t,b,v);if(w==null||C==null)return()=>{};let j=0,E=100,N=0,M=0;v.forEach(H=>{const{id:z,maxSize:I,minSize:W}=H.current;z===w?(j=W,E=I!=null?I:100):(N+=W,M+=I!=null?I:100)});const P=Math.min(E,100-N),D=Math.max(j,(v.length-1)*100-M),A=O$(c,w,a);S.setAttribute("aria-valuemax",""+Math.round(P)),S.setAttribute("aria-valuemin",""+Math.round(D)),S.setAttribute("aria-valuenow",""+Math.round(parseInt(A)));const O=H=>{if(!H.defaultPrevented)switch(H.key){case"Enter":{H.preventDefault();const z=v.findIndex(I=>I.current.id===w);if(z>=0){const I=v[z],W=a[z];if(W!=null){let _=0;W.toPrecision(pf)<=I.current.minSize.toPrecision(pf)?_=i==="horizontal"?h:f:_=-(i==="horizontal"?h:f);const K=J0(H,e.current,w,C,_,a,o.current,null);a!==K&&n(K)}}break}}};S.addEventListener("keydown",O);const $=$le(w);return $!=null&&S.setAttribute("aria-controls",$.id),()=>{S.removeAttribute("aria-valuemax"),S.removeAttribute("aria-valuemin"),S.removeAttribute("aria-valuenow"),S.removeEventListener("keydown",O),$!=null&&S.removeAttribute("aria-controls")}});return()=>{g.forEach(S=>S())}},[e,t,r,o,n,a])}function Ble({disabled:e,handleId:t,resizeHandler:r}){tc(()=>{if(e||r==null)return;const n=iw(t);if(n==null)return;const a=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),r(o);break}case"F6":{o.preventDefault();const i=I$(),c=zle(t);L$(c!==null);const d=o.shiftKey?c>0?c-1:i.length-1:c+1<i.length?c+1:0;i[d].focus();break}}};return n.addEventListener("keydown",a),()=>{n.removeEventListener("keydown",a)}},[e,t,r])}function Tx(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function $$(e,t,r,n=0,a=null){const o=r==="horizontal";let i=0;if(s4(e))i=o?e.clientX:e.clientY;else if(a4(e)){const h=e.touches[0];i=o?h.screenX:h.screenY}else return 0;const c=iw(t),d=a||c.getBoundingClientRect(),f=o?d.left:d.top;return i-f-n}function Ule(e,t,r,n,a,o,i){const{dragOffset:c=0,dragHandleRect:d,sizes:f}=i||{},h=f||o;if(Wle(e)){const p=a==="horizontal",S=dv(t).getBoundingClientRect(),b=p?S.width:S.height,v=e.shiftKey?10:100,w=b/v;let C=0;switch(e.key){case"ArrowDown":C=p?0:w;break;case"ArrowLeft":C=p?-w:0;break;case"ArrowRight":C=p?w:0;break;case"ArrowUp":C=p?0:-w;break;case"End":C=b;break;case"Home":C=-b;break}const[j,E]=ZE(t,r,n),N=C<0?j:E,M=n.findIndex(D=>D.current.id===N),P=n[M];if(P.current.collapsible){const D=h[M];(D===0||D.toPrecision(pf)===P.current.minSize.toPrecision(pf))&&(C=C<0?-P.current.minSize*b:P.current.minSize*b)}return C}else return $$(e,r,a,c,d)}function Wle(e){return e.type==="keydown"}function s4(e){return e.type.startsWith("mouse")}function a4(e){return e.type.startsWith("touch")}let o4=null,Pd=null;function z$(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 Vle(){Pd!==null&&(document.head.removeChild(Pd),o4=null,Pd=null)}function l5(e){if(o4===e)return;o4=e;const t=z$(e);Pd===null&&(Pd=document.createElement("style"),document.head.appendChild(Pd)),Pd.innerHTML="*{cursor: ".concat(t,"!important;}")}function F$(e,t=10){let r=null;return(...a)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...a)},t)}}function H$(e){return e.map(t=>{const{minSize:r,order:n}=t.current;return n?"".concat(n,":").concat(r):"".concat(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}function B$(e,t){try{const r=t.getItem("PanelGroup:sizes:".concat(e));if(r){const n=JSON.parse(r);if(typeof n=="object"&&n!=null)return n}}catch(r){}return null}function qle(e,t,r){var a;const n=B$(e,r);if(n){const o=H$(t);return(a=n[o])!=null?a:null}return null}function Kle(e,t,r,n){const a=H$(t),o=B$(e,n)||{};o[a]=r;try{n.setItem("PanelGroup:sizes:".concat(e),JSON.stringify(o))}catch(i){console.error(i)}}var Gle={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const c5=Gle.TAURI_DEBUG,u5={};function dM(e){try{if(typeof localStorage!="undefined")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}const eg={getItem:e=>(dM(eg),eg.getItem(e)),setItem:(e,t)=>{dM(eg),eg.setItem(e,t)}};function U$({autoSaveId:e,children:t=null,className:r="",direction:n,disablePointerEventsDuringResize:a=!1,forwardedRef:o,id:i=null,onLayout:c,storage:d=eg,style:f={},tagName:h="div",units:p="percentages"}){const g=GE(i),[S,b]=Cg(null),[v,w]=Cg(new Map),C=go(null),j=go({didLogDefaultSizeWarning:!1,didLogIdAndOrderWarning:!1,didLogInvalidLayoutWarning:!1,prevPanelIds:[]}),E=go({onLayout:c});tc(()=>{E.current.onLayout=c});const N=go({}),[M,P]=Cg([]),D=go(new Map),A=go(0),O=go({direction:n,id:g,panels:v,sizes:M,units:p});A$(o,()=>({getId:()=>g,getLayout:F=>{const{sizes:q,units:Y}=O.current;if((F!=null?F:Y)==="pixels"){const ee=ql(g);return q.map(ae=>ae/100*ee)}else return q},setLayout:(F,q)=>{const{id:Y,panels:se,sizes:ee,units:ae}=O.current;if((q||ae)==="pixels"){const ce=ql(Y);F=F.map(he=>he/ce*100)}const oe=N.current,le=ka(se),ue=i5({groupId:Y,panels:se,nextSizes:F,prevSizes:ee,units:ae});Tx(ee,ue)||(P(ue),lh(le,ue,oe))}}),[g]),Sg(()=>{O.current.direction=n,O.current.id=g,O.current.panels=v,O.current.sizes=M,O.current.units=p}),Hle({committedValuesRef:O,groupId:g,panels:v,setSizes:P,sizes:M,panelSizeBeforeCollapse:D}),tc(()=>{const{onLayout:F}=E.current,{panels:q,sizes:Y}=O.current;if(Y.length>0){F&&F(Y);const se=N.current,ee=ka(q);lh(ee,Y,se)}},[M]),Sg(()=>{const{id:F,sizes:q,units:Y}=O.current;if(q.length===v.size)return;let se=null;if(e){const ee=ka(v);se=qle(e,ee,d)}if(se!=null){const ee=i5({groupId:F,panels:v,nextSizes:se,prevSizes:se,units:Y});P(ee)}else{const ee=Ile({groupId:F,panels:v,units:Y});P(ee)}},[e,v,d]),tc(()=>{if(e){if(M.length===0||M.length!==v.size)return;const F=ka(v);u5[e]||(u5[e]=F$(Kle,100)),u5[e](e,F,M,d)}if(c5){const{didLogIdAndOrderWarning:F,prevPanelIds:q}=j.current;if(!F){const{panels:Y}=O.current,se=Array.from(Y.keys());j.current.prevPanelIds=se,q.length>0&&!Tx(q,se)&&Array.from(Y.values()).find(ae=>ae.current.idWasAutoGenerated||ae.current.order==null)&&(j.current.didLogIdAndOrderWarning=!0,console.warn("WARNING: Panel id and order props recommended when panels are dynamically rendered"))}}},[e,v,M,d]),Sg(()=>{if(p==="pixels"){const F=new ResizeObserver(()=>{const{panels:q,sizes:Y}=O.current,se=i5({groupId:g,panels:q,nextSizes:Y,prevSizes:Y,units:p});Tx(Y,se)||P(se)});return F.observe(dv(g)),()=>{F.disconnect()}}},[g,p]);const $=Yi((F,q)=>{const{panels:Y,units:se}=O.current,ae=ka(Y).findIndex(ue=>ue.current.id===F),oe=M[ae];if((q!=null?q:se)==="pixels"){const ue=ql(g);return oe/100*ue}else return oe},[g,M]),H=Yi(F=>{const{panels:q}=O.current,se=ka(q).findIndex(oe=>oe.current.id===F),ee=M[se],ae=ql(g);return ee/100*ae},[g,M]),z=Yi((F,q)=>{const{panels:Y}=O.current;return Y.size===0?(c5&&j.current.didLogDefaultSizeWarning,{flexBasis:0,flexGrow:q!=null?q:void 0,flexShrink:1,overflow:"hidden"}):{flexBasis:0,flexGrow:O$(Y,F,M),flexShrink:1,overflow:"hidden",pointerEvents:a&&S!==null?"none":void 0}},[S,a,M]),I=Yi((F,q)=>{const{units:Y}=O.current;Fle(Y,q),w(se=>{if(se.has(F))return se;const ee=new Map(se);return ee.set(F,q),ee})},[]),W=Yi(F=>Y=>{Y.preventDefault();const{direction:se,panels:ee,sizes:ae}=O.current,oe=ka(ee),[le,ue]=ZE(g,F,oe);if(le==null||ue==null)return;let ce=Ule(Y,g,F,oe,se,ae,C.current);if(ce===0)return;const we=dv(g).getBoundingClientRect(),Se=se==="horizontal";document.dir==="rtl"&&Se&&(ce=-ce);const Ae=Se?we.width:we.height,je=ce/Ae*100,Le=J0(Y,O.current,le,ue,je,ae,D.current,C.current),Ee=!Tx(ae,Le);if((s4(Y)||a4(Y))&&A.current!=je&&l5(Ee?Se?"horizontal":"vertical":Se?ce<0?"horizontal-min":"horizontal-max":ce<0?"vertical-min":"vertical-max"),Ee){const He=N.current;P(Le),lh(oe,Le,He)}A.current=je},[g]),_=Yi(F=>{w(q=>{if(!q.has(F))return q;const Y=new Map(q);return Y.delete(F),Y})},[]),K=Yi(F=>{const{panels:q,sizes:Y}=O.current,se=q.get(F);if(se==null)return;const{collapsedSize:ee,collapsible:ae}=se.current;if(!ae)return;const oe=ka(q),le=oe.indexOf(se);if(le<0)return;const ue=Y[le];if(ue===ee)return;D.current.set(F,ue);const[ce,he]=o5(F,oe);if(ce==null||he==null)return;const Se=le===oe.length-1?ue:ee-ue,Ae=J0(null,O.current,ce,he,Se,Y,D.current,null);if(Y!==Ae){const je=N.current;P(Ae),lh(oe,Ae,je)}},[]),V=Yi(F=>{const{panels:q,sizes:Y}=O.current,se=q.get(F);if(se==null)return;const{collapsedSize:ee,minSize:ae}=se.current,oe=D.current.get(F)||ae;if(!oe)return;const le=ka(q),ue=le.indexOf(se);if(ue<0||Y[ue]!==ee)return;const[he,we]=o5(F,le);if(he==null||we==null)return;const Ae=ue===le.length-1?ee-oe:oe,je=J0(null,O.current,he,we,Ae,Y,D.current,null);if(Y!==je){const Le=N.current;P(je),lh(le,je,Le)}},[]),U=Yi((F,q,Y)=>{const{id:se,panels:ee,sizes:ae,units:oe}=O.current;if((Y||oe)==="pixels"){const mt=ql(se);q=q/mt*100}const le=ee.get(F);if(le==null)return;let{collapsedSize:ue,collapsible:ce,maxSize:he,minSize:we}=le.current;if(oe==="pixels"){const mt=ql(se);we=we/mt*100,he!=null&&(he=he/mt*100)}const Se=ka(ee),Ae=Se.indexOf(le);if(Ae<0)return;const je=ae[Ae];if(je===q)return;if(!(ce&&q===ue)){const mt=q;q=Math.min(he!=null?he:100,Math.max(we,q)),c5&&mt!==q&&console.error("Invalid size (".concat(mt,') specified for Panel "').concat(le.current.id,"\" given the panel's min/max size constraints"))}const[Le,Ee]=o5(F,Se);if(Le==null||Ee==null)return;const Qe=Ae===Se.length-1?je-q:q-je,Ze=J0(null,O.current,Le,Ee,Qe,ae,D.current,null);if(ae!==Ze){const mt=N.current;P(Ze),lh(Se,Ze,mt)}},[]),X=Ale(()=>({activeHandleId:S,collapsePanel:K,direction:n,expandPanel:V,getPanelSize:$,getPanelSizePixels:H,getPanelStyle:z,groupId:g,registerPanel:I,registerResizeHandle:W,resizePanel:U,startDragging:(F,q)=>{if(b(F),s4(q)||a4(q)){const Y=iw(F);C.current={dragHandleRect:Y.getBoundingClientRect(),dragOffset:$$(q,F,n),sizes:O.current.sizes}}},stopDragging:()=>{Vle(),b(null),C.current=null},units:p,unregisterPanel:_}),[S,K,n,V,$,H,z,g,I,W,U,p,_]),G={display:"flex",flexDirection:n==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return Yp(ow.Provider,{children:Yp(h,{children:t,className:r,"data-panel-group":"","data-panel-group-direction":n,"data-panel-group-id":g,"data-panel-group-units":p,style:R(R({},G),f)}),value:X})}const i4=P$((e,t)=>Yp(U$,re(R({},e),{forwardedRef:t})));U$.displayName="PanelGroup";i4.displayName="forwardRef(PanelGroup)";function W$({children:e=null,className:t="",disabled:r=!1,id:n=null,onDragging:a,style:o={},tagName:i="div"}){const c=go(null),d=go({onDragging:a});tc(()=>{d.current.onDragging=a});const f=D$(ow);if(f===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{activeHandleId:h,direction:p,groupId:g,registerResizeHandle:S,startDragging:b,stopDragging:v}=f,w=GE(n),C=h===w,[j,E]=Cg(!1),[N,M]=Cg(null),P=Yi(()=>{c.current.blur(),v();const{onDragging:O}=d.current;O&&O(!1)},[v]);tc(()=>{if(r)M(null);else{const A=S(w);M(()=>A)}},[r,w,S]),tc(()=>{if(r||N==null||!C)return;const A=z=>{N(z)},O=z=>{N(z)},H=c.current.ownerDocument;return H.body.addEventListener("contextmenu",P),H.body.addEventListener("mousemove",A),H.body.addEventListener("touchmove",A),H.body.addEventListener("mouseleave",O),window.addEventListener("mouseup",P),window.addEventListener("touchend",P),()=>{H.body.removeEventListener("contextmenu",P),H.body.removeEventListener("mousemove",A),H.body.removeEventListener("touchmove",A),H.body.removeEventListener("mouseleave",O),window.removeEventListener("mouseup",P),window.removeEventListener("touchend",P)}},[p,r,C,N,P]),Ble({disabled:r,handleId:w,resizeHandler:N});const D={cursor:z$(p),touchAction:"none",userSelect:"none"};return Yp(i,{children:e,className:t,"data-resize-handle-active":C?"pointer":j?"keyboard":void 0,"data-panel-group-direction":p,"data-panel-group-id":g,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":w,onBlur:()=>E(!1),onFocus:()=>E(!0),onMouseDown:A=>{b(w,A.nativeEvent);const{onDragging:O}=d.current;O&&O(!0)},onMouseUp:P,onTouchCancel:P,onTouchEnd:P,onTouchStart:A=>{b(w,A.nativeEvent);const{onDragging:O}=d.current;O&&O(!0)},ref:c,role:"separator",style:R(R({},D),o),tabIndex:0})}W$.displayName="PanelResizeHandle";function Yle(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Zle(e){return!e||!e.ownerDocument?document:e.ownerDocument}const Xle=function(e){const t={};return Array.prototype.reduce.call(e,(n,a)=>{const o=a.name.match(/data-simplebar-(.+)/);if(o){const i=o[1].replace(/\W+(.)/g,(c,d)=>d.toUpperCase());switch(a.value){case"true":n[i]=!0;break;case"false":n[i]=!1;break;case void 0:n[i]=!0;break;default:n[i]=a.value}}return n},t)};function Qle(e,t){e&&e.classList.add(...t.split(" "))}function Jle(e,t){e&&t.split(" ").forEach(r=>{e.classList.remove(r)})}function ece(e){return".".concat(e.split(" ").join("."))}const V$=Object.freeze(Object.defineProperty({__proto__:null,addClasses:Qle,classNamesToQuery:ece,getElementDocument:Zle,getElementWindow:Yle,getOptions:Xle,removeClasses:Jle},Symbol.toStringTag,{value:"Module"}));let Ph=null,fM=null;window.addEventListener("resize",()=>{fM!==window.devicePixelRatio&&(fM=window.devicePixelRatio,Ph=null)});function hM(){if(Ph===null){if(typeof document=="undefined")return Ph=0,Ph;const e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);const r=t.getBoundingClientRect().right;e.removeChild(t),Ph=r}return Ph}const{getElementWindow:Ic,getElementDocument:d5,getOptions:tce,addClasses:$c,removeClasses:zc,classNamesToQuery:Ia}=V$,ls=class ls{constructor(t,r={}){St(this,"el");St(this,"options");St(this,"disableScroll");St(this,"classNames");St(this,"axis");St(this,"draggedAxis");St(this,"removePreventClickId",null);St(this,"minScrollbarWidth",20);St(this,"stopScrollDelay",175);St(this,"isScrolling",!1);St(this,"isMouseEntering",!1);St(this,"scrollXTicking",!1);St(this,"scrollYTicking",!1);St(this,"wrapperEl",null);St(this,"contentWrapperEl",null);St(this,"contentEl",null);St(this,"offsetEl",null);St(this,"maskEl",null);St(this,"placeholderEl",null);St(this,"heightAutoObserverWrapperEl",null);St(this,"heightAutoObserverEl",null);St(this,"rtlHelpers",null);St(this,"scrollbarWidth",0);St(this,"resizeObserver",null);St(this,"mutationObserver",null);St(this,"elStyles",null);St(this,"isRtl",null);St(this,"mouseX",0);St(this,"mouseY",0);St(this,"onMouseMove",()=>{});St(this,"onWindowResize",()=>{});St(this,"onStopScrolling",()=>{});St(this,"onMouseEntered",()=>{});St(this,"onScrollCallBack",()=>{});St(this,"onScroll",t=>{const r=Ic(this.el);this.scrollXTicking||(r.requestAnimationFrame(this.scrollX),this.scrollXTicking=!0),this.scrollYTicking||(r.requestAnimationFrame(this.scrollY),this.scrollYTicking=!0),this.isScrolling||(this.isScrolling=!0,this.onScrollCallBack(t,!0),$c(this.el,this.classNames.scrolling)),this.showScrollbar("x"),this.showScrollbar("y"),this.onStopScrolling(t)});St(this,"scrollX",()=>{this.axis.x.isOverflowing&&this.positionScrollbar("x"),this.scrollXTicking=!1});St(this,"scrollY",()=>{this.axis.y.isOverflowing&&this.positionScrollbar("y"),this.scrollYTicking=!1});St(this,"_onStopScrolling",t=>{this.onScrollCallBack(t,!1),zc(this.el,this.classNames.scrolling),this.options.autoHide&&(this.hideScrollbar("x"),this.hideScrollbar("y")),this.isScrolling=!1});St(this,"onMouseEnter",()=>{this.isMouseEntering||($c(this.el,this.classNames.mouseEntered),this.showScrollbar("x"),this.showScrollbar("y"),this.isMouseEntering=!0),this.onMouseEntered()});St(this,"_onMouseEntered",()=>{zc(this.el,this.classNames.mouseEntered),this.options.autoHide&&(this.hideScrollbar("x"),this.hideScrollbar("y")),this.isMouseEntering=!1});St(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")});St(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});St(this,"_onWindowResize",()=>{this.scrollbarWidth=this.getScrollbarWidth(),this.hideNativeScrollbar()});St(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 r,n;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)&&(r=this.isWithinBounds(this.axis.x.track.rect)),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&(n=this.isWithinBounds(this.axis.y.track.rect)),(r||n)&&(t.stopPropagation(),t.type==="pointerdown"&&t.pointerType!=="touch"&&(r&&(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")),n&&(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"))))});St(this,"drag",t=>{var p,g,S,b,v,w,C,j,E,N,M;if(!this.draggedAxis||!this.contentWrapperEl)return;let r;const n=this.axis[this.draggedAxis].track,a=(g=(p=n.rect)==null?void 0:p[this.axis[this.draggedAxis].sizeAttr])!=null?g:0,o=this.axis[this.draggedAxis].scrollbar,i=(b=(S=this.contentWrapperEl)==null?void 0:S[this.axis[this.draggedAxis].scrollSizeAttr])!=null?b:0,c=parseInt((w=(v=this.elStyles)==null?void 0:v[this.axis[this.draggedAxis].sizeAttr])!=null?w:"0px",10);t.preventDefault(),t.stopPropagation(),this.draggedAxis==="y"?r=t.pageY:r=t.pageX;let d=r-((j=(C=n.rect)==null?void 0:C[this.axis[this.draggedAxis].offsetAttr])!=null?j:0)-this.axis[this.draggedAxis].dragOffset;d=this.draggedAxis==="x"&&this.isRtl?((N=(E=n.rect)==null?void 0:E[this.axis[this.draggedAxis].sizeAttr])!=null?N:0)-o.size-d:d;let h=d/(a-o.size)*(i-c);this.draggedAxis==="x"&&this.isRtl&&(h=(M=ls.getRtlHelpers())!=null&&M.isScrollingToNegative?-h:h),this.contentWrapperEl[this.axis[this.draggedAxis].scrollOffsetAttr]=h});St(this,"onEndDrag",t=>{const r=d5(this.el),n=Ic(this.el);t.preventDefault(),t.stopPropagation(),zc(this.el,this.classNames.dragging),r.removeEventListener("mousemove",this.drag,!0),r.removeEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId=n.setTimeout(()=>{r.removeEventListener("click",this.preventClick,!0),r.removeEventListener("dblclick",this.preventClick,!0),this.removePreventClickId=null})});St(this,"preventClick",t=>{t.preventDefault(),t.stopPropagation()});if(this.el=t,this.disableScroll=!1,this.options=R(R({},ls.defaultOptions),r),this.classNames=R(R({},ls.defaultOptions.classNames),r.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=NI(this._onMouseMove,64),this.onWindowResize=Td(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Td(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Td(this._onMouseEntered,this.stopScrollDelay),r.onScroll?this.onScrollCallBack=Td(r.onScroll,this.stopScrollDelay,{leading:!0}):this.onScrollCallBack=()=>{},this.init()}setDisableScroll(t){this.disableScroll=t}static getRtlHelpers(){if(ls.rtlHelpers)return ls.rtlHelpers;const t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';const r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;const a=ls.getOffset(r),o=ls.getOffset(n);r.scrollLeft=-999;const i=ls.getOffset(n);return document.body.removeChild(r),ls.rtlHelpers={isScrollOriginAtZero:a.left!==o.left,isScrollingToNegative:o.left!==i.left},ls.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:hM()}catch(t){return hM()}}static getOffset(t){const r=t.getBoundingClientRect(),n=d5(t),a=Ic(t);return{top:r.top+(a.pageYOffset||n.documentElement.scrollTop),left:r.left+(a.pageXOffset||n.documentElement.scrollLeft)}}init(){this.initDOM(),this.rtlHelpers=ls.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners()}initDOM(){var t,r;this.wrapperEl=this.el.querySelector(Ia(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Ia(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Ia(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Ia(this.classNames.offset)),this.maskEl=this.el.querySelector(Ia(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Ia(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Ia(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Ia(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Ia(this.classNames.track)).concat(Ia(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Ia(this.classNames.track)).concat(Ia(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)==null?void 0:t.querySelector(Ia(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)==null?void 0:r.querySelector(Ia(this.classNames.scrollbar)))||null,this.options.autoHide||($c(this.axis.x.scrollbar.el,this.classNames.visible),$c(this.axis.y.scrollbar.el,this.classNames.visible))}initListeners(){var r,n,a,o;const t=Ic(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),(r=this.contentWrapperEl)==null||r.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()})}),(n=this.resizeObserver)==null||n.observe(this.el),(a=this.resizeObserver)==null||a.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 S,b,v;if(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)return;const t=Ic(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=((S=this.elStyles)==null?void 0:S.direction)==="rtl";const r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1||r>0,o=this.contentWrapperEl.offsetWidth,i=(b=this.elStyles)==null?void 0:b.overflowX,c=(v=this.elStyles)==null?void 0:v.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 d=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=a?"".concat(r||f,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");const h=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&f>r,this.axis.y.isOverflowing=d>h,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 p=this.axis.x.isOverflowing?this.scrollbarWidth:0,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>o-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>h-p,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 r=this.contentEl[this.axis[t].scrollSizeAttr],n=(c=(i=this.axis[t].track.el)==null?void 0:i[this.axis[t].offsetSizeAttr])!=null?c:0,a=n/r;let o;return o=Math.max(~~(a*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(o=Math.min(o,this.options.scrollbarMaxSize)),o}positionScrollbar(t="y"){var f,h,p;const r=this.axis[t].scrollbar;if(!this.axis[t].isOverflowing||!this.contentWrapperEl||!r.el||!this.elStyles)return;const n=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((f=this.axis[t].track.el)==null?void 0:f[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&&((h=ls.getRtlHelpers())!=null&&h.isScrollOriginAtZero)?-i:i,t==="x"&&this.isRtl&&(i=(p=ls.getRtlHelpers())!=null&&p.isScrollingToNegative?i:-i);const c=i/(n-o);let d=~~((a-r.size)*c);d=t==="x"&&this.isRtl?-d+(a-r.size):d,r.el.style.transform=t==="x"?"translate3d(".concat(d,"px, 0, 0)"):"translate3d(0, ".concat(d,"px, 0)")}toggleTrackVisibility(t="y"){const r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||((this.axis[t].isOverflowing||this.axis[t].forceVisible)&&!this.disableScroll?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.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?n.style.display="block":n.style.display="none")}showScrollbar(t="y"){this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&($c(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&&(zc(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 r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),$c(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?$c(r.scrollbar.el,this.classNames.hover):zc(r.scrollbar.el,this.classNames.hover)):(zc(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))}onMouseLeaveForAxis(t="y"){zc(this.axis[t].track.el,this.classNames.hover),zc(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)}onDragStart(t,r="y"){var c;const n=d5(this.el),a=Ic(this.el),o=this.axis[r].scrollbar,i=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=i-(((c=o.rect)==null?void 0:c[this.axis[r].offsetAttr])||0),this.draggedAxis=r,$c(this.el,this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)}onTrackClick(t,r="y"){var b,v,w,C;const n=this.axis[r];if(!this.options.clickOnTrack||!n.scrollbar.el||!this.contentWrapperEl)return;t.preventDefault();const a=Ic(this.el);this.axis[r].scrollbar.rect=n.scrollbar.el.getBoundingClientRect();const i=(v=(b=this.axis[r].scrollbar.rect)==null?void 0:b[this.axis[r].offsetAttr])!=null?v:0,c=parseInt((C=(w=this.elStyles)==null?void 0:w[this.axis[r].sizeAttr])!=null?C:"0px",10);let d=this.contentWrapperEl[this.axis[r].scrollOffsetAttr];const h=(r==="y"?this.mouseY-i:this.mouseX-i)<0?-1:1,p=h===-1?d-c:d+c,g=40,S=()=>{this.contentWrapperEl&&(h===-1?d>p&&(d-=g,this.contentWrapperEl[this.axis[r].scrollOffsetAttr]=d,a.requestAnimationFrame(S)):d<p&&(d+=g,this.contentWrapperEl[this.axis[r].scrollOffsetAttr]=d,a.requestAnimationFrame(S)))};S()}getContentElement(){return this.contentEl}getScrollElement(){return this.contentWrapperEl}removeListeners(){const t=Ic(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,r){const n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,a=>n.call(a,r))[0]}};St(ls,"rtlHelpers",null),St(ls,"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}),St(ls,"getOptions",tce),St(ls,"helpers",V$);let Xh=ls;const Wr=m.forwardRef((a,n)=>{var o=a,{children:e,scrollableNodeProps:t={}}=o,r=Ce(o,["children","scrollableNodeProps"]);const i=m.useRef(),c=m.useRef(),d=m.useRef(),f={},h={};Object.keys(r).forEach(S=>{Object.prototype.hasOwnProperty.call(Xh.defaultOptions,S)?f[S]=r[S]:h[S]=r[S]});const p=R(R({},Xh.defaultOptions.classNames),f.classNames),g=re(R({},t),{className:"".concat(p.contentWrapper).concat(t.className?" ".concat(t.className):""),tabIndex:0,role:"region","aria-label":f.ariaLabel||Xh.defaultOptions.ariaLabel});return m.useEffect(()=>{let S;return c.current=g.ref?g.ref.current:c.current,i.current&&(S=new Xh(i.current,R(R(R({},f),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof n=="function"?n(S):n&&(n.current=S)),()=>{S==null||S.unMount(),S=null,typeof n=="function"&&n(null)}},[]),s.jsxs("div",re(R({"data-simplebar":"init",ref:i},h),{children:[s.jsxs("div",{className:p.wrapper,children:[s.jsx("div",{className:p.heightAutoObserverWrapperEl,children:s.jsx("div",{className:p.heightAutoObserverEl})}),s.jsx("div",{className:p.mask,children:s.jsx("div",{className:p.offset,children:typeof e=="function"?e({scrollableNodeRef:c,scrollableNodeProps:re(R({},g),{ref:c}),contentNodeRef:d,contentNodeProps:{className:p.contentEl,ref:d}}):s.jsx("div",re(R({},g),{children:s.jsx("div",{className:p.contentEl,children:e})}))})}),s.jsx("div",{className:p.placeholder})]}),s.jsx("div",{className:"".concat(p.track," simplebar-horizontal"),children:s.jsx("div",{className:p.scrollbar})}),s.jsx("div",{className:"".concat(p.track," simplebar-vertical"),children:s.jsx("div",{className:p.scrollbar})})]}))});Wr.displayName="SimpleBar";const pM=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,mM=gr,Pf=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return mM(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(f=>{const h=r==null?void 0:r[f],p=o==null?void 0:o[f];if(h===null)return null;const g=pM(h)||pM(p);return a[f][g]}),c=r&&Object.entries(r).reduce((f,h)=>{let[p,g]=h;return g===void 0||(f[p]=g),f},{}),d=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((f,h)=>{let b=h,{class:p,className:g}=b,S=Ce(b,["class","className"]);return Object.entries(S).every(v=>{let[w,C]=v;return Array.isArray(C)?C.includes(R(R({},o),c)[w]):R(R({},o),c)[w]===C})?[...f,p,g]:f},[]);return mM(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},rce=Pf("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"}}),ke=m.memo(m.forwardRef((o,a)=>{var i=o,{className:e,variant:t,size:r}=i,n=Ce(i,["className","variant","size"]);const c=m.useMemo(()=>_t(rce({variant:t,size:r,className:e})),[t,r,e]);return s.jsx("button",R({className:c,ref:a},n))}));ke.displayName="Button";const rn=r=>{var n=r,{className:e=""}=n,t=Ce(n,["className"]);return s.jsx("button",R({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))};ke.displayName="ButtonGhost";const nce=Pf("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 XE({className:e,children:t,id:r=sce(),color:n,classNameLabel:a="",onChange:o,checked:i=!1}){const[c,d]=m.useState(i),f=h=>{const p=h.target.checked;d(p),o&&o(p)};return m.useEffect(()=>{c!==i&&d(i)},[i]),s.jsxs("div",{className:"inline-flex items-center",children:[s.jsxs("label",{className:"relative flex cursor-pointer items-center rounded-full p-3 ".concat(a),htmlFor:r,"data-ripple-dark":"true",children:[s.jsx("input",{id:r,type:"checkbox",checked:c,className:_t("form-checkbox",nce({color:n,className:e})),onChange:f}),s.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:s.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:s.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"})})})]}),s.jsx("label",{className:_t("mt-px cursor-pointer select-none font-light",n==="danger"&&c&&"text-red-600 font-medium"),htmlFor:r,children:t})]})}function sce(){return Math.random().toString(36).slice(2,12)}const Iu=m.forwardRef((i,o)=>{var c=i,{className:e,type:t,classNameInput:r,iconLeft:n}=c,a=Ce(c,["className","type","classNameInput","iconLeft"]);return s.jsxs("div",{className:_t("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:[n&&s.jsx("div",{className:"text-muted-foreground opacity-80",children:n}),s.jsx("input",R({type:t,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",className:_t("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",r),ref:o},a))]})});Iu.displayName="Input";const ace=m.forwardRef((e,t)=>m.createElement(Cr.label,Be({},e,{ref:t,onMouseDown:r=>{var n;(n=e.onMouseDown)===null||n===void 0||n.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault()}}))),q$=ace,oce=Pf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ice=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(q$,R({ref:r,className:_t(oce(),e)},t))});ice.displayName=q$.displayName;const lce=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("textarea",R({className:_t("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:r},t))});lce.displayName="Textarea";function gM(e,[t,r]){return Math.min(r,Math.max(t,e))}function jt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Pa(e,t=[]){let r=[];function n(o,i){const c=m.createContext(i),d=r.length;r=[...r,i];function f(p){const C=p,{scope:g,children:S}=C,b=Ce(C,["scope","children"]),v=(g==null?void 0:g[e][d])||c,w=m.useMemo(()=>b,Object.values(b));return m.createElement(v.Provider,{value:w},S)}function h(p,g){const S=(g==null?void 0:g[e][d])||c,b=m.useContext(S);if(b)return b;if(i!==void 0)return i;throw new Error("`".concat(p,"` must be used within `").concat(o,"`"))}return f.displayName=o+"Provider",[f,h]}const a=()=>{const o=r.map(i=>m.createContext(i));return function(c){const d=(c==null?void 0:c[e])||o;return m.useMemo(()=>({["__scope".concat(e)]:re(R({},c),{[e]:d})}),[c,d])}};return a.scopeName=e,[n,cce(a,...t)]}function cce(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const i=n.reduce((c,{useScope:d,scopeName:f})=>{const p=d(o)["__scope".concat(f)];return R(R({},c),p)},{});return m.useMemo(()=>({["__scope".concat(t.scopeName)]:i}),[i])}};return r.scopeName=t.scopeName,r}function r1(e){const t=e+"CollectionProvider",[r,n]=Pa(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=S=>{const{scope:b,children:v}=S,w=vt.useRef(null),C=vt.useRef(new Map).current;return vt.createElement(a,{scope:b,itemMap:C,collectionRef:w},v)},c=e+"CollectionSlot",d=vt.forwardRef((S,b)=>{const{scope:v,children:w}=S,C=o(c,v),j=Zr(b,C.collectionRef);return vt.createElement(Au,{ref:j},w)}),f=e+"CollectionItemSlot",h="data-radix-collection-item",p=vt.forwardRef((S,b)=>{const M=S,{scope:v,children:w}=M,C=Ce(M,["scope","children"]),j=vt.useRef(null),E=Zr(b,j),N=o(f,v);return vt.useEffect(()=>(N.itemMap.set(j,R({ref:j},C)),()=>void N.itemMap.delete(j))),vt.createElement(Au,{[h]:"",ref:E},w)});function g(S){const b=o(e+"CollectionConsumer",S);return vt.useCallback(()=>{const w=b.collectionRef.current;if(!w)return[];const C=Array.from(w.querySelectorAll("[".concat(h,"]")));return Array.from(b.itemMap.values()).sort((N,M)=>C.indexOf(N.ref.current)-C.indexOf(M.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:i,Slot:d,ItemSlot:p},g,n]}const uce=m.createContext(void 0);function wm(e){const t=m.useContext(uce);return e||t||"ltr"}function Ja(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function dce(e,t=globalThis==null?void 0:globalThis.document){const r=Ja(e);m.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const l4="dismissableLayer.update",fce="dismissableLayer.pointerDownOutside",hce="dismissableLayer.focusOutside";let vM;const pce=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),n1=m.forwardRef((e,t)=>{var r;const A=e,{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:d}=A,f=Ce(A,["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"]),h=m.useContext(pce),[p,g]=m.useState(null),S=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,b]=m.useState({}),v=Zr(t,O=>g(O)),w=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),j=w.indexOf(C),E=p?w.indexOf(p):-1,N=h.layersWithOutsidePointerEventsDisabled.size>0,M=E>=j,P=mce(O=>{const $=O.target,H=[...h.branches].some(z=>z.contains($));!M||H||(o==null||o(O),c==null||c(O),O.defaultPrevented||d==null||d())},S),D=gce(O=>{const $=O.target;[...h.branches].some(z=>z.contains($))||(i==null||i(O),c==null||c(O),O.defaultPrevented||d==null||d())},S);return dce(O=>{E===h.layers.size-1&&(a==null||a(O),!O.defaultPrevented&&d&&(O.preventDefault(),d()))},S),m.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(vM=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),xM(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=vM)}},[p,S,n,h]),m.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),xM())},[p,h]),m.useEffect(()=>{const O=()=>b({});return document.addEventListener(l4,O),()=>document.removeEventListener(l4,O)},[]),m.createElement(Cr.div,Be({},f,{ref:v,style:R({pointerEvents:N?M?"auto":"none":void 0},e.style),onFocusCapture:jt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:jt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:jt(e.onPointerDownCapture,P.onPointerDownCapture)}))});function mce(e,t=globalThis==null?void 0:globalThis.document){const r=Ja(e),n=m.useRef(!1),a=m.useRef(()=>{});return m.useEffect(()=>{const o=c=>{if(c.target&&!n.current){let f=function(){K$(fce,r,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function gce(e,t=globalThis==null?void 0:globalThis.document){const r=Ja(e),n=m.useRef(!1);return m.useEffect(()=>{const a=o=>{o.target&&!n.current&&K$(hce,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function xM(){const e=new CustomEvent(l4);document.dispatchEvent(e)}function K$(e,t,r,{discrete:n}){const a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?WO(a,o):a.dispatchEvent(o)}let f5=0;function lw(){m.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:yM()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:yM()),f5++,()=>{f5===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),f5--}},[])}function yM(){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 h5="focusScope.autoFocusOnMount",p5="focusScope.autoFocusOnUnmount",bM={bubbles:!1,cancelable:!0},cw=m.forwardRef((e,t)=>{const v=e,{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:o}=v,i=Ce(v,["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"]),[c,d]=m.useState(null),f=Ja(a),h=Ja(o),p=m.useRef(null),g=Zr(t,w=>d(w)),S=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let w=function(N){if(S.paused||!c)return;const M=N.target;c.contains(M)?p.current=M:Vc(p.current,{select:!0})},C=function(N){if(S.paused||!c)return;const M=N.relatedTarget;M!==null&&(c.contains(M)||Vc(p.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const P of N)P.removedNodes.length>0&&Vc(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",C);const E=new MutationObserver(j);return c&&E.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),E.disconnect()}}},[n,c,S.paused]),m.useEffect(()=>{if(c){kM.add(S);const w=document.activeElement;if(!c.contains(w)){const j=new CustomEvent(h5,bM);c.addEventListener(h5,f),c.dispatchEvent(j),j.defaultPrevented||(vce(kce(G$(c)),{select:!0}),document.activeElement===w&&Vc(c))}return()=>{c.removeEventListener(h5,f),setTimeout(()=>{const j=new CustomEvent(p5,bM);c.addEventListener(p5,h),c.dispatchEvent(j),j.defaultPrevented||Vc(w!=null?w:document.body,{select:!0}),c.removeEventListener(p5,h),kM.remove(S)},0)}}},[c,f,h,S]);const b=m.useCallback(w=>{if(!r&&!n||S.paused)return;const C=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,j=document.activeElement;if(C&&j){const E=w.currentTarget,[N,M]=xce(E);N&&M?!w.shiftKey&&j===M?(w.preventDefault(),r&&Vc(N,{select:!0})):w.shiftKey&&j===N&&(w.preventDefault(),r&&Vc(M,{select:!0})):j===E&&w.preventDefault()}},[r,n,S.paused]);return m.createElement(Cr.div,Be({tabIndex:-1},i,{ref:g,onKeyDown:b}))});function vce(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Vc(n,{select:t}),document.activeElement!==r)return}function xce(e){const t=G$(e),r=wM(t,e),n=wM(t.reverse(),e);return[r,n]}function G$(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function wM(e,t){for(const r of e)if(!yce(r,{upTo:t}))return r}function yce(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 bce(e){return e instanceof HTMLInputElement&&"select"in e}function Vc(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&bce(e)&&t&&e.select()}}const kM=wce();function wce(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=CM(e,t),e.unshift(t)},remove(t){var r;e=CM(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function CM(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function kce(e){return e.filter(t=>t.tagName!=="A")}const ri=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},Cce=_2.useId||(()=>{});let Sce=0;function Ms(e){const[t,r]=m.useState(Cce());return ri(()=>{e||r(n=>n!=null?n:String(Sce++))},[e]),e||(t?"radix-".concat(t):"")}const jce=["top","right","bottom","left"],$u=Math.min,vo=Math.max,Fb=Math.round,Mx=Math.floor,zu=e=>({x:e,y:e}),Ece={left:"right",right:"left",bottom:"top",top:"bottom"},Nce={start:"end",end:"start"};function c4(e,t,r){return vo(e,$u(t,r))}function fc(e,t){return typeof e=="function"?e(t):e}function hc(e){return e.split("-")[0]}function km(e){return e.split("-")[1]}function QE(e){return e==="x"?"y":"x"}function JE(e){return e==="y"?"height":"width"}function Cm(e){return["top","bottom"].includes(hc(e))?"y":"x"}function e6(e){return QE(Cm(e))}function _ce(e,t,r){r===void 0&&(r=!1);const n=km(e),a=e6(e),o=JE(a);let i=a==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Hb(i)),[i,Hb(i)]}function Tce(e){const t=Hb(e);return[u4(e),t,u4(t)]}function u4(e){return e.replace(/start|end/g,t=>Nce[t])}function Mce(e,t,r){const n=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?a:n:t?n:a;case"left":case"right":return t?o:i;default:return[]}}function Pce(e,t,r,n){const a=km(e);let o=Mce(hc(e),r==="start",n);return a&&(o=o.map(i=>i+"-"+a),t&&(o=o.concat(o.map(u4)))),o}function Hb(e){return e.replace(/left|right|bottom|top/g,t=>Ece[t])}function Dce(e){return R({top:0,right:0,bottom:0,left:0},e)}function Y$(e){return typeof e!="number"?Dce(e):{top:e,right:e,bottom:e,left:e}}function Bb(e){return re(R({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function SM(e,t,r){let{reference:n,floating:a}=e;const o=Cm(t),i=e6(t),c=JE(i),d=hc(t),f=o==="y",h=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,g=n[c]/2-a[c]/2;let S;switch(d){case"top":S={x:h,y:n.y-a.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:p};break;case"left":S={x:n.x-a.width,y:p};break;default:S={x:n.x,y:n.y}}switch(km(t)){case"start":S[i]-=g*(r&&f?-1:1);break;case"end":S[i]+=g*(r&&f?-1:1);break}return S}const Ace=(e,t,r)=>pe(void 0,null,function*(){const{placement:n="bottom",strategy:a="absolute",middleware:o=[],platform:i}=r,c=o.filter(Boolean),d=yield i.isRTL==null?void 0:i.isRTL(t);let f=yield i.getElementRects({reference:e,floating:t,strategy:a}),{x:h,y:p}=SM(f,n,d),g=n,S={},b=0;for(let v=0;v<c.length;v++){const{name:w,fn:C}=c[v],{x:j,y:E,data:N,reset:M}=yield C({x:h,y:p,initialPlacement:n,placement:g,strategy:a,middlewareData:S,rects:f,platform:i,elements:{reference:e,floating:t}});if(h=j!=null?j:h,p=E!=null?E:p,S=re(R({},S),{[w]:R(R({},S[w]),N)}),M&&b<=50){b++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(f=M.rects===!0?yield i.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:h,y:p}=SM(f,g,d)),v=-1;continue}}return{x:h,y:p,placement:g,strategy:a,middlewareData:S}});function fv(e,t){return pe(this,null,function*(){var r;t===void 0&&(t={});const{x:n,y:a,platform:o,rects:i,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:p="floating",altBoundary:g=!1,padding:S=0}=fc(t,e),b=Y$(S),w=c[g?p==="floating"?"reference":"floating":p],C=Bb(yield o.getClippingRect({element:(r=yield o.isElement==null?void 0:o.isElement(w))==null||r?w:w.contextElement||(yield o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:d})),j=p==="floating"?re(R({},i.floating),{x:n,y:a}):i.reference,E=yield o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating),N=(yield o.isElement==null?void 0:o.isElement(E))?(yield o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},M=Bb(o.convertOffsetParentRelativeRectToViewportRelativeRect?yield o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:j,offsetParent:E,strategy:d}):j);return{top:(C.top-M.top+b.top)/N.y,bottom:(M.bottom-C.bottom+b.bottom)/N.y,left:(C.left-M.left+b.left)/N.x,right:(M.right-C.right+b.right)/N.x}})}const jM=e=>({name:"arrow",options:e,fn(r){return pe(this,null,function*(){const{x:n,y:a,placement:o,rects:i,platform:c,elements:d}=r,{element:f,padding:h=0}=fc(e,r)||{};if(f==null)return{};const p=Y$(h),g={x:n,y:a},S=e6(o),b=JE(S),v=yield c.getDimensions(f),w=S==="y",C=w?"top":"left",j=w?"bottom":"right",E=w?"clientHeight":"clientWidth",N=i.reference[b]+i.reference[S]-g[S]-i.floating[b],M=g[S]-i.reference[S],P=yield c.getOffsetParent==null?void 0:c.getOffsetParent(f);let D=P?P[E]:0;(!D||!(yield c.isElement==null?void 0:c.isElement(P)))&&(D=d.floating[E]||i.floating[b]);const A=N/2-M/2,O=D/2-v[b]/2-1,$=$u(p[C],O),H=$u(p[j],O),z=$,I=D-v[b]-H,W=D/2-v[b]/2+A,_=c4(z,W,I),V=km(o)!=null&&W!=_&&i.reference[b]/2-(W<z?$:H)-v[b]/2<0?W<z?z-W:I-W:0;return{[S]:g[S]-V,data:{[S]:_,centerOffset:W-_+V}}})}}),Rce=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return pe(this,null,function*(){var n;const{placement:a,middlewareData:o,rects:i,initialPlacement:c,platform:d,elements:f}=r,z=fc(e,r),{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0}=z,w=Ce(z,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]),C=hc(a),j=hc(c)===c,E=yield d.isRTL==null?void 0:d.isRTL(f.floating),N=g||(j||!v?[Hb(c)]:Tce(c));!g&&b!=="none"&&N.push(...Pce(c,v,b,E));const M=[c,...N],P=yield fv(r,w),D=[];let A=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&D.push(P[C]),p){const I=_ce(a,i,E);D.push(P[I[0]],P[I[1]])}if(A=[...A,{placement:a,overflows:D}],!D.every(I=>I<=0)){var O,$;const I=(((O=o.flip)==null?void 0:O.index)||0)+1,W=M[I];if(W)return{data:{index:I,overflows:A},reset:{placement:W}};let _=($=A.filter(K=>K.overflows[0]<=0).sort((K,V)=>K.overflows[1]-V.overflows[1])[0])==null?void 0:$.placement;if(!_)switch(S){case"bestFit":{var H;const K=(H=A.map(V=>[V.placement,V.overflows.filter(U=>U>0).reduce((U,X)=>U+X,0)]).sort((V,U)=>V[1]-U[1])[0])==null?void 0:H[0];K&&(_=K);break}case"initialPlacement":_=c;break}if(a!==_)return{reset:{placement:_}}}return{}})}}};function EM(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function NM(e){return jce.some(t=>e[t]>=0)}const Lce=function(e){return e===void 0&&(e={}),{name:"hide",options:e,fn(r){return pe(this,null,function*(){const{rects:n}=r,i=fc(e,r),{strategy:a="referenceHidden"}=i,o=Ce(i,["strategy"]);switch(a){case"referenceHidden":{const c=yield fv(r,re(R({},o),{elementContext:"reference"})),d=EM(c,n.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:NM(d)}}}case"escaped":{const c=yield fv(r,re(R({},o),{altBoundary:!0})),d=EM(c,n.floating);return{data:{escapedOffsets:d,escaped:NM(d)}}}default:return{}}})}}};function Oce(e,t){return pe(this,null,function*(){const{placement:r,platform:n,elements:a}=e,o=yield n.isRTL==null?void 0:n.isRTL(a.floating),i=hc(r),c=km(r),d=Cm(r)==="y",f=["left","top"].includes(i)?-1:1,h=o&&d?-1:1,p=fc(t,e);let{mainAxis:g,crossAxis:S,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:R({mainAxis:0,crossAxis:0,alignmentAxis:null},p);return c&&typeof b=="number"&&(S=c==="end"?b*-1:b),d?{x:S*h,y:g*f}:{x:g*f,y:S*h}})}const Ice=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(r){return pe(this,null,function*(){const{x:n,y:a}=r,o=yield Oce(r,e);return{x:n+o.x,y:a+o.y,data:o}})}}},$ce=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(r){return pe(this,null,function*(){const{x:n,y:a,placement:o}=r,C=fc(e,r),{mainAxis:i=!0,crossAxis:c=!1,limiter:d={fn:j=>{let{x:E,y:N}=j;return{x:E,y:N}}}}=C,f=Ce(C,["mainAxis","crossAxis","limiter"]),h={x:n,y:a},p=yield fv(r,f),g=Cm(hc(o)),S=QE(g);let b=h[S],v=h[g];if(i){const j=S==="y"?"top":"left",E=S==="y"?"bottom":"right",N=b+p[j],M=b-p[E];b=c4(N,b,M)}if(c){const j=g==="y"?"top":"left",E=g==="y"?"bottom":"right",N=v+p[j],M=v-p[E];v=c4(N,v,M)}const w=d.fn(re(R({},r),{[S]:b,[g]:v}));return re(R({},w),{data:{x:w.x-n,y:w.y-a}})})}}},zce=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:a,rects:o,middlewareData:i}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=fc(e,t),h={x:r,y:n},p=Cm(a),g=QE(p);let S=h[g],b=h[p];const v=fc(c,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:R({mainAxis:0,crossAxis:0},v);if(d){const E=g==="y"?"height":"width",N=o.reference[g]-o.floating[E]+w.mainAxis,M=o.reference[g]+o.reference[E]-w.mainAxis;S<N?S=N:S>M&&(S=M)}if(f){var C,j;const E=g==="y"?"width":"height",N=["top","left"].includes(hc(a)),M=o.reference[p]-o.floating[E]+(N&&((C=i.offset)==null?void 0:C[p])||0)+(N?0:w.crossAxis),P=o.reference[p]+o.reference[E]+(N?0:((j=i.offset)==null?void 0:j[p])||0)-(N?w.crossAxis:0);b<M?b=M:b>P&&(b=P)}return{[g]:S,[p]:b}}}},Fce=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(r){return pe(this,null,function*(){const{placement:n,rects:a,platform:o,elements:i}=r,D=fc(e,r),{apply:c=()=>{}}=D,d=Ce(D,["apply"]),f=yield fv(r,d),h=hc(n),p=km(n),g=Cm(n)==="y",{width:S,height:b}=a.floating;let v,w;h==="top"||h==="bottom"?(v=h,w=p===((yield o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(w=h,v=p==="end"?"top":"bottom");const C=b-f[v],j=S-f[w],E=!r.middlewareData.shift;let N=C,M=j;if(g){const A=S-f.left-f.right;M=p||E?$u(j,A):A}else{const A=b-f.top-f.bottom;N=p||E?$u(C,A):A}if(E&&!p){const A=vo(f.left,0),O=vo(f.right,0),$=vo(f.top,0),H=vo(f.bottom,0);g?M=S-2*(A!==0||O!==0?A+O:vo(f.left,f.right)):N=b-2*($!==0||H!==0?$+H:vo(f.top,f.bottom))}yield c(re(R({},r),{availableWidth:M,availableHeight:N}));const P=yield o.getDimensions(i.floating);return S!==P.width||b!==P.height?{reset:{rects:!0}}:{}})}}};function Fu(e){return Z$(e)?(e.nodeName||"").toLowerCase():"#document"}function ko(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bc(e){var t;return(t=(Z$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Z$(e){return e instanceof Node||e instanceof ko(e).Node}function pc(e){return e instanceof Element||e instanceof ko(e).Element}function kl(e){return e instanceof HTMLElement||e instanceof ko(e).HTMLElement}function _M(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof ko(e).ShadowRoot}function s1(e){const{overflow:t,overflowX:r,overflowY:n,display:a}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(a)}function Hce(e){return["table","td","th"].includes(Fu(e))}function t6(e){const t=r6(),r=ni(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function r6(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uw(e){return["html","body","#document"].includes(Fu(e))}function ni(e){return ko(e).getComputedStyle(e)}function dw(e){return pc(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zp(e){if(Fu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||_M(e)&&e.host||bc(e);return _M(t)?t.host:t}function X$(e){const t=Zp(e);return uw(t)?e.ownerDocument?e.ownerDocument.body:e.body:kl(t)&&s1(t)?t:X$(t)}function Ub(e,t){var r;t===void 0&&(t=[]);const n=X$(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=ko(n);return a?t.concat(o,o.visualViewport||[],s1(n)?n:[]):t.concat(n,Ub(n))}function Q$(e){const t=ni(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const a=kl(e),o=a?e.offsetWidth:r,i=a?e.offsetHeight:n,c=Fb(r)!==o||Fb(n)!==i;return c&&(r=o,n=i),{width:r,height:n,$:c}}function n6(e){return pc(e)?e:e.contextElement}function pp(e){const t=n6(e);if(!kl(t))return zu(1);const r=t.getBoundingClientRect(),{width:n,height:a,$:o}=Q$(t);let i=(o?Fb(r.width):r.width)/n,c=(o?Fb(r.height):r.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Bce=zu(0);function J$(e){const t=ko(e);return!r6()||!t.visualViewport?Bce:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Uce(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ko(e)?!1:t}function mf(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const a=e.getBoundingClientRect(),o=n6(e);let i=zu(1);t&&(n?pc(n)&&(i=pp(n)):i=pp(e));const c=Uce(o,r,n)?J$(o):zu(0);let d=(a.left+c.x)/i.x,f=(a.top+c.y)/i.y,h=a.width/i.x,p=a.height/i.y;if(o){const g=ko(o),S=n&&pc(n)?ko(n):n;let b=g.frameElement;for(;b&&n&&S!==g;){const v=pp(b),w=b.getBoundingClientRect(),C=ni(b),j=w.left+(b.clientLeft+parseFloat(C.paddingLeft))*v.x,E=w.top+(b.clientTop+parseFloat(C.paddingTop))*v.y;d*=v.x,f*=v.y,h*=v.x,p*=v.y,d+=j,f+=E,b=ko(b).frameElement}}return Bb({width:h,height:p,x:d,y:f})}function Wce(e){let{rect:t,offsetParent:r,strategy:n}=e;const a=kl(r),o=bc(r);if(r===o)return t;let i={scrollLeft:0,scrollTop:0},c=zu(1);const d=zu(0);if((a||!a&&n!=="fixed")&&((Fu(r)!=="body"||s1(o))&&(i=dw(r)),kl(r))){const f=mf(r);c=pp(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-i.scrollLeft*c.x+d.x,y:t.y*c.y-i.scrollTop*c.y+d.y}}function Vce(e){return Array.from(e.getClientRects())}function ez(e){return mf(bc(e)).left+dw(e).scrollLeft}function qce(e){const t=bc(e),r=dw(e),n=e.ownerDocument.body,a=vo(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=vo(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ez(e);const c=-r.scrollTop;return ni(n).direction==="rtl"&&(i+=vo(t.clientWidth,n.clientWidth)-a),{width:a,height:o,x:i,y:c}}function Kce(e,t){const r=ko(e),n=bc(e),a=r.visualViewport;let o=n.clientWidth,i=n.clientHeight,c=0,d=0;if(a){o=a.width,i=a.height;const f=r6();(!f||f&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:o,height:i,x:c,y:d}}function Gce(e,t){const r=mf(e,!0,t==="fixed"),n=r.top+e.clientTop,a=r.left+e.clientLeft,o=kl(e)?pp(e):zu(1),i=e.clientWidth*o.x,c=e.clientHeight*o.y,d=a*o.x,f=n*o.y;return{width:i,height:c,x:d,y:f}}function TM(e,t,r){let n;if(t==="viewport")n=Kce(e,r);else if(t==="document")n=qce(bc(e));else if(pc(t))n=Gce(t,r);else{const a=J$(e);n=re(R({},t),{x:t.x-a.x,y:t.y-a.y})}return Bb(n)}function tz(e,t){const r=Zp(e);return r===t||!pc(r)||uw(r)?!1:ni(r).position==="fixed"||tz(r,t)}function Yce(e,t){const r=t.get(e);if(r)return r;let n=Ub(e).filter(c=>pc(c)&&Fu(c)!=="body"),a=null;const o=ni(e).position==="fixed";let i=o?Zp(e):e;for(;pc(i)&&!uw(i);){const c=ni(i),d=t6(i);!d&&c.position==="fixed"&&(a=null),(o?!d&&!a:!d&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||s1(i)&&!d&&tz(e,i))?n=n.filter(h=>h!==i):a=c,i=Zp(i)}return t.set(e,n),n}function Zce(e){let{element:t,boundary:r,rootBoundary:n,strategy:a}=e;const i=[...r==="clippingAncestors"?Yce(t,this._c):[].concat(r),n],c=i[0],d=i.reduce((f,h)=>{const p=TM(t,h,a);return f.top=vo(p.top,f.top),f.right=$u(p.right,f.right),f.bottom=$u(p.bottom,f.bottom),f.left=vo(p.left,f.left),f},TM(t,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Xce(e){return Q$(e)}function Qce(e,t,r){const n=kl(t),a=bc(t),o=r==="fixed",i=mf(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const d=zu(0);if(n||!n&&!o)if((Fu(t)!=="body"||s1(a))&&(c=dw(t)),n){const f=mf(t,!0,o,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else a&&(d.x=ez(a));return{x:i.left+c.scrollLeft-d.x,y:i.top+c.scrollTop-d.y,width:i.width,height:i.height}}function MM(e,t){return!kl(e)||ni(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jce(e){let t=Zp(e);for(;kl(t)&&!uw(t);){if(t6(t))return t;t=Zp(t)}return null}function rz(e,t){const r=ko(e);if(!kl(e))return r;let n=MM(e,t);for(;n&&Hce(n)&&ni(n).position==="static";)n=MM(n,t);return n&&(Fu(n)==="html"||Fu(n)==="body"&&ni(n).position==="static"&&!t6(n))?r:n||Jce(e)||r}const eue=function(e){return pe(this,null,function*(){let{reference:t,floating:r,strategy:n}=e;const a=this.getOffsetParent||rz,o=this.getDimensions;return{reference:Qce(t,yield a(r),n),floating:R({x:0,y:0},yield o(r))}})};function tue(e){return ni(e).direction==="rtl"}const rue={convertOffsetParentRelativeRectToViewportRelativeRect:Wce,getDocumentElement:bc,getClippingRect:Zce,getOffsetParent:rz,getElementRects:eue,getClientRects:Vce,getDimensions:Xce,getScale:pp,isElement:pc,isRTL:tue};function nue(e,t){let r=null,n;const a=bc(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}function i(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const{left:f,top:h,width:p,height:g}=e.getBoundingClientRect();if(c||t(),!p||!g)return;const S=Mx(h),b=Mx(a.clientWidth-(f+p)),v=Mx(a.clientHeight-(h+g)),w=Mx(f),j={rootMargin:-S+"px "+-b+"px "+-v+"px "+-w+"px",threshold:vo(0,$u(1,d))||1};let E=!0;function N(M){const P=M[0].intersectionRatio;if(P!==d){if(!E)return i();P?i(!1,P):n=setTimeout(()=>{i(!1,1e-7)},100)}E=!1}try{r=new IntersectionObserver(N,re(R({},j),{root:a.ownerDocument}))}catch(M){r=new IntersectionObserver(N,j)}r.observe(e)}return i(!0),o}function sue(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=n,f=n6(e),h=a||o?[...f?Ub(f):[],...Ub(t)]:[];h.forEach(C=>{a&&C.addEventListener("scroll",r,{passive:!0}),o&&C.addEventListener("resize",r)});const p=f&&c?nue(f,r):null;let g=-1,S=null;i&&(S=new ResizeObserver(C=>{let[j]=C;j&&j.target===f&&S&&(S.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{S&&S.observe(t)})),r()}),f&&!d&&S.observe(f),S.observe(t));let b,v=d?mf(e):null;d&&w();function w(){const C=mf(e);v&&(C.x!==v.x||C.y!==v.y||C.width!==v.width||C.height!==v.height)&&r(),v=C,b=requestAnimationFrame(w)}return r(),()=>{h.forEach(C=>{a&&C.removeEventListener("scroll",r),o&&C.removeEventListener("resize",r)}),p&&p(),S&&S.disconnect(),S=null,d&&cancelAnimationFrame(b)}}const aue=(e,t,r)=>{const n=new Map,a=R({platform:rue},r),o=re(R({},a.platform),{_c:n});return Ace(e,t,re(R({},a),{platform:o}))},oue=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:a}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?jM({element:n.current,padding:a}).fn(r):{}:n?jM({element:n,padding:a}).fn(r):{}}}};var jy=typeof document!="undefined"?m.useLayoutEffect:m.useEffect;function Wb(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 r,n,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Wb(e[n],t[n]))return!1;return!0}if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,a[n]))return!1;for(n=r;n--!==0;){const o=a[n];if(!(o==="_owner"&&e.$$typeof)&&!Wb(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function nz(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function PM(e,t){const r=nz(e);return Math.round(t*r)/r}function DM(e){const t=m.useRef(e);return jy(()=>{t.current=e}),t}function iue(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:a,elements:{reference:o,floating:i}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[h,p]=m.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[g,S]=m.useState(n);Wb(g,n)||S(n);const[b,v]=m.useState(null),[w,C]=m.useState(null),j=m.useCallback(K=>{K!=P.current&&(P.current=K,v(K))},[v]),E=m.useCallback(K=>{K!==D.current&&(D.current=K,C(K))},[C]),N=o||b,M=i||w,P=m.useRef(null),D=m.useRef(null),A=m.useRef(h),O=DM(d),$=DM(a),H=m.useCallback(()=>{if(!P.current||!D.current)return;const K={placement:t,strategy:r,middleware:g};$.current&&(K.platform=$.current),aue(P.current,D.current,K).then(V=>{const U=re(R({},V),{isPositioned:!0});z.current&&!Wb(A.current,U)&&(A.current=U,sa.flushSync(()=>{p(U)}))})},[g,t,r,$]);jy(()=>{f===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,p(K=>re(R({},K),{isPositioned:!1})))},[f]);const z=m.useRef(!1);jy(()=>(z.current=!0,()=>{z.current=!1}),[]),jy(()=>{if(N&&(P.current=N),M&&(D.current=M),N&&M){if(O.current)return O.current(N,M,H);H()}},[N,M,H,O]);const I=m.useMemo(()=>({reference:P,floating:D,setReference:j,setFloating:E}),[j,E]),W=m.useMemo(()=>({reference:N,floating:M}),[N,M]),_=m.useMemo(()=>{const K={position:r,left:0,top:0};if(!W.floating)return K;const V=PM(W.floating,h.x),U=PM(W.floating,h.y);return c?R(re(R({},K),{transform:"translate("+V+"px, "+U+"px)"}),nz(W.floating)>=1.5&&{willChange:"transform"}):{position:r,left:V,top:U}},[r,c,W.floating,h.x,h.y]);return m.useMemo(()=>re(R({},h),{update:H,refs:I,elements:W,floatingStyles:_}),[h,H,I,W,_])}function sz(e){const[t,r]=m.useState(void 0);return ri(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let i,c;if("borderBoxSize"in o){const d=o.borderBoxSize,f=Array.isArray(d)?d[0]:d;i=f.inlineSize,c=f.blockSize}else i=e.offsetWidth,c=e.offsetHeight;r({width:i,height:c})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const az="Popper",[oz,Yu]=Pa(az),[lue,iz]=oz(az),cue=e=>{const{__scopePopper:t,children:r}=e,[n,a]=m.useState(null);return m.createElement(lue,{scope:t,anchor:n,onAnchorChange:a},r)},uue="PopperAnchor",due=m.forwardRef((e,t)=>{const d=e,{__scopePopper:r,virtualRef:n}=d,a=Ce(d,["__scopePopper","virtualRef"]),o=iz(uue,r),i=m.useRef(null),c=Zr(t,i);return m.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||i.current)}),n?null:m.createElement(Cr.div,Be({},a,{ref:c}))}),lz="PopperContent",[fue,BEe]=oz(lz),hue=m.forwardRef((e,t)=>{var r,n,a,o,i,c,d,f;const je=e,{__scopePopper:h,side:p="bottom",sideOffset:g=0,align:S="center",alignOffset:b=0,arrowPadding:v=0,avoidCollisions:w=!0,collisionBoundary:C=[],collisionPadding:j=0,sticky:E="partial",hideWhenDetached:N=!1,updatePositionStrategy:M="optimized",onPlaced:P}=je,D=Ce(je,["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"]),A=iz(lz,h),[O,$]=m.useState(null),H=Zr(t,Le=>$(Le)),[z,I]=m.useState(null),W=sz(z),_=(r=W==null?void 0:W.width)!==null&&r!==void 0?r:0,K=(n=W==null?void 0:W.height)!==null&&n!==void 0?n:0,V=p+(S!=="center"?"-"+S:""),U=typeof j=="number"?j:R({top:0,right:0,bottom:0,left:0},j),X=Array.isArray(C)?C:[C],G=X.length>0,F={padding:U,boundary:X.filter(pue),altBoundary:G},{refs:q,floatingStyles:Y,placement:se,isPositioned:ee,middlewareData:ae}=iue({strategy:"fixed",placement:V,whileElementsMounted:(...Le)=>sue(...Le,{animationFrame:M==="always"}),elements:{reference:A.anchor},middleware:[Ice({mainAxis:g+K,alignmentAxis:b}),w&&$ce(R({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?zce():void 0},F)),w&&Rce(R({},F)),Fce(re(R({},F),{apply:({elements:Le,rects:Ee,availableWidth:He,availableHeight:Qe})=>{const{width:Ze,height:mt}=Ee.reference,Ke=Le.floating.style;Ke.setProperty("--radix-popper-available-width","".concat(He,"px")),Ke.setProperty("--radix-popper-available-height","".concat(Qe,"px")),Ke.setProperty("--radix-popper-anchor-width","".concat(Ze,"px")),Ke.setProperty("--radix-popper-anchor-height","".concat(mt,"px"))}})),z&&oue({element:z,padding:v}),mue({arrowWidth:_,arrowHeight:K}),N&&Lce(R({strategy:"referenceHidden"},F))]}),[oe,le]=cz(se),ue=Ja(P);ri(()=>{ee&&(ue==null||ue())},[ee,ue]);const ce=(a=ae.arrow)===null||a===void 0?void 0:a.x,he=(o=ae.arrow)===null||o===void 0?void 0:o.y,we=((i=ae.arrow)===null||i===void 0?void 0:i.centerOffset)!==0,[Se,Ae]=m.useState();return ri(()=>{O&&Ae(window.getComputedStyle(O).zIndex)},[O]),m.createElement("div",{ref:q.setFloating,"data-radix-popper-content-wrapper":"",style:re(R({},Y),{transform:ee?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(c=ae.transformOrigin)===null||c===void 0?void 0:c.x,(d=ae.transformOrigin)===null||d===void 0?void 0:d.y].join(" ")}),dir:e.dir},m.createElement(fue,{scope:h,placedSide:oe,onArrowChange:I,arrowX:ce,arrowY:he,shouldHideArrow:we},m.createElement(Cr.div,Be({"data-side":oe,"data-align":le},D,{ref:H,style:re(R({},D.style),{animation:ee?void 0:"none",opacity:(f=ae.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0})}))))});function pue(e){return e!==null}const mue=e=>({name:"transformOrigin",options:e,fn(t){var r,n,a,o,i;const{placement:c,rects:d,middlewareData:f}=t,p=((r=f.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,g=p?0:e.arrowWidth,S=p?0:e.arrowHeight,[b,v]=cz(c),w={start:"0%",center:"50%",end:"100%"}[v],C=((n=(a=f.arrow)===null||a===void 0?void 0:a.x)!==null&&n!==void 0?n:0)+g/2,j=((o=(i=f.arrow)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0)+S/2;let E="",N="";return b==="bottom"?(E=p?w:"".concat(C,"px"),N="".concat(-S,"px")):b==="top"?(E=p?w:"".concat(C,"px"),N="".concat(d.floating.height+S,"px")):b==="right"?(E="".concat(-S,"px"),N=p?w:"".concat(j,"px")):b==="left"&&(E="".concat(d.floating.width+S,"px"),N=p?w:"".concat(j,"px")),{data:{x:E,y:N}}}});function cz(e){const[t,r="center"]=e.split("-");return[t,r]}const a1=cue,fw=due,hw=hue;function fa({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,a]=gue({defaultProp:t,onChange:r}),o=e!==void 0,i=o?e:n,c=Ja(r),d=m.useCallback(f=>{if(o){const p=typeof f=="function"?f(e):f;p!==e&&c(p)}else a(f)},[o,e,a,c]);return[i,d]}function gue({defaultProp:e,onChange:t}){const r=m.useState(e),[n]=r,a=m.useRef(n),o=Ja(t);return m.useEffect(()=>{a.current!==n&&(o(n),a.current=n)},[n,a,o]),r}function uz(e){const t=m.useRef({value:e,previous:e});return m.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const dz=m.forwardRef((e,t)=>m.createElement(Cr.span,Be({},e,{ref:t,style:R({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)}))),vue=dz;var xue=function(e){if(typeof document=="undefined")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ch=new WeakMap,Px=new WeakMap,Dx={},m5=0,fz=function(e){return e&&(e.host||fz(e.parentNode))},yue=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=fz(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},bue=function(e,t,r,n){var a=yue(t,Array.isArray(e)?e:[e]);Dx[r]||(Dx[r]=new WeakMap);var o=Dx[r],i=[],c=new Set,d=new Set(a),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};a.forEach(f);var h=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))h(g);else{var S=g.getAttribute(n),b=S!==null&&S!=="false",v=(ch.get(g)||0)+1,w=(o.get(g)||0)+1;ch.set(g,v),o.set(g,w),i.push(g),v===1&&b&&Px.set(g,!0),w===1&&g.setAttribute(r,"true"),b||g.setAttribute(n,"true")}})};return h(t),c.clear(),m5++,function(){i.forEach(function(p){var g=ch.get(p)-1,S=o.get(p)-1;ch.set(p,g),o.set(p,S),g||(Px.has(p)||p.removeAttribute(n),Px.delete(p)),S||p.removeAttribute(r)}),m5--,m5||(ch=new WeakMap,ch=new WeakMap,Px=new WeakMap,Dx={})}},pw=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||xue(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),bue(n,a,r,"aria-hidden")):function(){return null}},cn=function(){return cn=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},cn.apply(this,arguments)};function o1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function mw(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Yd="right-scroll-bar-position",Zd="width-before-scroll-bar",wue="with-scroll-bars-hidden",kue="--removed-body-scroll-bar-size";function Cue(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sue(e,t){var r=m.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}function gw(e,t){return Sue(t||null,function(r){return e.forEach(function(n){return Cue(n,r)})})}function jue(e){return e}function Eue(e,t){t===void 0&&(t=jue);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var i=t(o,n);return r.push(i),function(){r=r.filter(function(c){return c!==i})}},assignSyncMedium:function(o){for(n=!0;r.length;){var i=r;r=[],i.forEach(o)}r={push:function(c){return o(c)},filter:function(){return r}}},assignMedium:function(o){n=!0;var i=[];if(r.length){var c=r;r=[],c.forEach(o),i=r}var d=function(){var h=i;i=[],h.forEach(o)},f=function(){return Promise.resolve().then(d)};f(),r={push:function(h){i.push(h),f()},filter:function(h){return i=i.filter(h),r}}}};return a}function vw(e){e===void 0&&(e={});var t=Eue(null);return t.options=cn({async:!0,ssr:!1},e),t}var hz=function(e){var t=e.sideCar,r=o1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return m.createElement(n,cn({},r))};hz.isSideCarExport=!0;function xw(e,t){return e.useMedium(t),hz}var pz=vw(),g5=function(){},yw=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:g5,onWheelCapture:g5,onTouchMoveCapture:g5}),a=n[0],o=n[1],i=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,g=e.sideCar,S=e.noIsolation,b=e.inert,v=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,j=o1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=g,N=gw([r,t]),M=cn(cn({},j),a);return m.createElement(m.Fragment,null,h&&m.createElement(E,{sideCar:pz,removeScrollBar:f,shards:p,noIsolation:S,inert:b,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?m.cloneElement(m.Children.only(c),cn(cn({},M),{ref:N})):m.createElement(C,cn({},M,{className:d,ref:N}),c))});yw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yw.classNames={fullWidth:Zd,zeroRight:Yd};var Nue=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function _ue(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nue();return t&&e.setAttribute("nonce",t),e}function Tue(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mue(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Pue=function(){var e=0,t=null;return{add:function(r){e==0&&(t=_ue())&&(Tue(t,r),Mue(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Due=function(){var e=Pue();return function(t,r){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},i1=function(){var e=Due(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},Aue={left:0,top:0,right:0,gap:0},v5=function(e){return parseInt(e||"",10)||0},Rue=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[v5(r),v5(n),v5(a)]},Lue=function(e){if(e===void 0&&(e="margin"),typeof window=="undefined")return Aue;var t=Rue(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Oue=i1(),Iue=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,c=e.gap;return r===void 0&&(r="margin"),"\n .".concat(wue," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(c,"px ").concat(n,";\n }\n body {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),r==="margin"&&"\n padding-left: ".concat(a,"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(n,";\n "),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Yd," {\n right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(Zd," {\n margin-right: ").concat(c,"px ").concat(n,";\n }\n \n .").concat(Yd," .").concat(Yd," {\n right: 0 ").concat(n,";\n }\n \n .").concat(Zd," .").concat(Zd," {\n margin-right: 0 ").concat(n,";\n }\n \n body {\n ").concat(kue,": ").concat(c,"px;\n }\n")},bw=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n,o=m.useMemo(function(){return Lue(a)},[a]);return m.createElement(Oue,{styles:Iue(o,!t,a,r?"":"!important")})},d4=!1;if(typeof window!="undefined")try{var Ax=Object.defineProperty({},"passive",{get:function(){return d4=!0,!0}});window.addEventListener("test",Ax,Ax),window.removeEventListener("test",Ax,Ax)}catch(e){d4=!1}var uh=d4?{passive:!1}:!1,$ue=function(e){return e.tagName==="TEXTAREA"},mz=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!$ue(e)&&r[t]==="visible")},zue=function(e){return mz(e,"overflowY")},Fue=function(e){return mz(e,"overflowX")},AM=function(e,t){var r=t;do{typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&(r=r.host);var n=gz(e,r);if(n){var a=vz(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Hue=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Bue=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},gz=function(e,t){return e==="v"?zue(t):Fue(t)},vz=function(e,t){return e==="v"?Hue(t):Bue(t)},Uue=function(e,t){return e==="h"&&t==="rtl"?-1:1},Wue=function(e,t,r,n,a){var o=Uue(e,window.getComputedStyle(t).direction),i=o*n,c=r.target,d=t.contains(c),f=!1,h=i>0,p=0,g=0;do{var S=vz(e,c),b=S[0],v=S[1],w=S[2],C=v-w-o*b;(b||C)&&gz(e,c)&&(p+=C,g+=b),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(a&&p===0||!a&&i>p)||!h&&(a&&g===0||!a&&-i>g))&&(f=!0),f},Rx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},RM=function(e){return[e.deltaX,e.deltaY]},LM=function(e){return e&&"current"in e?e.current:e},Vue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},que=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Kue=0,dh=[];function Gue(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),a=m.useState(Kue++)[0],o=m.useState(function(){return i1()})[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=mw([e.lockRef.current],(e.shards||[]).map(LM),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(v,w){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var C=Rx(v),j=r.current,E="deltaX"in v?v.deltaX:j[0]-C[0],N="deltaY"in v?v.deltaY:j[1]-C[1],M,P=v.target,D=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in v&&D==="h"&&P.type==="range")return!1;var A=AM(D,P);if(!A)return!0;if(A?M=D:(M=D==="v"?"h":"v",A=AM(D,P)),!A)return!1;if(!n.current&&"changedTouches"in v&&(E||N)&&(n.current=M),!M)return!0;var O=n.current||M;return Wue(O,w,v,O==="h"?E:N,!0)},[]),d=m.useCallback(function(v){var w=v;if(!(!dh.length||dh[dh.length-1]!==o)){var C="deltaY"in w?RM(w):Rx(w),j=t.current.filter(function(M){return M.name===w.type&&M.target===w.target&&Vue(M.delta,C)})[0];if(j&&j.should){w.cancelable&&w.preventDefault();return}if(!j){var E=(i.current.shards||[]).map(LM).filter(Boolean).filter(function(M){return M.contains(w.target)}),N=E.length>0?c(w,E[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),f=m.useCallback(function(v,w,C,j){var E={name:v,delta:w,target:C,should:j};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),h=m.useCallback(function(v){r.current=Rx(v),n.current=void 0},[]),p=m.useCallback(function(v){f(v.type,RM(v),v.target,c(v,e.lockRef.current))},[]),g=m.useCallback(function(v){f(v.type,Rx(v),v.target,c(v,e.lockRef.current))},[]);m.useEffect(function(){return dh.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,uh),document.addEventListener("touchmove",d,uh),document.addEventListener("touchstart",h,uh),function(){dh=dh.filter(function(v){return v!==o}),document.removeEventListener("wheel",d,uh),document.removeEventListener("touchmove",d,uh),document.removeEventListener("touchstart",h,uh)}},[]);var S=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(o,{styles:que(a)}):null,S?m.createElement(bw,{gapMode:"margin"}):null)}const Yue=xw(pz,Gue);var xz=m.forwardRef(function(e,t){return m.createElement(yw,cn({},e,{ref:t,sideCar:Yue}))});xz.classNames=yw.classNames;const Zue=xz,Xue=[" ","Enter","ArrowUp","ArrowDown"],Que=[" ","Enter"],ww="Select",[kw,s6,Jue]=r1(ww),[Sm,UEe]=Pa(ww,[Jue,Yu]),a6=Yu(),[ede,Df]=Sm(ww),[tde,rde]=Sm(ww),nde=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:a,onOpenChange:o,value:i,defaultValue:c,onValueChange:d,dir:f,name:h,autoComplete:p,disabled:g,required:S}=e,b=a6(t),[v,w]=m.useState(null),[C,j]=m.useState(null),[E,N]=m.useState(!1),M=wm(f),[P=!1,D]=fa({prop:n,defaultProp:a,onChange:o}),[A,O]=fa({prop:i,defaultProp:c,onChange:d}),$=m.useRef(null),H=v?!!v.closest("form"):!0,[z,I]=m.useState(new Set),W=Array.from(z).map(_=>_.props.value).join(";");return m.createElement(a1,b,m.createElement(ede,{required:S,scope:t,trigger:v,onTriggerChange:w,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:E,onValueNodeHasChildrenChange:N,contentId:Ms(),value:A,onValueChange:O,open:P,onOpenChange:D,dir:M,triggerPointerDownPosRef:$,disabled:g},m.createElement(kw.Provider,{scope:t},m.createElement(tde,{scope:e.__scopeSelect,onNativeOptionAdd:m.useCallback(_=>{I(K=>new Set(K).add(_))},[]),onNativeOptionRemove:m.useCallback(_=>{I(K=>{const V=new Set(K);return V.delete(_),V})},[])},r)),H?m.createElement(kz,{key:W,"aria-hidden":!0,required:S,tabIndex:-1,name:h,autoComplete:p,value:A,onChange:_=>O(_.target.value),disabled:g},A===void 0?m.createElement("option",{value:""}):null,Array.from(z)):null))},sde="SelectTrigger",ade=m.forwardRef((e,t)=>{const b=e,{__scopeSelect:r,disabled:n=!1}=b,a=Ce(b,["__scopeSelect","disabled"]),o=a6(r),i=Df(sde,r),c=i.disabled||n,d=Zr(t,i.onTriggerChange),f=s6(r),[h,p,g]=Cz(v=>{const w=f().filter(E=>!E.disabled),C=w.find(E=>E.value===i.value),j=Sz(w,v,C);j!==void 0&&i.onValueChange(j.value)}),S=()=>{c||(i.onOpenChange(!0),g())};return m.createElement(fw,Be({asChild:!0},o),m.createElement(Cr.button,Be({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":wz(i.value)?"":void 0},a,{ref:d,onClick:jt(a.onClick,v=>{v.currentTarget.focus()}),onPointerDown:jt(a.onPointerDown,v=>{const w=v.target;w.hasPointerCapture(v.pointerId)&&w.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&(S(),i.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)},v.preventDefault())}),onKeyDown:jt(a.onKeyDown,v=>{const w=h.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&p(v.key),!(w&&v.key===" ")&&Xue.includes(v.key)&&(S(),v.preventDefault())})})))}),ode="SelectValue",ide=m.forwardRef((e,t)=>{const g=e,{__scopeSelect:r,className:n,style:a,children:o,placeholder:i=""}=g,c=Ce(g,["__scopeSelect","className","style","children","placeholder"]),d=Df(ode,r),{onValueNodeHasChildrenChange:f}=d,h=o!==void 0,p=Zr(t,d.onValueNodeChange);return ri(()=>{f(h)},[f,h]),m.createElement(Cr.span,Be({},c,{ref:p,style:{pointerEvents:"none"}}),wz(d.value)?m.createElement(m.Fragment,null,i):o)}),lde=e=>m.createElement(Ku,Be({asChild:!0},e)),Xp="SelectContent",cde=m.forwardRef((e,t)=>{const r=Df(Xp,e.__scopeSelect),[n,a]=m.useState();if(ri(()=>{a(new DocumentFragment)},[]),!r.open){const o=n;return o?sa.createPortal(m.createElement(yz,{scope:e.__scopeSelect},m.createElement(kw.Slot,{scope:e.__scopeSelect},m.createElement("div",null,e.children))),o):null}return m.createElement(ude,Be({},e,{ref:t}))}),Hl=10,[yz,Cw]=Sm(Xp),ude=m.forwardRef((e,t)=>{const oe=e,{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:i,side:c,sideOffset:d,align:f,alignOffset:h,arrowPadding:p,collisionBoundary:g,collisionPadding:S,sticky:b,hideWhenDetached:v,avoidCollisions:w}=oe,C=Ce(oe,["__scopeSelect","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"]),j=Df(Xp,r),[E,N]=m.useState(null),[M,P]=m.useState(null),D=Zr(t,le=>N(le)),[A,O]=m.useState(null),[$,H]=m.useState(null),z=s6(r),[I,W]=m.useState(!1),_=m.useRef(!1);m.useEffect(()=>{if(E)return pw(E)},[E]),lw();const K=m.useCallback(le=>{const[ue,...ce]=z().map(Se=>Se.ref.current),[he]=ce.slice(-1),we=document.activeElement;for(const Se of le)if(Se===we||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ue&&M&&(M.scrollTop=0),Se===he&&M&&(M.scrollTop=M.scrollHeight),Se==null||Se.focus(),document.activeElement!==we))return},[z,M]),V=m.useCallback(()=>K([A,E]),[K,A,E]);m.useEffect(()=>{I&&V()},[I,V]);const{onOpenChange:U,triggerPointerDownPosRef:X}=j;m.useEffect(()=>{if(E){let le={x:0,y:0};const ue=he=>{var we,Se,Ae,je;le={x:Math.abs(Math.round(he.pageX)-((we=(Se=X.current)===null||Se===void 0?void 0:Se.x)!==null&&we!==void 0?we:0)),y:Math.abs(Math.round(he.pageY)-((Ae=(je=X.current)===null||je===void 0?void 0:je.y)!==null&&Ae!==void 0?Ae:0))}},ce=he=>{le.x<=10&&le.y<=10?he.preventDefault():E.contains(he.target)||U(!1),document.removeEventListener("pointermove",ue),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",ue),document.addEventListener("pointerup",ce,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ue),document.removeEventListener("pointerup",ce,{capture:!0})}}},[E,U,X]),m.useEffect(()=>{const le=()=>U(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[U]);const[G,F]=Cz(le=>{const ue=z().filter(we=>!we.disabled),ce=ue.find(we=>we.ref.current===document.activeElement),he=Sz(ue,le,ce);he&&setTimeout(()=>he.ref.current.focus())}),q=m.useCallback((le,ue,ce)=>{const he=!_.current&&!ce;(j.value!==void 0&&j.value===ue||he)&&(O(le),he&&(_.current=!0))},[j.value]),Y=m.useCallback(()=>E==null?void 0:E.focus(),[E]),se=m.useCallback((le,ue,ce)=>{const he=!_.current&&!ce;(j.value!==void 0&&j.value===ue||he)&&H(le)},[j.value]),ee=n==="popper"?OM:dde,ae=ee===OM?{side:c,sideOffset:d,align:f,alignOffset:h,arrowPadding:p,collisionBoundary:g,collisionPadding:S,sticky:b,hideWhenDetached:v,avoidCollisions:w}:{};return m.createElement(yz,{scope:r,content:E,viewport:M,onViewportChange:P,itemRefCallback:q,selectedItem:A,onItemLeave:Y,itemTextRefCallback:se,focusSelectedItem:V,selectedItemText:$,position:n,isPositioned:I,searchRef:G},m.createElement(Zue,{as:Au,allowPinchZoom:!0},m.createElement(cw,{asChild:!0,trapped:j.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:jt(a,le=>{var ue;(ue=j.trigger)===null||ue===void 0||ue.focus({preventScroll:!0}),le.preventDefault()})},m.createElement(n1,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>j.onOpenChange(!1)},m.createElement(ee,Be({role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:le=>le.preventDefault()},C,ae,{onPlaced:()=>W(!0),ref:D,style:R({display:"flex",flexDirection:"column",outline:"none"},C.style),onKeyDown:jt(C.onKeyDown,le=>{const ue=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ue&&le.key.length===1&&F(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let he=z().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(le.key)&&(he=he.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const we=le.target,Se=he.indexOf(we);he=he.slice(Se+1)}setTimeout(()=>K(he)),le.preventDefault()}})}))))))}),dde=m.forwardRef((e,t)=>{const D=e,{__scopeSelect:r,onPlaced:n}=D,a=Ce(D,["__scopeSelect","onPlaced"]),o=Df(Xp,r),i=Cw(Xp,r),[c,d]=m.useState(null),[f,h]=m.useState(null),p=Zr(t,A=>h(A)),g=s6(r),S=m.useRef(!1),b=m.useRef(!0),{viewport:v,selectedItem:w,selectedItemText:C,focusSelectedItem:j}=i,E=m.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&f&&v&&w&&C){const A=o.trigger.getBoundingClientRect(),O=f.getBoundingClientRect(),$=o.valueNode.getBoundingClientRect(),H=C.getBoundingClientRect();if(o.dir!=="rtl"){const we=H.left-O.left,Se=$.left-we,Ae=A.left-Se,je=A.width+Ae,Le=Math.max(je,O.width),Ee=window.innerWidth-Hl,He=gM(Se,[Hl,Ee-Le]);c.style.minWidth=je+"px",c.style.left=He+"px"}else{const we=O.right-H.right,Se=window.innerWidth-$.right-we,Ae=window.innerWidth-A.right-Se,je=A.width+Ae,Le=Math.max(je,O.width),Ee=window.innerWidth-Hl,He=gM(Se,[Hl,Ee-Le]);c.style.minWidth=je+"px",c.style.right=He+"px"}const z=g(),I=window.innerHeight-Hl*2,W=v.scrollHeight,_=window.getComputedStyle(f),K=parseInt(_.borderTopWidth,10),V=parseInt(_.paddingTop,10),U=parseInt(_.borderBottomWidth,10),X=parseInt(_.paddingBottom,10),G=K+V+W+X+U,F=Math.min(w.offsetHeight*5,G),q=window.getComputedStyle(v),Y=parseInt(q.paddingTop,10),se=parseInt(q.paddingBottom,10),ee=A.top+A.height/2-Hl,ae=I-ee,oe=w.offsetHeight/2,le=w.offsetTop+oe,ue=K+V+le,ce=G-ue;if(ue<=ee){const we=w===z[z.length-1].ref.current;c.style.bottom="0px";const Se=f.clientHeight-v.offsetTop-v.offsetHeight,Ae=Math.max(ae,oe+(we?se:0)+Se+U),je=ue+Ae;c.style.height=je+"px"}else{const we=w===z[0].ref.current;c.style.top="0px";const Ae=Math.max(ee,K+v.offsetTop+(we?Y:0)+oe)+ce;c.style.height=Ae+"px",v.scrollTop=ue-ee+v.offsetTop}c.style.margin="".concat(Hl,"px 0"),c.style.minHeight=F+"px",c.style.maxHeight=I+"px",n==null||n(),requestAnimationFrame(()=>S.current=!0)}},[g,o.trigger,o.valueNode,c,f,v,w,C,o.dir,n]);ri(()=>E(),[E]);const[N,M]=m.useState();ri(()=>{f&&M(window.getComputedStyle(f).zIndex)},[f]);const P=m.useCallback(A=>{A&&b.current===!0&&(E(),j==null||j(),b.current=!1)},[E,j]);return m.createElement(fde,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:S,onScrollButtonChange:P},m.createElement("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N}},m.createElement(Cr.div,Be({},a,{ref:p,style:R({boxSizing:"border-box",maxHeight:"100%"},a.style)}))))}),OM=m.forwardRef((e,t)=>{const c=e,{__scopeSelect:r,align:n="start",collisionPadding:a=Hl}=c,o=Ce(c,["__scopeSelect","align","collisionPadding"]),i=a6(r);return m.createElement(hw,Be({},i,o,{ref:t,align:n,collisionPadding:a,style:re(R({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)"})}))}),[fde,hde]=Sm(Xp,{}),IM="SelectViewport",pde=m.forwardRef((e,t)=>{const d=e,{__scopeSelect:r}=d,n=Ce(d,["__scopeSelect"]),a=Cw(IM,r),o=hde(IM,r),i=Zr(t,a.onViewportChange),c=m.useRef(0);return m.createElement(m.Fragment,null,m.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}"}}),m.createElement(kw.Slot,{scope:r},m.createElement(Cr.div,Be({"data-radix-select-viewport":"",role:"presentation"},n,{ref:i,style:R({position:"relative",flex:1,overflow:"auto"},n.style),onScroll:jt(n.onScroll,f=>{const h=f.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=o;if(g!=null&&g.current&&p){const S=Math.abs(c.current-h.scrollTop);if(S>0){const b=window.innerHeight-Hl*2,v=parseFloat(p.style.minHeight),w=parseFloat(p.style.height),C=Math.max(v,w);if(C<b){const j=C+S,E=Math.min(b,j),N=j-E;p.style.height=E+"px",p.style.bottom==="0px"&&(h.scrollTop=N>0?N:0,p.style.justifyContent="flex-end")}}}c.current=h.scrollTop})}))))}),mde="SelectGroup",[WEe,gde]=Sm(mde),vde="SelectLabel",xde=m.forwardRef((e,t)=>{const o=e,{__scopeSelect:r}=o,n=Ce(o,["__scopeSelect"]),a=gde(vde,r);return m.createElement(Cr.div,Be({id:a.id},n,{ref:t}))}),f4="SelectItem",[yde,bz]=Sm(f4),bde=m.forwardRef((e,t)=>{const C=e,{__scopeSelect:r,value:n,disabled:a=!1,textValue:o}=C,i=Ce(C,["__scopeSelect","value","disabled","textValue"]),c=Df(f4,r),d=Cw(f4,r),f=c.value===n,[h,p]=m.useState(o!=null?o:""),[g,S]=m.useState(!1),b=Zr(t,j=>{var E;return(E=d.itemRefCallback)===null||E===void 0?void 0:E.call(d,j,n,a)}),v=Ms(),w=()=>{a||(c.onValueChange(n),c.onOpenChange(!1))};if(n==="")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 m.createElement(yde,{scope:r,value:n,disabled:a,textId:v,isSelected:f,onItemTextChange:m.useCallback(j=>{p(E=>{var N;return E||((N=j==null?void 0:j.textContent)!==null&&N!==void 0?N:"").trim()})},[])},m.createElement(kw.ItemSlot,{scope:r,value:n,disabled:a,textValue:h},m.createElement(Cr.div,Be({role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":f&&g,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},i,{ref:b,onFocus:jt(i.onFocus,()=>S(!0)),onBlur:jt(i.onBlur,()=>S(!1)),onPointerUp:jt(i.onPointerUp,w),onPointerMove:jt(i.onPointerMove,j=>{if(a){var E;(E=d.onItemLeave)===null||E===void 0||E.call(d)}else j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:jt(i.onPointerLeave,j=>{if(j.currentTarget===document.activeElement){var E;(E=d.onItemLeave)===null||E===void 0||E.call(d)}}),onKeyDown:jt(i.onKeyDown,j=>{var E;((E=d.searchRef)===null||E===void 0?void 0:E.current)!==""&&j.key===" "||(Que.includes(j.key)&&w(),j.key===" "&&j.preventDefault())})}))))}),Lx="SelectItemText",wde=m.forwardRef((e,t)=>{const C=e,{__scopeSelect:r,className:n,style:a}=C,o=Ce(C,["__scopeSelect","className","style"]),i=Df(Lx,r),c=Cw(Lx,r),d=bz(Lx,r),f=rde(Lx,r),[h,p]=m.useState(null),g=Zr(t,j=>p(j),d.onItemTextChange,j=>{var E;return(E=c.itemTextRefCallback)===null||E===void 0?void 0:E.call(c,j,d.value,d.disabled)}),S=h==null?void 0:h.textContent,b=m.useMemo(()=>m.createElement("option",{key:d.value,value:d.value,disabled:d.disabled},S),[d.disabled,d.value,S]),{onNativeOptionAdd:v,onNativeOptionRemove:w}=f;return ri(()=>(v(b),()=>w(b)),[v,w,b]),m.createElement(m.Fragment,null,m.createElement(Cr.span,Be({id:d.textId},o,{ref:g})),d.isSelected&&i.valueNode&&!i.valueNodeHasChildren?sa.createPortal(o.children,i.valueNode):null)}),kde="SelectItemIndicator",Cde=m.forwardRef((e,t)=>{const o=e,{__scopeSelect:r}=o,n=Ce(o,["__scopeSelect"]);return bz(kde,r).isSelected?m.createElement(Cr.span,Be({"aria-hidden":!0},n,{ref:t})):null}),Sde=m.forwardRef((e,t)=>{const a=e,{__scopeSelect:r}=a,n=Ce(a,["__scopeSelect"]);return m.createElement(Cr.div,Be({"aria-hidden":!0},n,{ref:t}))});function wz(e){return e===""||e===void 0}const kz=m.forwardRef((e,t)=>{const c=e,{value:r}=c,n=Ce(c,["value"]),a=m.useRef(null),o=Zr(t,a),i=uz(r);return m.useEffect(()=>{const d=a.current,f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(i!==r&&p){const g=new Event("change",{bubbles:!0});p.call(d,r),d.dispatchEvent(g)}},[i,r]),m.createElement(dz,{asChild:!0},m.createElement("select",Be({},n,{ref:o,defaultValue:r})))});kz.displayName="BubbleSelect";function Cz(e){const t=Ja(e),r=m.useRef(""),n=m.useRef(0),a=m.useCallback(i=>{const c=r.current+i;t(c),function d(f){r.current=f,window.clearTimeout(n.current),f!==""&&(n.current=window.setTimeout(()=>d(""),1e3))}(c)},[t]),o=m.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,a,o]}function Sz(e,t,r){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=jde(e,Math.max(o,0));a.length===1&&(i=i.filter(f=>f!==r));const d=i.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==r?d:void 0}function jde(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const Ede=nde,jz=ade,Nde=ide,_de=lde,Ez=cde,Tde=pde,Nz=xde,_z=bde,Mde=wde,Pde=Cde,Tz=Sde,$M=Ede,zM=Nde,h4=m.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ce(o,["className","children"]);return s.jsxs(jz,re(R({ref:n,className:_t("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)},r),{children:[r.isCreate&&s.jsx(gse,{className:"h-4 w-4 mr-2 opacity-80"}),t,!r.isCreate&&s.jsx(Nr,{className:"h-5 w-5 ml-2 opacity-80"})]}))});h4.displayName=jz.displayName;const p4=m.forwardRef((o,a)=>{var i=o,{className:e,children:t,position:r="popper"}=i,n=Ce(i,["className","children","position"]);return s.jsx(_de,{children:s.jsx(Ez,re(R({ref:a,className:_t("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-in fade-in-80",r==="popper"&&"translate-y-1",e),position:r},n),{children:s.jsx(Tde,{className:_t("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})}))})});p4.displayName=Ez.displayName;const Dde=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(Nz,R({ref:r,className:_t("py-1.5 pl-8 pr-2 text-sm font-semibold",e)},t))});Dde.displayName=Nz.displayName;const Dh=m.forwardRef((o,a)=>{var i=o,{className:e,children:t,noItemIndicator:r}=i,n=Ce(i,["className","children","noItemIndicator"]);return s.jsxs(_z,re(R({ref:a,className:_t("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 ".concat(r?"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)},n),{children:[!r&&s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(Pde,{children:s.jsx(Bt,{className:"h-4 w-4"})})}),s.jsx(Mde,{children:t})]}))});Dh.displayName=_z.displayName;const Ade=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(Tz,R({ref:r,className:_t("-mx-1 my-1 h-px bg-muted",e)},t))});Ade.displayName=Tz.displayName;const Q=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:e},t))});Q.displayName="Box";const ve=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("flex items-center justify-center",e)},t))});ve.displayName="Flex";const Mz=Pf("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 ft(n){var a=n,{className:e,variant:t}=a,r=Ce(a,["className","variant"]);return s.jsx("span",R({className:_t(Mz({variant:t}),e)},r))}ft.displayName="Badge";const o6=m.forwardRef((a,n)=>{var o=a,{className:e,variant:t}=o,r=Ce(o,["className","variant"]);return s.jsx("span",R({ref:n,className:_t(Mz({variant:t}),e)},r))});o6.displayName="BadgeWithRef";const Rde=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",{className:"w-full overflow-auto",children:s.jsx("table",R({ref:r,className:_t("w-full caption-bottom text-sm",e)},t))})});Rde.displayName="Table";const Lde=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("thead",R({ref:r,className:_t("[&_tr]:border-b",e)},t))});Lde.displayName="TableHeader";const Ode=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("tbody",R({ref:r,className:_t("[&_tr:last-child]:border-0",e)},t))});Ode.displayName="TableBody";const Ide=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("tfoot",R({ref:r,className:_t("bg-primary font-medium text-primary-foreground",e)},t))});Ide.displayName="TableFooter";const $de=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("tr",R({ref:r,className:_t("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e)},t))});$de.displayName="TableRow";const zde=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("th",R({ref:r,className:_t("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e)},t))});zde.displayName="TableHead";const Fde=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("td",R({ref:r,className:_t("p-4 align-middle [&:has([role=checkbox])]:pr-0",e)},t))});Fde.displayName="TableCell";const Hde=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("caption",R({ref:r,className:_t("mt-4 text-sm text-muted-foreground",e)},t))});Hde.displayName="TableCaption";const ln=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("rounded-lg border bg-card text-card-foreground shadow-sm flex flex-col",e)},t))}));ln.displayName="Card";const Jr=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("flex flex-col space-y-1.5 p-6",e)},t))}));Jr.displayName="CardHeader";const en=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("h3",R({ref:r,className:_t("text-lg font-semibold leading-none tracking-tight",e)},t))}));en.displayName="CardTitle";const Bde=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("p",R({ref:r,className:_t("text-sm text-muted-foreground",e)},t))}));Bde.displayName="CardDescription";const hn=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("p-6 pt-2 pb-5 flex-grow",e)},t))}));hn.displayName="CardContent";const i6=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("flex items-center p-6 pt-0",e)},t))}));i6.displayName="CardFooter";const Pz="Switch",[Ude,VEe]=Pa(Pz),[Wde,Vde]=Ude(Pz),qde=m.forwardRef((e,t)=>{const j=e,{__scopeSwitch:r,name:n,checked:a,defaultChecked:o,required:i,disabled:c,value:d="on",onCheckedChange:f}=j,h=Ce(j,["__scopeSwitch","name","checked","defaultChecked","required","disabled","value","onCheckedChange"]),[p,g]=m.useState(null),S=Zr(t,E=>g(E)),b=m.useRef(!1),v=p?!!p.closest("form"):!0,[w=!1,C]=fa({prop:a,defaultProp:o,onChange:f});return m.createElement(Wde,{scope:r,checked:w,disabled:c},m.createElement(Cr.button,Be({type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":Dz(w),"data-disabled":c?"":void 0,disabled:c,value:d},h,{ref:S,onClick:jt(e.onClick,E=>{C(N=>!N),v&&(b.current=E.isPropagationStopped(),b.current||E.stopPropagation())})})),v&&m.createElement(Yde,{control:p,bubbles:!b.current,name:n,value:d,checked:w,required:i,disabled:c,style:{transform:"translateX(-100%)"}}))}),Kde="SwitchThumb",Gde=m.forwardRef((e,t)=>{const o=e,{__scopeSwitch:r}=o,n=Ce(o,["__scopeSwitch"]),a=Vde(Kde,r);return m.createElement(Cr.span,Be({"data-state":Dz(a.checked),"data-disabled":a.disabled?"":void 0},n,{ref:t}))}),Yde=e=>{const d=e,{control:t,checked:r,bubbles:n=!0}=d,a=Ce(d,["control","checked","bubbles"]),o=m.useRef(null),i=uz(r),c=sz(t);return m.useEffect(()=>{const f=o.current,h=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(h,"checked").set;if(i!==r&&g){const S=new Event("click",{bubbles:n});g.call(f,r),f.dispatchEvent(S)}},[i,r,n]),m.createElement("input",Be({type:"checkbox","aria-hidden":!0,defaultChecked:r},a,{tabIndex:-1,ref:o,style:re(R(R({},e.style),c),{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))};function Dz(e){return e?"checked":"unchecked"}const Az=qde,Zde=Gde,Gn=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(Az,re(R({className:_t(" 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:r,children:s.jsx(Zde,{className:_t("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")})}))});Gn.displayName=Az.displayName;function Xde(e,t){return m.useReducer((r,n)=>{const a=t[r][n];return a!=null?a:r},e)}const Mo=e=>{const{present:t,children:r}=e,n=Qde(t),a=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),o=Zr(n.ref,a.ref);return typeof r=="function"||n.isPresent?m.cloneElement(a,{ref:o}):null};Mo.displayName="Presence";function Qde(e){const[t,r]=m.useState(),n=m.useRef({}),a=m.useRef(e),o=m.useRef("none"),i=e?"mounted":"unmounted",[c,d]=Xde(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const f=Ox(n.current);o.current=c==="mounted"?f:"none"},[c]),ri(()=>{const f=n.current,h=a.current;if(h!==e){const g=o.current,S=Ox(f);e?d("MOUNT"):S==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(h&&g!==S?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),ri(()=>{if(t){const f=p=>{const S=Ox(n.current).includes(p.animationName);p.target===t&&S&&sa.flushSync(()=>d("ANIMATION_END"))},h=p=>{p.target===t&&(o.current=Ox(n.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:m.useCallback(f=>{f&&(n.current=getComputedStyle(f)),r(f)},[])}}function Ox(e){return(e==null?void 0:e.animationName)||"none"}const x5="rovingFocusGroup.onEntryFocus",Jde={bubbles:!1,cancelable:!0},l6="RovingFocusGroup",[m4,Rz,efe]=r1(l6),[tfe,jm]=Pa(l6,[efe]),[rfe,nfe]=tfe(l6),sfe=m.forwardRef((e,t)=>m.createElement(m4.Provider,{scope:e.__scopeRovingFocusGroup},m.createElement(m4.Slot,{scope:e.__scopeRovingFocusGroup},m.createElement(afe,Be({},e,{ref:t}))))),afe=m.forwardRef((e,t)=>{const D=e,{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:i,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f}=D,h=Ce(D,["__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopId","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus"]),p=m.useRef(null),g=Zr(t,p),S=wm(o),[b=null,v]=fa({prop:i,defaultProp:c,onChange:d}),[w,C]=m.useState(!1),j=Ja(f),E=Rz(r),N=m.useRef(!1),[M,P]=m.useState(0);return m.useEffect(()=>{const A=p.current;if(A)return A.addEventListener(x5,j),()=>A.removeEventListener(x5,j)},[j]),m.createElement(rfe,{scope:r,orientation:n,dir:S,loop:a,currentTabStopId:b,onItemFocus:m.useCallback(A=>v(A),[v]),onItemShiftTab:m.useCallback(()=>C(!0),[]),onFocusableItemAdd:m.useCallback(()=>P(A=>A+1),[]),onFocusableItemRemove:m.useCallback(()=>P(A=>A-1),[])},m.createElement(Cr.div,Be({tabIndex:w||M===0?-1:0,"data-orientation":n},h,{ref:g,style:R({outline:"none"},e.style),onMouseDown:jt(e.onMouseDown,()=>{N.current=!0}),onFocus:jt(e.onFocus,A=>{const O=!N.current;if(A.target===A.currentTarget&&O&&!w){const $=new CustomEvent(x5,Jde);if(A.currentTarget.dispatchEvent($),!$.defaultPrevented){const H=E().filter(K=>K.focusable),z=H.find(K=>K.active),I=H.find(K=>K.id===b),_=[z,I,...H].filter(Boolean).map(K=>K.ref.current);Lz(_)}}N.current=!1}),onBlur:jt(e.onBlur,()=>C(!1))})))}),ofe="RovingFocusGroupItem",ife=m.forwardRef((e,t)=>{const b=e,{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o}=b,i=Ce(b,["__scopeRovingFocusGroup","focusable","active","tabStopId"]),c=Ms(),d=o||c,f=nfe(ofe,r),h=f.currentTabStopId===d,p=Rz(r),{onFocusableItemAdd:g,onFocusableItemRemove:S}=f;return m.useEffect(()=>{if(n)return g(),()=>S()},[n,g,S]),m.createElement(m4.ItemSlot,{scope:r,id:d,focusable:n,active:a},m.createElement(Cr.span,Be({tabIndex:h?0:-1,"data-orientation":f.orientation},i,{ref:t,onMouseDown:jt(e.onMouseDown,v=>{n?f.onItemFocus(d):v.preventDefault()}),onFocus:jt(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:jt(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){f.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=ufe(v,f.orientation,f.dir);if(w!==void 0){v.preventDefault();let j=p().filter(E=>E.focusable).map(E=>E.ref.current);if(w==="last")j.reverse();else if(w==="prev"||w==="next"){w==="prev"&&j.reverse();const E=j.indexOf(v.currentTarget);j=f.loop?dfe(j,E+1):j.slice(E+1)}setTimeout(()=>Lz(j))}})})))}),lfe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cfe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ufe(e,t,r){const n=cfe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return lfe[n]}function Lz(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function dfe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const c6=sfe,u6=ife;var Oz=vw(),y5=function(){},Sw=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:y5,onWheelCapture:y5,onTouchMoveCapture:y5}),a=n[0],o=n[1],i=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,g=e.sideCar,S=e.noIsolation,b=e.inert,v=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,j=o1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=g,N=gw([r,t]),M=cn(cn({},j),a);return m.createElement(m.Fragment,null,h&&m.createElement(E,{sideCar:Oz,removeScrollBar:f,shards:p,noIsolation:S,inert:b,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?m.cloneElement(m.Children.only(c),cn(cn({},M),{ref:N})):m.createElement(C,cn({},M,{className:d,ref:N}),c))});Sw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Sw.classNames={fullWidth:Zd,zeroRight:Yd};var g4=!1;if(typeof window!="undefined")try{var Ix=Object.defineProperty({},"passive",{get:function(){return g4=!0,!0}});window.addEventListener("test",Ix,Ix),window.removeEventListener("test",Ix,Ix)}catch(e){g4=!1}var fh=g4?{passive:!1}:!1,ffe=function(e){return e.tagName==="TEXTAREA"},Iz=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ffe(e)&&r[t]==="visible")},hfe=function(e){return Iz(e,"overflowY")},pfe=function(e){return Iz(e,"overflowX")},FM=function(e,t){var r=t;do{typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&(r=r.host);var n=$z(e,r);if(n){var a=zz(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},mfe=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},gfe=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$z=function(e,t){return e==="v"?hfe(t):pfe(t)},zz=function(e,t){return e==="v"?mfe(t):gfe(t)},vfe=function(e,t){return e==="h"&&t==="rtl"?-1:1},xfe=function(e,t,r,n,a){var o=vfe(e,window.getComputedStyle(t).direction),i=o*n,c=r.target,d=t.contains(c),f=!1,h=i>0,p=0,g=0;do{var S=zz(e,c),b=S[0],v=S[1],w=S[2],C=v-w-o*b;(b||C)&&$z(e,c)&&(p+=C,g+=b),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(a&&p===0||!a&&i>p)||!h&&(a&&g===0||!a&&-i>g))&&(f=!0),f},$x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},HM=function(e){return[e.deltaX,e.deltaY]},BM=function(e){return e&&"current"in e?e.current:e},yfe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bfe=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},wfe=0,hh=[];function kfe(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),a=m.useState(wfe++)[0],o=m.useState(function(){return i1()})[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=mw([e.lockRef.current],(e.shards||[]).map(BM),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(v,w){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var C=$x(v),j=r.current,E="deltaX"in v?v.deltaX:j[0]-C[0],N="deltaY"in v?v.deltaY:j[1]-C[1],M,P=v.target,D=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in v&&D==="h"&&P.type==="range")return!1;var A=FM(D,P);if(!A)return!0;if(A?M=D:(M=D==="v"?"h":"v",A=FM(D,P)),!A)return!1;if(!n.current&&"changedTouches"in v&&(E||N)&&(n.current=M),!M)return!0;var O=n.current||M;return xfe(O,w,v,O==="h"?E:N,!0)},[]),d=m.useCallback(function(v){var w=v;if(!(!hh.length||hh[hh.length-1]!==o)){var C="deltaY"in w?HM(w):$x(w),j=t.current.filter(function(M){return M.name===w.type&&M.target===w.target&&yfe(M.delta,C)})[0];if(j&&j.should){w.cancelable&&w.preventDefault();return}if(!j){var E=(i.current.shards||[]).map(BM).filter(Boolean).filter(function(M){return M.contains(w.target)}),N=E.length>0?c(w,E[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),f=m.useCallback(function(v,w,C,j){var E={name:v,delta:w,target:C,should:j};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),h=m.useCallback(function(v){r.current=$x(v),n.current=void 0},[]),p=m.useCallback(function(v){f(v.type,HM(v),v.target,c(v,e.lockRef.current))},[]),g=m.useCallback(function(v){f(v.type,$x(v),v.target,c(v,e.lockRef.current))},[]);m.useEffect(function(){return hh.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,fh),document.addEventListener("touchmove",d,fh),document.addEventListener("touchstart",h,fh),function(){hh=hh.filter(function(v){return v!==o}),document.removeEventListener("wheel",d,fh),document.removeEventListener("touchmove",d,fh),document.removeEventListener("touchstart",h,fh)}},[]);var S=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(o,{styles:bfe(a)}):null,S?m.createElement(bw,{gapMode:"margin"}):null)}const Cfe=xw(Oz,kfe);var Fz=m.forwardRef(function(e,t){return m.createElement(Sw,cn({},e,{ref:t,sideCar:Cfe}))});Fz.classNames=Sw.classNames;const Sfe=Fz,v4=["Enter"," "],jfe=["ArrowDown","PageUp","Home"],Hz=["ArrowUp","PageDown","End"],Efe=[...jfe,...Hz],Nfe={ltr:[...v4,"ArrowRight"],rtl:[...v4,"ArrowLeft"]},_fe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jw="Menu",[hv,Tfe,Mfe]=r1(jw),[Af,l1]=Pa(jw,[Mfe,Yu,jm]),Ew=Yu(),Bz=jm(),[Uz,Zu]=Af(jw),[Pfe,c1]=Af(jw),Dfe=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:a,onOpenChange:o,modal:i=!0}=e,c=Ew(t),[d,f]=m.useState(null),h=m.useRef(!1),p=Ja(o),g=wm(a);return m.useEffect(()=>{const S=()=>{h.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>h.current=!1;return document.addEventListener("keydown",S,{capture:!0}),()=>{document.removeEventListener("keydown",S,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),m.createElement(a1,c,m.createElement(Uz,{scope:t,open:r,onOpenChange:p,content:d,onContentChange:f},m.createElement(Pfe,{scope:t,onClose:m.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:h,dir:g,modal:i},n)))},Wz=m.forwardRef((e,t)=>{const o=e,{__scopeMenu:r}=o,n=Ce(o,["__scopeMenu"]),a=Ew(r);return m.createElement(fw,Be({},a,n,{ref:t}))}),Vz="MenuPortal",[Afe,qz]=Af(Vz,{forceMount:void 0}),Rfe=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=Zu(Vz,t);return m.createElement(Afe,{scope:t,forceMount:r},m.createElement(Mo,{present:r||o.open},m.createElement(Ku,{asChild:!0,container:a},n)))},Ri="MenuContent",[Lfe,d6]=Af(Ri),Ofe=m.forwardRef((e,t)=>{const r=qz(Ri,e.__scopeMenu),c=e,{forceMount:n=r.forceMount}=c,a=Ce(c,["forceMount"]),o=Zu(Ri,e.__scopeMenu),i=c1(Ri,e.__scopeMenu);return m.createElement(hv.Provider,{scope:e.__scopeMenu},m.createElement(Mo,{present:n||o.open},m.createElement(hv.Slot,{scope:e.__scopeMenu},i.modal?m.createElement(Ife,Be({},a,{ref:t})):m.createElement($fe,Be({},a,{ref:t})))))}),Ife=m.forwardRef((e,t)=>{const r=Zu(Ri,e.__scopeMenu),n=m.useRef(null),a=Zr(t,n);return m.useEffect(()=>{const o=n.current;if(o)return pw(o)},[]),m.createElement(f6,Be({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:jt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),$fe=m.forwardRef((e,t)=>{const r=Zu(Ri,e.__scopeMenu);return m.createElement(f6,Be({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),f6=m.forwardRef((e,t)=>{const X=e,{__scopeMenu:r,loop:n=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:g,onDismiss:S,disableOutsideScroll:b}=X,v=Ce(X,["__scopeMenu","loop","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEntryFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","disableOutsideScroll"]),w=Zu(Ri,r),C=c1(Ri,r),j=Ew(r),E=Bz(r),N=Tfe(r),[M,P]=m.useState(null),D=m.useRef(null),A=Zr(t,D,w.onContentChange),O=m.useRef(0),$=m.useRef(""),H=m.useRef(0),z=m.useRef(null),I=m.useRef("right"),W=m.useRef(0),_=b?Sfe:m.Fragment,K=b?{as:Au,allowPinchZoom:!0}:void 0,V=G=>{var F,q;const Y=$.current+G,se=N().filter(ce=>!ce.disabled),ee=document.activeElement,ae=(F=se.find(ce=>ce.ref.current===ee))===null||F===void 0?void 0:F.textValue,oe=se.map(ce=>ce.textValue),le=nhe(oe,Y,ae),ue=(q=se.find(ce=>ce.textValue===le))===null||q===void 0?void 0:q.ref.current;(function ce(he){$.current=he,window.clearTimeout(O.current),he!==""&&(O.current=window.setTimeout(()=>ce(""),1e3))})(Y),ue&&setTimeout(()=>ue.focus())};m.useEffect(()=>()=>window.clearTimeout(O.current),[]),lw();const U=m.useCallback(G=>{var F,q;return I.current===((F=z.current)===null||F===void 0?void 0:F.side)&&ahe(G,(q=z.current)===null||q===void 0?void 0:q.area)},[]);return m.createElement(Lfe,{scope:r,searchRef:$,onItemEnter:m.useCallback(G=>{U(G)&&G.preventDefault()},[U]),onItemLeave:m.useCallback(G=>{var F;U(G)||((F=D.current)===null||F===void 0||F.focus(),P(null))},[U]),onTriggerLeave:m.useCallback(G=>{U(G)&&G.preventDefault()},[U]),pointerGraceTimerRef:H,onPointerGraceIntentChange:m.useCallback(G=>{z.current=G},[])},m.createElement(_,K,m.createElement(cw,{asChild:!0,trapped:a,onMountAutoFocus:jt(o,G=>{var F;G.preventDefault(),(F=D.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:i},m.createElement(n1,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:p,onInteractOutside:g,onDismiss:S},m.createElement(c6,Be({asChild:!0},E,{dir:C.dir,orientation:"vertical",loop:n,currentTabStopId:M,onCurrentTabStopIdChange:P,onEntryFocus:jt(d,G=>{C.isUsingKeyboardRef.current||G.preventDefault()})}),m.createElement(hw,Be({role:"menu","aria-orientation":"vertical","data-state":Jz(w.open),"data-radix-menu-content":"",dir:C.dir},j,v,{ref:A,style:R({outline:"none"},v.style),onKeyDown:jt(v.onKeyDown,G=>{const q=G.target.closest("[data-radix-menu-content]")===G.currentTarget,Y=G.ctrlKey||G.altKey||G.metaKey,se=G.key.length===1;q&&(G.key==="Tab"&&G.preventDefault(),!Y&&se&&V(G.key));const ee=D.current;if(G.target!==ee||!Efe.includes(G.key))return;G.preventDefault();const oe=N().filter(le=>!le.disabled).map(le=>le.ref.current);Hz.includes(G.key)&&oe.reverse(),the(oe)}),onBlur:jt(e.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(O.current),$.current="")}),onPointerMove:jt(e.onPointerMove,pv(G=>{const F=G.target,q=W.current!==G.clientX;if(G.currentTarget.contains(F)&&q){const Y=G.clientX>W.current?"right":"left";I.current=Y,W.current=G.clientX}}))})))))))}),Kz=m.forwardRef((e,t)=>{const a=e,{__scopeMenu:r}=a,n=Ce(a,["__scopeMenu"]);return m.createElement(Cr.div,Be({role:"group"},n,{ref:t}))}),zfe=m.forwardRef((e,t)=>{const a=e,{__scopeMenu:r}=a,n=Ce(a,["__scopeMenu"]);return m.createElement(Cr.div,Be({},n,{ref:t}))}),x4="MenuItem",UM="menu.itemSelect",h6=m.forwardRef((e,t)=>{const p=e,{disabled:r=!1,onSelect:n}=p,a=Ce(p,["disabled","onSelect"]),o=m.useRef(null),i=c1(x4,e.__scopeMenu),c=d6(x4,e.__scopeMenu),d=Zr(t,o),f=m.useRef(!1),h=()=>{const g=o.current;if(!r&&g){const S=new CustomEvent(UM,{bubbles:!0,cancelable:!0});g.addEventListener(UM,b=>n==null?void 0:n(b),{once:!0}),WO(g,S),S.defaultPrevented?f.current=!1:i.onClose()}};return m.createElement(Gz,Be({},a,{ref:d,disabled:r,onClick:jt(e.onClick,h),onPointerDown:g=>{var S;(S=e.onPointerDown)===null||S===void 0||S.call(e,g),f.current=!0},onPointerUp:jt(e.onPointerUp,g=>{var S;f.current||(S=g.currentTarget)===null||S===void 0||S.click()}),onKeyDown:jt(e.onKeyDown,g=>{const S=c.searchRef.current!=="";r||S&&g.key===" "||v4.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})}))}),Gz=m.forwardRef((e,t)=>{const b=e,{__scopeMenu:r,disabled:n=!1,textValue:a}=b,o=Ce(b,["__scopeMenu","disabled","textValue"]),i=d6(x4,r),c=Bz(r),d=m.useRef(null),f=Zr(t,d),[h,p]=m.useState(!1),[g,S]=m.useState("");return m.useEffect(()=>{const v=d.current;if(v){var w;S(((w=v.textContent)!==null&&w!==void 0?w:"").trim())}},[o.children]),m.createElement(hv.ItemSlot,{scope:r,disabled:n,textValue:a!=null?a:g},m.createElement(u6,Be({asChild:!0},c,{focusable:!n}),m.createElement(Cr.div,Be({role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:f,onPointerMove:jt(e.onPointerMove,pv(v=>{n?i.onItemLeave(v):(i.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:jt(e.onPointerLeave,pv(v=>i.onItemLeave(v))),onFocus:jt(e.onFocus,()=>p(!0)),onBlur:jt(e.onBlur,()=>p(!1))}))))}),Ffe=m.forwardRef((e,t)=>{const o=e,{checked:r=!1,onCheckedChange:n}=o,a=Ce(o,["checked","onCheckedChange"]);return m.createElement(Zz,{scope:e.__scopeMenu,checked:r},m.createElement(h6,Be({role:"menuitemcheckbox","aria-checked":Vb(r)?"mixed":r},a,{ref:t,"data-state":p6(r),onSelect:jt(a.onSelect,()=>n==null?void 0:n(Vb(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),Hfe="MenuRadioGroup",[Bfe,Ufe]=Af(Hfe,{value:void 0,onValueChange:()=>{}}),Wfe=m.forwardRef((e,t)=>{const i=e,{value:r,onValueChange:n}=i,a=Ce(i,["value","onValueChange"]),o=Ja(n);return m.createElement(Bfe,{scope:e.__scopeMenu,value:r,onValueChange:o},m.createElement(Kz,Be({},a,{ref:t})))}),Vfe="MenuRadioItem",qfe=m.forwardRef((e,t)=>{const i=e,{value:r}=i,n=Ce(i,["value"]),a=Ufe(Vfe,e.__scopeMenu),o=r===a.value;return m.createElement(Zz,{scope:e.__scopeMenu,checked:o},m.createElement(h6,Be({role:"menuitemradio","aria-checked":o},n,{ref:t,"data-state":p6(o),onSelect:jt(n.onSelect,()=>{var c;return(c=a.onValueChange)===null||c===void 0?void 0:c.call(a,r)},{checkForDefaultPrevented:!1})})))}),Yz="MenuItemIndicator",[Zz,Kfe]=Af(Yz,{checked:!1}),Gfe=m.forwardRef((e,t)=>{const i=e,{__scopeMenu:r,forceMount:n}=i,a=Ce(i,["__scopeMenu","forceMount"]),o=Kfe(Yz,r);return m.createElement(Mo,{present:n||Vb(o.checked)||o.checked===!0},m.createElement(Cr.span,Be({},a,{ref:t,"data-state":p6(o.checked)})))}),Yfe=m.forwardRef((e,t)=>{const a=e,{__scopeMenu:r}=a,n=Ce(a,["__scopeMenu"]);return m.createElement(Cr.div,Be({role:"separator","aria-orientation":"horizontal"},n,{ref:t}))}),Xz="MenuSub",[Zfe,Qz]=Af(Xz),Xfe=e=>{const{__scopeMenu:t,children:r,open:n=!1,onOpenChange:a}=e,o=Zu(Xz,t),i=Ew(t),[c,d]=m.useState(null),[f,h]=m.useState(null),p=Ja(a);return m.useEffect(()=>(o.open===!1&&p(!1),()=>p(!1)),[o.open,p]),m.createElement(a1,i,m.createElement(Uz,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:h},m.createElement(Zfe,{scope:t,contentId:Ms(),triggerId:Ms(),trigger:c,onTriggerChange:d},r)))},zx="MenuSubTrigger",Qfe=m.forwardRef((e,t)=>{const r=Zu(zx,e.__scopeMenu),n=c1(zx,e.__scopeMenu),a=Qz(zx,e.__scopeMenu),o=d6(zx,e.__scopeMenu),i=m.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=o,f={__scopeMenu:e.__scopeMenu},h=m.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return m.useEffect(()=>h,[h]),m.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),d(null)}},[c,d]),m.createElement(Wz,Be({asChild:!0},f),m.createElement(Gz,Be({id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":Jz(r.open)},e,{ref:q2(t,a.onTriggerChange),onClick:p=>{var g;(g=e.onClick)===null||g===void 0||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:jt(e.onPointerMove,pv(p=>{o.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(o.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),h()},100))})),onPointerLeave:jt(e.onPointerLeave,pv(p=>{var g;h();const S=(g=r.content)===null||g===void 0?void 0:g.getBoundingClientRect();if(S){var b;const v=(b=r.content)===null||b===void 0?void 0:b.dataset.side,w=v==="right",C=w?-5:5,j=S[w?"left":"right"],E=S[w?"right":"left"];o.onPointerGraceIntentChange({area:[{x:p.clientX+C,y:p.clientY},{x:j,y:S.top},{x:E,y:S.top},{x:E,y:S.bottom},{x:j,y:S.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(p),p.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:jt(e.onKeyDown,p=>{const g=o.searchRef.current!=="";if(!(e.disabled||g&&p.key===" ")&&Nfe[n.dir].includes(p.key)){var S;r.onOpenChange(!0),(S=r.content)===null||S===void 0||S.focus(),p.preventDefault()}})})))}),Jfe="MenuSubContent",ehe=m.forwardRef((e,t)=>{const r=qz(Ri,e.__scopeMenu),h=e,{forceMount:n=r.forceMount}=h,a=Ce(h,["forceMount"]),o=Zu(Ri,e.__scopeMenu),i=c1(Ri,e.__scopeMenu),c=Qz(Jfe,e.__scopeMenu),d=m.useRef(null),f=Zr(t,d);return m.createElement(hv.Provider,{scope:e.__scopeMenu},m.createElement(Mo,{present:n||o.open},m.createElement(hv.Slot,{scope:e.__scopeMenu},m.createElement(f6,Be({id:c.contentId,"aria-labelledby":c.triggerId},a,{ref:f,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var g;i.isUsingKeyboardRef.current&&((g=d.current)===null||g===void 0||g.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:jt(e.onFocusOutside,p=>{p.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:jt(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:jt(e.onKeyDown,p=>{const g=p.currentTarget.contains(p.target),S=_fe[i.dir].includes(p.key);if(g&&S){var b;o.onOpenChange(!1),(b=c.trigger)===null||b===void 0||b.focus(),p.preventDefault()}})})))))});function Jz(e){return e?"open":"closed"}function Vb(e){return e==="indeterminate"}function p6(e){return Vb(e)?"indeterminate":e?"checked":"unchecked"}function the(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function rhe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function nhe(e,t,r){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let i=rhe(e,Math.max(o,0));a.length===1&&(i=i.filter(f=>f!==r));const d=i.find(f=>f.toLowerCase().startsWith(a.toLowerCase()));return d!==r?d:void 0}function she(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const c=t[o].x,d=t[o].y,f=t[i].x,h=t[i].y;d>n!=h>n&&r<(f-c)*(n-d)/(h-d)+c&&(a=!a)}return a}function ahe(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return she(r,t)}function pv(e){return t=>t.pointerType==="mouse"?e(t):void 0}const m6=Dfe,g6=Wz,v6=Rfe,x6=Ofe,ohe=Kz,y6=zfe,b6=h6,w6=Ffe,eF=Wfe,k6=qfe,C6=Gfe,S6=Yfe,j6=Xfe,E6=Qfe,N6=ehe,tF="DropdownMenu",[ihe,qEe]=Pa(tF,[l1]),Da=l1(),[lhe,rF]=ihe(tF),che=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:a,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,d=Da(t),f=m.useRef(null),[h=!1,p]=fa({prop:a,defaultProp:o,onChange:i});return m.createElement(lhe,{scope:t,triggerId:Ms(),triggerRef:f,contentId:Ms(),open:h,onOpenChange:p,onOpenToggle:m.useCallback(()=>p(g=>!g),[p]),modal:c},m.createElement(m6,Be({},d,{open:h,onOpenChange:p,dir:n,modal:c}),r))},uhe="DropdownMenuTrigger",dhe=m.forwardRef((e,t)=>{const c=e,{__scopeDropdownMenu:r,disabled:n=!1}=c,a=Ce(c,["__scopeDropdownMenu","disabled"]),o=rF(uhe,r),i=Da(r);return m.createElement(g6,Be({asChild:!0},i),m.createElement(Cr.button,Be({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":n?"":void 0,disabled:n},a,{ref:q2(t,o.triggerRef),onPointerDown:jt(e.onPointerDown,d=>{!n&&d.button===0&&d.ctrlKey===!1&&(o.onOpenToggle(),o.open||d.preventDefault())}),onKeyDown:jt(e.onKeyDown,d=>{n||(["Enter"," "].includes(d.key)&&o.onOpenToggle(),d.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(d.key)&&d.preventDefault())})})))}),fhe=e=>{const a=e,{__scopeDropdownMenu:t}=a,r=Ce(a,["__scopeDropdownMenu"]),n=Da(t);return m.createElement(v6,Be({},n,r))},hhe="DropdownMenuContent",phe=m.forwardRef((e,t)=>{const c=e,{__scopeDropdownMenu:r}=c,n=Ce(c,["__scopeDropdownMenu"]),a=rF(hhe,r),o=Da(r),i=m.useRef(!1);return m.createElement(x6,Be({id:a.contentId,"aria-labelledby":a.triggerId},o,n,{ref:t,onCloseAutoFocus:jt(e.onCloseAutoFocus,d=>{var f;i.current||(f=a.triggerRef.current)===null||f===void 0||f.focus(),i.current=!1,d.preventDefault()}),onInteractOutside:jt(e.onInteractOutside,d=>{const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;(!a.modal||p)&&(i.current=!0)}),style:re(R({},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)"})}))}),mhe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(ohe,Be({},a,n,{ref:t}))}),ghe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(y6,Be({},a,n,{ref:t}))}),vhe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(b6,Be({},a,n,{ref:t}))}),xhe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(w6,Be({},a,n,{ref:t}))}),yhe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(eF,Be({},a,n,{ref:t}))}),bhe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(k6,Be({},a,n,{ref:t}))}),whe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(C6,Be({},a,n,{ref:t}))}),khe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(S6,Be({},a,n,{ref:t}))}),Che=e=>{const{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=Da(t),[c=!1,d]=fa({prop:n,defaultProp:o,onChange:a});return m.createElement(j6,Be({},i,{open:c,onOpenChange:d}),r)},She=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(E6,Be({},a,n,{ref:t}))}),jhe=m.forwardRef((e,t)=>{const o=e,{__scopeDropdownMenu:r}=o,n=Ce(o,["__scopeDropdownMenu"]),a=Da(r);return m.createElement(N6,Be({},a,n,{ref:t,style:re(R({},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)"})}))}),nF=che,sF=dhe,aF=fhe,_6=phe,Ehe=mhe,oF=ghe,iF=vhe,lF=xhe,Nhe=yhe,cF=bhe,uF=whe,dF=khe,_he=Che,fF=She,hF=jhe,Dr=nF,Ar=sF,pF=Ehe,zs=_he,The=Nhe,Es=m.forwardRef((i,o)=>{var c=i,{className:e,inset:t,children:r,noRightIcon:n}=c,a=Ce(c,["className","inset","children","noRightIcon"]);return s.jsxs(fF,re(R({ref:o,className:_t("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)},a),{children:[r,!n&&s.jsx(ym,{className:"ml-auto h-4 w-4"})]}))});Es.displayName=fF.displayName;const Ns=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(hF,R({ref:r,className:_t("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))});Ns.displayName=hF.displayName;const _r=m.forwardRef((o,a)=>{var i=o,{className:e,align:t="start",sideOffset:r=6}=i,n=Ce(i,["className","align","sideOffset"]);return s.jsx(aF,{children:s.jsx(_6,{ref:a,sideOffset:r,align:t,className:_t("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",n.shadow?n.shadow:"shadow-md",e),children:n.children})})});_r.displayName=_6.displayName;const ze=m.forwardRef((a,n)=>{var o=a,{className:e,inset:t}=o,r=Ce(o,["className","inset"]);return s.jsx(iF,R({ref:n,className:_t("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)},r))});ze.displayName=iF.displayName;const nr=m.forwardRef((o,a)=>{var i=o,{className:e,children:t,checked:r}=i,n=Ce(i,["className","children","checked"]);return s.jsxs(lF,re(R({ref:a,className:_t("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:r},n),{children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(uF,{children:s.jsx(Bt,{className:"h-4 w-4"})})}),t]}))});nr.displayName=lF.displayName;const mF=m.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ce(o,["className","children"]);return s.jsxs(cF,re(R({ref:n,className:_t("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)},r),{children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(uF,{children:s.jsx(OE,{className:"h-2 w-2 fill-current"})})}),t]}))});mF.displayName=cF.displayName;const Mhe=m.forwardRef((a,n)=>{var o=a,{className:e,inset:t}=o,r=Ce(o,["className","inset"]);return s.jsx(oF,R({ref:n,className:_t("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e)},r))});Mhe.displayName=oF.displayName;const rr=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(dF,R({ref:r,className:_t("-mx-1 my-1 h-px bg-muted dark:bg-gray-800",e)},t))});rr.displayName=dF.displayName;const ml=r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("span",R({className:_t("ml-auto text-xs tracking-widest opacity-60",e)},t))};ml.displayName="DropdownMenuShortcut";const gF="ContextMenu",[Phe,KEe]=Pa(gF,[l1]),Po=l1(),[Dhe,vF]=Phe(gF),Ahe=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:a,modal:o=!0}=e,[i,c]=m.useState(!1),d=Po(t),f=Ja(n),h=m.useCallback(p=>{c(p),f(p)},[f]);return m.createElement(Dhe,{scope:t,open:i,onOpenChange:h,modal:o},m.createElement(m6,Be({},d,{dir:a,open:i,onOpenChange:h,modal:o}),r))},Rhe="ContextMenuTrigger",Lhe=m.forwardRef((e,t)=>{const g=e,{__scopeContextMenu:r,disabled:n=!1}=g,a=Ce(g,["__scopeContextMenu","disabled"]),o=vF(Rhe,r),i=Po(r),c=m.useRef({x:0,y:0}),d=m.useRef({getBoundingClientRect:()=>DOMRect.fromRect(R({width:0,height:0},c.current))}),f=m.useRef(0),h=m.useCallback(()=>window.clearTimeout(f.current),[]),p=S=>{c.current={x:S.clientX,y:S.clientY},o.onOpenChange(!0)};return m.useEffect(()=>h,[h]),m.useEffect(()=>void(n&&h()),[n,h]),m.createElement(m.Fragment,null,m.createElement(g6,Be({},i,{virtualRef:d})),m.createElement(Cr.span,Be({"data-state":o.open?"open":"closed","data-disabled":n?"":void 0},a,{ref:t,style:R({WebkitTouchCallout:"none"},e.style),onContextMenu:n?e.onContextMenu:jt(e.onContextMenu,S=>{h(),p(S),S.preventDefault()}),onPointerDown:n?e.onPointerDown:jt(e.onPointerDown,Fx(S=>{h(),f.current=window.setTimeout(()=>p(S),700)})),onPointerMove:n?e.onPointerMove:jt(e.onPointerMove,Fx(h)),onPointerCancel:n?e.onPointerCancel:jt(e.onPointerCancel,Fx(h)),onPointerUp:n?e.onPointerUp:jt(e.onPointerUp,Fx(h))})))}),Ohe=e=>{const a=e,{__scopeContextMenu:t}=a,r=Ce(a,["__scopeContextMenu"]),n=Po(t);return m.createElement(v6,Be({},n,r))},Ihe="ContextMenuContent",$he=m.forwardRef((e,t)=>{const c=e,{__scopeContextMenu:r}=c,n=Ce(c,["__scopeContextMenu"]),a=vF(Ihe,r),o=Po(r),i=m.useRef(!1);return m.createElement(x6,Be({},o,n,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:d=>{var f;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,d),!d.defaultPrevented&&i.current&&d.preventDefault(),i.current=!1},onInteractOutside:d=>{var f;(f=e.onInteractOutside)===null||f===void 0||f.call(e,d),!d.defaultPrevented&&!a.modal&&(i.current=!0)},style:re(R({},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)"})}))}),zhe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(y6,Be({},a,n,{ref:t}))}),Fhe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(b6,Be({},a,n,{ref:t}))}),Hhe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(w6,Be({},a,n,{ref:t}))}),Bhe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(k6,Be({},a,n,{ref:t}))}),Uhe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(C6,Be({},a,n,{ref:t}))}),Whe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(S6,Be({},a,n,{ref:t}))}),Vhe=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,open:a,defaultOpen:o}=e,i=Po(t),[c,d]=fa({prop:a,defaultProp:o,onChange:n});return m.createElement(j6,Be({},i,{open:c,onOpenChange:d}),r)},qhe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(E6,Be({},a,n,{ref:t}))}),Khe=m.forwardRef((e,t)=>{const o=e,{__scopeContextMenu:r}=o,n=Ce(o,["__scopeContextMenu"]),a=Po(r);return m.createElement(N6,Be({},a,n,{ref:t,style:re(R({},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 Fx(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const Ghe=Ahe,Yhe=Lhe,xF=Ohe,yF=$he,bF=zhe,wF=Fhe,kF=Hhe,CF=Bhe,SF=Uhe,jF=Whe,Zhe=Vhe,EF=qhe,NF=Khe,Em=Ghe,Nm=Yhe,u1=xF,ds=Zhe,Xn=m.forwardRef((o,a)=>{var i=o,{className:e,inset:t,children:r}=i,n=Ce(i,["className","inset","children"]);return s.jsxs(EF,re(R({ref:a,className:_t("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)},n),{children:[r,s.jsx(ym,{className:"ml-auto h-4 w-4"})]}))});Xn.displayName=EF.displayName;const Qn=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(NF,R({ref:r,className:_t("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))});Qn.displayName=NF.displayName;const _m=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(xF,{children:s.jsx(yF,R({ref:r,className:_t("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))})});_m.displayName=yF.displayName;const $t=m.forwardRef((a,n)=>{var o=a,{className:e,inset:t}=o,r=Ce(o,["className","inset"]);return s.jsx(wF,R({ref:n,className:_t("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)},r))});$t.displayName=wF.displayName;const Ei=m.forwardRef((o,a)=>{var i=o,{className:e,children:t,checked:r}=i,n=Ce(i,["className","children","checked"]);return s.jsxs(kF,re(R({ref:a,className:_t("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:r},n),{children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(SF,{children:s.jsx(Bt,{className:"h-3 w-3"})})}),t]}))});Ei.displayName=kF.displayName;const Xhe=m.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ce(o,["className","children"]);return s.jsxs(CF,re(R({ref:n,className:_t("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)},r),{children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(SF,{children:s.jsx(OE,{className:"h-2 w-2 fill-current"})})}),t]}))});Xhe.displayName=CF.displayName;const Qhe=m.forwardRef((a,n)=>{var o=a,{className:e,inset:t}=o,r=Ce(o,["className","inset"]);return s.jsx(bF,R({ref:n,className:_t("px-1.5 py-1 text-[13px] font-semibold text-foreground",t&&"pl-8",e)},r))});Qhe.displayName=bF.displayName;const tn=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(jF,R({ref:r,className:_t("-mx-1 my-1 h-px bg-border",e)},t))});tn.displayName=jF.displayName;const T6="Menubar",[y4,Jhe,epe]=r1(T6),[_F,GEe]=Pa(T6,[epe,jm]),so=l1(),TF=jm(),[tpe,M6]=_F(T6),rpe=m.forwardRef((e,t)=>{const v=e,{__scopeMenubar:r,value:n,onValueChange:a,defaultValue:o,loop:i=!0,dir:c}=v,d=Ce(v,["__scopeMenubar","value","onValueChange","defaultValue","loop","dir"]),f=wm(c),h=TF(r),[p="",g]=fa({prop:n,onChange:a,defaultProp:o}),[S,b]=m.useState(null);return m.createElement(tpe,{scope:r,value:p,onMenuOpen:m.useCallback(w=>{g(w),b(w)},[g]),onMenuClose:m.useCallback(()=>g(""),[g]),onMenuToggle:m.useCallback(w=>{g(C=>C?"":w),b(w)},[g]),dir:f,loop:i},m.createElement(y4.Provider,{scope:r},m.createElement(y4.Slot,{scope:r},m.createElement(c6,Be({asChild:!0},h,{orientation:"horizontal",loop:i,dir:f,currentTabStopId:S,onCurrentTabStopIdChange:b}),m.createElement(Cr.div,Be({role:"menubar"},d,{ref:t}))))))}),MF="MenubarMenu",[npe,PF]=_F(MF),spe=e=>{const p=e,{__scopeMenubar:t,value:r}=p,n=Ce(p,["__scopeMenubar","value"]),a=Ms(),o=r||a||"LEGACY_REACT_AUTO_VALUE",i=M6(MF,t),c=so(t),d=m.useRef(null),f=m.useRef(!1),h=i.value===o;return m.useEffect(()=>{h||(f.current=!1)},[h]),m.createElement(npe,{scope:t,value:o,triggerId:Ms(),triggerRef:d,contentId:Ms(),wasKeyboardTriggerOpenRef:f},m.createElement(m6,Be({},c,{open:h,onOpenChange:g=>{g||i.onMenuClose()},modal:!1,dir:i.dir},n)))},WM="MenubarTrigger",ape=m.forwardRef((e,t)=>{const b=e,{__scopeMenubar:r,disabled:n=!1}=b,a=Ce(b,["__scopeMenubar","disabled"]),o=TF(r),i=so(r),c=M6(WM,r),d=PF(WM,r),f=m.useRef(null),h=Zr(t,f,d.triggerRef),[p,g]=m.useState(!1),S=c.value===d.value;return m.createElement(y4.ItemSlot,{scope:r,value:d.value,disabled:n},m.createElement(u6,Be({asChild:!0},o,{focusable:!n,tabStopId:d.value}),m.createElement(g6,Be({asChild:!0},i),m.createElement(Cr.button,Be({type:"button",role:"menuitem",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":S,"aria-controls":S?d.contentId:void 0,"data-highlighted":p?"":void 0,"data-state":S?"open":"closed","data-disabled":n?"":void 0,disabled:n},a,{ref:h,onPointerDown:jt(e.onPointerDown,v=>{!n&&v.button===0&&v.ctrlKey===!1&&(c.onMenuOpen(d.value),S||v.preventDefault())}),onPointerEnter:jt(e.onPointerEnter,()=>{if(!!c.value&&!S){var w;c.onMenuOpen(d.value),(w=f.current)===null||w===void 0||w.focus()}}),onKeyDown:jt(e.onKeyDown,v=>{n||(["Enter"," "].includes(v.key)&&c.onMenuToggle(d.value),v.key==="ArrowDown"&&c.onMenuOpen(d.value),["Enter"," ","ArrowDown"].includes(v.key)&&(d.wasKeyboardTriggerOpenRef.current=!0,v.preventDefault()))}),onFocus:jt(e.onFocus,()=>g(!0)),onBlur:jt(e.onBlur,()=>g(!1))})))))}),ope=e=>{const a=e,{__scopeMenubar:t}=a,r=Ce(a,["__scopeMenubar"]),n=so(t);return m.createElement(v6,Be({},n,r))},VM="MenubarContent",ipe=m.forwardRef((e,t)=>{const h=e,{__scopeMenubar:r,align:n="start"}=h,a=Ce(h,["__scopeMenubar","align"]),o=so(r),i=M6(VM,r),c=PF(VM,r),d=Jhe(r),f=m.useRef(!1);return m.createElement(x6,Be({id:c.contentId,"aria-labelledby":c.triggerId,"data-radix-menubar-content":""},o,a,{ref:t,align:n,onCloseAutoFocus:jt(e.onCloseAutoFocus,p=>{if(!!!i.value&&!f.current){var S;(S=c.triggerRef.current)===null||S===void 0||S.focus()}f.current=!1,p.preventDefault()}),onFocusOutside:jt(e.onFocusOutside,p=>{const g=p.target;d().some(b=>{var v;return(v=b.ref.current)===null||v===void 0?void 0:v.contains(g)})&&p.preventDefault()}),onInteractOutside:jt(e.onInteractOutside,()=>{f.current=!0}),onEntryFocus:p=>{c.wasKeyboardTriggerOpenRef.current||p.preventDefault()},onKeyDown:jt(e.onKeyDown,p=>{if(["ArrowRight","ArrowLeft"].includes(p.key)){const g=p.target,S=g.hasAttribute("data-radix-menubar-subtrigger"),b=g.closest("[data-radix-menubar-content]")!==p.currentTarget,w=(i.dir==="rtl"?"ArrowRight":"ArrowLeft")===p.key;if(!w&&S||b&&w)return;let E=d().filter(P=>!P.disabled).map(P=>P.value);w&&E.reverse();const N=E.indexOf(c.value);E=i.loop?xpe(E,N+1):E.slice(N+1);const[M]=E;M&&i.onMenuOpen(M)}},{checkForDefaultPrevented:!1}),style:re(R({},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)"})}))}),lpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(y6,Be({},a,n,{ref:t}))}),cpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(b6,Be({},a,n,{ref:t}))}),upe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(w6,Be({},a,n,{ref:t}))}),dpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(eF,Be({},a,n,{ref:t}))}),fpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(k6,Be({},a,n,{ref:t}))}),hpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(C6,Be({},a,n,{ref:t}))}),ppe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(S6,Be({},a,n,{ref:t}))}),mpe=e=>{const{__scopeMenubar:t,children:r,open:n,onOpenChange:a,defaultOpen:o}=e,i=so(t),[c=!1,d]=fa({prop:n,defaultProp:o,onChange:a});return m.createElement(j6,Be({},i,{open:c,onOpenChange:d}),r)},gpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(E6,Be({"data-radix-menubar-subtrigger":""},a,n,{ref:t}))}),vpe=m.forwardRef((e,t)=>{const o=e,{__scopeMenubar:r}=o,n=Ce(o,["__scopeMenubar"]),a=so(r);return m.createElement(N6,Be({},a,{"data-radix-menubar-content":""},n,{ref:t,style:re(R({},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 xpe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const DF=rpe,ype=spe,AF=ape,bpe=ope,RF=ipe,LF=lpe,OF=cpe,IF=upe,wpe=dpe,$F=fpe,zF=hpe,FF=ppe,kpe=mpe,HF=gpe,BF=vpe,N0=ype,Il=kpe,Cpe=wpe,UF=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(DF,R({ref:r,className:_t("flex h-10 items-center space-x-0 rounded-md border bg-background p-1",e)},t))});UF.displayName=DF.displayName;const tg=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(AF,R({ref:r,className:_t("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))});tg.displayName=AF.displayName;const Xi=m.forwardRef((o,a)=>{var i=o,{className:e,inset:t,children:r}=i,n=Ce(i,["className","inset","children"]);return s.jsxs(HF,re(R({ref:a,className:_t("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)},n),{children:[r,s.jsx(ym,{className:"ml-auto h-4 w-4"})]}))});Xi.displayName=HF.displayName;const Qi=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(BF,R({ref:r,className:_t("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))});Qi.displayName=BF.displayName;const rg=m.forwardRef((i,o)=>{var c=i,{className:e,align:t="start",alignOffset:r=-4,sideOffset:n=8}=c,a=Ce(c,["className","align","alignOffset","sideOffset"]);return s.jsx(bpe,{children:s.jsx(RF,R({ref:o,align:t,alignOffset:r,sideOffset:n,className:_t(" 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)},a))})});rg.displayName=RF.displayName;const Or=m.forwardRef((a,n)=>{var o=a,{className:e,inset:t}=o,r=Ce(o,["className","inset"]);return s.jsx(OF,R({ref:n,className:_t("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)},r))});Or.displayName=OF.displayName;const Js=m.forwardRef((o,a)=>{var i=o,{className:e,children:t,checked:r}=i,n=Ce(i,["className","children","checked"]);return s.jsxs(IF,re(R({ref:a,className:_t("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:r},n),{children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(zF,{children:s.jsx(Bt,{className:"h-4 w-4"})})}),t]}))});Js.displayName=IF.displayName;const WF=m.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ce(o,["className","children"]);return s.jsxs($F,re(R({ref:n,className:_t("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)},r),{children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(zF,{children:s.jsx(OE,{className:"h-2 w-2 fill-current"})})}),t]}))});WF.displayName=$F.displayName;const Spe=m.forwardRef((a,n)=>{var o=a,{className:e,inset:t}=o,r=Ce(o,["className","inset"]);return s.jsx(LF,R({ref:n,className:_t("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e)},r))});Spe.displayName=LF.displayName;const Rs=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(FF,R({ref:r,className:_t("-mx-1 my-1 h-px bg-muted",e)},t))});Rs.displayName=FF.displayName;const Vn=r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("span",R({className:_t("ml-auto text-xs tracking-widest text-muted-foreground",e)},t))};Vn.displayname="MenubarShortcut";const VF=Pf("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"}}),J=m.forwardRef(({className:e,children:t,color:r,size:n,title:a,weight:o,justify:i,onDoubleClick:c=()=>{},onClick:d=()=>{}},f)=>s.jsx("p",{ref:f,title:a,onDoubleClick:c,onClick:d,className:gr(VF({color:r,weight:o,size:n,justify:i,className:e})),children:t})),mv=({className:e,children:t,size:r,weight:n,justify:a,onDoubleClick:o=()=>{},onClick:i=()=>{}})=>s.jsx("p",{onDoubleClick:o,onClick:i,className:gr("block"+VF({weight:n,size:r,justify:a,className:e})),children:t}),b4=({checked:e,label:t})=>s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"flex flex-row items-center pr-2 z-100",children:e?s.jsx(Bt,{className:"form-checkbox h-[16px] w-[16px] text-white bg-blue-500 rounded-sm border-slate-200 border"}):s.jsx("div",{className:"form-checkbox h-[16px] w-[16px] bg-slate-100 rounded-sm border-slate-200 border"})}),s.jsx(J,{className:"".concat(e&&"font-semibold"),children:s.jsx("label",{children:t})})]}),wr=({h:e=3,w:t="full",className:r=""})=>{const n={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"},a={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"?n[e]:"",i=typeof t=="number"||t==="full"?a[t]:"";return s.jsx("div",{className:"".concat(o," ").concat(i," ").concat(r)})};function Ve(e){var r;const t=m.useRef();return(r=t.current)!=null?r:t.current=bt(e)}function qF({onConfirm:e,onCancel:t,onOpen:r=()=>{},buttonClassName:n}){const{t:a}=Tt(),o=Ve(!1);return m.useEffect(()=>{r(o.value)},[o.value]),s.jsxs(ca,{defaultOpen:!1,open:o.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(ke,{variant:"ghost",size:"mini",title:o.value?"":a("UnPin All",{ns:"common"}),onClick:()=>{o.value=!0},className:n,children:s.jsxs(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:[s.jsx(dc,{size:15,className:"group-hover:hidden"}),s.jsx(hf,{size:15,className:"hidden group-hover:block opacity-0 group-hover:opacity-100"})]})})}),s.jsx(Ws,{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&&s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block",children:a("Are you sure?",{ns:"common"})}),s.jsx(wr,{h:1}),s.jsxs(ve,{children:[s.jsx(ke,{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:a("Cancel",{ns:"common"})}),s.jsx(ke,{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:a("UnPin All",{ns:"common"})})]})]})})]})}const w4="horizontal",jpe=["horizontal","vertical"],KF=m.forwardRef((e,t)=>{const d=e,{decorative:r,orientation:n=w4}=d,a=Ce(d,["decorative","orientation"]),o=GF(n)?n:w4,c=r?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return m.createElement(Cr.div,Be({"data-orientation":o},c,a,{ref:t}))});KF.propTypes={orientation(e,t,r){const n=e[t],a=String(n);return n&&!GF(n)?new Error(Epe(a,r)):null}};function Epe(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(w4,"`.")}function GF(e){return jpe.includes(e)}const YF=KF,P6=m.forwardRef((o,a)=>{var i=o,{className:e,orientation:t="horizontal",decorative:r=!0}=i,n=Ce(i,["className","orientation","decorative"]);return s.jsx(YF,R({ref:a,decorative:r,orientation:t,className:_t("bg-".concat(n.color?n.color+"-200":"white"," dark:bg-").concat(n.color?n.color:"gray","-800 opacity-80 dark:opacity-40 my-1.5"),t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e)},n))});P6.displayName=YF.displayName;const ZF="Collapsible",[Npe,XF]=Pa(ZF),[_pe,D6]=Npe(ZF),Tpe=m.forwardRef((e,t)=>{const h=e,{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i}=h,c=Ce(h,["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"]),[d=!1,f]=fa({prop:n,defaultProp:a,onChange:i});return m.createElement(_pe,{scope:r,disabled:o,contentId:Ms(),open:d,onOpenToggle:m.useCallback(()=>f(p=>!p),[f])},m.createElement(Cr.div,Be({"data-state":A6(d),"data-disabled":o?"":void 0},c,{ref:t})))}),Mpe="CollapsibleTrigger",Ppe=m.forwardRef((e,t)=>{const o=e,{__scopeCollapsible:r}=o,n=Ce(o,["__scopeCollapsible"]),a=D6(Mpe,r);return m.createElement(Cr.button,Be({type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":A6(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled},n,{ref:t,onClick:jt(e.onClick,a.onOpenToggle)}))}),QF="CollapsibleContent",Dpe=m.forwardRef((e,t)=>{const o=e,{forceMount:r}=o,n=Ce(o,["forceMount"]),a=D6(QF,e.__scopeCollapsible);return m.createElement(Mo,{present:r||a.open},({present:i})=>m.createElement(Ape,Be({},n,{ref:t,present:i})))}),Ape=m.forwardRef((e,t)=>{const j=e,{__scopeCollapsible:r,present:n,children:a}=j,o=Ce(j,["__scopeCollapsible","present","children"]),i=D6(QF,r),[c,d]=m.useState(n),f=m.useRef(null),h=Zr(t,f),p=m.useRef(0),g=p.current,S=m.useRef(0),b=S.current,v=i.open||c,w=m.useRef(v),C=m.useRef();return m.useEffect(()=>{const E=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(E)},[]),ri(()=>{const E=f.current;if(E){C.current=C.current||{transitionDuration:E.style.transitionDuration,animationName:E.style.animationName},E.style.transitionDuration="0s",E.style.animationName="none";const N=E.getBoundingClientRect();p.current=N.height,S.current=N.width,w.current||(E.style.transitionDuration=C.current.transitionDuration,E.style.animationName=C.current.animationName),d(n)}},[i.open,n]),m.createElement(Cr.div,Be({"data-state":A6(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!v},o,{ref:h,style:R({"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0},e.style)}),v&&a)});function A6(e){return e?"open":"closed"}const Rpe=Tpe,Lpe=Ppe,Ope=Dpe,Xu="Accordion",Ipe=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[R6,$pe,zpe]=r1(Xu),[Nw,YEe]=Pa(Xu,[zpe,XF]),L6=XF(),JF=vt.forwardRef((e,t)=>{const i=e,{type:r}=i,n=Ce(i,["type"]),a=n,o=n;return vt.createElement(R6.Provider,{scope:e.__scopeAccordion},r==="multiple"?vt.createElement(Upe,Be({},o,{ref:t})):vt.createElement(Bpe,Be({},a,{ref:t})))});JF.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[eH,Fpe]=Nw(Xu),[tH,Hpe]=Nw(Xu,{collapsible:!1}),Bpe=vt.forwardRef((e,t)=>{const f=e,{value:r,defaultValue:n,onValueChange:a=()=>{},collapsible:o=!1}=f,i=Ce(f,["value","defaultValue","onValueChange","collapsible"]),[c,d]=fa({prop:r,defaultProp:n,onChange:a});return vt.createElement(eH,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:vt.useCallback(()=>o&&d(""),[o,d])},vt.createElement(tH,{scope:e.__scopeAccordion,collapsible:o},vt.createElement(rH,Be({},i,{ref:t}))))}),Upe=vt.forwardRef((e,t)=>{const h=e,{value:r,defaultValue:n,onValueChange:a=()=>{}}=h,o=Ce(h,["value","defaultValue","onValueChange"]),[i=[],c]=fa({prop:r,defaultProp:n,onChange:a}),d=vt.useCallback(p=>c((g=[])=>[...g,p]),[c]),f=vt.useCallback(p=>c((g=[])=>g.filter(S=>S!==p)),[c]);return vt.createElement(eH,{scope:e.__scopeAccordion,value:i,onItemOpen:d,onItemClose:f},vt.createElement(tH,{scope:e.__scopeAccordion,collapsible:!0},vt.createElement(rH,Be({},o,{ref:t}))))}),[Wpe,_w]=Nw(Xu),rH=vt.forwardRef((e,t)=>{const S=e,{__scopeAccordion:r,disabled:n,dir:a,orientation:o="vertical"}=S,i=Ce(S,["__scopeAccordion","disabled","dir","orientation"]),c=vt.useRef(null),d=Zr(c,t),f=$pe(r),p=wm(a)==="ltr",g=jt(e.onKeyDown,b=>{var v;if(!Ipe.includes(b.key))return;const w=b.target,C=f().filter($=>{var H;return!((H=$.ref.current)!==null&&H!==void 0&&H.disabled)}),j=C.findIndex($=>$.ref.current===w),E=C.length;if(j===-1)return;b.preventDefault();let N=j;const M=0,P=E-1,D=()=>{N=j+1,N>P&&(N=M)},A=()=>{N=j-1,N<M&&(N=P)};switch(b.key){case"Home":N=M;break;case"End":N=P;break;case"ArrowRight":o==="horizontal"&&(p?D():A());break;case"ArrowDown":o==="vertical"&&D();break;case"ArrowLeft":o==="horizontal"&&(p?A():D());break;case"ArrowUp":o==="vertical"&&A();break}const O=N%E;(v=C[O].ref.current)===null||v===void 0||v.focus()});return vt.createElement(Wpe,{scope:r,disabled:n,direction:a,orientation:o},vt.createElement(R6.Slot,{scope:r},vt.createElement(Cr.div,Be({},i,{"data-orientation":o,ref:d,onKeyDown:n?void 0:g}))))}),k4="AccordionItem",[Vpe,O6]=Nw(k4),qpe=vt.forwardRef((e,t)=>{const p=e,{__scopeAccordion:r,value:n}=p,a=Ce(p,["__scopeAccordion","value"]),o=_w(k4,r),i=Fpe(k4,r),c=L6(r),d=Ms(),f=n&&i.value.includes(n)||!1,h=o.disabled||e.disabled;return vt.createElement(Vpe,{scope:r,open:f,disabled:h,triggerId:d},vt.createElement(Rpe,Be({"data-orientation":o.orientation,"data-state":nH(f)},c,a,{ref:t,disabled:h,open:f,onOpenChange:g=>{g?i.onItemOpen(n):i.onItemClose(n)}})))}),Kpe="AccordionHeader",Gpe=vt.forwardRef((e,t)=>{const i=e,{__scopeAccordion:r}=i,n=Ce(i,["__scopeAccordion"]),a=_w(Xu,r),o=O6(Kpe,r);return vt.createElement(Cr.h3,Be({"data-orientation":a.orientation,"data-state":nH(o.open),"data-disabled":o.disabled?"":void 0},n,{ref:t}))}),qM="AccordionTrigger",Ype=vt.forwardRef((e,t)=>{const d=e,{__scopeAccordion:r}=d,n=Ce(d,["__scopeAccordion"]),a=_w(Xu,r),o=O6(qM,r),i=Hpe(qM,r),c=L6(r);return vt.createElement(R6.ItemSlot,{scope:r},vt.createElement(Lpe,Be({"aria-disabled":o.open&&!i.collapsible||void 0,"data-orientation":a.orientation,id:o.triggerId},c,n,{ref:t})))}),Zpe="AccordionContent",Xpe=vt.forwardRef((e,t)=>{const c=e,{__scopeAccordion:r}=c,n=Ce(c,["__scopeAccordion"]),a=_w(Xu,r),o=O6(Zpe,r),i=L6(r);return vt.createElement(Ope,Be({role:"region","aria-labelledby":o.triggerId,"data-orientation":a.orientation},i,n,{ref:t,style:R({"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)"},e.style)}))});function nH(e){return e?"open":"closed"}const Qpe=JF,Jpe=qpe,sH=Gpe,I6=Ype,$6=Xpe,aH=Qpe,z6=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(Jpe,R({ref:r,className:_t(e)},t))});z6.displayName="AccordionItem";const eme=m.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ce(o,["className","children"]);return s.jsx(sH,{className:"flex",children:s.jsxs(I6,re(R({ref:n,className:_t("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e)},r),{children:[t,s.jsx(Nr,{className:"h-4 w-4 transition-transform duration-200"})]}))})});eme.displayName=I6.displayName;const tme=m.forwardRef((a,n)=>{var o=a,{className:e,children:t}=o,r=Ce(o,["className","children"]);return s.jsx($6,re(R({ref:n,className:_t("overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e)},r),{children:s.jsx("div",{className:"pb-4 pt-0",children:t})}))});tme.displayName=$6.displayName;const oH="Tabs",[rme,ZEe]=Pa(oH,[jm]),iH=jm(),[nme,F6]=rme(oH),sme=m.forwardRef((e,t)=>{const S=e,{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:c,activationMode:d="automatic"}=S,f=Ce(S,["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode"]),h=wm(c),[p,g]=fa({prop:n,onChange:a,defaultProp:o});return m.createElement(nme,{scope:r,baseId:Ms(),value:p,onValueChange:g,orientation:i,dir:h,activationMode:d},m.createElement(Cr.div,Be({dir:h,"data-orientation":i},f,{ref:t})))}),ame="TabsList",ome=m.forwardRef((e,t)=>{const c=e,{__scopeTabs:r,loop:n=!0}=c,a=Ce(c,["__scopeTabs","loop"]),o=F6(ame,r),i=iH(r);return m.createElement(c6,Be({asChild:!0},i,{orientation:o.orientation,dir:o.dir,loop:n}),m.createElement(Cr.div,Be({role:"tablist","aria-orientation":o.orientation},a,{ref:t})))}),ime="TabsTrigger",lme=m.forwardRef((e,t)=>{const p=e,{__scopeTabs:r,value:n,disabled:a=!1}=p,o=Ce(p,["__scopeTabs","value","disabled"]),i=F6(ime,r),c=iH(r),d=lH(i.baseId,n),f=cH(i.baseId,n),h=n===i.value;return m.createElement(u6,Be({asChild:!0},c,{focusable:!a,active:h}),m.createElement(Cr.button,Be({type:"button",role:"tab","aria-selected":h,"aria-controls":f,"data-state":h?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d},o,{ref:t,onMouseDown:jt(e.onMouseDown,g=>{!a&&g.button===0&&g.ctrlKey===!1?i.onValueChange(n):g.preventDefault()}),onKeyDown:jt(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&i.onValueChange(n)}),onFocus:jt(e.onFocus,()=>{const g=i.activationMode!=="manual";!h&&!a&&g&&i.onValueChange(n)})})))}),cme="TabsContent",ume=m.forwardRef((e,t)=>{const g=e,{__scopeTabs:r,value:n,forceMount:a,children:o}=g,i=Ce(g,["__scopeTabs","value","forceMount","children"]),c=F6(cme,r),d=lH(c.baseId,n),f=cH(c.baseId,n),h=n===c.value,p=m.useRef(h);return m.useEffect(()=>{const S=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(S)},[]),m.createElement(Mo,{present:a||h},({present:S})=>m.createElement(Cr.div,Be({"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!S,id:f,tabIndex:0},i,{ref:t,style:re(R({},e.style),{animationDuration:p.current?"0s":void 0})}),S&&o))});function lH(e,t){return"".concat(e,"-trigger-").concat(t)}function cH(e,t){return"".concat(e,"-content-").concat(t)}const dme=sme,uH=ome,dH=lme,fH=ume,Cl=dme,si=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(uH,R({ref:r,className:_t("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e)},t))});si.displayName=uH.displayName;const En=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(dH,R({ref:r,className:_t("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))});En.displayName=dH.displayName;const fme=m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx(fH,R({ref:r,className:_t("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset",e)},t))});fme.displayName=fH.displayName;var hH=vw(),b5=function(){},Tw=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:b5,onWheelCapture:b5,onTouchMoveCapture:b5}),a=n[0],o=n[1],i=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,g=e.sideCar,S=e.noIsolation,b=e.inert,v=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,j=o1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=g,N=gw([r,t]),M=cn(cn({},j),a);return m.createElement(m.Fragment,null,h&&m.createElement(E,{sideCar:hH,removeScrollBar:f,shards:p,noIsolation:S,inert:b,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?m.cloneElement(m.Children.only(c),cn(cn({},M),{ref:N})):m.createElement(C,cn({},M,{className:d,ref:N}),c))});Tw.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tw.classNames={fullWidth:Zd,zeroRight:Yd};var C4=!1;if(typeof window!="undefined")try{var Hx=Object.defineProperty({},"passive",{get:function(){return C4=!0,!0}});window.addEventListener("test",Hx,Hx),window.removeEventListener("test",Hx,Hx)}catch(e){C4=!1}var ph=C4?{passive:!1}:!1,hme=function(e){return e.tagName==="TEXTAREA"},pH=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!hme(e)&&r[t]==="visible")},pme=function(e){return pH(e,"overflowY")},mme=function(e){return pH(e,"overflowX")},KM=function(e,t){var r=t;do{typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&(r=r.host);var n=mH(e,r);if(n){var a=gH(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},gme=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},vme=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},mH=function(e,t){return e==="v"?pme(t):mme(t)},gH=function(e,t){return e==="v"?gme(t):vme(t)},xme=function(e,t){return e==="h"&&t==="rtl"?-1:1},yme=function(e,t,r,n,a){var o=xme(e,window.getComputedStyle(t).direction),i=o*n,c=r.target,d=t.contains(c),f=!1,h=i>0,p=0,g=0;do{var S=gH(e,c),b=S[0],v=S[1],w=S[2],C=v-w-o*b;(b||C)&&mH(e,c)&&(p+=C,g+=b),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(a&&p===0||!a&&i>p)||!h&&(a&&g===0||!a&&-i>g))&&(f=!0),f},Bx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GM=function(e){return[e.deltaX,e.deltaY]},YM=function(e){return e&&"current"in e?e.current:e},bme=function(e,t){return e[0]===t[0]&&e[1]===t[1]},wme=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},kme=0,mh=[];function Cme(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),a=m.useState(kme++)[0],o=m.useState(function(){return i1()})[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=mw([e.lockRef.current],(e.shards||[]).map(YM),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(v,w){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var C=Bx(v),j=r.current,E="deltaX"in v?v.deltaX:j[0]-C[0],N="deltaY"in v?v.deltaY:j[1]-C[1],M,P=v.target,D=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in v&&D==="h"&&P.type==="range")return!1;var A=KM(D,P);if(!A)return!0;if(A?M=D:(M=D==="v"?"h":"v",A=KM(D,P)),!A)return!1;if(!n.current&&"changedTouches"in v&&(E||N)&&(n.current=M),!M)return!0;var O=n.current||M;return yme(O,w,v,O==="h"?E:N,!0)},[]),d=m.useCallback(function(v){var w=v;if(!(!mh.length||mh[mh.length-1]!==o)){var C="deltaY"in w?GM(w):Bx(w),j=t.current.filter(function(M){return M.name===w.type&&M.target===w.target&&bme(M.delta,C)})[0];if(j&&j.should){w.cancelable&&w.preventDefault();return}if(!j){var E=(i.current.shards||[]).map(YM).filter(Boolean).filter(function(M){return M.contains(w.target)}),N=E.length>0?c(w,E[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),f=m.useCallback(function(v,w,C,j){var E={name:v,delta:w,target:C,should:j};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),h=m.useCallback(function(v){r.current=Bx(v),n.current=void 0},[]),p=m.useCallback(function(v){f(v.type,GM(v),v.target,c(v,e.lockRef.current))},[]),g=m.useCallback(function(v){f(v.type,Bx(v),v.target,c(v,e.lockRef.current))},[]);m.useEffect(function(){return mh.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,ph),document.addEventListener("touchmove",d,ph),document.addEventListener("touchstart",h,ph),function(){mh=mh.filter(function(v){return v!==o}),document.removeEventListener("wheel",d,ph),document.removeEventListener("touchmove",d,ph),document.removeEventListener("touchstart",h,ph)}},[]);var S=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(o,{styles:wme(a)}):null,S?m.createElement(bw,{gapMode:"margin"}):null)}const Sme=xw(hH,Cme);var vH=m.forwardRef(function(e,t){return m.createElement(Tw,cn({},e,{ref:t,sideCar:Sme}))});vH.classNames=Tw.classNames;const jme=vH,xH="Popover",[yH,XEe]=Pa(xH,[Yu]),H6=Yu(),[Eme,Tm]=yH(xH),Nme=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!1}=e,c=H6(t),d=m.useRef(null),[f,h]=m.useState(!1),[p=!1,g]=fa({prop:n,defaultProp:a,onChange:o});return m.createElement(a1,c,m.createElement(Eme,{scope:t,contentId:Ms(),triggerRef:d,open:p,onOpenChange:g,onOpenToggle:m.useCallback(()=>g(S=>!S),[g]),hasCustomAnchor:f,onCustomAnchorAdd:m.useCallback(()=>h(!0),[]),onCustomAnchorRemove:m.useCallback(()=>h(!1),[]),modal:i},r))},_me="PopoverAnchor",Tme=m.forwardRef((e,t)=>{const d=e,{__scopePopover:r}=d,n=Ce(d,["__scopePopover"]),a=Tm(_me,r),o=H6(r),{onCustomAnchorAdd:i,onCustomAnchorRemove:c}=a;return m.useEffect(()=>(i(),()=>c()),[i,c]),m.createElement(fw,Be({},o,n,{ref:t}))}),bH="PopoverPortal",[Mme,Pme]=yH(bH,{forceMount:void 0}),Dme=e=>{const{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=Tm(bH,t);return m.createElement(Mme,{scope:t,forceMount:r},m.createElement(Mo,{present:r||o.open},m.createElement(Ku,{asChild:!0,container:a},n)))},gv="PopoverContent",Ame=m.forwardRef((e,t)=>{const r=Pme(gv,e.__scopePopover),i=e,{forceMount:n=r.forceMount}=i,a=Ce(i,["forceMount"]),o=Tm(gv,e.__scopePopover);return m.createElement(Mo,{present:n||o.open},o.modal?m.createElement(Rme,Be({},a,{ref:t})):m.createElement(Lme,Be({},a,{ref:t})))}),Rme=m.forwardRef((e,t)=>{const r=Tm(gv,e.__scopePopover),n=m.useRef(null),a=Zr(t,n),o=m.useRef(!1);return m.useEffect(()=>{const i=n.current;if(i)return pw(i)},[]),m.createElement(jme,{as:Au,allowPinchZoom:!0},m.createElement(wH,Be({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:jt(e.onCloseAutoFocus,i=>{var c;i.preventDefault(),o.current||(c=r.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:jt(e.onPointerDownOutside,i=>{const c=i.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;o.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:jt(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})))}),Lme=m.forwardRef((e,t)=>{const r=Tm(gv,e.__scopePopover),n=m.useRef(!1),a=m.useRef(!1);return m.createElement(wH,Be({},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;n.current||(c=r.triggerRef.current)===null||c===void 0||c.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,c;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=o.target;((c=r.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),wH=m.forwardRef((e,t)=>{const b=e,{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h}=b,p=Ce(b,["__scopePopover","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"]),g=Tm(gv,r),S=H6(r);return lw(),m.createElement(cw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},m.createElement(n1,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1)},m.createElement(hw,Be({"data-state":Ome(g.open),role:"dialog",id:g.contentId},S,p,{ref:t,style:re(R({},p.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 Ome(e){return e?"open":"closed"}const Ime=Nme,$me=Tme,zme=Dme,kH=Ame,ca=Ime,ua=$me,Ws=m.forwardRef((o,a)=>{var i=o,{className:e,align:t="center",sideOffset:r=4}=i,n=Ce(i,["className","align","sideOffset"]);return s.jsx(zme,{children:s.jsx(kH,R({ref:a,align:t,sideOffset:r,className:_t("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)},n))})});Ws.displayName=kH.displayName;function S4({id:e,children:t,onOver:r=()=>{},className:n="",isActive:a=!0}){const{setNodeRef:o,isOver:i}=Q2({id:e});return m.useEffect(()=>{r(i)},[i]),s.jsx("div",{ref:a?o:null,className:n,children:t})}const Ga=({keys:e})=>{const{isWindows:t}=xt(xs),r=t?e:e.replace("ALT+","⌥");return s.jsx("span",{children:r})};function B6(){const{data:e,isLoading:t,error:r}=Gu("get_collections",{}),{setCollections:n}=xt(kn);return m.useEffect(()=>{Array.isArray(e)&&n(e)},[e]),{collections:e,isCollectionsLoading:t,isCollectionsError:r}}function CH(){const{data:e,isLoading:t,isSuccess:r,error:n}=Gu("get_active_collection_with_menu_items",{}),a=vr(),{setMenuItems:o}=xt(kn);return m.useEffect(()=>{e!=null&&e.items&&o(e==null?void 0:e.items)},[e,e==null?void 0:e.items]),{collectionWithItems:e,invalidateCollectionWithMenuItems:()=>{a.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})},isCollectionWithItemSuccess:r,isCollectionWithItemLoading:t,isCollectionWithItemError:n}}function Fme(){const{data:e,isLoading:t,refetch:r,error:n}=Gu("get_active_collection_with_menu_items",{useQueryOptions:{enabled:!1,refetchOnWindowFocus:!1}});return{collectionWithMenuItems:e,fetchCollectionWithMenuItems:r,isCollectionWithItemLoading:t,isCollectionWithItemError:n}}function U6(){const{data:e,isLoading:t,refetch:r,isFetched:n,error:a}=Gu("get_active_collection_with_clips",{}),{setClipItems:o,setTabs:i}=xt(kn),c=vr();return m.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:r,isCollectionWithClipsLoadingFinished:n,isCollectionWithClipsError:a}}function SH(){const{data:e,isLoading:t,refetch:r,isFetched:n,error:a}=Gu("get_active_collection_with_clips",{useQueryOptions:{enabled:!1,refetchOnWindowFocus:!1}});return{collectionWithClips:e,isCollectionWithClipsLoading:t,fetchCollectionWithClips:r,isCollectionWithClipsLoadingFinished:n,isCollectionWithClipsError:a}}function W6(){const e=vr(),{mutate:t,isSuccess:r}=zr("update_moved_menu_items_in_collection",{onSuccess:n=>pe(this,null,function*(){n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("Move menu items update error",n)}),onError:n=>{console.log("Move menu items update error",n)}});return{updateMovedMenuItemsSuccess:r,updateMovedMenuItems:t}}function Mw(){const e=vr(),{mutate:t,isSuccess:r}=zr("update_moved_clips_in_collection",{onSuccess:n=>pe(this,null,function*(){n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("Move menu items update error",n)}),onError:n=>{console.log("Move menu items update error",n)}});return{updateMovedClipsSuccess:r,updateMovedClips:t}}function Hme(){const e=vr(),{mutate:t}=zr("update_collection_by_id",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_collections"]}):console.log("update collection error",r)},onError:r=>{console.log("update collection error",r)}});return{updateCollectionById:t}}function V6(){const e=vr(),{mutate:t,isSuccess:r}=zr("select_collection_by_id",{onSuccess:n=>pe(this,null,function*(){n==="ok"?(yield kr("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",n)})});return{selectCollectionByIdSuccess:r,selectCollectionById:t}}function Bme(){const e=vr(),{mutate:t,isSuccess:r}=zr("create_collection",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_collections"]}):console.log("update collection error",n)}});return{createNewCollection:t,createNewCollectionSuccess:r}}function Ume(){const e=vr(),{mutate:t}=zr("delete_collection_by_id",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_collections"]}),e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})):console.log("update collection error",r)}});return{deleteCollectionById:t}}function d1(e,t){if(!t)return{metadataLinkByItemId:void 0,invalidateLinkMetadataByItemId:()=>{}};const r=vr(),{data:n}=Gu("get_link_metadata_by_item_id",{itemId:t,useQueryOptions:{enabled:!!e,staleTime:60*(60*1e3),refetchOnWindowFocus:!1}});return{invalidateLinkMetadataByItemId:()=>{r.invalidateQueries({queryKey:["get_link_metadata_by_item_id",{itemId:t}]})},metadataLinkByItemId:n}}function Bi(){const e=vr(),{mutate:t,isPending:r}=zr("update_item_by_id",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update item error",n)}});return{updateItemByIdPending:r,invalidateCollectionWithClips:()=>{e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})},updateItemById:t}}function Wme(){const e=vr(),{mutate:t}=zr("add_image_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("add image to item error",r)}});return{addImageToItemById:t}}function Vme(){const e=vr(),{mutateAsync:t,reset:r}=zr("upload_image_file_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("upload image to item error",n)}});return{uploadImageToItemReset:r,uploadImageToItemById:t}}function qme(){const e=vr(),{mutate:t}=zr("update_item_value_by_history_id",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update item value by history id error",r)}});return{updateItemValueByHistoryId:t}}function Kme(){const e=vr(),{mutate:t,isPending:r}=zr("update_items_by_ids",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update items by ids error",n)}});return{updateItemByIdsPending:r,updateItemByIds:t}}function Gme(){const e=vr(),{mutate:t,isPending:r}=zr("update_menu_items_by_ids",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("update menu items by ids error",n)}});return{updateMenuItemsByIds:t,updateMenuItemsByIdsPending:r}}function f1(){const e=vr(),{mutate:t,isPending:r}=zr("update_menu_item_by_id",{onSuccess:n=>{n==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("update menu item error",n)}});return{updateMenuItemByIdPending:r,updateMenuItemById:t}}function Pw(e=!0){const t=vr(),{mutateAsync:r,isSuccess:n}=zr("create_item",{onSuccess:a=>{a&&e&&t.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}});return{createNewItem:r,createNewItemSuccess:n}}function Yme(e=!0){const t=vr(),{mutateAsync:r,isSuccess:n}=zr("link_clip_to_menu_item",{onSuccess:a=>{a&&e&&t.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}});return{linkClipIdToMenuItem:r,linkClipIdToMenuItemSuccess:n}}function Zme(){const e=vr(),{mutateAsync:t,isSuccess:r}=zr("duplicate_item",{onSuccess:n=>{n==="ok"&&e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})}});return{duplicateItem:t,duplicateItemSuccess:r}}function Xme(){const e=vr(),{mutateAsync:t,isSuccess:r}=zr("duplicate_menu_item",{onSuccess:n=>{n==="ok"&&e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]})}});return{duplicateMenuItem:t,duplicateMenuItemSuccess:r}}function Dw(){const e=vr(),{mutate:t}=zr("delete_item_by_id",{onSuccess:r=>{r==="ok"?(cf.value&&(cf.value=null),qa.value&&(qa.value=null),e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})):console.log("delete item error",r)}});return{deleteItemById:t}}function jH(){const e=vr(),{mutate:t}=zr("delete_menu_item_by_id",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("delete menu item error",r)}});return{deleteMenuItemById:t}}function Qme(){const e=vr(),{mutate:t}=zr("delete_menu_items_by_ids",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_menu_items"]}):console.log("delete menu items error",r)}});return{deleteMenuItemsByIds:t}}function Jme(){const e=vr(),{mutate:t}=zr("delete_image_by_item_by_id",{onSuccess:r=>{r==="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",r)}});return{deleteClipImageByItemId:t}}function e0e(){const e=vr(),{mutate:t}=zr("delete_items_by_ids",{onSuccess:r=>{r==="ok"?(cf.value&&(cf.value=null),qa.value&&(qa.value=null),e.invalidateQueries({queryKey:["get_active_collection_with_clips"]})):console.log("delete items error",r)}});return{deleteItemsByIds:t}}function EH(){const e=vr(),{mutate:t}=zr("update_pinned_items_by_ids",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update clip items error",r)}});return{updatePinnedClipsByIds:t}}function t0e(){const e=vr(),{mutate:t}=zr("unpin_all_items_clips",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("unpin all clips error",r)}});return{unPinAllClips:t}}function r0e(){const e=vr(),{mutate:t}=zr("move_pinned_clip_item_up_down",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("unpin all clips error",r)}});return{movePinnedClipUpDown:t}}function NH(){const e=vr(),{mutate:t}=zr("update_tab",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update tab error",r)}});return{updateTabById:t}}function n0e(){const e=vr(),{mutate:t}=zr("update_tabs",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("update tab error",r)}});return{updateTabs:t}}function s0e(){const e=vr(),{setCurrentTab:t}=xt(kn),{mutate:r,isSuccess:n}=zr("create_tab",{onSuccess:a=>{a?(e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}),setTimeout(()=>{t(a)},100),ea.value=null):console.log("create tab error",a)}});return{createNewTab:r,createNewTabSuccess:n}}function a0e(){const e=vr(),{mutate:t}=zr("delete_tab",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}):console.log("delete tab error",r)}});return{deleteItemById:t}}const gh=bt(""),vh=bt(""),Rf=({delay:e=800,onCopied:t=()=>{}})=>{const{copyPasteSequencePinnedDelay:r,copyPasteSequenceIsReversOrder:n}=xt(Rn),a=i=>(vh.value=i,new Promise((c,d)=>{i&&!gh.value?(gh.value=i,setTimeout(()=>{_s("copy_clip_item",{itemId:i,copyFromMenu:!1}).then(f=>{f==="ok"?requestAnimationFrame(()=>{gh.value="",vh.value="",t(),c()}):(gh.value="",vh.value="",console.error("Failed to copy clip item",f),d())}).catch(f=>{gh.value="",vh.value="",console.error("Failed to copy clip item",f),d()})},e)):vh.value=""})),o=i=>pe(void 0,null,function*(){n&&(i=i.reverse());for(const c of i)a(c),yield new Promise(d=>setTimeout(d,r*1e3))});return[gh.value,a,o,vh.value]},dd=bt(""),_0=bt(0),Lf=({delay:e=800,onPasted:t=()=>{}})=>{const{copyPasteDelay:r,copyPasteSequencePinnedDelay:n,copyPasteSequenceIsReversOrder:a}=xt(Rn),o=m.useRef(),i=(h,p=0,g=!1)=>new Promise((S,b)=>{_s("copy_paste_clip_item",{itemId:h,delay:p,isCopyOnly:g}).then(v=>{v==="ok"?S():(dd.value="",console.error("Failed to copy history item",v),b())}).catch(v=>{dd.value="",console.error("Failed to copy history item",v),b()})}),c=m.useCallback((h,p=1e3)=>(clearInterval(o.current),new Promise(g=>{_0.value=h,o.current=setInterval(()=>{_0.value>0?(_0.value===1&&g(),_0.value-=1):clearInterval(o.current)},p)})),[dd.value]),d=(h,p,g)=>new Promise(S=>pe(void 0,null,function*(){p=p!=null?p:r,h?(dd.value=h,p>0&&(yield c(p)),yield i(h,0,g),setTimeout(()=>{requestAnimationFrame(()=>{t(),S(),dd.value=""})},e)):(dd.value="",S())})),f=h=>pe(void 0,null,function*(){a&&(h=h.reverse());for(const p of h)yield d(p,n)});return[dd.value,_0.value,d,f]};/*!
|
||
* OverlayScrollbars
|
||
* Version: 2.4.5
|
||
*
|
||
* Copyright (c) Rene Haas | KingSora.
|
||
* https://github.com/KingSora
|
||
*
|
||
* Released under the MIT license.
|
||
*/const Ti=(e,t)=>{const{o:r,u:n,_:a}=e;let o=r,i;const c=(h,p)=>{const g=o,S=h,b=p||(n?!n(g,S):g!==S);return(b||a)&&(o=S,i=g),[o,b,i]};return[t?h=>c(t(o,i),h):c,h=>[o,!!h,i]]},q6=typeof window!="undefined",_H=q6&&Node.ELEMENT_NODE,{toString:o0e,hasOwnProperty:w5}=Object.prototype,i0e=/^\[object (.+)\]$/,Qu=e=>e===void 0,Aw=e=>e===null,l0e=e=>Qu(e)||Aw(e)?"".concat(e):o0e.call(e).replace(i0e,"$1").toLowerCase(),gl=e=>typeof e=="number",h1=e=>typeof e=="string",TH=e=>typeof e=="boolean",Sl=e=>typeof e=="function",ai=e=>Array.isArray(e),vv=e=>typeof e=="object"&&!ai(e)&&!Aw(e),Rw=e=>{const t=!!e&&e.length,r=gl(t)&&t>-1&&t%1==0;return ai(e)||!Sl(e)&&r?t>0&&vv(e)?t-1 in e:!0:!1},qb=e=>{if(!e||!vv(e)||l0e(e)!=="object")return!1;let t;const r="constructor",n=e[r],a=n&&n.prototype,o=w5.call(e,r),i=a&&w5.call(a,"isPrototypeOf");if(n&&!o&&!i)return!1;for(t in e);return Qu(t)||w5.call(e,t)},jg=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===_H:!1},Lw=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===_H:!1};function an(e,t){if(Rw(e))for(let r=0;r<e.length&&t(e[r],r,e)!==!1;r++);else e&&an(Object.keys(e),r=>t(e[r],r,e));return e}const Ow=(e,t)=>e.indexOf(t)>=0,yu=(e,t)=>e.concat(t),nn=(e,t,r)=>(!r&&!h1(t)&&Rw(t)?Array.prototype.push.apply(e,t):e.push(t),e),Mm=e=>{const t=Array.from,r=[];return t&&e?t(e):(e instanceof Set?e.forEach(n=>{nn(r,n)}):an(e,n=>{nn(r,n)}),r)},Kb=e=>!!e&&!e.length,ZM=e=>Mm(new Set(e)),oi=(e,t,r)=>{an(e,a=>a&&a.apply(void 0,t||[])),!r&&(e.length=0)},Iw=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),mc=e=>e?Object.keys(e):[],Kr=(e,t,r,n,a,o,i)=>{const c=[t,r,n,a,o,i];return(typeof e!="object"||Aw(e))&&!Sl(e)&&(e={}),an(c,d=>{an(d,(f,h)=>{const p=d[h];if(e===p)return!0;const g=ai(p);if(p&&qb(p)){const S=e[h];let b=S;g&&!ai(S)?b=[]:!g&&!qb(S)&&(b={}),e[h]=Kr(b,p)}else e[h]=g?p.slice():p})}),e},MH=(e,t)=>an(Kr({},e),(r,n,a)=>{r===void 0?delete a[n]:t&&r&&qb(r)&&(a[n]=MH(r,t))}),K6=e=>{for(const t in e)return!1;return!0},Sa=(e,t,r)=>{if(Qu(r))return e?e.getAttribute(t):null;e&&e.setAttribute(t,r)},PH=(e,t)=>new Set((Sa(e,t)||"").split(" ")),Fa=(e,t)=>{e&&e.removeAttribute(t)},Xd=(e,t,r,n)=>{if(r){const a=PH(e,t);a[n?"add":"delete"](r);const o=Mm(a).join(" ").trim();Sa(e,t,o)}},c0e=(e,t,r)=>PH(e,t).has(r),j4=q6&&Element.prototype,DH=(e,t)=>{const r=[],n=t?Lw(t)&&t:document;return n?nn(r,n.querySelectorAll(e)):r},u0e=(e,t)=>{const r=t?Lw(t)&&t:document;return r?r.querySelector(e):null},Gb=(e,t)=>Lw(e)?(j4.matches||j4.msMatchesSelector).call(e,t):!1,E4=e=>e?Mm(e.childNodes):[],rc=e=>e&&e.parentElement,Qh=(e,t)=>{if(Lw(e)){const r=j4.closest;if(r)return r.call(e,t);do{if(Gb(e,t))return e;e=rc(e)}while(e)}},d0e=(e,t,r)=>{const n=Qh(e,t),a=e&&u0e(r,n),o=Qh(a,t)===n;return n&&a?n===e||a===e||o&&Qh(Qh(e,r),t)!==n:!1},Yo=()=>{},nc=e=>{if(Rw(e))an(Mm(e),t=>nc(t));else if(e){const t=rc(e);t&&t.removeChild(e)}},G6=(e,t,r)=>{if(r&&e){let n=t,a;return Rw(r)?(a=document.createDocumentFragment(),an(r,o=>{o===n&&(n=o.previousSibling),a.appendChild(o)})):a=r,t&&(n?n!==t&&(n=n.nextSibling):n=e.firstChild),e.insertBefore(a,n||null),()=>nc(r)}return Yo},Vo=(e,t)=>G6(e,null,t),f0e=(e,t)=>G6(rc(e),e,t),XM=(e,t)=>G6(rc(e),e&&e.nextSibling,t),Qd=e=>{const t=document.createElement("div");return Sa(t,"class",e),t},AH=e=>{const t=Qd();return t.innerHTML=e.trim(),an(E4(t),r=>nc(r))},eo=q6?window:{},Eg=Math.max,h0e=Math.min,xv=Math.round,RH=eo.cancelAnimationFrame,LH=eo.requestAnimationFrame,Yb=eo.setTimeout,N4=eo.clearTimeout,_4=e=>e.charAt(0).toUpperCase()+e.slice(1),p0e=()=>Qd().style,m0e=["-webkit-","-moz-","-o-","-ms-"],g0e=["WebKit","Moz","O","MS","webkit","moz","o","ms"],k5={},C5={},v0e=e=>{let t=C5[e];if(Iw(C5,e))return t;const r=_4(e),n=p0e();return an(m0e,a=>{const o=a.replace(/-/g,"");return!(t=[e,a+e,o+r,_4(o)+r].find(c=>n[c]!==void 0))}),C5[e]=t||""},$w=e=>{let t=k5[e]||eo[e];return Iw(k5,e)||(an(g0e,r=>(t=t||eo[r+_4(e)],!t)),k5[e]=t),t},x0e=$w("MutationObserver"),QM=$w("IntersectionObserver"),Zb=$w("ResizeObserver"),T4=$w("ScrollTimeline"),fr=(e,...t)=>e.bind(0,...t),Qc=e=>{let t;const r=e?Yb:LH,n=e?N4:RH;return[a=>{n(t),t=r(a,Sl(e)?e():e)},()=>n(t)]},OH=(e,t)=>{let r,n,a,o=Yo;const{v:i,p:c,g:d}=t||{},f=function(b){o(),N4(r),r=n=void 0,o=Yo,e.apply(this,b)},h=S=>d&&n?d(n,S):S,p=()=>{o!==Yo&&f(h(a)||a)},g=function(){const b=Mm(arguments),v=Sl(i)?i():i;if(gl(v)&&v>=0){const C=Sl(c)?c():c,j=gl(C)&&C>=0,E=v>0?Yb:LH,N=v>0?N4:RH,P=h(b)||b,D=f.bind(0,P);o();const A=E(D,v);o=()=>N(A),j&&!r&&(r=Yb(p,C)),n=a=P}else f(b)};return g.m=p,g},y0e=/[^\x20\t\r\n\f]+/g,IH=(e,t,r)=>{const n=e&&e.classList;let a,o=0,i=!1;if(n&&t&&h1(t)){const c=t.match(y0e)||[];for(i=c.length>0;a=c[o++];)i=!!r(n,a)&&i}return i},Y6=(e,t)=>{IH(e,t,(r,n)=>r.remove(n))},Hu=(e,t)=>(IH(e,t,(r,n)=>r.add(n)),fr(Y6,e,t)),b0e={opacity:1,zIndex:1},Ux=(e,t)=>{const r=e||"",n=t?parseFloat(r):parseInt(r,10);return n===n?n:0},w0e=(e,t)=>!b0e[e]&&gl(t)?"".concat(t,"px"):t,JM=(e,t,r)=>String((t!=null?t[r]||t.getPropertyValue(r):e.style[r])||""),k0e=(e,t,r)=>{try{const{style:n}=e;Qu(n[t])?n.setProperty(t,r):n[t]=w0e(t,r)}catch(n){}},$H=e=>{const t=e||0;return isFinite(t)?t:0};function ia(e,t){const r=h1(t);if(ai(t)||r){let a=r?"":{};if(e){const o=eo.getComputedStyle(e,null);a=r?JM(e,o,t):t.reduce((i,c)=>(i[c]=JM(e,o,c),i),a)}return a}e&&an(t,(a,o)=>k0e(e,o,t[o]))}const yv=e=>ia(e,"direction")==="rtl",eP=(e,t,r)=>{const n=t?"".concat(t,"-"):"",a=r?"-".concat(r):"",o="".concat(n,"top").concat(a),i="".concat(n,"right").concat(a),c="".concat(n,"bottom").concat(a),d="".concat(n,"left").concat(a),f=ia(e,[o,i,c,d]);return{t:Ux(f[o],!0),r:Ux(f[i],!0),b:Ux(f[c],!0),l:Ux(f[d],!0)}},xh=(e,t)=>"translate".concat(vv(e)?"(".concat(e.x,",").concat(e.y,")"):"".concat(t?"X":"Y","(").concat(e,")")),Wx=e=>"".concat(($H(e)*100).toFixed(3),"%"),Vx=e=>"".concat($H(e),"px"),zH="paddingTop",Z6="paddingRight",X6="paddingLeft",Xb="paddingBottom",Qb="marginLeft",Jb="marginRight",Ng="marginBottom",ng="overflowX",sg="overflowY",gc="width",vc="height",Qp="hidden",C0e={w:0,h:0},zw=(e,t)=>t?{w:t["".concat(e,"Width")],h:t["".concat(e,"Height")]}:C0e,S0e=e=>zw("inner",e||eo),_g=fr(zw,"offset"),Ey=fr(zw,"client"),e2=fr(zw,"scroll"),t2=e=>{const t=parseFloat(ia(e,gc))||0,r=parseFloat(ia(e,vc))||0;return{w:t-xv(t),h:r-xv(r)}},ul=e=>e.getBoundingClientRect(),M4=e=>!!(e&&(e[vc]||e[gc])),FH=(e,t)=>{const r=M4(e);return!M4(t)&&r},Fw=(e,t,r,n)=>{if(e&&t){let a=!0;return an(r,o=>{const i=n?n(e[o]):e[o],c=n?n(t[o]):t[o];i!==c&&(a=!1)}),a}return!1},HH=(e,t)=>Fw(e,t,["w","h"]),BH=(e,t)=>Fw(e,t,["x","y"]),j0e=(e,t)=>Fw(e,t,["t","r","b","l"]),tP=(e,t,r)=>Fw(e,t,[gc,vc],r&&(n=>xv(n)));let qx;const rP="passive",E0e=()=>{if(Qu(qx)){qx=!1;try{eo.addEventListener(rP,Yo,Object.defineProperty({},rP,{get(){qx=!0}}))}catch(e){}}return qx},UH=e=>e.split(" "),nP=(e,t,r,n)=>{an(UH(t),a=>{e.removeEventListener(a,r,n)})},In=(e,t,r,n)=>{var a;const o=E0e(),i=(a=o&&n&&n.S)!=null?a:o,c=n&&n.$||!1,d=n&&n.O||!1,f=o?{passive:i,capture:c}:c;return fr(oi,UH(t).map(h=>{const p=d?g=>{nP(e,h,p,c),r(g)}:r;return e.addEventListener(h,p,f),fr(nP,e,h,p,c)}))},WH=e=>e.stopPropagation(),sP=e=>e.preventDefault(),N0e={x:0,y:0},S5=e=>{const t=e&&ul(e);return t?{x:t.left+eo.pageYOffset,y:t.top+eo.pageXOffset}:N0e},VH=(e,t,r)=>r?r.n?-e:r.i?t-e:e:e,_0e=(e,t)=>[t&&t.i?e:0,VH(e,e,t)],Bu=(e,t)=>{const{x:r,y:n}=gl(t)?{x:t,y:t}:t||{};gl(r)&&(e.scrollLeft=r),gl(n)&&(e.scrollTop=n)},Jp=e=>({x:e.scrollLeft,y:e.scrollTop}),aP=(e,t)=>{an(ai(t)?t:[t],e)},P4=e=>{const t=new Map,r=(o,i)=>{if(o){const c=t.get(o);aP(d=>{c&&c[d?"delete":"clear"](d)},i)}else t.forEach(c=>{c.clear()}),t.clear()},n=(o,i)=>{if(h1(o)){const f=t.get(o)||new Set;return t.set(o,f),aP(h=>{Sl(h)&&f.add(h)},i),fr(r,o,i)}TH(i)&&i&&r();const c=mc(o),d=[];return an(c,f=>{const h=o[f];h&&nn(d,n(f,h))}),fr(oi,d)},a=(o,i)=>{an(Mm(t.get(o)),c=>{i&&!Kb(i)?c.apply(0,i):c()})};return n(e||{}),[n,r,a]},oP=e=>JSON.stringify(e,(t,r)=>{if(Sl(r))throw 0;return r}),iP=(e,t)=>e?"".concat(t).split(".").reduce((r,n)=>r&&Iw(r,n)?r[n]:void 0,e):void 0,T0e={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"]}},qH=(e,t)=>{const r={},n=yu(mc(t),mc(e));return an(n,a=>{const o=e[a],i=t[a];if(vv(o)&&vv(i))Kr(r[a]={},qH(o,i)),K6(r[a])&&delete r[a];else if(Iw(t,a)&&i!==o){let c=!0;if(ai(o)||ai(i))try{oP(o)===oP(i)&&(c=!1)}catch(d){}c&&(r[a]=i)}}),r},M0e=(e,t,r)=>n=>[iP(e,n),r||iP(t,n)!==void 0],p1="data-overlayscrollbars",KH="os-environment",GH="".concat(KH,"-flexbox-glue"),P0e="".concat(GH,"-max"),YH="os-scrollbar-hidden",j5="".concat(p1,"-initialize"),Mi=p1,ZH="".concat(Mi,"-overflow-x"),XH="".concat(Mi,"-overflow-y"),mp="overflowVisible",D0e="scrollbarHidden",lP="scrollbarPressed",r2="updating",Jc="".concat(p1,"-viewport"),E5="arrange",QH="scrollbarHidden",gp=mp,D4="".concat(p1,"-padding"),A0e=gp,cP="".concat(p1,"-content"),Q6="os-size-observer",R0e="".concat(Q6,"-appear"),L0e="".concat(Q6,"-listener"),O0e="os-trinsic-observer",I0e="os-no-css-vars",$0e="os-theme-none",ao="os-scrollbar",z0e="".concat(ao,"-rtl"),F0e="".concat(ao,"-horizontal"),H0e="".concat(ao,"-vertical"),JH="".concat(ao,"-track"),J6="".concat(ao,"-handle"),B0e="".concat(ao,"-visible"),U0e="".concat(ao,"-cornerless"),uP="".concat(ao,"-transitionless"),dP="".concat(ao,"-interaction"),fP="".concat(ao,"-unusable"),A4="".concat(ao,"-auto-hide"),hP="".concat(A4,"-hidden"),pP="".concat(ao,"-wheel"),W0e="".concat(JH,"-interactive"),V0e="".concat(J6,"-interactive"),eB={},tB={},q0e=e=>{an(e,t=>an(t,(r,n)=>{eB[n]=t[n]}))},rB=(e,t,r)=>mc(e).map(n=>{const{static:a,instance:o}=e[n],[i,c,d]=r||[],f=r?o:a;if(f){const h=r?f(i,c,t):f(t);return(d||tB)[n]=h}}),Pm=e=>tB[e],K0e="__osOptionsValidationPlugin",G0e="__osSizeObserverPlugin",eN="__osScrollbarsHidingPlugin",Y0e="__osClickScrollPlugin";let N5;const mP=(e,t,r,n)=>{Vo(e,t);const a=Ey(t),o=_g(t),i=t2(r);return n&&nc(t),{x:o.h-a.h+i.h,y:o.w-a.w+i.w}},Z0e=e=>{let t=!1;const r=Hu(e,YH);try{t=ia(e,v0e("scrollbar-width"))==="none"||eo.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch(n){}return r(),t},X0e=(e,t)=>{ia(e,{[ng]:Qp,[sg]:Qp,direction:"rtl"}),Bu(e,{x:0});const r=S5(e),n=S5(t);Bu(e,{x:-999});const a=S5(t);return{i:r.x===n.x,n:n.x!==a.x}},Q0e=(e,t)=>{const r=Hu(e,GH),n=ul(e),a=ul(t),o=tP(a,n,!0),i=Hu(e,P0e),c=ul(e),d=ul(t),f=tP(d,c,!0);return r(),i(),o&&f},J0e=()=>{const{body:e}=document,r=AH('<div class="'.concat(KH,'"><div></div></div>'))[0],n=r.firstChild,[a,,o]=P4(),[i,c]=Ti({o:mP(e,r,n),u:BH},fr(mP,e,r,n,!0)),[d]=c(),f=Z0e(r),h={x:d.x===0,y:d.y===0},p={elements:{host:null,padding:!f,viewport:w=>f&&w===w.ownerDocument.body&&w,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},g=Kr({},T0e),S=fr(Kr,{},g),b=fr(Kr,{},p),v={P:d,I:h,H:f,A:ia(r,"zIndex")==="-1",L:!!T4,V:X0e(r,n),U:Q0e(r,n),B:fr(a,"r"),j:b,N:w=>Kr(p,w)&&b(),G:S,q:w=>Kr(g,w)&&S(),F:Kr({},p),W:Kr({},g)};return Fa(r,"style"),nc(r),eo.addEventListener("resize",()=>{let w;if(!f&&(!h.x||!h.y)){const C=Pm(eN);w=!!(C?C.R():Yo)(v,i)}o("r",[w])}),v},to=()=>(N5||(N5=J0e()),N5),tN=(e,t)=>Sl(t)?t.apply(0,e):t,ege=(e,t,r,n)=>{const a=Qu(n)?r:n;return tN(e,a)||t.apply(0,e)},nB=(e,t,r,n)=>{const a=Qu(n)?r:n,o=tN(e,a);return!!o&&(jg(o)?o:t.apply(0,e))},tge=(e,t)=>{const{nativeScrollbarsOverlaid:r,body:n}=t||{},{I:a,H:o,j:i}=to(),{nativeScrollbarsOverlaid:c,body:d}=i().cancel,f=r!=null?r:c,h=Qu(n)?d:n,p=(a.x||a.y)&&f,g=e&&(Aw(h)?!o:h);return!!p||!!g},rN=new WeakMap,rge=(e,t)=>{rN.set(e,t)},nge=e=>{rN.delete(e)},sB=e=>rN.get(e),sge=(e,t,r)=>{let n=!1;const a=r?new WeakMap:!1,o=()=>{n=!0},i=c=>{if(a&&r){const d=r.map(f=>{const[h,p]=f||[];return[p&&h?(c||DH)(h,e):[],p]});an(d,f=>an(f[0],h=>{const p=f[1],g=a.get(h)||[];if(e.contains(h)&&p){const b=In(h,p.trim(),v=>{n?(b(),a.delete(h)):t(v)});a.set(h,nn(g,b))}else oi(g),a.delete(h)}))}};return i(),[o,i]},gP=(e,t,r,n)=>{let a=!1;const{X:o,Y:i,J:c,K:d,Z:f,tt:h}=n||{},p=OH(()=>a&&r(!0),{v:33,p:99}),[g,S]=sge(e,p,c),b=o||[],v=i||[],w=yu(b,v),C=(E,N)=>{if(!Kb(N)){const M=f||Yo,P=h||Yo,D=[],A=[];let O=!1,$=!1;if(an(N,H=>{const{attributeName:z,target:I,type:W,oldValue:_,addedNodes:K,removedNodes:V}=H,U=W==="attributes",X=W==="childList",G=e===I,F=U&&z,q=F?Sa(I,z||""):null,Y=F&&_!==q,se=Ow(v,z)&&Y;if(t&&(X||!G)){const ee=U&&Y,ae=ee&&d&&Gb(I,d),le=(ae?!M(I,z,_,q):!U||ee)&&!P(H,!!ae,e,n);an(K,ue=>nn(D,ue)),an(V,ue=>nn(D,ue)),$=$||le}!t&&G&&Y&&!M(I,z,_,q)&&(nn(A,z),O=O||se)}),S(H=>ZM(D).reduce((z,I)=>(nn(z,DH(H,I)),Gb(I,H)?nn(z,I):z),[])),t)return!E&&$&&r(!1),[!1];if(!Kb(A)||O){const H=[ZM(A),O];return!E&&r.apply(0,H),H}}},j=new x0e(fr(C,!1));return[()=>(j.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:w,subtree:t,childList:t,characterData:t}),a=!0,()=>{a&&(g(),j.disconnect(),a=!1)}),()=>{if(a)return p.m(),C(!0,j.takeRecords())}]},aB=(e,t,r)=>{const{nt:a,ot:o}=r||{},i=Pm(G0e),{V:c}=to(),d=fr(yv,e),[f]=Ti({o:!1,_:!0});return()=>{const h=[],g=AH('<div class="'.concat(Q6,'"><div class="').concat(L0e,'"></div></div>'))[0],S=g.firstChild,b=v=>{const w=v instanceof ResizeObserverEntry,C=!w&&ai(v);let j=!1,E=!1,N=!0;if(w){const[M,,P]=f(v.contentRect),D=M4(M),A=FH(M,P);E=!P||A,j=!E&&!D,N=!j}else C?[,N]=v:E=v===!0;if(a&&N){const M=C?v[0]:yv(g);Bu(g,{x:VH(3333333,3333333,M&&c),y:3333333})}j||t({st:C?v:void 0,et:!C,ot:E})};if(Zb){const v=new Zb(w=>b(w.pop()));v.observe(S),nn(h,()=>{v.disconnect()})}else if(i){const[v,w]=i(S,b,o);nn(h,yu([Hu(g,R0e),In(g,"animationstart",v)],w))}else return Yo;if(a){const[v]=Ti({o:void 0},d);nn(h,In(g,"scroll",w=>{const C=v(),[j,E,N]=C;E&&(Y6(S,"ltr rtl"),Hu(S,j?"rtl":"ltr"),b([!!j,E,N])),WH(w)}))}return fr(oi,nn(h,Vo(e,g)))}},age=(e,t)=>{let r;const n=d=>d.h===0||d.isIntersecting||d.intersectionRatio>0,a=Qd(O0e),[o]=Ti({o:!1}),i=(d,f)=>{if(d){const h=o(n(d)),[,p]=h;return p&&!f&&t(h)&&[h]}},c=(d,f)=>i(f.pop(),d);return[()=>{const d=[];if(QM)r=new QM(fr(c,!1),{root:e}),r.observe(a),nn(d,()=>{r.disconnect()});else{const f=()=>{const h=_g(a);i(h)};nn(d,aB(a,f)()),f()}return fr(oi,nn(d,Vo(e,a)))},()=>r&&c(!0,r.takeRecords())]},oge=(e,t)=>{let r,n,a,o,i;const{H:c}=to(),d="[".concat(Mi,"]"),f="[".concat(Jc,"]"),h=["tabindex"],p=["wrap","cols","rows"],g=["id","class","style","open"],S={ct:!1,rt:yv(e.lt)},{lt:b,it:v,ut:w,ft:C,_t:j,dt:E,vt:N}=e,{U:M,B:P}=to(),[D]=Ti({u:HH,o:{w:0,h:0}},()=>{const F=E(gp,mp),q=E(E5,""),Y=q&&Jp(v);N(gp,mp),N(E5,""),N("",r2,!0);const se=e2(w),ee=e2(v),ae=t2(v);return N(gp,mp,F),N(E5,"",q),N("",r2),Bu(v,Y),{w:ee.w+se.w+ae.w,h:ee.h+se.h+ae.h}}),A=C?p:yu(g,p),O=OH(t,{v:()=>r,p:()=>n,g(F,q){const[Y]=F,[se]=q;return[yu(mc(Y),mc(se)).reduce((ee,ae)=>(ee[ae]=Y[ae]||se[ae],ee),{})]}}),$=F=>{an(F||h,q=>{if(Ow(h,q)){const Y=Sa(b,q);h1(Y)?Sa(v,q,Y):Fa(v,q)}})},H=(F,q)=>{const[Y,se]=F,ee={ht:se};return Kr(S,{ct:Y}),!q&&t(ee),ee},z=({et:F,st:q,ot:Y})=>{const ee=!(F&&!Y&&!q)&&c?O:t,[ae,oe]=q||[];q&&Kr(S,{rt:ae}),ee({et:F||Y,ot:Y,gt:oe})},I=(F,q)=>{const[,Y]=D(),se={bt:Y};return Y&&!q&&(F?t:O)(se),se},W=(F,q,Y)=>{const se={wt:q};return q&&!Y?O(se):j||$(F),se},[_,K]=w||!M?age(b,H):[],V=!j&&aB(b,z,{ot:!0,nt:!0}),[U,X]=gP(b,!1,W,{Y:g,X:yu(g,h)}),G=j&&Zb&&new Zb(F=>{const q=F[F.length-1].contentRect;z({et:!0,ot:FH(q,i)}),i=q});return[()=>{$(),G&&G.observe(b);const F=V&&V(),q=_&&_(),Y=U(),se=P(ee=>{const[,ae]=D();O({yt:ee,bt:ae})});return()=>{G&&G.disconnect(),F&&F(),q&&q(),o&&o(),Y(),se()}},({St:F,$t:q,xt:Y})=>{const se={},[ee]=F("update.ignoreMutation"),[ae,oe]=F("update.attributes"),[le,ue]=F("update.elementEvents"),[ce,he]=F("update.debounce"),we=ue||oe,Se=q||Y,Ae=je=>Sl(ee)&&ee(je);if(we){a&&a(),o&&o();const[je,Le]=gP(w||v,!0,I,{X:yu(A,ae||[]),J:le,K:d,tt:(Ee,He)=>{const{target:Qe,attributeName:Ze}=Ee;return(!He&&Ze&&!j?d0e(Qe,d,f):!1)||!!Qh(Qe,".".concat(ao))||!!Ae(Ee)}});o=je(),a=Le}if(he)if(O.m(),ai(ce)){const je=ce[0],Le=ce[1];r=gl(je)&&je,n=gl(Le)&&Le}else gl(ce)?(r=ce,n=!1):(r=!1,n=!1);if(Se){const je=X(),Le=K&&K(),Ee=a&&a();je&&Kr(se,W(je[0],je[1],Se)),Le&&Kr(se,H(Le[0],Se)),Ee&&Kr(se,I(Ee[0],Se))}return se},S]},R4=(e,t,r)=>Eg(e,h0e(t,r)),ige=(e,t,r)=>{const n=xv(t),[a,o]=_0e(n,r),i=(o-e)/o,c=e/a,d=e/o,f=r?r.n?i:r.i?c:d:d;return R4(0,1,f)},oB=(e,t,r)=>{if(r){const d=t?gc:vc,{Ot:f,Ct:h}=r,p=ul(h)[d],g=ul(f)[d];return R4(0,1,p/g)}const n=t?"x":"y",{Ht:a,zt:o}=e,i=o[n],c=a[n];return R4(0,1,i/(i+c))},vP=(e,t,r,n)=>{const a=oB(e,n,t);return 1/a*(1-a)*r},lge=(e,t,r,n)=>{const{j:a,A:o}=to(),{scrollbars:i}=a(),{slot:c}=i,{It:d,lt:f,it:h,At:p,Et:g,Tt:S,_t:b}=t,{scrollbars:v}=p?{}:e,{slot:w}=v||{},C=new Map,j=ae=>T4&&new T4({source:g,axis:ae}),E=j("x"),N=j("y"),M=nB([d,f,h],()=>b&&S?d:f,c,w),P=ae=>b&&!S&&rc(ae)===h,D=ae=>{C.forEach((oe,le)=>{(ae?Ow(ai(ae)?ae:[ae],le):!0)&&((oe||[]).forEach(ce=>{ce&&ce.cancel()}),C.delete(le))})},A=(ae,oe,le)=>{const ue=le?Hu:Y6;an(ae,ce=>{ue(ce.Dt,oe)})},O=(ae,oe)=>{an(ae,le=>{const[ue,ce]=oe(le);ia(ue,ce)})},$=(ae,oe,le,ue)=>oe&&ae.animate(le,{timeline:oe,composite:ue}),H=(ae,oe)=>{O(ae,le=>{const{Ct:ue}=le;return[ue,{[oe?gc:vc]:Wx(oB(r,oe))}]})},z=(ae,oe)=>{E&&N?ae.forEach(le=>{const{Dt:ue,Ct:ce}=le,he=fr(vP,r,le),we=oe&&yv(ue),Se=he(we?1:0,oe),Ae=he(we?0:1,oe);D(ce),C.set(ce,[$(ce,oe?E:N,Kr({transform:[xh(Wx(Se),oe),xh(Wx(Ae),oe)]},we?{clear:["left"]}:{}))])}):O(ae,le=>{const{Ct:ue,Dt:ce}=le,{V:he}=to(),we=oe?"x":"y",{Ht:Se}=r,Ae=yv(ce),je=vP(r,le,ige(Jp(g)[we],Se[we],oe&&Ae&&he),oe);return[ue,{transform:xh(Wx(je),oe)}]})},I=ae=>{const{Dt:oe}=ae,le=P(oe)&&oe,{x:ue,y:ce}=Jp(g);return[le,{transform:le?xh({x:Vx(ue),y:Vx(ce)}):""}]},W=(ae,oe,le,ue)=>$(ae,oe,{transform:[xh(Vx(0),ue),xh(Vx(Eg(0,le-.5)),ue)]},"add"),_=[],K=[],V=[],U=(ae,oe,le)=>{const ue=TH(le),ce=ue?le:!0,he=ue?!le:!0;ce&&A(K,ae,oe),he&&A(V,ae,oe)},X=()=>{H(K,!0),H(V)},G=()=>{z(K,!0),z(V)},F=()=>{if(b)if(N&&N){const{Ht:ae}=r;yu(V,K).forEach(({Dt:oe})=>{D(oe),P(oe)&&C.set(oe,[W(oe,E,ae.x,!0),W(oe,N,ae.y)])})}else O(K,I),O(V,I)},q=ae=>{const oe=ae?F0e:H0e,le=ae?K:V,ue=Kb(le)?uP:"",ce=Qd("".concat(ao," ").concat(oe," ").concat(ue)),he=Qd(JH),we=Qd(J6),Se={Dt:ce,Ot:he,Ct:we};return o||Hu(ce,I0e),nn(le,Se),nn(_,[Vo(ce,he),Vo(he,we),fr(nc,ce),D,n(Se,U,z,ae)]),Se},Y=fr(q,!0),se=fr(q,!1),ee=()=>(Vo(M,K[0].Dt),Vo(M,V[0].Dt),Yb(()=>{U(uP)},300),fr(oi,_));return Y(),se(),[{kt:X,Mt:G,Rt:F,Pt:U,Lt:{L:E,Vt:K,Ut:Y,Bt:fr(O,K)},jt:{L:N,Vt:V,Ut:se,Bt:fr(O,V)}},ee]},cge=(e,t,r)=>{const{lt:n,Et:a,Nt:o}=t;return(i,c,d,f)=>{const{Dt:h,Ot:p,Ct:g}=i,[S,b]=Qc(333),[v,w]=Qc(),C=fr(d,[i],f),j=!!a.scrollBy,E="client".concat(f?"X":"Y"),N=f?gc:vc,M=f?"left":"top",P=f?"w":"h",D=f?"x":"y",A=H=>H.propertyName.indexOf(N)>-1,O=()=>{const H="pointerup pointerleave pointercancel lostpointercapture",z=(I,W)=>_=>{const{Ht:K}=r,V=_g(p)[P]-_g(g)[P],X=W*_/V*K[D];Bu(a,{[D]:I+X})};return In(p,"pointerdown",I=>{const W=Qh(I.target,".".concat(J6))===g,_=W?g:p,K=e.scrollbars,{button:V,isPrimary:U,pointerType:X}=I,{pointers:G}=K,F=V===0&&U&&K[W?"dragScroll":"clickScroll"]&&(G||[]).includes(X);if(Xd(n,Mi,lP,!0),F){const q=!W&&I.shiftKey,Y=fr(ul,g),se=fr(ul,p),ee=(Ee,He)=>(Ee||Y())[M]-(He||se())[M],ae=xv(ul(a)[N])/_g(a)[P]||1,oe=z(Jp(a)[D]||0,1/ae),le=I[E],ue=Y(),ce=se(),he=ue[N],we=ee(ue,ce)+he/2,Se=le-ce[M],Ae=W?0:Se-we,je=Ee=>{oi(Le),_.releasePointerCapture(Ee.pointerId)},Le=[fr(Xd,n,Mi,lP),In(o,H,je),In(o,"selectstart",Ee=>sP(Ee),{S:!1}),In(p,H,je),In(p,"pointermove",Ee=>{const He=Ee[E]-le;(W||q)&&oe(Ae+He)})];if(q)oe(Ae);else if(!W){const Ee=Pm(Y0e);Ee&&nn(Le,Ee(oe,ee,Ae,he,Se))}_.setPointerCapture(I.pointerId)}})};let $=!0;return fr(oi,[In(h,"pointerenter",()=>{c(dP,!0)}),In(h,"pointerleave pointercancel",()=>{c(dP,!1)}),In(h,"wheel",H=>{const{deltaX:z,deltaY:I,deltaMode:W}=H;j&&$&&W===0&&rc(h)===n&&a.scrollBy({left:z,top:I,behavior:"smooth"}),$=!1,c(pP,!0),S(()=>{$=!0,c(pP)}),sP(H)},{S:!1,$:!0}),In(g,"transitionstart",H=>{if(A(H)){const z=()=>{C(),v(z)};z()}}),In(g,"transitionend transitioncancel",H=>{A(H)&&(w(),C())}),In(h,"mousedown",fr(In,o,"click",WH,{O:!0,$:!0}),{$:!0}),O(),b,w])}},uge=(e,t,r,n,a,o)=>{let i,c,d,f,h,p=Yo,g=0;const[S,b]=Qc(),[v,w]=Qc(),[C,j]=Qc(100),[E,N]=Qc(100),[M,P]=Qc(100),[D,A]=Qc(()=>g),[O,$]=lge(e,a,n,cge(t,a,n)),{lt:H,Gt:z,Tt:I}=a,{Pt:W,kt:_,Mt:K,Rt:V}=O,U=Y=>{W(A4,Y,!0),W(A4,Y,!1)},X=(Y,se)=>{if(A(),Y)W(hP);else{const ee=fr(W,hP,!0);g>0&&!se?D(ee):ee()}},G=Y=>Y.pointerType==="mouse",F=Y=>{G(Y)&&(f=c,f&&X(!0))},q=[j,A,N,P,w,b,()=>p(),In(H,"pointerover",F,{O:!0}),In(H,"pointerenter",F),In(H,"pointerleave",Y=>{G(Y)&&(f=!1,c&&X(!1))}),In(H,"pointermove",Y=>{G(Y)&&i&&S(()=>{j(),X(!0),E(()=>{i&&X(!1)})})}),In(z,"scroll",Y=>{v(()=>{K(),d&&X(!0),C(()=>{d&&!f&&X(!1)})}),o(Y),V()})];return[()=>fr(oi,nn(q,$())),({St:Y,xt:se,qt:ee,Ft:ae})=>{const{Wt:oe,Xt:le,Yt:ue}=ae||{},{gt:ce,ot:he}=ee||{},{rt:we}=r,{I:Se}=to(),{Ht:Ae,Jt:je,Kt:Le}=n,[Ee,He]=Y("showNativeOverlaidScrollbars"),[Qe,Ze]=Y("scrollbars.theme"),[mt,Ke]=Y("scrollbars.visibility"),[Lt,qt]=Y("scrollbars.autoHide"),[Xt,Ge]=Y("scrollbars.autoHideSuspend"),[zt]=Y("scrollbars.autoHideDelay"),[ir,Ft]=Y("scrollbars.dragScroll"),[et,cr]=Y("scrollbars.clickScroll"),ar=he&&!se,ur=Le.x||Le.y,Sr=oe||le||ce||se,Mt=ue||Ke,Rr=Ee&&Se.x&&Se.y,Me=(Ye,Te)=>{const lt=mt==="visible"||mt==="auto"&&Ye==="scroll";return W(B0e,lt,Te),lt};if(g=zt,ar&&(Xt&&ur?(U(!1),p(),M(()=>{p=In(z,"scroll",fr(U,!0),{O:!0})})):U(!0)),He&&W($0e,Rr),Ze&&(W(h),W(Qe,!0),h=Qe),Ge&&!Xt&&U(!0),qt&&(i=Lt==="move",c=Lt==="leave",d=Lt!=="never",X(!d,!0)),Ft&&W(V0e,ir),cr&&W(W0e,et),Mt){const Ye=Me(je.x,!0),Te=Me(je.y,!1);W(U0e,!(Ye&&Te))}Sr&&(_(),K(),V(),W(fP,!Ae.x,!0),W(fP,!Ae.y,!1),W(z0e,we&&!I))},{},O]},dge=e=>{const t=to(),{j:r,H:n}=t,a=Pm(eN),o=a&&a.C,{elements:i}=r(),{host:c,padding:d,viewport:f,content:h}=i,p=jg(e),g=p?{}:e,{elements:S}=g,{host:b,padding:v,viewport:w,content:C}=S||{},j=p?e:g.target,E=Gb(j,"textarea"),N=j.ownerDocument,M=N.documentElement,P=j===N.body,D=N.defaultView,A=fr(ege,[j]),O=fr(nB,[j]),$=fr(tN,[j]),H=fr(Qd,""),z=fr(A,H,f),I=fr(O,H,h),W=z(w),_=W===j,K=_&&P,V=!_&&I(C),U=!_&&jg(W)&&W===V,X=U&&!!$(h),G=X?z():W,F=X?V:I(),Y=K?M:U?G:W,se=E?A(H,c,b):j,ee=K?Y:se,ae=U?F:V,oe=N.activeElement,le=!_&&D.top===D&&oe===j,ue={It:j,lt:ee,it:Y,Zt:!_&&O(H,d,v),ut:ae,Qt:!_&&!n&&o&&o(t),Et:K?M:Y,Gt:K?N:Y,tn:D,Nt:N,ft:E,Tt:P,At:p,_t:_,nn:U,dt:(qt,Xt)=>c0e(Y,_?Mi:Jc,_?Xt:qt),vt:(qt,Xt,Ge)=>Xd(Y,_?Mi:Jc,_?Xt:qt,Ge)},ce=mc(ue).reduce((qt,Xt)=>{const Ge=ue[Xt];return nn(qt,Ge&&jg(Ge)&&!rc(Ge)?Ge:!1)},[]),he=qt=>qt?Ow(ce,qt):null,{It:we,lt:Se,Zt:Ae,it:je,ut:Le,Qt:Ee}=ue,He=[()=>{Fa(Se,Mi),Fa(Se,j5),Fa(we,j5),P&&(Fa(M,Mi),Fa(M,j5))}],Qe=E&&he(Se);let Ze=E?we:E4([Le,je,Ae,Se,we].find(qt=>he(qt)===!1));const mt=K?we:Le||je,Ke=fr(oi,He);return[ue,()=>{Sa(Se,Mi,_?"viewport":"host"),Sa(Ae,D4,""),Sa(Le,cP,""),_||Sa(je,Jc,"");const qt=P&&!_?Hu(rc(j),YH):Yo,Xt=Ge=>{Vo(rc(Ge),E4(Ge)),nc(Ge)};if(Qe&&(XM(we,Se),nn(He,()=>{XM(Se,we),nc(Se)})),Vo(mt,Ze),Vo(Se,Ae),Vo(Ae||Se,!_&&je),Vo(je,Le),nn(He,()=>{qt(),Fa(Ae,D4),Fa(Le,cP),Fa(je,ZH),Fa(je,XH),Fa(je,Jc),he(Le)&&Xt(Le),he(je)&&Xt(je),he(Ae)&&Xt(Ae)}),n&&!_&&(Xd(je,Jc,QH,!0),nn(He,fr(Fa,je,Jc))),Ee&&(f0e(je,Ee),nn(He,fr(nc,Ee))),le){const Ge="tabindex",zt=Sa(je,Ge);Sa(je,Ge,"-1"),je.focus();const ir=()=>zt?Sa(je,Ge,zt):Fa(je,Ge),Ft=In(N,"pointerdown keydown",()=>{ir(),Ft()});nn(He,[ir,Ft])}else oe&&oe.focus&&oe.focus();return Ze=0,Ke},Ke]},fge=({ut:e})=>({qt:t,sn:r,xt:n})=>{const{U:a}=to(),{ht:o}=t||{},{ct:i}=r;(e||!a)&&(o||n)&&ia(e,{[vc]:i?"":"100%"})},hge=({lt:e,Zt:t,it:r,_t:n},a)=>{const[o,i]=Ti({u:j0e,o:eP()},fr(eP,e,"padding",""));return({St:c,qt:d,sn:f,xt:h})=>{let[p,g]=i(h);const{H:S,U:b}=to(),{et:v,bt:w,gt:C}=d||{},{rt:j}=f,[E,N]=c("paddingAbsolute");(v||g||(h||!b&&w))&&([p,g]=o(h));const P=!n&&(N||C||g);if(P){const D=!E||!t&&!S,A=p.r+p.l,O=p.t+p.b,$={[Jb]:D&&!j?-A:0,[Ng]:D?-O:0,[Qb]:D&&j?-A:0,top:D?-p.t:0,right:D?j?-p.r:"auto":0,left:D?j?"auto":-p.l:0,[gc]:D?"calc(100% + ".concat(A,"px)"):""},H={[zH]:D?p.t:0,[Z6]:D?p.r:0,[Xb]:D?p.b:0,[X6]:D?p.l:0};ia(t||r,$),ia(r,H),Kr(a,{Zt:p,en:!D,D:t?H:Kr({},$,H)})}return{cn:P}}},pge=({lt:e,Zt:t,it:r,Qt:n,_t:a,vt:o,Tt:i,tn:c},d)=>{const f=fr(Eg,0),h="visible",p=42,g={u:HH,o:{w:0,h:0}},S={u:BH,o:{x:Qp,y:Qp}},b=(q,Y)=>{const se=eo.devicePixelRatio%1!==0?1:0,ee={w:f(q.w-Y.w),h:f(q.h-Y.h)};return{w:ee.w>se?ee.w:0,h:ee.h>se?ee.h:0}},v=q=>q.indexOf(h)===0,{P:w,U:C,H:j,I:E}=to(),N=Pm(eN),M=!a&&!j&&(E.x||E.y),P=i&&a,[D,A]=Ti(g,fr(t2,r)),[O,$]=Ti(g,fr(e2,r)),[H,z]=Ti(g),[I,W]=Ti(g),[_]=Ti(S),K=(q,Y)=>{if(ia(r,{[vc]:""}),Y){const{en:se,Zt:ee}=d,{rn:ae,k:oe}=q,le=t2(e),ue=Ey(e),ce=ia(r,"boxSizing")==="content-box",he=se||ce?ee.b+ee.t:0,we=!(E.x&&ce);ia(r,{[vc]:ue.h+le.h+(ae.x&&we?oe.x:0)-he})}},V=(q,Y)=>{const se=!j&&!q?p:0,ee=(Ae,je,Le)=>{const Ee=ia(r,Ae),Qe=(Y?Y[Ae]:Ee)==="scroll";return[Ee,Qe,Qe&&!j?je?se:Le:0,je&&!!se]},[ae,oe,le,ue]=ee(ng,E.x,w.x),[ce,he,we,Se]=ee(sg,E.y,w.y);return{Jt:{x:ae,y:ce},rn:{x:oe,y:he},k:{x:le,y:we},M:{x:ue,y:Se}}},U=(q,Y,se,ee)=>{const ae=(he,we)=>{const Se=v(he),Ae=we&&Se&&he.replace("".concat(h,"-"),"")||"";return[we&&!Se?he:"",v(Ae)?"hidden":Ae]},[oe,le]=ae(se.x,Y.x),[ue,ce]=ae(se.y,Y.y);return ee[ng]=le&&ue?le:oe,ee[sg]=ce&&oe?ce:ue,V(q,ee)},X=(q,Y,se,ee)=>{const{k:ae,M:oe}=q,{x:le,y:ue}=oe,{x:ce,y:he}=ae,{D:we}=d,Se=Y?Qb:Jb,Ae=Y?X6:Z6,je=we[Se],Le=we[Ng],Ee=we[Ae],He=we[Xb];ee[gc]="calc(100% + ".concat(he+je*-1,"px)"),ee[Se]=-he+je,ee[Ng]=-ce+Le,se&&(ee[Ae]=Ee+(ue?he:0),ee[Xb]=He+(le?ce:0))},[G,F]=N?N.T(M,C,r,n,d,V,X):[()=>M,()=>[Yo]];return({St:q,qt:Y,sn:se,xt:ee},{cn:ae})=>{const{et:oe,wt:le,bt:ue,ht:ce,gt:he,yt:we}=Y||{},{ct:Se,rt:Ae}=se,[je,Le]=q("showNativeOverlaidScrollbars"),[Ee,He]=q("overflow"),Qe=je&&E.x&&E.y,Ze=!a&&!C&&(oe||ue||le||Le||ce),mt=oe||ae||ue||he||we||Le,Ke=v(Ee.x),Lt=v(Ee.y),qt=Ke||Lt;let Xt=A(ee),Ge=$(ee),zt=z(ee),ir=W(ee),Ft;if(Le&&j&&o(QH,D0e,!Qe),Ze&&(Ft=V(Qe),K(Ft,Se)),mt){qt&&o(gp,mp,!1);const[De,Fe]=F(Qe,Ae,Ft),[Je,st]=Xt=D(ee),[at,wt]=Ge=O(ee),ct=Ey(r);let Nt=at,Gt=ct;De(),(wt||st||Le)&&Fe&&!Qe&&G(Fe,at,Je,Ae)&&(Gt=Ey(r),Nt=e2(r));const kt=S0e(c),dr={w:f(Eg(at.w,Nt.w)+Je.w),h:f(Eg(at.h,Nt.h)+Je.h)},Yt={w:f((P?kt.w:Gt.w+f(ct.w-at.w))+Je.w),h:f((P?kt.h:Gt.h+f(ct.h-at.h))+Je.h)};ir=I(Yt),zt=H(b(dr,Yt),ee)}const[et,cr]=ir,[ar,ur]=zt,[Sr,Mt]=Ge,[Rr,Me]=Xt,Ye={x:ar.w>0,y:ar.h>0},Te=Ke&&Lt&&(Ye.x||Ye.y)||Ke&&Ye.x&&!Ye.y||Lt&&Ye.y&&!Ye.x;if(ae||he||we||Me||Mt||cr||ur||He||Le||Ze||mt){const De={[Jb]:0,[Ng]:0,[Qb]:0,[gc]:"",[ng]:"",[sg]:""},Fe=U(Qe,Ye,Ee,De),Je=G(Fe,Sr,Rr,Ae);a||X(Fe,Ae,Je,De),Ze&&K(Fe,Se),a?(Sa(e,ZH,De[ng]),Sa(e,XH,De[sg])):ia(r,De)}Xd(e,Mi,mp,Te),Xd(t,D4,A0e,Te),a||Xd(r,Jc,gp,qt);const[xe,be]=_(V(Qe).Jt);return Kr(d,{Jt:xe,zt:{x:et.w,y:et.h},Ht:{x:ar.w,y:ar.h},Kt:Ye}),{Yt:be,Wt:cr,Xt:ur}}},mge=e=>{const[t,r,n]=dge(e),a={Zt:{t:0,r:0,b:0,l:0},en:!1,D:{[Jb]:0,[Ng]:0,[Qb]:0,[zH]:0,[Z6]:0,[Xb]:0,[X6]:0},zt:{x:0,y:0},Ht:{x:0,y:0},Jt:{x:Qp,y:Qp},Kt:{x:!1,y:!1}},{It:o,it:i,vt:c,_t:d}=t,{H:f,I:h,U:p}=to(),g=!f&&(h.x||h.y),S=[fge(t),hge(t,a),pge(t,a)];return[r,b=>{const v={},C=(g||!p)&&Jp(i);return c("",r2,!0),an(S,j=>{Kr(v,j(b,v)||{})}),c("",r2),Bu(i,C),!d&&Bu(o,0),v},a,t,n]},gge=(e,t,r,n)=>{const[a,o,i,c,d]=mge(e),[f,h,p]=oge(c,C=>{w({},C)}),[g,S,,b]=uge(e,t,p,i,c,n),v=C=>mc(C).some(j=>!!C[j]),w=(C,j)=>{const{ln:E,xt:N,$t:M,an:P}=C,D=E||{},A=!!N,O={St:M0e(t,D,A),ln:D,xt:A};if(P)return S(O),!1;const $=j||h(Kr({},O,{$t:M})),H=o(Kr({},O,{sn:p,qt:$}));S(Kr({},O,{qt:$,Ft:H}));const z=v($),I=v(H),W=z||I||!K6(D)||A;return W&&r(C,{qt:$,Ft:H}),W};return[()=>{const{It:C,it:j,Nt:E,Tt:N}=c,M=N?E.documentElement:C,P=Jp(M),D=[f(),a(),g()];return Bu(j,P),fr(oi,D)},w,()=>({un:p,fn:i}),{_n:c,dn:b},d]},Xl=(e,t,r)=>{const{G:n}=to(),a=jg(e),o=a?e:e.target,i=sB(o);if(t&&!i){let c=!1;const d=[],f={},h=$=>{const H=MH($,!0),z=Pm(K0e);return z?z(H,!0):H},p=Kr({},n(),h(t)),[g,S,b]=P4(),[v,w,C]=P4(r),j=($,H)=>{C($,H),b($,H)},[E,N,M,P,D]=gge(e,p,({ln:$,xt:H},{qt:z,Ft:I})=>{const{et:W,gt:_,ht:K,bt:V,wt:U,ot:X}=z,{Wt:G,Xt:F,Yt:q}=I;j("updated",[O,{updateHints:{sizeChanged:!!W,directionChanged:!!_,heightIntrinsicChanged:!!K,overflowEdgeChanged:!!G,overflowAmountChanged:!!F,overflowStyleChanged:!!q,contentMutation:!!V,hostMutation:!!U,appear:!!X},changedOptions:$||{},force:!!H}])},$=>j("scroll",[O,$])),A=$=>{nge(o),oi(d),c=!0,j("destroyed",[O,$]),S(),w()},O={options($,H){if($){const z=H?n():{},I=qH(p,Kr(z,h($)));K6(I)||(Kr(p,I),N({ln:I}))}return Kr({},p)},on:v,off:($,H)=>{$&&H&&w($,H)},state(){const{un:$,fn:H}=M(),{rt:z}=$,{zt:I,Ht:W,Jt:_,Kt:K,Zt:V,en:U}=H;return Kr({},{overflowEdge:I,overflowAmount:W,overflowStyle:_,hasOverflow:K,padding:V,paddingAbsolute:U,directionRTL:z,destroyed:c})},elements(){const{It:$,lt:H,Zt:z,it:I,ut:W,Et:_,Gt:K}=P._n,{Lt:V,jt:U}=P.dn,X=F=>{const{Ct:q,Ot:Y,Dt:se}=F;return{scrollbar:se,track:Y,handle:q}},G=F=>{const{Vt:q,Ut:Y}=F,se=X(q[0]);return Kr({},se,{clone:()=>{const ee=X(Y());return N({an:!0}),ee}})};return Kr({},{target:$,host:H,padding:z||I,viewport:I,content:W||I,scrollOffsetElement:_,scrollEventElement:K,scrollbarHorizontal:G(V),scrollbarVertical:G(U)})},update:$=>N({xt:$,$t:!0}),destroy:fr(A,!1),plugin:$=>f[mc($)[0]]};return nn(d,[D]),rge(o,O),rB(eB,Xl,[O,g,f]),tge(P._n.Tt,!a&&e.cancel)?(A(!0),O):(nn(d,E()),j("initialized",[O]),O.update(!0),O)}return i};Xl.plugin=e=>{const t=ai(e),r=t?e:[e],n=r.map(a=>rB(a,Xl)[0]);return q0e(r),t?n:n[0]};Xl.valid=e=>{const t=e&&e.elements,r=Sl(t)&&t();return qb(r)&&!!sB(r.target)};Xl.env=()=>{const{P:e,I:t,H:r,V:n,U:a,A:o,L:i,F:c,W:d,j:f,N:h,G:p,q:g}=to();return Kr({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:r,rtlScrollBehavior:n,flexboxGlue:a,cssCustomProperties:o,scrollTimeline:i,staticDefaultInitialization:c,staticDefaultOptions:d,getDefaultInitialization:f,setDefaultInitialization:h,getDefaultOptions:p,setDefaultOptions:g})};const vge=()=>{if(typeof window>"u"){const f=()=>{};return[f,f]}let e,t;const r=window,n=typeof r.requestIdleCallback=="function",a=r.requestAnimationFrame,o=r.cancelAnimationFrame,i=n?r.requestIdleCallback:a,c=n?r.cancelIdleCallback:o,d=()=>{c(e),o(t)};return[(f,h)=>{d(),e=i(n?()=>{d(),t=a(f)}:f,typeof h=="object"?h:{timeout:2233})},d]},xge=e=>{const{options:t,events:r,defer:n}=e||{},[a,o]=m.useMemo(vge,[]),i=m.useRef(null),c=m.useRef(n),d=m.useRef(t),f=m.useRef(r);return m.useEffect(()=>{c.current=n},[n]),m.useEffect(()=>{const{current:h}=i;d.current=t,Xl.valid(h)&&h.options(t||{},!0)},[t]),m.useEffect(()=>{const{current:h}=i;f.current=r,Xl.valid(h)&&h.on(r||{},!0)},[r]),m.useEffect(()=>()=>{var h;o(),(h=i.current)==null||h.destroy()},[]),m.useMemo(()=>[h=>{const p=i.current;if(Xl.valid(p))return;const g=c.current,S=d.current||{},b=f.current||{},v=()=>i.current=Xl(h,S,b);g?a(v,g):v()},()=>i.current],[])},yge=(e,t)=>{const S=e,{element:r="div",options:n,events:a,defer:o,children:i}=S,c=Ce(S,["element","options","events","defer","children"]),d=r,f=m.useRef(null),h=m.useRef(null),[p,g]=xge({options:n,events:a,defer:o});return m.useEffect(()=>{const{current:b}=f,{current:v}=h;return b&&v&&p({target:b,elements:{viewport:v,content:v}}),()=>{var w;return(w=g())==null?void 0:w.destroy()}},[p,r]),m.useImperativeHandle(t,()=>({osInstance:g,getElement:()=>f.current}),[]),vt.createElement(d,R({"data-overlayscrollbars-initialize":"",ref:f},c),vt.createElement("div",{"data-overlayscrollbars-contents":"",ref:h},i))},em=m.forwardRef(yge),iB=n=>{var a=n,{size:e="20",color:t="currentColor"}=a,r=Ce(a,["size","color"]);return s.jsxs("svg",re(R({width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{children:[s.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"}),s.jsx("path",{d:"M10 6.66669V10",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M10 13.3333H10.0088",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))};function Ii(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}const[Hw,QEe]=Pa("Tooltip",[Yu]),nN=Yu(),bge="TooltipProvider",wge=700,L4="tooltip.open",[kge,sN]=Hw(bge),Cge=e=>{const{__scopeTooltip:t,delayDuration:r=wge,skipDelayDuration:n=300,disableHoverableContent:a=!1,children:o}=e,[i,c]=m.useState(!0),d=m.useRef(!1),f=m.useRef(0);return m.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),m.createElement(kge,{scope:t,isOpenDelayed:i,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(f.current),c(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!0),n)},[n]),isPointerInTransitRef:d,onPointerInTransitChange:m.useCallback(h=>{d.current=h},[]),disableHoverableContent:a},o)},aN="Tooltip",[Sge,m1]=Hw(aN),jge=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:i,delayDuration:c}=e,d=sN(aN,e.__scopeTooltip),f=nN(t),[h,p]=m.useState(null),g=Ms(),S=m.useRef(0),b=i!=null?i:d.disableHoverableContent,v=c!=null?c:d.delayDuration,w=m.useRef(!1),[C=!1,j]=fa({prop:n,defaultProp:a,onChange:D=>{D?(d.onOpen(),document.dispatchEvent(new CustomEvent(L4))):d.onClose(),o==null||o(D)}}),E=m.useMemo(()=>C?w.current?"delayed-open":"instant-open":"closed",[C]),N=m.useCallback(()=>{window.clearTimeout(S.current),w.current=!1,j(!0)},[j]),M=m.useCallback(()=>{window.clearTimeout(S.current),j(!1)},[j]),P=m.useCallback(()=>{window.clearTimeout(S.current),S.current=window.setTimeout(()=>{w.current=!0,j(!0)},v)},[v,j]);return m.useEffect(()=>()=>window.clearTimeout(S.current),[]),m.createElement(a1,f,m.createElement(Sge,{scope:t,contentId:g,open:C,stateAttribute:E,trigger:h,onTriggerChange:p,onTriggerEnter:m.useCallback(()=>{d.isOpenDelayed?P():N()},[d.isOpenDelayed,P,N]),onTriggerLeave:m.useCallback(()=>{b?M():window.clearTimeout(S.current)},[M,b]),onOpen:N,onClose:M,disableHoverableContent:b},r))},xP="TooltipTrigger",Ege=m.forwardRef((e,t)=>{const g=e,{__scopeTooltip:r}=g,n=Ce(g,["__scopeTooltip"]),a=m1(xP,r),o=sN(xP,r),i=nN(r),c=m.useRef(null),d=Zr(t,c,a.onTriggerChange),f=m.useRef(!1),h=m.useRef(!1),p=m.useCallback(()=>f.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),m.createElement(fw,Be({asChild:!0},i),m.createElement(Cr.button,Be({"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute},n,{ref:d,onPointerMove:jt(e.onPointerMove,S=>{S.pointerType!=="touch"&&!h.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),h.current=!0)}),onPointerLeave:jt(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:jt(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:jt(e.onFocus,()=>{f.current||a.onOpen()}),onBlur:jt(e.onBlur,a.onClose),onClick:jt(e.onClick,a.onClose)})))}),lB="TooltipPortal",[Nge,_ge]=Hw(lB,{forceMount:void 0}),cB=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:a}=e,o=m1(lB,t);return m.createElement(Nge,{scope:t,forceMount:r},m.createElement(Mo,{present:r||o.open},m.createElement(Ku,{asChild:!0,container:a},n)))},bv="TooltipContent",Tge=m.forwardRef((e,t)=>{const r=_ge(bv,e.__scopeTooltip),c=e,{forceMount:n=r.forceMount,side:a="top"}=c,o=Ce(c,["forceMount","side"]),i=m1(bv,e.__scopeTooltip);return m.createElement(Mo,{present:n||i.open},i.disableHoverableContent?m.createElement(uB,Be({side:a},o,{ref:t})):m.createElement(Mge,Be({side:a},o,{ref:t})))}),Mge=m.forwardRef((e,t)=>{const r=m1(bv,e.__scopeTooltip),n=sN(bv,e.__scopeTooltip),a=m.useRef(null),o=Zr(t,a),[i,c]=m.useState(null),{trigger:d,onClose:f}=r,h=a.current,{onPointerInTransitChange:p}=n,g=m.useCallback(()=>{c(null),p(!1)},[p]),S=m.useCallback((b,v)=>{const w=b.currentTarget,C={x:b.clientX,y:b.clientY},j=Dge(C,w.getBoundingClientRect()),E=Age(C,j),N=Rge(v.getBoundingClientRect()),M=Oge([...E,...N]);c(M),p(!0)},[p]);return m.useEffect(()=>()=>g(),[g]),m.useEffect(()=>{if(d&&h){const b=w=>S(w,h),v=w=>S(w,d);return d.addEventListener("pointerleave",b),h.addEventListener("pointerleave",v),()=>{d.removeEventListener("pointerleave",b),h.removeEventListener("pointerleave",v)}}},[d,h,S,g]),m.useEffect(()=>{if(i){const b=v=>{const w=v.target,C={x:v.clientX,y:v.clientY},j=(d==null?void 0:d.contains(w))||(h==null?void 0:h.contains(w)),E=!Lge(C,i);j?g():E&&(g(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[d,h,i,f,g]),m.createElement(uB,Be({},e,{ref:o}))}),[Pge,JEe]=Hw(aN,{isInside:!1}),uB=m.forwardRef((e,t)=>{const p=e,{__scopeTooltip:r,children:n,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:i}=p,c=Ce(p,["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"]),d=m1(bv,r),f=nN(r),{onClose:h}=d;return m.useEffect(()=>(document.addEventListener(L4,h),()=>document.removeEventListener(L4,h)),[h]),m.useEffect(()=>{if(d.trigger){const g=S=>{const b=S.target;b!=null&&b.contains(d.trigger)&&h()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,h]),m.createElement(n1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:g=>g.preventDefault(),onDismiss:h},m.createElement(hw,Be({"data-state":d.stateAttribute},f,c,{ref:t,style:re(R({},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)"})}),m.createElement(UO,null,n),m.createElement(Pge,{scope:r,isInside:!0},m.createElement(vue,{id:d.contentId,role:"tooltip"},a||n))))});function Dge(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,a,o)){case o:return"left";case a:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Age(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Rge(e){const{top:t,right:r,bottom:n,left:a}=e;return[{x:a,y:t},{x:r,y:t},{x:r,y:n},{x:a,y:n}]}function Lge(e,t){const{x:r,y:n}=e;let a=!1;for(let o=0,i=t.length-1;o<t.length;i=o++){const c=t[o].x,d=t[o].y,f=t[i].x,h=t[i].y;d>n!=h>n&&r<(f-c)*(n-d)/(h-d)+c&&(a=!a)}return a}function Oge(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ige(t)}function Ige(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const a=e[n];for(;t.length>=2;){const o=t[t.length-1],i=t[t.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))t.pop();else break}t.push(a)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const a=e[n];for(;r.length>=2;){const o=r[r.length-1],i=r[r.length-2];if((o.x-i.x)*(a.y-i.y)>=(o.y-i.y)*(a.x-i.x))r.pop();else break}r.push(a)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const dB=Cge,fB=jge,hB=Ege,$ge=cB,oN=Tge,$e=C=>{var j=C,{children:e,text:t,open:r,isCompact:n,isDisabled:a,defaultOpen:o,onOpenChange:i,delayDuration:c,noPortal:d=!1,align:f="center",alignOffset:h=0,sideOffset:p=4,maxWidth:g=220,className:S,side:b,onClick:v}=j,w=Ce(j,["children","text","open","isCompact","isDisabled","defaultOpen","onOpenChange","delayDuration","noPortal","align","alignOffset","sideOffset","maxWidth","className","side","onClick"]);if(a)return s.jsx("span",{children:e});const E=d?m.Fragment:$ge;return s.jsx(dB,{delayDuration:c,children:s.jsxs(fB,{open:r,defaultOpen:o,onOpenChange:i,delayDuration:c,children:[s.jsx(hB,{onClick:v,asChild:!0,children:s.jsx("span",{children:e})}),s.jsx(E,{children:s.jsx(oN,re(R({side:b!=null?b:"top",sideOffset:p,alignOffset:h,align:f,className:gr("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",n&&"!px-1.5 !py-0.5 text-xs shadow-sm ",S)},w),{style:re(R({},w.style),{maxWidth:g}),children:s.jsx("div",{className:"max-w-[".concat(g,"px] overflow-hidden text-ellipsis line-clamp-4"),children:t})}))})]})})},zge=dB,pB=fB,mB=hB,iN=m.forwardRef((a,n)=>{var o=a,{className:e,sideOffset:t=4}=o,r=Ce(o,["className","sideOffset"]);return s.jsx(oN,R({ref:n,sideOffset:t,className:_t("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)},r))});iN.displayName=oN.displayName;function Fge({historyId:e,description:t,favicon:r,isPreview:n,image:a,noBorder:o=!1,imageWidth:i=24,title:c,domain:d,link:f,isDisabled:h}){const{t:p}=Tt(),{removeLinkMetaData:g,generateLinkMetaData:S}=xt(wl),b=vr();return s.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(h?"opacity-40 pointer-events-none bg-gray-100 dark:bg-gray-900":""),children:[a&&s.jsx("div",{className:"h-auto w-".concat(i," flex-none bg-cover text-center overflow-hidden"),style:{backgroundImage:"url('".concat(a,"')")}}),s.jsxs("div",{className:"px-3 py-2 flex flex-col justify-between leading-normal overflow-clip w-full",children:[s.jsx("div",{className:"text-gray-900 dark:text-gray-300 font-semibold text-lg line-clamp-2 leading-tight hover:underline cursor-pointer",onClick:()=>{f&&yl(wn(f))},title:c!=null?c:"",children:c}),t&&s.jsx("p",{className:"text-gray-700 dark:text-gray-400 text-md line-clamp-2 mt-2",title:t,children:t}),d&&s.jsxs("div",{className:"flex items-center mt-2",children:[r&&s.jsx("img",{className:"w-[16px] h-[16px] mr-2",src:r}),s.jsx("p",{className:"text-gray-400 dark:text-gray-500 text-sm font-semibold cursor-pointer hover:underline",onClick:()=>{yl(wn(d))},title:"".concat(p("Open",{ns:"common"})," ").concat(d),children:d})]}),s.jsx("div",{className:"flex items-center absolute bottom-0 right-0 dark:text-slate-500 cursor-pointer border-0 border-red-200",children:n&&e?s.jsxs(rn,{className:"dark:hover:text-blue-500 text-slate-500 hover:text-blue-600 hover:bg-transparent px-3 py-2",title:p("Add Link Card",{ns:"common"}),onClick:()=>pe(this,null,function*(){yield S(e.toString(),wn(f)),b.invalidateQueries({queryKey:["get_clipboard_history"]}),b.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})}),children:[s.jsx(Pn,{size:12,className:"mr-[2px]"}),s.jsx(cv,{size:14})]}):e&&s.jsx(rn,{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:p("Remove Link Card",{ns:"common"}),onClick:()=>pe(this,null,function*(){yield g(e.toString()),b.invalidateQueries({queryKey:["get_clipboard_history"]}),b.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})}),children:s.jsx(Ur,{size:14})})})]})]})}const Dm=m.memo(Fge);function Hge({itemId:e,historyId:t,generateLinkUrl:r}){const{generateLinkMetaData:n}=xt(wl),a=Ve({linkTitle:null,linkFavicon:null,linkDescription:null,linkUrl:null,linkDomain:null,linkImage:null});return m.useEffect(()=>{var o;r&&a.value.linkTitle===null&&((o=n("previewOnly",wn(r),!0))==null||o.then(i=>{i&&(a.value=i)}))},[]),!a.value.linkTitle&&!a.value.linkDescription?null:s.jsx(Q,{className:"max-w-md dark:border-slate-900/20 border-transparent border rounded-md",children:s.jsx(Dm,{title:a.value.linkTitle,description:a.value.linkDescription,favicon:a.value.linkFavicon,noBorder:!0,link:r,isPreview:!0,historyId:t,itemId:e,image:a.value.linkImage,domain:a.value.linkDomain})})}function dl(e,t){if(!e)return"";const r=e.split(new RegExp("(".concat(t,")"),"gi"));return s.jsx("span",{children:r.map((n,a)=>n.toLowerCase()===t.toLowerCase()?s.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black",children:n},a):n)})}function _5(e,t,r=160){if(!e)return"";const n=new RegExp("(".concat(t,")"),"gi"),a=e.split(n),o=a.findIndex(f=>f.toLowerCase()===t.toLowerCase());let i=0;for(o!==-1&&(i=Math.max(a.slice(0,o).join("").length-Math.floor(r/2),0));i>0&&e[i-1]!==" "&&e[i-1]!=="\n";)i--;const c=Math.min(i+r,e.length),d=e.slice(i,c).split(n);return s.jsx("span",{children:d.map((f,h)=>f.toLowerCase()===t.toLowerCase()?s.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black",children:f},h):f)})}function gf(e,t){return!e||!Array.isArray(t)||!t.length?e:t.reduce((n,a)=>{const o=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return n.flatMap(i=>typeof i=="string"?i.split(new RegExp("(".concat(o,")"),"g")):i)},[e]).map((n,a)=>t.includes(n)?s.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{yl(wn(n))},children:n},a):n)}function Bge({value:e,links:t,previewLinkCard:r,historyId:n,itemId:a}){return!e||!Array.isArray(t)||!t.length?e:t.reduce((i,c)=>{const d=c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return i.flatMap(f=>typeof f=="string"?f.split(new RegExp("(".concat(d,")"),"g")):f)},[e]).map((i,c)=>t.includes(i)?r?s.jsxs(pB,{children:[s.jsx(mB,{asChild:!0,children:s.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{yl(wn(i))},children:i})}),s.jsx(cB,{children:s.jsx(iN,{className:"px-0 py-0 duration-300",align:"start",children:s.jsx(Hge,{generateLinkUrl:i,itemId:a,historyId:n})})})]},c):s.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{yl(wn(i))},children:i},c):i)}const lN=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("rounded-lg border bg-card text-card-foreground shadow-sm",e)},t))})),Uge=m.memo(m.forwardRef((n,r)=>{var a=n,{className:e}=a,t=Ce(a,["className"]);return s.jsx("div",R({ref:r,className:_t("flex flex-col space-y-1.5 p-6",e)},t))})),Wge=m.memo(r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("div",R({className:_t("flex flex-col space-y-1.5 p-6",e)},t))});m.memo(r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("h3",R({className:_t("text-2xl font-semibold leading-none tracking-tight",e)},t))});m.memo(r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("p",R({className:_t("text-sm text-muted-foreground",e)},t))});const Of=m.memo(r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("div",R({className:_t("p-6 pt-0",e)},t))});m.memo(r=>{var n=r,{className:e}=n,t=Ce(n,["className"]);return s.jsx("div",R({className:_t("flex items-center p-6 pt-0",e)},t))});function Vge({boardName:e,boardId:t}){const{t:r}=Tt(),n=Ve(!1),a=Ve(!1),{currentCollectionId:o,isBoardHasChildren:i}=xt(kn),{deleteItemById:c}=Dw();return s.jsxs(ca,{defaultOpen:!1,open:a.value||n.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(ke,{variant:"light",title:r("Delete board",{ns:"dashboard"}),onClick:()=>{i(t)?n.value=!0:a.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:s.jsx(dn,{size:16})})}),s.jsx(Ws,{sideOffset:16,align:"center",className:"p-3 ".concat(n.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:()=>{a.value=!1,n.value=!1},onPointerDownOutside:()=>{a.value=!1,n.value=!1},children:n.value?s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{justify:"left",size:"md",weight:"bold",color:"waning",children:r("Board is Not Empty",{ns:"dashboard"})}),s.jsx(wr,{h:1}),s.jsx(J,{color:"black",size:"sm",children:r("You'll need to clear this board of all clips and subboards before it can be deleted.",{ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsx(ke,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{n.value=!1},children:r("Got it",{ns:"common"})})]}):a.value&&s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block",children:s.jsx(na,{i18nKey:"Are you sure you want to delete <strong>{{boardName}}</strong> board?",values:{boardName:e},ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{children:[s.jsx(ke,{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:()=>{a.value=!1},children:r("Cancel",{ns:"common"})}),s.jsx(ke,{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:r("Delete Board",{ns:"dashboard"})})]})]})})]})}var gB=function(e){var t=e!=null?e:{},r=t.ref,n=t.sensitivity,a=n===void 0?6:n,o=t.interval,i=o===void 0?100:o,c=t.timeout,d=c===void 0?0:c,f=m.useRef(null),h=m.useState(!1),p=h[0],g=h[1],S=0,b=0,v=0,w=0,C=0,j=function(D){return C&&clearTimeout(C),g(!1)},E=function(D){S=D.clientX,b=D.clientY},N=function(D){if(C&&clearTimeout(C),Math.abs(v-S)+Math.abs(w-b)<a)return g(!0);v=S,w=b,C=window.setTimeout(function(){return N()},i)},M=function(D){C&&clearTimeout(C),f.current&&f.current.removeEventListener("mousemove",E,!1),p||(v=D.clientX,w=D.clientY,f.current&&f.current.addEventListener("mousemove",E,!1),C=window.setTimeout(function(){return N()},i))},P=function(D){C&&clearTimeout(C),f.current&&f.current.removeEventListener("mousemove",E,!1),p&&(C=window.setTimeout(function(){return j()},d))};return m.useEffect(function(){var D=f.current;return D&&(D.addEventListener("mouseover",M,!1),D.addEventListener("mouseout",P,!1)),function(){C&&clearTimeout(C),D&&(D.removeEventListener("mouseover",M,!1),D.removeEventListener("mouseout",P,!1))}}),m.useImperativeHandle(r,function(){return f.current},[f]),[p,f,g]};const Bw=({size:e="large"})=>s.jsx("div",{className:gr("flex items-center justify-center",{"h-[34px] w-[34px]":e==="large"},{"h-[32px] w-[32px]":e==="medium"},{"h-[28px] w-[28px]":e==="small"}),children:s.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:[s.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"}),s.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 qge({board:e,isNewClip:t,isCreatingClip:r}){const{t:n}=Tt(),{setNodeRef:a,isOver:o}=Q2({id:e.id,data:{type:"board",board:e}}),[i,c]=gB({timeout:100,sensitivity:500,interval:100});return s.jsx(lN,{className:"bg-secondary flex flex-col flex-shrink-0 m-2",onClick:()=>{o||t&&(ol.value=e.id,ea.value=null)},ref:Ii(t?c:null),children:s.jsx(Of,{className:"overflow-hidden m-0 p-0 ",children:s.jsx(Q,{className:"flex flex-grow flex-col gap-3 overflow-hidden p-1",children:s.jsx(Q,{ref:a,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:r?s.jsx(Bw,{}):s.jsx(J,{className:"!text-sm !font-medium !text-blue-500 text-center",children:o?n("Drop To Add",{ns:"dashboard"}):i?n("Click To Add",{ns:"dashboard"}):s.jsx(Pn,{size:23,className:"".concat(o||i?"text-blue-400":"text-slate-400")})})})})})})}const Kge=m.memo(qge),Gge=n=>{var a=n,{size:e="16",color:t="currentColor"}=a,r=Ce(a,["size","color"]);return s.jsx("svg",re(R({width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{children:s.jsx("path",{d:"M3.33301 8H12.6663",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))},Yge=n=>{var a=n,{size:e="20",color:t="currentColor"}=a,r=Ce(a,["size","color"]);return s.jsxs("svg",re(R({width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{children:[s.jsx("path",{d:"M10 4.16667V15.8333",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M4.16699 10H15.8337",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Zge=n=>{var a=n,{size:e="16",color:t="currentColor"}=a,r=Ce(a,["size","color"]);return s.jsxs("svg",re(R({width:e,height:e,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{children:[s.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"}),s.jsx("path",{d:"M8 10.6667V8",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M8 5.33331H8.0075",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Xge=n=>{var a=n,{size:e="24px",color:t="currentColor"}=a,r=Ce(a,["size","color"]);return s.jsxs("svg",re(R({width:e,height:e,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{children:[s.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"}),s.jsx("path",{d:"M12.5 7.5L7.5 12.5",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M7.5 7.5L12.5 12.5",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Qge=a=>{var o=a,{type:e="info",size:t=16,content:r}=o,n=Ce(o,["type","size","content"]);const i=c=>{switch(c){case"warning":return s.jsx(iB,{size:t,className:"text-orange-40 flex"});case"error":return s.jsx(Xge,{size:t,className:"text-rose-40 flex"});default:return s.jsx(Zge,{size:t,className:"text-grey-40 flex"})}};return s.jsx($e,re(R({content:r},n),{children:i(e)}))},cN=({label:e,required:t=!1,tooltipContent:r,tooltip:n,className:a})=>s.jsxs("div",{className:gr("inter-small-semibold text-grey-50 flex w-full items-center",a),children:[s.jsx("label",{children:e}),t&&s.jsx("div",{className:"text-rose-50 ",children:" *"}),n||r?s.jsx("div",{className:"ml-1.5 flex",children:n||s.jsx(Qge,{content:r})}):null]}),sr=m.forwardRef((A,D)=>{var O=A,{small:e,placeholder:t,label:r,name:n="",autoFocus:a=!1,required:o,deletable:i,numbersOnly:c,onDelete:d,onChange:f,onFocus:h,isPassword:p,showHidePassword:g=!1,tooltipContent:S,tooltip:b,prefix:v,suffix:w,error:C,errorElement:j,props:E,className:N,classNameInput:M}=O,P=Ce(O,["small","placeholder","label","name","autoFocus","required","deletable","numbersOnly","onDelete","onChange","onFocus","isPassword","showHidePassword","tooltipContent","tooltip","prefix","suffix","error","errorElement","props","className","classNameInput"]);const $=m.useRef(null),[H,z]=m.useState(!1);m.useImperativeHandle(D,()=>$.current),m.useEffect(()=>{$.current&&a&&setTimeout(()=>{var _;(_=$.current)==null||_.focus()},200)},[a]);const I=()=>{var _,K;(_=$.current)==null||_.stepUp(),f&&((K=$.current)==null||K.dispatchEvent(new InputEvent("change",{view:window,bubbles:!0,cancelable:!1})))},W=()=>{var _,K;(_=$.current)==null||_.stepDown(),f&&((K=$.current)==null||K.dispatchEvent(new InputEvent("change",{view:window,bubbles:!0,cancelable:!1})))};return s.jsxs("div",re(R({className:gr("w-full",N)},E),{children:[r&&s.jsx(cN,{label:r,required:o,tooltipContent:S,tooltip:b,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),s.jsxs("div",{className:"relative",children:[v?s.jsx("span",{className:"text-grey-40 mr-2xsmall",children:v}):null,s.jsx("input",R({className:gr("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||j},e?"h-8":"h-10",{"!pr-8":g},{"text-small":e,"pt-[1px]":e},M),ref:$,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:p&&H?"text":p&&!H?"password":"text",name:n,placeholder:t||(r?"".concat(r,"..."):void 0),onChange:_=>{c&&(_.target.value=_.target.value.replace(/\D/g,"")),f&&f(_)},onFocus:h,required:o},P)),w?s.jsx("span",{className:"mx-2xsmall text-grey-40",children:w}):null,g&&s.jsx("button",{tabIndex:-1,className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{z(_=>!_)},children:H?s.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:s.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"})}):s.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:s.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&&s.jsx("button",{onClick:d,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:"×"}),P.type==="number"&&s.jsxs("div",{className:"h-full self-end absolute right-2.5 top-0 bottom-0 flex items-center justify-center",children:[s.jsx("button",{onClick:W,onMouseDown:_=>_.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:s.jsx(Gge,{size:16})}),s.jsx("button",{onMouseDown:_=>_.preventDefault(),onClick:I,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:s.jsx(Yge,{size:16})})]})]}),C&&!j?s.jsx("div",{className:gr("text-sm animate fade-in text-red-400",N),children:s.jsx("p",{children:C})}):j&&s.jsx("div",{className:gr("text-sm animate fade-in",N),children:j})]}))});sr.displayName="InputField";function Jge(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var eve=m.useLayoutEffect,tve=function(t){var r=m.useRef(t);return eve(function(){r.current=t}),r},yP=function(t,r){if(typeof t=="function"){t(r);return}t.current=r},rve=function(t,r){var n=m.useRef();return m.useCallback(function(a){t.current=a,n.current&&yP(n.current,null),n.current=r,r&&yP(r,a)},[r])},bP={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},nve=function(t){Object.keys(bP).forEach(function(r){t.style.setProperty(r,bP[r],"important")})},wP=nve,ya=null,kP=function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize};function sve(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),ya||(ya=document.createElement("textarea"),ya.setAttribute("tabindex","-1"),ya.setAttribute("aria-hidden","true"),wP(ya)),ya.parentNode===null&&document.body.appendChild(ya);var a=e.paddingSize,o=e.borderSize,i=e.sizingStyle,c=i.boxSizing;Object.keys(i).forEach(function(g){var S=g;ya.style[S]=i[S]}),wP(ya),ya.value=t;var d=kP(ya,e);ya.value=t,d=kP(ya,e),ya.value="x";var f=ya.scrollHeight-a,h=f*r;c==="border-box"&&(h=h+a+o),d=Math.max(h,d);var p=f*n;return c==="border-box"&&(p=p+a+o),d=Math.min(p,d),[d,f]}var CP=function(){},ave=function(t,r){return t.reduce(function(n,a){return n[a]=r[a],n},{})},ove=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],ive=!!document.documentElement.currentStyle,lve=function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=ave(ove,r),a=n.boxSizing;if(a==="")return null;ive&&a==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var o=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),i=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:o,borderSize:i}},cve=lve;function vB(e,t,r){var n=tve(r);m.useLayoutEffect(function(){var a=function(i){return n.current(i)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var uve=function(t){vB(window,"resize",t)},dve=function(t){vB(document.fonts,"loadingdone",t)},fve=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],hve=function(t,r){var n=t.cacheMeasurements,a=t.maxRows,o=t.minRows,i=t.onChange,c=i===void 0?CP:i,d=t.onHeightChange,f=d===void 0?CP:d,h=Jge(t,fve),p=h.value!==void 0,g=m.useRef(null),S=rve(g,r),b=m.useRef(0),v=m.useRef(),w=function(){var E=g.current,N=n&&v.current?v.current:cve(E);if(N){v.current=N;var M=sve(N,E.value||E.placeholder||"x",o,a),P=M[0],D=M[1];b.current!==P&&(b.current=P,E.style.setProperty("height",P+"px","important"),f(P,{rowHeight:D}))}},C=function(E){p||w(),c(E)};return m.useLayoutEffect(w),uve(w),dve(w),m.createElement("textarea",Be({},h,{onChange:C,ref:S}))},pve=m.forwardRef(hve);const n2=["light","dark"],uN="(prefers-color-scheme: dark)",mve=typeof window=="undefined",dN=m.createContext(void 0),gve={setTheme:e=>{},themes:[]},Uw=()=>{var e;return(e=m.useContext(dN))!==null&&e!==void 0?e:gve},vve=e=>m.useContext(dN)?vt.createElement(m.Fragment,null,e.children):vt.createElement(yve,e),xve=["light","dark"],yve=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:o=xve,defaultTheme:i=r?"system":"light",attribute:c="data-theme",value:d,children:f,nonce:h})=>{const[p,g]=m.useState(()=>SP(a,i)),[S,b]=m.useState(()=>SP(a)),v=d?Object.values(d):o,w=m.useCallback(N=>{let M=N;if(!M)return;N==="system"&&r&&(M=jP());const P=d?d[M]:M,D=t?wve():null,A=document.documentElement;if(c==="class"?(A.classList.remove(...v),P&&A.classList.add(P)):P?A.setAttribute(c,P):A.removeAttribute(c),n){const O=n2.includes(i)?i:null,$=n2.includes(M)?M:O;A.style.colorScheme=$}D==null||D()},[]),C=m.useCallback(N=>{g(N);try{localStorage.setItem(a,N)}catch(M){}},[e]),j=m.useCallback(N=>{const M=jP(N);b(M),p==="system"&&r&&!e&&w("system")},[p,e]);m.useEffect(()=>{const N=window.matchMedia(uN);return N.addListener(j),j(N),()=>N.removeListener(j)},[j]),m.useEffect(()=>{const N=M=>{M.key===a&&C(M.newValue||i)};return window.addEventListener("storage",N),()=>window.removeEventListener("storage",N)},[C]),m.useEffect(()=>{w(e!=null?e:p)},[e,p]);const E=m.useMemo(()=>({theme:p,setTheme:C,forcedTheme:e,resolvedTheme:p==="system"?S:p,themes:r?[...o,"system"]:o,systemTheme:r?S:void 0}),[p,C,e,S,r,o]);return vt.createElement(dN.Provider,{value:E},vt.createElement(bve,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:r,enableColorScheme:n,storageKey:a,themes:o,defaultTheme:i,attribute:c,value:d,children:f,attrs:v,nonce:h}),f)},bve=m.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:o,value:i,attrs:c,nonce:d})=>{const f=o==="system",h=r==="class"?"var d=document.documentElement,c=d.classList;c.remove(".concat(c.map(b=>"'".concat(b,"'")).join(","),");"):"var d=document.documentElement,n='".concat(r,"',s='setAttribute';"),p=a?n2.includes(o)&&o?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(o,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(b,v=!1,w=!0)=>{const C=i?i[b]:b,j=v?b+"|| ''":"'".concat(C,"'");let E="";return a&&w&&!v&&n2.includes(b)&&(E+="d.style.colorScheme = '".concat(b,"';")),r==="class"?E+=v||C?"c.add(".concat(j,")"):"null":C&&(E+="d[s](n,".concat(j,")")),E},S=e?"!function(){".concat(h).concat(g(e),"}()"):n?"!function(){try{".concat(h,"var e=localStorage.getItem('").concat(t,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(uN,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(g("dark"),"}else{").concat(g("light"),"}}else if(e){").concat(i?"var x=".concat(JSON.stringify(i),";"):"").concat(g(i?"x[e]":"e",!0),"}").concat(f?"":"else{"+g(o,!1,!1)+"}").concat(p,"}catch(e){}}()"):"!function(){try{".concat(h,"var e=localStorage.getItem('").concat(t,"');if(e){").concat(i?"var x=".concat(JSON.stringify(i),";"):"").concat(g(i?"x[e]":"e",!0),"}else{").concat(g(o,!1,!1),";}").concat(p,"}catch(t){}}();");return vt.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:S}})},()=>!0),SP=(e,t)=>{if(mve)return;let r;try{r=localStorage.getItem(e)||void 0}catch(n){}return r||t},wve=()=>{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)}},jP=e=>(e||(e=window.matchMedia(uN)),e.matches?"dark":"light"),kve=vt.forwardRef((d,c)=>{var f=d,{variant:e="primary",size:t="large",loading:r=!1,spanClassName:n,spinnerConfig:a,children:o}=f,i=Ce(f,["variant","size","loading","spanClassName","spinnerConfig","children"]);const h=S=>{!r&&i.onClick&&i.onClick(S)},p=gr({"btn-primary":e==="primary","btn-secondary":e==="secondary","btn-ghost":e==="ghost","btn-danger":e==="danger","btn-nuclear":e==="nuclear"}),g=gr({"btn-large":t==="large","btn-medium":t==="medium","btn-small":t==="small"});return s.jsx("button",re(R({},i),{className:gr("btn",p,g,i.className),disabled:i.disabled||r,ref:c,onClick:h,children:r?s.jsx(Bw,R({size:t,variant:"secondary"},a)):m.Children.map(o,(S,b)=>s.jsx("span",{className:gr("mr-xsmall last:mr-0",n),children:S},b))}))}),Cve=n=>{var a=n,{size:e="24",color:t="currentColor"}=a,r=Ce(a,["size","color"]);return s.jsxs("svg",re(R({width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{children:[s.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"}),s.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"}),s.jsx("path",{d:"M9 9H9.01",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M15 9H15.01",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}))},Sve=m.lazy(()=>me(()=>import("./emoji-picker-react.esm-C6ae17hE.js"),[])),EP=({onEmojiClick:e,onCloseAutoFocus:t})=>{const{theme:r}=Uw();return s.jsxs(nF,{children:[s.jsx(sF,{asChild:!0,onClick:n=>{n.stopPropagation()},children:s.jsx(kve,{variant:"ghost",size:"small",type:"button",onClick:n=>{n.stopPropagation()},className:"text-grey-40 hover:text-violet-60 h-5 w-5 p-0 focus:border-none focus:shadow-none",children:s.jsx(Cve,{size:20})})}),s.jsx(aF,{children:s.jsx(_6,{onCloseAutoFocus:t,sideOffset:5,className:"z-99 min-w-[200px] min-h-[100px] overflow-hidden text-center flex justify-center items-center",children:s.jsx(m.Suspense,{fallback:s.jsx(Bw,{size:"small",variant:"primary"}),children:s.jsx(Sve,{onEmojiClick:n=>e(n.emoji),defaultSkinTone:"NEUTRAL",theme:r,emojiStyle:"native",skinTonesDisabled:!0,searchPlaceHolder:"Emoji..."})})})})]})},Eo=m.forwardRef(({placeholder:e,label:t,name:r,key:n,value:a,required:o,withTooltip:i=!1,tooltipText:c,tooltipProps:d={},autoFocus:f=!1,containerProps:h,maxLength:p,className:g,classNameArea:S,isDisabled:b=!1,onFocus:v=()=>{},onBlur:w=()=>{},onPaste:C=()=>{},onChange:j=()=>{},onKeyDown:E=()=>{},rows:N=2,maxRows:M=5,enableEmoji:P=!0,enableEmojiInside:D=!1,error:A},O)=>{const $=m.useRef(null);m.useEffect(()=>{$.current&&f&&setTimeout(()=>{var V;(V=$.current)==null||V.focus()},200)},[f]);const H=V=>{if(!$.current||!V)return;const U=new RegExp("\\{{\\s*".concat(V,"\\s*\\}}"),"gi"),X=$.current.value.replaceAll(U,"");$.current.value=X,j&&j({target:{value:X}})},z=()=>{if(!$.current)return;const V=$.current.value.replace(/\{\{.*?\}\}/g,"");$.current.value=V,j&&j({target:{value:V}})},I=V=>{if(!$.current)return;const U=$.current.selectionStart||0,X=$.current.selectionEnd||0;let G=$.current.value.substring(U,X);V.forEach(q=>{const Y=new RegExp("\\[".concat(q,"\\]"),"g"),se=new RegExp("\\[/".concat(q,"\\]"),"g");G=G.replace(Y,""),G=G.replace(se,"")});const F="".concat($.current.value.substring(0,U)).concat(G).concat($.current.value.substring(X));$.current.value=F,$.current.selectionStart=U,$.current.selectionEnd=U+G.length,$.current.focus(),j&&j({target:{value:F}})},W=V=>{if(!$.current)return;const U=$.current.selectionStart||0,X=$.current.selectionEnd||0,G=$.current.value.substring(U,X),F="[".concat(V,"]"),q="[/".concat(V,"]");let Y="";G?Y="".concat($.current.value.substring(0,U)).concat(F).concat(G).concat(q).concat($.current.value.substring(X)):Y="".concat($.current.value.substring(0,U)).concat(F).concat(q).concat($.current.value.substring(U)),$.current.value=Y;const se=U+F.length;$.current.selectionStart=se,$.current.selectionEnd=se,$.current.focus(),j&&j({target:{value:Y}})},_=V=>{if(!$.current)return;const U=$.current.selectionStart||0,X=$.current.selectionStart||0,G=$.current.selectionEnd||0,F=X>0?"".concat($.current.value.substring(0,X)).concat(V).concat($.current.value.substring(G)):"".concat(V).concat($.current.value);$.current.value=F,j&&j({target:{value:F}}),$.current.selectionStart=U+V.length,$.current.selectionEnd=U+V.length,$.current.focus()};m.useImperativeHandle(O,()=>({getInputElement:()=>$.current,handleRemoveBBcodes:I,handleAddText:_,handleRemoveTemplateField:H,handleRemoveAllTemplateFields:z,handleAddBBcode:W}));const K=()=>{setTimeout(()=>{var V;(V=$==null?void 0:$.current)==null||V.focus()},100)};return s.jsxs("div",re(R({className:g},h),{children:[t&&s.jsx(cN,{label:t,required:o,withTooltip:i,tooltipText:c,tooltipProps:d,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),s.jsxs("div",{className:"relative",children:[s.jsx(pve,{maxRows:M,minRows:N,className:gr("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":A},"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",S),ref:$,autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",maxLength:p,onFocus:v,onBlur:w,name:r,disabled:b,onChange:j,onKeyDown:E,autoFocus:!1,value:a||"",onPaste:C,placeholder:e||""},n||r),P&&s.jsx("div",{className:"flex justify-start items-center w-full h-8 ml-1",children:s.jsx(EP,{onEmojiClick:_,onCloseAutoFocus:()=>{var U;K();const V={target:{value:(U=$==null?void 0:$.current)==null?void 0:U.value}};j(V)}})}),D&&s.jsx("div",{className:"flex justify-start items-center absolute right-1.5 bottom-1.5",children:s.jsx(EP,{onEmojiClick:_,onCloseAutoFocus:()=>{var U;K();const V={target:{value:(U=$==null?void 0:$.current)==null?void 0:U.value}};j(V)}})})]}),A&&s.jsx("div",{className:gr("text-sm animate fade-in text-red-400",g),children:s.jsx("p",{children:A})})]}))}),jve={board:[0,1,2,3],clip:[0,1,2,3,4,5]},Ww=({color:e,itemId:t,updateById:r,borderWidth:n,onOpen:a,onBorderWidthChange:o,onColorChange:i,type:c})=>{const{t:d}=Tt(),f=Ve(!1);return m.useEffect(()=>{f.value&&a&&a()},[f.value]),s.jsxs(ca,{defaultOpen:!1,open:f.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{className:"w-[22px] h-[22px] mr-1.5 cursor-pointer ".concat(Md(e,"200")," ").concat(Sy(e,"300","600")," border rounded-sm flex items-center justify-center"),title:d("Change color",{ns:"dashboard"}),onClick:()=>{f.value=!f.value},children:s.jsx(Nr,{size:13,className:"text-".concat(e,"-500 dark:text-").concat(e,"-300")})})}),s.jsx(Ws,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 pt-0",onEscapeKeyDown:()=>{f.value=!1},onPointerDownOutside:()=>{f.value=!1},children:s.jsxs(Q,{children:[s.jsx(ve,{className:"text-center py-1.5 mt-0.5 uppercase",children:s.jsx(J,{weight:"medium",size:"xs",className:"!text-slate-400",children:d("Select Color",{ns:"dashboard"})})}),s.jsx(Q,{className:"m-auto grid grid-cols-8 gap-3",children:FJ.map(h=>s.jsx(Q,{onClick:()=>pe(void 0,null,function*(){t&&r?c===ll?yield r({updatedTab:{tabColor:h,tabId:t}}):(c===Hs||c===Co)&&(yield r({updatedItem:{color:h,itemId:t}})):i&&i(h),f.value=!1}),className:"bg-".concat(h,"-400 dark:bg-").concat(h,"-700 w-6 h-6 flex justify-center cursor-pointer rounded-sm"),children:h===e&&s.jsx(Bt,{size:16,strokeWidth:4,className:"w-3 h-3 m-auto text-white"})},h))}),(c===Hs||c===Co)&&s.jsxs(s.Fragment,{children:[s.jsx(ve,{className:"text-center py-1.5 pt-2 uppercase",children:s.jsx(J,{weight:"medium",size:"xs",className:"!text-slate-400",children:d("Border Width",{ns:"dashboard"})})}),s.jsx(Q,{className:"m-auto items-center justify-items-center grid ".concat(c===Hs?"grid-cols-4 px-10":"grid-cols-6 gap-1"),children:jve[c].map(h=>s.jsx(Q,{onClick:()=>pe(void 0,null,function*(){t&&r?yield r({updatedItem:{borderWidth:h,itemId:t}}):o&&o(h)}),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!==Hs?"border-[".concat(h>0?1:0,"px] border-l-").concat(e,"-500 border-l-[").concat(h,"px]"):"border-[".concat(h,"px]")," rounded-lg "),children:n===h?s.jsx(Bt,{size:18,strokeWidth:4,className:"w-3 h-3 m-auto text-slate-400"}):s.jsx(J,{size:"xs",className:"text-slate-400 !font-medium",children:h})},h))})]})]})})]})};function Eve({boardName:e,boardSubtitle:t,isNewBoard:r,scrollRef:n,boardId:a,boardColor:o,boardBorderWidth:i}){const{t:c}=Tt(),d=Ve(!1),f=Ve(""),h=Ve(""),p=Ve(Fl.value),g=Ve(!1);if(!e)return null;m.useEffect(()=>{r&&(p.value=!0)},[r]),m.useEffect(()=>{d.value=!1,f.value=e,Fl.value=p.value},[p.value]),m.useEffect(()=>{h.value=t,Fl.value=g.value},[g.value]);const{updateItemById:S}=Bi();m.useEffect(()=>{var v;p.value&&((v=n==null?void 0:n.current)==null||v.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[p.value,n==null?void 0:n.current]);const b=p.value||g.value;return s.jsxs(ve,{className:"flex-col w-full",children:[s.jsx(ve,{className:"justify-start w-full",children:p.value?s.jsxs(s.Fragment,{children:[s.jsx($e,{open:d.value||On.value,asChild:!0,text:On.value?c("Unsaved title",{ns:"dashboard"}):f.value.length<=RE?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:s.jsx(sr,{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:v=>pe(this,null,function*(){v.stopPropagation(),v.key==="Escape"?(On.value=!1,p.value=!1):v.key==="Enter"&&(!f.value.length||f.value.length>hp)?d.value=!0:v.key==="Enter"&&(yield S({updatedItem:{name:f.value,itemId:a}}),On.value=!1,setTimeout(()=>{p.value=!1},200))}),defaultValue:e,onFocus:v=>{e===c("New Board",{ns:"dashboard"})&&v.target.select()},onChange:v=>{On.value&&(On.value=!1),d.value&&v.target.value.length<=hp&&d.value&&v.target.value.length>0&&(d.value=!1),f.value=v.target.value}})}),s.jsx($e,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:()=>pe(this,null,function*(){if(!f.value.length||f.value.length>hp){d.value=!0;return}d.value||(yield S({updatedItem:{name:f.value,itemId:a}}),On.value=!1,setTimeout(()=>{p.value=!1},200))}),children:s.jsx(Bt,{size:18})})})}),s.jsx($e,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{On.value=!1,p.value=!1},children:s.jsx(Ur,{size:18})})})})]}):s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"min-w-[24px]",children:s.jsx(Ww,{color:o,borderWidth:i,type:Hs,itemId:a,updateById:S})}),s.jsx(J,{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(Fl.value){On.value=!0;return}p.value=!0},color:"black",children:e}),s.jsx(Q,{onClick:()=>{if(Fl.value){On.value=!0;return}p.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:s.jsx(qp,{size:14})}),!b&&s.jsx(Q,{onClick:()=>{xb()},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:s.jsx(lv,{size:18})})]})}),s.jsx(ve,{className:"justify-start w-full mt-1 text-gray-500",children:g.value?s.jsxs(ve,{className:"justify-start items-end flex-col mt-1 text-gray-500",children:[s.jsx($e,{open:On.value,asChild:!0,text:On.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:s.jsx(Eo,{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:h.value,onKeyDown:v=>{v.stopPropagation()},onChange:v=>{On.value&&(On.value=!1),h.value=v.target.value}})}),s.jsxs(ve,{className:"items-start mt-1",children:[s.jsx($e,{text:c("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:()=>pe(this,null,function*(){yield S({updatedItem:{description:h.value,itemId:a}}),setTimeout(()=>{On.value&&(On.value=!1),g.value=!1},200)}),children:s.jsx(Bt,{size:18})})})}),s.jsx($e,{text:c("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{On.value&&(On.value=!1),g.value=!1},children:s.jsx(Ur,{size:18})})})})]})]}):t?s.jsxs(Q,{className:"!font-normal dark:text-slate-300 text-[12px] hover:underline decoration-1 decoration-gray-400 !decoration-dashed !underline-offset-4",onClick:()=>{if(Fl.value){On.value=!0;return}g.value=!0},children:[t,s.jsx(Q,{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:s.jsx(qp,{size:11})})]}):s.jsxs(s.Fragment,{children:[s.jsx(Pn,{size:17}),s.jsx(J,{className:"!text-mute ml-1.5 text-sm border-dashed border-b border-gray-400",onClick:()=>{if(Fl.value){On.value=!0;return}g.value=!0},children:c("Subtitle",{ns:"dashboard"})})]})})]})}function s2(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"16",height:(r=e.height)!=null?r:"16",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}),s.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"}),s.jsx("path",{d:"m9.392 10.005 6.16 3.697-6.16 3.697v-7.394Z"})]})}function Nve(e){var t,r;return s.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",children:s.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 _ve(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 25 27",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.3",children:[s.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"}),s.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 Tve(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s.jsx("rect",{width:"18.953",height:"16",x:"2.524",y:"4",rx:"2"}),s.jsx("path",{d:"M10.524 4v4m-8 0h18.953M6.524 4v4"})]})}function Mve(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s.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"}),s.jsx("path",{d:"M14 2.693v6h6"})]})}function Pve(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s.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"}),s.jsx("path",{d:"M14 2.693v6h6M7.998 15.421l2-2-2-2m4 6h4"})]})}function Dve(e){var t,r;return s.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:s.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 tm(){return s.jsx("div",{className:"flex items-center justify-center h-[16px] w-[16px]",children:s.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:[s.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"}),s.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 xB(e){var t,r;return s.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"currentColor",strokeWidth:"1.8",children:s.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 yB(e){var t,r;return s.jsx("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",strokeWidth:"1.5",children:s.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 Ave=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rve=/[\0-\x1F\x7F-\x9F]/,Lve=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Ove=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;function Ive(e){const t={};e=e||{},t.src_Any=Ave.source,t.src_Cc=Rve.source,t.src_Z=Ove.source,t.src_P=Lve.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 r="[><|]";return t.src_pseudo_letter="(?:(?!"+r+"|"+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="(?=$|"+r+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+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="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function O4(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function Vw(e){return Object.prototype.toString.call(e)}function $ve(e){return Vw(e)==="[object String]"}function zve(e){return Vw(e)==="[object Object]"}function Fve(e){return Vw(e)==="[object RegExp]"}function NP(e){return Vw(e)==="[object Function]"}function Hve(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const bB={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Bve(e){return Object.keys(e||{}).reduce(function(t,r){return t||bB.hasOwnProperty(r)},!1)}const Uve={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Wve="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]",Vve="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function qve(e){e.__index__=-1,e.__text_cache__=""}function Kve(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function _P(){return function(e,t){t.normalize(e)}}function a2(e){const t=e.re=Ive(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(Wve),r.push(t.src_xn),t.src_tlds=r.join("|");function n(c){return c.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const a=[];e.__compiled__={};function o(c,d){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+d)}Object.keys(e.__schemas__).forEach(function(c){const d=e.__schemas__[c];if(d===null)return;const f={validate:null,link:null};if(e.__compiled__[c]=f,zve(d)){Fve(d.validate)?f.validate=Kve(d.validate):NP(d.validate)?f.validate=d.validate:o(c,d),NP(d.normalize)?f.normalize=d.normalize:d.normalize?o(c,d):f.normalize=_P();return}if($ve(d)){a.push(c);return}o(c,d)}),a.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:_P()};const i=Object.keys(e.__compiled__).filter(function(c){return c.length>0&&e.__compiled__[c]}).map(Hve).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+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"),qve(e)}function Gve(e,t){const r=e.__index__,n=e.__last_index__,a=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=a,this.text=a,this.url=a}function I4(e,t){const r=new Gve(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function Nn(e,t){if(!(this instanceof Nn))return new Nn(e,t);t||Bve(e)&&(t=e,e={}),this.__opts__=O4({},bB,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=O4({},Uve,e),this.__compiled__={},this.__tlds__=Vve,this.__tlds_replaced__=!1,this.re={},a2(this)}Nn.prototype.add=function(t,r){return this.__schemas__[t]=r,a2(this),this};Nn.prototype.set=function(t){return this.__opts__=O4(this.__opts__,t),this};Nn.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,a,o,i,c,d,f,h;if(this.re.schema_test.test(t)){for(d=this.re.schema_search,d.lastIndex=0;(r=d.exec(t))!==null;)if(o=this.testSchemaAt(t,r[2],d.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(f=t.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f<this.__index__)&&(n=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(h=t.indexOf("@"),h>=0&&(a=t.match(this.re.email_fuzzy))!==null&&(i=a.index+a[1].length,c=a.index+a[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0};Nn.prototype.pretest=function(t){return this.re.pretest.test(t)};Nn.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};Nn.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(I4(this,n)),n=this.__last_index__);let a=n?t.slice(n):t;for(;this.test(a);)r.push(I4(this,n)),a=a.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};Nn.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,I4(this,0)):null};Nn.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,a,o){return n!==o[a-1]}).reverse(),a2(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,a2(this),this)};Nn.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Nn.prototype.onCompile=function(){};const ro=(e,t)=>{const[r,n]=m.useState(e);return m.useEffect(()=>{const a=setTimeout(()=>{n(e)},t);return()=>{clearTimeout(a)}},[e,t]),r};function Yve(){return function(e){let t;function r(){t=setTimeout(()=>{e()},1e3)}function n(){t&&clearTimeout(t)}return{onMouseDown:r,onTouchStart:r,onMouseUp:n,onMouseLeave:n,onTouchMove:n,onTouchEnd:n}}}function rm(e){var t,r;return s.jsxs("svg",{viewBox:"0 0 24 24",width:(t=e.width)!=null?t:"14px",height:(r=e.height)!=null?r:"14px",fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M 3 8.992 L 19.686 8.988"}),s.jsx("polyline",{points:"16 16.992000579833984"}),s.jsx("line",{x1:"3",x2:"13.406",y1:"14.992",y2:"14.992"})]})}function nm(e){var t,r;return s.jsxs("svg",{viewBox:"0 0 24 24",width:(t=e.width)!=null?t:"14px",height:(r=e.height)!=null?r:"14px",fill:"none",stroke:"currentColor",strokeWidth:"1",xmlns:"http://www.w3.org/2000/svg",children:[s.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"}),s.jsx("polyline",{points:"16 12.992 14 14.992 16 16.992"}),s.jsx("line",{x1:"3",x2:"10",y1:"14.992",y2:"14.992"})]})}const Tg="/assets/image-not-found-Cx6NJXh5.png",Jd="/assets/no-image-CF2LzJv7.png";function Aa(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Zve(e){return Aa(1,arguments),e instanceof Date||uf(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jl(e){Aa(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||uf(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!="undefined"&&(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 Xve(e){if(Aa(1,arguments),!Zve(e)&&typeof e!="number")return!1;var t=jl(e);return!isNaN(Number(t))}function vf(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 Qve(e,t){Aa(2,arguments);var r=jl(e).getTime(),n=vf(t);return new Date(r+n)}function Jve(e,t){Aa(2,arguments);var r=vf(t);return Qve(e,-r)}var e1e=864e5;function t1e(e){Aa(1,arguments);var t=jl(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),a=r-n;return Math.floor(a/e1e)+1}function o2(e){Aa(1,arguments);var t=1,r=jl(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function wB(e){Aa(1,arguments);var t=jl(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=o2(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=o2(o);return t.getTime()>=a.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function r1e(e){Aa(1,arguments);var t=wB(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=o2(r);return n}var n1e=6048e5;function s1e(e){Aa(1,arguments);var t=jl(e),r=o2(t).getTime()-r1e(t).getTime();return Math.round(r/n1e)+1}var a1e={};function qw(){return a1e}function i2(e,t){var r,n,a,o,i,c,d,f;Aa(1,arguments);var h=qw(),p=vf((r=(n=(a=(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&&a!==void 0?a:h.weekStartsOn)!==null&&n!==void 0?n:(d=h.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=jl(e),S=g.getUTCDay(),b=(S<p?7:0)+S-p;return g.setUTCDate(g.getUTCDate()-b),g.setUTCHours(0,0,0,0),g}function kB(e,t){var r,n,a,o,i,c,d,f;Aa(1,arguments);var h=jl(e),p=h.getUTCFullYear(),g=qw(),S=vf((r=(n=(a=(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&&a!==void 0?a:g.firstWeekContainsDate)!==null&&n!==void 0?n:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(p+1,0,S),b.setUTCHours(0,0,0,0);var v=i2(b,t),w=new Date(0);w.setUTCFullYear(p,0,S),w.setUTCHours(0,0,0,0);var C=i2(w,t);return h.getTime()>=v.getTime()?p+1:h.getTime()>=C.getTime()?p:p-1}function o1e(e,t){var r,n,a,o,i,c,d,f;Aa(1,arguments);var h=qw(),p=vf((r=(n=(a=(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&&a!==void 0?a:h.firstWeekContainsDate)!==null&&n!==void 0?n:(d=h.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&r!==void 0?r:1),g=kB(e,t),S=new Date(0);S.setUTCFullYear(g,0,p),S.setUTCHours(0,0,0,0);var b=i2(S,t);return b}var i1e=6048e5;function l1e(e,t){Aa(1,arguments);var r=jl(e),n=i2(r,t).getTime()-o1e(r,t).getTime();return Math.round(n/i1e)+1}function Qr(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}var c1e={y:function(t,r){var n=t.getUTCFullYear(),a=n>0?n:1-n;return Qr(r==="yy"?a%100:a,r.length)},M:function(t,r){var n=t.getUTCMonth();return r==="M"?String(n+1):Qr(n+1,2)},d:function(t,r){return Qr(t.getUTCDate(),r.length)},a:function(t,r){var n=t.getUTCHours()/12>=1?"pm":"am";switch(r){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(t,r){return Qr(t.getUTCHours()%12||12,r.length)},H:function(t,r){return Qr(t.getUTCHours(),r.length)},m:function(t,r){return Qr(t.getUTCMinutes(),r.length)},s:function(t,r){return Qr(t.getUTCSeconds(),r.length)},S:function(t,r){var n=r.length,a=t.getUTCMilliseconds(),o=Math.floor(a*Math.pow(10,n-3));return Qr(o,r.length)}};const Fc=c1e;var yh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},u1e={G:function(t,r,n){var a=t.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(t,r,n){if(r==="yo"){var a=t.getUTCFullYear(),o=a>0?a:1-a;return n.ordinalNumber(o,{unit:"year"})}return Fc.y(t,r)},Y:function(t,r,n,a){var o=kB(t,a),i=o>0?o:1-o;if(r==="YY"){var c=i%100;return Qr(c,2)}return r==="Yo"?n.ordinalNumber(i,{unit:"year"}):Qr(i,r.length)},R:function(t,r){var n=wB(t);return Qr(n,r.length)},u:function(t,r){var n=t.getUTCFullYear();return Qr(n,r.length)},Q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"Q":return String(a);case"QQ":return Qr(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,r,n){var a=Math.ceil((t.getUTCMonth()+1)/3);switch(r){case"q":return String(a);case"qq":return Qr(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,r,n){var a=t.getUTCMonth();switch(r){case"M":case"MM":return Fc.M(t,r);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(t,r,n){var a=t.getUTCMonth();switch(r){case"L":return String(a+1);case"LL":return Qr(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(t,r,n,a){var o=l1e(t,a);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):Qr(o,r.length)},I:function(t,r,n){var a=s1e(t);return r==="Io"?n.ordinalNumber(a,{unit:"week"}):Qr(a,r.length)},d:function(t,r,n){return r==="do"?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Fc.d(t,r)},D:function(t,r,n){var a=t1e(t);return r==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):Qr(a,r.length)},E:function(t,r,n){var a=t.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"e":return String(i);case"ee":return Qr(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,r,n,a){var o=t.getUTCDay(),i=(o-a.weekStartsOn+8)%7||7;switch(r){case"c":return String(i);case"cc":return Qr(i,r.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,r,n){var a=t.getUTCDay(),o=a===0?7:a;switch(r){case"i":return String(o);case"ii":return Qr(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(t,r,n){var a=t.getUTCHours(),o=a/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,r,n){var a=t.getUTCHours(),o;switch(a===12?o=yh.noon:a===0?o=yh.midnight:o=a/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,r,n){var a=t.getUTCHours(),o;switch(a>=17?o=yh.evening:a>=12?o=yh.afternoon:a>=4?o=yh.morning:o=yh.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,r,n){if(r==="ho"){var a=t.getUTCHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return Fc.h(t,r)},H:function(t,r,n){return r==="Ho"?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Fc.H(t,r)},K:function(t,r,n){var a=t.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(a,{unit:"hour"}):Qr(a,r.length)},k:function(t,r,n){var a=t.getUTCHours();return a===0&&(a=24),r==="ko"?n.ordinalNumber(a,{unit:"hour"}):Qr(a,r.length)},m:function(t,r,n){return r==="mo"?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Fc.m(t,r)},s:function(t,r,n){return r==="so"?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Fc.s(t,r)},S:function(t,r){return Fc.S(t,r)},X:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();if(i===0)return"Z";switch(r){case"X":return MP(i);case"XXXX":case"XX":return md(i);case"XXXXX":case"XXX":default:return md(i,":")}},x:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"x":return MP(i);case"xxxx":case"xx":return md(i);case"xxxxx":case"xxx":default:return md(i,":")}},O:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+TP(i,":");case"OOOO":default:return"GMT"+md(i,":")}},z:function(t,r,n,a){var o=a._originalDate||t,i=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+TP(i,":");case"zzzz":default:return"GMT"+md(i,":")}},t:function(t,r,n,a){var o=a._originalDate||t,i=Math.floor(o.getTime()/1e3);return Qr(i,r.length)},T:function(t,r,n,a){var o=a._originalDate||t,i=o.getTime();return Qr(i,r.length)}};function TP(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var i=t||"";return r+String(a)+i+Qr(o,2)}function MP(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Qr(Math.abs(e)/60,2)}return md(e,t)}function md(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=Qr(Math.floor(a/60),2),i=Qr(a%60,2);return n+o+r+i}var PP=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},CB=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},d1e=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],o=n[2];if(!o)return PP(t,r);var i;switch(a){case"P":i=r.dateTime({width:"short"});break;case"PP":i=r.dateTime({width:"medium"});break;case"PPP":i=r.dateTime({width:"long"});break;case"PPPP":default:i=r.dateTime({width:"full"});break}return i.replace("{{date}}",PP(a,r)).replace("{{time}}",CB(o,r))},f1e={p:CB,P:d1e};function h1e(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 p1e=["D","DD"],m1e=["YY","YYYY"];function g1e(e){return p1e.indexOf(e)!==-1}function v1e(e){return m1e.indexOf(e)!==-1}function DP(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; 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(r,"`; 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(r,"`; 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(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var x1e={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"}},y1e=function(t,r,n){var a,o=x1e[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const b1e=y1e;function T5(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var w1e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},k1e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},C1e={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},S1e={date:T5({formats:w1e,defaultWidth:"full"}),time:T5({formats:k1e,defaultWidth:"full"}),dateTime:T5({formats:C1e,defaultWidth:"full"})};const j1e=S1e;var E1e={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},N1e=function(t,r,n,a){return E1e[t]};const _1e=N1e;function T0(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=r!=null&&r.width?String(r.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var c=e.defaultWidth,d=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[d]||e.values[c]}var f=e.argumentCallback?e.argumentCallback(t):t;return a[f]}}var T1e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},M1e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},P1e={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"]},D1e={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"]},A1e={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"}},R1e={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"}},L1e=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},O1e={ordinalNumber:L1e,era:T0({values:T1e,defaultWidth:"wide"}),quarter:T0({values:M1e,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:T0({values:P1e,defaultWidth:"wide"}),day:T0({values:D1e,defaultWidth:"wide"}),dayPeriod:T0({values:A1e,defaultWidth:"wide",formattingValues:R1e,defaultFormattingWidth:"wide"})};const I1e=O1e;function M0(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var i=o[0],c=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(c)?z1e(c,function(p){return p.test(i)}):$1e(c,function(p){return p.test(i)}),f;f=e.valueCallback?e.valueCallback(d):d,f=r.valueCallback?r.valueCallback(f):f;var h=t.slice(i.length);return{value:f,rest:h}}}function $1e(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function z1e(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function F1e(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var i=e.valueCallback?e.valueCallback(o[0]):o[0];i=r.valueCallback?r.valueCallback(i):i;var c=t.slice(a.length);return{value:i,rest:c}}}var H1e=/^(\d+)(th|st|nd|rd)?/i,B1e=/\d+/i,U1e={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},W1e={any:[/^b/i,/^(a|c)/i]},V1e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},q1e={any:[/1/i,/2/i,/3/i,/4/i]},K1e={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},G1e={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]},Y1e={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},Z1e={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]},X1e={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},Q1e={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}},J1e={ordinalNumber:F1e({matchPattern:H1e,parsePattern:B1e,valueCallback:function(t){return parseInt(t,10)}}),era:M0({matchPatterns:U1e,defaultMatchWidth:"wide",parsePatterns:W1e,defaultParseWidth:"any"}),quarter:M0({matchPatterns:V1e,defaultMatchWidth:"wide",parsePatterns:q1e,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:M0({matchPatterns:K1e,defaultMatchWidth:"wide",parsePatterns:G1e,defaultParseWidth:"any"}),day:M0({matchPatterns:Y1e,defaultMatchWidth:"wide",parsePatterns:Z1e,defaultParseWidth:"any"}),dayPeriod:M0({matchPatterns:X1e,defaultMatchWidth:"any",parsePatterns:Q1e,defaultParseWidth:"any"})};const exe=J1e;var txe={code:"en-US",formatDistance:b1e,formatLong:j1e,formatRelative:_1e,localize:I1e,match:exe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const rxe=txe;var nxe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sxe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,axe=/^'([^]*?)'?$/,oxe=/''/g,ixe=/[a-zA-Z]/;function xf(e,t,r){var n,a,o,i,c,d,f,h,p,g,S,b,v,w,C,j,E,N;Aa(2,arguments);var M=String(t),P=qw(),D=(n=(a=r==null?void 0:r.locale)!==null&&a!==void 0?a:P.locale)!==null&&n!==void 0?n:rxe,A=vf((o=(i=(c=(d=r==null?void 0:r.firstWeekContainsDate)!==null&&d!==void 0?d:r==null||(f=r.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&c!==void 0?c:P.firstWeekContainsDate)!==null&&i!==void 0?i:(p=P.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=vf((S=(b=(v=(w=r==null?void 0:r.weekStartsOn)!==null&&w!==void 0?w:r==null||(C=r.locale)===null||C===void 0||(j=C.options)===null||j===void 0?void 0:j.weekStartsOn)!==null&&v!==void 0?v:P.weekStartsOn)!==null&&b!==void 0?b:(E=P.locale)===null||E===void 0||(N=E.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&S!==void 0?S:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var $=jl(e);if(!Xve($))throw new RangeError("Invalid time value");var H=h1e($),z=Jve($,H),I={firstWeekContainsDate:A,weekStartsOn:O,locale:D,_originalDate:$},W=M.match(sxe).map(function(_){var K=_[0];if(K==="p"||K==="P"){var V=f1e[K];return V(_,D.formatLong)}return _}).join("").match(nxe).map(function(_){if(_==="''")return"'";var K=_[0];if(K==="'")return lxe(_);var V=u1e[K];if(V)return!(r!=null&&r.useAdditionalWeekYearTokens)&&v1e(_)&&DP(_,t,String(e)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&g1e(_)&&DP(_,t,String(e)),V(z,_,D.localize,I);if(K.match(ixe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");return _}).join("");return W}function lxe(e){var t=e.match(axe);return t?t[1].replace(oxe,"'"):e}var cxe=Object.create,Kw=Object.defineProperty,uxe=Object.defineProperties,dxe=Object.getOwnPropertyDescriptor,fxe=Object.getOwnPropertyDescriptors,SB=Object.getOwnPropertyNames,l2=Object.getOwnPropertySymbols,hxe=Object.getPrototypeOf,fN=Object.prototype.hasOwnProperty,jB=Object.prototype.propertyIsEnumerable,AP=(e,t,r)=>t in e?Kw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vl=(e,t)=>{for(var r in t||(t={}))fN.call(t,r)&&AP(e,r,t[r]);if(l2)for(var r of l2(t))jB.call(t,r)&&AP(e,r,t[r]);return e},Gw=(e,t)=>uxe(e,fxe(t)),EB=(e,t)=>{var r={};for(var n in e)fN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&l2)for(var n of l2(e))t.indexOf(n)<0&&jB.call(e,n)&&(r[n]=e[n]);return r},pxe=(e,t)=>function(){return t||(0,e[SB(e)[0]])((t={exports:{}}).exports,t),t.exports},mxe=(e,t)=>{for(var r in t)Kw(e,r,{get:t[r],enumerable:!0})},gxe=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of SB(t))!fN.call(e,a)&&a!==r&&Kw(e,a,{get:()=>t[a],enumerable:!(n=dxe(t,a))||n.enumerable});return e},vxe=(e,t,r)=>(r=e!=null?cxe(hxe(e)):{},gxe(t||!e||!e.__esModule?Kw(r,"default",{value:e,enumerable:!0}):r,e)),xxe=pxe({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var r=function(){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},i={util:{encode:function b(v){return v instanceof c?new c(v.type,b(v.content),v.alias):Array.isArray(v)?v.map(b):v.replace(/&/g,"&").replace(/</g,"<").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:++a}),b.__id},clone:function b(v,w){w=w||{};var C,j;switch(i.util.type(v)){case"Object":if(j=i.util.objId(v),w[j])return w[j];C={},w[j]=C;for(var E in v)v.hasOwnProperty(E)&&(C[E]=b(v[E],w));return C;case"Array":return j=i.util.objId(v),w[j]?w[j]:(C=[],w[j]=C,v.forEach(function(N,M){C[M]=b(N,w)}),C);default:return v}},getLanguage:function(b){for(;b;){var v=n.exec(b.className);if(v)return v[1].toLowerCase();b=b.parentElement}return"none"},setLanguage:function(b,v){b.className=b.className.replace(RegExp(n,"gi"),""),b.classList.add("language-"+v)},isActive:function(b,v,w){for(var C="no-"+v;b;){var j=b.classList;if(j.contains(v))return!0;if(j.contains(C))return!1;b=b.parentElement}return!!w}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(b,v){var w=i.util.clone(i.languages[b]);for(var C in v)w[C]=v[C];return w},insertBefore:function(b,v,w,C){C=C||i.languages;var j=C[b],E={};for(var N in j)if(j.hasOwnProperty(N)){if(N==v)for(var M in w)w.hasOwnProperty(M)&&(E[M]=w[M]);w.hasOwnProperty(N)||(E[N]=j[N])}var P=C[b];return C[b]=E,i.languages.DFS(i.languages,function(D,A){A===P&&D!=b&&(this[D]=E)}),E},DFS:function b(v,w,C,j){j=j||{};var E=i.util.objId;for(var N in v)if(v.hasOwnProperty(N)){w.call(v,N,v[N],C||N);var M=v[N],P=i.util.type(M);P==="Object"&&!j[E(M)]?(j[E(M)]=!0,b(M,w,null,j)):P==="Array"&&!j[E(M)]&&(j[E(M)]=!0,b(M,w,N,j))}}},plugins:{},highlight:function(b,v,w){var C={code:b,grammar:v,language:w};if(i.hooks.run("before-tokenize",C),!C.grammar)throw new Error('The language "'+C.language+'" has no grammar.');return C.tokens=i.tokenize(C.code,C.grammar),i.hooks.run("after-tokenize",C),c.stringify(i.util.encode(C.tokens),C.language)},tokenize:function(b,v){var w=v.rest;if(w){for(var C in w)v[C]=w[C];delete v.rest}var j=new h;return p(j,j.head,b),f(b,j,v,j.head,0),S(j)},hooks:{all:{},add:function(b,v){var w=i.hooks.all;w[b]=w[b]||[],w[b].push(v)},run:function(b,v){var w=i.hooks.all[b];if(!(!w||!w.length))for(var C=0,j;j=w[C++];)j(v)}},Token:c};function c(b,v,w,C){this.type=b,this.content=v,this.alias=w,this.length=(C||"").length|0}c.stringify=function b(v,w){if(typeof v=="string")return v;if(Array.isArray(v)){var C="";return v.forEach(function(P){C+=b(P,w)}),C}var j={type:v.type,content:b(v.content,w),tag:"span",classes:["token",v.type],attributes:{},language:w},E=v.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(j.classes,E):j.classes.push(E)),i.hooks.run("wrap",j);var N="";for(var M in j.attributes)N+=" "+M+'="'+(j.attributes[M]||"").replace(/"/g,""")+'"';return"<"+j.tag+' class="'+j.classes.join(" ")+'"'+N+">"+j.content+"</"+j.tag+">"};function d(b,v,w,C){b.lastIndex=v;var j=b.exec(w);if(j&&C&&j[1]){var E=j[1].length;j.index+=E,j[0]=j[0].slice(E)}return j}function f(b,v,w,C,j,E){for(var N in w)if(!(!w.hasOwnProperty(N)||!w[N])){var M=w[N];M=Array.isArray(M)?M:[M];for(var P=0;P<M.length;++P){if(E&&E.cause==N+","+P)return;var D=M[P],A=D.inside,O=!!D.lookbehind,$=!!D.greedy,H=D.alias;if($&&!D.pattern.global){var z=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,z+"g")}for(var I=D.pattern||D,W=C.next,_=j;W!==v.tail&&!(E&&_>=E.reach);_+=W.value.length,W=W.next){var K=W.value;if(v.length>b.length)return;if(!(K instanceof c)){var V=1,U;if($){if(U=d(I,_,b,O),!U||U.index>=b.length)break;var q=U.index,X=U.index+U[0].length,G=_;for(G+=W.value.length;q>=G;)W=W.next,G+=W.value.length;if(G-=W.value.length,_=G,W.value instanceof c)continue;for(var F=W;F!==v.tail&&(G<X||typeof F.value=="string");F=F.next)V++,G+=F.value.length;V--,K=b.slice(_,G),U.index-=_}else if(U=d(I,0,K,O),!U)continue;var q=U.index,Y=U[0],se=K.slice(0,q),ee=K.slice(q+Y.length),ae=_+K.length;E&&ae>E.reach&&(E.reach=ae);var oe=W.prev;se&&(oe=p(v,oe,se),_+=se.length),g(v,oe,V);var le=new c(N,A?i.tokenize(Y,A):Y,H,Y);if(W=p(v,oe,le),ee&&p(v,W,ee),V>1){var ue={cause:N+","+P,reach:ae};f(b,v,w,W.prev,_,ue),E&&ue.reach>E.reach&&(E.reach=ue.reach)}}}}}}function h(){var b={value:null,prev:null,next:null},v={value:null,prev:b,next:null};b.next=v,this.head=b,this.tail=v,this.length=0}function p(b,v,w){var C=v.next,j={value:w,prev:v,next:C};return v.next=j,C.prev=j,b.length++,j}function g(b,v,w){for(var C=v.next,j=0;j<w&&C!==b.tail;j++)C=C.next;v.next=C,C.prev=v,b.length-=j}function S(b){for(var v=[],w=b.head.next;w!==b.tail;)v.push(w.value),w=w.next;return v}return i}();t.exports=r,r.default=r}}),tt=vxe(xxe());tt.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]},tt.languages.markup.tag.inside["attr-value"].inside.entity=tt.languages.markup.entity,tt.languages.markup.doctype.inside["internal-subset"].inside=tt.languages.markup,tt.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(tt.languages.markup.tag,"addInlined",{value:function(e,n){var r={},r=(r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:tt.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}}),n=(r["language-"+n]={pattern:/[\s\S]+/,inside:tt.languages[n]},{});n[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},tt.languages.insertBefore("markup","cdata",n)}}),Object.defineProperty(tt.languages.markup.tag,"addAttribute",{value:function(e,t){tt.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:tt.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),tt.languages.html=tt.languages.markup,tt.languages.mathml=tt.languages.markup,tt.languages.svg=tt.languages.markup,tt.languages.xml=tt.languages.extend("markup",{}),tt.languages.ssml=tt.languages.xml,tt.languages.atom=tt.languages.xml,tt.languages.rss=tt.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?: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]|.)/,n="(?:[^\\\\-]|"+r.source+")",n=RegExp(n+"-"+n),a={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:n,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:r}},"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":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":a}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(tt),tt.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:/[{}[\];(),.:]/},tt.languages.javascript=tt.languages.extend("clike",{"class-name":[tt.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}|\?\?=?|\?\.?|[~:]/}),tt.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,tt.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:tt.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:tt.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:tt.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:tt.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:tt.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),tt.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:tt.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"}}),tt.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),tt.languages.markup&&(tt.languages.markup.tag.addInlined("script","javascript"),tt.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")),tt.languages.js=tt.languages.javascript,tt.languages.actionscript=tt.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),tt.languages.actionscript["class-name"].alias="function",delete tt.languages.actionscript.parameter,delete tt.languages.actionscript["literal-property"],tt.languages.markup&&tt.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:tt.languages.markup}}),function(e){var t=/#(?!\{).+/,r={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:r}}],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:r}}}),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:r}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(tt),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(r,n){(r=typeof r=="string"?[r]:r).forEach(function(a){var o=function(p){p.inside||(p.inside={}),p.inside.rest=n},i="doc-comment";if(c=e.languages[a]){var c,d=c[i];if((d=d||(c=e.languages.insertBefore(a,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[i])instanceof RegExp&&(d=c[i]={pattern:d}),Array.isArray(d))for(var f=0,h=d.length;f<h;f++)d[f]instanceof RegExp&&(d[f]={pattern:d[f]}),o(d[f]);else o(d)}})}}),t.addSupport(["java","javascript","php"],t)}(tt),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"))}(tt),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}),r={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:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:r})}(tt),function(e){var t=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,n="(?:"+r.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\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,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<value>>/g,function(){return c});return RegExp(f,d)}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 n})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return n}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+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:r,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(tt),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(f){return f=f.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),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("^"+a+o+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+o+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(n),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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(f){["url","bold","italic","strike","code-snippet"].forEach(function(h){f!==h&&(e.languages.markdown[f].inside.content.inside[h]=e.languages.markdown[h])})}),e.hooks.add("after-tokenize",function(f){f.language!=="markdown"&&f.language!=="md"||function h(p){if(p&&typeof p!="string")for(var g=0,S=p.length;g<S;g++){var b,v=p[g];v.type!=="code"?h(v.content):(b=v.content[1],v=v.content[3],b&&v&&b.type==="code-language"&&v.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()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,b]:v.alias.push(b):v.alias=[b]))}}(f.tokens)}),e.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var h="",p=0,g=f.classes.length;p<g;p++){var S=f.classes[p],S=/language-(.+)/.exec(S);if(S){h=S[1];break}}var b,v=e.languages[h];v?f.content=e.highlight(function(w){return w=w.replace(i,""),w=w.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(C,j){var E;return(j=j.toLowerCase())[0]==="#"?(E=j[1]==="x"?parseInt(j.slice(2),16):Number(j.slice(1)),d(E)):c[j]||C})}(f.content),v,h):h&&h!=="none"&&e.plugins.autoloader&&(b="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),f.attributes.id=b,e.plugins.autoloader.loadLanguages(h,function(){var w=document.getElementById(b);w&&(w.innerHTML=e.highlight(w.textContent,e.languages[h],h))}))}}),RegExp(e.languages.markup.tag.pattern.source,"gi")),c={amp:"&",lt:"<",gt:">",quot:'"'},d=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(tt),tt.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:tt.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+/},tt.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"}),r=0;r<t.length;){var n=t[r++];if(n.type==="keyword"&&n.content==="mutation"){var a=[];if(p(["definition-mutation","punctuation"])&&h(1).content==="("){r+=2;var o=g(/^\($/,/^\)$/);if(o===-1)continue;for(;r<o;r++){var i=h(0);i.type==="variable"&&(S(i,"variable-input"),a.push(i.content))}r=o+1}if(p(["punctuation","property-query"])&&h(0).content==="{"&&(r++,S(h(0),"property-mutation"),0<a.length)){var c=g(/^\{$/,/^\}$/);if(c!==-1)for(var d=r;d<c;d++){var f=t[d];f.type==="variable"&&0<=a.indexOf(f.content)&&S(f,"variable-input")}}}}function h(b){return t[r+b]}function p(b,v){v=v||0;for(var w=0;w<b.length;w++){var C=h(w+v);if(!C||C.type!==b[w])return}return 1}function g(b,v){for(var w=1,C=r;C<t.length;C++){var j=t[C],E=j.content;if(j.type==="punctuation"&&typeof E=="string"){if(b.test(E))w++;else if(v.test(E)&&--w===0)return C}}return-1}function S(b,v){var w=b.alias;w?Array.isArray(w)||(b.alias=w=[w]):b.alias=w=[],w.push(v)}}),tt.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"],r=t.pattern.source,n=t.inside.interpolation,a=n.inside["interpolation-punctuation"],o=n.pattern.source;function i(p,g){if(e.languages[p])return{pattern:RegExp("((?:"+g+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:p}}}}function c(p,g,S){return p={code:p,grammar:g,language:S},e.hooks.run("before-tokenize",p),p.tokens=e.tokenize(p.code,p.grammar),e.hooks.run("after-tokenize",p),p.tokens}function d(p,g,S){var w=e.tokenize(p,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),b=0,v={},w=c(w.map(function(j){if(typeof j=="string")return j;for(var E,N,j=j.content;p.indexOf((N=b++,E="___"+S.toUpperCase()+"_"+N+"___"))!==-1;);return v[E]=j,E}).join(""),g,S),C=Object.keys(v);return b=0,function j(E){for(var N=0;N<E.length;N++){if(b>=C.length)return;var M,P,D,A,O,$,H,z=E[N];typeof z=="string"||typeof z.content=="string"?(M=C[b],(H=($=typeof z=="string"?z:z.content).indexOf(M))!==-1&&(++b,P=$.substring(0,H),O=v[M],D=void 0,(A={})["interpolation-punctuation"]=a,(A=e.tokenize(O,A)).length===3&&((D=[1,1]).push.apply(D,c(A[1],e.languages.javascript,"javascript")),A.splice.apply(A,D)),D=new e.Token("interpolation",A,n.alias,O),A=$.substring(H+M.length),O=[],P&&O.push(P),O.push(D),A&&(j($=[A]),O.push.apply(O,$)),typeof z=="string"?(E.splice.apply(E,[N,1].concat(O)),N+=O.length-1):z.content=O)):(H=z.content,Array.isArray(H)?j(H):j([H]))}}(w),new e.Token(S,w,"language-"+S,p)}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 f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function h(p){return typeof p=="string"?p:Array.isArray(p)?p.map(h).join(""):h(p.content)}e.hooks.add("after-tokenize",function(p){p.language in f&&function g(S){for(var b=0,v=S.length;b<v;b++){var w,C,j,E=S[b];typeof E!="string"&&(w=E.content,Array.isArray(w)?E.type==="template-string"?(E=w[1],w.length===3&&typeof E!="string"&&E.type==="embedded-code"&&(C=h(E),E=E.alias,E=Array.isArray(E)?E[0]:E,j=e.languages[E])&&(w[1]=d(C,j,E))):g(w):typeof w!="string"&&g([w]))}}(p.tokens)})}(tt),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}(tt),function(e){var t=e.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,n="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(n+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(n+/\[(?:(?!\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 r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),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)}(tt),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})}(tt),tt.languages.n4js=tt.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/}),tt.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),tt.languages.n4jsd=tt.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 r=["function","function-variable","method","method-variable","property-access"],n=0;n<r.length;n++){var o=r[n],a=e.languages.javascript[o],o=(a=e.util.type(a)==="RegExp"?e.languages.javascript[o]={pattern:a}:a).inside||{};(a.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(tt),function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,a=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(d,f){return d=d.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return a}),RegExp(d,f)}a=o(a).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(d){for(var f=[],h=0;h<d.length;h++){var p=d[h],g=!1;typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?0<f.length&&f[f.length-1].tagName===c(p.content[0].content[1])&&f.pop():p.content[p.content.length-1].content!=="/>"&&f.push({tagName:c(p.content[0].content[1]),openedBraces:0}):0<f.length&&p.type==="punctuation"&&p.content==="{"?f[f.length-1].openedBraces++:0<f.length&&0<f[f.length-1].openedBraces&&p.type==="punctuation"&&p.content==="}"?f[f.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&0<f.length&&f[f.length-1].openedBraces===0&&(g=c(p),h<d.length-1&&(typeof d[h+1]=="string"||d[h+1].type==="plain-text")&&(g+=c(d[h+1]),d.splice(h+1,1)),0<h&&(typeof d[h-1]=="string"||d[h-1].type==="plain-text")&&(g=c(d[h-1])+g,d.splice(h-1,1),h--),d[h]=new e.Token("plain-text",g,null,g)),p.content&&typeof p.content!="string"&&i(p.content)}}var c=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(c).join(""):""};e.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||i(d.tokens)})}(tt),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}(tt),tt.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:/[{}[\]();,.:\\]/},tt.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=tt.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}(tt),tt.languages.c=tt.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|[?:~]|[-+*/%&|^!=<>]=?/}),tt.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),tt.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},tt.languages.c.string],char:tt.languages.c.char,comment:tt.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:tt.languages.c}}}}),tt.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 tt.languages.c.boolean,tt.languages.objectivec=tt.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 tt.languages.objectivec["class-name"],tt.languages.objc=tt.languages.objectivec,tt.languages.reason=tt.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/}),tt.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 tt.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)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}(tt),tt.languages.go=tt.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/}),tt.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete tt.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/,r=/\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 r})+")"),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"])}(tt),tt.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://,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:/[{}[\];(),.:]/},tt.languages.python["string-interpolation"].inside.interpolation.inside.rest=tt.languages.python,tt.languages.py=tt.languages.python;var $i={};mxe($i,{dracula:()=>bxe,duotoneDark:()=>kxe,duotoneLight:()=>Sxe,github:()=>Exe,jettwaveDark:()=>Kxe,jettwaveLight:()=>Yxe,nightOwl:()=>_xe,nightOwlLight:()=>Mxe,oceanicNext:()=>Dxe,okaidia:()=>Rxe,oneDark:()=>Xxe,oneLight:()=>Jxe,palenight:()=>Oxe,shadesOfPurple:()=>$xe,synthwave84:()=>Fxe,ultramin:()=>Bxe,vsDark:()=>NB,vsLight:()=>Vxe});var yxe={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)"}}]},bxe=yxe,wxe={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"}}]},kxe=wxe,Cxe={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"}}]},Sxe=Cxe,jxe={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"}}]},Exe=jxe,Nxe={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)"}}]},_xe=Nxe,Txe={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)"}}]},Mxe=Txe,io={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"},Pxe={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:io.keyword}},{types:["attr-value"],style:{color:io.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:io.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:io.primitive}},{types:["boolean"],style:{color:io.boolean}},{types:["tag"],style:{color:io.tag}},{types:["string"],style:{color:io.string}},{types:["punctuation"],style:{color:io.string}},{types:["selector","char","builtin","inserted"],style:{color:io.char}},{types:["function"],style:{color:io.function}},{types:["operator","entity","url","variable"],style:{color:io.variable}},{types:["keyword"],style:{color:io.keyword}},{types:["atrule","class-name"],style:{color:io.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Dxe=Pxe,Axe={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"}}]},Rxe=Axe,Lxe={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)"}}]},Oxe=Lxe,Ixe={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)"}}]},$xe=Ixe,zxe={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"}}]},Fxe=zxe,Hxe={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)"}}]},Bxe=Hxe,Uxe={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)"}}]},NB=Uxe,Wxe={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)"}}]},Vxe=Wxe,qxe={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"}}]},Kxe=qxe,Gxe={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"}}]},Yxe=Gxe,Zxe={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%)"}}]},Xxe=Zxe,Qxe={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%)"}}]},Jxe=Qxe,eye=(e,t)=>{const{plain:r}=e,n=e.styles.reduce((a,o)=>{const{languages:i,style:c}=o;return i&&!i.includes(t)||o.types.forEach(d=>{const f=vl(vl({},a[d]),c);a[d]=f}),a},{});return n.root=r,n.plain=Gw(vl({},r),{backgroundColor:void 0}),n},RP=eye,tye=(e,t)=>{const[r,n]=m.useState(RP(t,e)),a=m.useRef(),o=m.useRef();return m.useEffect(()=>{(t!==a.current||e!==o.current)&&(a.current=t,o.current=e,n(RP(t,e)))},[e,t]),r},rye=e=>m.useCallback(t=>{var r=t,{className:n,style:a,line:o}=r,i=EB(r,["className","style","line"]);const c=Gw(vl({},i),{className:gr("token-line",n)});return typeof e=="object"&&"plain"in e&&(c.style=e.plain),typeof a=="object"&&(c.style=vl(vl({},c.style||{}),a)),c},[e]),nye=e=>{const t=m.useCallback(({types:r,empty:n})=>{if(e!=null){{if(r.length===1&&r[0]==="plain")return n!=null?{display:"inline-block"}:void 0;if(r.length===1&&n!=null)return e[r[0]]}return Object.assign(n!=null?{display:"inline-block"}:{},...r.map(a=>e[a]))}},[e]);return m.useCallback(r=>{var n=r,{token:a,className:o,style:i}=n,c=EB(n,["token","className","style"]);const d=Gw(vl({},c),{className:gr("token",...a.types,o),children:a.content,style:t(a)});return i!=null&&(d.style=vl(vl({},d.style||{}),i)),d},[t])},sye=/\r\n|\r|\n/,LP=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)},OP=(e,t)=>{const r=e.length;return r>0&&e[r-1]===t?e:e.concat(t)},aye=e=>{const t=[[]],r=[e],n=[0],a=[e.length];let o=0,i=0,c=[];const d=[c];for(;i>-1;){for(;(o=n[i]++)<a[i];){let f,h=t[i];const g=r[i][o];if(typeof g=="string"?(h=i>0?h:["plain"],f=g):(h=OP(h,g.type),g.alias&&(h=OP(h,g.alias)),f=g.content),typeof f!="string"){i++,t.push(h),r.push(f),n.push(0),a.push(f.length);continue}const S=f.split(sye),b=S.length;c.push({types:h,content:S[0]});for(let v=1;v<b;v++)LP(c),d.push(c=[]),c.push({types:h,content:S[v]})}i--,t.pop(),r.pop(),n.pop(),a.pop()}return LP(c),d},IP=aye,oye=({prism:e,code:t,grammar:r,language:n})=>{const a=m.useRef(e);return m.useMemo(()=>{if(r==null)return IP([t]);const o={code:t,grammar:r,language:n,tokens:[]};return a.current.hooks.run("before-tokenize",o),o.tokens=a.current.tokenize(t,r),a.current.hooks.run("after-tokenize",o),IP(o.tokens)},[t,r,n])},iye=({children:e,language:t,code:r,theme:n,prism:a})=>{const o=t.toLowerCase(),i=tye(o,n),c=rye(i),d=nye(i),f=a.languages[o],h=oye({prism:a,language:o,code:r,grammar:f});return e({tokens:h,className:"prism-code language-".concat(o),style:i!=null?i.root:{},getLineProps:c,getTokenProps:d})},g1=e=>m.createElement(iye,Gw(vl({},e),{prism:e.prism||tt,theme:e.theme||NB,code:e.code,language:e.language}));/*! Bundled license information:
|
||
|
||
prismjs/prism.js:
|
||
(**
|
||
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
*
|
||
* @license MIT <https://opensource.org/licenses/MIT>
|
||
* @author Lea Verou <https://lea.verou.me>
|
||
* @namespace
|
||
* @public
|
||
*)
|
||
*/function lye(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"14px",className:e.className,height:(r=e.height)!=null?r:"14px",viewBox:"30.325 6.289 29.119 25.859",xmlns:"http://www.w3.org/2000/svg",stroke:"none",fill:"currentColor",children:[s.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"}),s.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"}),s.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 cye(o){var i=o,{fallback:e,onErrorCallback:t=()=>{},hasError:r=!1,src:n}=i,a=Ce(i,["fallback","onErrorCallback","hasError","src"]);const[c,d]=m.useState(!r);return c&&!r?s.jsx("img",R({src:n,onError:()=>{c&&d(!1),t()}},a)):e?s.jsx("img",re(R({src:e},a),{alt:"404 Not Found"})):s.jsx($e,{text:"404 / broken image link",children:s.jsx(lye,{className:"mb-1 text-gray-400",width:"50px",height:"36px"})})}const zi=m.memo(cye,(e,t)=>e.src===t.src),hN=({delay:e=800,onCopied:t=()=>{}})=>{const[r,n]=m.useState(!1);return[r,o=>{(o==null?void 0:o.length)>0&&!r&&(n(!0),setTimeout(()=>{_s("copy_text",{text:o}).then(i=>{i==="ok"?(requestAnimationFrame(()=>{n(!1)}),t()):(n(!1),console.error("Failed to copy text",i))}).catch(i=>{n(!1),console.error("Failed to copy text",i)})},e))}]},pN=({delay:e=800,onPasted:t=()=>{}})=>{const[r,n]=m.useState(""),[a,o]=m.useState(null),{copyPasteDelay:i}=xt(Rn),c=m.useRef(0),d=(h,p=0)=>{_s("copy_paste",{text:h,delay:p}).then(g=>{g==="ok"?requestAnimationFrame(()=>{n(""),t()}):(n(""),console.error("Failed to copy paste text",g))}).catch(g=>{n(""),console.error("Failed to copy paste text",g)})};return m.useEffect(()=>(a&&a>0?c.current=setInterval(()=>{o(h=>h?h-1:null)},1e3):a===0?(r&&(o(null),setTimeout(()=>{d(r,0)},e)),clearInterval(c.current)):c.current&&clearInterval(c.current),()=>{c.current&&clearInterval(c.current)}),[a,r]),[r,a,(h,p)=>{p=p!=null?p:i,h&&!r&&(n(h),p>0?o(p):setTimeout(()=>{d(h,p)},e))}]};class uye{constructor(t){St(this,"codes");this.codes=[],this.setCodes(t)}closeTags(t){let r=t;return this.codes.forEach(({tag:n})=>{const a="[".concat(n,"]"),o="[/".concat(n,"]"),i=[];let c=0;for(;c<r.length;)r.substr(c,a.length)===a?(i.push(c),c+=a.length):r.substr(c,o.length)===o?(i.pop(),c+=o.length):c++;for(;i.length>0;)i.pop(),r+=o}),r}parse(t){let n=[t];for(const{regexp:a,replacement:o}of this.codes)n=n.flatMap((i,c)=>typeof i=="string"?this.replaceText(i,a,o,c):i);return n=n.flatMap(a=>typeof a=="string"?this.linkifyText(a):a),n.length===1?n[0]:s.jsx(s.Fragment,{children:n})}linkifyText(t){const n=Nn().match(t);if(!n)return t;const a=[];let o=0;return n.forEach((i,c)=>{a.push(t.slice(o,i.index)),a.push(s.jsx("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400",onClick:()=>{yl(wn(i.url))},children:i.raw},"link-".concat(c))),o=i.lastIndex}),a.push(t.slice(o)),a}replaceText(t,r,n,a){let o=0;const i=[];return t.replace(r,(c,d,f)=>(f>o&&i.push(t.substring(o,f)),typeof n=="function"?i.push(n(d,Date.now()+a)):i.push(n),o=f+c.length,c)),o<t.length&&i.push(t.substring(o)),i}add(t,r,n){return this.codes.push({tag:n,regexp:new RegExp(t,"igms"),replacement:r}),this}remove(t){let r=t;return this.codes.forEach(({tag:n})=>{const a=new RegExp("\\[".concat(n,"\\]"),"gi"),o=new RegExp("\\[/".concat(n,"\\]"),"gi");r=r.replace(a,""),r=r.replace(o,"")}),r}setCodes(t){return this.codes=Object.keys(t).map(r=>{const n=t[r],a=r.match(/\\\[(.+?)\\\]/);return{tag:a?a[1]:"unknown",regexp:new RegExp(r,"igms"),replacement:n}}),this}}const _B=({text:e,copyText:t,id:r,parser:n})=>{const a=n?n.parse(e):e,{t:o}=Tt(),[i,c]=hN({}),[d,f,h]=pN({}),p=i||d;return s.jsxs("span",{onDoubleClick:g=>{g.preventDefault(),pr.value?h(n?n.remove(t):t):c(n?n.remove(t):t)},className:"".concat(p?"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:[s.jsx("span",{children:a}),p&&!f?s.jsx(ft,{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:s.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white",children:[s.jsx(Bt,{size:14,className:"mr-1"}),i?o("Copied",{ns:"common"}):d?o("Pasted",{ns:"common"}):""]})}):p&&f&&f>0&&s.jsx(ft,{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:f})}),s.jsx(rn,{className:"ml-1 text-slate-400 h-full py-0.5 hover:text-green-700",onClick:g=>{g.preventDefault(),pr.value?h(n?n.remove(t):t):c(n?n.remove(t):t)},children:s.jsx($e,{text:pr.value?o("Copy and Paste",{ns:"common"}):o("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:14}):s.jsx(aa,{size:14})})})]},r)},TB=({txt:e,id:t})=>{const r=a=>{if(a.length<=1)return a;if(a.length===2)return"".concat(a[0],"•");const o=a[0],i=a[a.length-1],c=a.substring(1,a.length-1).split("").map(()=>"•").join("");return"".concat(o).concat(c).concat(i)},n=typeof e=="string"?e.split(/(\s+)/).map(a=>/\s/.test(a)?a:r(a)).join(""):m.isValidElement(e)?m.cloneElement(e,e.props,...m.Children.toArray(e.props.children).map(a=>TB({txt:a,id:Math.random()*1e3}))):"•";return s.jsx("span",{className:"masked-or-blanked",children:n},t)},MB=({txt:e,id:t})=>{if(typeof e=="string"&&e.length<=2)return s.jsx("span",{children:e});const r=typeof e=="string"?e.split("").map(n=>/\s/.test(n)?n:"█").join(""):m.isValidElement(e)?m.cloneElement(e,e.props,...m.Children.toArray(e.props.children).map(n=>MB({txt:n,id:Math.random()*1e3}))):"█";return s.jsx("span",{className:"text-gray-200 dark:text-gray-600 masked-or-blanked",children:r},t)},dye=({text:e,id:t})=>s.jsx("span",{className:"bg-yellow-200 dark:bg-yellow-700 dark:text-slate-100",children:e},t),Ql=new uye({"\\[copy\\](.+?)\\[/copy\\]":(e,t)=>s.jsx(_B,{text:e,copyText:e.repeat(1),id:t,parser:Ql}),"\\[mask\\](.+?)\\[/mask\\]":(e,t)=>s.jsx(TB,{txt:e,id:t}),"\\[blank\\](.+?)\\[/blank\\]":(e,t)=>s.jsx(MB,{txt:e,id:t}),"\\[hl\\](.+?)\\[/hl\\]":(e,t)=>s.jsx(dye,{text:e,id:t}),"\\[h\\](.+?)\\[/h\\]":(e,t)=>s.jsx("span",{className:"text-lg font-semibold",children:e},t),"\\[b\\](.+?)\\[/b\\]":(e,t)=>s.jsx("strong",{children:e},t),"\\[i\\](.+?)\\[/i\\]":(e,t)=>s.jsx("span",{className:"italic",children:e},t)}),PB=(e,t,r)=>{var o;const n=s$(t),a=new RegExp("(".concat(n,")"),"gi");if(typeof e=="string"){const i=e.split(a),c=m.createRef();return i.map((d,f)=>(r.current.push(c),d.toLowerCase()===t.toLowerCase()?s.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:Ii(c),children:d},f):d))}else if(m.isValidElement(e))if((o=e==null?void 0:e.props)!=null&&o.text&&typeof e.props.text=="string"){const i=e.props.text.split(a),c=m.createRef();return m.cloneElement(e,re(R({},e.props),{text:s.jsx("span",{children:i.map((d,f)=>(r.current.push(c),d.toLowerCase()===t.toLowerCase()?s.jsx("span",{className:"bg-yellow-300 dark:bg-yellow-600 search-pulse-animation",ref:Ii(c),children:Ql.parse(d)},f):s.jsx("span",{children:Ql.parse(d)})))})}),e.props.children)}else return m.cloneElement(e,e.props,...m.Children.toArray(e.props.children).map(i=>PB(i,t,r)));else return e},Yw=({isWrapped:e,searchTerm:t,valuePreview:r,isCode:n,isImage:a,isMasked:o,isLargeView:i,trimmedValue:c,hasLinkCard:d,metadataLinkByItemId:f,metadataLinkImageWidth:h=24,isImageData:p,morePreviewLines:g,isDark:S,isExpanded:b})=>{const v=m.useRef([]),w=m.useMemo(()=>{if(!p&&!n&&!a&&r)return o?ff(Ql.remove(r)):Ql.parse(r)},[r]),C=m.useMemo(()=>{if(!p&&!n&&!a&&c)return o?ff(Ql.remove(c)):Ql.parse(c)},[c]),j=m.useMemo(()=>t.length>1?(v.current=[],PB(C,t,v)):b?C:w,[b,t,C,w]);return m.useEffect(()=>{var E;v.current.length>0&&((E=v.current[0].current)==null||E.scrollIntoView({behavior:"smooth",block:"center"}))},[j]),s.jsxs(em,{className:"clip-card-text-view ".concat(!b||g==null?"code-scroll-x":""),options:{scrollbars:{theme:S?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxHeight:i?"calc(100vh - 240px)":b||g==null?200:120,maxWidth:"100%"},children:[d&&s.jsx(Q,{className:"self-start mt-1 mb-1 text-xs w-full select-none overflow-hidden",children:s.jsx(Dm,{isDisabled:wn(c)!==(f==null?void 0:f.linkUrl),title:f==null?void 0:f.linkTitle,description:f==null?void 0:f.linkDescription,favicon:f==null?void 0:f.linkFavicon,link:f==null?void 0:f.linkUrl,imageWidth:h,image:f==null?void 0:f.linkImage,domain:f==null?void 0:f.linkDomain})}),s.jsxs(mv,{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:[j,!b&&g&&s.jsx("span",{className:"select-none",children:"..."})]})]})};m.memo(Yw);var DB={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Tr,function(){var r=navigator.userAgent,n=navigator.platform,a=/gecko\/\d/i.test(r),o=/MSIE \d/.test(r),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),c=/Edge\/(\d+)/.exec(r),d=o||i||c,f=d&&(o?document.documentMode||6:+(c||i)[1]),h=!c&&/WebKit\//.test(r),p=h&&/Qt\/\d+\.\d+/.test(r),g=!c&&/Chrome\/(\d+)/.exec(r),S=g&&+g[1],b=/Opera\//.test(r),v=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),j=v&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),E=/Android/.test(r),N=j||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),M=j||/Mac/.test(n),P=/\bCrOS\b/.test(r),D=/win/i.test(n),A=b&&r.match(/Version\/(\d*\.\d*)/);A&&(A=Number(A[1])),A&&A>=15&&(b=!1,h=!0);var O=M&&(p||b&&(A==null||A<12.11)),$=a||d&&f>=9;function H(l){return new RegExp("(^|\\s)"+l+"(?:$|\\s)\\s*")}var z=function(l,u){var y=l.className,x=H(u).exec(y);if(x){var k=y.slice(x.index+x[0].length);l.className=y.slice(0,x.index)+(k?x[1]+k:"")}};function I(l){for(var u=l.childNodes.length;u>0;--u)l.removeChild(l.firstChild);return l}function W(l,u){return I(l).appendChild(u)}function _(l,u,y,x){var k=document.createElement(l);if(y&&(k.className=y),x&&(k.style.cssText=x),typeof u=="string")k.appendChild(document.createTextNode(u));else if(u)for(var T=0;T<u.length;++T)k.appendChild(u[T]);return k}function K(l,u,y,x){var k=_(l,u,y,x);return k.setAttribute("role","presentation"),k}var V;document.createRange?V=function(l,u,y,x){var k=document.createRange();return k.setEnd(x||l,y),k.setStart(l,u),k}:V=function(l,u,y){var x=document.body.createTextRange();try{x.moveToElementText(l.parentNode)}catch(k){return x}return x.collapse(!0),x.moveEnd("character",y),x.moveStart("character",u),x};function U(l,u){if(u.nodeType==3&&(u=u.parentNode),l.contains)return l.contains(u);do if(u.nodeType==11&&(u=u.host),u==l)return!0;while(u=u.parentNode)}function X(l){var u=l.ownerDocument||l,y;try{y=l.activeElement}catch(x){y=u.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function G(l,u){var y=l.className;H(u).test(y)||(l.className+=(y?" ":"")+u)}function F(l,u){for(var y=l.split(" "),x=0;x<y.length;x++)y[x]&&!H(y[x]).test(u)&&(u+=" "+y[x]);return u}var q=function(l){l.select()};j?q=function(l){l.selectionStart=0,l.selectionEnd=l.value.length}:d&&(q=function(l){try{l.select()}catch(u){}});function Y(l){return l.display.wrapper.ownerDocument}function se(l){return ee(l.display.wrapper)}function ee(l){return l.getRootNode?l.getRootNode():l.ownerDocument}function ae(l){return Y(l).defaultView}function oe(l){var u=Array.prototype.slice.call(arguments,1);return function(){return l.apply(null,u)}}function le(l,u,y){u||(u={});for(var x in l)l.hasOwnProperty(x)&&(y!==!1||!u.hasOwnProperty(x))&&(u[x]=l[x]);return u}function ue(l,u,y,x,k){u==null&&(u=l.search(/[^\s\u00a0]/),u==-1&&(u=l.length));for(var T=x||0,L=k||0;;){var B=l.indexOf(" ",T);if(B<0||B>=u)return L+(u-T);L+=B-T,L+=y-L%y,T=B+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=oe(this.onTimeout,this)};ce.prototype.onTimeout=function(l){l.id=0,l.time<=+new Date?l.f():setTimeout(l.handler,l.time-+new Date)},ce.prototype.set=function(l,u){this.f=u;var y=+new Date+l;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,l),this.time=y)};function he(l,u){for(var y=0;y<l.length;++y)if(l[y]==u)return y;return-1}var we=50,Se={toString:function(){return"CodeMirror.Pass"}},Ae={scroll:!1},je={origin:"*mouse"},Le={origin:"+move"};function Ee(l,u,y){for(var x=0,k=0;;){var T=l.indexOf(" ",x);T==-1&&(T=l.length);var L=T-x;if(T==l.length||k+L>=u)return x+Math.min(L,u-k);if(k+=T-x,k+=y-k%y,x=T+1,k>=u)return x}}var He=[""];function Qe(l){for(;He.length<=l;)He.push(Ze(He)+" ");return He[l]}function Ze(l){return l[l.length-1]}function mt(l,u){for(var y=[],x=0;x<l.length;x++)y[x]=u(l[x],x);return y}function Ke(l,u,y){for(var x=0,k=y(u);x<l.length&&y(l[x])<=k;)x++;l.splice(x,0,u)}function Lt(){}function qt(l,u){var y;return Object.create?y=Object.create(l):(Lt.prototype=l,y=new Lt),u&&le(u,y),y}var Xt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ge(l){return/\w/.test(l)||l>""&&(l.toUpperCase()!=l.toLowerCase()||Xt.test(l))}function zt(l,u){return u?u.source.indexOf("\\w")>-1&&Ge(l)?!0:u.test(l):Ge(l)}function ir(l){for(var u in l)if(l.hasOwnProperty(u)&&l[u])return!1;return!0}var Ft=/[\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 et(l){return l.charCodeAt(0)>=768&&Ft.test(l)}function cr(l,u,y){for(;(y<0?u>0:u<l.length)&&et(l.charAt(u));)u+=y;return u}function ar(l,u,y){for(var x=u>y?-1:1;;){if(u==y)return u;var k=(u+y)/2,T=x<0?Math.ceil(k):Math.floor(k);if(T==u)return l(T)?u:y;l(T)?y=T:u=T+x}}function ur(l,u,y,x){if(!l)return x(u,y,"ltr",0);for(var k=!1,T=0;T<l.length;++T){var L=l[T];(L.from<y&&L.to>u||u==y&&L.to==u)&&(x(Math.max(L.from,u),Math.min(L.to,y),L.level==1?"rtl":"ltr",T),k=!0)}k||x(u,y,"ltr")}var Sr=null;function Mt(l,u,y){var x;Sr=null;for(var k=0;k<l.length;++k){var T=l[k];if(T.from<u&&T.to>u)return k;T.to==u&&(T.from!=T.to&&y=="before"?x=k:Sr=k),T.from==u&&(T.from!=T.to&&y!="before"?x=k:Sr=k)}return x!=null?x:Sr}var Rr=function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(te){return te<=247?l.charAt(te):1424<=te&&te<=1524?"R":1536<=te&&te<=1785?u.charAt(te-1536):1774<=te&&te<=2220?"r":8192<=te&&te<=8203?"w":te==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,k=/[stwN]/,T=/[LRr]/,L=/[Lb1n]/,B=/[1n]/;function Z(te,de,ge){this.level=te,this.from=de,this.to=ge}return function(te,de){var ge=de=="ltr"?"L":"R";if(te.length==0||de=="ltr"&&!x.test(te))return!1;for(var Pe=te.length,_e=[],We=0;We<Pe;++We)_e.push(y(te.charCodeAt(We)));for(var Xe=0,it=ge;Xe<Pe;++Xe){var ht=_e[Xe];ht=="m"?_e[Xe]=it:it=ht}for(var Ct=0,pt=ge;Ct<Pe;++Ct){var Rt=_e[Ct];Rt=="1"&&pt=="r"?_e[Ct]="n":T.test(Rt)&&(pt=Rt,Rt=="r"&&(_e[Ct]="R"))}for(var tr=1,Qt=_e[0];tr<Pe-1;++tr){var yr=_e[tr];yr=="+"&&Qt=="1"&&_e[tr+1]=="1"?_e[tr]="1":yr==","&&Qt==_e[tr+1]&&(Qt=="1"||Qt=="n")&&(_e[tr]=Qt),Qt=yr}for(var on=0;on<Pe;++on){var as=_e[on];if(as==",")_e[on]="N";else if(as=="%"){var Cn=void 0;for(Cn=on+1;Cn<Pe&&_e[Cn]=="%";++Cn);for(var Oa=on&&_e[on-1]=="!"||Cn<Pe&&_e[Cn]=="1"?"1":"N",ga=on;ga<Cn;++ga)_e[ga]=Oa;on=Cn-1}}for(var Bn=0,va=ge;Bn<Pe;++Bn){var bs=_e[Bn];va=="L"&&bs=="1"?_e[Bn]="L":T.test(bs)&&(va=bs)}for(var Zn=0;Zn<Pe;++Zn)if(k.test(_e[Zn])){var Un=void 0;for(Un=Zn+1;Un<Pe&&k.test(_e[Un]);++Un);for(var _n=(Zn?_e[Zn-1]:ge)=="L",xa=(Un<Pe?_e[Un]:ge)=="L",rh=_n==xa?_n?"L":"R":ge,Ac=Zn;Ac<Un;++Ac)_e[Ac]=rh;Zn=Un-1}for(var As=[],qi,os=0;os<Pe;)if(L.test(_e[os])){var oC=os;for(++os;os<Pe&&L.test(_e[os]);++os);As.push(new Z(0,oC,os))}else{var Pl=os,ld=As.length,cd=de=="rtl"?1:0;for(++os;os<Pe&&_e[os]!="L";++os);for(var Gs=Pl;Gs<os;)if(B.test(_e[Gs])){Pl<Gs&&(As.splice(ld,0,new Z(1,Pl,Gs)),ld+=cd);var nh=Gs;for(++Gs;Gs<os&&B.test(_e[Gs]);++Gs);As.splice(ld,0,new Z(2,nh,Gs)),ld+=cd,Pl=Gs}else++Gs;Pl<os&&As.splice(ld,0,new Z(1,Pl,os))}return de=="ltr"&&(As[0].level==1&&(qi=te.match(/^\s+/))&&(As[0].from=qi[0].length,As.unshift(new Z(0,0,qi[0].length))),Ze(As).level==1&&(qi=te.match(/\s+$/))&&(Ze(As).to-=qi[0].length,As.push(new Z(0,Pe-qi[0].length,Pe)))),de=="rtl"?As.reverse():As}}();function Me(l,u){var y=l.order;return y==null&&(y=l.order=Rr(l.text,u)),y}var Ye=[],Te=function(l,u,y){if(l.addEventListener)l.addEventListener(u,y,!1);else if(l.attachEvent)l.attachEvent("on"+u,y);else{var x=l._handlers||(l._handlers={});x[u]=(x[u]||Ye).concat(y)}};function lt(l,u){return l._handlers&&l._handlers[u]||Ye}function xe(l,u,y){if(l.removeEventListener)l.removeEventListener(u,y,!1);else if(l.detachEvent)l.detachEvent("on"+u,y);else{var x=l._handlers,k=x&&x[u];if(k){var T=he(k,y);T>-1&&(x[u]=k.slice(0,T).concat(k.slice(T+1)))}}}function be(l,u){var y=lt(l,u);if(y.length)for(var x=Array.prototype.slice.call(arguments,2),k=0;k<y.length;++k)y[k].apply(null,x)}function De(l,u,y){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),be(l,y||u.type,l,u),ct(u)||u.codemirrorIgnore}function Fe(l){var u=l._handlers&&l._handlers.cursorActivity;if(u)for(var y=l.curOp.cursorActivityHandlers||(l.curOp.cursorActivityHandlers=[]),x=0;x<u.length;++x)he(y,u[x])==-1&&y.push(u[x])}function Je(l,u){return lt(l,u).length>0}function st(l){l.prototype.on=function(u,y){Te(this,u,y)},l.prototype.off=function(u,y){xe(this,u,y)}}function at(l){l.preventDefault?l.preventDefault():l.returnValue=!1}function wt(l){l.stopPropagation?l.stopPropagation():l.cancelBubble=!0}function ct(l){return l.defaultPrevented!=null?l.defaultPrevented:l.returnValue==!1}function Nt(l){at(l),wt(l)}function Gt(l){return l.target||l.srcElement}function kt(l){var u=l.which;return u==null&&(l.button&1?u=1:l.button&2?u=3:l.button&4&&(u=2)),M&&l.ctrlKey&&u==1&&(u=3),u}var dr=function(){if(d&&f<9)return!1;var l=_("div");return"draggable"in l||"dragDrop"in l}(),Yt;function Ht(l){if(Yt==null){var u=_("span","");W(l,_("span",[u,document.createTextNode("x")])),l.firstChild.offsetHeight!=0&&(Yt=u.offsetWidth<=1&&u.offsetHeight>2&&!(d&&f<8))}var y=Yt?_("span",""):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var lr;function It(l){if(lr!=null)return lr;var u=W(l,document.createTextNode("AخA")),y=V(u,0,1).getBoundingClientRect(),x=V(u,1,2).getBoundingClientRect();return I(l),!y||y.left==y.right?!1:lr=x.right-y.right<3}var Mr="\n\nb".split(/\n/).length!=3?function(l){for(var u=0,y=[],x=l.length;u<=x;){var k=l.indexOf("\n",u);k==-1&&(k=l.length);var T=l.slice(u,l.charAt(k-1)=="\r"?k-1:k),L=T.indexOf("\r");L!=-1?(y.push(T.slice(0,L)),u+=L+1):(y.push(T),u=k+1)}return y}:function(l){return l.split(/\r\n?|\n/)},Jt=window.getSelection?function(l){try{return l.selectionStart!=l.selectionEnd}catch(u){return!1}}:function(l){var u;try{u=l.ownerDocument.selection.createRange()}catch(y){}return!u||u.parentElement()!=l?!1:u.compareEndPoints("StartToEnd",u)!=0},yt=function(){var l=_("div");return"oncopy"in l?!0:(l.setAttribute("oncopy","return;"),typeof l.oncopy=="function")}(),er=null;function Ot(l){if(er!=null)return er;var u=W(l,_("span","x")),y=u.getBoundingClientRect(),x=V(u,0,1).getBoundingClientRect();return er=Math.abs(y.left-x.left)>1}var nt={},ye={};function Ie(l,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),nt[l]=u}function qe(l,u){ye[l]=u}function ut(l){if(typeof l=="string"&&ye.hasOwnProperty(l))l=ye[l];else if(l&&typeof l.name=="string"&&ye.hasOwnProperty(l.name)){var u=ye[l.name];typeof u=="string"&&(u={name:u}),l=qt(u,l),l.name=u.name}else{if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(l))return ut("application/xml");if(typeof l=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(l))return ut("application/json")}return typeof l=="string"?{name:l}:l||{name:"null"}}function Pt(l,u){u=ut(u);var y=nt[u.name];if(!y)return Pt(l,"text/plain");var x=y(l,u);if(or.hasOwnProperty(u.name)){var k=or[u.name];for(var T in k)k.hasOwnProperty(T)&&(x.hasOwnProperty(T)&&(x["_"+T]=x[T]),x[T]=k[T])}if(x.name=u.name,u.helperType&&(x.helperType=u.helperType),u.modeProps)for(var L in u.modeProps)x[L]=u.modeProps[L];return x}var or={};function Fr(l,u){var y=or.hasOwnProperty(l)?or[l]:or[l]={};le(u,y)}function Xr(l,u){if(u===!0)return u;if(l.copyState)return l.copyState(u);var y={};for(var x in u){var k=u[x];k instanceof Array&&(k=k.concat([])),y[x]=k}return y}function ys(l,u){for(var y;l.innerMode&&(y=l.innerMode(u),!(!y||y.mode==l));)u=y.state,l=y.mode;return y||{mode:l,state:u}}function fn(l,u,y){return l.startState?l.startState(u,y):!0}var Kt=function(l,u,y){this.pos=this.start=0,this.string=l,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};Kt.prototype.eol=function(){return this.pos>=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Kt.prototype.eat=function(l){var u=this.string.charAt(this.pos),y;if(typeof l=="string"?y=u==l:y=u&&(l.test?l.test(u):l(u)),y)return++this.pos,u},Kt.prototype.eatWhile=function(l){for(var u=this.pos;this.eat(l););return this.pos>u},Kt.prototype.eatSpace=function(){for(var l=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>l},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(l){var u=this.string.indexOf(l,this.pos);if(u>-1)return this.pos=u,!0},Kt.prototype.backUp=function(l){this.pos-=l},Kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.indentation=function(){return ue(this.string,null,this.tabSize)-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Kt.prototype.match=function(l,u,y){if(typeof l=="string"){var x=function(L){return y?L.toLowerCase():L},k=this.string.substr(this.pos,l.length);if(x(k)==x(l))return u!==!1&&(this.pos+=l.length),!0}else{var T=this.string.slice(this.pos).match(l);return T&&T.index>0?null:(T&&u!==!1&&(this.pos+=T[0].length),T)}},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(l,u){this.lineStart+=l;try{return u()}finally{this.lineStart-=l}},Kt.prototype.lookAhead=function(l){var u=this.lineOracle;return u&&u.lookAhead(l)},Kt.prototype.baseToken=function(){var l=this.lineOracle;return l&&l.baseToken(this.pos)};function Et(l,u){if(u-=l.first,u<0||u>=l.size)throw new Error("There is no line "+(u+l.first)+" in the document.");for(var y=l;!y.lines;)for(var x=0;;++x){var k=y.children[x],T=k.chunkSize();if(u<T){y=k;break}u-=T}return y.lines[u]}function ot(l,u,y){var x=[],k=u.line;return l.iter(u.line,y.line+1,function(T){var L=T.text;k==y.line&&(L=L.slice(0,y.ch)),k==u.line&&(L=L.slice(u.ch)),x.push(L),++k}),x}function Wt(l,u,y){var x=[];return l.iter(u,y,function(k){x.push(k.text)}),x}function Dt(l,u){var y=u-l.height;if(y)for(var x=l;x;x=x.parent)x.height+=y}function ne(l){if(l.parent==null)return null;for(var u=l.parent,y=he(u.lines,l),x=u.parent;x;u=x,x=x.parent)for(var k=0;x.children[k]!=u;++k)y+=x.children[k].chunkSize();return y+u.first}function fe(l,u){var y=l.first;e:do{for(var x=0;x<l.children.length;++x){var k=l.children[x],T=k.height;if(u<T){l=k;continue e}u-=T,y+=k.chunkSize()}return y}while(!l.lines);for(var L=0;L<l.lines.length;++L){var B=l.lines[L],Z=B.height;if(u<Z)break;u-=Z}return y+L}function Ue(l,u){return u>=l.first&&u<l.first+l.size}function rt(l,u){return String(l.lineNumberFormatter(u+l.firstLineNumber))}function Oe(l,u,y){if(y===void 0&&(y=null),!(this instanceof Oe))return new Oe(l,u,y);this.line=l,this.ch=u,this.sticky=y}function gt(l,u){return l.line-u.line||l.ch-u.ch}function mr(l,u){return l.sticky==u.sticky&>(l,u)==0}function Hn(l){return Oe(l.line,l.ch)}function Ps(l,u){return gt(l,u)<0?u:l}function Sc(l,u){return gt(l,u)<0?l:u}function JN(l,u){return Math.max(l.first,Math.min(u,l.first+l.size-1))}function hr(l,u){if(u.line<l.first)return Oe(l.first,0);var y=l.first+l.size-1;return u.line>y?Oe(y,Et(l,y).text.length):nV(u,Et(l,u.line).text.length)}function nV(l,u){var y=l.ch;return y==null||y>u?Oe(l.line,u):y<0?Oe(l.line,0):l}function e_(l,u){for(var y=[],x=0;x<u.length;x++)y[x]=hr(l,u[x]);return y}var w1=function(l,u){this.state=l,this.lookAhead=u},Ui=function(l,u,y,x){this.state=u,this.doc=l,this.line=y,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};Ui.prototype.lookAhead=function(l){var u=this.doc.getLine(this.line+l);return u!=null&&l>this.maxLookAhead&&(this.maxLookAhead=l),u},Ui.prototype.baseToken=function(l){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=l;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-l}},Ui.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ui.fromSaved=function(l,u,y){return u instanceof w1?new Ui(l,Xr(l.mode,u.state),y,u.lookAhead):new Ui(l,Xr(l.mode,u),y)},Ui.prototype.save=function(l){var u=l!==!1?Xr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new w1(u,this.maxLookAhead):u};function t_(l,u,y,x){var k=[l.state.modeGen],T={};i_(l,u.text,l.doc.mode,y,function(te,de){return k.push(te,de)},T,x);for(var L=y.state,B=function(te){y.baseTokens=k;var de=l.state.overlays[te],ge=1,Pe=0;y.state=!0,i_(l,u.text,de.mode,y,function(_e,We){for(var Xe=ge;Pe<_e;){var it=k[ge];it>_e&&k.splice(ge,1,_e,k[ge+1],it),ge+=2,Pe=Math.min(_e,it)}if(We)if(de.opaque)k.splice(Xe,ge-Xe,_e,"overlay "+We),ge=Xe+2;else for(;Xe<ge;Xe+=2){var ht=k[Xe+1];k[Xe+1]=(ht?ht+" ":"")+"overlay "+We}},T),y.state=L,y.baseTokens=null,y.baseTokenPos=1},Z=0;Z<l.state.overlays.length;++Z)B(Z);return{styles:k,classes:T.bgClass||T.textClass?T:null}}function r_(l,u,y){if(!u.styles||u.styles[0]!=l.state.modeGen){var x=Im(l,ne(u)),k=u.text.length>l.options.maxHighlightLength&&Xr(l.doc.mode,x.state),T=t_(l,u,x);k&&(x.state=k),u.stateAfter=x.save(!k),u.styles=T.styles,T.classes?u.styleClasses=T.classes:u.styleClasses&&(u.styleClasses=null),y===l.doc.highlightFrontier&&(l.doc.modeFrontier=Math.max(l.doc.modeFrontier,++l.doc.highlightFrontier))}return u.styles}function Im(l,u,y){var x=l.doc,k=l.display;if(!x.mode.startState)return new Ui(x,!0,u);var T=sV(l,u,y),L=T>x.first&&Et(x,T-1).stateAfter,B=L?Ui.fromSaved(x,L,T):new Ui(x,fn(x.mode),T);return x.iter(T,u,function(Z){mk(l,Z.text,B);var te=B.line;Z.stateAfter=te==u-1||te%5==0||te>=k.viewFrom&&te<k.viewTo?B.save():null,B.nextLine()}),y&&(x.modeFrontier=B.line),B}function mk(l,u,y,x){var k=l.doc.mode,T=new Kt(u,l.options.tabSize,y);for(T.start=T.pos=x||0,u==""&&n_(k,y.state);!T.eol();)gk(k,T,y.state),T.start=T.pos}function n_(l,u){if(l.blankLine)return l.blankLine(u);if(l.innerMode){var y=ys(l,u);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function gk(l,u,y,x){for(var k=0;k<10;k++){x&&(x[0]=ys(l,y).mode);var T=l.token(u,y);if(u.pos>u.start)return T}throw new Error("Mode "+l.name+" failed to advance stream.")}var s_=function(l,u,y){this.start=l.start,this.end=l.pos,this.string=l.current(),this.type=u||null,this.state=y};function a_(l,u,y,x){var k=l.doc,T=k.mode,L;u=hr(k,u);var B=Et(k,u.line),Z=Im(l,u.line,y),te=new Kt(B.text,l.options.tabSize,Z),de;for(x&&(de=[]);(x||te.pos<u.ch)&&!te.eol();)te.start=te.pos,L=gk(T,te,Z.state),x&&de.push(new s_(te,L,Xr(k.mode,Z.state)));return x?de:new s_(te,L,Z.state)}function o_(l,u){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 x=y[1]?"bgClass":"textClass";u[x]==null?u[x]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(u[x])||(u[x]+=" "+y[2])}return l}function i_(l,u,y,x,k,T,L){var B=y.flattenSpans;B==null&&(B=l.options.flattenSpans);var Z=0,te=null,de=new Kt(u,l.options.tabSize,x),ge,Pe=l.options.addModeClass&&[null];for(u==""&&o_(n_(y,x.state),T);!de.eol();){if(de.pos>l.options.maxHighlightLength?(B=!1,L&&mk(l,u,x,de.pos),de.pos=u.length,ge=null):ge=o_(gk(y,de,x.state,Pe),T),Pe){var _e=Pe[0].name;_e&&(ge="m-"+(ge?_e+" "+ge:_e))}if(!B||te!=ge){for(;Z<de.start;)Z=Math.min(de.start,Z+5e3),k(Z,te);te=ge}de.start=de.pos}for(;Z<de.pos;){var We=Math.min(de.pos,Z+5e3);k(We,te),Z=We}}function sV(l,u,y){for(var x,k,T=l.doc,L=y?-1:u-(l.doc.mode.innerMode?1e3:100),B=u;B>L;--B){if(B<=T.first)return T.first;var Z=Et(T,B-1),te=Z.stateAfter;if(te&&(!y||B+(te instanceof w1?te.lookAhead:0)<=T.modeFrontier))return B;var de=ue(Z.text,null,l.options.tabSize);(k==null||x>de)&&(k=B-1,x=de)}return k}function aV(l,u){if(l.modeFrontier=Math.min(l.modeFrontier,u),!(l.highlightFrontier<u-10)){for(var y=l.first,x=u-1;x>y;x--){var k=Et(l,x).stateAfter;if(k&&(!(k instanceof w1)||x+k.lookAhead<u)){y=x+1;break}}l.highlightFrontier=Math.min(l.highlightFrontier,y)}}var l_=!1,El=!1;function oV(){l_=!0}function iV(){El=!0}function k1(l,u,y){this.marker=l,this.from=u,this.to=y}function $m(l,u){if(l)for(var y=0;y<l.length;++y){var x=l[y];if(x.marker==u)return x}}function lV(l,u){for(var y,x=0;x<l.length;++x)l[x]!=u&&(y||(y=[])).push(l[x]);return y}function cV(l,u,y){var x=y&&window.WeakSet&&(y.markedSpans||(y.markedSpans=new WeakSet));x&&l.markedSpans&&x.has(l.markedSpans)?l.markedSpans.push(u):(l.markedSpans=l.markedSpans?l.markedSpans.concat([u]):[u],x&&x.add(l.markedSpans)),u.marker.attachLine(l)}function uV(l,u,y){var x;if(l)for(var k=0;k<l.length;++k){var T=l[k],L=T.marker,B=T.from==null||(L.inclusiveLeft?T.from<=u:T.from<u);if(B||T.from==u&&L.type=="bookmark"&&(!y||!T.marker.insertLeft)){var Z=T.to==null||(L.inclusiveRight?T.to>=u:T.to>u);(x||(x=[])).push(new k1(L,T.from,Z?null:T.to))}}return x}function dV(l,u,y){var x;if(l)for(var k=0;k<l.length;++k){var T=l[k],L=T.marker,B=T.to==null||(L.inclusiveRight?T.to>=u:T.to>u);if(B||T.from==u&&L.type=="bookmark"&&(!y||T.marker.insertLeft)){var Z=T.from==null||(L.inclusiveLeft?T.from<=u:T.from<u);(x||(x=[])).push(new k1(L,Z?null:T.from-u,T.to==null?null:T.to-u))}}return x}function vk(l,u){if(u.full)return null;var y=Ue(l,u.from.line)&&Et(l,u.from.line).markedSpans,x=Ue(l,u.to.line)&&Et(l,u.to.line).markedSpans;if(!y&&!x)return null;var k=u.from.ch,T=u.to.ch,L=gt(u.from,u.to)==0,B=uV(y,k,L),Z=dV(x,T,L),te=u.text.length==1,de=Ze(u.text).length+(te?k:0);if(B)for(var ge=0;ge<B.length;++ge){var Pe=B[ge];if(Pe.to==null){var _e=$m(Z,Pe.marker);_e?te&&(Pe.to=_e.to==null?null:_e.to+de):Pe.to=k}}if(Z)for(var We=0;We<Z.length;++We){var Xe=Z[We];if(Xe.to!=null&&(Xe.to+=de),Xe.from==null){var it=$m(B,Xe.marker);it||(Xe.from=de,te&&(B||(B=[])).push(Xe))}else Xe.from+=de,te&&(B||(B=[])).push(Xe)}B&&(B=c_(B)),Z&&Z!=B&&(Z=c_(Z));var ht=[B];if(!te){var Ct=u.text.length-2,pt;if(Ct>0&&B)for(var Rt=0;Rt<B.length;++Rt)B[Rt].to==null&&(pt||(pt=[])).push(new k1(B[Rt].marker,null,null));for(var tr=0;tr<Ct;++tr)ht.push(pt);ht.push(Z)}return ht}function c_(l){for(var u=0;u<l.length;++u){var y=l[u];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&l.splice(u--,1)}return l.length?l:null}function fV(l,u,y){var x=null;if(l.iter(u.line,y.line+1,function(_e){if(_e.markedSpans)for(var We=0;We<_e.markedSpans.length;++We){var Xe=_e.markedSpans[We].marker;Xe.readOnly&&(!x||he(x,Xe)==-1)&&(x||(x=[])).push(Xe)}}),!x)return null;for(var k=[{from:u,to:y}],T=0;T<x.length;++T)for(var L=x[T],B=L.find(0),Z=0;Z<k.length;++Z){var te=k[Z];if(!(gt(te.to,B.from)<0||gt(te.from,B.to)>0)){var de=[Z,1],ge=gt(te.from,B.from),Pe=gt(te.to,B.to);(ge<0||!L.inclusiveLeft&&!ge)&&de.push({from:te.from,to:B.from}),(Pe>0||!L.inclusiveRight&&!Pe)&&de.push({from:B.to,to:te.to}),k.splice.apply(k,de),Z+=de.length-3}}return k}function u_(l){var u=l.markedSpans;if(u){for(var y=0;y<u.length;++y)u[y].marker.detachLine(l);l.markedSpans=null}}function d_(l,u){if(u){for(var y=0;y<u.length;++y)u[y].marker.attachLine(l);l.markedSpans=u}}function C1(l){return l.inclusiveLeft?-1:0}function S1(l){return l.inclusiveRight?1:0}function xk(l,u){var y=l.lines.length-u.lines.length;if(y!=0)return y;var x=l.find(),k=u.find(),T=gt(x.from,k.from)||C1(l)-C1(u);if(T)return-T;var L=gt(x.to,k.to)||S1(l)-S1(u);return L||u.id-l.id}function f_(l,u){var y=El&&l.markedSpans,x;if(y)for(var k=void 0,T=0;T<y.length;++T)k=y[T],k.marker.collapsed&&(u?k.from:k.to)==null&&(!x||xk(x,k.marker)<0)&&(x=k.marker);return x}function h_(l){return f_(l,!0)}function j1(l){return f_(l,!1)}function hV(l,u){var y=El&&l.markedSpans,x;if(y)for(var k=0;k<y.length;++k){var T=y[k];T.marker.collapsed&&(T.from==null||T.from<u)&&(T.to==null||T.to>u)&&(!x||xk(x,T.marker)<0)&&(x=T.marker)}return x}function p_(l,u,y,x,k){var T=Et(l,u),L=El&&T.markedSpans;if(L)for(var B=0;B<L.length;++B){var Z=L[B];if(Z.marker.collapsed){var te=Z.marker.find(0),de=gt(te.from,y)||C1(Z.marker)-C1(k),ge=gt(te.to,x)||S1(Z.marker)-S1(k);if(!(de>=0&&ge<=0||de<=0&&ge>=0)&&(de<=0&&(Z.marker.inclusiveRight&&k.inclusiveLeft?gt(te.to,y)>=0:gt(te.to,y)>0)||de>=0&&(Z.marker.inclusiveRight&&k.inclusiveLeft?gt(te.from,x)<=0:gt(te.from,x)<0)))return!0}}}function li(l){for(var u;u=h_(l);)l=u.find(-1,!0).line;return l}function pV(l){for(var u;u=j1(l);)l=u.find(1,!0).line;return l}function mV(l){for(var u,y;u=j1(l);)l=u.find(1,!0).line,(y||(y=[])).push(l);return y}function yk(l,u){var y=Et(l,u),x=li(y);return y==x?u:ne(x)}function m_(l,u){if(u>l.lastLine())return u;var y=Et(l,u),x;if(!jc(l,y))return u;for(;x=j1(y);)y=x.find(1,!0).line;return ne(y)+1}function jc(l,u){var y=El&&u.markedSpans;if(y){for(var x=void 0,k=0;k<y.length;++k)if(x=y[k],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&bk(l,u,x))return!0}}}function bk(l,u,y){if(y.to==null){var x=y.marker.find(1,!0);return bk(l,x.line,$m(x.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==u.text.length)return!0;for(var k=void 0,T=0;T<u.markedSpans.length;++T)if(k=u.markedSpans[T],k.marker.collapsed&&!k.marker.widgetNode&&k.from==y.to&&(k.to==null||k.to!=y.from)&&(k.marker.inclusiveLeft||y.marker.inclusiveRight)&&bk(l,u,k))return!0}function Nl(l){l=li(l);for(var u=0,y=l.parent,x=0;x<y.lines.length;++x){var k=y.lines[x];if(k==l)break;u+=k.height}for(var T=y.parent;T;y=T,T=y.parent)for(var L=0;L<T.children.length;++L){var B=T.children[L];if(B==y)break;u+=B.height}return u}function E1(l){if(l.height==0)return 0;for(var u=l.text.length,y,x=l;y=h_(x);){var k=y.find(0,!0);x=k.from.line,u+=k.from.ch-k.to.ch}for(x=l;y=j1(x);){var T=y.find(0,!0);u-=x.text.length-T.from.ch,x=T.to.line,u+=x.text.length-T.to.ch}return u}function wk(l){var u=l.display,y=l.doc;u.maxLine=Et(y,y.first),u.maxLineLength=E1(u.maxLine),u.maxLineChanged=!0,y.iter(function(x){var k=E1(x);k>u.maxLineLength&&(u.maxLineLength=k,u.maxLine=x)})}var zf=function(l,u,y){this.text=l,d_(this,u),this.height=y?y(this):1};zf.prototype.lineNo=function(){return ne(this)},st(zf);function gV(l,u,y,x){l.text=u,l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null),l.order!=null&&(l.order=null),u_(l),d_(l,y);var k=x?x(l):1;k!=l.height&&Dt(l,k)}function vV(l){l.parent=null,u_(l)}var xV={},yV={};function g_(l,u){if(!l||/^\s*$/.test(l))return null;var y=u.addModeClass?yV:xV;return y[l]||(y[l]=l.replace(/\S+/g,"cm-$&"))}function v_(l,u){var y=K("span",null,null,h?"padding-right: .1px":null),x={pre:K("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:l,trailingSpace:!1,splitSpaces:l.getOption("lineWrapping")};u.measure={};for(var k=0;k<=(u.rest?u.rest.length:0);k++){var T=k?u.rest[k-1]:u.line,L=void 0;x.pos=0,x.addToken=wV,It(l.display.measure)&&(L=Me(T,l.doc.direction))&&(x.addToken=CV(x.addToken,L)),x.map=[];var B=u!=l.display.externalMeasured&&ne(T);SV(T,x,r_(l,T,B)),T.styleClasses&&(T.styleClasses.bgClass&&(x.bgClass=F(T.styleClasses.bgClass,x.bgClass||"")),T.styleClasses.textClass&&(x.textClass=F(T.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Ht(l.display.measure))),k==0?(u.measure.map=x.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(x.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(h){var Z=x.content.lastChild;(/\bcm-tab\b/.test(Z.className)||Z.querySelector&&Z.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return be(l,"renderLine",l,u.line,x.pre),x.pre.className&&(x.textClass=F(x.pre.className,x.textClass||"")),x}function bV(l){var u=_("span","•","cm-invalidchar");return u.title="\\u"+l.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function wV(l,u,y,x,k,T,L){if(u){var B=l.splitSpaces?kV(u,l.trailingSpace):u,Z=l.cm.state.specialChars,te=!1,de;if(!Z.test(u))l.col+=u.length,de=document.createTextNode(B),l.map.push(l.pos,l.pos+u.length,de),d&&f<9&&(te=!0),l.pos+=u.length;else{de=document.createDocumentFragment();for(var ge=0;;){Z.lastIndex=ge;var Pe=Z.exec(u),_e=Pe?Pe.index-ge:u.length-ge;if(_e){var We=document.createTextNode(B.slice(ge,ge+_e));d&&f<9?de.appendChild(_("span",[We])):de.appendChild(We),l.map.push(l.pos,l.pos+_e,We),l.col+=_e,l.pos+=_e}if(!Pe)break;ge+=_e+1;var Xe=void 0;if(Pe[0]==" "){var it=l.cm.options.tabSize,ht=it-l.col%it;Xe=de.appendChild(_("span",Qe(ht),"cm-tab")),Xe.setAttribute("role","presentation"),Xe.setAttribute("cm-text"," "),l.col+=ht}else Pe[0]=="\r"||Pe[0]=="\n"?(Xe=de.appendChild(_("span",Pe[0]=="\r"?"␍":"","cm-invalidchar")),Xe.setAttribute("cm-text",Pe[0]),l.col+=1):(Xe=l.cm.options.specialCharPlaceholder(Pe[0]),Xe.setAttribute("cm-text",Pe[0]),d&&f<9?de.appendChild(_("span",[Xe])):de.appendChild(Xe),l.col+=1);l.map.push(l.pos,l.pos+1,Xe),l.pos++}}if(l.trailingSpace=B.charCodeAt(u.length-1)==32,y||x||k||te||T||L){var Ct=y||"";x&&(Ct+=x),k&&(Ct+=k);var pt=_("span",[de],Ct,T);if(L)for(var Rt in L)L.hasOwnProperty(Rt)&&Rt!="style"&&Rt!="class"&&pt.setAttribute(Rt,L[Rt]);return l.content.appendChild(pt)}l.content.appendChild(de)}}function kV(l,u){if(l.length>1&&!/ /.test(l))return l;for(var y=u,x="",k=0;k<l.length;k++){var T=l.charAt(k);T==" "&&y&&(k==l.length-1||l.charCodeAt(k+1)==32)&&(T=" "),x+=T,y=T==" "}return x}function CV(l,u){return function(y,x,k,T,L,B,Z){k=k?k+" cm-force-border":"cm-force-border";for(var te=y.pos,de=te+x.length;;){for(var ge=void 0,Pe=0;Pe<u.length&&(ge=u[Pe],!(ge.to>te&&ge.from<=te));Pe++);if(ge.to>=de)return l(y,x,k,T,L,B,Z);l(y,x.slice(0,ge.to-te),k,T,null,B,Z),T=null,x=x.slice(ge.to-te),te=ge.to}}}function x_(l,u,y,x){var k=!x&&y.widgetNode;k&&l.map.push(l.pos,l.pos+u,k),!x&&l.cm.display.input.needsContentAttribute&&(k||(k=l.content.appendChild(document.createElement("span"))),k.setAttribute("cm-marker",y.id)),k&&(l.cm.display.input.setUneditable(k),l.content.appendChild(k)),l.pos+=u,l.trailingSpace=!1}function SV(l,u,y){var x=l.markedSpans,k=l.text,T=0;if(!x){for(var L=1;L<y.length;L+=2)u.addToken(u,k.slice(T,T=y[L]),g_(y[L+1],u.cm.options));return}for(var B=k.length,Z=0,te=1,de="",ge,Pe,_e=0,We,Xe,it,ht,Ct;;){if(_e==Z){We=Xe=it=Pe="",Ct=null,ht=null,_e=1/0;for(var pt=[],Rt=void 0,tr=0;tr<x.length;++tr){var Qt=x[tr],yr=Qt.marker;if(yr.type=="bookmark"&&Qt.from==Z&&yr.widgetNode)pt.push(yr);else if(Qt.from<=Z&&(Qt.to==null||Qt.to>Z||yr.collapsed&&Qt.to==Z&&Qt.from==Z)){if(Qt.to!=null&&Qt.to!=Z&&_e>Qt.to&&(_e=Qt.to,Xe=""),yr.className&&(We+=" "+yr.className),yr.css&&(Pe=(Pe?Pe+";":"")+yr.css),yr.startStyle&&Qt.from==Z&&(it+=" "+yr.startStyle),yr.endStyle&&Qt.to==_e&&(Rt||(Rt=[])).push(yr.endStyle,Qt.to),yr.title&&((Ct||(Ct={})).title=yr.title),yr.attributes)for(var on in yr.attributes)(Ct||(Ct={}))[on]=yr.attributes[on];yr.collapsed&&(!ht||xk(ht.marker,yr)<0)&&(ht=Qt)}else Qt.from>Z&&_e>Qt.from&&(_e=Qt.from)}if(Rt)for(var as=0;as<Rt.length;as+=2)Rt[as+1]==_e&&(Xe+=" "+Rt[as]);if(!ht||ht.from==Z)for(var Cn=0;Cn<pt.length;++Cn)x_(u,0,pt[Cn]);if(ht&&(ht.from||0)==Z){if(x_(u,(ht.to==null?B+1:ht.to)-Z,ht.marker,ht.from==null),ht.to==null)return;ht.to==Z&&(ht=!1)}}if(Z>=B)break;for(var Oa=Math.min(B,_e);;){if(de){var ga=Z+de.length;if(!ht){var Bn=ga>Oa?de.slice(0,Oa-Z):de;u.addToken(u,Bn,ge?ge+We:We,it,Z+Bn.length==_e?Xe:"",Pe,Ct)}if(ga>=Oa){de=de.slice(Oa-Z),Z=Oa;break}Z=ga,it=""}de=k.slice(T,T=y[te++]),ge=g_(y[te++],u.cm.options)}}}function y_(l,u,y){this.line=u,this.rest=mV(u),this.size=this.rest?ne(Ze(this.rest))-y+1:1,this.node=this.text=null,this.hidden=jc(l,u)}function N1(l,u,y){for(var x=[],k,T=u;T<y;T=k){var L=new y_(l.doc,Et(l.doc,T),T);k=T+L.size,x.push(L)}return x}var Ff=null;function jV(l){Ff?Ff.ops.push(l):l.ownsGroup=Ff={ops:[l],delayedCallbacks:[]}}function EV(l){var u=l.delayedCallbacks,y=0;do{for(;y<u.length;y++)u[y].call(null);for(var x=0;x<l.ops.length;x++){var k=l.ops[x];if(k.cursorActivityHandlers)for(;k.cursorActivityCalled<k.cursorActivityHandlers.length;)k.cursorActivityHandlers[k.cursorActivityCalled++].call(null,k.cm)}}while(y<u.length)}function NV(l,u){var y=l.ownsGroup;if(y)try{EV(y)}finally{Ff=null,u(y)}}var zm=null;function rs(l,u){var y=lt(l,u);if(y.length){var x=Array.prototype.slice.call(arguments,2),k;Ff?k=Ff.delayedCallbacks:zm?k=zm:(k=zm=[],setTimeout(_V,0));for(var T=function(B){k.push(function(){return y[B].apply(null,x)})},L=0;L<y.length;++L)T(L)}}function _V(){var l=zm;zm=null;for(var u=0;u<l.length;++u)l[u]()}function b_(l,u,y,x){for(var k=0;k<u.changes.length;k++){var T=u.changes[k];T=="text"?MV(l,u):T=="gutter"?k_(l,u,y,x):T=="class"?kk(l,u):T=="widget"&&PV(l,u,x)}u.changes=null}function Fm(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),d&&f<8&&(l.node.style.zIndex=2)),l.node}function TV(l,u){var y=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),u.background)y?u.background.className=y:(u.background.parentNode.removeChild(u.background),u.background=null);else if(y){var x=Fm(u);u.background=x.insertBefore(_("div",null,y),x.firstChild),l.display.input.setUneditable(u.background)}}function w_(l,u){var y=l.display.externalMeasured;return y&&y.line==u.line?(l.display.externalMeasured=null,u.measure=y.measure,y.built):v_(l,u)}function MV(l,u){var y=u.text.className,x=w_(l,u);u.text==u.node&&(u.node=x.pre),u.text.parentNode.replaceChild(x.pre,u.text),u.text=x.pre,x.bgClass!=u.bgClass||x.textClass!=u.textClass?(u.bgClass=x.bgClass,u.textClass=x.textClass,kk(l,u)):y&&(u.text.className=y)}function kk(l,u){TV(l,u),u.line.wrapClass?Fm(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var y=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=y||""}function k_(l,u,y,x){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var k=Fm(u);u.gutterBackground=_("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(l.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),l.display.input.setUneditable(u.gutterBackground),k.insertBefore(u.gutterBackground,u.text)}var T=u.line.gutterMarkers;if(l.options.lineNumbers||T){var L=Fm(u),B=u.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(l.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(B.setAttribute("aria-hidden","true"),l.display.input.setUneditable(B),L.insertBefore(B,u.text),u.line.gutterClass&&(B.className+=" "+u.line.gutterClass),l.options.lineNumbers&&(!T||!T["CodeMirror-linenumbers"])&&(u.lineNumber=B.appendChild(_("div",rt(l.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+l.display.lineNumInnerWidth+"px"))),T)for(var Z=0;Z<l.display.gutterSpecs.length;++Z){var te=l.display.gutterSpecs[Z].className,de=T.hasOwnProperty(te)&&T[te];de&&B.appendChild(_("div",[de],"CodeMirror-gutter-elt","left: "+x.gutterLeft[te]+"px; width: "+x.gutterWidth[te]+"px"))}}}function PV(l,u,y){u.alignable&&(u.alignable=null);for(var x=H("CodeMirror-linewidget"),k=u.node.firstChild,T=void 0;k;k=T)T=k.nextSibling,x.test(k.className)&&u.node.removeChild(k);C_(l,u,y)}function DV(l,u,y,x){var k=w_(l,u);return u.text=u.node=k.pre,k.bgClass&&(u.bgClass=k.bgClass),k.textClass&&(u.textClass=k.textClass),kk(l,u),k_(l,u,y,x),C_(l,u,x),u.node}function C_(l,u,y){if(S_(l,u.line,u,y,!0),u.rest)for(var x=0;x<u.rest.length;x++)S_(l,u.rest[x],u,y,!1)}function S_(l,u,y,x,k){if(u.widgets)for(var T=Fm(y),L=0,B=u.widgets;L<B.length;++L){var Z=B[L],te=_("div",[Z.node],"CodeMirror-linewidget"+(Z.className?" "+Z.className:""));Z.handleMouseEvents||te.setAttribute("cm-ignore-events","true"),AV(Z,te,y,x),l.display.input.setUneditable(te),k&&Z.above?T.insertBefore(te,y.gutter||y.text):T.appendChild(te),rs(Z,"redraw")}}function AV(l,u,y,x){if(l.noHScroll){(y.alignable||(y.alignable=[])).push(u);var k=x.wrapperWidth;u.style.left=x.fixedPos+"px",l.coverGutter||(k-=x.gutterTotalWidth,u.style.paddingLeft=x.gutterTotalWidth+"px"),u.style.width=k+"px"}l.coverGutter&&(u.style.zIndex=5,u.style.position="relative",l.noHScroll||(u.style.marginLeft=-x.gutterTotalWidth+"px"))}function Hm(l){if(l.height!=null)return l.height;var u=l.doc.cm;if(!u)return 0;if(!U(document.body,l.node)){var y="position: relative;";l.coverGutter&&(y+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),l.noHScroll&&(y+="width: "+u.display.wrapper.clientWidth+"px;"),W(u.display.measure,_("div",[l.node],null,y))}return l.height=l.node.parentNode.offsetHeight}function _l(l,u){for(var y=Gt(u);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 _1(l){return l.lineSpace.offsetTop}function Ck(l){return l.mover.offsetHeight-l.lineSpace.offsetHeight}function j_(l){if(l.cachedPaddingH)return l.cachedPaddingH;var u=W(l.measure,_("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,x={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(l.cachedPaddingH=x),x}function Wi(l){return we-l.display.nativeBarWidth}function ed(l){return l.display.scroller.clientWidth-Wi(l)-l.display.barWidth}function Sk(l){return l.display.scroller.clientHeight-Wi(l)-l.display.barHeight}function RV(l,u,y){var x=l.options.lineWrapping,k=x&&ed(l);if(!u.measure.heights||x&&u.measure.width!=k){var T=u.measure.heights=[];if(x){u.measure.width=k;for(var L=u.text.firstChild.getClientRects(),B=0;B<L.length-1;B++){var Z=L[B],te=L[B+1];Math.abs(Z.bottom-te.bottom)>2&&T.push((Z.bottom+te.top)/2-y.top)}}T.push(y.bottom-y.top)}}function E_(l,u,y){if(l.line==u)return{map:l.measure.map,cache:l.measure.cache};if(l.rest){for(var x=0;x<l.rest.length;x++)if(l.rest[x]==u)return{map:l.measure.maps[x],cache:l.measure.caches[x]};for(var k=0;k<l.rest.length;k++)if(ne(l.rest[k])>y)return{map:l.measure.maps[k],cache:l.measure.caches[k],before:!0}}}function LV(l,u){u=li(u);var y=ne(u),x=l.display.externalMeasured=new y_(l.doc,u,y);x.lineN=y;var k=x.built=v_(l,x);return x.text=k.pre,W(l.display.lineMeasure,k.pre),x}function N_(l,u,y,x){return Vi(l,Hf(l,u),y,x)}function jk(l,u){if(u>=l.display.viewFrom&&u<l.display.viewTo)return l.display.view[nd(l,u)];var y=l.display.externalMeasured;if(y&&u>=y.lineN&&u<y.lineN+y.size)return y}function Hf(l,u){var y=ne(u),x=jk(l,y);x&&!x.text?x=null:x&&x.changes&&(b_(l,x,y,Mk(l)),l.curOp.forceUpdate=!0),x||(x=LV(l,u));var k=E_(x,u,y);return{line:u,view:x,rect:null,map:k.map,cache:k.cache,before:k.before,hasHeights:!1}}function Vi(l,u,y,x,k){u.before&&(y=-1);var T=y+(x||""),L;return u.cache.hasOwnProperty(T)?L=u.cache[T]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(RV(l,u.view,u.rect),u.hasHeights=!0),L=IV(l,u,y,x),L.bogus||(u.cache[T]=L)),{left:L.left,right:L.right,top:k?L.rtop:L.top,bottom:k?L.rbottom:L.bottom}}var __={left:0,right:0,top:0,bottom:0};function T_(l,u,y){for(var x,k,T,L,B,Z,te=0;te<l.length;te+=3)if(B=l[te],Z=l[te+1],u<B?(k=0,T=1,L="left"):u<Z?(k=u-B,T=k+1):(te==l.length-3||u==Z&&l[te+3]>u)&&(T=Z-B,k=T-1,u>=Z&&(L="right")),k!=null){if(x=l[te+2],B==Z&&y==(x.insertLeft?"left":"right")&&(L=y),y=="left"&&k==0)for(;te&&l[te-2]==l[te-3]&&l[te-1].insertLeft;)x=l[(te-=3)+2],L="left";if(y=="right"&&k==Z-B)for(;te<l.length-3&&l[te+3]==l[te+4]&&!l[te+5].insertLeft;)x=l[(te+=3)+2],L="right";break}return{node:x,start:k,end:T,collapse:L,coverStart:B,coverEnd:Z}}function OV(l,u){var y=__;if(u=="left")for(var x=0;x<l.length&&(y=l[x]).left==y.right;x++);else for(var k=l.length-1;k>=0&&(y=l[k]).left==y.right;k--);return y}function IV(l,u,y,x){var k=T_(u.map,y,x),T=k.node,L=k.start,B=k.end,Z=k.collapse,te;if(T.nodeType==3){for(var de=0;de<4;de++){for(;L&&et(u.line.text.charAt(k.coverStart+L));)--L;for(;k.coverStart+B<k.coverEnd&&et(u.line.text.charAt(k.coverStart+B));)++B;if(d&&f<9&&L==0&&B==k.coverEnd-k.coverStart?te=T.parentNode.getBoundingClientRect():te=OV(V(T,L,B).getClientRects(),x),te.left||te.right||L==0)break;B=L,L=L-1,Z="right"}d&&f<11&&(te=$V(l.display.measure,te))}else{L>0&&(Z=x="right");var ge;l.options.lineWrapping&&(ge=T.getClientRects()).length>1?te=ge[x=="right"?ge.length-1:0]:te=T.getBoundingClientRect()}if(d&&f<9&&!L&&(!te||!te.left&&!te.right)){var Pe=T.parentNode.getClientRects()[0];Pe?te={left:Pe.left,right:Pe.left+Uf(l.display),top:Pe.top,bottom:Pe.bottom}:te=__}for(var _e=te.top-u.rect.top,We=te.bottom-u.rect.top,Xe=(_e+We)/2,it=u.view.measure.heights,ht=0;ht<it.length-1&&!(Xe<it[ht]);ht++);var Ct=ht?it[ht-1]:0,pt=it[ht],Rt={left:(Z=="right"?te.right:te.left)-u.rect.left,right:(Z=="left"?te.left:te.right)-u.rect.left,top:Ct,bottom:pt};return!te.left&&!te.right&&(Rt.bogus=!0),l.options.singleCursorHeightPerLine||(Rt.rtop=_e,Rt.rbottom=We),Rt}function $V(l,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ot(l))return u;var y=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*y,right:u.right*y,top:u.top*x,bottom:u.bottom*x}}function M_(l){if(l.measure&&(l.measure.cache={},l.measure.heights=null,l.rest))for(var u=0;u<l.rest.length;u++)l.measure.caches[u]={}}function P_(l){l.display.externalMeasure=null,I(l.display.lineMeasure);for(var u=0;u<l.display.view.length;u++)M_(l.display.view[u])}function Bm(l){P_(l),l.display.cachedCharWidth=l.display.cachedTextHeight=l.display.cachedPaddingH=null,l.options.lineWrapping||(l.display.maxLineChanged=!0),l.display.lineNumChars=null}function D_(l){return g&&E?-(l.body.getBoundingClientRect().left-parseInt(getComputedStyle(l.body).marginLeft)):l.defaultView.pageXOffset||(l.documentElement||l.body).scrollLeft}function A_(l){return g&&E?-(l.body.getBoundingClientRect().top-parseInt(getComputedStyle(l.body).marginTop)):l.defaultView.pageYOffset||(l.documentElement||l.body).scrollTop}function Ek(l){var u=li(l),y=u.widgets,x=0;if(y)for(var k=0;k<y.length;++k)y[k].above&&(x+=Hm(y[k]));return x}function T1(l,u,y,x,k){if(!k){var T=Ek(u);y.top+=T,y.bottom+=T}if(x=="line")return y;x||(x="local");var L=Nl(u);if(x=="local"?L+=_1(l.display):L-=l.display.viewOffset,x=="page"||x=="window"){var B=l.display.lineSpace.getBoundingClientRect();L+=B.top+(x=="window"?0:A_(Y(l)));var Z=B.left+(x=="window"?0:D_(Y(l)));y.left+=Z,y.right+=Z}return y.top+=L,y.bottom+=L,y}function R_(l,u,y){if(y=="div")return u;var x=u.left,k=u.top;if(y=="page")x-=D_(Y(l)),k-=A_(Y(l));else if(y=="local"||!y){var T=l.display.sizer.getBoundingClientRect();x+=T.left,k+=T.top}var L=l.display.lineSpace.getBoundingClientRect();return{left:x-L.left,top:k-L.top}}function M1(l,u,y,x,k){return x||(x=Et(l.doc,u.line)),T1(l,x,N_(l,x,u.ch,k),y)}function ci(l,u,y,x,k,T){x=x||Et(l.doc,u.line),k||(k=Hf(l,x));function L(We,Xe){var it=Vi(l,k,We,Xe?"right":"left",T);return Xe?it.left=it.right:it.right=it.left,T1(l,x,it,y)}var B=Me(x,l.doc.direction),Z=u.ch,te=u.sticky;if(Z>=x.text.length?(Z=x.text.length,te="before"):Z<=0&&(Z=0,te="after"),!B)return L(te=="before"?Z-1:Z,te=="before");function de(We,Xe,it){var ht=B[Xe],Ct=ht.level==1;return L(it?We-1:We,Ct!=it)}var ge=Mt(B,Z,te),Pe=Sr,_e=de(Z,ge,te=="before");return Pe!=null&&(_e.other=de(Z,Pe,te!="before")),_e}function L_(l,u){var y=0;u=hr(l.doc,u),l.options.lineWrapping||(y=Uf(l.display)*u.ch);var x=Et(l.doc,u.line),k=Nl(x)+_1(l.display);return{left:y,right:y,top:k,bottom:k+x.height}}function Nk(l,u,y,x,k){var T=Oe(l,u,y);return T.xRel=k,x&&(T.outside=x),T}function _k(l,u,y){var x=l.doc;if(y+=l.display.viewOffset,y<0)return Nk(x.first,0,null,-1,-1);var k=fe(x,y),T=x.first+x.size-1;if(k>T)return Nk(x.first+x.size-1,Et(x,T).text.length,null,1,1);u<0&&(u=0);for(var L=Et(x,k);;){var B=zV(l,L,k,u,y),Z=hV(L,B.ch+(B.xRel>0||B.outside>0?1:0));if(!Z)return B;var te=Z.find(1);if(te.line==k)return te;L=Et(x,k=te.line)}}function O_(l,u,y,x){x-=Ek(u);var k=u.text.length,T=ar(function(L){return Vi(l,y,L-1).bottom<=x},k,0);return k=ar(function(L){return Vi(l,y,L).top>x},T,k),{begin:T,end:k}}function I_(l,u,y,x){y||(y=Hf(l,u));var k=T1(l,u,Vi(l,y,x),"line").top;return O_(l,u,y,k)}function Tk(l,u,y,x){return l.bottom<=y?!1:l.top>y?!0:(x?l.left:l.right)>u}function zV(l,u,y,x,k){k-=Nl(u);var T=Hf(l,u),L=Ek(u),B=0,Z=u.text.length,te=!0,de=Me(u,l.doc.direction);if(de){var ge=(l.options.lineWrapping?HV:FV)(l,u,y,T,de,x,k);te=ge.level!=1,B=te?ge.from:ge.to-1,Z=te?ge.to:ge.from-1}var Pe=null,_e=null,We=ar(function(tr){var Qt=Vi(l,T,tr);return Qt.top+=L,Qt.bottom+=L,Tk(Qt,x,k,!1)?(Qt.top<=k&&Qt.left<=x&&(Pe=tr,_e=Qt),!0):!1},B,Z),Xe,it,ht=!1;if(_e){var Ct=x-_e.left<_e.right-x,pt=Ct==te;We=Pe+(pt?0:1),it=pt?"after":"before",Xe=Ct?_e.left:_e.right}else{!te&&(We==Z||We==B)&&We++,it=We==0?"after":We==u.text.length?"before":Vi(l,T,We-(te?1:0)).bottom+L<=k==te?"after":"before";var Rt=ci(l,Oe(y,We,it),"line",u,T);Xe=Rt.left,ht=k<Rt.top?-1:k>=Rt.bottom?1:0}return We=cr(u.text,We,1),Nk(y,We,it,ht,x-Xe)}function FV(l,u,y,x,k,T,L){var B=ar(function(ge){var Pe=k[ge],_e=Pe.level!=1;return Tk(ci(l,Oe(y,_e?Pe.to:Pe.from,_e?"before":"after"),"line",u,x),T,L,!0)},0,k.length-1),Z=k[B];if(B>0){var te=Z.level!=1,de=ci(l,Oe(y,te?Z.from:Z.to,te?"after":"before"),"line",u,x);Tk(de,T,L,!0)&&de.top>L&&(Z=k[B-1])}return Z}function HV(l,u,y,x,k,T,L){var B=O_(l,u,x,L),Z=B.begin,te=B.end;/\s/.test(u.text.charAt(te-1))&&te--;for(var de=null,ge=null,Pe=0;Pe<k.length;Pe++){var _e=k[Pe];if(!(_e.from>=te||_e.to<=Z)){var We=_e.level!=1,Xe=Vi(l,x,We?Math.min(te,_e.to)-1:Math.max(Z,_e.from)).right,it=Xe<T?T-Xe+1e9:Xe-T;(!de||ge>it)&&(de=_e,ge=it)}}return de||(de=k[k.length-1]),de.from<Z&&(de={from:Z,to:de.to,level:de.level}),de.to>te&&(de={from:de.from,to:te,level:de.level}),de}var td;function Bf(l){if(l.cachedTextHeight!=null)return l.cachedTextHeight;if(td==null){td=_("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)td.appendChild(document.createTextNode("x")),td.appendChild(_("br"));td.appendChild(document.createTextNode("x"))}W(l.measure,td);var y=td.offsetHeight/50;return y>3&&(l.cachedTextHeight=y),I(l.measure),y||1}function Uf(l){if(l.cachedCharWidth!=null)return l.cachedCharWidth;var u=_("span","xxxxxxxxxx"),y=_("pre",[u],"CodeMirror-line-like");W(l.measure,y);var x=u.getBoundingClientRect(),k=(x.right-x.left)/10;return k>2&&(l.cachedCharWidth=k),k||10}function Mk(l){for(var u=l.display,y={},x={},k=u.gutters.clientLeft,T=u.gutters.firstChild,L=0;T;T=T.nextSibling,++L){var B=l.display.gutterSpecs[L].className;y[B]=T.offsetLeft+T.clientLeft+k,x[B]=T.clientWidth}return{fixedPos:Pk(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:y,gutterWidth:x,wrapperWidth:u.wrapper.clientWidth}}function Pk(l){return l.scroller.getBoundingClientRect().left-l.sizer.getBoundingClientRect().left}function $_(l){var u=Bf(l.display),y=l.options.lineWrapping,x=y&&Math.max(5,l.display.scroller.clientWidth/Uf(l.display)-3);return function(k){if(jc(l.doc,k))return 0;var T=0;if(k.widgets)for(var L=0;L<k.widgets.length;L++)k.widgets[L].height&&(T+=k.widgets[L].height);return y?T+(Math.ceil(k.text.length/x)||1)*u:T+u}}function Dk(l){var u=l.doc,y=$_(l);u.iter(function(x){var k=y(x);k!=x.height&&Dt(x,k)})}function rd(l,u,y,x){var k=l.display;if(!y&&Gt(u).getAttribute("cm-not-content")=="true")return null;var T,L,B=k.lineSpace.getBoundingClientRect();try{T=u.clientX-B.left,L=u.clientY-B.top}catch(ge){return null}var Z=_k(l,T,L),te;if(x&&Z.xRel>0&&(te=Et(l.doc,Z.line).text).length==Z.ch){var de=ue(te,te.length,l.options.tabSize)-te.length;Z=Oe(Z.line,Math.max(0,Math.round((T-j_(l.display).left)/Uf(l.display))-de))}return Z}function nd(l,u){if(u>=l.display.viewTo||(u-=l.display.viewFrom,u<0))return null;for(var y=l.display.view,x=0;x<y.length;x++)if(u-=y[x].size,u<0)return x}function pa(l,u,y,x){u==null&&(u=l.doc.first),y==null&&(y=l.doc.first+l.doc.size),x||(x=0);var k=l.display;if(x&&y<k.viewTo&&(k.updateLineNumbers==null||k.updateLineNumbers>u)&&(k.updateLineNumbers=u),l.curOp.viewChanged=!0,u>=k.viewTo)El&&yk(l.doc,u)<k.viewTo&&Nc(l);else if(y<=k.viewFrom)El&&m_(l.doc,y+x)>k.viewFrom?Nc(l):(k.viewFrom+=x,k.viewTo+=x);else if(u<=k.viewFrom&&y>=k.viewTo)Nc(l);else if(u<=k.viewFrom){var T=P1(l,y,y+x,1);T?(k.view=k.view.slice(T.index),k.viewFrom=T.lineN,k.viewTo+=x):Nc(l)}else if(y>=k.viewTo){var L=P1(l,u,u,-1);L?(k.view=k.view.slice(0,L.index),k.viewTo=L.lineN):Nc(l)}else{var B=P1(l,u,u,-1),Z=P1(l,y,y+x,1);B&&Z?(k.view=k.view.slice(0,B.index).concat(N1(l,B.lineN,Z.lineN)).concat(k.view.slice(Z.index)),k.viewTo+=x):Nc(l)}var te=k.externalMeasured;te&&(y<te.lineN?te.lineN+=x:u<te.lineN+te.size&&(k.externalMeasured=null))}function Ec(l,u,y){l.curOp.viewChanged=!0;var x=l.display,k=l.display.externalMeasured;if(k&&u>=k.lineN&&u<k.lineN+k.size&&(x.externalMeasured=null),!(u<x.viewFrom||u>=x.viewTo)){var T=x.view[nd(l,u)];if(T.node!=null){var L=T.changes||(T.changes=[]);he(L,y)==-1&&L.push(y)}}}function Nc(l){l.display.viewFrom=l.display.viewTo=l.doc.first,l.display.view=[],l.display.viewOffset=0}function P1(l,u,y,x){var k=nd(l,u),T,L=l.display.view;if(!El||y==l.doc.first+l.doc.size)return{index:k,lineN:y};for(var B=l.display.viewFrom,Z=0;Z<k;Z++)B+=L[Z].size;if(B!=u){if(x>0){if(k==L.length-1)return null;T=B+L[k].size-u,k++}else T=B-u;u+=T,y+=T}for(;yk(l.doc,y)!=y;){if(k==(x<0?0:L.length-1))return null;y+=x*L[k-(x<0?1:0)].size,k+=x}return{index:k,lineN:y}}function BV(l,u,y){var x=l.display,k=x.view;k.length==0||u>=x.viewTo||y<=x.viewFrom?(x.view=N1(l,u,y),x.viewFrom=u):(x.viewFrom>u?x.view=N1(l,u,x.viewFrom).concat(x.view):x.viewFrom<u&&(x.view=x.view.slice(nd(l,u))),x.viewFrom=u,x.viewTo<y?x.view=x.view.concat(N1(l,x.viewTo,y)):x.viewTo>y&&(x.view=x.view.slice(0,nd(l,y)))),x.viewTo=y}function z_(l){for(var u=l.display.view,y=0,x=0;x<u.length;x++){var k=u[x];!k.hidden&&(!k.node||k.changes)&&++y}return y}function Um(l){l.display.input.showSelection(l.display.input.prepareSelection())}function F_(l,u){u===void 0&&(u=!0);var y=l.doc,x={},k=x.cursors=document.createDocumentFragment(),T=x.selection=document.createDocumentFragment(),L=l.options.$customCursor;L&&(u=!0);for(var B=0;B<y.sel.ranges.length;B++)if(!(!u&&B==y.sel.primIndex)){var Z=y.sel.ranges[B];if(!(Z.from().line>=l.display.viewTo||Z.to().line<l.display.viewFrom)){var te=Z.empty();if(L){var de=L(l,Z);de&&Ak(l,de,k)}else(te||l.options.showCursorWhenSelecting)&&Ak(l,Z.head,k);te||UV(l,Z,T)}}return x}function Ak(l,u,y){var x=ci(l,u,"div",null,null,!l.options.singleCursorHeightPerLine),k=y.appendChild(_("div"," ","CodeMirror-cursor"));if(k.style.left=x.left+"px",k.style.top=x.top+"px",k.style.height=Math.max(0,x.bottom-x.top)*l.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(l.getWrapperElement().className)){var T=M1(l,u,"div",null,null),L=T.right-T.left;k.style.width=(L>0?L:l.defaultCharWidth())+"px"}if(x.other){var B=y.appendChild(_("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));B.style.display="",B.style.left=x.other.left+"px",B.style.top=x.other.top+"px",B.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function D1(l,u){return l.top-u.top||l.left-u.left}function UV(l,u,y){var x=l.display,k=l.doc,T=document.createDocumentFragment(),L=j_(l.display),B=L.left,Z=Math.max(x.sizerWidth,ed(l)-x.sizer.offsetLeft)-L.right,te=k.direction=="ltr";function de(pt,Rt,tr,Qt){Rt<0&&(Rt=0),Rt=Math.round(Rt),Qt=Math.round(Qt),T.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+pt+"px;\n top: "+Rt+"px; width: "+(tr==null?Z-pt:tr)+"px;\n height: "+(Qt-Rt)+"px"))}function ge(pt,Rt,tr){var Qt=Et(k,pt),yr=Qt.text.length,on,as;function Cn(Bn,va){return M1(l,Oe(pt,Bn),"div",Qt,va)}function Oa(Bn,va,bs){var Zn=I_(l,Qt,null,Bn),Un=va=="ltr"==(bs=="after")?"left":"right",_n=bs=="after"?Zn.begin:Zn.end-(/\s/.test(Qt.text.charAt(Zn.end-1))?2:1);return Cn(_n,Un)[Un]}var ga=Me(Qt,k.direction);return ur(ga,Rt||0,tr==null?yr:tr,function(Bn,va,bs,Zn){var Un=bs=="ltr",_n=Cn(Bn,Un?"left":"right"),xa=Cn(va-1,Un?"right":"left"),rh=Rt==null&&Bn==0,Ac=tr==null&&va==yr,As=Zn==0,qi=!ga||Zn==ga.length-1;if(xa.top-_n.top<=3){var os=(te?rh:Ac)&&As,oC=(te?Ac:rh)&&qi,Pl=os?B:(Un?_n:xa).left,ld=oC?Z:(Un?xa:_n).right;de(Pl,_n.top,ld-Pl,_n.bottom)}else{var cd,Gs,nh,iC;Un?(cd=te&&rh&&As?B:_n.left,Gs=te?Z:Oa(Bn,bs,"before"),nh=te?B:Oa(va,bs,"after"),iC=te&&Ac&&qi?Z:xa.right):(cd=te?Oa(Bn,bs,"before"):B,Gs=!te&&rh&&As?Z:_n.right,nh=!te&&Ac&&qi?B:xa.left,iC=te?Oa(va,bs,"after"):Z),de(cd,_n.top,Gs-cd,_n.bottom),_n.bottom<xa.top&&de(B,_n.bottom,null,xa.top),de(nh,xa.top,iC-nh,xa.bottom)}(!on||D1(_n,on)<0)&&(on=_n),D1(xa,on)<0&&(on=xa),(!as||D1(_n,as)<0)&&(as=_n),D1(xa,as)<0&&(as=xa)}),{start:on,end:as}}var Pe=u.from(),_e=u.to();if(Pe.line==_e.line)ge(Pe.line,Pe.ch,_e.ch);else{var We=Et(k,Pe.line),Xe=Et(k,_e.line),it=li(We)==li(Xe),ht=ge(Pe.line,Pe.ch,it?We.text.length+1:null).end,Ct=ge(_e.line,it?0:null,_e.ch).start;it&&(ht.top<Ct.top-2?(de(ht.right,ht.top,null,ht.bottom),de(B,Ct.top,Ct.left,Ct.bottom)):de(ht.right,ht.top,Ct.left-ht.right,ht.bottom)),ht.bottom<Ct.top&&de(B,ht.bottom,null,Ct.top)}y.appendChild(T)}function Rk(l){if(l.state.focused){var u=l.display;clearInterval(u.blinker);var y=!0;u.cursorDiv.style.visibility="",l.options.cursorBlinkRate>0?u.blinker=setInterval(function(){l.hasFocus()||Wf(l),u.cursorDiv.style.visibility=(y=!y)?"":"hidden"},l.options.cursorBlinkRate):l.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function H_(l){l.hasFocus()||(l.display.input.focus(),l.state.focused||Ok(l))}function Lk(l){l.state.delayingBlurEvent=!0,setTimeout(function(){l.state.delayingBlurEvent&&(l.state.delayingBlurEvent=!1,l.state.focused&&Wf(l))},100)}function Ok(l,u){l.state.delayingBlurEvent&&!l.state.draggingText&&(l.state.delayingBlurEvent=!1),l.options.readOnly!="nocursor"&&(l.state.focused||(be(l,"focus",l,u),l.state.focused=!0,G(l.display.wrapper,"CodeMirror-focused"),!l.curOp&&l.display.selForContextMenu!=l.doc.sel&&(l.display.input.reset(),h&&setTimeout(function(){return l.display.input.reset(!0)},20)),l.display.input.receivedFocus()),Rk(l))}function Wf(l,u){l.state.delayingBlurEvent||(l.state.focused&&(be(l,"blur",l,u),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 A1(l){for(var u=l.display,y=u.lineDiv.offsetTop,x=Math.max(0,u.scroller.getBoundingClientRect().top),k=u.lineDiv.getBoundingClientRect().top,T=0,L=0;L<u.view.length;L++){var B=u.view[L],Z=l.options.lineWrapping,te=void 0,de=0;if(!B.hidden){if(k+=B.line.height,d&&f<8){var ge=B.node.offsetTop+B.node.offsetHeight;te=ge-y,y=ge}else{var Pe=B.node.getBoundingClientRect();te=Pe.bottom-Pe.top,!Z&&B.text.firstChild&&(de=B.text.firstChild.getBoundingClientRect().right-Pe.left-1)}var _e=B.line.height-te;if((_e>.005||_e<-.005)&&(k<x&&(T-=_e),Dt(B.line,te),B_(B.line),B.rest))for(var We=0;We<B.rest.length;We++)B_(B.rest[We]);if(de>l.display.sizerWidth){var Xe=Math.ceil(de/Uf(l.display));Xe>l.display.maxLineLength&&(l.display.maxLineLength=Xe,l.display.maxLine=B.line,l.display.maxLineChanged=!0)}}}Math.abs(T)>2&&(u.scroller.scrollTop+=T)}function B_(l){if(l.widgets)for(var u=0;u<l.widgets.length;++u){var y=l.widgets[u],x=y.node.parentNode;x&&(y.height=x.offsetHeight)}}function R1(l,u,y){var x=y&&y.top!=null?Math.max(0,y.top):l.scroller.scrollTop;x=Math.floor(x-_1(l));var k=y&&y.bottom!=null?y.bottom:x+l.wrapper.clientHeight,T=fe(u,x),L=fe(u,k);if(y&&y.ensure){var B=y.ensure.from.line,Z=y.ensure.to.line;B<T?(T=B,L=fe(u,Nl(Et(u,B))+l.wrapper.clientHeight)):Math.min(Z,u.lastLine())>=L&&(T=fe(u,Nl(Et(u,Z))-l.wrapper.clientHeight),L=Z)}return{from:T,to:Math.max(L,T+1)}}function WV(l,u){if(!De(l,"scrollCursorIntoView")){var y=l.display,x=y.sizer.getBoundingClientRect(),k=null,T=y.wrapper.ownerDocument;if(u.top+x.top<0?k=!0:u.bottom+x.top>(T.defaultView.innerHeight||T.documentElement.clientHeight)&&(k=!1),k!=null&&!C){var L=_("div","",null,"position: absolute;\n top: "+(u.top-y.viewOffset-_1(l.display))+"px;\n height: "+(u.bottom-u.top+Wi(l)+y.barHeight)+"px;\n left: "+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");l.display.lineSpace.appendChild(L),L.scrollIntoView(k),l.display.lineSpace.removeChild(L)}}}function VV(l,u,y,x){x==null&&(x=0);var k;!l.options.lineWrapping&&u==y&&(y=u.sticky=="before"?Oe(u.line,u.ch+1,"before"):u,u=u.ch?Oe(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var T=0;T<5;T++){var L=!1,B=ci(l,u),Z=!y||y==u?B:ci(l,y);k={left:Math.min(B.left,Z.left),top:Math.min(B.top,Z.top)-x,right:Math.max(B.left,Z.left),bottom:Math.max(B.bottom,Z.bottom)+x};var te=Ik(l,k),de=l.doc.scrollTop,ge=l.doc.scrollLeft;if(te.scrollTop!=null&&(Vm(l,te.scrollTop),Math.abs(l.doc.scrollTop-de)>1&&(L=!0)),te.scrollLeft!=null&&(sd(l,te.scrollLeft),Math.abs(l.doc.scrollLeft-ge)>1&&(L=!0)),!L)break}return k}function qV(l,u){var y=Ik(l,u);y.scrollTop!=null&&Vm(l,y.scrollTop),y.scrollLeft!=null&&sd(l,y.scrollLeft)}function Ik(l,u){var y=l.display,x=Bf(l.display);u.top<0&&(u.top=0);var k=l.curOp&&l.curOp.scrollTop!=null?l.curOp.scrollTop:y.scroller.scrollTop,T=Sk(l),L={};u.bottom-u.top>T&&(u.bottom=u.top+T);var B=l.doc.height+Ck(y),Z=u.top<x,te=u.bottom>B-x;if(u.top<k)L.scrollTop=Z?0:u.top;else if(u.bottom>k+T){var de=Math.min(u.top,(te?B:u.bottom)-T);de!=k&&(L.scrollTop=de)}var ge=l.options.fixedGutter?0:y.gutters.offsetWidth,Pe=l.curOp&&l.curOp.scrollLeft!=null?l.curOp.scrollLeft:y.scroller.scrollLeft-ge,_e=ed(l)-y.gutters.offsetWidth,We=u.right-u.left>_e;return We&&(u.right=u.left+_e),u.left<10?L.scrollLeft=0:u.left<Pe?L.scrollLeft=Math.max(0,u.left+ge-(We?0:10)):u.right>_e+Pe-3&&(L.scrollLeft=u.right+(We?0:10)-_e),L}function $k(l,u){u!=null&&(L1(l),l.curOp.scrollTop=(l.curOp.scrollTop==null?l.doc.scrollTop:l.curOp.scrollTop)+u)}function Vf(l){L1(l);var u=l.getCursor();l.curOp.scrollToPos={from:u,to:u,margin:l.options.cursorScrollMargin}}function Wm(l,u,y){(u!=null||y!=null)&&L1(l),u!=null&&(l.curOp.scrollLeft=u),y!=null&&(l.curOp.scrollTop=y)}function KV(l,u){L1(l),l.curOp.scrollToPos=u}function L1(l){var u=l.curOp.scrollToPos;if(u){l.curOp.scrollToPos=null;var y=L_(l,u.from),x=L_(l,u.to);U_(l,y,x,u.margin)}}function U_(l,u,y,x){var k=Ik(l,{left:Math.min(u.left,y.left),top:Math.min(u.top,y.top)-x,right:Math.max(u.right,y.right),bottom:Math.max(u.bottom,y.bottom)+x});Wm(l,k.scrollLeft,k.scrollTop)}function Vm(l,u){Math.abs(l.doc.scrollTop-u)<2||(a||Fk(l,{top:u}),W_(l,u,!0),a&&Fk(l),Gm(l,100))}function W_(l,u,y){u=Math.max(0,Math.min(l.display.scroller.scrollHeight-l.display.scroller.clientHeight,u)),!(l.display.scroller.scrollTop==u&&!y)&&(l.doc.scrollTop=u,l.display.scrollbars.setScrollTop(u),l.display.scroller.scrollTop!=u&&(l.display.scroller.scrollTop=u))}function sd(l,u,y,x){u=Math.max(0,Math.min(u,l.display.scroller.scrollWidth-l.display.scroller.clientWidth)),!((y?u==l.doc.scrollLeft:Math.abs(l.doc.scrollLeft-u)<2)&&!x)&&(l.doc.scrollLeft=u,Y_(l),l.display.scroller.scrollLeft!=u&&(l.display.scroller.scrollLeft=u),l.display.scrollbars.setScrollLeft(u))}function qm(l){var u=l.display,y=u.gutters.offsetWidth,x=Math.round(l.doc.height+Ck(l.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:l.options.fixedGutter?y:0,docHeight:x,scrollHeight:x+Wi(l)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:y}}var ad=function(l,u,y){this.cm=y;var x=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),k=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=k.tabIndex=-1,l(x),l(k),Te(x,"scroll",function(){x.clientHeight&&u(x.scrollTop,"vertical")}),Te(k,"scroll",function(){k.clientWidth&&u(k.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ad.prototype.update=function(l){var u=l.scrollWidth>l.clientWidth+1,y=l.scrollHeight>l.clientHeight+1,x=l.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=u?x+"px":"0";var k=l.viewHeight-(u?x:0);this.vert.firstChild.style.height=Math.max(0,l.scrollHeight-l.clientHeight+k)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=y?x+"px":"0",this.horiz.style.left=l.barLeft+"px";var T=l.viewWidth-l.barLeft-(y?x:0);this.horiz.firstChild.style.width=Math.max(0,l.scrollWidth-l.clientWidth+T)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&l.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?x:0,bottom:u?x:0}},ad.prototype.setScrollLeft=function(l){this.horiz.scrollLeft!=l&&(this.horiz.scrollLeft=l),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ad.prototype.setScrollTop=function(l){this.vert.scrollTop!=l&&(this.vert.scrollTop=l),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ad.prototype.zeroWidthHack=function(){var l=M&&!w?"12px":"18px";this.horiz.style.height=this.vert.style.width=l,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ce,this.disableVert=new ce},ad.prototype.enableZeroWidthBar=function(l,u,y){l.style.visibility="";function x(){var k=l.getBoundingClientRect(),T=y=="vert"?document.elementFromPoint(k.right-1,(k.top+k.bottom)/2):document.elementFromPoint((k.right+k.left)/2,k.bottom-1);T!=l?l.style.visibility="hidden":u.set(1e3,x)}u.set(1e3,x)},ad.prototype.clear=function(){var l=this.horiz.parentNode;l.removeChild(this.horiz),l.removeChild(this.vert)};var Km=function(){};Km.prototype.update=function(){return{bottom:0,right:0}},Km.prototype.setScrollLeft=function(){},Km.prototype.setScrollTop=function(){},Km.prototype.clear=function(){};function qf(l,u){u||(u=qm(l));var y=l.display.barWidth,x=l.display.barHeight;V_(l,u);for(var k=0;k<4&&y!=l.display.barWidth||x!=l.display.barHeight;k++)y!=l.display.barWidth&&l.options.lineWrapping&&A1(l),V_(l,qm(l)),y=l.display.barWidth,x=l.display.barHeight}function V_(l,u){var y=l.display,x=y.scrollbars.update(u);y.sizer.style.paddingRight=(y.barWidth=x.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=x.bottom)+"px",y.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=x.bottom+"px",y.scrollbarFiller.style.width=x.right+"px"):y.scrollbarFiller.style.display="",x.bottom&&l.options.coverGutterNextToScrollbar&&l.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=x.bottom+"px",y.gutterFiller.style.width=u.gutterWidth+"px"):y.gutterFiller.style.display=""}var q_={native:ad,null:Km};function K_(l){l.display.scrollbars&&(l.display.scrollbars.clear(),l.display.scrollbars.addClass&&z(l.display.wrapper,l.display.scrollbars.addClass)),l.display.scrollbars=new q_[l.options.scrollbarStyle](function(u){l.display.wrapper.insertBefore(u,l.display.scrollbarFiller),Te(u,"mousedown",function(){l.state.focused&&setTimeout(function(){return l.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,y){y=="horizontal"?sd(l,u):Vm(l,u)},l),l.display.scrollbars.addClass&&G(l.display.wrapper,l.display.scrollbars.addClass)}var GV=0;function od(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:++GV,markArrays:null},jV(l.curOp)}function id(l){var u=l.curOp;u&&NV(u,function(y){for(var x=0;x<y.ops.length;x++)y.ops[x].cm.curOp=null;YV(y)})}function YV(l){for(var u=l.ops,y=0;y<u.length;y++)ZV(u[y]);for(var x=0;x<u.length;x++)XV(u[x]);for(var k=0;k<u.length;k++)QV(u[k]);for(var T=0;T<u.length;T++)JV(u[T]);for(var L=0;L<u.length;L++)eq(u[L])}function ZV(l){var u=l.cm,y=u.display;rq(u),l.updateMaxLine&&wk(u),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&&u.options.lineWrapping,l.update=l.mustUpdate&&new O1(u,l.mustUpdate&&{top:l.scrollTop,ensure:l.scrollToPos},l.forceUpdate)}function XV(l){l.updatedDisplay=l.mustUpdate&&zk(l.cm,l.update)}function QV(l){var u=l.cm,y=u.display;l.updatedDisplay&&A1(u),l.barMeasure=qm(u),y.maxLineChanged&&!u.options.lineWrapping&&(l.adjustWidthTo=N_(u,y.maxLine,y.maxLine.text.length).left+3,u.display.sizerWidth=l.adjustWidthTo,l.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+l.adjustWidthTo+Wi(u)+u.display.barWidth),l.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+l.adjustWidthTo-ed(u))),(l.updatedDisplay||l.selectionChanged)&&(l.preparedSelection=y.input.prepareSelection())}function JV(l){var u=l.cm;l.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=l.adjustWidthTo+"px",l.maxScrollLeft<u.doc.scrollLeft&&sd(u,Math.min(u.display.scroller.scrollLeft,l.maxScrollLeft),!0),u.display.maxLineChanged=!1);var y=l.focus&&l.focus==X(se(u));l.preparedSelection&&u.display.input.showSelection(l.preparedSelection,y),(l.updatedDisplay||l.startHeight!=u.doc.height)&&qf(u,l.barMeasure),l.updatedDisplay&&Bk(u,l.barMeasure),l.selectionChanged&&Rk(u),u.state.focused&&l.updateInput&&u.display.input.reset(l.typing),y&&H_(l.cm)}function eq(l){var u=l.cm,y=u.display,x=u.doc;if(l.updatedDisplay&&G_(u,l.update),y.wheelStartX!=null&&(l.scrollTop!=null||l.scrollLeft!=null||l.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),l.scrollTop!=null&&W_(u,l.scrollTop,l.forceScroll),l.scrollLeft!=null&&sd(u,l.scrollLeft,!0,!0),l.scrollToPos){var k=VV(u,hr(x,l.scrollToPos.from),hr(x,l.scrollToPos.to),l.scrollToPos.margin);WV(u,k)}var T=l.maybeHiddenMarkers,L=l.maybeUnhiddenMarkers;if(T)for(var B=0;B<T.length;++B)T[B].lines.length||be(T[B],"hide");if(L)for(var Z=0;Z<L.length;++Z)L[Z].lines.length&&be(L[Z],"unhide");y.wrapper.offsetHeight&&(x.scrollTop=u.display.scroller.scrollTop),l.changeObjs&&be(u,"changes",u,l.changeObjs),l.update&&l.update.finish()}function La(l,u){if(l.curOp)return u();od(l);try{return u()}finally{id(l)}}function ns(l,u){return function(){if(l.curOp)return u.apply(l,arguments);od(l);try{return u.apply(l,arguments)}finally{id(l)}}}function Ks(l){return function(){if(this.curOp)return l.apply(this,arguments);od(this);try{return l.apply(this,arguments)}finally{id(this)}}}function ss(l){return function(){var u=this.cm;if(!u||u.curOp)return l.apply(this,arguments);od(u);try{return l.apply(this,arguments)}finally{id(u)}}}function Gm(l,u){l.doc.highlightFrontier<l.display.viewTo&&l.state.highlight.set(u,oe(tq,l))}function tq(l){var u=l.doc;if(!(u.highlightFrontier>=l.display.viewTo)){var y=+new Date+l.options.workTime,x=Im(l,u.highlightFrontier),k=[];u.iter(x.line,Math.min(u.first+u.size,l.display.viewTo+500),function(T){if(x.line>=l.display.viewFrom){var L=T.styles,B=T.text.length>l.options.maxHighlightLength?Xr(u.mode,x.state):null,Z=t_(l,T,x,!0);B&&(x.state=B),T.styles=Z.styles;var te=T.styleClasses,de=Z.classes;de?T.styleClasses=de:te&&(T.styleClasses=null);for(var ge=!L||L.length!=T.styles.length||te!=de&&(!te||!de||te.bgClass!=de.bgClass||te.textClass!=de.textClass),Pe=0;!ge&&Pe<L.length;++Pe)ge=L[Pe]!=T.styles[Pe];ge&&k.push(x.line),T.stateAfter=x.save(),x.nextLine()}else T.text.length<=l.options.maxHighlightLength&&mk(l,T.text,x),T.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>y)return Gm(l,l.options.workDelay),!0}),u.highlightFrontier=x.line,u.modeFrontier=Math.max(u.modeFrontier,x.line),k.length&&La(l,function(){for(var T=0;T<k.length;T++)Ec(l,k[T],"text")})}}var O1=function(l,u,y){var x=l.display;this.viewport=u,this.visible=R1(x,l.doc,u),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=ed(l),this.force=y,this.dims=Mk(l),this.events=[]};O1.prototype.signal=function(l,u){Je(l,u)&&this.events.push(arguments)},O1.prototype.finish=function(){for(var l=0;l<this.events.length;l++)be.apply(null,this.events[l])};function rq(l){var u=l.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=Wi(l)+"px",u.sizer.style.marginBottom=-u.nativeBarWidth+"px",u.sizer.style.borderRightWidth=Wi(l)+"px",u.scrollbarsClipped=!0)}function nq(l){if(l.hasFocus())return null;var u=X(se(l));if(!u||!U(l.display.lineDiv,u))return null;var y={activeElt:u};if(window.getSelection){var x=ae(l).getSelection();x.anchorNode&&x.extend&&U(l.display.lineDiv,x.anchorNode)&&(y.anchorNode=x.anchorNode,y.anchorOffset=x.anchorOffset,y.focusNode=x.focusNode,y.focusOffset=x.focusOffset)}return y}function sq(l){if(!(!l||!l.activeElt||l.activeElt==X(ee(l.activeElt)))&&(l.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(l.activeElt.nodeName)&&l.anchorNode&&U(document.body,l.anchorNode)&&U(document.body,l.focusNode))){var u=l.activeElt.ownerDocument,y=u.defaultView.getSelection(),x=u.createRange();x.setEnd(l.anchorNode,l.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(l.focusNode,l.focusOffset)}}function zk(l,u){var y=l.display,x=l.doc;if(u.editorIsHidden)return Nc(l),!1;if(!u.force&&u.visible.from>=y.viewFrom&&u.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&z_(l)==0)return!1;Z_(l)&&(Nc(l),u.dims=Mk(l));var k=x.first+x.size,T=Math.max(u.visible.from-l.options.viewportMargin,x.first),L=Math.min(k,u.visible.to+l.options.viewportMargin);y.viewFrom<T&&T-y.viewFrom<20&&(T=Math.max(x.first,y.viewFrom)),y.viewTo>L&&y.viewTo-L<20&&(L=Math.min(k,y.viewTo)),El&&(T=yk(l.doc,T),L=m_(l.doc,L));var B=T!=y.viewFrom||L!=y.viewTo||y.lastWrapHeight!=u.wrapperHeight||y.lastWrapWidth!=u.wrapperWidth;BV(l,T,L),y.viewOffset=Nl(Et(l.doc,y.viewFrom)),l.display.mover.style.top=y.viewOffset+"px";var Z=z_(l);if(!B&&Z==0&&!u.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var te=nq(l);return Z>4&&(y.lineDiv.style.display="none"),aq(l,y.updateLineNumbers,u.dims),Z>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,sq(te),I(y.cursorDiv),I(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,B&&(y.lastWrapHeight=u.wrapperHeight,y.lastWrapWidth=u.wrapperWidth,Gm(l,400)),y.updateLineNumbers=null,!0}function G_(l,u){for(var y=u.viewport,x=!0;;x=!1){if(!x||!l.options.lineWrapping||u.oldDisplayWidth==ed(l)){if(y&&y.top!=null&&(y={top:Math.min(l.doc.height+Ck(l.display)-Sk(l),y.top)}),u.visible=R1(l.display,l.doc,y),u.visible.from>=l.display.viewFrom&&u.visible.to<=l.display.viewTo)break}else x&&(u.visible=R1(l.display,l.doc,y));if(!zk(l,u))break;A1(l);var k=qm(l);Um(l),qf(l,k),Bk(l,k),u.force=!1}u.signal(l,"update",l),(l.display.viewFrom!=l.display.reportedViewFrom||l.display.viewTo!=l.display.reportedViewTo)&&(u.signal(l,"viewportChange",l,l.display.viewFrom,l.display.viewTo),l.display.reportedViewFrom=l.display.viewFrom,l.display.reportedViewTo=l.display.viewTo)}function Fk(l,u){var y=new O1(l,u);if(zk(l,y)){A1(l),G_(l,y);var x=qm(l);Um(l),qf(l,x),Bk(l,x),y.finish()}}function aq(l,u,y){var x=l.display,k=l.options.lineNumbers,T=x.lineDiv,L=T.firstChild;function B(We){var Xe=We.nextSibling;return h&&M&&l.display.currentWheelTarget==We?We.style.display="none":We.parentNode.removeChild(We),Xe}for(var Z=x.view,te=x.viewFrom,de=0;de<Z.length;de++){var ge=Z[de];if(!ge.hidden)if(!ge.node||ge.node.parentNode!=T){var Pe=DV(l,ge,te,y);T.insertBefore(Pe,L)}else{for(;L!=ge.node;)L=B(L);var _e=k&&u!=null&&u<=te&&ge.lineNumber;ge.changes&&(he(ge.changes,"gutter")>-1&&(_e=!1),b_(l,ge,te,y)),_e&&(I(ge.lineNumber),ge.lineNumber.appendChild(document.createTextNode(rt(l.options,te)))),L=ge.node.nextSibling}te+=ge.size}for(;L;)L=B(L)}function Hk(l){var u=l.gutters.offsetWidth;l.sizer.style.marginLeft=u+"px",rs(l,"gutterChanged",l)}function Bk(l,u){l.display.sizer.style.minHeight=u.docHeight+"px",l.display.heightForcer.style.top=u.docHeight+"px",l.display.gutters.style.height=u.docHeight+l.display.barHeight+Wi(l)+"px"}function Y_(l){var u=l.display,y=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!l.options.fixedGutter))){for(var x=Pk(u)-u.scroller.scrollLeft+l.doc.scrollLeft,k=u.gutters.offsetWidth,T=x+"px",L=0;L<y.length;L++)if(!y[L].hidden){l.options.fixedGutter&&(y[L].gutter&&(y[L].gutter.style.left=T),y[L].gutterBackground&&(y[L].gutterBackground.style.left=T));var B=y[L].alignable;if(B)for(var Z=0;Z<B.length;Z++)B[Z].style.left=T}l.options.fixedGutter&&(u.gutters.style.left=x+k+"px")}}function Z_(l){if(!l.options.lineNumbers)return!1;var u=l.doc,y=rt(l.options,u.first+u.size-1),x=l.display;if(y.length!=x.lineNumChars){var k=x.measure.appendChild(_("div",[_("div",y)],"CodeMirror-linenumber CodeMirror-gutter-elt")),T=k.firstChild.offsetWidth,L=k.offsetWidth-T;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(T,x.lineGutter.offsetWidth-L)+1,x.lineNumWidth=x.lineNumInnerWidth+L,x.lineNumChars=x.lineNumInnerWidth?y.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",Hk(l.display),!0}return!1}function Uk(l,u){for(var y=[],x=!1,k=0;k<l.length;k++){var T=l[k],L=null;if(typeof T!="string"&&(L=T.style,T=T.className),T=="CodeMirror-linenumbers")if(u)x=!0;else continue;y.push({className:T,style:L})}return u&&!x&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function X_(l){var u=l.gutters,y=l.gutterSpecs;I(u),l.lineGutter=null;for(var x=0;x<y.length;++x){var k=y[x],T=k.className,L=k.style,B=u.appendChild(_("div",null,"CodeMirror-gutter "+T));L&&(B.style.cssText=L),T=="CodeMirror-linenumbers"&&(l.lineGutter=B,B.style.width=(l.lineNumWidth||1)+"px")}u.style.display=y.length?"":"none",Hk(l)}function Ym(l){X_(l.display),pa(l),Y_(l)}function oq(l,u,y,x){var k=this;this.input=y,k.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),k.scrollbarFiller.setAttribute("cm-not-content","true"),k.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),k.gutterFiller.setAttribute("cm-not-content","true"),k.lineDiv=K("div",null,"CodeMirror-code"),k.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),k.cursorDiv=_("div",null,"CodeMirror-cursors"),k.measure=_("div",null,"CodeMirror-measure"),k.lineMeasure=_("div",null,"CodeMirror-measure"),k.lineSpace=K("div",[k.measure,k.lineMeasure,k.selectionDiv,k.cursorDiv,k.lineDiv],null,"position: relative; outline: none");var T=K("div",[k.lineSpace],"CodeMirror-lines");k.mover=_("div",[T],null,"position: relative"),k.sizer=_("div",[k.mover],"CodeMirror-sizer"),k.sizerWidth=null,k.heightForcer=_("div",null,null,"position: absolute; height: "+we+"px; width: 1px;"),k.gutters=_("div",null,"CodeMirror-gutters"),k.lineGutter=null,k.scroller=_("div",[k.sizer,k.heightForcer,k.gutters],"CodeMirror-scroll"),k.scroller.setAttribute("tabIndex","-1"),k.wrapper=_("div",[k.scrollbarFiller,k.gutterFiller,k.scroller],"CodeMirror"),g&&S>=105&&(k.wrapper.style.clipPath="inset(0px)"),k.wrapper.setAttribute("translate","no"),d&&f<8&&(k.gutters.style.zIndex=-1,k.scroller.style.paddingRight=0),!h&&!(a&&N)&&(k.scroller.draggable=!0),l&&(l.appendChild?l.appendChild(k.wrapper):l(k.wrapper)),k.viewFrom=k.viewTo=u.first,k.reportedViewFrom=k.reportedViewTo=u.first,k.view=[],k.renderedView=null,k.externalMeasured=null,k.viewOffset=0,k.lastWrapHeight=k.lastWrapWidth=0,k.updateLineNumbers=null,k.nativeBarWidth=k.barHeight=k.barWidth=0,k.scrollbarsClipped=!1,k.lineNumWidth=k.lineNumInnerWidth=k.lineNumChars=null,k.alignWidgets=!1,k.cachedCharWidth=k.cachedTextHeight=k.cachedPaddingH=null,k.maxLine=null,k.maxLineLength=0,k.maxLineChanged=!1,k.wheelDX=k.wheelDY=k.wheelStartX=k.wheelStartY=null,k.shift=!1,k.selForContextMenu=null,k.activeTouch=null,k.gutterSpecs=Uk(x.gutters,x.lineNumbers),X_(k),y.init(k)}var I1=0,Tl=null;d?Tl=-.53:a?Tl=15:g?Tl=-.7:v&&(Tl=-1/3);function Q_(l){var u=l.wheelDeltaX,y=l.wheelDeltaY;return u==null&&l.detail&&l.axis==l.HORIZONTAL_AXIS&&(u=l.detail),y==null&&l.detail&&l.axis==l.VERTICAL_AXIS?y=l.detail:y==null&&(y=l.wheelDelta),{x:u,y}}function iq(l){var u=Q_(l);return u.x*=Tl,u.y*=Tl,u}function J_(l,u){g&&S==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=Q_(u),x=y.x,k=y.y,T=Tl;u.deltaMode===0&&(x=u.deltaX,k=u.deltaY,T=1);var L=l.display,B=L.scroller,Z=B.scrollWidth>B.clientWidth,te=B.scrollHeight>B.clientHeight;if(x&&Z||k&&te){if(k&&M&&h){e:for(var de=u.target,ge=L.view;de!=B;de=de.parentNode)for(var Pe=0;Pe<ge.length;Pe++)if(ge[Pe].node==de){l.display.currentWheelTarget=de;break e}}if(x&&!a&&!b&&T!=null){k&&te&&Vm(l,Math.max(0,B.scrollTop+k*T)),sd(l,Math.max(0,B.scrollLeft+x*T)),(!k||k&&te)&&at(u),L.wheelStartX=null;return}if(k&&T!=null){var _e=k*T,We=l.doc.scrollTop,Xe=We+L.wrapper.clientHeight;_e<0?We=Math.max(0,We+_e-50):Xe=Math.min(l.doc.height,Xe+_e+50),Fk(l,{top:We,bottom:Xe})}I1<20&&u.deltaMode!==0&&(L.wheelStartX==null?(L.wheelStartX=B.scrollLeft,L.wheelStartY=B.scrollTop,L.wheelDX=x,L.wheelDY=k,setTimeout(function(){if(L.wheelStartX!=null){var it=B.scrollLeft-L.wheelStartX,ht=B.scrollTop-L.wheelStartY,Ct=ht&&L.wheelDY&&ht/L.wheelDY||it&&L.wheelDX&&it/L.wheelDX;L.wheelStartX=L.wheelStartY=null,Ct&&(Tl=(Tl*I1+Ct)/(I1+1),++I1)}},200)):(L.wheelDX+=x,L.wheelDY+=k))}}var oo=function(l,u){this.ranges=l,this.primIndex=u};oo.prototype.primary=function(){return this.ranges[this.primIndex]},oo.prototype.equals=function(l){if(l==this)return!0;if(l.primIndex!=this.primIndex||l.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var y=this.ranges[u],x=l.ranges[u];if(!mr(y.anchor,x.anchor)||!mr(y.head,x.head))return!1}return!0},oo.prototype.deepCopy=function(){for(var l=[],u=0;u<this.ranges.length;u++)l[u]=new Br(Hn(this.ranges[u].anchor),Hn(this.ranges[u].head));return new oo(l,this.primIndex)},oo.prototype.somethingSelected=function(){for(var l=0;l<this.ranges.length;l++)if(!this.ranges[l].empty())return!0;return!1},oo.prototype.contains=function(l,u){u||(u=l);for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y];if(gt(u,x.from())>=0&>(l,x.to())<=0)return y}return-1};var Br=function(l,u){this.anchor=l,this.head=u};Br.prototype.from=function(){return Sc(this.anchor,this.head)},Br.prototype.to=function(){return Ps(this.anchor,this.head)},Br.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ui(l,u,y){var x=l&&l.options.selectionsMayTouch,k=u[y];u.sort(function(Pe,_e){return gt(Pe.from(),_e.from())}),y=he(u,k);for(var T=1;T<u.length;T++){var L=u[T],B=u[T-1],Z=gt(B.to(),L.from());if(x&&!L.empty()?Z>0:Z>=0){var te=Sc(B.from(),L.from()),de=Ps(B.to(),L.to()),ge=B.empty()?L.from()==L.head:B.from()==B.head;T<=y&&--y,u.splice(--T,2,new Br(ge?de:te,ge?te:de))}}return new oo(u,y)}function _c(l,u){return new oo([new Br(l,u||l)],0)}function Tc(l){return l.text?Oe(l.from.line+l.text.length-1,Ze(l.text).length+(l.text.length==1?l.from.ch:0)):l.to}function e8(l,u){if(gt(l,u.from)<0)return l;if(gt(l,u.to)<=0)return Tc(u);var y=l.line+u.text.length-(u.to.line-u.from.line)-1,x=l.ch;return l.line==u.to.line&&(x+=Tc(u).ch-u.to.ch),Oe(y,x)}function Wk(l,u){for(var y=[],x=0;x<l.sel.ranges.length;x++){var k=l.sel.ranges[x];y.push(new Br(e8(k.anchor,u),e8(k.head,u)))}return ui(l.cm,y,l.sel.primIndex)}function t8(l,u,y){return l.line==u.line?Oe(y.line,l.ch-u.ch+y.ch):Oe(y.line+(l.line-u.line),l.ch)}function lq(l,u,y){for(var x=[],k=Oe(l.first,0),T=k,L=0;L<u.length;L++){var B=u[L],Z=t8(B.from,k,T),te=t8(Tc(B),k,T);if(k=B.to,T=te,y=="around"){var de=l.sel.ranges[L],ge=gt(de.head,de.anchor)<0;x[L]=new Br(ge?te:Z,ge?Z:te)}else x[L]=new Br(Z,Z)}return new oo(x,l.sel.primIndex)}function Vk(l){l.doc.mode=Pt(l.options,l.doc.modeOption),Zm(l)}function Zm(l){l.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),l.doc.modeFrontier=l.doc.highlightFrontier=l.doc.first,Gm(l,100),l.state.modeGen++,l.curOp&&pa(l)}function r8(l,u){return u.from.ch==0&&u.to.ch==0&&Ze(u.text)==""&&(!l.cm||l.cm.options.wholeLineUpdateBefore)}function qk(l,u,y,x){function k(Ct){return y?y[Ct]:null}function T(Ct,pt,Rt){gV(Ct,pt,Rt,x),rs(Ct,"change",Ct,u)}function L(Ct,pt){for(var Rt=[],tr=Ct;tr<pt;++tr)Rt.push(new zf(te[tr],k(tr),x));return Rt}var B=u.from,Z=u.to,te=u.text,de=Et(l,B.line),ge=Et(l,Z.line),Pe=Ze(te),_e=k(te.length-1),We=Z.line-B.line;if(u.full)l.insert(0,L(0,te.length)),l.remove(te.length,l.size-te.length);else if(r8(l,u)){var Xe=L(0,te.length-1);T(ge,ge.text,_e),We&&l.remove(B.line,We),Xe.length&&l.insert(B.line,Xe)}else if(de==ge)if(te.length==1)T(de,de.text.slice(0,B.ch)+Pe+de.text.slice(Z.ch),_e);else{var it=L(1,te.length-1);it.push(new zf(Pe+de.text.slice(Z.ch),_e,x)),T(de,de.text.slice(0,B.ch)+te[0],k(0)),l.insert(B.line+1,it)}else if(te.length==1)T(de,de.text.slice(0,B.ch)+te[0]+ge.text.slice(Z.ch),k(0)),l.remove(B.line+1,We);else{T(de,de.text.slice(0,B.ch)+te[0],k(0)),T(ge,Pe+ge.text.slice(Z.ch),_e);var ht=L(1,te.length-1);We>1&&l.remove(B.line+1,We-1),l.insert(B.line+1,ht)}rs(l,"change",l,u)}function Mc(l,u,y){function x(k,T,L){if(k.linked)for(var B=0;B<k.linked.length;++B){var Z=k.linked[B];if(Z.doc!=T){var te=L&&Z.sharedHist;y&&!te||(u(Z.doc,te),x(Z.doc,k,te))}}}x(l,null,!0)}function n8(l,u){if(u.cm)throw new Error("This document is already in use.");l.doc=u,u.cm=l,Dk(l),Vk(l),s8(l),l.options.direction=u.direction,l.options.lineWrapping||wk(l),l.options.mode=u.modeOption,pa(l)}function s8(l){(l.doc.direction=="rtl"?G:z)(l.display.lineDiv,"CodeMirror-rtl")}function cq(l){La(l,function(){s8(l),pa(l)})}function $1(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 Kk(l,u){var y={from:Hn(u.from),to:Tc(u),text:ot(l,u.from,u.to)};return i8(l,y,u.from.line,u.to.line+1),Mc(l,function(x){return i8(x,y,u.from.line,u.to.line+1)},!0),y}function a8(l){for(;l.length;){var u=Ze(l);if(u.ranges)l.pop();else break}}function uq(l,u){if(u)return a8(l.done),Ze(l.done);if(l.done.length&&!Ze(l.done).ranges)return Ze(l.done);if(l.done.length>1&&!l.done[l.done.length-2].ranges)return l.done.pop(),Ze(l.done)}function o8(l,u,y,x){var k=l.history;k.undone.length=0;var T=+new Date,L,B;if((k.lastOp==x||k.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&k.lastModTime>T-(l.cm?l.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(L=uq(k,k.lastOp==x)))B=Ze(L.changes),gt(u.from,u.to)==0&>(u.from,B.to)==0?B.to=Tc(u):L.changes.push(Kk(l,u));else{var Z=Ze(k.done);for((!Z||!Z.ranges)&&z1(l.sel,k.done),L={changes:[Kk(l,u)],generation:k.generation},k.done.push(L);k.done.length>k.undoDepth;)k.done.shift(),k.done[0].ranges||k.done.shift()}k.done.push(y),k.generation=++k.maxGeneration,k.lastModTime=k.lastSelTime=T,k.lastOp=k.lastSelOp=x,k.lastOrigin=k.lastSelOrigin=u.origin,B||be(l,"historyAdded")}function dq(l,u,y,x){var k=u.charAt(0);return k=="*"||k=="+"&&y.ranges.length==x.ranges.length&&y.somethingSelected()==x.somethingSelected()&&new Date-l.history.lastSelTime<=(l.cm?l.cm.options.historyEventDelay:500)}function fq(l,u,y,x){var k=l.history,T=x&&x.origin;y==k.lastSelOp||T&&k.lastSelOrigin==T&&(k.lastModTime==k.lastSelTime&&k.lastOrigin==T||dq(l,T,Ze(k.done),u))?k.done[k.done.length-1]=u:z1(u,k.done),k.lastSelTime=+new Date,k.lastSelOrigin=T,k.lastSelOp=y,x&&x.clearRedo!==!1&&a8(k.undone)}function z1(l,u){var y=Ze(u);y&&y.ranges&&y.equals(l)||u.push(l)}function i8(l,u,y,x){var k=u["spans_"+l.id],T=0;l.iter(Math.max(l.first,y),Math.min(l.first+l.size,x),function(L){L.markedSpans&&((k||(k=u["spans_"+l.id]={}))[T]=L.markedSpans),++T})}function hq(l){if(!l)return null;for(var u,y=0;y<l.length;++y)l[y].marker.explicitlyCleared?u||(u=l.slice(0,y)):u&&u.push(l[y]);return u?u.length?u:null:l}function pq(l,u){var y=u["spans_"+l.id];if(!y)return null;for(var x=[],k=0;k<u.text.length;++k)x.push(hq(y[k]));return x}function l8(l,u){var y=pq(l,u),x=vk(l,u);if(!y)return x;if(!x)return y;for(var k=0;k<y.length;++k){var T=y[k],L=x[k];if(T&&L)e:for(var B=0;B<L.length;++B){for(var Z=L[B],te=0;te<T.length;++te)if(T[te].marker==Z.marker)continue e;T.push(Z)}else L&&(y[k]=L)}return y}function Kf(l,u,y){for(var x=[],k=0;k<l.length;++k){var T=l[k];if(T.ranges){x.push(y?oo.prototype.deepCopy.call(T):T);continue}var L=T.changes,B=[];x.push({changes:B});for(var Z=0;Z<L.length;++Z){var te=L[Z],de=void 0;if(B.push({from:te.from,to:te.to,text:te.text}),u)for(var ge in te)(de=ge.match(/^spans_(\d+)$/))&&he(u,Number(de[1]))>-1&&(Ze(B)[ge]=te[ge],delete te[ge])}}return x}function Gk(l,u,y,x){if(x){var k=l.anchor;if(y){var T=gt(u,k)<0;T!=gt(y,k)<0?(k=u,u=y):T!=gt(u,y)<0&&(u=y)}return new Br(k,u)}else return new Br(y||u,u)}function F1(l,u,y,x,k){k==null&&(k=l.cm&&(l.cm.display.shift||l.extend)),Ds(l,new oo([Gk(l.sel.primary(),u,y,k)],0),x)}function c8(l,u,y){for(var x=[],k=l.cm&&(l.cm.display.shift||l.extend),T=0;T<l.sel.ranges.length;T++)x[T]=Gk(l.sel.ranges[T],u[T],null,k);var L=ui(l.cm,x,l.sel.primIndex);Ds(l,L,y)}function Yk(l,u,y,x){var k=l.sel.ranges.slice(0);k[u]=y,Ds(l,ui(l.cm,k,l.sel.primIndex),x)}function u8(l,u,y,x){Ds(l,_c(u,y),x)}function mq(l,u,y){var x={ranges:u.ranges,update:function(k){this.ranges=[];for(var T=0;T<k.length;T++)this.ranges[T]=new Br(hr(l,k[T].anchor),hr(l,k[T].head))},origin:y&&y.origin};return be(l,"beforeSelectionChange",l,x),l.cm&&be(l.cm,"beforeSelectionChange",l.cm,x),x.ranges!=u.ranges?ui(l.cm,x.ranges,x.ranges.length-1):u}function d8(l,u,y){var x=l.history.done,k=Ze(x);k&&k.ranges?(x[x.length-1]=u,H1(l,u,y)):Ds(l,u,y)}function Ds(l,u,y){H1(l,u,y),fq(l,l.sel,l.cm?l.cm.curOp.id:NaN,y)}function H1(l,u,y){(Je(l,"beforeSelectionChange")||l.cm&&Je(l.cm,"beforeSelectionChange"))&&(u=mq(l,u,y));var x=y&&y.bias||(gt(u.primary().head,l.sel.primary().head)<0?-1:1);f8(l,p8(l,u,x,!0)),!(y&&y.scroll===!1)&&l.cm&&l.cm.getOption("readOnly")!="nocursor"&&Vf(l.cm)}function f8(l,u){u.equals(l.sel)||(l.sel=u,l.cm&&(l.cm.curOp.updateInput=1,l.cm.curOp.selectionChanged=!0,Fe(l.cm)),rs(l,"cursorActivity",l))}function h8(l){f8(l,p8(l,l.sel,null,!1))}function p8(l,u,y,x){for(var k,T=0;T<u.ranges.length;T++){var L=u.ranges[T],B=u.ranges.length==l.sel.ranges.length&&l.sel.ranges[T],Z=B1(l,L.anchor,B&&B.anchor,y,x),te=L.head==L.anchor?Z:B1(l,L.head,B&&B.head,y,x);(k||Z!=L.anchor||te!=L.head)&&(k||(k=u.ranges.slice(0,T)),k[T]=new Br(Z,te))}return k?ui(l.cm,k,u.primIndex):u}function Gf(l,u,y,x,k){var T=Et(l,u.line);if(T.markedSpans)for(var L=0;L<T.markedSpans.length;++L){var B=T.markedSpans[L],Z=B.marker,te="selectLeft"in Z?!Z.selectLeft:Z.inclusiveLeft,de="selectRight"in Z?!Z.selectRight:Z.inclusiveRight;if((B.from==null||(te?B.from<=u.ch:B.from<u.ch))&&(B.to==null||(de?B.to>=u.ch:B.to>u.ch))){if(k&&(be(Z,"beforeCursorEnter"),Z.explicitlyCleared))if(T.markedSpans){--L;continue}else break;if(!Z.atomic)continue;if(y){var ge=Z.find(x<0?1:-1),Pe=void 0;if((x<0?de:te)&&(ge=m8(l,ge,-x,ge&&ge.line==u.line?T:null)),ge&&ge.line==u.line&&(Pe=gt(ge,y))&&(x<0?Pe<0:Pe>0))return Gf(l,ge,u,x,k)}var _e=Z.find(x<0?-1:1);return(x<0?te:de)&&(_e=m8(l,_e,x,_e.line==u.line?T:null)),_e?Gf(l,_e,u,x,k):null}}return u}function B1(l,u,y,x,k){var T=x||1,L=Gf(l,u,y,T,k)||!k&&Gf(l,u,y,T,!0)||Gf(l,u,y,-T,k)||!k&&Gf(l,u,y,-T,!0);return L||(l.cantEdit=!0,Oe(l.first,0))}function m8(l,u,y,x){return y<0&&u.ch==0?u.line>l.first?hr(l,Oe(u.line-1)):null:y>0&&u.ch==(x||Et(l,u.line)).text.length?u.line<l.first+l.size-1?Oe(u.line+1,0):null:new Oe(u.line,u.ch+y)}function g8(l){l.setSelection(Oe(l.firstLine(),0),Oe(l.lastLine()),Ae)}function v8(l,u,y){var x={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return x.canceled=!0}};return y&&(x.update=function(k,T,L,B){k&&(x.from=hr(l,k)),T&&(x.to=hr(l,T)),L&&(x.text=L),B!==void 0&&(x.origin=B)}),be(l,"beforeChange",l,x),l.cm&&be(l.cm,"beforeChange",l.cm,x),x.canceled?(l.cm&&(l.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function Yf(l,u,y){if(l.cm){if(!l.cm.curOp)return ns(l.cm,Yf)(l,u,y);if(l.cm.state.suppressEdits)return}if(!((Je(l,"beforeChange")||l.cm&&Je(l.cm,"beforeChange"))&&(u=v8(l,u,!0),!u))){var x=l_&&!y&&fV(l,u.from,u.to);if(x)for(var k=x.length-1;k>=0;--k)x8(l,{from:x[k].from,to:x[k].to,text:k?[""]:u.text,origin:u.origin});else x8(l,u)}}function x8(l,u){if(!(u.text.length==1&&u.text[0]==""&>(u.from,u.to)==0)){var y=Wk(l,u);o8(l,u,y,l.cm?l.cm.curOp.id:NaN),Xm(l,u,y,vk(l,u));var x=[];Mc(l,function(k,T){!T&&he(x,k.history)==-1&&(k8(k.history,u),x.push(k.history)),Xm(k,u,null,vk(k,u))})}}function U1(l,u,y){var x=l.cm&&l.cm.state.suppressEdits;if(!(x&&!y)){for(var k=l.history,T,L=l.sel,B=u=="undo"?k.done:k.undone,Z=u=="undo"?k.undone:k.done,te=0;te<B.length&&(T=B[te],!(y?T.ranges&&!T.equals(l.sel):!T.ranges));te++);if(te!=B.length){for(k.lastOrigin=k.lastSelOrigin=null;;)if(T=B.pop(),T.ranges){if(z1(T,Z),y&&!T.equals(l.sel)){Ds(l,T,{clearRedo:!1});return}L=T}else if(x){B.push(T);return}else break;var de=[];z1(L,Z),Z.push({changes:de,generation:k.generation}),k.generation=T.generation||++k.maxGeneration;for(var ge=Je(l,"beforeChange")||l.cm&&Je(l.cm,"beforeChange"),Pe=function(Xe){var it=T.changes[Xe];if(it.origin=u,ge&&!v8(l,it,!1))return B.length=0,{};de.push(Kk(l,it));var ht=Xe?Wk(l,it):Ze(B);Xm(l,it,ht,l8(l,it)),!Xe&&l.cm&&l.cm.scrollIntoView({from:it.from,to:Tc(it)});var Ct=[];Mc(l,function(pt,Rt){!Rt&&he(Ct,pt.history)==-1&&(k8(pt.history,it),Ct.push(pt.history)),Xm(pt,it,null,l8(pt,it))})},_e=T.changes.length-1;_e>=0;--_e){var We=Pe(_e);if(We)return We.v}}}}function y8(l,u){if(u!=0&&(l.first+=u,l.sel=new oo(mt(l.sel.ranges,function(k){return new Br(Oe(k.anchor.line+u,k.anchor.ch),Oe(k.head.line+u,k.head.ch))}),l.sel.primIndex),l.cm)){pa(l.cm,l.first,l.first-u,u);for(var y=l.cm.display,x=y.viewFrom;x<y.viewTo;x++)Ec(l.cm,x,"gutter")}}function Xm(l,u,y,x){if(l.cm&&!l.cm.curOp)return ns(l.cm,Xm)(l,u,y,x);if(u.to.line<l.first){y8(l,u.text.length-1-(u.to.line-u.from.line));return}if(!(u.from.line>l.lastLine())){if(u.from.line<l.first){var k=u.text.length-1-(l.first-u.from.line);y8(l,k),u={from:Oe(l.first,0),to:Oe(u.to.line+k,u.to.ch),text:[Ze(u.text)],origin:u.origin}}var T=l.lastLine();u.to.line>T&&(u={from:u.from,to:Oe(T,Et(l,T).text.length),text:[u.text[0]],origin:u.origin}),u.removed=ot(l,u.from,u.to),y||(y=Wk(l,u)),l.cm?gq(l.cm,u,x):qk(l,u,x),H1(l,y,Ae),l.cantEdit&&B1(l,Oe(l.firstLine(),0))&&(l.cantEdit=!1)}}function gq(l,u,y){var x=l.doc,k=l.display,T=u.from,L=u.to,B=!1,Z=T.line;l.options.lineWrapping||(Z=ne(li(Et(x,T.line))),x.iter(Z,L.line+1,function(_e){if(_e==k.maxLine)return B=!0,!0})),x.sel.contains(u.from,u.to)>-1&&Fe(l),qk(x,u,y,$_(l)),l.options.lineWrapping||(x.iter(Z,T.line+u.text.length,function(_e){var We=E1(_e);We>k.maxLineLength&&(k.maxLine=_e,k.maxLineLength=We,k.maxLineChanged=!0,B=!1)}),B&&(l.curOp.updateMaxLine=!0)),aV(x,T.line),Gm(l,400);var te=u.text.length-(L.line-T.line)-1;u.full?pa(l):T.line==L.line&&u.text.length==1&&!r8(l.doc,u)?Ec(l,T.line,"text"):pa(l,T.line,L.line+1,te);var de=Je(l,"changes"),ge=Je(l,"change");if(ge||de){var Pe={from:T,to:L,text:u.text,removed:u.removed,origin:u.origin};ge&&rs(l,"change",l,Pe),de&&(l.curOp.changeObjs||(l.curOp.changeObjs=[])).push(Pe)}l.display.selForContextMenu=null}function Zf(l,u,y,x,k){var T;x||(x=y),gt(x,y)<0&&(T=[x,y],y=T[0],x=T[1]),typeof u=="string"&&(u=l.splitLines(u)),Yf(l,{from:y,to:x,text:u,origin:k})}function b8(l,u,y,x){y<l.line?l.line+=x:u<l.line&&(l.line=u,l.ch=0)}function w8(l,u,y,x){for(var k=0;k<l.length;++k){var T=l[k],L=!0;if(T.ranges){T.copied||(T=l[k]=T.deepCopy(),T.copied=!0);for(var B=0;B<T.ranges.length;B++)b8(T.ranges[B].anchor,u,y,x),b8(T.ranges[B].head,u,y,x);continue}for(var Z=0;Z<T.changes.length;++Z){var te=T.changes[Z];if(y<te.from.line)te.from=Oe(te.from.line+x,te.from.ch),te.to=Oe(te.to.line+x,te.to.ch);else if(u<=te.to.line){L=!1;break}}L||(l.splice(0,k+1),k=0)}}function k8(l,u){var y=u.from.line,x=u.to.line,k=u.text.length-(x-y)-1;w8(l.done,y,x,k),w8(l.undone,y,x,k)}function Qm(l,u,y,x){var k=u,T=u;return typeof u=="number"?T=Et(l,JN(l,u)):k=ne(u),k==null?null:(x(T,k)&&l.cm&&Ec(l.cm,k,y),T)}function Jm(l){this.lines=l,this.parent=null;for(var u=0,y=0;y<l.length;++y)l[y].parent=this,u+=l[y].height;this.height=u}Jm.prototype={chunkSize:function(){return this.lines.length},removeInner:function(l,u){for(var y=l,x=l+u;y<x;++y){var k=this.lines[y];this.height-=k.height,vV(k),rs(k,"delete")}this.lines.splice(l,u)},collapse:function(l){l.push.apply(l,this.lines)},insertInner:function(l,u,y){this.height+=y,this.lines=this.lines.slice(0,l).concat(u).concat(this.lines.slice(l));for(var x=0;x<u.length;++x)u[x].parent=this},iterN:function(l,u,y){for(var x=l+u;l<x;++l)if(y(this.lines[l]))return!0}};function e0(l){this.children=l;for(var u=0,y=0,x=0;x<l.length;++x){var k=l[x];u+=k.chunkSize(),y+=k.height,k.parent=this}this.size=u,this.height=y,this.parent=null}e0.prototype={chunkSize:function(){return this.size},removeInner:function(l,u){this.size-=u;for(var y=0;y<this.children.length;++y){var x=this.children[y],k=x.chunkSize();if(l<k){var T=Math.min(u,k-l),L=x.height;if(x.removeInner(l,T),this.height-=L-x.height,k==T&&(this.children.splice(y--,1),x.parent=null),(u-=T)==0)break;l=0}else l-=k}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof Jm))){var B=[];this.collapse(B),this.children=[new Jm(B)],this.children[0].parent=this}},collapse:function(l){for(var u=0;u<this.children.length;++u)this.children[u].collapse(l)},insertInner:function(l,u,y){this.size+=u.length,this.height+=y;for(var x=0;x<this.children.length;++x){var k=this.children[x],T=k.chunkSize();if(l<=T){if(k.insertInner(l,u,y),k.lines&&k.lines.length>50){for(var L=k.lines.length%25+25,B=L;B<k.lines.length;){var Z=new Jm(k.lines.slice(B,B+=25));k.height-=Z.height,this.children.splice(++x,0,Z),Z.parent=this}k.lines=k.lines.slice(0,L),this.maybeSpill()}break}l-=T}},maybeSpill:function(){if(!(this.children.length<=10)){var l=this;do{var u=l.children.splice(l.children.length-5,5),y=new e0(u);if(l.parent){l.size-=y.size,l.height-=y.height;var k=he(l.parent.children,l);l.parent.children.splice(k+1,0,y)}else{var x=new e0(l.children);x.parent=l,l.children=[x,y],l=x}y.parent=l.parent}while(l.children.length>10);l.parent.maybeSpill()}},iterN:function(l,u,y){for(var x=0;x<this.children.length;++x){var k=this.children[x],T=k.chunkSize();if(l<T){var L=Math.min(u,T-l);if(k.iterN(l,L,y))return!0;if((u-=L)==0)break;l=0}else l-=T}}};var t0=function(l,u,y){if(y)for(var x in y)y.hasOwnProperty(x)&&(this[x]=y[x]);this.doc=l,this.node=u};t0.prototype.clear=function(){var l=this.doc.cm,u=this.line.widgets,y=this.line,x=ne(y);if(!(x==null||!u)){for(var k=0;k<u.length;++k)u[k]==this&&u.splice(k--,1);u.length||(y.widgets=null);var T=Hm(this);Dt(y,Math.max(0,y.height-T)),l&&(La(l,function(){C8(l,y,-T),Ec(l,x,"widget")}),rs(l,"lineWidgetCleared",l,this,x))}},t0.prototype.changed=function(){var l=this,u=this.height,y=this.doc.cm,x=this.line;this.height=null;var k=Hm(this)-u;k&&(jc(this.doc,x)||Dt(x,x.height+k),y&&La(y,function(){y.curOp.forceUpdate=!0,C8(y,x,k),rs(y,"lineWidgetChanged",y,l,ne(x))}))},st(t0);function C8(l,u,y){Nl(u)<(l.curOp&&l.curOp.scrollTop||l.doc.scrollTop)&&$k(l,y)}function vq(l,u,y,x){var k=new t0(l,y,x),T=l.cm;return T&&k.noHScroll&&(T.display.alignWidgets=!0),Qm(l,u,"widget",function(L){var B=L.widgets||(L.widgets=[]);if(k.insertAt==null?B.push(k):B.splice(Math.min(B.length,Math.max(0,k.insertAt)),0,k),k.line=L,T&&!jc(l,L)){var Z=Nl(L)<l.scrollTop;Dt(L,L.height+Hm(k)),Z&&$k(T,k.height),T.curOp.forceUpdate=!0}return!0}),T&&rs(T,"lineWidgetAdded",T,k,typeof u=="number"?u:ne(u)),k}var S8=0,Pc=function(l,u){this.lines=[],this.type=u,this.doc=l,this.id=++S8};Pc.prototype.clear=function(){if(!this.explicitlyCleared){var l=this.doc.cm,u=l&&!l.curOp;if(u&&od(l),Je(this,"clear")){var y=this.find();y&&rs(this,"clear",y.from,y.to)}for(var x=null,k=null,T=0;T<this.lines.length;++T){var L=this.lines[T],B=$m(L.markedSpans,this);l&&!this.collapsed?Ec(l,ne(L),"text"):l&&(B.to!=null&&(k=ne(L)),B.from!=null&&(x=ne(L))),L.markedSpans=lV(L.markedSpans,B),B.from==null&&this.collapsed&&!jc(this.doc,L)&&l&&Dt(L,Bf(l.display))}if(l&&this.collapsed&&!l.options.lineWrapping)for(var Z=0;Z<this.lines.length;++Z){var te=li(this.lines[Z]),de=E1(te);de>l.display.maxLineLength&&(l.display.maxLine=te,l.display.maxLineLength=de,l.display.maxLineChanged=!0)}x!=null&&l&&this.collapsed&&pa(l,x,k+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,l&&h8(l.doc)),l&&rs(l,"markerCleared",l,this,x,k),u&&id(l),this.parent&&this.parent.clear()}},Pc.prototype.find=function(l,u){l==null&&this.type=="bookmark"&&(l=1);for(var y,x,k=0;k<this.lines.length;++k){var T=this.lines[k],L=$m(T.markedSpans,this);if(L.from!=null&&(y=Oe(u?T:ne(T),L.from),l==-1))return y;if(L.to!=null&&(x=Oe(u?T:ne(T),L.to),l==1))return x}return y&&{from:y,to:x}},Pc.prototype.changed=function(){var l=this,u=this.find(-1,!0),y=this,x=this.doc.cm;!u||!x||La(x,function(){var k=u.line,T=ne(u.line),L=jk(x,T);if(L&&(M_(L),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!jc(y.doc,k)&&y.height!=null){var B=y.height;y.height=null;var Z=Hm(y)-B;Z&&Dt(k,k.height+Z)}rs(x,"markerChanged",x,l)})},Pc.prototype.attachLine=function(l){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||he(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(l)},Pc.prototype.detachLine=function(l){if(this.lines.splice(he(this.lines,l),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},st(Pc);function Xf(l,u,y,x,k){if(x&&x.shared)return xq(l,u,y,x,k);if(l.cm&&!l.cm.curOp)return ns(l.cm,Xf)(l,u,y,x,k);var T=new Pc(l,k),L=gt(u,y);if(x&&le(x,T,!1),L>0||L==0&&T.clearWhenEmpty!==!1)return T;if(T.replacedWith&&(T.collapsed=!0,T.widgetNode=K("span",[T.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||T.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(T.widgetNode.insertLeft=!0)),T.collapsed){if(p_(l,u.line,u,y,T)||u.line!=y.line&&p_(l,y.line,u,y,T))throw new Error("Inserting collapsed marker partially overlapping an existing one");iV()}T.addToHistory&&o8(l,{from:u,to:y,origin:"markText"},l.sel,NaN);var B=u.line,Z=l.cm,te;if(l.iter(B,y.line+1,function(ge){Z&&T.collapsed&&!Z.options.lineWrapping&&li(ge)==Z.display.maxLine&&(te=!0),T.collapsed&&B!=u.line&&Dt(ge,0),cV(ge,new k1(T,B==u.line?u.ch:null,B==y.line?y.ch:null),l.cm&&l.cm.curOp),++B}),T.collapsed&&l.iter(u.line,y.line+1,function(ge){jc(l,ge)&&Dt(ge,0)}),T.clearOnEnter&&Te(T,"beforeCursorEnter",function(){return T.clear()}),T.readOnly&&(oV(),(l.history.done.length||l.history.undone.length)&&l.clearHistory()),T.collapsed&&(T.id=++S8,T.atomic=!0),Z){if(te&&(Z.curOp.updateMaxLine=!0),T.collapsed)pa(Z,u.line,y.line+1);else if(T.className||T.startStyle||T.endStyle||T.css||T.attributes||T.title)for(var de=u.line;de<=y.line;de++)Ec(Z,de,"text");T.atomic&&h8(Z.doc),rs(Z,"markerAdded",Z,T)}return T}var r0=function(l,u){this.markers=l,this.primary=u;for(var y=0;y<l.length;++y)l[y].parent=this};r0.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var l=0;l<this.markers.length;++l)this.markers[l].clear();rs(this,"clear")}},r0.prototype.find=function(l,u){return this.primary.find(l,u)},st(r0);function xq(l,u,y,x,k){x=le(x),x.shared=!1;var T=[Xf(l,u,y,x,k)],L=T[0],B=x.widgetNode;return Mc(l,function(Z){B&&(x.widgetNode=B.cloneNode(!0)),T.push(Xf(Z,hr(Z,u),hr(Z,y),x,k));for(var te=0;te<Z.linked.length;++te)if(Z.linked[te].isParent)return;L=Ze(T)}),new r0(T,L)}function j8(l){return l.findMarks(Oe(l.first,0),l.clipPos(Oe(l.lastLine())),function(u){return u.parent})}function yq(l,u){for(var y=0;y<u.length;y++){var x=u[y],k=x.find(),T=l.clipPos(k.from),L=l.clipPos(k.to);if(gt(T,L)){var B=Xf(l,T,L,x.primary,x.primary.type);x.markers.push(B),B.parent=x}}}function bq(l){for(var u=function(x){var k=l[x],T=[k.primary.doc];Mc(k.primary.doc,function(Z){return T.push(Z)});for(var L=0;L<k.markers.length;L++){var B=k.markers[L];he(T,B.doc)==-1&&(B.parent=null,k.markers.splice(L--,1))}},y=0;y<l.length;y++)u(y)}var wq=0,ma=function(l,u,y,x,k){if(!(this instanceof ma))return new ma(l,u,y,x,k);y==null&&(y=0),e0.call(this,[new Jm([new zf("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var T=Oe(y,0);this.sel=_c(T),this.history=new $1(null),this.id=++wq,this.modeOption=u,this.lineSep=x,this.direction=k=="rtl"?"rtl":"ltr",this.extend=!1,typeof l=="string"&&(l=this.splitLines(l)),qk(this,{from:T,to:T,text:l}),Ds(this,_c(T),Ae)};ma.prototype=qt(e0.prototype,{constructor:ma,iter:function(l,u,y){y?this.iterN(l-this.first,u-l,y):this.iterN(this.first,this.first+this.size,l)},insert:function(l,u){for(var y=0,x=0;x<u.length;++x)y+=u[x].height;this.insertInner(l-this.first,u,y)},remove:function(l,u){this.removeInner(l-this.first,u)},getValue:function(l){var u=Wt(this,this.first,this.first+this.size);return l===!1?u:u.join(l||this.lineSeparator())},setValue:ss(function(l){var u=Oe(this.first,0),y=this.first+this.size-1;Yf(this,{from:u,to:Oe(y,Et(this,y).text.length),text:this.splitLines(l),origin:"setValue",full:!0},!0),this.cm&&Wm(this.cm,0,0),Ds(this,_c(u),Ae)}),replaceRange:function(l,u,y,x){u=hr(this,u),y=y?hr(this,y):u,Zf(this,l,u,y,x)},getRange:function(l,u,y){var x=ot(this,hr(this,l),hr(this,u));return y===!1?x:y===""?x.join(""):x.join(y||this.lineSeparator())},getLine:function(l){var u=this.getLineHandle(l);return u&&u.text},getLineHandle:function(l){if(Ue(this,l))return Et(this,l)},getLineNumber:function(l){return ne(l)},getLineHandleVisualStart:function(l){return typeof l=="number"&&(l=Et(this,l)),li(l)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(l){return hr(this,l)},getCursor:function(l){var u=this.sel.primary(),y;return l==null||l=="head"?y=u.head:l=="anchor"?y=u.anchor:l=="end"||l=="to"||l===!1?y=u.to():y=u.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ss(function(l,u,y){u8(this,hr(this,typeof l=="number"?Oe(l,u||0):l),null,y)}),setSelection:ss(function(l,u,y){u8(this,hr(this,l),hr(this,u||l),y)}),extendSelection:ss(function(l,u,y){F1(this,hr(this,l),u&&hr(this,u),y)}),extendSelections:ss(function(l,u){c8(this,e_(this,l),u)}),extendSelectionsBy:ss(function(l,u){var y=mt(this.sel.ranges,l);c8(this,e_(this,y),u)}),setSelections:ss(function(l,u,y){if(l.length){for(var x=[],k=0;k<l.length;k++)x[k]=new Br(hr(this,l[k].anchor),hr(this,l[k].head||l[k].anchor));u==null&&(u=Math.min(l.length-1,this.sel.primIndex)),Ds(this,ui(this.cm,x,u),y)}}),addSelection:ss(function(l,u,y){var x=this.sel.ranges.slice(0);x.push(new Br(hr(this,l),hr(this,u||l))),Ds(this,ui(this.cm,x,x.length-1),y)}),getSelection:function(l){for(var u=this.sel.ranges,y,x=0;x<u.length;x++){var k=ot(this,u[x].from(),u[x].to());y=y?y.concat(k):k}return l===!1?y:y.join(l||this.lineSeparator())},getSelections:function(l){for(var u=[],y=this.sel.ranges,x=0;x<y.length;x++){var k=ot(this,y[x].from(),y[x].to());l!==!1&&(k=k.join(l||this.lineSeparator())),u[x]=k}return u},replaceSelection:function(l,u,y){for(var x=[],k=0;k<this.sel.ranges.length;k++)x[k]=l;this.replaceSelections(x,u,y||"+input")},replaceSelections:ss(function(l,u,y){for(var x=[],k=this.sel,T=0;T<k.ranges.length;T++){var L=k.ranges[T];x[T]={from:L.from(),to:L.to(),text:this.splitLines(l[T]),origin:y}}for(var B=u&&u!="end"&&lq(this,x,u),Z=x.length-1;Z>=0;Z--)Yf(this,x[Z]);B?d8(this,B):this.cm&&Vf(this.cm)}),undo:ss(function(){U1(this,"undo")}),redo:ss(function(){U1(this,"redo")}),undoSelection:ss(function(){U1(this,"undo",!0)}),redoSelection:ss(function(){U1(this,"redo",!0)}),setExtending:function(l){this.extend=l},getExtending:function(){return this.extend},historySize:function(){for(var l=this.history,u=0,y=0,x=0;x<l.done.length;x++)l.done[x].ranges||++u;for(var k=0;k<l.undone.length;k++)l.undone[k].ranges||++y;return{undo:u,redo:y}},clearHistory:function(){var l=this;this.history=new $1(this.history),Mc(this,function(u){return u.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:Kf(this.history.done),undone:Kf(this.history.undone)}},setHistory:function(l){var u=this.history=new $1(this.history);u.done=Kf(l.done.slice(0),null,!0),u.undone=Kf(l.undone.slice(0),null,!0)},setGutterMarker:ss(function(l,u,y){return Qm(this,l,"gutter",function(x){var k=x.gutterMarkers||(x.gutterMarkers={});return k[u]=y,!y&&ir(k)&&(x.gutterMarkers=null),!0})}),clearGutter:ss(function(l){var u=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[l]&&Qm(u,y,"gutter",function(){return y.gutterMarkers[l]=null,ir(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(l){var u;if(typeof l=="number"){if(!Ue(this,l)||(u=l,l=Et(this,l),!l))return null}else if(u=ne(l),u==null)return null;return{line:u,handle:l,text:l.text,gutterMarkers:l.gutterMarkers,textClass:l.textClass,bgClass:l.bgClass,wrapClass:l.wrapClass,widgets:l.widgets}},addLineClass:ss(function(l,u,y){return Qm(this,l,u=="gutter"?"gutter":"class",function(x){var k=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass";if(!x[k])x[k]=y;else{if(H(y).test(x[k]))return!1;x[k]+=" "+y}return!0})}),removeLineClass:ss(function(l,u,y){return Qm(this,l,u=="gutter"?"gutter":"class",function(x){var k=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass",T=x[k];if(T)if(y==null)x[k]=null;else{var L=T.match(H(y));if(!L)return!1;var B=L.index+L[0].length;x[k]=T.slice(0,L.index)+(!L.index||B==T.length?"":" ")+T.slice(B)||null}else return!1;return!0})}),addLineWidget:ss(function(l,u,y){return vq(this,l,u,y)}),removeLineWidget:function(l){l.clear()},markText:function(l,u,y){return Xf(this,hr(this,l),hr(this,u),y,y&&y.type||"range")},setBookmark:function(l,u){var y={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return l=hr(this,l),Xf(this,l,l,y,"bookmark")},findMarksAt:function(l){l=hr(this,l);var u=[],y=Et(this,l.line).markedSpans;if(y)for(var x=0;x<y.length;++x){var k=y[x];(k.from==null||k.from<=l.ch)&&(k.to==null||k.to>=l.ch)&&u.push(k.marker.parent||k.marker)}return u},findMarks:function(l,u,y){l=hr(this,l),u=hr(this,u);var x=[],k=l.line;return this.iter(l.line,u.line+1,function(T){var L=T.markedSpans;if(L)for(var B=0;B<L.length;B++){var Z=L[B];!(Z.to!=null&&k==l.line&&l.ch>=Z.to||Z.from==null&&k!=l.line||Z.from!=null&&k==u.line&&Z.from>=u.ch)&&(!y||y(Z.marker))&&x.push(Z.marker.parent||Z.marker)}++k}),x},getAllMarks:function(){var l=[];return this.iter(function(u){var y=u.markedSpans;if(y)for(var x=0;x<y.length;++x)y[x].from!=null&&l.push(y[x].marker)}),l},posFromIndex:function(l){var u,y=this.first,x=this.lineSeparator().length;return this.iter(function(k){var T=k.text.length+x;if(T>l)return u=l,!0;l-=T,++y}),hr(this,Oe(y,u))},indexFromPos:function(l){l=hr(this,l);var u=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(x){u+=x.text.length+y}),u},copy:function(l){var u=new ma(Wt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,l&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(l){l||(l={});var u=this.first,y=this.first+this.size;l.from!=null&&l.from>u&&(u=l.from),l.to!=null&&l.to<y&&(y=l.to);var x=new ma(Wt(this,u,y),l.mode||this.modeOption,u,this.lineSep,this.direction);return l.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:l.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:l.sharedHist}],yq(x,j8(this)),x},unlinkDoc:function(l){if(l instanceof mn&&(l=l.doc),this.linked)for(var u=0;u<this.linked.length;++u){var y=this.linked[u];if(y.doc==l){this.linked.splice(u,1),l.unlinkDoc(this),bq(j8(this));break}}if(l.history==this.history){var x=[l.id];Mc(l,function(k){return x.push(k.id)},!0),l.history=new $1(null),l.history.done=Kf(this.history.done,x),l.history.undone=Kf(this.history.undone,x)}},iterLinkedDocs:function(l){Mc(this,l)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(l){return this.lineSep?l.split(this.lineSep):Mr(l)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ss(function(l){l!="rtl"&&(l="ltr"),l!=this.direction&&(this.direction=l,this.iter(function(u){return u.order=null}),this.cm&&cq(this.cm))})}),ma.prototype.eachLine=ma.prototype.iter;var E8=0;function kq(l){var u=this;if(N8(u),!(De(u,l)||_l(u.display,l))){at(l),d&&(E8=+new Date);var y=rd(u,l,!0),x=l.dataTransfer.files;if(!(!y||u.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var k=x.length,T=Array(k),L=0,B=function(){++L==k&&ns(u,function(){y=hr(u.doc,y);var _e={from:y,to:y,text:u.doc.splitLines(T.filter(function(We){return We!=null}).join(u.doc.lineSeparator())),origin:"paste"};Yf(u.doc,_e),d8(u.doc,_c(hr(u.doc,y),hr(u.doc,Tc(_e))))})()},Z=function(_e,We){if(u.options.allowDropFileTypes&&he(u.options.allowDropFileTypes,_e.type)==-1){B();return}var Xe=new FileReader;Xe.onerror=function(){return B()},Xe.onload=function(){var it=Xe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(it)){B();return}T[We]=it,B()},Xe.readAsText(_e)},te=0;te<x.length;te++)Z(x[te],te);else{if(u.state.draggingText&&u.doc.sel.contains(y)>-1){u.state.draggingText(l),setTimeout(function(){return u.display.input.focus()},20);return}try{var de=l.dataTransfer.getData("Text");if(de){var ge;if(u.state.draggingText&&!u.state.draggingText.copy&&(ge=u.listSelections()),H1(u.doc,_c(y,y)),ge)for(var Pe=0;Pe<ge.length;++Pe)Zf(u.doc,"",ge[Pe].anchor,ge[Pe].head,"drag");u.replaceSelection(de,"around","paste"),u.display.input.focus()}}catch(_e){}}}}function Cq(l,u){if(d&&(!l.state.draggingText||+new Date-E8<100)){Nt(u);return}if(!(De(l,u)||_l(l.display,u))&&(u.dataTransfer.setData("Text",l.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!v)){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),u.dataTransfer.setDragImage(y,0,0),b&&y.parentNode.removeChild(y)}}function Sq(l,u){var y=rd(l,u);if(y){var x=document.createDocumentFragment();Ak(l,y,x),l.display.dragCursor||(l.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),l.display.lineSpace.insertBefore(l.display.dragCursor,l.display.cursorDiv)),W(l.display.dragCursor,x)}}function N8(l){l.display.dragCursor&&(l.display.lineSpace.removeChild(l.display.dragCursor),l.display.dragCursor=null)}function _8(l){if(document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),y=[],x=0;x<u.length;x++){var k=u[x].CodeMirror;k&&y.push(k)}y.length&&y[0].operation(function(){for(var T=0;T<y.length;T++)l(y[T])})}}var T8=!1;function jq(){T8||(Eq(),T8=!0)}function Eq(){var l;Te(window,"resize",function(){l==null&&(l=setTimeout(function(){l=null,_8(Nq)},100))}),Te(window,"blur",function(){return _8(Wf)})}function Nq(l){var u=l.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,l.setSize()}for(var Dc={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"},n0=0;n0<10;n0++)Dc[n0+48]=Dc[n0+96]=String(n0);for(var W1=65;W1<=90;W1++)Dc[W1]=String.fromCharCode(W1);for(var s0=1;s0<=12;s0++)Dc[s0+111]=Dc[s0+63235]="F"+s0;var Ml={};Ml.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"},Ml.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"},Ml.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"},Ml.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"]},Ml.default=M?Ml.macDefault:Ml.pcDefault;function _q(l){var u=l.split(/-(?!$)/);l=u[u.length-1];for(var y,x,k,T,L=0;L<u.length-1;L++){var B=u[L];if(/^(cmd|meta|m)$/i.test(B))T=!0;else if(/^a(lt)?$/i.test(B))y=!0;else if(/^(c|ctrl|control)$/i.test(B))x=!0;else if(/^s(hift)?$/i.test(B))k=!0;else throw new Error("Unrecognized modifier name: "+B)}return y&&(l="Alt-"+l),x&&(l="Ctrl-"+l),T&&(l="Cmd-"+l),k&&(l="Shift-"+l),l}function Tq(l){var u={};for(var y in l)if(l.hasOwnProperty(y)){var x=l[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(x=="..."){delete l[y];continue}for(var k=mt(y.split(" "),_q),T=0;T<k.length;T++){var L=void 0,B=void 0;T==k.length-1?(B=k.join(" "),L=x):(B=k.slice(0,T+1).join(" "),L="...");var Z=u[B];if(!Z)u[B]=L;else if(Z!=L)throw new Error("Inconsistent bindings for "+B)}delete l[y]}for(var te in u)l[te]=u[te];return l}function Qf(l,u,y,x){u=V1(u);var k=u.call?u.call(l,x):u[l];if(k===!1)return"nothing";if(k==="...")return"multi";if(k!=null&&y(k))return"handled";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!="[object Array]")return Qf(l,u.fallthrough,y,x);for(var T=0;T<u.fallthrough.length;T++){var L=Qf(l,u.fallthrough[T],y,x);if(L)return L}}}function M8(l){var u=typeof l=="string"?l:Dc[l.keyCode];return u=="Ctrl"||u=="Alt"||u=="Shift"||u=="Mod"}function P8(l,u,y){var x=l;return u.altKey&&x!="Alt"&&(l="Alt-"+l),(O?u.metaKey:u.ctrlKey)&&x!="Ctrl"&&(l="Ctrl-"+l),(O?u.ctrlKey:u.metaKey)&&x!="Mod"&&(l="Cmd-"+l),!y&&u.shiftKey&&x!="Shift"&&(l="Shift-"+l),l}function D8(l,u){if(b&&l.keyCode==34&&l.char)return!1;var y=Dc[l.keyCode];return y==null||l.altGraphKey?!1:(l.keyCode==3&&l.code&&(y=l.code),P8(y,l,u))}function V1(l){return typeof l=="string"?Ml[l]:l}function Jf(l,u){for(var y=l.doc.sel.ranges,x=[],k=0;k<y.length;k++){for(var T=u(y[k]);x.length&>(T.from,Ze(x).to)<=0;){var L=x.pop();if(gt(L.from,T.from)<0){T.from=L.from;break}}x.push(T)}La(l,function(){for(var B=x.length-1;B>=0;B--)Zf(l.doc,"",x[B].from,x[B].to,"+delete");Vf(l)})}function Zk(l,u,y){var x=cr(l.text,u+y,y);return x<0||x>l.text.length?null:x}function Xk(l,u,y){var x=Zk(l,u.ch,y);return x==null?null:new Oe(u.line,x,y<0?"after":"before")}function Qk(l,u,y,x,k){if(l){u.doc.direction=="rtl"&&(k=-k);var T=Me(y,u.doc.direction);if(T){var L=k<0?Ze(T):T[0],B=k<0==(L.level==1),Z=B?"after":"before",te;if(L.level>0||u.doc.direction=="rtl"){var de=Hf(u,y);te=k<0?y.text.length-1:0;var ge=Vi(u,de,te).top;te=ar(function(Pe){return Vi(u,de,Pe).top==ge},k<0==(L.level==1)?L.from:L.to-1,te),Z=="before"&&(te=Zk(y,te,1))}else te=k<0?L.to:L.from;return new Oe(x,te,Z)}}return new Oe(x,k<0?y.text.length:0,k<0?"before":"after")}function Mq(l,u,y,x){var k=Me(u,l.doc.direction);if(!k)return Xk(u,y,x);y.ch>=u.text.length?(y.ch=u.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var T=Mt(k,y.ch,y.sticky),L=k[T];if(l.doc.direction=="ltr"&&L.level%2==0&&(x>0?L.to>y.ch:L.from<y.ch))return Xk(u,y,x);var B=function(ht,Ct){return Zk(u,ht instanceof Oe?ht.ch:ht,Ct)},Z,te=function(ht){return l.options.lineWrapping?(Z=Z||Hf(l,u),I_(l,u,Z,ht)):{begin:0,end:u.text.length}},de=te(y.sticky=="before"?B(y,-1):y.ch);if(l.doc.direction=="rtl"||L.level==1){var ge=L.level==1==x<0,Pe=B(y,ge?1:-1);if(Pe!=null&&(ge?Pe<=L.to&&Pe<=de.end:Pe>=L.from&&Pe>=de.begin)){var _e=ge?"before":"after";return new Oe(y.line,Pe,_e)}}var We=function(ht,Ct,pt){for(var Rt=function(on,as){return as?new Oe(y.line,B(on,1),"before"):new Oe(y.line,on,"after")};ht>=0&&ht<k.length;ht+=Ct){var tr=k[ht],Qt=Ct>0==(tr.level!=1),yr=Qt?pt.begin:B(pt.end,-1);if(tr.from<=yr&&yr<tr.to||(yr=Qt?tr.from:B(tr.to,-1),pt.begin<=yr&&yr<pt.end))return Rt(yr,Qt)}},Xe=We(T+x,x,de);if(Xe)return Xe;var it=x>0?de.end:B(de.begin,-1);return it!=null&&!(x>0&&it==u.text.length)&&(Xe=We(x>0?0:k.length-1,x,te(it)),Xe)?Xe:null}var a0={selectAll:g8,singleSelection:function(l){return l.setSelection(l.getCursor("anchor"),l.getCursor("head"),Ae)},killLine:function(l){return Jf(l,function(u){if(u.empty()){var y=Et(l.doc,u.head.line).text.length;return u.head.ch==y&&u.head.line<l.lastLine()?{from:u.head,to:Oe(u.head.line+1,0)}:{from:u.head,to:Oe(u.head.line,y)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(l){return Jf(l,function(u){return{from:Oe(u.from().line,0),to:hr(l.doc,Oe(u.to().line+1,0))}})},delLineLeft:function(l){return Jf(l,function(u){return{from:Oe(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(l){return Jf(l,function(u){var y=l.charCoords(u.head,"div").top+5,x=l.coordsChar({left:0,top:y},"div");return{from:x,to:u.from()}})},delWrappedLineRight:function(l){return Jf(l,function(u){var y=l.charCoords(u.head,"div").top+5,x=l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:y},"div");return{from:u.from(),to:x}})},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(Oe(l.firstLine(),0))},goDocEnd:function(l){return l.extendSelection(Oe(l.lastLine()))},goLineStart:function(l){return l.extendSelectionsBy(function(u){return A8(l,u.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(l){return l.extendSelectionsBy(function(u){return R8(l,u.head)},{origin:"+move",bias:1})},goLineEnd:function(l){return l.extendSelectionsBy(function(u){return Pq(l,u.head.line)},{origin:"+move",bias:-1})},goLineRight:function(l){return l.extendSelectionsBy(function(u){var y=l.cursorCoords(u.head,"div").top+5;return l.coordsChar({left:l.display.lineDiv.offsetWidth+100,top:y},"div")},Le)},goLineLeft:function(l){return l.extendSelectionsBy(function(u){var y=l.cursorCoords(u.head,"div").top+5;return l.coordsChar({left:0,top:y},"div")},Le)},goLineLeftSmart:function(l){return l.extendSelectionsBy(function(u){var y=l.cursorCoords(u.head,"div").top+5,x=l.coordsChar({left:0,top:y},"div");return x.ch<l.getLine(x.line).search(/\S/)?R8(l,u.head):x},Le)},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 u=[],y=l.listSelections(),x=l.options.tabSize,k=0;k<y.length;k++){var T=y[k].from(),L=ue(l.getLine(T.line),T.ch,x);u.push(Qe(x-L%x))}l.replaceSelections(u)},defaultTab:function(l){l.somethingSelected()?l.indentSelection("add"):l.execCommand("insertTab")},transposeChars:function(l){return La(l,function(){for(var u=l.listSelections(),y=[],x=0;x<u.length;x++)if(u[x].empty()){var k=u[x].head,T=Et(l.doc,k.line).text;if(T){if(k.ch==T.length&&(k=new Oe(k.line,k.ch-1)),k.ch>0)k=new Oe(k.line,k.ch+1),l.replaceRange(T.charAt(k.ch-1)+T.charAt(k.ch-2),Oe(k.line,k.ch-2),k,"+transpose");else if(k.line>l.doc.first){var L=Et(l.doc,k.line-1).text;L&&(k=new Oe(k.line,1),l.replaceRange(T.charAt(0)+l.doc.lineSeparator()+L.charAt(L.length-1),Oe(k.line-1,L.length-1),k,"+transpose"))}}y.push(new Br(k,k))}l.setSelections(y)})},newlineAndIndent:function(l){return La(l,function(){for(var u=l.listSelections(),y=u.length-1;y>=0;y--)l.replaceRange(l.doc.lineSeparator(),u[y].anchor,u[y].head,"+input");u=l.listSelections();for(var x=0;x<u.length;x++)l.indentLine(u[x].from().line,null,!0);Vf(l)})},openLine:function(l){return l.replaceSelection("\n","start")},toggleOverwrite:function(l){return l.toggleOverwrite()}};function A8(l,u){var y=Et(l.doc,u),x=li(y);return x!=y&&(u=ne(x)),Qk(!0,l,x,u,1)}function Pq(l,u){var y=Et(l.doc,u),x=pV(y);return x!=y&&(u=ne(x)),Qk(!0,l,y,u,-1)}function R8(l,u){var y=A8(l,u.line),x=Et(l.doc,y.line),k=Me(x,l.doc.direction);if(!k||k[0].level==0){var T=Math.max(y.ch,x.text.search(/\S/)),L=u.line==y.line&&u.ch<=T&&u.ch;return Oe(y.line,L?0:T,y.sticky)}return y}function q1(l,u,y){if(typeof u=="string"&&(u=a0[u],!u))return!1;l.display.input.ensurePolled();var x=l.display.shift,k=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),y&&(l.display.shift=!1),k=u(l)!=Se}finally{l.display.shift=x,l.state.suppressEdits=!1}return k}function Dq(l,u,y){for(var x=0;x<l.state.keyMaps.length;x++){var k=Qf(u,l.state.keyMaps[x],y,l);if(k)return k}return l.options.extraKeys&&Qf(u,l.options.extraKeys,y,l)||Qf(u,l.options.keyMap,y,l)}var Aq=new ce;function o0(l,u,y,x){var k=l.state.keySeq;if(k){if(M8(u))return"handled";if(/\'$/.test(u)?l.state.keySeq=null:Aq.set(50,function(){l.state.keySeq==k&&(l.state.keySeq=null,l.display.input.reset())}),L8(l,k+" "+u,y,x))return!0}return L8(l,u,y,x)}function L8(l,u,y,x){var k=Dq(l,u,x);return k=="multi"&&(l.state.keySeq=u),k=="handled"&&rs(l,"keyHandled",l,u,y),(k=="handled"||k=="multi")&&(at(y),Rk(l)),!!k}function O8(l,u){var y=D8(u,!0);return y?u.shiftKey&&!l.state.keySeq?o0(l,"Shift-"+y,u,function(x){return q1(l,x,!0)})||o0(l,y,u,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return q1(l,x)}):o0(l,y,u,function(x){return q1(l,x)}):!1}function Rq(l,u,y){return o0(l,"'"+y+"'",u,function(x){return q1(l,x,!0)})}var Jk=null;function I8(l){var u=this;if(!(l.target&&l.target!=u.display.input.getField())&&(u.curOp.focus=X(se(u)),!De(u,l))){d&&f<11&&l.keyCode==27&&(l.returnValue=!1);var y=l.keyCode;u.display.shift=y==16||l.shiftKey;var x=O8(u,l);b&&(Jk=x?y:null,!x&&y==88&&!yt&&(M?l.metaKey:l.ctrlKey)&&u.replaceSelection("",null,"cut")),a&&!M&&!x&&y==46&&l.shiftKey&&!l.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(u.display.lineDiv.className)&&Lq(u)}}function Lq(l){var u=l.display.lineDiv;G(u,"CodeMirror-crosshair");function y(x){(x.keyCode==18||!x.altKey)&&(z(u,"CodeMirror-crosshair"),xe(document,"keyup",y),xe(document,"mouseover",y))}Te(document,"keyup",y),Te(document,"mouseover",y)}function $8(l){l.keyCode==16&&(this.doc.sel.shift=!1),De(this,l)}function z8(l){var u=this;if(!(l.target&&l.target!=u.display.input.getField())&&!(_l(u.display,l)||De(u,l)||l.ctrlKey&&!l.altKey||M&&l.metaKey)){var y=l.keyCode,x=l.charCode;if(b&&y==Jk){Jk=null,at(l);return}if(!(b&&(!l.which||l.which<10)&&O8(u,l))){var k=String.fromCharCode(x==null?y:x);k!="\b"&&(Rq(u,l,k)||u.display.input.onKeyPress(l))}}}var Oq=400,eC=function(l,u,y){this.time=l,this.pos=u,this.button=y};eC.prototype.compare=function(l,u,y){return this.time+Oq>l&>(u,this.pos)==0&&y==this.button};var i0,l0;function Iq(l,u){var y=+new Date;return l0&&l0.compare(y,l,u)?(i0=l0=null,"triple"):i0&&i0.compare(y,l,u)?(l0=new eC(y,l,u),i0=null,"double"):(i0=new eC(y,l,u),l0=null,"single")}function F8(l){var u=this,y=u.display;if(!(De(u,l)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=l.shiftKey,_l(y,l)){h||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!tC(u,l)){var x=rd(u,l),k=kt(l),T=x?Iq(x,k):"single";ae(u).focus(),k==1&&u.state.selectingText&&u.state.selectingText(l),!(x&&$q(u,k,x,T,l))&&(k==1?x?Fq(u,x,T,l):Gt(l)==y.scroller&&at(l):k==2?(x&&F1(u.doc,x),setTimeout(function(){return y.input.focus()},20)):k==3&&($?u.display.input.onContextMenu(l):Lk(u)))}}}function $q(l,u,y,x,k){var T="Click";return x=="double"?T="Double"+T:x=="triple"&&(T="Triple"+T),T=(u==1?"Left":u==2?"Middle":"Right")+T,o0(l,P8(T,k),k,function(L){if(typeof L=="string"&&(L=a0[L]),!L)return!1;var B=!1;try{l.isReadOnly()&&(l.state.suppressEdits=!0),B=L(l,y)!=Se}finally{l.state.suppressEdits=!1}return B})}function zq(l,u,y){var x=l.getOption("configureMouse"),k=x?x(l,u,y):{};if(k.unit==null){var T=P?y.shiftKey&&y.metaKey:y.altKey;k.unit=T?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(k.extend==null||l.doc.extend)&&(k.extend=l.doc.extend||y.shiftKey),k.addNew==null&&(k.addNew=M?y.metaKey:y.ctrlKey),k.moveOnDrag==null&&(k.moveOnDrag=!(M?y.altKey:y.ctrlKey)),k}function Fq(l,u,y,x){d?setTimeout(oe(H_,l),0):l.curOp.focus=X(se(l));var k=zq(l,y,x),T=l.doc.sel,L;l.options.dragDrop&&dr&&!l.isReadOnly()&&y=="single"&&(L=T.contains(u))>-1&&(gt((L=T.ranges[L]).from(),u)<0||u.xRel>0)&&(gt(L.to(),u)>0||u.xRel<0)?Hq(l,x,u,k):Bq(l,x,u,k)}function Hq(l,u,y,x){var k=l.display,T=!1,L=ns(l,function(te){h&&(k.scroller.draggable=!1),l.state.draggingText=!1,l.state.delayingBlurEvent&&(l.hasFocus()?l.state.delayingBlurEvent=!1:Lk(l)),xe(k.wrapper.ownerDocument,"mouseup",L),xe(k.wrapper.ownerDocument,"mousemove",B),xe(k.scroller,"dragstart",Z),xe(k.scroller,"drop",L),T||(at(te),x.addNew||F1(l.doc,y,null,null,x.extend),h&&!v||d&&f==9?setTimeout(function(){k.wrapper.ownerDocument.body.focus({preventScroll:!0}),k.input.focus()},20):k.input.focus())}),B=function(te){T=T||Math.abs(u.clientX-te.clientX)+Math.abs(u.clientY-te.clientY)>=10},Z=function(){return T=!0};h&&(k.scroller.draggable=!0),l.state.draggingText=L,L.copy=!x.moveOnDrag,Te(k.wrapper.ownerDocument,"mouseup",L),Te(k.wrapper.ownerDocument,"mousemove",B),Te(k.scroller,"dragstart",Z),Te(k.scroller,"drop",L),l.state.delayingBlurEvent=!0,setTimeout(function(){return k.input.focus()},20),k.scroller.dragDrop&&k.scroller.dragDrop()}function H8(l,u,y){if(y=="char")return new Br(u,u);if(y=="word")return l.findWordAt(u);if(y=="line")return new Br(Oe(u.line,0),hr(l.doc,Oe(u.line+1,0)));var x=y(l,u);return new Br(x.from,x.to)}function Bq(l,u,y,x){d&&Lk(l);var k=l.display,T=l.doc;at(u);var L,B,Z=T.sel,te=Z.ranges;if(x.addNew&&!x.extend?(B=T.sel.contains(y),B>-1?L=te[B]:L=new Br(y,y)):(L=T.sel.primary(),B=T.sel.primIndex),x.unit=="rectangle")x.addNew||(L=new Br(y,y)),y=rd(l,u,!0,!0),B=-1;else{var de=H8(l,y,x.unit);x.extend?L=Gk(L,de.anchor,de.head,x.extend):L=de}x.addNew?B==-1?(B=te.length,Ds(T,ui(l,te.concat([L]),B),{scroll:!1,origin:"*mouse"})):te.length>1&&te[B].empty()&&x.unit=="char"&&!x.extend?(Ds(T,ui(l,te.slice(0,B).concat(te.slice(B+1)),0),{scroll:!1,origin:"*mouse"}),Z=T.sel):Yk(T,B,L,je):(B=0,Ds(T,new oo([L],0),je),Z=T.sel);var ge=y;function Pe(pt){if(gt(ge,pt)!=0)if(ge=pt,x.unit=="rectangle"){for(var Rt=[],tr=l.options.tabSize,Qt=ue(Et(T,y.line).text,y.ch,tr),yr=ue(Et(T,pt.line).text,pt.ch,tr),on=Math.min(Qt,yr),as=Math.max(Qt,yr),Cn=Math.min(y.line,pt.line),Oa=Math.min(l.lastLine(),Math.max(y.line,pt.line));Cn<=Oa;Cn++){var ga=Et(T,Cn).text,Bn=Ee(ga,on,tr);on==as?Rt.push(new Br(Oe(Cn,Bn),Oe(Cn,Bn))):ga.length>Bn&&Rt.push(new Br(Oe(Cn,Bn),Oe(Cn,Ee(ga,as,tr))))}Rt.length||Rt.push(new Br(y,y)),Ds(T,ui(l,Z.ranges.slice(0,B).concat(Rt),B),{origin:"*mouse",scroll:!1}),l.scrollIntoView(pt)}else{var va=L,bs=H8(l,pt,x.unit),Zn=va.anchor,Un;gt(bs.anchor,Zn)>0?(Un=bs.head,Zn=Sc(va.from(),bs.anchor)):(Un=bs.anchor,Zn=Ps(va.to(),bs.head));var _n=Z.ranges.slice(0);_n[B]=Uq(l,new Br(hr(T,Zn),Un)),Ds(T,ui(l,_n,B),je)}}var _e=k.wrapper.getBoundingClientRect(),We=0;function Xe(pt){var Rt=++We,tr=rd(l,pt,!0,x.unit=="rectangle");if(tr)if(gt(tr,ge)!=0){l.curOp.focus=X(se(l)),Pe(tr);var Qt=R1(k,T);(tr.line>=Qt.to||tr.line<Qt.from)&&setTimeout(ns(l,function(){We==Rt&&Xe(pt)}),150)}else{var yr=pt.clientY<_e.top?-20:pt.clientY>_e.bottom?20:0;yr&&setTimeout(ns(l,function(){We==Rt&&(k.scroller.scrollTop+=yr,Xe(pt))}),50)}}function it(pt){l.state.selectingText=!1,We=1/0,pt&&(at(pt),k.input.focus()),xe(k.wrapper.ownerDocument,"mousemove",ht),xe(k.wrapper.ownerDocument,"mouseup",Ct),T.history.lastSelOrigin=null}var ht=ns(l,function(pt){pt.buttons===0||!kt(pt)?it(pt):Xe(pt)}),Ct=ns(l,it);l.state.selectingText=Ct,Te(k.wrapper.ownerDocument,"mousemove",ht),Te(k.wrapper.ownerDocument,"mouseup",Ct)}function Uq(l,u){var y=u.anchor,x=u.head,k=Et(l.doc,y.line);if(gt(y,x)==0&&y.sticky==x.sticky)return u;var T=Me(k);if(!T)return u;var L=Mt(T,y.ch,y.sticky),B=T[L];if(B.from!=y.ch&&B.to!=y.ch)return u;var Z=L+(B.from==y.ch==(B.level!=1)?0:1);if(Z==0||Z==T.length)return u;var te;if(x.line!=y.line)te=(x.line-y.line)*(l.doc.direction=="ltr"?1:-1)>0;else{var de=Mt(T,x.ch,x.sticky),ge=de-L||(x.ch-y.ch)*(B.level==1?-1:1);de==Z-1||de==Z?te=ge<0:te=ge>0}var Pe=T[Z+(te?-1:0)],_e=te==(Pe.level==1),We=_e?Pe.from:Pe.to,Xe=_e?"after":"before";return y.ch==We&&y.sticky==Xe?u:new Br(new Oe(y.line,We,Xe),x)}function B8(l,u,y,x){var k,T;if(u.touches)k=u.touches[0].clientX,T=u.touches[0].clientY;else try{k=u.clientX,T=u.clientY}catch(Pe){return!1}if(k>=Math.floor(l.display.gutters.getBoundingClientRect().right))return!1;x&&at(u);var L=l.display,B=L.lineDiv.getBoundingClientRect();if(T>B.bottom||!Je(l,y))return ct(u);T-=B.top-L.viewOffset;for(var Z=0;Z<l.display.gutterSpecs.length;++Z){var te=L.gutters.childNodes[Z];if(te&&te.getBoundingClientRect().right>=k){var de=fe(l.doc,T),ge=l.display.gutterSpecs[Z];return be(l,y,l,de,ge.className,u),ct(u)}}}function tC(l,u){return B8(l,u,"gutterClick",!0)}function U8(l,u){_l(l.display,u)||Wq(l,u)||De(l,u,"contextmenu")||$||l.display.input.onContextMenu(u)}function Wq(l,u){return Je(l,"gutterContextMenu")?B8(l,u,"gutterContextMenu",!1):!1}function W8(l){l.display.wrapper.className=l.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+l.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bm(l)}var eh={toString:function(){return"CodeMirror.Init"}},V8={},K1={};function Vq(l){var u=l.optionHandlers;function y(x,k,T,L){l.defaults[x]=k,T&&(u[x]=L?function(B,Z,te){te!=eh&&T(B,Z,te)}:T)}l.defineOption=y,l.Init=eh,y("value","",function(x,k){return x.setValue(k)},!0),y("mode",null,function(x,k){x.doc.modeOption=k,Vk(x)},!0),y("indentUnit",2,Vk,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(x){Zm(x),Bm(x),pa(x)},!0),y("lineSeparator",null,function(x,k){if(x.doc.lineSep=k,!!k){var T=[],L=x.doc.first;x.doc.iter(function(Z){for(var te=0;;){var de=Z.text.indexOf(k,te);if(de==-1)break;te=de+k.length,T.push(Oe(L,de))}L++});for(var B=T.length-1;B>=0;B--)Zf(x.doc,k,T[B],Oe(T[B].line,T[B].ch+k.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(x,k,T){x.state.specialChars=new RegExp(k.source+(k.test(" ")?"":"| "),"g"),T!=eh&&x.refresh()}),y("specialCharPlaceholder",bV,function(x){return x.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(x,k){return x.getInputField().spellcheck=k},!0),y("autocorrect",!1,function(x,k){return x.getInputField().autocorrect=k},!0),y("autocapitalize",!1,function(x,k){return x.getInputField().autocapitalize=k},!0),y("rtlMoveVisually",!D),y("wholeLineUpdateBefore",!0),y("theme","default",function(x){W8(x),Ym(x)},!0),y("keyMap","default",function(x,k,T){var L=V1(k),B=T!=eh&&V1(T);B&&B.detach&&B.detach(x,L),L.attach&&L.attach(x,B||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,Kq,!0),y("gutters",[],function(x,k){x.display.gutterSpecs=Uk(k,x.options.lineNumbers),Ym(x)},!0),y("fixedGutter",!0,function(x,k){x.display.gutters.style.left=k?Pk(x.display)+"px":"0",x.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(x){return qf(x)},!0),y("scrollbarStyle","native",function(x){K_(x),qf(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),y("lineNumbers",!1,function(x,k){x.display.gutterSpecs=Uk(x.options.gutters,k),Ym(x)},!0),y("firstLineNumber",1,Ym,!0),y("lineNumberFormatter",function(x){return x},Ym,!0),y("showCursorWhenSelecting",!1,Um,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(x,k){k=="nocursor"&&(Wf(x),x.display.input.blur()),x.display.input.readOnlyChanged(k)}),y("screenReaderLabel",null,function(x,k){k=k===""?null:k,x.display.input.screenReaderLabelChanged(k)}),y("disableInput",!1,function(x,k){k||x.display.input.reset()},!0),y("dragDrop",!0,qq),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,Um,!0),y("singleCursorHeightPerLine",!0,Um,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,Zm,!0),y("addModeClass",!1,Zm,!0),y("pollInterval",100),y("undoDepth",200,function(x,k){return x.doc.history.undoDepth=k}),y("historyEventDelay",1250),y("viewportMargin",10,function(x){return x.refresh()},!0),y("maxHighlightLength",1e4,Zm,!0),y("moveInputWithCursor",!0,function(x,k){k||x.display.input.resetPosition()}),y("tabindex",null,function(x,k){return x.display.input.getField().tabIndex=k||""}),y("autofocus",null),y("direction","ltr",function(x,k){return x.doc.setDirection(k)},!0),y("phrases",null)}function qq(l,u,y){var x=y&&y!=eh;if(!u!=!x){var k=l.display.dragFunctions,T=u?Te:xe;T(l.display.scroller,"dragstart",k.start),T(l.display.scroller,"dragenter",k.enter),T(l.display.scroller,"dragover",k.over),T(l.display.scroller,"dragleave",k.leave),T(l.display.scroller,"drop",k.drop)}}function Kq(l){l.options.lineWrapping?(G(l.display.wrapper,"CodeMirror-wrap"),l.display.sizer.style.minWidth="",l.display.sizerWidth=null):(z(l.display.wrapper,"CodeMirror-wrap"),wk(l)),Dk(l),pa(l),Bm(l),setTimeout(function(){return qf(l)},100)}function mn(l,u){var y=this;if(!(this instanceof mn))return new mn(l,u);this.options=u=u?le(u):{},le(V8,u,!1);var x=u.value;typeof x=="string"?x=new ma(x,u.mode,null,u.lineSeparator,u.direction):u.mode&&(x.modeOption=u.mode),this.doc=x;var k=new mn.inputStyles[u.inputStyle](this),T=this.display=new oq(l,x,k,u);T.wrapper.CodeMirror=this,W8(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),K_(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 ce,keySeq:null,specialChars:null},u.autofocus&&!N&&T.input.focus(),d&&f<11&&setTimeout(function(){return y.display.input.reset(!0)},20),Gq(this),jq(),od(this),this.curOp.forceUpdate=!0,n8(this,x),u.autofocus&&!N||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&Ok(y)},20):Wf(this);for(var L in K1)K1.hasOwnProperty(L)&&K1[L](this,u[L],eh);Z_(this),u.finishInit&&u.finishInit(this);for(var B=0;B<rC.length;++B)rC[B](this);id(this),h&&u.lineWrapping&&getComputedStyle(T.lineDiv).textRendering=="optimizelegibility"&&(T.lineDiv.style.textRendering="auto")}mn.defaults=V8,mn.optionHandlers=K1;function Gq(l){var u=l.display;Te(u.scroller,"mousedown",ns(l,F8)),d&&f<11?Te(u.scroller,"dblclick",ns(l,function(Z){if(!De(l,Z)){var te=rd(l,Z);if(!(!te||tC(l,Z)||_l(l.display,Z))){at(Z);var de=l.findWordAt(te);F1(l.doc,de.anchor,de.head)}}})):Te(u.scroller,"dblclick",function(Z){return De(l,Z)||at(Z)}),Te(u.scroller,"contextmenu",function(Z){return U8(l,Z)}),Te(u.input.getField(),"contextmenu",function(Z){u.scroller.contains(Z.target)||U8(l,Z)});var y,x={end:0};function k(){u.activeTouch&&(y=setTimeout(function(){return u.activeTouch=null},1e3),x=u.activeTouch,x.end=+new Date)}function T(Z){if(Z.touches.length!=1)return!1;var te=Z.touches[0];return te.radiusX<=1&&te.radiusY<=1}function L(Z,te){if(te.left==null)return!0;var de=te.left-Z.left,ge=te.top-Z.top;return de*de+ge*ge>20*20}Te(u.scroller,"touchstart",function(Z){if(!De(l,Z)&&!T(Z)&&!tC(l,Z)){u.input.ensurePolled(),clearTimeout(y);var te=+new Date;u.activeTouch={start:te,moved:!1,prev:te-x.end<=300?x:null},Z.touches.length==1&&(u.activeTouch.left=Z.touches[0].pageX,u.activeTouch.top=Z.touches[0].pageY)}}),Te(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),Te(u.scroller,"touchend",function(Z){var te=u.activeTouch;if(te&&!_l(u,Z)&&te.left!=null&&!te.moved&&new Date-te.start<300){var de=l.coordsChar(u.activeTouch,"page"),ge;!te.prev||L(te,te.prev)?ge=new Br(de,de):!te.prev.prev||L(te,te.prev.prev)?ge=l.findWordAt(de):ge=new Br(Oe(de.line,0),hr(l.doc,Oe(de.line+1,0))),l.setSelection(ge.anchor,ge.head),l.focus(),at(Z)}k()}),Te(u.scroller,"touchcancel",k),Te(u.scroller,"scroll",function(){u.scroller.clientHeight&&(Vm(l,u.scroller.scrollTop),sd(l,u.scroller.scrollLeft,!0),be(l,"scroll",l))}),Te(u.scroller,"mousewheel",function(Z){return J_(l,Z)}),Te(u.scroller,"DOMMouseScroll",function(Z){return J_(l,Z)}),Te(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(Z){De(l,Z)||Nt(Z)},over:function(Z){De(l,Z)||(Sq(l,Z),Nt(Z))},start:function(Z){return Cq(l,Z)},drop:ns(l,kq),leave:function(Z){De(l,Z)||N8(l)}};var B=u.input.getField();Te(B,"keyup",function(Z){return $8.call(l,Z)}),Te(B,"keydown",ns(l,I8)),Te(B,"keypress",ns(l,z8)),Te(B,"focus",function(Z){return Ok(l,Z)}),Te(B,"blur",function(Z){return Wf(l,Z)})}var rC=[];mn.defineInitHook=function(l){return rC.push(l)};function c0(l,u,y,x){var k=l.doc,T;y==null&&(y="add"),y=="smart"&&(k.mode.indent?T=Im(l,u).state:y="prev");var L=l.options.tabSize,B=Et(k,u),Z=ue(B.text,null,L);B.stateAfter&&(B.stateAfter=null);var te=B.text.match(/^\s*/)[0],de;if(!x&&!/\S/.test(B.text))de=0,y="not";else if(y=="smart"&&(de=k.mode.indent(T,B.text.slice(te.length),B.text),de==Se||de>150)){if(!x)return;y="prev"}y=="prev"?u>k.first?de=ue(Et(k,u-1).text,null,L):de=0:y=="add"?de=Z+l.options.indentUnit:y=="subtract"?de=Z-l.options.indentUnit:typeof y=="number"&&(de=Z+y),de=Math.max(0,de);var ge="",Pe=0;if(l.options.indentWithTabs)for(var _e=Math.floor(de/L);_e;--_e)Pe+=L,ge+=" ";if(Pe<de&&(ge+=Qe(de-Pe)),ge!=te)return Zf(k,ge,Oe(u,0),Oe(u,te.length),"+input"),B.stateAfter=null,!0;for(var We=0;We<k.sel.ranges.length;We++){var Xe=k.sel.ranges[We];if(Xe.head.line==u&&Xe.head.ch<te.length){var it=Oe(u,te.length);Yk(k,We,new Br(it,it));break}}}var di=null;function G1(l){di=l}function nC(l,u,y,x,k){var T=l.doc;l.display.shift=!1,x||(x=T.sel);var L=+new Date-200,B=k=="paste"||l.state.pasteIncoming>L,Z=Mr(u),te=null;if(B&&x.ranges.length>1)if(di&&di.text.join("\n")==u){if(x.ranges.length%di.text.length==0){te=[];for(var de=0;de<di.text.length;de++)te.push(T.splitLines(di.text[de]))}}else Z.length==x.ranges.length&&l.options.pasteLinesPerSelection&&(te=mt(Z,function(ht){return[ht]}));for(var ge=l.curOp.updateInput,Pe=x.ranges.length-1;Pe>=0;Pe--){var _e=x.ranges[Pe],We=_e.from(),Xe=_e.to();_e.empty()&&(y&&y>0?We=Oe(We.line,We.ch-y):l.state.overwrite&&!B?Xe=Oe(Xe.line,Math.min(Et(T,Xe.line).text.length,Xe.ch+Ze(Z).length)):B&&di&&di.lineWise&&di.text.join("\n")==Z.join("\n")&&(We=Xe=Oe(We.line,0)));var it={from:We,to:Xe,text:te?te[Pe%te.length]:Z,origin:k||(B?"paste":l.state.cutIncoming>L?"cut":"+input")};Yf(l.doc,it),rs(l,"inputRead",l,it)}u&&!B&&K8(l,u),Vf(l),l.curOp.updateInput<2&&(l.curOp.updateInput=ge),l.curOp.typing=!0,l.state.pasteIncoming=l.state.cutIncoming=-1}function q8(l,u){var y=l.clipboardData&&l.clipboardData.getData("Text");if(y)return l.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&u.hasFocus()&&La(u,function(){return nC(u,y,0,null,"paste")}),!0}function K8(l,u){if(!(!l.options.electricChars||!l.options.smartIndent))for(var y=l.doc.sel,x=y.ranges.length-1;x>=0;x--){var k=y.ranges[x];if(!(k.head.ch>100||x&&y.ranges[x-1].head.line==k.head.line)){var T=l.getModeAt(k.head),L=!1;if(T.electricChars){for(var B=0;B<T.electricChars.length;B++)if(u.indexOf(T.electricChars.charAt(B))>-1){L=c0(l,k.head.line,"smart");break}}else T.electricInput&&T.electricInput.test(Et(l.doc,k.head.line).text.slice(0,k.head.ch))&&(L=c0(l,k.head.line,"smart"));L&&rs(l,"electricInput",l,k.head.line)}}}function G8(l){for(var u=[],y=[],x=0;x<l.doc.sel.ranges.length;x++){var k=l.doc.sel.ranges[x].head.line,T={anchor:Oe(k,0),head:Oe(k+1,0)};y.push(T),u.push(l.getRange(T.anchor,T.head))}return{text:u,ranges:y}}function sC(l,u,y,x){l.setAttribute("autocorrect",y?"on":"off"),l.setAttribute("autocapitalize",x?"on":"off"),l.setAttribute("spellcheck",!!u)}function Y8(){var l=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),u=_("div",[l],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return h?l.style.width="1000px":l.setAttribute("wrap","off"),j&&(l.style.border="1px solid black"),u}function Yq(l){var u=l.optionHandlers,y=l.helpers={};l.prototype={constructor:l,focus:function(){ae(this).focus(),this.display.input.focus()},setOption:function(x,k){var T=this.options,L=T[x];T[x]==k&&x!="mode"||(T[x]=k,u.hasOwnProperty(x)&&ns(this,u[x])(this,k,L),be(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,k){this.state.keyMaps[k?"push":"unshift"](V1(x))},removeKeyMap:function(x){for(var k=this.state.keyMaps,T=0;T<k.length;++T)if(k[T]==x||k[T].name==x)return k.splice(T,1),!0},addOverlay:Ks(function(x,k){var T=x.token?x:l.getMode(this.options,x);if(T.startState)throw new Error("Overlays may not be stateful.");Ke(this.state.overlays,{mode:T,modeSpec:x,opaque:k&&k.opaque,priority:k&&k.priority||0},function(L){return L.priority}),this.state.modeGen++,pa(this)}),removeOverlay:Ks(function(x){for(var k=this.state.overlays,T=0;T<k.length;++T){var L=k[T].modeSpec;if(L==x||typeof x=="string"&&L.name==x){k.splice(T,1),this.state.modeGen++,pa(this);return}}}),indentLine:Ks(function(x,k,T){typeof k!="string"&&typeof k!="number"&&(k==null?k=this.options.smartIndent?"smart":"prev":k=k?"add":"subtract"),Ue(this.doc,x)&&c0(this,x,k,T)}),indentSelection:Ks(function(x){for(var k=this.doc.sel.ranges,T=-1,L=0;L<k.length;L++){var B=k[L];if(B.empty())B.head.line>T&&(c0(this,B.head.line,x,!0),T=B.head.line,L==this.doc.sel.primIndex&&Vf(this));else{var Z=B.from(),te=B.to(),de=Math.max(T,Z.line);T=Math.min(this.lastLine(),te.line-(te.ch?0:1))+1;for(var ge=de;ge<T;++ge)c0(this,ge,x);var Pe=this.doc.sel.ranges;Z.ch==0&&k.length==Pe.length&&Pe[L].from().ch>0&&Yk(this.doc,L,new Br(Z,Pe[L].to()),Ae)}}}),getTokenAt:function(x,k){return a_(this,x,k)},getLineTokens:function(x,k){return a_(this,Oe(x),k,!0)},getTokenTypeAt:function(x){x=hr(this.doc,x);var k=r_(this,Et(this.doc,x.line)),T=0,L=(k.length-1)/2,B=x.ch,Z;if(B==0)Z=k[2];else for(;;){var te=T+L>>1;if((te?k[te*2-1]:0)>=B)L=te;else if(k[te*2+1]<B)T=te+1;else{Z=k[te*2+2];break}}var de=Z?Z.indexOf("overlay "):-1;return de<0?Z:de==0?null:Z.slice(0,de-1)},getModeAt:function(x){var k=this.doc.mode;return k.innerMode?l.innerMode(k,this.getTokenAt(x).state).mode:k},getHelper:function(x,k){return this.getHelpers(x,k)[0]},getHelpers:function(x,k){var T=[];if(!y.hasOwnProperty(k))return T;var L=y[k],B=this.getModeAt(x);if(typeof B[k]=="string")L[B[k]]&&T.push(L[B[k]]);else if(B[k])for(var Z=0;Z<B[k].length;Z++){var te=L[B[k][Z]];te&&T.push(te)}else B.helperType&&L[B.helperType]?T.push(L[B.helperType]):L[B.name]&&T.push(L[B.name]);for(var de=0;de<L._global.length;de++){var ge=L._global[de];ge.pred(B,this)&&he(T,ge.val)==-1&&T.push(ge.val)}return T},getStateAfter:function(x,k){var T=this.doc;return x=JN(T,x==null?T.first+T.size-1:x),Im(this,x+1,k).state},cursorCoords:function(x,k){var T,L=this.doc.sel.primary();return x==null?T=L.head:typeof x=="object"?T=hr(this.doc,x):T=x?L.from():L.to(),ci(this,T,k||"page")},charCoords:function(x,k){return M1(this,hr(this.doc,x),k||"page")},coordsChar:function(x,k){return x=R_(this,x,k||"page"),_k(this,x.left,x.top)},lineAtHeight:function(x,k){return x=R_(this,{top:x,left:0},k||"page").top,fe(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,k,T){var L=!1,B;if(typeof x=="number"){var Z=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>Z&&(x=Z,L=!0),B=Et(this.doc,x)}else B=x;return T1(this,B,{top:0,left:0},k||"page",T||L).top+(L?this.doc.height-Nl(B):0)},defaultTextHeight:function(){return Bf(this.display)},defaultCharWidth:function(){return Uf(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,k,T,L,B){var Z=this.display;x=ci(this,hr(this.doc,x));var te=x.bottom,de=x.left;if(k.style.position="absolute",k.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(k),Z.sizer.appendChild(k),L=="over")te=x.top;else if(L=="above"||L=="near"){var ge=Math.max(Z.wrapper.clientHeight,this.doc.height),Pe=Math.max(Z.sizer.clientWidth,Z.lineSpace.clientWidth);(L=="above"||x.bottom+k.offsetHeight>ge)&&x.top>k.offsetHeight?te=x.top-k.offsetHeight:x.bottom+k.offsetHeight<=ge&&(te=x.bottom),de+k.offsetWidth>Pe&&(de=Pe-k.offsetWidth)}k.style.top=te+"px",k.style.left=k.style.right="",B=="right"?(de=Z.sizer.clientWidth-k.offsetWidth,k.style.right="0px"):(B=="left"?de=0:B=="middle"&&(de=(Z.sizer.clientWidth-k.offsetWidth)/2),k.style.left=de+"px"),T&&qV(this,{left:de,top:te,right:de+k.offsetWidth,bottom:te+k.offsetHeight})},triggerOnKeyDown:Ks(I8),triggerOnKeyPress:Ks(z8),triggerOnKeyUp:$8,triggerOnMouseDown:Ks(F8),execCommand:function(x){if(a0.hasOwnProperty(x))return a0[x].call(null,this)},triggerElectric:Ks(function(x){K8(this,x)}),findPosH:function(x,k,T,L){var B=1;k<0&&(B=-1,k=-k);for(var Z=hr(this.doc,x),te=0;te<k&&(Z=aC(this.doc,Z,B,T,L),!Z.hitSide);++te);return Z},moveH:Ks(function(x,k){var T=this;this.extendSelectionsBy(function(L){return T.display.shift||T.doc.extend||L.empty()?aC(T.doc,L.head,x,k,T.options.rtlMoveVisually):x<0?L.from():L.to()},Le)}),deleteH:Ks(function(x,k){var T=this.doc.sel,L=this.doc;T.somethingSelected()?L.replaceSelection("",null,"+delete"):Jf(this,function(B){var Z=aC(L,B.head,x,k,!1);return x<0?{from:Z,to:B.head}:{from:B.head,to:Z}})}),findPosV:function(x,k,T,L){var B=1,Z=L;k<0&&(B=-1,k=-k);for(var te=hr(this.doc,x),de=0;de<k;++de){var ge=ci(this,te,"div");if(Z==null?Z=ge.left:ge.left=Z,te=Z8(this,ge,B,T),te.hitSide)break}return te},moveV:Ks(function(x,k){var T=this,L=this.doc,B=[],Z=!this.display.shift&&!L.extend&&L.sel.somethingSelected();if(L.extendSelectionsBy(function(de){if(Z)return x<0?de.from():de.to();var ge=ci(T,de.head,"div");de.goalColumn!=null&&(ge.left=de.goalColumn),B.push(ge.left);var Pe=Z8(T,ge,x,k);return k=="page"&&de==L.sel.primary()&&$k(T,M1(T,Pe,"div").top-ge.top),Pe},Le),B.length)for(var te=0;te<L.sel.ranges.length;te++)L.sel.ranges[te].goalColumn=B[te]}),findWordAt:function(x){var k=this.doc,T=Et(k,x.line).text,L=x.ch,B=x.ch;if(T){var Z=this.getHelper(x,"wordChars");(x.sticky=="before"||B==T.length)&&L?--L:++B;for(var te=T.charAt(L),de=zt(te,Z)?function(ge){return zt(ge,Z)}:/\s/.test(te)?function(ge){return/\s/.test(ge)}:function(ge){return!/\s/.test(ge)&&!zt(ge)};L>0&&de(T.charAt(L-1));)--L;for(;B<T.length&&de(T.charAt(B));)++B}return new Br(Oe(x.line,L),Oe(x.line,B))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?G(this.display.cursorDiv,"CodeMirror-overwrite"):z(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==X(se(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ks(function(x,k){Wm(this,x,k)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-Wi(this)-this.display.barHeight,width:x.scrollWidth-Wi(this)-this.display.barWidth,clientHeight:Sk(this),clientWidth:ed(this)}},scrollIntoView:Ks(function(x,k){x==null?(x={from:this.doc.sel.primary().head,to:null},k==null&&(k=this.options.cursorScrollMargin)):typeof x=="number"?x={from:Oe(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=k||0,x.from.line!=null?KV(this,x):U_(this,x.from,x.to,x.margin)}),setSize:Ks(function(x,k){var T=this,L=function(Z){return typeof Z=="number"||/^\d+$/.test(String(Z))?Z+"px":Z};x!=null&&(this.display.wrapper.style.width=L(x)),k!=null&&(this.display.wrapper.style.height=L(k)),this.options.lineWrapping&&P_(this);var B=this.display.viewFrom;this.doc.iter(B,this.display.viewTo,function(Z){if(Z.widgets){for(var te=0;te<Z.widgets.length;te++)if(Z.widgets[te].noHScroll){Ec(T,B,"widget");break}}++B}),this.curOp.forceUpdate=!0,be(this,"refresh",this)}),operation:function(x){return La(this,x)},startOperation:function(){return od(this)},endOperation:function(){return id(this)},refresh:Ks(function(){var x=this.display.cachedTextHeight;pa(this),this.curOp.forceUpdate=!0,Bm(this),Wm(this,this.doc.scrollLeft,this.doc.scrollTop),Hk(this.display),(x==null||Math.abs(x-Bf(this.display))>.5||this.options.lineWrapping)&&Dk(this),be(this,"refresh",this)}),swapDoc:Ks(function(x){var k=this.doc;return k.cm=null,this.state.selectingText&&this.state.selectingText(),n8(this,x),Bm(this),this.display.input.reset(),Wm(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,rs(this,"swapDoc",this,k),k}),phrase:function(x){var k=this.options.phrases;return k&&Object.prototype.hasOwnProperty.call(k,x)?k[x]:x},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}},st(l),l.registerHelper=function(x,k,T){y.hasOwnProperty(x)||(y[x]=l[x]={_global:[]}),y[x][k]=T},l.registerGlobalHelper=function(x,k,T,L){l.registerHelper(x,k,L),y[x]._global.push({pred:T,val:L})}}function aC(l,u,y,x,k){var T=u,L=y,B=Et(l,u.line),Z=k&&l.direction=="rtl"?-y:y;function te(){var Ct=u.line+Z;return Ct<l.first||Ct>=l.first+l.size?!1:(u=new Oe(Ct,u.ch,u.sticky),B=Et(l,Ct))}function de(Ct){var pt;if(x=="codepoint"){var Rt=B.text.charCodeAt(u.ch+(y>0?0:-1));if(isNaN(Rt))pt=null;else{var tr=y>0?Rt>=55296&&Rt<56320:Rt>=56320&&Rt<57343;pt=new Oe(u.line,Math.max(0,Math.min(B.text.length,u.ch+y*(tr?2:1))),-y)}}else k?pt=Mq(l.cm,B,u,y):pt=Xk(B,u,y);if(pt==null)if(!Ct&&te())u=Qk(k,l.cm,B,u.line,Z);else return!1;else u=pt;return!0}if(x=="char"||x=="codepoint")de();else if(x=="column")de(!0);else if(x=="word"||x=="group")for(var ge=null,Pe=x=="group",_e=l.cm&&l.cm.getHelper(u,"wordChars"),We=!0;!(y<0&&!de(!We));We=!1){var Xe=B.text.charAt(u.ch)||"\n",it=zt(Xe,_e)?"w":Pe&&Xe=="\n"?"n":!Pe||/\s/.test(Xe)?null:"p";if(Pe&&!We&&!it&&(it="s"),ge&&ge!=it){y<0&&(y=1,de(),u.sticky="after");break}if(it&&(ge=it),y>0&&!de(!We))break}var ht=B1(l,u,T,L,!0);return mr(T,ht)&&(ht.hitSide=!0),ht}function Z8(l,u,y,x){var k=l.doc,T=u.left,L;if(x=="page"){var B=Math.min(l.display.wrapper.clientHeight,ae(l).innerHeight||k(l).documentElement.clientHeight),Z=Math.max(B-.5*Bf(l.display),3);L=(y>0?u.bottom:u.top)+y*Z}else x=="line"&&(L=y>0?u.bottom+3:u.top-3);for(var te;te=_k(l,T,L),!!te.outside;){if(y<0?L<=0:L>=k.height){te.hitSide=!0;break}L+=y*5}return te}var Gr=function(l){this.cm=l,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Gr.prototype.init=function(l){var u=this,y=this,x=y.cm,k=y.div=l.lineDiv;k.contentEditable=!0,sC(k,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function T(B){for(var Z=B.target;Z;Z=Z.parentNode){if(Z==k)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Z.className))break}return!1}Te(k,"paste",function(B){!T(B)||De(x,B)||q8(B,x)||f<=11&&setTimeout(ns(x,function(){return u.updateFromDOM()}),20)}),Te(k,"compositionstart",function(B){u.composing={data:B.data,done:!1}}),Te(k,"compositionupdate",function(B){u.composing||(u.composing={data:B.data,done:!1})}),Te(k,"compositionend",function(B){u.composing&&(B.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),Te(k,"touchstart",function(){return y.forceCompositionEnd()}),Te(k,"input",function(){u.composing||u.readFromDOMSoon()});function L(B){if(!(!T(B)||De(x,B))){if(x.somethingSelected())G1({lineWise:!1,text:x.getSelections()}),B.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Z=G8(x);G1({lineWise:!0,text:Z.text}),B.type=="cut"&&x.operation(function(){x.setSelections(Z.ranges,0,Ae),x.replaceSelection("",null,"cut")})}else return;if(B.clipboardData){B.clipboardData.clearData();var te=di.text.join("\n");if(B.clipboardData.setData("Text",te),B.clipboardData.getData("Text")==te){B.preventDefault();return}}var de=Y8(),ge=de.firstChild;sC(ge),x.display.lineSpace.insertBefore(de,x.display.lineSpace.firstChild),ge.value=di.text.join("\n");var Pe=X(ee(k));q(ge),setTimeout(function(){x.display.lineSpace.removeChild(de),Pe.focus(),Pe==k&&y.showPrimarySelection()},50)}}Te(k,"copy",L),Te(k,"cut",L)},Gr.prototype.screenReaderLabelChanged=function(l){l?this.div.setAttribute("aria-label",l):this.div.removeAttribute("aria-label")},Gr.prototype.prepareSelection=function(){var l=F_(this.cm,!1);return l.focus=X(ee(this.div))==this.div,l},Gr.prototype.showSelection=function(l,u){!l||!this.cm.display.view.length||((l.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(l))},Gr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gr.prototype.showPrimarySelection=function(){var l=this.getSelection(),u=this.cm,y=u.doc.sel.primary(),x=y.from(),k=y.to();if(u.display.viewTo==u.display.viewFrom||x.line>=u.display.viewTo||k.line<u.display.viewFrom){l.removeAllRanges();return}var T=Y1(u,l.anchorNode,l.anchorOffset),L=Y1(u,l.focusNode,l.focusOffset);if(!(T&&!T.bad&&L&&!L.bad&>(Sc(T,L),x)==0&>(Ps(T,L),k)==0)){var B=u.display.view,Z=x.line>=u.display.viewFrom&&X8(u,x)||{node:B[0].measure.map[2],offset:0},te=k.line<u.display.viewTo&&X8(u,k);if(!te){var de=B[B.length-1].measure,ge=de.maps?de.maps[de.maps.length-1]:de.map;te={node:ge[ge.length-1],offset:ge[ge.length-2]-ge[ge.length-3]}}if(!Z||!te){l.removeAllRanges();return}var Pe=l.rangeCount&&l.getRangeAt(0),_e;try{_e=V(Z.node,Z.offset,te.offset,te.node)}catch(We){}_e&&(!a&&u.state.focused?(l.collapse(Z.node,Z.offset),_e.collapsed||(l.removeAllRanges(),l.addRange(_e))):(l.removeAllRanges(),l.addRange(_e)),Pe&&l.anchorNode==null?l.addRange(Pe):a&&this.startGracePeriod()),this.rememberSelection()}},Gr.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)},Gr.prototype.showMultipleSelections=function(l){W(this.cm.display.cursorDiv,l.cursors),W(this.cm.display.selectionDiv,l.selection)},Gr.prototype.rememberSelection=function(){var l=this.getSelection();this.lastAnchorNode=l.anchorNode,this.lastAnchorOffset=l.anchorOffset,this.lastFocusNode=l.focusNode,this.lastFocusOffset=l.focusOffset},Gr.prototype.selectionInEditor=function(){var l=this.getSelection();if(!l.rangeCount)return!1;var u=l.getRangeAt(0).commonAncestorContainer;return U(this.div,u)},Gr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||X(ee(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Gr.prototype.blur=function(){this.div.blur()},Gr.prototype.getField=function(){return this.div},Gr.prototype.supportsTouch=function(){return!0},Gr.prototype.receivedFocus=function(){var l=this,u=this;this.selectionInEditor()?setTimeout(function(){return l.pollSelection()},20):La(this.cm,function(){return u.cm.curOp.selectionChanged=!0});function y(){u.cm.state.focused&&(u.pollSelection(),u.polling.set(u.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Gr.prototype.selectionChanged=function(){var l=this.getSelection();return l.anchorNode!=this.lastAnchorNode||l.anchorOffset!=this.lastAnchorOffset||l.focusNode!=this.lastFocusNode||l.focusOffset!=this.lastFocusOffset},Gr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var l=this.getSelection(),u=this.cm;if(E&&g&&this.cm.display.gutterSpecs.length&&Zq(l.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=Y1(u,l.anchorNode,l.anchorOffset),x=Y1(u,l.focusNode,l.focusOffset);y&&x&&La(u,function(){Ds(u.doc,_c(y,x),Ae),(y.bad||x.bad)&&(u.curOp.selectionChanged=!0)})}}},Gr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var l=this.cm,u=l.display,y=l.doc.sel.primary(),x=y.from(),k=y.to();if(x.ch==0&&x.line>l.firstLine()&&(x=Oe(x.line-1,Et(l.doc,x.line-1).length)),k.ch==Et(l.doc,k.line).text.length&&k.line<l.lastLine()&&(k=Oe(k.line+1,0)),x.line<u.viewFrom||k.line>u.viewTo-1)return!1;var T,L,B;x.line==u.viewFrom||(T=nd(l,x.line))==0?(L=ne(u.view[0].line),B=u.view[0].node):(L=ne(u.view[T].line),B=u.view[T-1].node.nextSibling);var Z=nd(l,k.line),te,de;if(Z==u.view.length-1?(te=u.viewTo-1,de=u.lineDiv.lastChild):(te=ne(u.view[Z+1].line)-1,de=u.view[Z+1].node.previousSibling),!B)return!1;for(var ge=l.doc.splitLines(Xq(l,B,de,L,te)),Pe=ot(l.doc,Oe(L,0),Oe(te,Et(l.doc,te).text.length));ge.length>1&&Pe.length>1;)if(Ze(ge)==Ze(Pe))ge.pop(),Pe.pop(),te--;else if(ge[0]==Pe[0])ge.shift(),Pe.shift(),L++;else break;for(var _e=0,We=0,Xe=ge[0],it=Pe[0],ht=Math.min(Xe.length,it.length);_e<ht&&Xe.charCodeAt(_e)==it.charCodeAt(_e);)++_e;for(var Ct=Ze(ge),pt=Ze(Pe),Rt=Math.min(Ct.length-(ge.length==1?_e:0),pt.length-(Pe.length==1?_e:0));We<Rt&&Ct.charCodeAt(Ct.length-We-1)==pt.charCodeAt(pt.length-We-1);)++We;if(ge.length==1&&Pe.length==1&&L==x.line)for(;_e&&_e>x.ch&&Ct.charCodeAt(Ct.length-We-1)==pt.charCodeAt(pt.length-We-1);)_e--,We++;ge[ge.length-1]=Ct.slice(0,Ct.length-We).replace(/^\u200b+/,""),ge[0]=ge[0].slice(_e).replace(/\u200b+$/,"");var tr=Oe(L,_e),Qt=Oe(te,Pe.length?Ze(Pe).length-We:0);if(ge.length>1||ge[0]||gt(tr,Qt))return Zf(l.doc,ge,tr,Qt,"+input"),!0},Gr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gr.prototype.reset=function(){this.forceCompositionEnd()},Gr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gr.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))},Gr.prototype.updateFromDOM=function(){var l=this;(this.cm.isReadOnly()||!this.pollContent())&&La(this.cm,function(){return pa(l.cm)})},Gr.prototype.setUneditable=function(l){l.contentEditable="false"},Gr.prototype.onKeyPress=function(l){l.charCode==0||this.composing||(l.preventDefault(),this.cm.isReadOnly()||ns(this.cm,nC)(this.cm,String.fromCharCode(l.charCode==null?l.keyCode:l.charCode),0))},Gr.prototype.readOnlyChanged=function(l){this.div.contentEditable=String(l!="nocursor")},Gr.prototype.onContextMenu=function(){},Gr.prototype.resetPosition=function(){},Gr.prototype.needsContentAttribute=!0;function X8(l,u){var y=jk(l,u.line);if(!y||y.hidden)return null;var x=Et(l.doc,u.line),k=E_(y,x,u.line),T=Me(x,l.doc.direction),L="left";if(T){var B=Mt(T,u.ch);L=B%2?"right":"left"}var Z=T_(k.map,u.ch,L);return Z.offset=Z.collapse=="right"?Z.end:Z.start,Z}function Zq(l){for(var u=l;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function th(l,u){return u&&(l.bad=!0),l}function Xq(l,u,y,x,k){var T="",L=!1,B=l.doc.lineSeparator(),Z=!1;function te(_e){return function(We){return We.id==_e}}function de(){L&&(T+=B,Z&&(T+=B),L=Z=!1)}function ge(_e){_e&&(de(),T+=_e)}function Pe(_e){if(_e.nodeType==1){var We=_e.getAttribute("cm-text");if(We){ge(We);return}var Xe=_e.getAttribute("cm-marker"),it;if(Xe){var ht=l.findMarks(Oe(x,0),Oe(k+1,0),te(+Xe));ht.length&&(it=ht[0].find(0))&&ge(ot(l.doc,it.from,it.to).join(B));return}if(_e.getAttribute("contenteditable")=="false")return;var Ct=/^(pre|div|p|li|table|br)$/i.test(_e.nodeName);if(!/^br$/i.test(_e.nodeName)&&_e.textContent.length==0)return;Ct&&de();for(var pt=0;pt<_e.childNodes.length;pt++)Pe(_e.childNodes[pt]);/^(pre|p)$/i.test(_e.nodeName)&&(Z=!0),Ct&&(L=!0)}else _e.nodeType==3&&ge(_e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Pe(u),u!=y;)u=u.nextSibling,Z=!1;return T}function Y1(l,u,y){var x;if(u==l.display.lineDiv){if(x=l.display.lineDiv.childNodes[y],!x)return th(l.clipPos(Oe(l.display.viewTo-1)),!0);u=null,y=0}else for(x=u;;x=x.parentNode){if(!x||x==l.display.lineDiv)return null;if(x.parentNode&&x.parentNode==l.display.lineDiv)break}for(var k=0;k<l.display.view.length;k++){var T=l.display.view[k];if(T.node==x)return Qq(T,u,y)}}function Qq(l,u,y){var x=l.text.firstChild,k=!1;if(!u||!U(x,u))return th(Oe(ne(l.line),0),!0);if(u==x&&(k=!0,u=x.childNodes[y],y=0,!u)){var T=l.rest?Ze(l.rest):l.line;return th(Oe(ne(T),T.text.length),k)}var L=u.nodeType==3?u:null,B=u;for(!L&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(L=u.firstChild,y&&(y=L.nodeValue.length));B.parentNode!=x;)B=B.parentNode;var Z=l.measure,te=Z.maps;function de(it,ht,Ct){for(var pt=-1;pt<(te?te.length:0);pt++)for(var Rt=pt<0?Z.map:te[pt],tr=0;tr<Rt.length;tr+=3){var Qt=Rt[tr+2];if(Qt==it||Qt==ht){var yr=ne(pt<0?l.line:l.rest[pt]),on=Rt[tr]+Ct;return(Ct<0||Qt!=it)&&(on=Rt[tr+(Ct?1:0)]),Oe(yr,on)}}}var ge=de(L,B,y);if(ge)return th(ge,k);for(var Pe=B.nextSibling,_e=L?L.nodeValue.length-y:0;Pe;Pe=Pe.nextSibling){if(ge=de(Pe,Pe.firstChild,0),ge)return th(Oe(ge.line,ge.ch-_e),k);_e+=Pe.textContent.length}for(var We=B.previousSibling,Xe=y;We;We=We.previousSibling){if(ge=de(We,We.firstChild,-1),ge)return th(Oe(ge.line,ge.ch+Xe),k);Xe+=We.textContent.length}}var Ln=function(l){this.cm=l,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ln.prototype.init=function(l){var u=this,y=this,x=this.cm;this.createField(l);var k=this.textarea;l.wrapper.insertBefore(this.wrapper,l.wrapper.firstChild),j&&(k.style.width="0px"),Te(k,"input",function(){d&&f>=9&&u.hasSelection&&(u.hasSelection=null),y.poll()}),Te(k,"paste",function(L){De(x,L)||q8(L,x)||(x.state.pasteIncoming=+new Date,y.fastPoll())});function T(L){if(!De(x,L)){if(x.somethingSelected())G1({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var B=G8(x);G1({lineWise:!0,text:B.text}),L.type=="cut"?x.setSelections(B.ranges,null,Ae):(y.prevInput="",k.value=B.text.join("\n"),q(k))}else return;L.type=="cut"&&(x.state.cutIncoming=+new Date)}}Te(k,"cut",T),Te(k,"copy",T),Te(l.scroller,"paste",function(L){if(!(_l(l,L)||De(x,L))){if(!k.dispatchEvent){x.state.pasteIncoming=+new Date,y.focus();return}var B=new Event("paste");B.clipboardData=L.clipboardData,k.dispatchEvent(B)}}),Te(l.lineSpace,"selectstart",function(L){_l(l,L)||at(L)}),Te(k,"compositionstart",function(){var L=x.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:L,range:x.markText(L,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Te(k,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},Ln.prototype.createField=function(l){this.wrapper=Y8(),this.textarea=this.wrapper.firstChild;var u=this.cm.options;sC(this.textarea,u.spellcheck,u.autocorrect,u.autocapitalize)},Ln.prototype.screenReaderLabelChanged=function(l){l?this.textarea.setAttribute("aria-label",l):this.textarea.removeAttribute("aria-label")},Ln.prototype.prepareSelection=function(){var l=this.cm,u=l.display,y=l.doc,x=F_(l);if(l.options.moveInputWithCursor){var k=ci(l,y.sel.primary().head,"div"),T=u.wrapper.getBoundingClientRect(),L=u.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,k.top+L.top-T.top)),x.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,k.left+L.left-T.left))}return x},Ln.prototype.showSelection=function(l){var u=this.cm,y=u.display;W(y.cursorDiv,l.cursors),W(y.selectionDiv,l.selection),l.teTop!=null&&(this.wrapper.style.top=l.teTop+"px",this.wrapper.style.left=l.teLeft+"px")},Ln.prototype.reset=function(l){if(!(this.contextMenuPending||this.composing&&l)){var u=this.cm;if(this.resetting=!0,u.somethingSelected()){this.prevInput="";var y=u.getSelection();this.textarea.value=y,u.state.focused&&q(this.textarea),d&&f>=9&&(this.hasSelection=y)}else l||(this.prevInput=this.textarea.value="",d&&f>=9&&(this.hasSelection=null));this.resetting=!1}},Ln.prototype.getField=function(){return this.textarea},Ln.prototype.supportsTouch=function(){return!1},Ln.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!N||X(ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(l){}},Ln.prototype.blur=function(){this.textarea.blur()},Ln.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ln.prototype.receivedFocus=function(){this.slowPoll()},Ln.prototype.slowPoll=function(){var l=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){l.poll(),l.cm.state.focused&&l.slowPoll()})},Ln.prototype.fastPoll=function(){var l=!1,u=this;u.pollingFast=!0;function y(){var x=u.poll();!x&&!l?(l=!0,u.polling.set(60,y)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,y)},Ln.prototype.poll=function(){var l=this,u=this.cm,y=this.textarea,x=this.prevInput;if(this.contextMenuPending||this.resetting||!u.state.focused||Jt(y)&&!x&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var k=y.value;if(k==x&&!u.somethingSelected())return!1;if(d&&f>=9&&this.hasSelection===k||M&&/[\uf700-\uf7ff]/.test(k))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var T=k.charCodeAt(0);if(T==8203&&!x&&(x=""),T==8666)return this.reset(),this.cm.execCommand("undo")}for(var L=0,B=Math.min(x.length,k.length);L<B&&x.charCodeAt(L)==k.charCodeAt(L);)++L;return La(u,function(){nC(u,k.slice(L),x.length-L,null,l.composing?"*compose":null),k.length>1e3||k.indexOf("\n")>-1?y.value=l.prevInput="":l.prevInput=k,l.composing&&(l.composing.range.clear(),l.composing.range=u.markText(l.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ln.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ln.prototype.onKeyPress=function(){d&&f>=9&&(this.hasSelection=null),this.fastPoll()},Ln.prototype.onContextMenu=function(l){var u=this,y=u.cm,x=y.display,k=u.textarea;u.contextMenuPending&&u.contextMenuPending();var T=rd(y,l),L=x.scroller.scrollTop;if(!T||b)return;var B=y.options.resetSelectionOnContextMenu;B&&y.doc.sel.contains(T)==-1&&ns(y,Ds)(y.doc,_c(T),Ae);var Z=k.style.cssText,te=u.wrapper.style.cssText,de=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",k.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(l.clientY-de.top-5)+"px; left: "+(l.clientX-de.left-5)+"px;\n z-index: 1000; background: "+(d?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var ge;h&&(ge=k.ownerDocument.defaultView.scrollY),x.input.focus(),h&&k.ownerDocument.defaultView.scrollTo(null,ge),x.input.reset(),y.somethingSelected()||(k.value=u.prevInput=" "),u.contextMenuPending=_e,x.selForContextMenu=y.doc.sel,clearTimeout(x.detectingSelectAll);function Pe(){if(k.selectionStart!=null){var Xe=y.somethingSelected(),it=""+(Xe?k.value:"");k.value="⇚",k.value=it,u.prevInput=Xe?"":"",k.selectionStart=1,k.selectionEnd=it.length,x.selForContextMenu=y.doc.sel}}function _e(){if(u.contextMenuPending==_e&&(u.contextMenuPending=!1,u.wrapper.style.cssText=te,k.style.cssText=Z,d&&f<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=L),k.selectionStart!=null)){(!d||d&&f<9)&&Pe();var Xe=0,it=function(){x.selForContextMenu==y.doc.sel&&k.selectionStart==0&&k.selectionEnd>0&&u.prevInput==""?ns(y,g8)(y):Xe++<10?x.detectingSelectAll=setTimeout(it,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(it,200)}}if(d&&f>=9&&Pe(),$){Nt(l);var We=function(){xe(window,"mouseup",We),setTimeout(_e,20)};Te(window,"mouseup",We)}else setTimeout(_e,50)},Ln.prototype.readOnlyChanged=function(l){l||this.reset(),this.textarea.disabled=l=="nocursor",this.textarea.readOnly=!!l},Ln.prototype.setUneditable=function(){},Ln.prototype.needsContentAttribute=!1;function Jq(l,u){if(u=u?le(u):{},u.value=l.value,!u.tabindex&&l.tabIndex&&(u.tabindex=l.tabIndex),!u.placeholder&&l.placeholder&&(u.placeholder=l.placeholder),u.autofocus==null){var y=X(ee(l));u.autofocus=y==l||l.getAttribute("autofocus")!=null&&y==document.body}function x(){l.value=B.getValue()}var k;if(l.form&&(Te(l.form,"submit",x),!u.leaveSubmitMethodAlone)){var T=l.form;k=T.submit;try{var L=T.submit=function(){x(),T.submit=k,T.submit(),T.submit=L}}catch(Z){}}u.finishInit=function(Z){Z.save=x,Z.getTextArea=function(){return l},Z.toTextArea=function(){Z.toTextArea=isNaN,x(),l.parentNode.removeChild(Z.getWrapperElement()),l.style.display="",l.form&&(xe(l.form,"submit",x),!u.leaveSubmitMethodAlone&&typeof l.form.submit=="function"&&(l.form.submit=k))}},l.style.display="none";var B=mn(function(Z){return l.parentNode.insertBefore(Z,l.nextSibling)},u);return B}function eK(l){l.off=xe,l.on=Te,l.wheelEventPixels=iq,l.Doc=ma,l.splitLines=Mr,l.countColumn=ue,l.findColumn=Ee,l.isWordChar=Ge,l.Pass=Se,l.signal=be,l.Line=zf,l.changeEnd=Tc,l.scrollbarModel=q_,l.Pos=Oe,l.cmpPos=gt,l.modes=nt,l.mimeModes=ye,l.resolveMode=ut,l.getMode=Pt,l.modeExtensions=or,l.extendMode=Fr,l.copyState=Xr,l.startState=fn,l.innerMode=ys,l.commands=a0,l.keyMap=Ml,l.keyName=D8,l.isModifierKey=M8,l.lookupKey=Qf,l.normalizeKeyMap=Tq,l.StringStream=Kt,l.SharedTextMarker=r0,l.TextMarker=Pc,l.LineWidget=t0,l.e_preventDefault=at,l.e_stopPropagation=wt,l.e_stop=Nt,l.addClass=G,l.contains=U,l.rmClass=z,l.keyNames=Dc}Vq(mn),Yq(mn);var tK="iter insert remove copy getEditor constructor".split(" ");for(var Z1 in ma.prototype)ma.prototype.hasOwnProperty(Z1)&&he(tK,Z1)<0&&(mn.prototype[Z1]=function(l){return function(){return l.apply(this.doc,arguments)}}(ma.prototype[Z1]));return st(ma),mn.inputStyles={textarea:Ln,contenteditable:Gr},mn.defineMode=function(l){!mn.defaults.mode&&l!="null"&&(mn.defaults.mode=l),Ie.apply(this,arguments)},mn.defineMIME=qe,mn.defineMode("null",function(){return{token:function(l){return l.skipToEnd()}}}),mn.defineMIME("text/plain","null"),mn.defineExtension=function(l,u){mn.prototype[l]=u},mn.defineDocExtension=function(l,u){ma.prototype[l]=u},mn.fromTextArea=Jq,eK(mn),mn.version="5.65.16",mn})})(DB);var wc=DB.exports;const Mg=Fi(wc),fye=({prefix:e="cm-",isWrapped:t=!1,isDark:r,isLargeView:n,isCommand:a,webRequestMethod:o,autoHideScrollbar:i,searchTerm:c,maxHeight:d,isShowMore:f=!1,language:h,value:p})=>{const[g,S]=m.useState([]),[b,v]=m.useState(!1),w=m.useRef([]);return m.useEffect(()=>{pe(void 0,null,function*(){const j=Mg.findModeByName(h);try{j&&j.mode&&(yield hye("codemirror/mode/".concat(j.mode,"/").concat(j.mode,".js"))),v(!0)}catch(E){console.error("Error loading CodeMirror mode:",E),v(!1)}})},[h]),m.useEffect(()=>{if(!b)return;const C=[];let j=0;const E=N=>{var O;let M="",P=null;const D=($,H)=>{C.push(s.jsx("span",{className:H?"".concat(e).concat(H):"",children:$},j++))},A=((O=Mg.findModeByName(h))==null?void 0:O.mime)||"text/plain";if(h==="json")try{N=JSON.stringify(JSON.parse(N),null,2)}catch($){}Mg.runMode(N,A,($,H)=>{P===H?(M+=$,P=H):(M&&D(M,P),M=$,P=H)}),D(M,P)};if(c&&c.length>1){const N=s$(c),M=new RegExp("(".concat(N,")"),"gi"),P=p.split(M);w.current=[],P.forEach(D=>{if(D.toLowerCase()===c.toLowerCase()){const A=m.createRef();w.current.push(A),C.push(s.jsx("span",{className:"bg-yellow-300 dark:bg-amber-400 dark:text-black search-pulse-animation",ref:Ii(A),children:D},"found-".concat(j++)))}else E(D)})}else E(p);S(C)},[b,h,e,c,p]),m.useEffect(()=>{var C;w.current.length>0&&((C=w.current[0].current)==null||C.scrollIntoView({behavior:"smooth",block:"center"}))},[g]),b?s.jsx(em,{className:"".concat(f?"code-scroll-x pb-2":""),options:{overflow:{x:f?"scroll":"hidden",y:"scroll"},scrollbars:{theme:r?"os-theme-light":"os-theme-dark",autoHide:i?"move":"never"}},style:{maxHeight:d||(n?"calc(100vh - 250px)":f?200:120),maxWidth:"100%"},children:s.jsxs("code",{className:"".concat(t?"whitespace-pre-wrap":"whitespace-pre"," !bg-transparent ").concat(r?"code-is-dark":"code-is-light"),children:[a&&s.jsx("span",{className:"mr-1 px-1 bg-gray-100 dark:bg-gray-800 text-slate-400 dark:text-slate-200",children:">_"}),o&&s.jsx("span",{className:"mr-1 px-1 bg-gray-100 text-slate-400",children:o}),g,!f&&s.jsx("span",{className:"select-none",children:"..."})]})}):null},la=m.memo(fye);function hye(e){switch(e){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return me(()=>import("./apl-CzDVCub_.js").then(t=>t.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return me(()=>import("./asciiarmor-CeUw2yOm.js").then(t=>t.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return me(()=>import("./asn.1-RYTQDxpi.js").then(t=>t.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return me(()=>import("./asterisk-DWti2dKa.js").then(t=>t.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return me(()=>import("./brainfuck-CKGQuvB0.js").then(t=>t.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return me(()=>import("./clike-g6FUCYDC.js").then(t=>t.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return me(()=>import("./clojure-DGRWQn0T.js").then(t=>t.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return me(()=>import("./cmake-VLXufrYB.js").then(t=>t.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return me(()=>import("./cobol-BPjXNWyc.js").then(t=>t.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return me(()=>import("./coffeescript-CLSggxac.js").then(t=>t.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return me(()=>import("./commonlisp-C8F8CJ2J.js").then(t=>t.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return me(()=>import("./crystal-C71xiJ1n.js").then(t=>t.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return me(()=>import("./css-Bjqzbvs-.js").then(t=>t.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return me(()=>import("./cypher-CnhKi2Fg.js").then(t=>t.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return me(()=>import("./d-Din3ziS4.js").then(t=>t.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return me(()=>import("./dart-Mfk-3_r9.js").then(t=>t.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return me(()=>import("./diff-D27_STGC.js").then(t=>t.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return me(()=>import("./django-DXRi3JWy.js").then(t=>t.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return me(()=>import("./dockerfile-HtUEG7E5.js").then(t=>t.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return me(()=>import("./dtd-CX3eTDWk.js").then(t=>t.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return me(()=>import("./dylan-Bdp3H-XI.js").then(t=>t.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return me(()=>import("./ebnf-D5U-LOOS.js").then(t=>t.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return me(()=>import("./ecl-DgA6U7pV.js").then(t=>t.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return me(()=>import("./eiffel-Duvqmsh7.js").then(t=>t.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return me(()=>import("./elm-DRcDJiVP.js").then(t=>t.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return me(()=>import("./erlang-e8x5jcjM.js").then(t=>t.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return me(()=>import("./factor-DoxmjmTq.js").then(t=>t.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return me(()=>import("./fcl-DGB6ogNx.js").then(t=>t.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return me(()=>import("./forth-D1rHqKe2.js").then(t=>t.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return me(()=>import("./fortran-CMtZ7yMD.js").then(t=>t.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return me(()=>import("./gas-CAm8sCUO.js").then(t=>t.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return me(()=>import("./gfm-BzJZFp8y.js").then(t=>t.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return me(()=>import("./gherkin-DVo1_IZj.js").then(t=>t.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return me(()=>import("./go-D83G15d5.js").then(t=>t.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return me(()=>import("./groovy-CpLKJfUx.js").then(t=>t.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return me(()=>import("./haml-CeZp8xKs.js").then(t=>t.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return me(()=>import("./handlebars-DadgnbgZ.js").then(t=>t.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return me(()=>import("./haskell-B7obNjb8.js").then(t=>t.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return me(()=>import("./haskell-literate-B8nBdFC8.js").then(t=>t.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return me(()=>import("./haxe-CWefB8GC.js").then(t=>t.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return me(()=>import("./htmlembedded-Ce2lDNbz.js").then(t=>t.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return me(()=>import("./htmlmixed-B5DGVdct.js").then(t=>t.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return me(()=>import("./http-BcUljGbk.js").then(t=>t.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return me(()=>import("./idl-BhKLGjrJ.js").then(t=>t.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return me(()=>Promise.resolve().then(()=>VB),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return me(()=>import("./jinja2-CNinVFda.js").then(t=>t.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return me(()=>import("./jsx-CMWQXxas.js").then(t=>t.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return me(()=>import("./julia-CYNBv4rw.js").then(t=>t.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return me(()=>import("./livescript-A2F6tx_D.js").then(t=>t.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return me(()=>import("./lua-CTXIH3cU.js").then(t=>t.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return me(()=>import("./markdown-KwFqhsKB.js").then(t=>t.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return me(()=>import("./mathematica-CiM9MBci.js").then(t=>t.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return me(()=>import("./mbox-Bxt4f46I.js").then(t=>t.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return me(()=>import("./mirc-ByDW7p4I.js").then(t=>t.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return me(()=>import("./mllike-BAlcfRf1.js").then(t=>t.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return me(()=>import("./modelica-D9omXAOx.js").then(t=>t.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return me(()=>import("./mscgen-nf9ml-4a.js").then(t=>t.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return me(()=>import("./mumps-tfztWvp3.js").then(t=>t.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return me(()=>import("./nginx-B4H2sQQC.js").then(t=>t.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return me(()=>import("./nsis-DCloHAm3.js").then(t=>t.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return me(()=>import("./ntriples-C-OwBh-N.js").then(t=>t.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return me(()=>import("./octave-Ci8ZnXFM.js").then(t=>t.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return me(()=>import("./oz-CJAGy9QM.js").then(t=>t.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return me(()=>import("./pascal-DeyFTnEt.js").then(t=>t.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return me(()=>import("./pegjs-ZxgRUQgc.js").then(t=>t.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return me(()=>import("./perl-B0EkHUR1.js").then(t=>t.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return me(()=>import("./php-CwiwEkpL.js").then(t=>t.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return me(()=>import("./pig-CjUIQlXf.js").then(t=>t.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return me(()=>import("./powershell-DNXjBQO5.js").then(t=>t.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return me(()=>import("./properties-DdUcQmYC.js").then(t=>t.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return me(()=>import("./protobuf-D6frssZi.js").then(t=>t.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return me(()=>import("./pug-C2dz9sel.js").then(t=>t.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return me(()=>import("./puppet-BvcMXCfG.js").then(t=>t.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return me(()=>import("./python-Ovj85m8b.js").then(t=>t.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return me(()=>import("./q-Ce0iFdIW.js").then(t=>t.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return me(()=>import("./r-ClHw7kLP.js").then(t=>t.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return me(()=>import("./rpm-C67pEfyo.js").then(t=>t.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return me(()=>import("./rst-C_1qKyYm.js").then(t=>t.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return me(()=>import("./ruby-DXtzuAfY.js").then(t=>t.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return me(()=>import("./rust-D182mhQo.js").then(t=>t.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return me(()=>import("./sas-DpAJhY2k.js").then(t=>t.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return me(()=>import("./sass-CmuqXt1l.js").then(t=>t.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return me(()=>import("./scheme-D_rqsHO3.js").then(t=>t.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return me(()=>import("./shell-CuWRGP2C.js").then(t=>t.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return me(()=>import("./sieve-CCYhRzom.js").then(t=>t.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return me(()=>import("./slim-CP1FR5LY.js").then(t=>t.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return me(()=>import("./smalltalk-B5QkNPh2.js").then(t=>t.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return me(()=>import("./smarty-Cp8dEPHz.js").then(t=>t.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return me(()=>import("./solr-6zvOHtSz.js").then(t=>t.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return me(()=>import("./soy-Tqot7BLV.js").then(t=>t.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return me(()=>import("./sparql-BlT3Hy8G.js").then(t=>t.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return me(()=>import("./spreadsheet-C_z54IMW.js").then(t=>t.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return me(()=>import("./sql-Cdawn9WD.js").then(t=>t.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return me(()=>import("./stex-5uTglgZw.js").then(t=>t.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return me(()=>import("./stylus-33ewLRuQ.js").then(t=>t.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return me(()=>import("./swift-Dd3oLk4z.js").then(t=>t.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return me(()=>import("./tcl-DebqpRig.js").then(t=>t.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return me(()=>import("./textile-DILoWpzQ.js").then(t=>t.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return me(()=>import("./tiddlywiki-Xgo1a7HS.js").then(t=>t.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return me(()=>import("./tiki-DA_o7cWM.js").then(t=>t.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return me(()=>import("./toml-BCKRX2J9.js").then(t=>t.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return me(()=>import("./tornado-Dz0ASCi-.js").then(t=>t.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return me(()=>import("./troff-DagUzndT.js").then(t=>t.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return me(()=>import("./ttcn-Dr-J2RQo.js").then(t=>t.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return me(()=>import("./ttcn-cfg-DYlU5sjM.js").then(t=>t.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return me(()=>import("./turtle-ClLmOWJg.js").then(t=>t.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return me(()=>import("./twig-DqrNGJhn.js").then(t=>t.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return me(()=>import("./vb-bHqF_fVa.js").then(t=>t.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return me(()=>import("./vbscript-CVzZHYMH.js").then(t=>t.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return me(()=>import("./velocity-DlXum-tC.js").then(t=>t.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return me(()=>import("./verilog-BFMSxf-j.js").then(t=>t.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return me(()=>import("./vhdl-B50pLRUG.js").then(t=>t.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return me(()=>import("./vue-DwPiClwx.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 me(()=>import("./wast-CPgK5w89.js").then(t=>t.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return me(()=>import("./webidl-DunNaHFl.js").then(t=>t.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return me(()=>Promise.resolve().then(()=>KB),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return me(()=>import("./xquery-D_XJeP29.js").then(t=>t.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return me(()=>import("./yacas-COeFRlwt.js").then(t=>t.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return me(()=>import("./yaml-Bsr5uiwn.js").then(t=>t.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return me(()=>import("./yaml-frontmatter-8avfnQon.js").then(t=>t.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return me(()=>import("./z80-B2hxWIAK.js").then(t=>t.z),[]);default:return new Promise(function(t,r){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const Ny=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}},$P=e=>{var t;return e&&((t=Ny(e))!=null?t:"").replace(/\d(?=(?:\D*\d){4})/g,"•")},v1=m.forwardRef((E,j)=>{var N=E,{small:e,placeholder:t,label:r,name:n="",autoFocus:a=!1,required:o,ccNumber:i,readOnly:c,onInputBlur:d,showHideCCNumber:f=!1,tooltipContent:h,tooltip:p,prefix:g,error:S,props:b,className:v,classNameInput:w}=N,C=Ce(N,["small","placeholder","label","name","autoFocus","required","ccNumber","readOnly","onInputBlur","showHideCCNumber","tooltipContent","tooltip","prefix","error","props","className","classNameInput"]);const M=m.useRef(null),[P,D]=m.useState(!1),[A,O]=m.useState(i);m.useImperativeHandle(j,()=>M.current);const $=()=>{var I;if(!M.current||!M.current.value)return;const H=(I=Ny(M.current.value))!=null?I:"",z=H.replace(/(\D)/g,"");M.current.value!==H&&(M.current.value=H),O(z)};return m.useEffect(()=>{var H;if(M.current&&P){const z=(H=Ny(A))!=null?H:"";M.current.value=z}},[A]),m.useEffect(()=>{var H,z;P&&M.current&&A&&(M.current.value=(H=Ny(A))!=null?H:""),!P&&M.current&&(M.current.value=(z=$P(A))!=null?z:"")},[P]),m.useEffect(()=>{M.current&&a&&setTimeout(()=>{var H;(H=M.current)==null||H.focus()},200)},[a]),s.jsxs("div",re(R({className:gr("w-full",v)},b),{children:[r&&s.jsx(cN,{label:r,required:o,tooltipContent:h,tooltip:p,className:"mb-0.5 text-slate-400 font-light text-xs ml-1 uppercase"}),s.jsxs("div",{className:"relative",children:[g?s.jsx("span",{className:"text-grey-40 mr-2xsmall",children:g}):null,s.jsx("input",R({className:gr("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":S},e?"h-8":"h-10",{"!pr-8":f},{"text-small":e,"pt-[1px]":e},w),ref:M,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",type:"text",name:n,defaultValue:$P(i),placeholder:t||"".concat(r,"...")||"",onChange:$,onFocus:()=>{c||D(!0)},onBlur:()=>{d&&A&&d(A.trim().replaceAll(" ",""))}},C)),s.jsx("button",{className:"mx-2xsmall text-grey-40 absolute right-2.5 top-0 bottom-0 flex items-center justify-center",onClick:()=>{D(H=>!H)},children:P?s.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:s.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"})}):s.jsx("svg",{viewBox:"0 0 15 15",fill:"none",width:15,height:15,children:s.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"})})})]}),S&&s.jsx("div",{className:gr("text-sm animate fade-in text-red-400",v),children:s.jsx("p",{children:S})})]}))});v1.displayName="InputCreditCardField";const P0=({id:e,isCopiedOrPasted:t,pastedItemCountDown:r,isCopied:n,pastedText:a,copyOrPasteFieldId:o})=>{const{t:i}=Tt();if(o.value!==e||!t)return null;let c;return r?r>0&&(c=i("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:r})):c=s.jsxs("span",{className:"flex items-center justify-center text-[10px] uppercase font-semibold text-white pr-1.5 py-0",children:[s.jsx(Bt,{size:14,className:"mr-1"}),n?i("Copied",{ns:"common"}):a?i("Pasted",{ns:"common"}):""]}),s.jsx(Q,{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:s.jsx(ft,{className:"".concat(r?"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})})},zP={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"};function AB({clipId:e,formTemplateOptions:t}){var S,b;const{t:r}=Tt(),[n,a]=hN({}),[o,i,c]=pN({}),{updateItemById:d}=Bi(),f=Ve(!1),h=Ve(null),p=Ve({templateOptions:[],formOptions:{openUrl:null,fields:[]}});m.useEffect(()=>{if(t)try{p.value=JSON.parse(t)}catch(v){console.error(v)}},[t]),m.useEffect(()=>{f.value&&setTimeout(()=>{f.value=!1},1e3)},[f.value]);const g=!!(n||o);return s.jsxs(s.Fragment,{children:[s.jsxs(Q,{className:"select-none mb-2",children:[p.value.formOptions.openUrl!=null&&s.jsxs(ve,{className:"text-normal w-full gap-2 py-0.5 mb-1 ".concat(p.value.formOptions.isOpenUrlDisabled?"bg-gray-100 dark:bg-gray-900 opacity-70":""),children:[p.value.formOptions.isOpenUrlDisabled?s.jsx(s.Fragment,{children:s.jsxs(J,{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:[r("Open",{ns:"common"}),s.jsx("span",{className:"overflow-hidden text-ellipsis p-1",children:wn(p.value.formOptions.openUrl)})]})}):s.jsx(s.Fragment,{children:s.jsxs(J,{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:[s.jsx("span",{className:"pointer-events-none",children:r("Open",{ns:"common"})}),s.jsxs("span",{className:"underline cursor-pointer text-blue-700 dark:text-blue-400 overflow-hidden text-ellipsis relative p-1",title:"".concat(r("Open",{ns:"common"})," ").concat(p.value.formOptions.openUrl),onClick:()=>{yl(wn(p.value.formOptions.openUrl))},children:[wn(p.value.formOptions.openUrl),s.jsx(P0,{id:p.value.formOptions.openUrl,isCopiedOrPasted:g,pastedItemCountDown:i,isCopied:n,pastedText:o,copyOrPasteFieldId:h})]})]})}),s.jsxs(ve,{children:[s.jsx(ke,{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:p.value.formOptions.isOpenUrlDisabled,onClick:v=>{v.preventDefault(),p.value.formOptions.openUrl&&(h.value=p.value.formOptions.openUrl,pr.value?c(p.value.formOptions.openUrl):a(p.value.formOptions.openUrl))},children:s.jsx($e,{text:pr.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:14}):s.jsx(aa,{size:14})})}),s.jsx(ke,{variant:"ghost",size:"mini",title:r("Enable / Disable URL Open",{ns:"dashboard"}),onClick:()=>pe(this,null,function*(){var w;p.value=re(R({},p.value),{formOptions:re(R({},p.value.formOptions),{isOpenUrlDisabled:!((w=p.value.formOptions)!=null&&w.isOpenUrlDisabled)})});const v=JSON.stringify(p.value);try{yield d({updatedItem:{formTemplateOptions:v,itemId:e}}),setTimeout(()=>{f.value=!0},300)}catch(C){console.error(C)}}),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:(S=p.value.formOptions)!=null&&S.isOpenUrlDisabled?s.jsx(oa,{size:14}):s.jsx(ja,{size:14})})]})]}),(b=p.value.formOptions)==null?void 0:b.fields.map((v,w)=>{var M,P,D,A,O;const C=v.isLabelOnTop,j=v.isLabelHidden,E=v.type==="section",N=v.type==="textarea";return s.jsxs(ve,{className:"".concat(v.type!=="section"?"mb-1":"mt-1"," group ").concat(C?"flex-col items-start":"items-center"," ").concat(N?"!mt-2 !mb-1":""),children:[!j&&s.jsx(s.Fragment,{children:v.label&&v.type!=="section"?s.jsx(J,{className:"".concat(v.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(C?"!justify-start pl-1":"!justify-end"),children:s.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(C?"text-left":"text-right max-w-[160px]"),children:v.label})}):s.jsx("div",{className:"pr-1 min-w-[80px]"})}),s.jsxs(ve,{className:"w-full",children:[s.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(v.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:s.jsxs(ve,{className:"w-full gap-1 justify-start",children:[v.isDelayOnly||v.isPressKeysOnly?s.jsxs(ve,{className:"".concat(v.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full justify-end mr-1 py-1"),children:[v.isDelayOnly&&s.jsxs(ft,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[r("Delay",{ns:"common"})," ",v.value]}),v.isPressKeysOnly&&v.pressKeysAfterPaste&&s.jsxs(ft,{variant:"secondary",className:"pl-2 py-0.5 text-slate-500 whitespace-nowrap",children:[r("Press",{ns:"common"})," ",zP[v.pressKeysAfterPaste]]})]}):v.type==="password"||v.type==="passwordCode"?s.jsxs(ve,{children:[s.jsxs("div",{className:"relative w-full",children:[s.jsx(sr,{small:!0,placeholder:r("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:v.isEnable===!1,isPassword:!0,numbersOnly:v.type==="passwordCode",showHidePassword:!0,className:"".concat(v.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:v.value}),s.jsx(P0,{id:v.id,isCopiedOrPasted:g,pastedItemCountDown:i,isCopied:n,pastedText:o,copyOrPasteFieldId:h})]}),!E&&!v.isDelayOnly&&!v.isPressKeysOnly&&s.jsx(ke,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:v.isEnable===!1||!v.value,variant:"ghost",onClick:$=>{$.preventDefault(),v.value&&(h.value=v.id||null,pr.value?c(v.value):a(v.value))},children:s.jsx($e,{text:pr.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:14}):s.jsx(aa,{size:14})})})]}):v.type==="creditcard"?s.jsxs(ve,{children:[s.jsxs("div",{className:"relative w-full",children:[s.jsx(v1,{small:!0,placeholder:r("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:v.isEnable===!1,className:"".concat(v.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,ccNumber:v.value}),s.jsx(P0,{id:v.id,isCopiedOrPasted:g,pastedItemCountDown:i,isCopied:n,pastedText:o,copyOrPasteFieldId:h})]}),!E&&!v.isDelayOnly&&!v.isPressKeysOnly&&s.jsx(ke,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:v.isEnable===!1||!v.value,variant:"ghost",onClick:$=>{$.preventDefault(),v.value&&(h.value=v.id||null,pr.value?c(v.value):a(v.value))},children:s.jsx($e,{text:pr.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:14}):s.jsx(aa,{size:14})})})]}):E?s.jsx("span",{className:"text-sm !font-semibold border-0 nowrap overflow-hidden text-ellipsis !pl-0.5 py-2",children:v.value}):v.type==="textarea"?s.jsxs(ve,{children:[s.jsxs("div",{className:"w-full relative",children:[s.jsx(Eo,{placeholder:r("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:v.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:w===((M=p.value.formOptions.fields)==null?void 0:M.length)-1&&p.value.formOptions.fields[w].value==="",maxRows:2,value:v.value,enableEmoji:!1,readOnly:!0,enableEmojiInside:!1}),s.jsx(P0,{id:v.id,isCopiedOrPasted:g,pastedItemCountDown:i,isCopied:n,pastedText:o,copyOrPasteFieldId:h})]}),!E&&!v.isDelayOnly&&!v.isPressKeysOnly&&s.jsx(ke,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:v.isEnable===!1||!v.value,variant:"ghost",onClick:$=>{$.preventDefault(),v.value&&(h.value=v.id||null,pr.value?c(v.value):a(v.value))},children:s.jsx($e,{text:pr.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:14}):s.jsx(aa,{size:14})})})]}):s.jsxs(ve,{children:[s.jsxs("div",{className:"w-full relative",children:[s.jsx(sr,{small:!0,placeholder:r("Empty",{ns:"common"}),autoFocus:w===((P=p.value.formOptions.fields)==null?void 0:P.length)-1&&p.value.formOptions.fields[w].value===""&&p.value.formOptions.fields[w].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:v.isEnable===!1,type:v.type==="number"?"number":"text",className:"".concat(v.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),readOnly:!0,value:v.value}),s.jsx(P0,{id:v.id,isCopiedOrPasted:g,pastedItemCountDown:i,isCopied:n,pastedText:o,copyOrPasteFieldId:h})]}),!E&&!v.isDelayOnly&&!v.isPressKeysOnly&&s.jsx(ke,{className:"text-slate-500 h-full hover:text-green-700 dark:hover:text-green-600 px-1 py-0.5 hover:bg-transparent",disabled:v.isEnable===!1||!v.value,variant:"ghost",onClick:$=>{$.preventDefault(),v.value&&(h.value=v.id||null,pr.value?c(v.value):a(v.value))},children:s.jsx($e,{text:pr.value?r("Copy and Paste",{ns:"common"}):r("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:14}):s.jsx(aa,{size:14})})})]}),v.isDelayOnly||v.isPressKeysOnly||E?s.jsx(s.Fragment,{}):s.jsx(ve,{children:v.pressKeysAfterPaste&&s.jsx(ft,{variant:"secondary",className:"p-2 py-0.5 text-slate-500 whitespace-nowrap mr-1",children:zP[v.pressKeysAfterPaste]})})]})}),s.jsx(ve,{className:"gap-1",children:!E&&s.jsx(ke,{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:()=>pe(this,null,function*(){var H;p.value=re(R({},p.value),{formOptions:re(R({},p.value.formOptions),{fields:(H=p.value.formOptions)==null?void 0:H.fields.map((z,I)=>I===w?re(R({},z),{isEnable:!z.isEnable}):z)})});const $=JSON.stringify(p.value);try{yield d({updatedItem:{formTemplateOptions:$,itemId:e}}),setTimeout(()=>{f.value=!0},300)}catch(z){console.error(z)}}),children:(D=p.value.formOptions)!=null&&D.fields&&((O=(A=p.value.formOptions)==null?void 0:A.fields[w])!=null&&O.isEnable)?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})})})]})]},v.id)})]}),f.value&&s.jsx(Q,{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"})})]})}function Zw(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"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:[s.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),s.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"})]})}/*! @license DOMPurify 3.0.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.11/LICENSE */const{entries:RB,setPrototypeOf:FP,isFrozen:pye,getPrototypeOf:mye,getOwnPropertyDescriptor:gye}=Object;let{freeze:Na,seal:ii,create:LB}=Object,{apply:$4,construct:z4}=typeof Reflect!="undefined"&&Reflect;Na||(Na=function(t){return t});ii||(ii=function(t){return t});$4||($4=function(t,r,n){return t.apply(r,n)});z4||(z4=function(t,r){return new t(...r)});const Kx=No(Array.prototype.forEach),HP=No(Array.prototype.pop),D0=No(Array.prototype.push),_y=No(String.prototype.toLowerCase),M5=No(String.prototype.toString),BP=No(String.prototype.match),A0=No(String.prototype.replace),vye=No(String.prototype.indexOf),xye=No(String.prototype.trim),pi=No(Object.prototype.hasOwnProperty),lo=No(RegExp.prototype.test),R0=yye(TypeError);function No(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];return $4(e,t,n)}}function yye(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return z4(e,r)}}function Lr(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_y;FP&&FP(e,null);let n=t.length;for(;n--;){let a=t[n];if(typeof a=="string"){const o=r(a);o!==a&&(pye(t)||(t[n]=o),a=o)}e[a]=!0}return e}function bye(e){for(let t=0;t<e.length;t++)pi(e,t)||(e[t]=null);return e}function gd(e){const t=LB(null);for(const[r,n]of RB(e))pi(e,r)&&(Array.isArray(n)?t[r]=bye(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=gd(n):t[r]=n);return t}function Gx(e,t){for(;e!==null;){const n=gye(e,t);if(n){if(n.get)return No(n.get);if(typeof n.value=="function")return No(n.value)}e=mye(e)}function r(){return null}return r}const UP=Na(["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"]),P5=Na(["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"]),D5=Na(["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"]),wye=Na(["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"]),A5=Na(["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"]),kye=Na(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),WP=Na(["#text"]),VP=Na(["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"]),R5=Na(["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"]),qP=Na(["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"]),Yx=Na(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Cye=ii(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Sye=ii(/<%[\w\W]*|[\w\W]*%>/gm),jye=ii(/\${[\w\W]*}/gm),Eye=ii(/^data-[\-\w.\u00B7-\uFFFF]/),Nye=ii(/^aria-[\-\w]+$/),OB=ii(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_ye=ii(/^(?:\w+script|data):/i),Tye=ii(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),IB=ii(/^html$/i),Mye=ii(/^[a-z][.\w]*(-[.\w]+)+$/i);var KP=Object.freeze({__proto__:null,MUSTACHE_EXPR:Cye,ERB_EXPR:Sye,TMPLIT_EXPR:jye,DATA_ATTR:Eye,ARIA_ATTR:Nye,IS_ALLOWED_URI:OB,IS_SCRIPT_OR_DATA:_ye,ATTR_WHITESPACE:Tye,DOCTYPE_NAME:IB,CUSTOM_ELEMENT:Mye});const Pye=function(){return typeof window=="undefined"?null:window},Dye=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";r&&r.hasAttribute(a)&&(n=r.getAttribute(a));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(i){return i},createScriptURL(i){return i}})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function $B(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pye();const t=nt=>$B(nt);if(t.version="3.0.11",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:r}=e;const n=r,a=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:i,Node:c,Element:d,NodeFilter:f,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:g,trustedTypes:S}=e,b=d.prototype,v=Gx(b,"cloneNode"),w=Gx(b,"nextSibling"),C=Gx(b,"childNodes"),j=Gx(b,"parentNode");if(typeof i=="function"){const nt=r.createElement("template");nt.content&&nt.content.ownerDocument&&(r=nt.content.ownerDocument)}let E,N="";const{implementation:M,createNodeIterator:P,createDocumentFragment:D,getElementsByTagName:A}=r,{importNode:O}=n;let $={};t.isSupported=typeof RB=="function"&&typeof j=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:z,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:_,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:U}=KP;let{IS_ALLOWED_URI:X}=KP,G=null;const F=Lr({},[...UP,...P5,...D5,...A5,...WP]);let q=null;const Y=Lr({},[...VP,...R5,...qP,...Yx]);let se=Object.seal(LB(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}})),ee=null,ae=null,oe=!0,le=!0,ue=!1,ce=!0,he=!1,we=!1,Se=!1,Ae=!1,je=!1,Le=!1,Ee=!1,He=!0,Qe=!1;const Ze="user-content-";let mt=!0,Ke=!1,Lt={},qt=null;const Xt=Lr({},["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 Ge=null;const zt=Lr({},["audio","video","img","source","image","track"]);let ir=null;const Ft=Lr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",cr="http://www.w3.org/2000/svg",ar="http://www.w3.org/1999/xhtml";let ur=ar,Sr=!1,Mt=null;const Rr=Lr({},[et,cr,ar],M5);let Me=null;const Ye=["application/xhtml+xml","text/html"],Te="text/html";let lt=null,xe=null;const be=r.createElement("form"),De=function(ye){return ye instanceof RegExp||ye instanceof Function},Fe=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(xe&&xe===ye)){if((!ye||typeof ye!="object")&&(ye={}),ye=gd(ye),Me=Ye.indexOf(ye.PARSER_MEDIA_TYPE)===-1?Te:ye.PARSER_MEDIA_TYPE,lt=Me==="application/xhtml+xml"?M5:_y,G=pi(ye,"ALLOWED_TAGS")?Lr({},ye.ALLOWED_TAGS,lt):F,q=pi(ye,"ALLOWED_ATTR")?Lr({},ye.ALLOWED_ATTR,lt):Y,Mt=pi(ye,"ALLOWED_NAMESPACES")?Lr({},ye.ALLOWED_NAMESPACES,M5):Rr,ir=pi(ye,"ADD_URI_SAFE_ATTR")?Lr(gd(Ft),ye.ADD_URI_SAFE_ATTR,lt):Ft,Ge=pi(ye,"ADD_DATA_URI_TAGS")?Lr(gd(zt),ye.ADD_DATA_URI_TAGS,lt):zt,qt=pi(ye,"FORBID_CONTENTS")?Lr({},ye.FORBID_CONTENTS,lt):Xt,ee=pi(ye,"FORBID_TAGS")?Lr({},ye.FORBID_TAGS,lt):{},ae=pi(ye,"FORBID_ATTR")?Lr({},ye.FORBID_ATTR,lt):{},Lt=pi(ye,"USE_PROFILES")?ye.USE_PROFILES:!1,oe=ye.ALLOW_ARIA_ATTR!==!1,le=ye.ALLOW_DATA_ATTR!==!1,ue=ye.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=ye.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=ye.SAFE_FOR_TEMPLATES||!1,we=ye.WHOLE_DOCUMENT||!1,je=ye.RETURN_DOM||!1,Le=ye.RETURN_DOM_FRAGMENT||!1,Ee=ye.RETURN_TRUSTED_TYPE||!1,Ae=ye.FORCE_BODY||!1,He=ye.SANITIZE_DOM!==!1,Qe=ye.SANITIZE_NAMED_PROPS||!1,mt=ye.KEEP_CONTENT!==!1,Ke=ye.IN_PLACE||!1,X=ye.ALLOWED_URI_REGEXP||OB,ur=ye.NAMESPACE||ar,se=ye.CUSTOM_ELEMENT_HANDLING||{},ye.CUSTOM_ELEMENT_HANDLING&&De(ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=ye.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&De(ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=ye.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ye.CUSTOM_ELEMENT_HANDLING&&typeof ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=ye.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),he&&(le=!1),Le&&(je=!0),Lt&&(G=Lr({},WP),q=[],Lt.html===!0&&(Lr(G,UP),Lr(q,VP)),Lt.svg===!0&&(Lr(G,P5),Lr(q,R5),Lr(q,Yx)),Lt.svgFilters===!0&&(Lr(G,D5),Lr(q,R5),Lr(q,Yx)),Lt.mathMl===!0&&(Lr(G,A5),Lr(q,qP),Lr(q,Yx))),ye.ADD_TAGS&&(G===F&&(G=gd(G)),Lr(G,ye.ADD_TAGS,lt)),ye.ADD_ATTR&&(q===Y&&(q=gd(q)),Lr(q,ye.ADD_ATTR,lt)),ye.ADD_URI_SAFE_ATTR&&Lr(ir,ye.ADD_URI_SAFE_ATTR,lt),ye.FORBID_CONTENTS&&(qt===Xt&&(qt=gd(qt)),Lr(qt,ye.FORBID_CONTENTS,lt)),mt&&(G["#text"]=!0),we&&Lr(G,["html","head","body"]),G.table&&(Lr(G,["tbody"]),delete ee.tbody),ye.TRUSTED_TYPES_POLICY){if(typeof ye.TRUSTED_TYPES_POLICY.createHTML!="function")throw R0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ye.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw R0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=ye.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=Dye(S,a)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));Na&&Na(ye),xe=ye}},Je=Lr({},["mi","mo","mn","ms","mtext"]),st=Lr({},["foreignobject","desc","title","annotation-xml"]),at=Lr({},["title","style","font","a","script"]),wt=Lr({},[...P5,...D5,...wye]),ct=Lr({},[...A5,...kye]),Nt=function(ye){let Ie=j(ye);(!Ie||!Ie.tagName)&&(Ie={namespaceURI:ur,tagName:"template"});const qe=_y(ye.tagName),ut=_y(Ie.tagName);return Mt[ye.namespaceURI]?ye.namespaceURI===cr?Ie.namespaceURI===ar?qe==="svg":Ie.namespaceURI===et?qe==="svg"&&(ut==="annotation-xml"||Je[ut]):!!wt[qe]:ye.namespaceURI===et?Ie.namespaceURI===ar?qe==="math":Ie.namespaceURI===cr?qe==="math"&&st[ut]:!!ct[qe]:ye.namespaceURI===ar?Ie.namespaceURI===cr&&!st[ut]||Ie.namespaceURI===et&&!Je[ut]?!1:!ct[qe]&&(at[qe]||!wt[qe]):!!(Me==="application/xhtml+xml"&&Mt[ye.namespaceURI]):!1},Gt=function(ye){D0(t.removed,{element:ye});try{ye.parentNode.removeChild(ye)}catch(Ie){ye.remove()}},kt=function(ye,Ie){try{D0(t.removed,{attribute:Ie.getAttributeNode(ye),from:Ie})}catch(qe){D0(t.removed,{attribute:null,from:Ie})}if(Ie.removeAttribute(ye),ye==="is"&&!q[ye])if(je||Le)try{Gt(Ie)}catch(qe){}else try{Ie.setAttribute(ye,"")}catch(qe){}},dr=function(ye){let Ie=null,qe=null;if(Ae)ye="<remove></remove>"+ye;else{const or=BP(ye,/^[\r\n\t ]+/);qe=or&&or[0]}Me==="application/xhtml+xml"&&ur===ar&&(ye='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ye+"</body></html>");const ut=E?E.createHTML(ye):ye;if(ur===ar)try{Ie=new g().parseFromString(ut,Me)}catch(or){}if(!Ie||!Ie.documentElement){Ie=M.createDocument(ur,"template",null);try{Ie.documentElement.innerHTML=Sr?N:ut}catch(or){}}const Pt=Ie.body||Ie.documentElement;return ye&&qe&&Pt.insertBefore(r.createTextNode(qe),Pt.childNodes[0]||null),ur===ar?A.call(Ie,we?"html":"body")[0]:we?Ie.documentElement:Pt},Yt=function(ye){return P.call(ye.ownerDocument||ye,ye,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ht=function(ye){return ye instanceof p&&(typeof ye.nodeName!="string"||typeof ye.textContent!="string"||typeof ye.removeChild!="function"||!(ye.attributes instanceof h)||typeof ye.removeAttribute!="function"||typeof ye.setAttribute!="function"||typeof ye.namespaceURI!="string"||typeof ye.insertBefore!="function"||typeof ye.hasChildNodes!="function")},lr=function(ye){return typeof c=="function"&&ye instanceof c},It=function(ye,Ie,qe){$[ye]&&Kx($[ye],ut=>{ut.call(t,Ie,qe,xe)})},Mr=function(ye){let Ie=null;if(It("beforeSanitizeElements",ye,null),Ht(ye))return Gt(ye),!0;const qe=lt(ye.nodeName);if(It("uponSanitizeElement",ye,{tagName:qe,allowedTags:G}),ye.hasChildNodes()&&!lr(ye.firstElementChild)&&lo(/<[/\w]/g,ye.innerHTML)&&lo(/<[/\w]/g,ye.textContent)||ye.nodeType===7)return Gt(ye),!0;if(!G[qe]||ee[qe]){if(!ee[qe]&&yt(qe)&&(se.tagNameCheck instanceof RegExp&&lo(se.tagNameCheck,qe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(qe)))return!1;if(mt&&!qt[qe]){const ut=j(ye)||ye.parentNode,Pt=C(ye)||ye.childNodes;if(Pt&&ut){const or=Pt.length;for(let Fr=or-1;Fr>=0;--Fr)ut.insertBefore(v(Pt[Fr],!0),w(ye))}}return Gt(ye),!0}return ye instanceof d&&!Nt(ye)||(qe==="noscript"||qe==="noembed"||qe==="noframes")&&lo(/<\/no(script|embed|frames)/i,ye.innerHTML)?(Gt(ye),!0):(he&&ye.nodeType===3&&(Ie=ye.textContent,Kx([H,z,I],ut=>{Ie=A0(Ie,ut," ")}),ye.textContent!==Ie&&(D0(t.removed,{element:ye.cloneNode()}),ye.textContent=Ie)),It("afterSanitizeElements",ye,null),!1)},Jt=function(ye,Ie,qe){if(He&&(Ie==="id"||Ie==="name")&&(qe in r||qe in be))return!1;if(!(le&&!ae[Ie]&&lo(W,Ie))){if(!(oe&&lo(_,Ie))){if(!q[Ie]||ae[Ie]){if(!(yt(ye)&&(se.tagNameCheck instanceof RegExp&&lo(se.tagNameCheck,ye)||se.tagNameCheck instanceof Function&&se.tagNameCheck(ye))&&(se.attributeNameCheck instanceof RegExp&&lo(se.attributeNameCheck,Ie)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(Ie))||Ie==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&lo(se.tagNameCheck,qe)||se.tagNameCheck instanceof Function&&se.tagNameCheck(qe))))return!1}else if(!ir[Ie]){if(!lo(X,A0(qe,V,""))){if(!((Ie==="src"||Ie==="xlink:href"||Ie==="href")&&ye!=="script"&&vye(qe,"data:")===0&&Ge[ye])){if(!(ue&&!lo(K,A0(qe,V,"")))){if(qe)return!1}}}}}}return!0},yt=function(ye){return ye!=="annotation-xml"&&BP(ye,U)},er=function(ye){It("beforeSanitizeAttributes",ye,null);const{attributes:Ie}=ye;if(!Ie)return;const qe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};let ut=Ie.length;for(;ut--;){const Pt=Ie[ut],{name:or,namespaceURI:Fr,value:Xr}=Pt,ys=lt(or);let fn=or==="value"?Xr:xye(Xr);if(qe.attrName=ys,qe.attrValue=fn,qe.keepAttr=!0,qe.forceKeepAttr=void 0,It("uponSanitizeAttribute",ye,qe),fn=qe.attrValue,qe.forceKeepAttr||(kt(or,ye),!qe.keepAttr))continue;if(!ce&&lo(/\/>/i,fn)){kt(or,ye);continue}he&&Kx([H,z,I],Et=>{fn=A0(fn,Et," ")});const Kt=lt(ye.nodeName);if(Jt(Kt,ys,fn)){if(Qe&&(ys==="id"||ys==="name")&&(kt(or,ye),fn=Ze+fn),E&&typeof S=="object"&&typeof S.getAttributeType=="function"&&!Fr)switch(S.getAttributeType(Kt,ys)){case"TrustedHTML":{fn=E.createHTML(fn);break}case"TrustedScriptURL":{fn=E.createScriptURL(fn);break}}try{Fr?ye.setAttributeNS(Fr,or,fn):ye.setAttribute(or,fn),HP(t.removed)}catch(Et){}}}It("afterSanitizeAttributes",ye,null)},Ot=function nt(ye){let Ie=null;const qe=Yt(ye);for(It("beforeSanitizeShadowDOM",ye,null);Ie=qe.nextNode();)It("uponSanitizeShadowNode",Ie,null),!Mr(Ie)&&(Ie.content instanceof o&&nt(Ie.content),er(Ie));It("afterSanitizeShadowDOM",ye,null)};return t.sanitize=function(nt){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=null,qe=null,ut=null,Pt=null;if(Sr=!nt,Sr&&(nt="<!-->"),typeof nt!="string"&&!lr(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw R0("dirty is not a string, aborting")}else throw R0("toString is not a function");if(!t.isSupported)return nt;if(Se||Fe(ye),t.removed=[],typeof nt=="string"&&(Ke=!1),Ke){if(nt.nodeName){const Xr=lt(nt.nodeName);if(!G[Xr]||ee[Xr])throw R0("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof c)Ie=dr("<!---->"),qe=Ie.ownerDocument.importNode(nt,!0),qe.nodeType===1&&qe.nodeName==="BODY"||qe.nodeName==="HTML"?Ie=qe:Ie.appendChild(qe);else{if(!je&&!he&&!we&&nt.indexOf("<")===-1)return E&&Ee?E.createHTML(nt):nt;if(Ie=dr(nt),!Ie)return je?null:Ee?N:""}Ie&&Ae&&Gt(Ie.firstChild);const or=Yt(Ke?nt:Ie);for(;ut=or.nextNode();)Mr(ut)||(ut.content instanceof o&&Ot(ut.content),er(ut));if(Ke)return nt;if(je){if(Le)for(Pt=D.call(Ie.ownerDocument);Ie.firstChild;)Pt.appendChild(Ie.firstChild);else Pt=Ie;return(q.shadowroot||q.shadowrootmode)&&(Pt=O.call(n,Pt,!0)),Pt}let Fr=we?Ie.outerHTML:Ie.innerHTML;return we&&G["!doctype"]&&Ie.ownerDocument&&Ie.ownerDocument.doctype&&Ie.ownerDocument.doctype.name&&lo(IB,Ie.ownerDocument.doctype.name)&&(Fr="<!DOCTYPE "+Ie.ownerDocument.doctype.name+">\n"+Fr),he&&Kx([H,z,I],Xr=>{Fr=A0(Fr,Xr," ")}),E&&Ee?E.createHTML(Fr):Fr},t.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fe(nt),Se=!0},t.clearConfig=function(){xe=null,Se=!1},t.isValidAttribute=function(nt,ye,Ie){xe||Fe({});const qe=lt(nt),ut=lt(ye);return Jt(qe,ut,Ie)},t.addHook=function(nt,ye){typeof ye=="function"&&($[nt]=$[nt]||[],D0($[nt],ye))},t.removeHook=function(nt){if($[nt])return HP($[nt])},t.removeHooks=function(nt){$[nt]&&($[nt]=[])},t.removeAllHooks=function(){$={}},t}var zB=$B();const Aye=(e,t=[],r=[],n=[],a,o=!1)=>{const i=/\{\{\s*(.*?)\s*\}\}/g;return e.split(i).map((d,f)=>{const h=n.find(p=>{var g;return((g=p.label)==null?void 0:g.toLocaleLowerCase())===d.toLocaleLowerCase()});if(h){const p={label:d,isValueMasked:h.isValueMasked,value:d.toLocaleLowerCase()==="clipboard"?a:h.value,isFound:t.includes(d.toLowerCase()),isMissing:r.includes(d.toLowerCase()),isEnable:h.isEnable},g=o&&p.value;return s.jsx(J,{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:g?s.jsx($e,{text:s.jsxs(ft,{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:[s.jsx(Bt,{size:12,className:"mr-0.5"}),p.label]}),className:"bg-transparent border-0",side:"top",isCompact:!0,asChild:!0,children:s.jsx(ft,{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.isValueMasked?ff(p.value):p.value})}):s.jsx($e,{isDisabled:p.isMissing||!p.value,text:p.value,side:"top",isCompact:!0,asChild:!0,children:s.jsxs(ft,{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:[s.jsx(Bt,{size:12,className:"mr-0.5"}),p.label]})})},f)}return d})};function FB({value:e,clipId:t,formTemplateOptions:r}){var A;const{t:n}=Tt(),a=Ve(Date.now().toString()),o=Ve(Date.now().toString()),i=Ve(!1),c=Ve([]),d=Ve([]),f=Ve("text"),h=Ve("labels"),p=Ve("template"),g=Ve(""),S=Ve(null),[,b,,]=Rf({}),[,,v]=Lf({}),{updateItemById:w}=Bi(),C=Ve(!1),j=Ve({templateOptions:[],formOptions:{fields:[]}}),E=ro(o.value,300),N=ro(o.value,1e3),M=m.useCallback(O=>{const $=/{{[^{}]+}}/g;c.value=[],d.value=[];const H=O.match($);H&&H.forEach((z,I)=>{H[I]=z.replace(/[\n\r{}]+/g,"").trim(),d.value.push(H[I].toLocaleLowerCase());const W=j.value.templateOptions.find(_=>{var K;return((K=_.label)==null?void 0:K.toLocaleLowerCase())===H[I].toLocaleLowerCase()});W?W.isFound=!0:c.value.push(H[I])})},[j.value.templateOptions]);m.useEffect(()=>{var O;if(r)try{const $=JSON.parse(r);j.value=R(R({},j.value),$),((O=j.value.templateOptions)==null?void 0:O.every(z=>{var I;return((I=j.value.templateOptions)==null?void 0:I.filter(W=>W.label===z.label).length)===1}))||(i.value=!0),M(e)}catch($){console.log("error",$)}},[r]);const P=m.useCallback(()=>pe(this,null,function*(){try{g.value=yield kr("run_template_fill",{templateValue:e,templateOptions:j.value.templateOptions,isPreview:!0})}catch(O){console.error(O)}}),[e,j.value.templateOptions]);m.useEffect(()=>{P()},[j.value.templateOptions,e,E]),m.useEffect(()=>{const O=JSON.stringify(j.value);try{w({updatedItem:{formTemplateOptions:O,itemId:t}}),setTimeout(()=>{C.value=!0},300)}catch($){console.error($)}},[e,N]),m.useEffect(()=>{const O=Ci("clipboard://clipboard-monitor/update",H=>pe(this,null,function*(){H.payload==="clipboard update"&&(S.value=yield bT())}));return pe(this,null,function*(){S.value=yield bT()}),()=>{O.then(H=>{H()})}},[]),m.useEffect(()=>{C.value&&setTimeout(()=>{C.value=!1},1e3)},[C.value]);const D=m.useMemo(()=>Aye(e,d.value,c.value,j.value.templateOptions.filter(O=>O.label!==void 0).map(({label:O,isEnable:$,value:H,isValueMasked:z})=>({label:O,isValueMasked:z,value:H,isEnable:$})),S.value,h.value==="values"),[e,E,d.value,c.value,j.value.templateOptions,S.value,h.value]);return s.jsxs(s.Fragment,{children:[s.jsxs(Q,{className:"select-none mt-1 pb-1",children:[s.jsx(Q,{className:"mt-1.5 mb-1",children:s.jsxs(ve,{className:"w-full justify-start",children:[s.jsx(ke,{variant:"ghost",size:"mini",onClick:()=>{Fs.value=t!=null?t:null},className:"cursor-pointer hover:bg-transparent ",children:s.jsx(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:n("Edit Template",{ns:"dashboard"})})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[n("Fields Value",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsxs(ze,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{j.value.templateOptions=j.value.templateOptions.map(O=>(O.value="",O)),j.value=re(R({},j.value),{templateOptions:[...j.value.templateOptions]}),a.value=Date.now().toString(),o.value=Date.now().toString()},children:[s.jsx(J,{className:"mr-2",children:n("Clear All Fields",{ns:"dashboard"})}),s.jsx(KE,{size:14,className:"ml-auto text-slate-400"})]}),s.jsx(rr,{}),s.jsxs(ze,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>{j.value.templateOptions=j.value.templateOptions.map(O=>(O.value=O.defaultValue,O)),j.value=re(R({},j.value),{templateOptions:[...j.value.templateOptions]}),a.value=Date.now().toString(),o.value=Date.now().toString()},children:[s.jsx(J,{className:"mr-2",children:n("Reset to Defaults",{ns:"dashboard"})}),s.jsx($b,{size:14,className:"ml-auto text-slate-400"})]}),s.jsx(rr,{}),s.jsxs(ze,{className:"text-center items-center justify-start py-1 text-xs",onSelect:()=>pe(this,null,function*(){j.value.templateOptions.forEach($=>{$.defaultValue=$.value});const O=JSON.stringify(j.value);try{yield w({updatedItem:{formTemplateOptions:O,itemId:t}}),setTimeout(()=>{C.value=!0},300)}catch($){console.error($)}}),children:[s.jsx(J,{className:"mr-2",children:n("Save as Defaults",{ns:"dashboard"})}),s.jsx(y$,{size:14,className:"ml-auto text-slate-400"})]})]})]})]})}),(A=j.value.templateOptions)==null?void 0:A.map((O,$)=>{var V,U,X,G,F,q,Y,se,ee;const H=O.type==="textarea",z=O.isLabelOnTop,I=(V=O.selectOptions)==null?void 0:V.find(ae=>ae===O.value),W=!((U=O.selectOptions)!=null&&U.length),_=!!(O.label&&d.value.includes((X=O.label)==null?void 0:X.toLowerCase())),K=O.isEnable===!1||!_;return s.jsxs(ve,{className:"mb-1 group ".concat(z?"flex-col items-start":"items-center"," ").concat(H?"!mt-2 !mb-1":""),children:[O.label?s.jsx(ve,{className:"".concat(K?"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:s.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:O.label})}):s.jsx("div",{className:"pr-1 min-w-[80px]"}),s.jsxs(ve,{className:"w-full",children:[s.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(K?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:s.jsx(ve,{className:"w-full gap-1",children:O.type==="password"||O.type==="passwordCode"?s.jsx(sr,{small:!0,placeholder:O.type==="passwordCode"?n("Enter code",{ns:"dashboard"}):n("Enter secret value",{ns:"dashboard"}),autoFocus:$===j.value.templateOptions.length-1&&j.value.templateOptions[$].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,isPassword:!0,numbersOnly:O.type==="passwordCode",showHidePassword:!0,className:"".concat(O.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:ae=>{O.value=ae.target.value.trim(),o.value=Date.now().toString()},defaultValue:O.value},a.value):O.type==="creditcard"?s.jsx(v1,{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:K,autoFocus:$===((G=j.value.templateOptions)==null?void 0:G.length)-1&&j.value.templateOptions[$].value==="",className:"".concat(K?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:ae=>{O.value=ae},ccNumber:O.value},a.value):O.type==="textarea"?s.jsx(Eo,{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:K?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:$===j.value.templateOptions.length-1&&j.value.templateOptions[$].value===""&&!!j.value.templateOptions[$].label,maxRows:2,value:O.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:ae=>{ae.stopPropagation()},onChange:ae=>{O.value=ae.target.value,o.value=Date.now().toString(),j.value=re(R({},j.value),{templateOptions:[...j.value.templateOptions]})}},a.value):O.type==="select"?s.jsx(ve,{className:"justify-start items-center w-full my-1",children:s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",variant:"ghost",disabled:K,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:s.jsxs(ve,{className:"flex items-center justify-start w-full gap-1",children:[s.jsx(J,{className:"!text-slate-700 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:W?n("Select is empty",{ns:"common"}):I||n("Select option",{ns:"common"})}),s.jsx(ve,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:s.jsx(Nr,{size:13})})]})})}),s.jsxs(_r,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:W?s.jsx(J,{children:n("Select is empty",{ns:"common"})}):s.jsx(J,{children:n("Select option",{ns:"common"})})}),!W&&s.jsxs(s.Fragment,{children:[s.jsx(rr,{}),(q=(F=j.value.templateOptions[$])==null?void 0:F.selectOptions)==null?void 0:q.map((ae,oe)=>s.jsx(nr,{checked:O.value===ae,onSelect:()=>{O.value=ae,o.value=Date.now().toString(),j.value=re(R({},j.value),{templateOptions:[...j.value.templateOptions]})},children:s.jsx(J,{className:"text-xs ".concat(O.value===ae?"font-semibold":""),children:ae})},oe))]})]})]})}):((Y=O.label)==null?void 0:Y.toLocaleLowerCase())!=="clipboard"?s.jsx(sr,{small:!0,placeholder:n("Enter field value",{ns:"dashboard"}),autoFocus:!!j.value.templateOptions[$].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,type:O.type==="number"?"number":"text",className:"".concat(K?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:ae=>{O.value=ae.target.value.trim(),o.value=Date.now().toString()},defaultValue:O.value},a.value):s.jsxs(s.Fragment,{children:[s.jsx(sr,{small:!0,value:O.isValueMasked&&S.value?Db(S.value):S.value?S.value:n("This field allows to insert text from clipboard",{ns:"dashboard"}),title:(se=S.value)!=null?se:"",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?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")}),s.jsx($e,{isCompact:!0,text:n("Mask to hide clipboard value in preview",{ns:"dashboard"}),children:s.jsx(Zw,{width:15,height:15,className:"".concat(O.isValueMasked?"text-blue-500 opacity-100":"text-slate-500 opacity-50"," hover:text-blue-500 dark:hover:text-blue-400 hover:opacity-100 cursor-pointer"),onClick:()=>{var ae;j.value=re(R({},j.value),{templateOptions:[...(ae=j.value.templateOptions)==null?void 0:ae.map((oe,le)=>le===$?re(R({},oe),{isValueMasked:!oe.isValueMasked}):oe)]})}})})]})})}),s.jsx(ve,{className:"gap-1 ml-0.5",children:_?s.jsx(ke,{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:()=>pe(this,null,function*(){var oe;j.value=re(R({},j.value),{templateOptions:[...(oe=j.value.templateOptions)==null?void 0:oe.map((le,ue)=>ue===$?re(R({},le),{isEnable:!le.isEnable}):le)]});const ae=JSON.stringify(j.value);try{yield w({updatedItem:{formTemplateOptions:ae,itemId:t}}),setTimeout(()=>{C.value=!0},300)}catch(le){console.error(le)}}),children:j.value.templateOptions&&((ee=j.value.templateOptions[$])!=null&&ee.isEnable)?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}):s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",title:n("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:s.jsx(ti,{size:14})})}),s.jsx(_r,{sideOffset:12,align:"center",children:s.jsxs(ze,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onSelect:()=>{var oe;j.value=re(R({},j.value),{templateOptions:[...(oe=j.value.templateOptions)==null?void 0:oe.filter((le,ue)=>ue!==$)]});const ae=JSON.stringify(j.value);try{w({updatedItem:{formTemplateOptions:ae,itemId:t}})}catch(le){console.error(le)}},children:[s.jsx(J,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:n("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(dn,{size:13})})]})})]})})]})]},$)}),i.value&&s.jsxs(J,{className:"!text-amber-800 dark:!text-amber-400 text-[13px] my-2 bg-yellow-50 dark:bg-yellow-900 p-2 relative",children:[n("All field labels must be unique to ensure they are correctly used within the template.",{ns:"dashboard"}),s.jsx(Ur,{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&&s.jsxs(ve,{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:[s.jsxs(J,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[s.jsx(ti,{size:13,className:"mr-1"}),n("Found in template but missing from fields definition",{ns:"common"}),":"]}),c==null?void 0:c.value.map((O,$)=>s.jsx(Q,{children:s.jsx(ft,{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:O})},$))]}),s.jsxs(s.Fragment,{children:[s.jsxs(ve,{className:"gap-1 mt-2",children:[s.jsx(ke,{size:"mini",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(p.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:()=>{p.value="template"},children:n("Template",{ns:"dashboard"})}),g.value&&s.jsx(ke,{size:"mini",variant:"ghost",className:"!text-sm hover:bg-transparent hover:text-blue-500 dark:hover:text-blue-400 border-b-2 ".concat(p.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:()=>{p.value="result",P()},children:n("Result",{ns:"dashboard"})})]}),p.value==="template"?s.jsxs(Q,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative rounded-md text-sm",children:[t&&s.jsx(rn,{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:()=>{pr.value?v(t):b(t)},children:s.jsx($e,{text:pr.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:15}):s.jsx(aa,{size:15})})}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:s.jsx(Q,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:D})}),s.jsx(Cl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:h.value,onValueChange:O=>{h.value=O==="labels"?"labels":"values"},children:s.jsxs(si,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[s.jsx(En,{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:n("Labels",{ns:"dashboard"})}),s.jsx(En,{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:n("Values",{ns:"dashboard"})})]})})]}):p.value==="result"&&g.value&&s.jsxs(Q,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-0 rounded-md text-sm",children:[t&&s.jsx(rn,{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:()=>{pr.value?v(t):b(t)},children:s.jsx($e,{text:pr.value?n("Copy and Paste",{ns:"common"}):n("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:15}):s.jsx(aa,{size:15})})}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"280px"},autoHide:!1,children:s.jsxs(Q,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8 pt-3 select-text",children:[s.jsx("div",re(R({},f.value==="html"&&{dangerouslySetInnerHTML:{__html:zB.sanitize(g.value)}}),{className:"font-normal"})),f.value==="text"&&g.value]})}),s.jsx(Cl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:f.value,onValueChange:O=>{f.value=O==="html"?"html":"text"},children:s.jsxs(si,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[s.jsx(En,{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:n("Text",{ns:"dashboard"})}),s.jsx(En,{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:n("HTML",{ns:"dashboard"})})]})})]})]})]}),C.value&&s.jsx(Q,{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 Rye=[Pr.Down,Pr.Right,Pr.Up,Pr.Left];function Zx(e){if(!e)return!1;const t=e.data.current;return(t==null?void 0:t.type)===Hs||(t==null?void 0:t.type)===ll||(t==null?void 0:t.type)===Co}const L5=e=>e.toString().split("::pinned")[0];function mN(e){let t=[];return e.children&&e.children.length>0&&e.children.forEach(r=>{t.push(r.id),t=t.concat(mN(r))}),t}const F4=(e,{context:{active:t,droppableRects:r,droppableContainers:n,collisionRect:a}})=>{if(Rye.includes(e.code)){if(e.preventDefault(),!t||!a)return;const o=[];n.getEnabled().forEach(d=>{var p,g,S;if(!d||d!=null&&d.disabled)return;const f=r.get(d.id);if(!f)return;const h=d.data.current;if(h){const{type:b,children:v}=h;if(b==="Column"&&(v==null?void 0:v.length)>0&&((p=t.data.current)==null?void 0:p.type)!=="Column")return}switch(e.code){case Pr.Down:if(((g=t.data.current)==null?void 0:g.type)==="Column")return;a.top<f.top&&o.push(d);break;case Pr.Up:if(((S=t.data.current)==null?void 0:S.type)==="Column")return;a.top>f.top&&o.push(d);break;case Pr.Left:a.left>=f.left+f.width&&o.push(d);break;case Pr.Right:a.left+a.width<=f.left&&o.push(d);break}});const i=gX({active:t,collisionRect:a,droppableRects:r,droppableContainers:o,pointerCoordinates:null}),c=wE(i,"id");if(c!=null){const d=n.get(c),f=d==null?void 0:d.node.current,h=d==null?void 0:d.rect.current;if(f&&h)return{x:h.left,y:h.top}}}};function gN(e,t=!1,r=!1){if(!e||r)return{valuePreview:t&&e?e.substring(0,200).trim()+"...":(e==null?void 0:e.trim())||"No content",morePreviewLines:null,morePreviewChars:null};const n=e.replace(/\r\n/g,"\n");if(n.split("\n").length>=5&&!t){const i=n.split("\n").slice(0,5).join("\n"),c=n.split("\n").length-5;return{valuePreview:Ql.closeTags(i.trim()),morePreviewLines:c>0?c:null,morePreviewChars:c?null:n.length-160}}if(n.length>60&&!t){const o=n.length-60;return{valuePreview:Ql.closeTags(n.substring(0,60).trim())+"...",morePreviewLines:null,morePreviewChars:o>0?o:null}}else{const o=n.trim(),i=o.split("\n"),c=n.split("\n").length-i.length;return t?{valuePreview:o.substring(0,60)+"...",morePreviewLines:null,morePreviewChars:null}:{valuePreview:o,morePreviewLines:c>0?c:null,morePreviewChars:null}}}function HB({arrLinks:e=[],clipId:t,isShowLinkedClip:r,detectedLanguage:n,hasEmoji:a,hasMaskedWords:o,imageDataUrl:i,imageHash:c,imagePathFullRes:d,imageScale:f,imageType:h,imageWidthHeight:p,isCode:g,isCommand:S,isWebRequest:b,isWebScraping:v,isExpanded:w,isImage:C,isImageData:j,isLargeView:E,isLink:N,isForm:M,isTemplate:P,isMasked:D,isPath:A,isVideo:O,isMenu:$,isCopyOrPaste:H,isDark:z,clipName:I,formTemplateOptions:W,commandRequestOutput:_,isCommandRequestRunError:K,commandRequestOutputLastRunAt:V,requestOptions:U,pathType:X,searchTerm:G,value:F=""}){var Le,Ee,He;const{t:q}=Tt(),Y=vs(!1),se=vs(!1),ee=vs(""),ae=m.useRef(null),{metadataLinkByItemId:oe}=d1(N,t),le=N&&!!(oe!=null&&oe.linkTitle&&(oe!=null&&oe.linkDomain)),ue=vs({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:ce,morePreviewLines:he,morePreviewChars:we}=gN(F,C||j,E||N||A||S||b||v||M||P);m.useEffect(()=>{if(U)try{const Qe=JSON.parse(U);ue.value=R(R({},ue.value),Qe)}catch(Qe){}},[U]);const Se=F==null?void 0:F.trim();m.useEffect(()=>{w.value&&(se.value=!1)},[w.value]),m.useEffect(()=>{A&&_s("check_path",{path:Se}).then(()=>{ee.value=X}).catch(()=>{ee.value="Error"})},[A]),m.useEffect(()=>{G&&(w.value=!0)},[G]);const Ae=E?"max-h-[600px]":"max-h-[300px]",je=Se.length===0;return m.useEffect(()=>{var Qe;r&&((Qe=ae==null?void 0:ae.current)==null||Qe.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[r,ae==null?void 0:ae.current]),s.jsxs(Of,{className:gr(H?"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:[s.jsx(Q,{className:"mb-0.5",ref:ae,children:A?s.jsx(g1,{theme:z?$i.vsDark:$i.github,code:Se,language:"path",children:({className:Qe,style:Ze,tokens:mt,getLineProps:Ke,getTokenProps:Lt})=>s.jsx("code",{className:"".concat(Qe," ").concat(ee.value==="Error"?" line-through decoration-gray-300":""),style:Ze,children:mt.map((qt,Xt)=>s.jsx("div",re(R({},Ke({line:qt})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:qt.map((Ge,zt)=>s.jsx("span",re(R({},Lt({token:Ge})),{className:"".concat(ee.value==="Error"?"opacity-60":""," select-text"),children:G?dl(Ge.content,G):Ge.content}),zt))}),Xt))})}):j?s.jsxs(Q,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[s.jsx(Q,{className:"flex px-0 py-1 items-center justify-center",children:s.jsx(zi,{src:Se,hasError:Y.value,onErrorCallback:()=>{Y.value=!0},draggable:!1,decoding:"async",className:"".concat(Ae," min-h-10")})}),s.jsx("code",{className:"pb-0.5",children:ce})]}):N&&C?s.jsxs(Q,{className:"text-ellipsis self-start text-xs overflow-hidden select-none",children:[s.jsx(Q,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:s.jsx(zi,{src:wn(Se),hasError:Y.value,onErrorCallback:()=>{Y.value=!0},draggable:!1,decoding:"async",className:"".concat(Ae," min-h-10")})}),s.jsx("code",{className:"pb-0.5",children:gf(Se,e)})]}):C?s.jsxs(Q,{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?s.jsx("img",{decoding:"async",srcSet:d&&i?"".concat(Vd(d),"?").concat(c," ").concat(f,"x"):!i&&!d?Jd:Tg,src:d&&i?"".concat(Vd(d),"?").concat(c):!i&&!d?Jd:Tg,className:"rounded-md shadow-sm border border-slate-100 dark:border-slate-600 object-scale-down"},t):s.jsx("img",{src:d&&(h==="webp"||h==="gif")?"".concat(Vd(d),"?").concat(c):i&&d?i:!i&&!d?Jd:Tg,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"}),s.jsx(Q,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:s.jsxs(Q,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:q("Image size in pixels",{ns:"common"}),children:[p," ",h]})})]}):n&&g&&ce?s.jsx(Q,{className:"text-ellipsis self-start text-sm w-full select-text",children:s.jsx(la,{isDark:z,searchTerm:G,isLargeView:E,isShowMore:w.value||he==null,isWrapped:se.value,value:w.value?Se:ce,language:n})}):S&&ce?s.jsxs(Q,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[s.jsx(la,{isDark:z,searchTerm:G,isLargeView:E,isCommand:!0,isShowMore:!0,isWrapped:se.value,autoHideScrollbar:!0,value:Se,language:"shell"}),_&&s.jsxs(Q,{className:"".concat(K?"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:[s.jsx(la,{isDark:z,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:se.value,value:_,language:"shell"}),V&&s.jsx(Q,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:s.jsx($e,{text:"".concat(q("Last run",{ns:"dashboard"}),": ").concat(xf(V,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Ou().format(V,"mini-minute-now",{round:"floor"})})})]})]}):(b||v)&&ce?s.jsxs(Q,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[s.jsx(la,{isDark:z,searchTerm:G,isLargeView:E,isShowMore:!0,isWrapped:se.value,value:Se,autoHideScrollbar:!0,webRequestMethod:b?ue.value.method:"URL",language:"shell"}),_&&s.jsxs(Q,{className:"".concat(K?"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:[s.jsx(la,{isDark:z,maxHeight:E?150:100,isLargeView:!1,isShowMore:!0,isWrapped:se.value,value:_,language:K?"text":"json"}),V&&s.jsx(Q,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:s.jsx($e,{text:"".concat(q("Last run",{ns:"dashboard"}),": ").concat(xf(V,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Ou().format(V,"mini-minute-now",{round:"floor"})})})]})]}):M?s.jsx(Q,{className:"self-start text-sm w-full select-text",children:s.jsx(AB,{formTemplateOptions:W,clipId:t})}):P?s.jsx(Q,{className:"self-start text-sm w-full select-text",children:s.jsx(FB,{formTemplateOptions:W,clipId:t,value:F})}):je?s.jsx("code",{className:"text-gray-300",children:I}):s.jsx(Yw,{isExpanded:w.value,isWrapped:se.value,isImageData:j,isMasked:D,isLargeView:E,isCode:g,hasLinkCard:le,metadataLinkByItemId:oe,isImage:C,trimmedValue:Se,valuePreview:ce,morePreviewLines:he,isDark:z,searchTerm:G})}),s.jsxs(ve,{className:"justify-between select-none",children:[(b||S||v)&&_?s.jsx(Q,{className:"flex flex-row items-center rounded",children:s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{se.value=!se.value},children:s.jsx($e,{text:se.value?q("No Wrap",{ns:"common"}):q("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:se.value?s.jsx(rm,{width:20,height:20}):s.jsx(nm,{width:20,height:20})})})}):he||we?s.jsxs(Q,{className:"flex flex-row items-center rounded",children:[s.jsx(Q,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{w.value=!w.value},children:s.jsx($e,{text:w.value?"":q("Show all",{ns:"common"}),isCompact:!0,isDisabled:w.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:w.value?s.jsxs(s.Fragment,{children:["- ",q("show less",{ns:"common"})]}):we?s.jsxs(s.Fragment,{children:["+",we," ",q("chars",{ns:"common"})]}):he&&s.jsxs(s.Fragment,{children:["+",he," ",q("lines",{ns:"common"})]})})}),s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{se.value=!se.value},children:s.jsx($e,{text:se.value?q("No Wrap",{ns:"common"}):q("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:se.value?s.jsx(rm,{width:20,height:20}):s.jsx(nm,{width:20,height:20})})})]}):s.jsx(Q,{}),s.jsxs(Q,{className:"flex flex-row gap-1 items-center justify-end ",children:[S&&s.jsx(Q,{className:"".concat(K?"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:K?q("Command error",{ns:"dashboard"}):q("Type:::Command",{ns:"dashboard"})}),(b||v)&&s.jsxs(ve,{className:"gap-1",children:[s.jsxs(Q,{className:"".concat(K?"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&&s.jsx("span",{children:K?q("Request error",{ns:"dashboard"}):q("Type:::Request",{ns:"dashboard"})}),v&&s.jsx("span",{children:K?q("Error",{ns:"dashboard"}):q("Type:::Scraper",{ns:"dashboard"})})]}),v&&ue.value.scrapingRules&&((Le=ue.value.scrapingRules)==null?void 0:Le.filter(Qe=>Qe.isEnable).length)>0&&s.jsxs(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[q("Headers",{ns:"dashboard"}),s.jsx("span",{className:"ml-1 font-mono",children:ue.value.headers.filter(Qe=>Qe.isEnable).length})]}),b&&ue.value.headers.filter(Qe=>Qe.isEnable).length>0&&s.jsxs(Q,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[q("Headers",{ns:"dashboard"}),s.jsx("span",{className:"ml-1 font-mono",children:ue.value.headers.filter(Qe=>Qe.isEnable).length})]}),b&&((Ee=ue.value.auth)==null?void 0:Ee.isEnable)&&s.jsx(Q,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(He=ue.value.auth)==null?void 0:He.type}),b&&ue.value.filters.filter(Qe=>Qe.isEnable).length>0&&s.jsxs(Q,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[q("Filters",{ns:"dashboard"}),s.jsx("span",{className:"ml-1 font-mono",children:ue.value.filters.filter(Qe=>Qe.isEnable).length})]})]}),(D||o)&&s.jsx(Q,{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:D?q("Type:::Secret",{ns:"common"}):s.jsx(uc,{size:16})}),n&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:n}),N&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:O?q("Type:::Video",{ns:"common"}):ec(Se)?q("Type:::Email",{ns:"common"}):q("Type:::Link",{ns:"common"})}),A&&ee.value&&s.jsx(Q,{className:"".concat(ee.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:ee.value==="Error"?s.jsx($e,{text:q("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:ee.value}):ee.value}),a&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:q("Type:::Emoji",{ns:"common"})}),je&&!M&&!C&&s.jsx(Q,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:q("Type:::Empty",{ns:"common"})}),j&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:q("Type:::Image Base64",{ns:"common"})}),M&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:q("Type:::Auto Fill",{ns:"common"})}),$&&s.jsxs(ve,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[q("Type:::Menu",{ns:"common"}),s.jsx(Jv,{size:11,className:"ml-1"})]})]})]})]})}m.memo(HB);function Lye({clipId:e,color:t,description:r,borderWidth:n,name:a}){const{t:o}=Tt(),i=Ve(!1),c=Ve(""),d=Ve(""),{updateItemById:f}=Bi(),h=Ve(up.value),p=Ve(!1);return m.useEffect(()=>{i.value=!1,c.value=a!=null?a:"",up.value=h.value},[h.value]),m.useEffect(()=>{d.value=r!=null?r:"",up.value=p.value},[p.value]),s.jsx(ve,{className:"justify-start w-full",children:h.value?s.jsxs(s.Fragment,{children:[s.jsx($e,{open:i.value||fo.value,asChild:!0,text:fo.value?o("Unsaved name",{ns:"dashboard"}):c.value.length<=RE?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:s.jsx(sr,{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:g=>pe(this,null,function*(){g.stopPropagation(),g.key==="Escape"?h.value=!1:g.key==="Enter"&&(!c.value.length||c.value.length>hp)?i.value=!0:g.key==="Enter"&&(yield f({updatedItem:{name:c.value,itemId:e}}),setTimeout(()=>{h.value=!1},200))}),defaultValue:a,onFocus:g=>{a===o("New Clip",{ns:"dashboard"})&&g.target.select()},onChange:g=>{i.value&&g.target.value.length<=hp&&i.value&&g.target.value.length>0&&(i.value=!1),c.value=g.target.value}})}),s.jsxs(ve,{className:"ml-1",children:[s.jsx($e,{text:o("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:fo.value,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:()=>pe(this,null,function*(){if(fo.value&&(fo.value=!1),!c.value.length||c.value.length>hp){i.value=!0;return}i.value||(yield f({updatedItem:{name:c.value,itemId:e}}),setTimeout(()=>{h.value=!1},200))}),children:s.jsx(Bt,{size:18})})})}),s.jsx($e,{text:o("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{h.value=!1},children:s.jsx(Ur,{size:18})})})})]})]}):s.jsxs(ve,{className:"justify-start w-full mr-2",children:[!p.value&&s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"min-w-[24px]",children:s.jsx(Ww,{color:t!=null?t:null,borderWidth:n,type:Co,itemId:e,updateById:f})}),s.jsx(J,{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:()=>{h.value=!0},color:"black",children:a}),s.jsx(Q,{onClick:()=>{h.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:s.jsx($e,{text:o("Edit name",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(qp,{size:14})})})]}),s.jsx(Q,{onClick:()=>{p.value=!0},title:r&&!p.value?o("Edit Note",{ns:"dashboard"}):void 0,className:"".concat(p.value?"":"ml-1"," pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100"),children:r?s.jsx($e,{text:r,isCompact:!0,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:s.jsx(b$,{size:16})}):s.jsx($e,{text:o("Add note",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:p.value,children:s.jsx(Loe,{size:16})})}),p.value&&s.jsxs(s.Fragment,{children:[s.jsx($e,{open:fo.value,asChild:!0,text:fo.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:s.jsx(sr,{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:g=>pe(this,null,function*(){g.stopPropagation(),g.key==="Escape"?p.value=!1:g.key==="Enter"&&(yield f({updatedItem:{description:d.value,itemId:e}}),setTimeout(()=>{p.value=!1},200))}),defaultValue:r!=null?r:"",onChange:g=>{d.value=g.target.value}})}),s.jsxs(ve,{className:"ml-2",children:[s.jsx($e,{text:o("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:fo.value,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:()=>pe(this,null,function*(){fo.value&&(fo.value=!1),yield f({updatedItem:{description:d.value,itemId:e}}),setTimeout(()=>{p.value=!1},200)}),children:s.jsx(Bt,{size:18})})})}),s.jsx($e,{text:o("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{p.value=!1},children:s.jsx(Ur,{size:18})})})})]})]})]})})}function BB(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"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:[s.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),s.jsx("rect",{x:"6.881",y:"6.83",width:"10.2",height:"10.2",className:"opacity-50",stroke:"none",fill:"currentColor"})]})}function UB(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"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:[s.jsx("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),s.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(e,t){(function(r){r(wc)})(function(r){function n(i,c,d){this.orientation=c,this.scroll=d,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 f=this;r.on(this.inner,"mousedown",function(p){if(p.which!=1)return;r.e_preventDefault(p);var g=f.orientation=="horizontal"?"pageX":"pageY",S=p[g],b=f.pos;function v(){r.off(document,"mousemove",w),r.off(document,"mouseup",v)}function w(C){if(C.which!=1)return v();f.moveTo(b+(C[g]-S)*(f.total/f.size))}r.on(document,"mousemove",w),r.on(document,"mouseup",v)}),r.on(this.node,"click",function(p){r.e_preventDefault(p);var g=f.inner.getBoundingClientRect(),S;f.orientation=="horizontal"?S=p.clientX<g.left?-1:p.clientX>g.right?1:0:S=p.clientY<g.top?-1:p.clientY>g.bottom?1:0,f.moveTo(f.pos+S*f.screen)});function h(p){var g=r.wheelEventPixels(p)[f.orientation=="horizontal"?"x":"y"],S=f.pos;f.moveTo(f.pos+g),f.pos!=S&&r.e_preventDefault(p)}r.on(this.node,"mousewheel",h),r.on(this.node,"DOMMouseScroll",h)}n.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)},n.prototype.moveTo=function(i){this.setPos(i)&&this.scroll(i,this.orientation)};var a=10;n.prototype.update=function(i,c,d){var f=this.screen!=c||this.total!=i||this.size!=d;f&&(this.screen=c,this.total=i,this.size=d);var h=this.screen*(this.size/this.total);h<a&&(this.size-=a-h,h=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=h+"px",this.setPos(this.pos,f)};function o(i,c,d){this.addClass=i,this.horiz=new n(i,"horizontal",d),c(this.horiz.node),this.vert=new n(i,"vertical",d),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 d=this.width||0,f=i.scrollWidth>i.clientWidth+1,h=i.scrollHeight>i.clientHeight+1;return this.vert.node.style.display=h?"block":"none",this.horiz.node.style.display=f?"block":"none",h&&(this.vert.update(i.scrollHeight,i.clientHeight,i.viewHeight-(f?d:0)),this.vert.node.style.bottom=f?d+"px":"0"),f&&(this.horiz.update(i.scrollWidth,i.clientWidth,i.viewWidth-(h?d:0)-i.barLeft),this.horiz.node.style.right=h?d+"px":"0",this.horiz.node.style.left=i.barLeft+"px"),{right:h?d:0,bottom:f?d: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)},r.scrollbarModel.simple=function(i,c){return new o("CodeMirror-simplescroll",i,c)},r.scrollbarModel.overlay=function(i,c){return new o("CodeMirror-overlayscroll",i,c)}})})();var GP={exports:{}},YP;function Oye(){return YP||(YP=1,function(e,t){(function(r){r(wc)})(function(r){r.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 n=0;n<r.modeInfo.length;n++){var a=r.modeInfo[n];a.mimes&&(a.mime=a.mimes[0])}r.findModeByMIME=function(o){o=o.toLowerCase();for(var i=0;i<r.modeInfo.length;i++){var c=r.modeInfo[i];if(c.mime==o)return c;if(c.mimes){for(var d=0;d<c.mimes.length;d++)if(c.mimes[d]==o)return c}}if(/\+xml$/.test(o))return r.findModeByMIME("application/xml");if(/\+json$/.test(o))return r.findModeByMIME("application/json")},r.findModeByExtension=function(o){o=o.toLowerCase();for(var i=0;i<r.modeInfo.length;i++){var c=r.modeInfo[i];if(c.ext){for(var d=0;d<c.ext.length;d++)if(c.ext[d]==o)return c}}},r.findModeByFileName=function(o){for(var i=0;i<r.modeInfo.length;i++){var c=r.modeInfo[i];if(c.file&&c.file.test(o))return c}var d=o.lastIndexOf("."),f=d>-1&&o.substring(d+1,o.length);if(f)return r.findModeByExtension(f)},r.findModeByName=function(o){o=o.toLowerCase();for(var i=0;i<r.modeInfo.length;i++){var c=r.modeInfo[i];if(c.name.toLowerCase()==o)return c;if(c.alias){for(var d=0;d<c.alias.length;d++)if(c.alias[d].toLowerCase()==o)return c}}}})}()),GP.exports}Oye();var ZP={exports:{}},XP;function Iye(){return XP||(XP=1,function(e,t){(function(r){r(wc)})(function(r){r.defineMode("javascript",function(n,a){var o=n.indentUnit,i=a.statementIndent,c=a.jsonld,d=a.json||c,f=a.trackScope!==!1,h=a.typescript,p=a.wordCharacters||/[\w$\xa1-\uffff]/,g=function(){function ne(Hn){return{type:Hn,style:"keyword"}}var fe=ne("keyword a"),Ue=ne("keyword b"),rt=ne("keyword c"),Oe=ne("keyword d"),gt=ne("operator"),mr={type:"atom",style:"atom"};return{if:ne("if"),while:fe,with:fe,else:Ue,do:Ue,try:Ue,finally:Ue,return:Oe,break:Oe,continue:Oe,new:ne("new"),delete:rt,void:rt,throw:rt,debugger:ne("debugger"),var:ne("var"),const:ne("var"),let:ne("var"),function:ne("function"),catch:ne("catch"),for:ne("for"),switch:ne("switch"),case:ne("case"),default:ne("default"),in:gt,typeof:gt,instanceof:gt,true:mr,false:mr,null:mr,undefined:mr,NaN:mr,Infinity:mr,this:ne("this"),class:ne("class"),super:ne("atom"),yield:rt,export:ne("export"),import:ne("import"),extends:rt,await:rt}}(),S=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(ne){for(var fe=!1,Ue,rt=!1;(Ue=ne.next())!=null;){if(!fe){if(Ue=="/"&&!rt)return;Ue=="["?rt=!0:rt&&Ue=="]"&&(rt=!1)}fe=!fe&&Ue=="\\"}}var w,C;function j(ne,fe,Ue){return w=ne,C=Ue,fe}function E(ne,fe){var Ue=ne.next();if(Ue=='"'||Ue=="'")return fe.tokenize=N(Ue),fe.tokenize(ne,fe);if(Ue=="."&&ne.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(Ue=="."&&ne.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ue))return j(Ue);if(Ue=="="&&ne.eat(">"))return j("=>","operator");if(Ue=="0"&&ne.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(Ue))return ne.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(Ue=="/")return ne.eat("*")?(fe.tokenize=M,M(ne,fe)):ne.eat("/")?(ne.skipToEnd(),j("comment","comment")):Dt(ne,fe,1)?(v(ne),ne.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(ne.eat("="),j("operator","operator",ne.current()));if(Ue=="`")return fe.tokenize=P,P(ne,fe);if(Ue=="#"&&ne.peek()=="!")return ne.skipToEnd(),j("meta","meta");if(Ue=="#"&&ne.eatWhile(p))return j("variable","property");if(Ue=="<"&&ne.match("!--")||Ue=="-"&&ne.match("->")&&!/\S/.test(ne.string.slice(0,ne.start)))return ne.skipToEnd(),j("comment","comment");if(S.test(Ue))return(Ue!=">"||!fe.lexical||fe.lexical.type!=">")&&(ne.eat("=")?(Ue=="!"||Ue=="=")&&ne.eat("="):/[<>*+\-|&?]/.test(Ue)&&(ne.eat(Ue),Ue==">"&&ne.eat(Ue))),Ue=="?"&&ne.eat(".")?j("."):j("operator","operator",ne.current());if(p.test(Ue)){ne.eatWhile(p);var rt=ne.current();if(fe.lastType!="."){if(g.propertyIsEnumerable(rt)){var Oe=g[rt];return j(Oe.type,Oe.style,rt)}if(rt=="async"&&ne.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",rt)}return j("variable","variable",rt)}}function N(ne){return function(fe,Ue){var rt=!1,Oe;if(c&&fe.peek()=="@"&&fe.match(b))return Ue.tokenize=E,j("jsonld-keyword","meta");for(;(Oe=fe.next())!=null&&!(Oe==ne&&!rt);)rt=!rt&&Oe=="\\";return rt||(Ue.tokenize=E),j("string","string")}}function M(ne,fe){for(var Ue=!1,rt;rt=ne.next();){if(rt=="/"&&Ue){fe.tokenize=E;break}Ue=rt=="*"}return j("comment","comment")}function P(ne,fe){for(var Ue=!1,rt;(rt=ne.next())!=null;){if(!Ue&&(rt=="`"||rt=="$"&&ne.eat("{"))){fe.tokenize=E;break}Ue=!Ue&&rt=="\\"}return j("quasi","string-2",ne.current())}var D="([{}])";function A(ne,fe){fe.fatArrowAt&&(fe.fatArrowAt=null);var Ue=ne.string.indexOf("=>",ne.start);if(!(Ue<0)){if(h){var rt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ne.string.slice(ne.start,Ue));rt&&(Ue=rt.index)}for(var Oe=0,gt=!1,mr=Ue-1;mr>=0;--mr){var Hn=ne.string.charAt(mr),Ps=D.indexOf(Hn);if(Ps>=0&&Ps<3){if(!Oe){++mr;break}if(--Oe==0){Hn=="("&&(gt=!0);break}}else if(Ps>=3&&Ps<6)++Oe;else if(p.test(Hn))gt=!0;else if(/["'\/`]/.test(Hn))for(;;--mr){if(mr==0)return;var Sc=ne.string.charAt(mr-1);if(Sc==Hn&&ne.string.charAt(mr-2)!="\\"){mr--;break}}else if(gt&&!Oe){++mr;break}}gt&&!Oe&&(fe.fatArrowAt=mr)}}var O={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $(ne,fe,Ue,rt,Oe,gt){this.indented=ne,this.column=fe,this.type=Ue,this.prev=Oe,this.info=gt,rt!=null&&(this.align=rt)}function H(ne,fe){if(!f)return!1;for(var Ue=ne.localVars;Ue;Ue=Ue.next)if(Ue.name==fe)return!0;for(var rt=ne.context;rt;rt=rt.prev)for(var Ue=rt.vars;Ue;Ue=Ue.next)if(Ue.name==fe)return!0}function z(ne,fe,Ue,rt,Oe){var gt=ne.cc;for(I.state=ne,I.stream=Oe,I.marked=null,I.cc=gt,I.style=fe,ne.lexical.hasOwnProperty("align")||(ne.lexical.align=!0);;){var mr=gt.length?gt.pop():d?he:ue;if(mr(Ue,rt)){for(;gt.length&>[gt.length-1].lex;)gt.pop()();return I.marked?I.marked:Ue=="variable"&&H(ne,rt)?"variable-2":fe}}}var I={state:null,column:null,marked:null,cc:null};function W(){for(var ne=arguments.length-1;ne>=0;ne--)I.cc.push(arguments[ne])}function _(){return W.apply(null,arguments),!0}function K(ne,fe){for(var Ue=fe;Ue;Ue=Ue.next)if(Ue.name==ne)return!0;return!1}function V(ne){var fe=I.state;if(I.marked="def",!!f){if(fe.context){if(fe.lexical.info=="var"&&fe.context&&fe.context.block){var Ue=U(ne,fe.context);if(Ue!=null){fe.context=Ue;return}}else if(!K(ne,fe.localVars)){fe.localVars=new F(ne,fe.localVars);return}}a.globalVars&&!K(ne,fe.globalVars)&&(fe.globalVars=new F(ne,fe.globalVars))}}function U(ne,fe){if(fe)if(fe.block){var Ue=U(ne,fe.prev);return Ue?Ue==fe.prev?fe:new G(Ue,fe.vars,!0):null}else return K(ne,fe.vars)?fe:new G(fe.prev,new F(ne,fe.vars),!1);else return null}function X(ne){return ne=="public"||ne=="private"||ne=="protected"||ne=="abstract"||ne=="readonly"}function G(ne,fe,Ue){this.prev=ne,this.vars=fe,this.block=Ue}function F(ne,fe){this.name=ne,this.next=fe}var q=new F("this",new F("arguments",null));function Y(){I.state.context=new G(I.state.context,I.state.localVars,!1),I.state.localVars=q}function se(){I.state.context=new G(I.state.context,I.state.localVars,!0),I.state.localVars=null}Y.lex=se.lex=!0;function ee(){I.state.localVars=I.state.context.vars,I.state.context=I.state.context.prev}ee.lex=!0;function ae(ne,fe){var Ue=function(){var rt=I.state,Oe=rt.indented;if(rt.lexical.type=="stat")Oe=rt.lexical.indented;else for(var gt=rt.lexical;gt&>.type==")"&>.align;gt=gt.prev)Oe=gt.indented;rt.lexical=new $(Oe,I.stream.column(),ne,null,rt.lexical,fe)};return Ue.lex=!0,Ue}function oe(){var ne=I.state;ne.lexical.prev&&(ne.lexical.type==")"&&(ne.indented=ne.lexical.indented),ne.lexical=ne.lexical.prev)}oe.lex=!0;function le(ne){function fe(Ue){return Ue==ne?_():ne==";"||Ue=="}"||Ue==")"||Ue=="]"?W():_(fe)}return fe}function ue(ne,fe){return ne=="var"?_(ae("vardef",fe),wt,le(";"),oe):ne=="keyword a"?_(ae("form"),Se,ue,oe):ne=="keyword b"?_(ae("form"),ue,oe):ne=="keyword d"?I.stream.match(/^\s*$/,!1)?_():_(ae("stat"),je,le(";"),oe):ne=="debugger"?_(le(";")):ne=="{"?_(ae("}"),se,ar,oe,ee):ne==";"?_():ne=="if"?(I.state.lexical.info=="else"&&I.state.cc[I.state.cc.length-1]==oe&&I.state.cc.pop()(),_(ae("form"),Se,ue,oe,Yt)):ne=="function"?_(Mr):ne=="for"?_(ae("form"),se,Ht,ue,ee,oe):ne=="class"||h&&fe=="interface"?(I.marked="keyword",_(ae("form",ne=="class"?ne:fe),nt,oe)):ne=="variable"?h&&fe=="declare"?(I.marked="keyword",_(ue)):h&&(fe=="module"||fe=="enum"||fe=="type")&&I.stream.match(/^\s*\w/,!1)?(I.marked="keyword",fe=="enum"?_(Et):fe=="type"?_(yt,le("operator"),Me,le(";")):_(ae("form"),ct,le("{"),ae("}"),ar,oe,oe)):h&&fe=="namespace"?(I.marked="keyword",_(ae("form"),he,ue,oe)):h&&fe=="abstract"?(I.marked="keyword",_(ue)):_(ae("stat"),Xt):ne=="switch"?_(ae("form"),Se,le("{"),ae("}","switch"),se,ar,oe,oe,ee):ne=="case"?_(he,le(":")):ne=="default"?_(le(":")):ne=="catch"?_(ae("form"),Y,ce,ue,oe,ee):ne=="export"?_(ae("stat"),ut,oe):ne=="import"?_(ae("stat"),or,oe):ne=="async"?_(ue):fe=="@"?_(he,ue):W(ae("stat"),he,le(";"),oe)}function ce(ne){if(ne=="(")return _(er,le(")"))}function he(ne,fe){return Ae(ne,fe,!1)}function we(ne,fe){return Ae(ne,fe,!0)}function Se(ne){return ne!="("?W():_(ae(")"),je,le(")"),oe)}function Ae(ne,fe,Ue){if(I.state.fatArrowAt==I.stream.start){var rt=Ue?mt:Ze;if(ne=="(")return _(Y,ae(")"),et(er,")"),oe,le("=>"),rt,ee);if(ne=="variable")return W(Y,ct,le("=>"),rt,ee)}var Oe=Ue?Ee:Le;return O.hasOwnProperty(ne)?_(Oe):ne=="function"?_(Mr,Oe):ne=="class"||h&&fe=="interface"?(I.marked="keyword",_(ae("form"),Ot,oe)):ne=="keyword c"||ne=="async"?_(Ue?we:he):ne=="("?_(ae(")"),je,le(")"),oe,Oe):ne=="operator"||ne=="spread"?_(Ue?we:he):ne=="["?_(ae("]"),Kt,oe,Oe):ne=="{"?cr(zt,"}",null,Oe):ne=="quasi"?W(He,Oe):ne=="new"?_(Ke(Ue)):_()}function je(ne){return ne.match(/[;\}\)\],]/)?W():W(he)}function Le(ne,fe){return ne==","?_(je):Ee(ne,fe,!1)}function Ee(ne,fe,Ue){var rt=Ue==!1?Le:Ee,Oe=Ue==!1?he:we;if(ne=="=>")return _(Y,Ue?mt:Ze,ee);if(ne=="operator")return/\+\+|--/.test(fe)||h&&fe=="!"?_(rt):h&&fe=="<"&&I.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(ae(">"),et(Me,">"),oe,rt):fe=="?"?_(he,le(":"),Oe):_(Oe);if(ne=="quasi")return W(He,rt);if(ne!=";"){if(ne=="(")return cr(we,")","call",rt);if(ne==".")return _(Ge,rt);if(ne=="[")return _(ae("]"),je,le("]"),oe,rt);if(h&&fe=="as")return I.marked="keyword",_(Me,rt);if(ne=="regexp")return I.state.lastType=I.marked="operator",I.stream.backUp(I.stream.pos-I.stream.start-1),_(Oe)}}function He(ne,fe){return ne!="quasi"?W():fe.slice(fe.length-2)!="${"?_(He):_(je,Qe)}function Qe(ne){if(ne=="}")return I.marked="string-2",I.state.tokenize=P,_(He)}function Ze(ne){return A(I.stream,I.state),W(ne=="{"?ue:he)}function mt(ne){return A(I.stream,I.state),W(ne=="{"?ue:we)}function Ke(ne){return function(fe){return fe=="."?_(ne?qt:Lt):fe=="variable"&&h?_(Je,ne?Ee:Le):W(ne?we:he)}}function Lt(ne,fe){if(fe=="target")return I.marked="keyword",_(Le)}function qt(ne,fe){if(fe=="target")return I.marked="keyword",_(Ee)}function Xt(ne){return ne==":"?_(oe,ue):W(Le,le(";"),oe)}function Ge(ne){if(ne=="variable")return I.marked="property",_()}function zt(ne,fe){if(ne=="async")return I.marked="property",_(zt);if(ne=="variable"||I.style=="keyword"){if(I.marked="property",fe=="get"||fe=="set")return _(ir);var Ue;return h&&I.state.fatArrowAt==I.stream.start&&(Ue=I.stream.match(/^\s*:\s*/,!1))&&(I.state.fatArrowAt=I.stream.pos+Ue[0].length),_(Ft)}else{if(ne=="number"||ne=="string")return I.marked=c?"property":I.style+" property",_(Ft);if(ne=="jsonld-keyword")return _(Ft);if(h&&X(fe))return I.marked="keyword",_(zt);if(ne=="[")return _(he,ur,le("]"),Ft);if(ne=="spread")return _(we,Ft);if(fe=="*")return I.marked="keyword",_(zt);if(ne==":")return W(Ft)}}function ir(ne){return ne!="variable"?W(Ft):(I.marked="property",_(Mr))}function Ft(ne){if(ne==":")return _(we);if(ne=="(")return W(Mr)}function et(ne,fe,Ue){function rt(Oe,gt){if(Ue?Ue.indexOf(Oe)>-1:Oe==","){var mr=I.state.lexical;return mr.info=="call"&&(mr.pos=(mr.pos||0)+1),_(function(Hn,Ps){return Hn==fe||Ps==fe?W():W(ne)},rt)}return Oe==fe||gt==fe?_():Ue&&Ue.indexOf(";")>-1?W(ne):_(le(fe))}return function(Oe,gt){return Oe==fe||gt==fe?_():W(ne,rt)}}function cr(ne,fe,Ue){for(var rt=3;rt<arguments.length;rt++)I.cc.push(arguments[rt]);return _(ae(fe,Ue),et(ne,fe),oe)}function ar(ne){return ne=="}"?_():W(ue,ar)}function ur(ne,fe){if(h){if(ne==":")return _(Me);if(fe=="?")return _(ur)}}function Sr(ne,fe){if(h&&(ne==":"||fe=="in"))return _(Me)}function Mt(ne){if(h&&ne==":")return I.stream.match(/^\s*\w+\s+is\b/,!1)?_(he,Rr,Me):_(Me)}function Rr(ne,fe){if(fe=="is")return I.marked="keyword",_()}function Me(ne,fe){if(fe=="keyof"||fe=="typeof"||fe=="infer"||fe=="readonly")return I.marked="keyword",_(fe=="typeof"?we:Me);if(ne=="variable"||fe=="void")return I.marked="type",_(Fe);if(fe=="|"||fe=="&")return _(Me);if(ne=="string"||ne=="number"||ne=="atom")return _(Fe);if(ne=="[")return _(ae("]"),et(Me,"]",","),oe,Fe);if(ne=="{")return _(ae("}"),Te,oe,Fe);if(ne=="(")return _(et(De,")"),Ye,Fe);if(ne=="<")return _(et(Me,">"),Me);if(ne=="quasi")return W(xe,Fe)}function Ye(ne){if(ne=="=>")return _(Me)}function Te(ne){return ne.match(/[\}\)\]]/)?_():ne==","||ne==";"?_(Te):W(lt,Te)}function lt(ne,fe){if(ne=="variable"||I.style=="keyword")return I.marked="property",_(lt);if(fe=="?"||ne=="number"||ne=="string")return _(lt);if(ne==":")return _(Me);if(ne=="[")return _(le("variable"),Sr,le("]"),lt);if(ne=="(")return W(Jt,lt);if(!ne.match(/[;\}\)\],]/))return _()}function xe(ne,fe){return ne!="quasi"?W():fe.slice(fe.length-2)!="${"?_(xe):_(Me,be)}function be(ne){if(ne=="}")return I.marked="string-2",I.state.tokenize=P,_(xe)}function De(ne,fe){return ne=="variable"&&I.stream.match(/^\s*[?:]/,!1)||fe=="?"?_(De):ne==":"?_(Me):ne=="spread"?_(De):W(Me)}function Fe(ne,fe){if(fe=="<")return _(ae(">"),et(Me,">"),oe,Fe);if(fe=="|"||ne=="."||fe=="&")return _(Me);if(ne=="[")return _(Me,le("]"),Fe);if(fe=="extends"||fe=="implements")return I.marked="keyword",_(Me);if(fe=="?")return _(Me,le(":"),Me)}function Je(ne,fe){if(fe=="<")return _(ae(">"),et(Me,">"),oe,Fe)}function st(){return W(Me,at)}function at(ne,fe){if(fe=="=")return _(Me)}function wt(ne,fe){return fe=="enum"?(I.marked="keyword",_(Et)):W(ct,ur,kt,dr)}function ct(ne,fe){if(h&&X(fe))return I.marked="keyword",_(ct);if(ne=="variable")return V(fe),_();if(ne=="spread")return _(ct);if(ne=="[")return cr(Gt,"]");if(ne=="{")return cr(Nt,"}")}function Nt(ne,fe){return ne=="variable"&&!I.stream.match(/^\s*:/,!1)?(V(fe),_(kt)):(ne=="variable"&&(I.marked="property"),ne=="spread"?_(ct):ne=="}"?W():ne=="["?_(he,le("]"),le(":"),Nt):_(le(":"),ct,kt))}function Gt(){return W(ct,kt)}function kt(ne,fe){if(fe=="=")return _(we)}function dr(ne){if(ne==",")return _(wt)}function Yt(ne,fe){if(ne=="keyword b"&&fe=="else")return _(ae("form","else"),ue,oe)}function Ht(ne,fe){if(fe=="await")return _(Ht);if(ne=="(")return _(ae(")"),lr,oe)}function lr(ne){return ne=="var"?_(wt,It):ne=="variable"?_(It):W(It)}function It(ne,fe){return ne==")"?_():ne==";"?_(It):fe=="in"||fe=="of"?(I.marked="keyword",_(he,It)):W(he,It)}function Mr(ne,fe){if(fe=="*")return I.marked="keyword",_(Mr);if(ne=="variable")return V(fe),_(Mr);if(ne=="(")return _(Y,ae(")"),et(er,")"),oe,Mt,ue,ee);if(h&&fe=="<")return _(ae(">"),et(st,">"),oe,Mr)}function Jt(ne,fe){if(fe=="*")return I.marked="keyword",_(Jt);if(ne=="variable")return V(fe),_(Jt);if(ne=="(")return _(Y,ae(")"),et(er,")"),oe,Mt,ee);if(h&&fe=="<")return _(ae(">"),et(st,">"),oe,Jt)}function yt(ne,fe){if(ne=="keyword"||ne=="variable")return I.marked="type",_(yt);if(fe=="<")return _(ae(">"),et(st,">"),oe)}function er(ne,fe){return fe=="@"&&_(he,er),ne=="spread"?_(er):h&&X(fe)?(I.marked="keyword",_(er)):h&&ne=="this"?_(ur,kt):W(ct,ur,kt)}function Ot(ne,fe){return ne=="variable"?nt(ne,fe):ye(ne,fe)}function nt(ne,fe){if(ne=="variable")return V(fe),_(ye)}function ye(ne,fe){if(fe=="<")return _(ae(">"),et(st,">"),oe,ye);if(fe=="extends"||fe=="implements"||h&&ne==",")return fe=="implements"&&(I.marked="keyword"),_(h?Me:he,ye);if(ne=="{")return _(ae("}"),Ie,oe)}function Ie(ne,fe){if(ne=="async"||ne=="variable"&&(fe=="static"||fe=="get"||fe=="set"||h&&X(fe))&&I.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return I.marked="keyword",_(Ie);if(ne=="variable"||I.style=="keyword")return I.marked="property",_(qe,Ie);if(ne=="number"||ne=="string")return _(qe,Ie);if(ne=="[")return _(he,ur,le("]"),qe,Ie);if(fe=="*")return I.marked="keyword",_(Ie);if(h&&ne=="(")return W(Jt,Ie);if(ne==";"||ne==",")return _(Ie);if(ne=="}")return _();if(fe=="@")return _(he,Ie)}function qe(ne,fe){if(fe=="!"||fe=="?")return _(qe);if(ne==":")return _(Me,kt);if(fe=="=")return _(we);var Ue=I.state.lexical.prev,rt=Ue&&Ue.info=="interface";return W(rt?Jt:Mr)}function ut(ne,fe){return fe=="*"?(I.marked="keyword",_(fn,le(";"))):fe=="default"?(I.marked="keyword",_(he,le(";"))):ne=="{"?_(et(Pt,"}"),fn,le(";")):W(ue)}function Pt(ne,fe){if(fe=="as")return I.marked="keyword",_(le("variable"));if(ne=="variable")return W(we,Pt)}function or(ne){return ne=="string"?_():ne=="("?W(he):ne=="."?W(Le):W(Fr,Xr,fn)}function Fr(ne,fe){return ne=="{"?cr(Fr,"}"):(ne=="variable"&&V(fe),fe=="*"&&(I.marked="keyword"),_(ys))}function Xr(ne){if(ne==",")return _(Fr,Xr)}function ys(ne,fe){if(fe=="as")return I.marked="keyword",_(Fr)}function fn(ne,fe){if(fe=="from")return I.marked="keyword",_(he)}function Kt(ne){return ne=="]"?_():W(et(we,"]"))}function Et(){return W(ae("form"),ct,le("{"),ae("}"),et(ot,"}"),oe,oe)}function ot(){return W(ct,kt)}function Wt(ne,fe){return ne.lastType=="operator"||ne.lastType==","||S.test(fe.charAt(0))||/[,.]/.test(fe.charAt(0))}function Dt(ne,fe,Ue){return fe.tokenize==E&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(fe.lastType)||fe.lastType=="quasi"&&/\{\s*$/.test(ne.string.slice(0,ne.pos-(Ue||0)))}return{startState:function(ne){var fe={tokenize:E,lastType:"sof",cc:[],lexical:new $((ne||0)-o,0,"block",!1),localVars:a.localVars,context:a.localVars&&new G(null,null,!1),indented:ne||0};return a.globalVars&&typeof a.globalVars=="object"&&(fe.globalVars=a.globalVars),fe},token:function(ne,fe){if(ne.sol()&&(fe.lexical.hasOwnProperty("align")||(fe.lexical.align=!1),fe.indented=ne.indentation(),A(ne,fe)),fe.tokenize!=M&&ne.eatSpace())return null;var Ue=fe.tokenize(ne,fe);return w=="comment"?Ue:(fe.lastType=w=="operator"&&(C=="++"||C=="--")?"incdec":w,z(fe,Ue,w,C,ne))},indent:function(ne,fe){if(ne.tokenize==M||ne.tokenize==P)return r.Pass;if(ne.tokenize!=E)return 0;var Ue=fe&&fe.charAt(0),rt=ne.lexical,Oe;if(!/^\s*else\b/.test(fe))for(var gt=ne.cc.length-1;gt>=0;--gt){var mr=ne.cc[gt];if(mr==oe)rt=rt.prev;else if(mr!=Yt&&mr!=ee)break}for(;(rt.type=="stat"||rt.type=="form")&&(Ue=="}"||(Oe=ne.cc[ne.cc.length-1])&&(Oe==Le||Oe==Ee)&&!/^[,\.=+\-*:?[\(]/.test(fe));)rt=rt.prev;i&&rt.type==")"&&rt.prev.type=="stat"&&(rt=rt.prev);var Hn=rt.type,Ps=Ue==Hn;return Hn=="vardef"?rt.indented+(ne.lastType=="operator"||ne.lastType==","?rt.info.length+1:0):Hn=="form"&&Ue=="{"?rt.indented:Hn=="form"?rt.indented+o:Hn=="stat"?rt.indented+(Wt(ne,fe)?i||o:0):rt.info=="switch"&&!Ps&&a.doubleIndentSwitch!=!1?rt.indented+(/^(?:case|default)\b/.test(fe)?o:2*o):rt.align?rt.column+(Ps?0:1):rt.indented+(Ps?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:d?null:"/*",blockCommentEnd:d?null:"*/",blockCommentContinue:d?null:" * ",lineComment:d?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:d?"json":"javascript",jsonldMode:c,jsonMode:d,expressionAllowed:Dt,skipExpression:function(ne){z(ne,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),ZP.exports}var WB=Iye();const $ye=Fi(WB),VB=E2({__proto__:null,default:$ye},[WB]);var QP={exports:{}},JP;function zye(){return JP||(JP=1,function(e,t){(function(r){r(wc)})(function(r){var n={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},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(o,i){var c=o.indentUnit,d={},f=i.htmlMode?n:a;for(var h in f)d[h]=f[h];for(var h in i)d[h]=i[h];var p,g;function S(_,K){function V(G){return K.tokenize=G,G(_,K)}var U=_.next();if(U=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?V(w("atom","]]>")):null:_.match("--")?V(w("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),V(C(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),K.tokenize=w("meta","?>"),"meta"):(p=_.eat("/")?"closeTag":"openTag",K.tokenize=b,"tag bracket");if(U=="&"){var X;return _.eat("#")?_.eat("x")?X=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):X=_.eatWhile(/[\d]/)&&_.eat(";"):X=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),X?"atom":"error"}else return _.eatWhile(/[^&<]/),null}S.isInText=!0;function b(_,K){var V=_.next();if(V==">"||V=="/"&&_.eat(">"))return K.tokenize=S,p=V==">"?"endTag":"selfcloseTag","tag bracket";if(V=="=")return p="equals",null;if(V=="<"){K.tokenize=S,K.state=P,K.tagName=K.tagStart=null;var U=K.tokenize(_,K);return U?U+" tag error":"tag error"}else return/[\'\"]/.test(V)?(K.tokenize=v(V),K.stringStartCol=_.column(),K.tokenize(_,K)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function v(_){var K=function(V,U){for(;!V.eol();)if(V.next()==_){U.tokenize=b;break}return"string"};return K.isInAttribute=!0,K}function w(_,K){return function(V,U){for(;!V.eol();){if(V.match(K)){U.tokenize=S;break}V.next()}return _}}function C(_){return function(K,V){for(var U;(U=K.next())!=null;){if(U=="<")return V.tokenize=C(_+1),V.tokenize(K,V);if(U==">")if(_==1){V.tokenize=S;break}else return V.tokenize=C(_-1),V.tokenize(K,V)}return"meta"}}function j(_){return _&&_.toLowerCase()}function E(_,K,V){this.prev=_.context,this.tagName=K||"",this.indent=_.indented,this.startOfLine=V,(d.doNotIndent.hasOwnProperty(K)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function N(_){_.context&&(_.context=_.context.prev)}function M(_,K){for(var V;;){if(!_.context||(V=_.context.tagName,!d.contextGrabbers.hasOwnProperty(j(V))||!d.contextGrabbers[j(V)].hasOwnProperty(j(K))))return;N(_)}}function P(_,K,V){return _=="openTag"?(V.tagStart=K.column(),D):_=="closeTag"?A:P}function D(_,K,V){return _=="word"?(V.tagName=K.current(),g="tag",H):d.allowMissingTagName&&_=="endTag"?(g="tag bracket",H(_,K,V)):(g="error",D)}function A(_,K,V){if(_=="word"){var U=K.current();return V.context&&V.context.tagName!=U&&d.implicitlyClosed.hasOwnProperty(j(V.context.tagName))&&N(V),V.context&&V.context.tagName==U||d.matchClosing===!1?(g="tag",O):(g="tag error",$)}else return d.allowMissingTagName&&_=="endTag"?(g="tag bracket",O(_,K,V)):(g="error",$)}function O(_,K,V){return _!="endTag"?(g="error",O):(N(V),P)}function $(_,K,V){return g="error",O(_,K,V)}function H(_,K,V){if(_=="word")return g="attribute",z;if(_=="endTag"||_=="selfcloseTag"){var U=V.tagName,X=V.tagStart;return V.tagName=V.tagStart=null,_=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(j(U))?M(V,U):(M(V,U),V.context=new E(V,U,X==V.indented)),P}return g="error",H}function z(_,K,V){return _=="equals"?I:(d.allowMissing||(g="error"),H(_,K,V))}function I(_,K,V){return _=="string"?W:_=="word"&&d.allowUnquoted?(g="string",H):(g="error",H(_,K,V))}function W(_,K,V){return _=="string"?W:H(_,K,V)}return{startState:function(_){var K={tokenize:S,state:P,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(K.baseIndent=_),K},token:function(_,K){if(!K.tagName&&_.sol()&&(K.indented=_.indentation()),_.eatSpace())return null;p=null;var V=K.tokenize(_,K);return(V||p)&&V!="comment"&&(g=null,K.state=K.state(p||V,_,K),g&&(V=g=="error"?V+" error":g)),V},indent:function(_,K,V){var U=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+c;if(U&&U.noIndent)return r.Pass;if(_.tokenize!=b&&_.tokenize!=S)return V?V.match(/^(\s*)/)[0].length:0;if(_.tagName)return d.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+c*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(K))return 0;var X=K&&/^<(\/)?([\w_:\.-]*)/.exec(K);if(X&&X[1])for(;U;)if(U.tagName==X[2]){U=U.prev;break}else if(d.implicitlyClosed.hasOwnProperty(j(U.tagName)))U=U.prev;else break;else if(X)for(;U;){var G=d.contextGrabbers[j(U.tagName)];if(G&&G.hasOwnProperty(j(X[2])))U=U.prev;else break}for(;U&&U.prev&&!U.startOfLine;)U=U.prev;return U?U.indent+c:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(_){_.state==I&&(_.state=H)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var K=[],V=_.context;V;V=V.prev)K.push(V.tagName);return K.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),QP.exports}var qB=zye();const Fye=Fi(qB),KB=E2({__proto__:null,default:Fye},[qB]);(function(e,t){(function(r){r(wc)})(function(r){var n="CodeMirror-activeline",a="CodeMirror-activeline-background",o="CodeMirror-activeline-gutter";r.defineOption("styleActiveLine",!1,function(h,p,g){var S=g==r.Init?!1:g;p!=S&&(S&&(h.off("beforeSelectionChange",f),i(h),delete h.state.activeLines),p&&(h.state.activeLines=[],d(h,h.listSelections()),h.on("beforeSelectionChange",f)))});function i(h){for(var p=0;p<h.state.activeLines.length;p++)h.removeLineClass(h.state.activeLines[p],"wrap",n),h.removeLineClass(h.state.activeLines[p],"background",a),h.removeLineClass(h.state.activeLines[p],"gutter",o)}function c(h,p){if(h.length!=p.length)return!1;for(var g=0;g<h.length;g++)if(h[g]!=p[g])return!1;return!0}function d(h,p){for(var g=[],S=0;S<p.length;S++){var b=p[S],v=h.getOption("styleActiveLine");if(!(typeof v=="object"&&v.nonEmpty?b.anchor.line!=b.head.line:!b.empty())){var w=h.getLineHandleVisualStart(b.head.line);g[g.length-1]!=w&&g.push(w)}}c(h.state.activeLines,g)||h.operation(function(){i(h);for(var C=0;C<g.length;C++)h.addLineClass(g[C],"wrap",n),h.addLineClass(g[C],"background",a),h.addLineClass(g[C],"gutter",o);h.state.activeLines=g})}function f(h,p){d(h,p.ranges)}})})();var eD={exports:{}},tD;function Hye(){return tD||(tD=1,function(e,t){(function(r){r(wc)})(function(r){r.defineSimpleMode=function(g,S){r.defineMode(g,function(b){return r.simpleMode(b,S)})},r.simpleMode=function(g,S){n(S,"start");var b={},v=S.meta||{},w=!1;for(var C in S)if(C!=v&&S.hasOwnProperty(C))for(var j=b[C]=[],E=S[C],N=0;N<E.length;N++){var M=E[N];j.push(new i(M,S)),(M.indent||M.dedent)&&(w=!0)}var P={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:w?[]:null}},copyState:function(A){var O={state:A.state,pending:A.pending,local:A.local,localState:null,indent:A.indent&&A.indent.slice(0)};A.localState&&(O.localState=r.copyState(A.local.mode,A.localState)),A.stack&&(O.stack=A.stack.slice(0));for(var $=A.persistentStates;$;$=$.next)O.persistentStates={mode:$.mode,spec:$.spec,state:$.state==A.localState?O.localState:r.copyState($.mode,$.state),next:O.persistentStates};return O},token:c(b,g),innerMode:function(A){return A.local&&{mode:A.local.mode,state:A.localState}},indent:p(b,v)};if(v)for(var D in v)v.hasOwnProperty(D)&&(P[D]=v[D]);return P};function n(g,S){if(!g.hasOwnProperty(S))throw new Error("Undefined state "+S+" in simple mode")}function a(g,S){if(!g)return/(?:)/;var b="";return g instanceof RegExp?(g.ignoreCase&&(b="i"),g.unicode&&(b+="u"),g=g.source):g=String(g),new RegExp((S===!1?"":"^")+"(?:"+g+")",b)}function o(g){if(!g)return null;if(g.apply)return g;if(typeof g=="string")return g.replace(/\./g," ");for(var S=[],b=0;b<g.length;b++)S.push(g[b]&&g[b].replace(/\./g," "));return S}function i(g,S){(g.next||g.push)&&n(S,g.next||g.push),this.regex=a(g.regex),this.token=o(g.token),this.data=g}function c(g,S){return function(b,v){if(v.pending){var w=v.pending.shift();return v.pending.length==0&&(v.pending=null),b.pos+=w.text.length,w.token}if(v.local)if(v.local.end&&b.match(v.local.end)){var C=v.local.endToken||null;return v.local=v.localState=null,C}else{var C=v.local.mode.token(b,v.localState),j;return v.local.endScan&&(j=v.local.endScan.exec(b.current()))&&(b.pos=b.start+j.index),C}for(var E=g[v.state],N=0;N<E.length;N++){var M=E[N],P=(!M.data.sol||b.sol())&&b.match(M.regex);if(P){M.data.next?v.state=M.data.next:M.data.push?((v.stack||(v.stack=[])).push(v.state),v.state=M.data.push):M.data.pop&&v.stack&&v.stack.length&&(v.state=v.stack.pop()),M.data.mode&&f(S,v,M.data.mode,M.token),M.data.indent&&v.indent.push(b.indentation()+S.indentUnit),M.data.dedent&&v.indent.pop();var D=M.token;if(D&&D.apply&&(D=D(P)),P.length>2&&M.token&&typeof M.token!="string"){for(var A=2;A<P.length;A++)P[A]&&(v.pending||(v.pending=[])).push({text:P[A],token:M.token[A-1]});return b.backUp(P[0].length-(P[1]?P[1].length:0)),D[0]}else return D&&D.join?D[0]:D}}return b.next(),null}}function d(g,S){if(g===S)return!0;if(!g||typeof g!="object"||!S||typeof S!="object")return!1;var b=0;for(var v in g)if(g.hasOwnProperty(v)){if(!S.hasOwnProperty(v)||!d(g[v],S[v]))return!1;b++}for(var v in S)S.hasOwnProperty(v)&&b--;return b==0}function f(g,S,b,v){var w;if(b.persistent)for(var C=S.persistentStates;C&&!w;C=C.next)(b.spec?d(b.spec,C.spec):b.mode==C.mode)&&(w=C);var j=w?w.mode:b.mode||r.getMode(g,b.spec),E=w?w.state:r.startState(j);b.persistent&&!w&&(S.persistentStates={mode:j,spec:b.spec,state:E,next:S.persistentStates}),S.localState=E,S.local={mode:j,end:b.end&&a(b.end),endScan:b.end&&b.forceEnd!==!1&&a(b.end,!1),endToken:v&&v.join?v[v.length-1]:v}}function h(g,S){for(var b=0;b<S.length;b++)if(S[b]===g)return!0}function p(g,S){return function(b,v,w){if(b.local&&b.local.mode.indent)return b.local.mode.indent(b.localState,v,w);if(b.indent==null||b.local||S.dontIndentStates&&h(b.state,S.dontIndentStates)>-1)return r.Pass;var C=b.indent.length-1,j=g[b.state];e:for(;;){for(var E=0;E<j.length;E++){var N=j[E];if(N.data.dedent&&N.data.dedentIfLineStart!==!1){var M=N.regex.exec(v);if(M&&M[0]){C--,(N.next||N.push)&&(j=g[N.next||N.push]),v=v.slice(M[0].length);continue e}}}break}return C<0?0:b.indent[C]}}})}()),eD.exports}Hye();(function(e,t){(function(r){r(wc)})(function(r){r.runMode=function(n,a,o,i){var c=r.getMode(r.defaults,a),d=i&&i.tabSize||r.defaults.tabSize;if(o.appendChild){var f=/MSIE \d/.test(navigator.userAgent),h=f&&(document.documentMode==null||document.documentMode<9),p=o,g=0;p.textContent="",o=function(E,N){if(E=="\n"){p.appendChild(document.createTextNode(h?"\r":E)),g=0;return}for(var M="",P=0;;){var D=E.indexOf(" ",P);if(D==-1){M+=E.slice(P),g+=E.length-P;break}else{g+=D-P,M+=E.slice(P,D);var A=d-g%d;g+=A;for(var O=0;O<A;++O)M+=" ";P=D+1}}if(N){var $=p.appendChild(document.createElement("span"));$.className="cm-"+N.replace(/ +/g," cm-"),$.appendChild(document.createTextNode(M))}else p.appendChild(document.createTextNode(M))}}for(var S=r.splitLines(n),b=i&&i.state||r.startState(c),v=0,w=S.length;v<w;++v){v&&o("\n");var C=new r.StringStream(S[v],null,{lookAhead:function(E){return S[v+E]},baseToken:function(){}});for(!C.string&&c.blankLine&&c.blankLine(b);!C.eol();){var j=c.token(C,b);o(C.current(),j,v,C.start,b,c),C.start=C.pos}}}})})();window.CodeMirror=Mg;const H4=m.forwardRef((e,t)=>{var j;const{options:r={},value:n="",width:a="100%",height:o="100%",isDark:i=!1,isCmd:c=!1,autofocus:d=!0,lineWrapping:f,lineNumbers:h=!0,lazyLoadMode:p=!0}=e,g=m.useRef(null),S=m.useRef(null),b=m.useRef(e),v={tabSize:2,scrollbarStyle:"simple",lineNumbers:h,viewportMargin:1/0,styleActiveLine:!0,lineWrapping:f,autofocus:d,lineNumberFormatter:E=>c?">_":"".concat(E),showCursorWhenSelecting:!0};m.useImperativeHandle(t,()=>({editor:g,textarea:S.current})),b.current=e;function w(){const N=Object.keys(e).filter(P=>/^on+/.test(P)),M={};return N.forEach(P=>{const D=P.slice(2);D&&D[0]&&(M[P]=D.replace(D[0],D[0].toLowerCase()))}),M}function C(M){return pe(this,arguments,function*(E,N={}){if(typeof N=="object"&&window){const P=Mg.findModeByName(N.mode||"");p&&P&&P.mode&&(yield Bye("codemirror/mode/".concat(P.mode,"/").concat(P.mode,".js"))),P&&(N.mode=P.mime),Object.keys(N).forEach(D=>{(N[D]||N[D]===!1)&&JSON.stringify(N[D])&&E.setOption(D,N[D])})}})}return m.useEffect(()=>{if(!g.current&&S.current){const E=wc.fromTextArea(S.current,R(R({},v),r)),N=w();Object.keys(N).forEach(M=>{E.on(N[M],(...P)=>b.current[M](...P))}),(a||o)&&E.setSize(a,o),g.current=E,C(E,R(R({},v),r))}return()=>{g.current&&(g.current.toTextArea(),g.current=null)}},[S.current]),m.useMemo(()=>{if(!g.current)return;const E=g.current.getValue();n!==void 0&&n!==E&&g.current.setValue(n)},[n,g]),m.useMemo(()=>{g.current&&g.current.setSize(a,o)},[a,o,g]),m.useMemo(()=>{g.current&&C(g.current,R(R({},v),r))},[g,r]),s.jsxs("div",{className:"".concat(i?"code-is-dark":"code-is-light"," w-full"),children:[s.jsx("textarea",{ref:S,defaultValue:n,className:"hidden"}),s.jsx(ve,{className:"absolute w-full items-end justify-end h-0",children:s.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:(j=r.mode)==null?void 0:j.toString()})})]})});function Bye(e){switch(e){case"codemirror/mode/apl/apl":case"codemirror/mode/apl/apl.js":return me(()=>import("./apl-CzDVCub_.js").then(t=>t.a),[]);case"codemirror/mode/asciiarmor/asciiarmor":case"codemirror/mode/asciiarmor/asciiarmor.js":return me(()=>import("./asciiarmor-CeUw2yOm.js").then(t=>t.a),[]);case"codemirror/mode/asn.1/asn.1":case"codemirror/mode/asn.1/asn.1.js":return me(()=>import("./asn.1-RYTQDxpi.js").then(t=>t.a),[]);case"codemirror/mode/asterisk/asterisk":case"codemirror/mode/asterisk/asterisk.js":return me(()=>import("./asterisk-DWti2dKa.js").then(t=>t.a),[]);case"codemirror/mode/brainfuck/brainfuck":case"codemirror/mode/brainfuck/brainfuck.js":return me(()=>import("./brainfuck-CKGQuvB0.js").then(t=>t.b),[]);case"codemirror/mode/clike/clike":case"codemirror/mode/clike/clike.js":return me(()=>import("./clike-g6FUCYDC.js").then(t=>t.c),[]);case"codemirror/mode/clojure/clojure":case"codemirror/mode/clojure/clojure.js":return me(()=>import("./clojure-DGRWQn0T.js").then(t=>t.c),[]);case"codemirror/mode/cmake/cmake":case"codemirror/mode/cmake/cmake.js":return me(()=>import("./cmake-VLXufrYB.js").then(t=>t.c),[]);case"codemirror/mode/cobol/cobol":case"codemirror/mode/cobol/cobol.js":return me(()=>import("./cobol-BPjXNWyc.js").then(t=>t.c),[]);case"codemirror/mode/coffeescript/coffeescript":case"codemirror/mode/coffeescript/coffeescript.js":return me(()=>import("./coffeescript-CLSggxac.js").then(t=>t.c),[]);case"codemirror/mode/commonlisp/commonlisp":case"codemirror/mode/commonlisp/commonlisp.js":return me(()=>import("./commonlisp-C8F8CJ2J.js").then(t=>t.c),[]);case"codemirror/mode/crystal/crystal":case"codemirror/mode/crystal/crystal.js":return me(()=>import("./crystal-C71xiJ1n.js").then(t=>t.c),[]);case"codemirror/mode/css/css":case"codemirror/mode/css/css.js":return me(()=>import("./css-Bjqzbvs-.js").then(t=>t.c),[]);case"codemirror/mode/cypher/cypher":case"codemirror/mode/cypher/cypher.js":return me(()=>import("./cypher-CnhKi2Fg.js").then(t=>t.c),[]);case"codemirror/mode/d/d":case"codemirror/mode/d/d.js":return me(()=>import("./d-Din3ziS4.js").then(t=>t.d),[]);case"codemirror/mode/dart/dart":case"codemirror/mode/dart/dart.js":return me(()=>import("./dart-Mfk-3_r9.js").then(t=>t.d),__vite__mapDeps([0,1]));case"codemirror/mode/diff/diff":case"codemirror/mode/diff/diff.js":return me(()=>import("./diff-D27_STGC.js").then(t=>t.d),[]);case"codemirror/mode/django/django":case"codemirror/mode/django/django.js":return me(()=>import("./django-DXRi3JWy.js").then(t=>t.d),__vite__mapDeps([2,3,4,5]));case"codemirror/mode/dockerfile/dockerfile":case"codemirror/mode/dockerfile/dockerfile.js":return me(()=>import("./dockerfile-HtUEG7E5.js").then(t=>t.d),[]);case"codemirror/mode/dtd/dtd":case"codemirror/mode/dtd/dtd.js":return me(()=>import("./dtd-CX3eTDWk.js").then(t=>t.d),[]);case"codemirror/mode/dylan/dylan":case"codemirror/mode/dylan/dylan.js":return me(()=>import("./dylan-Bdp3H-XI.js").then(t=>t.d),[]);case"codemirror/mode/ebnf/ebnf":case"codemirror/mode/ebnf/ebnf.js":return me(()=>import("./ebnf-D5U-LOOS.js").then(t=>t.e),[]);case"codemirror/mode/ecl/ecl":case"codemirror/mode/ecl/ecl.js":return me(()=>import("./ecl-DgA6U7pV.js").then(t=>t.e),[]);case"codemirror/mode/eiffel/eiffel":case"codemirror/mode/eiffel/eiffel.js":return me(()=>import("./eiffel-Duvqmsh7.js").then(t=>t.e),[]);case"codemirror/mode/elm/elm":case"codemirror/mode/elm/elm.js":return me(()=>import("./elm-DRcDJiVP.js").then(t=>t.e),[]);case"codemirror/mode/erlang/erlang":case"codemirror/mode/erlang/erlang.js":return me(()=>import("./erlang-e8x5jcjM.js").then(t=>t.e),[]);case"codemirror/mode/factor/factor":case"codemirror/mode/factor/factor.js":return me(()=>import("./factor-DoxmjmTq.js").then(t=>t.f),[]);case"codemirror/mode/fcl/fcl":case"codemirror/mode/fcl/fcl.js":return me(()=>import("./fcl-DGB6ogNx.js").then(t=>t.f),[]);case"codemirror/mode/forth/forth":case"codemirror/mode/forth/forth.js":return me(()=>import("./forth-D1rHqKe2.js").then(t=>t.f),[]);case"codemirror/mode/fortran/fortran":case"codemirror/mode/fortran/fortran.js":return me(()=>import("./fortran-CMtZ7yMD.js").then(t=>t.f),[]);case"codemirror/mode/gas/gas":case"codemirror/mode/gas/gas.js":return me(()=>import("./gas-CAm8sCUO.js").then(t=>t.g),[]);case"codemirror/mode/gfm/gfm":case"codemirror/mode/gfm/gfm.js":return me(()=>import("./gfm-BzJZFp8y.js").then(t=>t.g),__vite__mapDeps([6,7,5]));case"codemirror/mode/gherkin/gherkin":case"codemirror/mode/gherkin/gherkin.js":return me(()=>import("./gherkin-DVo1_IZj.js").then(t=>t.g),[]);case"codemirror/mode/go/go":case"codemirror/mode/go/go.js":return me(()=>import("./go-D83G15d5.js").then(t=>t.g),[]);case"codemirror/mode/groovy/groovy":case"codemirror/mode/groovy/groovy.js":return me(()=>import("./groovy-CpLKJfUx.js").then(t=>t.g),[]);case"codemirror/mode/haml/haml":case"codemirror/mode/haml/haml.js":return me(()=>import("./haml-CeZp8xKs.js").then(t=>t.h),__vite__mapDeps([8,3,4,9]));case"codemirror/mode/handlebars/handlebars":case"codemirror/mode/handlebars/handlebars.js":return me(()=>import("./handlebars-DadgnbgZ.js").then(t=>t.h),__vite__mapDeps([10,11]));case"codemirror/mode/haskell/haskell":case"codemirror/mode/haskell/haskell.js":return me(()=>import("./haskell-B7obNjb8.js").then(t=>t.h),[]);case"codemirror/mode/haskell-literate/haskell-literate":case"codemirror/mode/haskell-literate/haskell-literate.js":return me(()=>import("./haskell-literate-B8nBdFC8.js").then(t=>t.h),__vite__mapDeps([12,13]));case"codemirror/mode/haxe/haxe":case"codemirror/mode/haxe/haxe.js":return me(()=>import("./haxe-CWefB8GC.js").then(t=>t.h),[]);case"codemirror/mode/htmlembedded/htmlembedded":case"codemirror/mode/htmlembedded/htmlembedded.js":return me(()=>import("./htmlembedded-Ce2lDNbz.js").then(t=>t.h),__vite__mapDeps([14,3,4,11]));case"codemirror/mode/htmlmixed/htmlmixed":case"codemirror/mode/htmlmixed/htmlmixed.js":return me(()=>import("./htmlmixed-B5DGVdct.js").then(t=>t.h),__vite__mapDeps([15,3,4]));case"codemirror/mode/http/http":case"codemirror/mode/http/http.js":return me(()=>import("./http-BcUljGbk.js").then(t=>t.h),[]);case"codemirror/mode/idl/idl":case"codemirror/mode/idl/idl.js":return me(()=>import("./idl-BhKLGjrJ.js").then(t=>t.i),[]);case"codemirror/mode/javascript/javascript":case"codemirror/mode/javascript/javascript.js":return me(()=>Promise.resolve().then(()=>VB),void 0);case"codemirror/mode/jinja2/jinja2":case"codemirror/mode/jinja2/jinja2.js":return me(()=>import("./jinja2-CNinVFda.js").then(t=>t.j),[]);case"codemirror/mode/jsx/jsx":case"codemirror/mode/jsx/jsx.js":return me(()=>import("./jsx-CMWQXxas.js").then(t=>t.j),[]);case"codemirror/mode/julia/julia":case"codemirror/mode/julia/julia.js":return me(()=>import("./julia-CYNBv4rw.js").then(t=>t.j),[]);case"codemirror/mode/livescript/livescript":case"codemirror/mode/livescript/livescript.js":return me(()=>import("./livescript-A2F6tx_D.js").then(t=>t.l),[]);case"codemirror/mode/lua/lua":case"codemirror/mode/lua/lua.js":return me(()=>import("./lua-CTXIH3cU.js").then(t=>t.l),[]);case"codemirror/mode/markdown/markdown":case"codemirror/mode/markdown/markdown.js":return me(()=>import("./markdown-KwFqhsKB.js").then(t=>t.m),__vite__mapDeps([16,7]));case"codemirror/mode/mathematica/mathematica":case"codemirror/mode/mathematica/mathematica.js":return me(()=>import("./mathematica-CiM9MBci.js").then(t=>t.m),[]);case"codemirror/mode/mbox/mbox":case"codemirror/mode/mbox/mbox.js":return me(()=>import("./mbox-Bxt4f46I.js").then(t=>t.m),[]);case"codemirror/mode/mirc/mirc":case"codemirror/mode/mirc/mirc.js":return me(()=>import("./mirc-ByDW7p4I.js").then(t=>t.m),[]);case"codemirror/mode/mllike/mllike":case"codemirror/mode/mllike/mllike.js":return me(()=>import("./mllike-BAlcfRf1.js").then(t=>t.m),[]);case"codemirror/mode/modelica/modelica":case"codemirror/mode/modelica/modelica.js":return me(()=>import("./modelica-D9omXAOx.js").then(t=>t.m),[]);case"codemirror/mode/mscgen/mscgen":case"codemirror/mode/mscgen/mscgen.js":return me(()=>import("./mscgen-nf9ml-4a.js").then(t=>t.m),[]);case"codemirror/mode/mumps/mumps":case"codemirror/mode/mumps/mumps.js":return me(()=>import("./mumps-tfztWvp3.js").then(t=>t.m),[]);case"codemirror/mode/nginx/nginx":case"codemirror/mode/nginx/nginx.js":return me(()=>import("./nginx-B4H2sQQC.js").then(t=>t.n),[]);case"codemirror/mode/nsis/nsis":case"codemirror/mode/nsis/nsis.js":return me(()=>import("./nsis-DCloHAm3.js").then(t=>t.n),[]);case"codemirror/mode/ntriples/ntriples":case"codemirror/mode/ntriples/ntriples.js":return me(()=>import("./ntriples-C-OwBh-N.js").then(t=>t.n),[]);case"codemirror/mode/octave/octave":case"codemirror/mode/octave/octave.js":return me(()=>import("./octave-Ci8ZnXFM.js").then(t=>t.o),[]);case"codemirror/mode/oz/oz":case"codemirror/mode/oz/oz.js":return me(()=>import("./oz-CJAGy9QM.js").then(t=>t.o),[]);case"codemirror/mode/pascal/pascal":case"codemirror/mode/pascal/pascal.js":return me(()=>import("./pascal-DeyFTnEt.js").then(t=>t.p),[]);case"codemirror/mode/pegjs/pegjs":case"codemirror/mode/pegjs/pegjs.js":return me(()=>import("./pegjs-ZxgRUQgc.js").then(t=>t.p),[]);case"codemirror/mode/perl/perl":case"codemirror/mode/perl/perl.js":return me(()=>import("./perl-B0EkHUR1.js").then(t=>t.p),[]);case"codemirror/mode/php/php":case"codemirror/mode/php/php.js":return me(()=>import("./php-CwiwEkpL.js").then(t=>t.p),__vite__mapDeps([17,3,4,1]));case"codemirror/mode/pig/pig":case"codemirror/mode/pig/pig.js":return me(()=>import("./pig-CjUIQlXf.js").then(t=>t.p),[]);case"codemirror/mode/powershell/powershell":case"codemirror/mode/powershell/powershell.js":return me(()=>import("./powershell-DNXjBQO5.js").then(t=>t.p),[]);case"codemirror/mode/properties/properties":case"codemirror/mode/properties/properties.js":return me(()=>import("./properties-DdUcQmYC.js").then(t=>t.p),[]);case"codemirror/mode/protobuf/protobuf":case"codemirror/mode/protobuf/protobuf.js":return me(()=>import("./protobuf-D6frssZi.js").then(t=>t.p),[]);case"codemirror/mode/pug/pug":case"codemirror/mode/pug/pug.js":return me(()=>import("./pug-C2dz9sel.js").then(t=>t.p),__vite__mapDeps([18,4,3]));case"codemirror/mode/puppet/puppet":case"codemirror/mode/puppet/puppet.js":return me(()=>import("./puppet-BvcMXCfG.js").then(t=>t.p),[]);case"codemirror/mode/python/python":case"codemirror/mode/python/python.js":return me(()=>import("./python-Ovj85m8b.js").then(t=>t.p),[]);case"codemirror/mode/q/q":case"codemirror/mode/q/q.js":return me(()=>import("./q-Ce0iFdIW.js").then(t=>t.q),[]);case"codemirror/mode/r/r":case"codemirror/mode/r/r.js":return me(()=>import("./r-ClHw7kLP.js").then(t=>t.r),[]);case"codemirror/mode/rpm/rpm":case"codemirror/mode/rpm/rpm.js":return me(()=>import("./rpm-C67pEfyo.js").then(t=>t.r),[]);case"codemirror/mode/rst/rst":case"codemirror/mode/rst/rst.js":return me(()=>import("./rst-C_1qKyYm.js").then(t=>t.r),__vite__mapDeps([19,20,21,5]));case"codemirror/mode/ruby/ruby":case"codemirror/mode/ruby/ruby.js":return me(()=>import("./ruby-DXtzuAfY.js").then(t=>t.r),__vite__mapDeps([22,9]));case"codemirror/mode/rust/rust":case"codemirror/mode/rust/rust.js":return me(()=>import("./rust-D182mhQo.js").then(t=>t.r),[]);case"codemirror/mode/sas/sas":case"codemirror/mode/sas/sas.js":return me(()=>import("./sas-DpAJhY2k.js").then(t=>t.s),[]);case"codemirror/mode/sass/sass":case"codemirror/mode/sass/sass.js":return me(()=>import("./sass-CmuqXt1l.js").then(t=>t.s),__vite__mapDeps([23,4]));case"codemirror/mode/scheme/scheme":case"codemirror/mode/scheme/scheme.js":return me(()=>import("./scheme-D_rqsHO3.js").then(t=>t.s),[]);case"codemirror/mode/shell/shell":case"codemirror/mode/shell/shell.js":return me(()=>import("./shell-CuWRGP2C.js").then(t=>t.s),[]);case"codemirror/mode/sieve/sieve":case"codemirror/mode/sieve/sieve.js":return me(()=>import("./sieve-CCYhRzom.js").then(t=>t.s),[]);case"codemirror/mode/slim/slim":case"codemirror/mode/slim/slim.js":return me(()=>import("./slim-CP1FR5LY.js").then(t=>t.s),__vite__mapDeps([24,3,4,9]));case"codemirror/mode/smalltalk/smalltalk":case"codemirror/mode/smalltalk/smalltalk.js":return me(()=>import("./smalltalk-B5QkNPh2.js").then(t=>t.s),[]);case"codemirror/mode/smarty/smarty":case"codemirror/mode/smarty/smarty.js":return me(()=>import("./smarty-Cp8dEPHz.js").then(t=>t.s),[]);case"codemirror/mode/solr/solr":case"codemirror/mode/solr/solr.js":return me(()=>import("./solr-6zvOHtSz.js").then(t=>t.s),[]);case"codemirror/mode/soy/soy":case"codemirror/mode/soy/soy.js":return me(()=>import("./soy-Tqot7BLV.js").then(t=>t.s),__vite__mapDeps([25,3,4]));case"codemirror/mode/sparql/sparql":case"codemirror/mode/sparql/sparql.js":return me(()=>import("./sparql-BlT3Hy8G.js").then(t=>t.s),[]);case"codemirror/mode/spreadsheet/spreadsheet":case"codemirror/mode/spreadsheet/spreadsheet.js":return me(()=>import("./spreadsheet-C_z54IMW.js").then(t=>t.s),[]);case"codemirror/mode/sql/sql":case"codemirror/mode/sql/sql.js":return me(()=>import("./sql-Cdawn9WD.js").then(t=>t.s),[]);case"codemirror/mode/stex/stex":case"codemirror/mode/stex/stex.js":return me(()=>import("./stex-5uTglgZw.js").then(t=>t.s),__vite__mapDeps([26,21]));case"codemirror/mode/stylus/stylus":case"codemirror/mode/stylus/stylus.js":return me(()=>import("./stylus-33ewLRuQ.js").then(t=>t.s),[]);case"codemirror/mode/swift/swift":case"codemirror/mode/swift/swift.js":return me(()=>import("./swift-Dd3oLk4z.js").then(t=>t.s),[]);case"codemirror/mode/tcl/tcl":case"codemirror/mode/tcl/tcl.js":return me(()=>import("./tcl-DebqpRig.js").then(t=>t.t),[]);case"codemirror/mode/textile/textile":case"codemirror/mode/textile/textile.js":return me(()=>import("./textile-DILoWpzQ.js").then(t=>t.t),[]);case"codemirror/mode/tiddlywiki/tiddlywiki":case"codemirror/mode/tiddlywiki/tiddlywiki.js":return me(()=>import("./tiddlywiki-Xgo1a7HS.js").then(t=>t.t),[]);case"codemirror/mode/tiki/tiki":case"codemirror/mode/tiki/tiki.js":return me(()=>import("./tiki-DA_o7cWM.js").then(t=>t.t),[]);case"codemirror/mode/toml/toml":case"codemirror/mode/toml/toml.js":return me(()=>import("./toml-BCKRX2J9.js").then(t=>t.t),[]);case"codemirror/mode/tornado/tornado":case"codemirror/mode/tornado/tornado.js":return me(()=>import("./tornado-Dz0ASCi-.js").then(t=>t.t),__vite__mapDeps([27,3,4,5]));case"codemirror/mode/troff/troff":case"codemirror/mode/troff/troff.js":return me(()=>import("./troff-DagUzndT.js").then(t=>t.t),[]);case"codemirror/mode/ttcn/ttcn":case"codemirror/mode/ttcn/ttcn.js":return me(()=>import("./ttcn-Dr-J2RQo.js").then(t=>t.t),[]);case"codemirror/mode/ttcn-cfg/ttcn-cfg":case"codemirror/mode/ttcn-cfg/ttcn-cfg.js":return me(()=>import("./ttcn-cfg-DYlU5sjM.js").then(t=>t.t),[]);case"codemirror/mode/turtle/turtle":case"codemirror/mode/turtle/turtle.js":return me(()=>import("./turtle-ClLmOWJg.js").then(t=>t.t),[]);case"codemirror/mode/twig/twig":case"codemirror/mode/twig/twig.js":return me(()=>import("./twig-DqrNGJhn.js").then(t=>t.t),__vite__mapDeps([28,11]));case"codemirror/mode/vb/vb":case"codemirror/mode/vb/vb.js":return me(()=>import("./vb-bHqF_fVa.js").then(t=>t.v),[]);case"codemirror/mode/vbscript/vbscript":case"codemirror/mode/vbscript/vbscript.js":return me(()=>import("./vbscript-CVzZHYMH.js").then(t=>t.v),[]);case"codemirror/mode/velocity/velocity":case"codemirror/mode/velocity/velocity.js":return me(()=>import("./velocity-DlXum-tC.js").then(t=>t.v),[]);case"codemirror/mode/verilog/verilog":case"codemirror/mode/verilog/verilog.js":return me(()=>import("./verilog-BFMSxf-j.js").then(t=>t.v),[]);case"codemirror/mode/vhdl/vhdl":case"codemirror/mode/vhdl/vhdl.js":return me(()=>import("./vhdl-B50pLRUG.js").then(t=>t.v),[]);case"codemirror/mode/vue/vue":case"codemirror/mode/vue/vue.js":return me(()=>import("./vue-DwPiClwx.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 me(()=>import("./wast-CPgK5w89.js").then(t=>t.w),[]);case"codemirror/mode/webidl/webidl":case"codemirror/mode/webidl/webidl.js":return me(()=>import("./webidl-DunNaHFl.js").then(t=>t.w),[]);case"codemirror/mode/xml/xml":case"codemirror/mode/xml/xml.js":return me(()=>Promise.resolve().then(()=>KB),void 0);case"codemirror/mode/xquery/xquery":case"codemirror/mode/xquery/xquery.js":return me(()=>import("./xquery-D_XJeP29.js").then(t=>t.x),[]);case"codemirror/mode/yacas/yacas":case"codemirror/mode/yacas/yacas.js":return me(()=>import("./yacas-COeFRlwt.js").then(t=>t.y),[]);case"codemirror/mode/yaml/yaml":case"codemirror/mode/yaml/yaml.js":return me(()=>import("./yaml-Bsr5uiwn.js").then(t=>t.y),[]);case"codemirror/mode/yaml-frontmatter/yaml-frontmatter":case"codemirror/mode/yaml-frontmatter/yaml-frontmatter.js":return me(()=>import("./yaml-frontmatter-8avfnQon.js").then(t=>t.y),__vite__mapDeps([32,33]));case"codemirror/mode/z80/z80":case"codemirror/mode/z80/z80.js":return me(()=>import("./z80-B2hxWIAK.js").then(t=>t.z),[]);default:return new Promise(function(t,r){(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+e)))})}}const Uye="p",Wye="r",Vye="o",qye="b",Kye="e",Gye="t",Yye="a",$r=bt(null),vN=Vye+Wye+Uye,Xw=Yye+Gye+Kye+qye;function Zye(){return $r.value&&$r.value.expires&&jn().isAfter(jn($r.value.expires))}function Qw(){return $r.value&&$r.value.expires&&jn(1713929964727).isAfter(jn($r.value.expires),"day")}function GB(){var n;const e=$r.value?jn($r.value.expires).diff(jn(),"days"):null,t=(n=$r.value)!=null&&n.expires?jn().diff(jn($r.value.expires),"days"):null,r=$r.value&&$r.value.expires?jn($r.value.expires).format("DD MMMM, YYYY"):"";return{licenseExpInDays:e,licenseExpiresDate:r,licenseExpiredDaysAgo:t}}function Xye(){var r,n;const e=(r=$r.value)!=null&&r.issued?jn().diff(jn($r.value.issued),"days"):null,t=(n=$r.value)!=null&&n.issued?jn($r.value.issued).format("DD MMMM, YYYY"):"";return{licenseIssuedDaysAgo:e>0?e:null,licenseIssuedDate:t}}(function(e,t){const r=c2,n=e();for(;;)try{if(parseInt(r(453))/1+parseInt(r(463))/2+-parseInt(r(455))/3*(-parseInt(r(452))/4)+-parseInt(r(456))/5+parseInt(r(457))/6*(parseInt(r(465))/7)+-parseInt(r(451))/8+-parseInt(r(462))/9===t)break;n.push(n.shift())}catch(a){n.push(n.shift())}})(u2,740283);function Qye(e){const t=c2,r=e[t(458)]("")[t(454)]()[t(464)](""),n=$r[t(461)];return n!=null&&n.id&&(n!=null&&n[t(460)])&&Array.isArray(n.features)?n.features[t(459)](r):!1}function c2(e,t){const r=u2();return c2=function(n,a){return n=n-451,r[n]},c2(e,t)}function u2(){const e=["value","19224396aNppYF","989064IhZSmn","join","7LPwpzD","1028336fHlCyR","221084cjBjJp","931447iSDAoO","reverse","39litIBm","1170430ScfMYR","6566718isVFIu","split","includes","features"];return u2=function(){return e},u2()}function Am(){const e=yf(vN),t=yf(Xw),r=Jw();return m.useMemo(()=>e&&!t?r?!Qw():!0:!!(t&&!r),[$r.value])}function yf(e){return m.useMemo(()=>Qye(e),[$r.value])}function Jw(){return m.useMemo(()=>Zye(),[$r.value])}const sc=({className:e=""})=>{const t=Am(),{t:r}=Tt();return!t&&s.jsx(ft,{className:"ml-2 ".concat(e),variant:"pro",children:r("Pro",{ns:"common"})})};function YB({id:e}){const{t}=Tt(),r=Ve(!1),{addImageToItemById:n}=Wme(),{uploadImageToItemById:a,uploadImageToItemReset:o}=Vme(),i=m.useRef(null),c=m.useRef(null),d=Ve(!1);m.useEffect(()=>{var b,v,w,C,j,E;const h=N=>{var M;(M=c.current)==null||M.classList.add("bg-blue-50","!border-blue-400"),N.preventDefault(),N.stopPropagation()},p=N=>{var M;(M=c.current)==null||M.classList.remove("bg-blue-50","!border-blue-400"),N.preventDefault(),N.stopPropagation()},g=N=>{var P;N.preventDefault(),N.stopPropagation();const M=(P=N.dataTransfer)==null?void 0:P.files[0];if(!M)o();else{const D=new FileReader,A=M.type;D.readAsArrayBuffer(M),D.onload=O=>pe(this,null,function*(){var H,z;const $=(H=O.target)==null?void 0:H.result;if($){const I=Array.from(new Uint8Array($));d.value=!0,requestAnimationFrame(()=>pe(this,null,function*(){try{yield a({itemId:e,buffer:I,fileType:A})}catch(W){console.error("Error during file upload",W)}d.value=!1}))}o(),r.value=!1,(z=i.current)==null||z.close()})}};if(!c.current)return;(b=c.current)==null||b.addEventListener("dragenter",h),(v=c.current)==null||v.addEventListener("dragleave",p),(w=c.current)==null||w.addEventListener("dragover",h),(C=c.current)==null||C.addEventListener("drop",g);const S=(E=(j=c.current)==null?void 0:j.children)!=null?E:[];for(const N of S)N.addEventListener("dragover",h),N.addEventListener("dragenter",h),N.addEventListener("dragleave",p),N.addEventListener("drop",g);return()=>{var M,P,D,A,O,$;(M=c.current)==null||M.removeEventListener("dragenter",h),(P=c.current)==null||P.removeEventListener("dragleave",p),(D=c.current)==null||D.removeEventListener("dragover",h),(A=c.current)==null||A.removeEventListener("drop",g);const N=($=(O=c.current)==null?void 0:O.children)!=null?$:[];for(const H of N)H.removeEventListener("dragover",h),H.removeEventListener("dragenter",h),H.removeEventListener("dragleave",p),H.removeEventListener("drop",g)}},[c.current]),m.useEffect(()=>{const h=Ci("tauri://file-drop",p=>{var g,S;((g=p.payload)==null?void 0:g.length)>0&&(n({itemId:e,imagePath:p.payload[0]}),r.value=!1,(S=i.current)==null||S.close())});return()=>{h.then(p=>{p()})}},[]);const f=()=>{var h;r.value=!1,o(),(h=i.current)==null||h.close()};return s.jsxs(ca,{defaultOpen:!1,open:r.value,modal:!0,onOpenChange:h=>{var p;h||(p=i.current)==null||p.close()},children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{tabIndex:0,className:"focus:outline-none",children:s.jsx($e,{text:t("Add image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(ke,{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:()=>{r.value=!0},children:s.jsx(N$,{size:26,className:"cursor-pointer"})})})})}),s.jsx(Ws,{sideOffset:16,align:"center",autoFocus:!0,onOpenAutoFocus:()=>{setTimeout(()=>{var h,p;(h=c.current)==null||h.focus(),(p=c.current)==null||p.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:()=>{f()},onPointerDownOutside:()=>{f()},children:r.value&&s.jsxs(ve,{className:"flex-col drop-zone p-1.5 border-2 border-slate-300 border-dashed rounded-md",ref:c,children:[s.jsx(wr,{h:2}),d.value?s.jsx(Bw,{size:"large"}):s.jsx(J,{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"})}),s.jsx(wr,{h:5,className:"drop-zone"}),s.jsxs(ve,{className:"drop-zone",children:[s.jsx(ke,{variant:"outline",size:"sm",className:"text-gray-500 drop-zone hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{f()},children:t("Cancel",{ns:"common"})}),s.jsx(ke,{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 h=new of("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?"+un.language});h.once(us.WINDOW_CLOSE_REQUESTED,function(){var p;r.value=!1,(p=i==null?void 0:i.current)==null||p.close()}),h.once("tauri://created",function(){h.setCursorVisible(!1),h.setFocus(),h.setSize(new fE(260,260)),h.center(),h.show()}),h.once("tauri://error",function(){var p;(p=i==null?void 0:i.current)==null||p.close()}),i.current=h},children:t("Open Window",{ns:"common"})})]}),s.jsx(wr,{h:2})]})})]})}function Jye(e){var t,r;return s.jsxs("svg",{width:(t=e.width)!=null?t:"24px",height:(r=e.height)!=null?r:"24px",className:e.className,onClick:e.onClick,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[s.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"}),s.jsx("rect",{width:"10",height:"7",x:"11.75",y:"12.707",ry:"2"}),s.jsx("path",{d:"m2.25 8.089 7.928.007"})]})}function ZB({onCallBack:e}){const{t}=Tt(),r=Ve(!1),n=m.useRef(null),a=m.useRef(null);m.useEffect(()=>{const i=Ci("tauri://file-drop",c=>{var d,f;((d=c.payload)==null?void 0:d.length)>0&&(e(c.payload[0]),r.value=!1,(f=a.current)==null||f.close())});return()=>{i.then(c=>{c()})}},[]);const o=()=>{var i;r.value=!1,(i=a.current)==null||i.close()};return s.jsxs(ca,{defaultOpen:!1,open:r.value,modal:!0,onOpenChange:i=>{var c;i||(c=a.current)==null||c.close()},children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{tabIndex:0,className:"focus:outline-none",children:s.jsx($e,{text:t("Drag & Drop Path",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1 h-10 w-10 text-slate-400 border-0 hover:text-blue-400 cl",onClick:()=>{r.value=!0},children:s.jsx(Jye,{width:22,height:23,className:"scale-y-[-1]"})})})})})}),s.jsx(Ws,{sideOffset:10,align:"center",onOpenAutoFocus:()=>{setTimeout(()=>{var i,c;(i=n.current)==null||i.focus(),(c=n.current)==null||c.click()},300)},className:"bg-gray-100 w-72 shadow-xl p-2",onEscapeKeyDown:()=>{o()},onPointerDownOutside:()=>{o()},children:r.value&&s.jsxs(ve,{className:"flex-col p-1 rounded-md",ref:n,children:[s.jsx(J,{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"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{children:[s.jsx(ke,{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"})}),s.jsx(ke,{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 of("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?"+un.language});i.once(us.WINDOW_CLOSE_REQUESTED,function(){var c;r.value=!1,(c=a==null?void 0:a.current)==null||c.close()}),i.once("tauri://created",function(){i.setCursorVisible(!1),i.setFocus(),i.setSize(new fE(260,260)),i.center(),i.show()}),i.once("tauri://error",function(){var c;(c=a==null?void 0:a.current)==null||c.close()}),a.current=i},children:t("Open Window",{ns:"common"})})]})]})})]})}const Gi={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isTemplate:!1,isLink:!1,isPath:!1,detectedLanguage:""},ebe=({itemId:e,isCode:t,isImage:r,isText:n,isForm:a,isLink:o,isCommand:i,isWebRequest:c,isTemplate:d,isWebScraping:f,isPath:h,detectedLanguage:p,children:g})=>{const{t:S}=Tt(),{CONST:{APP_DETECT_LANGUAGES_SUPPORTED:b}}=xt(Rn),{updateItemById:v}=Bi();return s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:g}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{children:S("TypeMenu:::Clip Type",{ns:"common"})})}),s.jsx(rr,{}),s.jsx(nr,{checked:!!n,onClick:()=>{v({updatedItem:re(R({},Gi),{isText:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(n?"font-semibold":""),children:S("TypeMenu:::Plain Text",{ns:"common"})})}),s.jsx(nr,{checked:!!o,onClick:()=>{v({updatedItem:re(R({},Gi),{isLink:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(o?"font-semibold":""),children:S("TypeMenu:::Link or Email",{ns:"common"})})}),s.jsx(nr,{checked:!!r,onClick:()=>{v({updatedItem:re(R({},Gi),{isImage:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(r?"font-semibold":""),children:S("TypeMenu:::Image",{ns:"common"})})}),s.jsx(nr,{checked:!!h,onClick:()=>{v({updatedItem:re(R({},Gi),{isPath:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(h?"font-semibold":""),children:S("TypeMenu:::File, Path or App",{ns:"common"})})}),s.jsxs(zs,{children:[s.jsxs(Es,{children:[t?s.jsx(Bt,{className:"mr-2 h-4 w-4"}):s.jsx(Q,{className:"mr-2 h-4 w-4"}),s.jsxs(J,{className:"".concat(t?"!font-semibold":""),children:[S("TypeMenu:::Code Snippet",{ns:"common"})," ..."]})]}),s.jsxs(Ns,{className:"w-40",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:p?s.jsx(J,{children:rD(p)}):s.jsx(J,{children:S("TypeMenu:::Select Language",{ns:"common"})})}),s.jsx(rr,{}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:b.map(w=>s.jsx(nr,{checked:p===w,className:"".concat(p===w?"font-semibold ":""),onClick:()=>{v({updatedItem:re(R({},Gi),{isCode:!0,detectedLanguage:w,itemId:e})})},children:rD(w)},w))})]})]}),s.jsx(nr,{checked:!!d,onClick:()=>{v({updatedItem:re(R({},Gi),{isTemplate:!0,itemId:e})})},children:s.jsxs(J,{className:"".concat(d?"font-semibold":""),children:[S("TypeMenu:::Template Fill",{ns:"common"}),s.jsx(sc,{})]})}),s.jsx(nr,{checked:!!a,onClick:()=>{v({updatedItem:re(R({},Gi),{isForm:!0,itemId:e})})},children:s.jsxs(J,{className:"".concat(a?"font-semibold":""),children:[S("TypeMenu:::Form Auto Fill",{ns:"common"}),s.jsx(sc,{})]})}),s.jsxs(zs,{children:[s.jsxs(Es,{children:[i||c||f?s.jsx(Bt,{className:"mr-2 h-4 w-4"}):s.jsx(Q,{className:"mr-2 h-4 w-4"}),s.jsxs(J,{className:"".concat(i||c||f?"!font-semibold":""),children:[S("TypeMenu:::Run, Execute",{ns:"common"}),s.jsx(sc,{})]})]}),s.jsxs(Ns,{className:"w-52",children:[s.jsx(nr,{checked:!!i,onClick:()=>{v({updatedItem:re(R({},Gi),{isCommand:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(i?"font-semibold":""),children:S("TypeMenu:::Shell Command",{ns:"common"})})}),s.jsx(nr,{checked:!!c,onClick:()=>{v({updatedItem:re(R({},Gi),{isWebRequest:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(c?"font-semibold":""),children:S("TypeMenu:::Web Request (HTTP)",{ns:"common"})})}),s.jsx(nr,{checked:!!f,onClick:()=>{v({updatedItem:re(R({},Gi),{isWebScraping:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(f?"font-semibold":""),children:S("TypeMenu:::Web Scraper / Parser",{ns:"common"})})})]})]})]})]})};function rD(e){return e.charAt(0).toUpperCase()+e.slice(1)}function tbe({clipId:e,onComplete:t}){const{t:r}=Tt(),n=Ve(!1),a=()=>{n.value=!1,Ho.value=null};m.useEffect(()=>()=>{a()},[]);const{currentCollectionId:o}=xt(kn),{deleteItemById:i}=Dw();return s.jsxs(ca,{defaultOpen:!1,open:n.value,children:[s.jsx(ua,{asChild:!0,children:s.jsxs(ke,{variant:"ghost",title:r("Delete Clip",{ns:"dashboard"}),onClick:()=>{n.value=!0,Ho.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:[s.jsx(dn,{size:16}),s.jsx(J,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:r("Delete",{ns:"common"})})]})}),s.jsx(Ws,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{a()},onPointerDownOutside:()=>{a()},children:n.value&&s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block",children:r("Are you sure you want to delete?",{ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{children:[s.jsx(ke,{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:()=>{a()},children:r("Cancel",{ns:"common"})}),s.jsx(ke,{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:r("Delete Clip",{ns:"dashboard"})})]})]})})]})}function rbe({isOver:e}){const{t}=Tt(),r=m.useRef(null);return m.useEffect(()=>{var n;(n=r.current)==null||n.scrollIntoView({behavior:"auto",block:"center",inline:"nearest"})},[r]),s.jsx(Q,{ref:r,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:s.jsx(J,{className:"!text-sm !font-medium !text-blue-500 text-center",children:e?t("Drop To Add",{ns:"common"}):s.jsx(Pn,{size:23,className:"".concat(e?"text-blue-400":"text-slate-400")})})})}const nbe=m.memo(rbe),nD=["Tab","Enter","TabTab","TabEnter"],L0={Tab:"Tab",Enter:"Enter",TabTab:"2 Tabs",TabTabTab:"3 Tabs",TabEnter:"Tab, Enter",TabTabEnter:"2Tabs, Enter"},sD=["1s","2s","3s","4s","5s"],XB=["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 sbe({showLinkValidationError:e,localOptions:t}){var i,c,d,f,h,p,g,S;const{t:r}=Tt(),n=Ve(void 0),a=Ve(null),o=ro(n.value,300);return m.useEffect(()=>{if(o){if(e.value&&(e.value=void 0),o.length>5){const v=Nn().match(o);!v||v.length>1?e.value=!0:e.value=!1}t.value.formOptions||(t.value.formOptions={fields:[],openUrl:null}),t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{openUrl:o})})}},[o]),s.jsxs(Q,{className:"select-none mt-1",children:[t.value.formOptions.openUrl!=null&&s.jsxs(ve,{className:"text-normal",children:[s.jsx($e,{asChild:!0,text:r("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:s.jsx(ke,{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:s.jsx("span",{children:r("Open",{ns:"dashboard"})})})}),s.jsx(sr,{defaultValue:(d=(c=t.value.formOptions)==null?void 0:c.openUrl)!=null?d:"",placeholder:r("Enter URL",{ns:"dashboard"}),disabled:(f=t.value.formOptions)==null?void 0:f.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(((h=t.value.formOptions)==null?void 0:h.isOpenUrlDisabled)===!0?"!bg-gray-100 dark:!bg-gray-700 opacity-70":""),suffix:s.jsx(Q,{className:"absolute top-3 right-2",children:e.value?s.jsx($e,{text:r("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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):e.value===!1&&s.jsx($e,{text:r("Website URL is valid",{ns:"dashboard"}),isCompact:!0,side:"bottom",className:"bg-green-50 text-green-600 font-semibold",asChild:!0,sideOffset:10,children:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:b=>{n.value=b.target.value}}),s.jsx(ke,{variant:"ghost",size:"mini",title:r("Open URL Disable / Enable",{ns:"dashboard"}),onClick:()=>{var b;t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{isOpenUrlDisabled:!((b=t.value.formOptions)!=null&&b.isOpenUrlDisabled)})})},className:"".concat((p=t.value.formOptions)!=null&&p.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:(g=t.value.formOptions)!=null&&g.isOpenUrlDisabled?s.jsx(oa,{size:14}):s.jsx(ja,{size:14})}),s.jsx(ke,{variant:"ghost",size:"mini",title:r("Remove Open URL",{ns:"dashboard"}),onClick:()=>{t.value=re(R({},t.value),{formOptions:re(R({},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:s.jsx(dn,{size:14})})]}),s.jsx(Q,{className:"my-2",children:s.jsxs(ve,{className:"gap-3 w-full justify-start",children:[s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[r("Add Form Field",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsxs(ze,{className:"text-xs",onClick:()=>{a.value=null,t.value.formOptions||(t.value.formOptions={fields:[]});const b=[...t.value.formOptions.fields];b.push({id:Date.now().toString(),type:"section",pressKeysAfterPaste:z5[0],isEnable:!0,value:""}),t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:b})})},children:[s.jsx(Pn,{size:12,className:"mr-1"}),r("Add Section",{ns:"dashboard"})]}),s.jsx(rr,{}),s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:r("Form Fields",{ns:"dashboard"})})}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:XB.map(b=>s.jsx(ze,{className:"text-xs",onClick:()=>{var C;t.value.formOptions||(t.value.formOptions={fields:[]});const v=[...t.value.formOptions.fields],w=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";v.push({id:Date.now().toString(),label:b,type:w,pressKeysAfterPaste:z5[0],isEnable:!0,value:""}),t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:v})}),b==="Custom"&&(a.value=(C=v[v.length-1].id)!=null?C:null)},children:b},b))})]})]}),s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[r("Key Press",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:r("Add Key Press",{ns:"dashboard"})})}),s.jsx(rr,{}),z5.map(b=>s.jsx(ze,{className:"text-xs",onClick:()=>{t.value.formOptions||(t.value.formOptions={fields:[]});const v=[...t.value.formOptions.fields];v.push({id:Date.now().toString(),isPressKeysOnly:!0,isEnable:!0,pressKeysAfterPaste:b}),t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:v})})},children:L0[b]},b))]})]}),s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[r("Delay",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:r("Add Delay Time",{ns:"dashboard"})})}),s.jsx(rr,{}),sD.map(b=>s.jsxs(ze,{className:"text-xs",onClick:()=>{a.value=null,t.value.formOptions||(t.value.formOptions={fields:[]});const v=[...t.value.formOptions.fields];v.push({id:Date.now().toString(),isDelayOnly:!0,value:b,isEnable:!0}),t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:v})})},children:[b==="1s"&&"1 ".concat(r("Second",{ns:"common"})),b==="2s"&&"2 ".concat(r("Seconds",{ns:"common"})),b==="3s"&&"3 ".concat(r("Seconds",{ns:"common"})),b==="4s"&&"4 ".concat(r("Seconds",{ns:"common"})),b==="5s"&&"5 ".concat(r("Seconds",{ns:"common"}))]},b))]})]}),t.value.formOptions.openUrl==null&&s.jsx(J,{className:"!text-blue-500 hover:underline cursor-pointer text-center",size:"xs",onClick:()=>{t.value.formOptions||(t.value.formOptions={fields:[]}),t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{openUrl:"",isOpenUrlDisabled:!1})})},children:r("Add Open URL",{ns:"dashboard"})})]})}),(S=t.value.formOptions)==null?void 0:S.fields.map((b,v)=>{var M,P,D,A,O,$,H,z;const w=b.isLabelOnTop,C=b.isLabelHidden,j=b.type==="section",E=b.id===a.value,N=b.type==="textarea";return s.jsxs(ve,{className:"".concat(b.type!=="section"?"mb-1":"mt-1"," group ").concat(w?"flex-col items-start":"items-center"," ").concat(N?"!mt-2 !mb-1":""),children:[!C&&s.jsx(s.Fragment,{children:(b.label||E)&&b.type!=="section"?s.jsx(J,{className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," text-[13px] !font-semibold flex self-stretch ").concat(w?"!justify-start pl-1":"!justify-end"),children:E?s.jsxs(ve,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[s.jsx(sr,{defaultValue:b.label,small:!0,placeholder:r("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:I=>{(I.key==="Enter"||I.key==="Escape")&&(a.value=null,t.value=re(R({},t.value),{formOptions:R({},t.value.formOptions)}))},onChange:I=>{b.label=I.target.value.trim()}}),s.jsx(ke,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{a.value=null,t.value=re(R({},t.value),{formOptions:R({},t.value.formOptions)})},title:r("Done Edit",{ns:"common"}),children:s.jsx(Bt,{size:18})})]}):s.jsx("span",{className:"whitespace-nowrap pr-1 min-w-[80px] overflow-hidden text-ellipsis block ".concat(w?"text-left":"text-right max-w-[160px]"),children:b.label})}):s.jsx("div",{className:"pr-1 min-w-[80px]"})}),s.jsxs(ve,{className:"w-full",children:[s.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:s.jsxs(ve,{className:"w-full gap-1",children:[b.isDelayOnly||b.isPressKeysOnly?s.jsxs(ve,{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&&s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(ft,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[r("Delay",{ns:"dashboard"})," ",b.value,s.jsx(Nr,{size:13,className:"ml-0.5 mr-0"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:r("Delay",{ns:"dashboard"})}),s.jsx(rr,{}),sD.map(I=>s.jsxs(ze,{className:"text-xs",onClick:()=>{a.value=null,b.value=I,t.value=R({},t.value)},children:[I==="1s"&&"1 Second",I==="2s"&&"2 Seconds",I==="3s"&&"3 Seconds",I==="4s"&&"4 Seconds",I==="5s"&&"5 Seconds"]},I))]})]}),b.isPressKeysOnly&&b.pressKeysAfterPaste&&s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",variant:"ghost",disabled:b.isEnable===!1,title:r("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:s.jsxs(ft,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap",children:[r("Press",{ns:"dashboard"})," ",L0[b.pressKeysAfterPaste],s.jsx(Nr,{size:13,className:"ml-0.5 mr-0"})]})})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:r("Key Press",{ns:"dashboard"})})}),s.jsx(rr,{}),nD.map(I=>s.jsx(ze,{className:"text-xs",onClick:()=>{b.pressKeysAfterPaste=I,t.value=re(R({},t.value),{formOptions:R({},t.value.formOptions)})},children:L0[I]},I)),s.jsx(rr,{}),s.jsxs(ze,{className:"text-xs text-red-400",onClick:()=>{t.value.formOptions.fields=t.value.formOptions.fields.filter(I=>I.id!==b.id),t.value=R({},t.value)},children:[s.jsx(J,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:r("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(Kp,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})]}):b.type==="password"||b.type==="passwordCode"?s.jsx(sr,{small:!0,placeholder:b.type==="passwordCode"?r("Enter code",{ns:"dashboard"}):r("Enter secret value",{ns:"dashboard"}),autoFocus:v===((M=t.value.formOptions.fields)==null?void 0:M.length)-1&&t.value.formOptions.fields[v].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:I=>{b.value=I.target.value.trim()},defaultValue:b.value}):b.type==="creditcard"?s.jsx(v1,{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:b.isEnable===!1,autoFocus:v===((P=t.value.formOptions.fields)==null?void 0:P.length)-1&&t.value.formOptions.fields[v].value==="",className:"".concat(b.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:I=>{b.value=I},ccNumber:b.value}):j?s.jsx(sr,{small:!0,placeholder:r("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:v===((D=t.value.formOptions.fields)==null?void 0:D.length)-1&&t.value.formOptions.fields[v].value==="",onChange:I=>{b.value=I.target.value.trim()},defaultValue:b.value}):b.type==="textarea"?s.jsx(Eo,{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: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:v===((A=t.value.formOptions.fields)==null?void 0:A.length)-1&&t.value.formOptions.fields[v].value==="",maxRows:2,value:b.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:I=>{I.stopPropagation()},onChange:I=>{b.value=I.target.value,t.value=re(R({},t.value),{formOptions:R({},t.value.formOptions)})}}):s.jsx(sr,{small:!0,placeholder:r("Enter field value",{ns:"dashboard"}),autoFocus:v===((O=t.value.formOptions.fields)==null?void 0:O.length)-1&&t.value.formOptions.fields[v].value===""&&t.value.formOptions.fields[v].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:I=>{b.value=I.target.value.trim()},defaultValue:b.value}),b.isDelayOnly||b.isPressKeysOnly||j?s.jsx(s.Fragment,{}):s.jsx(ve,{children:s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",variant:"ghost",disabled:b.isEnable===!1,title:r("Key Press After",{ns:"dashboard"}),className:"text-sm font-semibold hover:bg-transparent mr-1",children:b.pressKeysAfterPaste?s.jsxs(ft,{variant:"secondary",className:"pl-2 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[L0[b.pressKeysAfterPaste],s.jsx(Nr,{size:13,className:"ml-0.5 mr-0"})]}):s.jsxs(ft,{variant:"secondary",className:"pl-1 py-0.5 text-blue-500 dark:bg-slate-800 whitespace-nowrap hover:text-blue-500",children:[s.jsx(Pn,{size:13,className:"ml-0.5 mr-0"}),s.jsx(Nr,{size:13,className:"ml-0.5 mr-0"})]})})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:r("Key Press After",{ns:"dashboard"})})}),s.jsx(rr,{}),nD.map(I=>s.jsx(ze,{className:"text-xs",onClick:()=>{b.pressKeysAfterPaste=I,t.value=re(R({},t.value),{formOptions:R({},t.value.formOptions)})},children:L0[I]},I)),s.jsx(rr,{}),s.jsxs(ze,{className:"text-xs text-red-400",onClick:()=>{b.pressKeysAfterPaste=null,t.value=re(R({},t.value),{formOptions:R({},t.value.formOptions)})},children:[s.jsx(J,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:r("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(Kp,{className:"ml-auto text-red-400 dark:text-red-600",size:13})})]})]})]})})]})}),s.jsxs(ve,{className:"gap-1 ml-0.5",children:[b.type!=="section"&&s.jsx(ke,{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:()=>{var I;a.value=null,t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:(I=t.value.formOptions)==null?void 0:I.fields.map((W,_)=>_===v?re(R({},W),{isEnable:!W.isEnable}):W)})})},children:($=t.value.formOptions)!=null&&$.fields&&((z=(H=t.value.formOptions)==null?void 0:H.fields[v])!=null&&z.isEnable)?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",title:r("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:Jn(t.value.formOptions.fields||[],v,v-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:s.jsx(Hi,{size:14})})}),s.jsxs(_r,{align:"end",children:[s.jsxs(ze,{disabled:v===0,onClick:()=>{t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:Jn(t.value.formOptions.fields||[],v,v-1)})})},className:"text-[13px] py-1",children:[s.jsx(J,{size:"xs",children:r("Move Up",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(t1,{size:13})})]}),s.jsxs(ze,{disabled:t.value.formOptions.fields?v===t.value.formOptions.fields.length-1:!1,onClick:()=>{t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:Jn(t.value.formOptions.fields||[],v,v+1)})})},className:"text-[13px] py-1",children:[s.jsx(J,{size:"xs",children:r("Move Down",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(e1,{size:13})})]}),s.jsx(rr,{}),!j&&!C&&s.jsxs(ze,{onClick:()=>{var I;E?a.value=null:a.value=(I=b.id)!=null?I:null},children:[E?s.jsx(J,{size:"xs",children:r("Done Edit",{ns:"common"})}):s.jsx(J,{size:"xs",children:r("Edit Label",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx($b,{size:13})})]}),b.type!=="section"&&s.jsx(s.Fragment,{children:b.isLabelOnTop?s.jsxs(ze,{onClick:()=>{var I;a.value=null,t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:(I=t.value.formOptions)==null?void 0:I.fields.map((W,_)=>_===v?re(R({},W),{isLabelHidden:!1,isLabelOnTop:!1}):W)})})},children:[s.jsx(J,{size:"xs",children:r("Label Left",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(a$,{size:13})})]}):s.jsxs(ze,{onClick:()=>{var I;a.value=null,t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:(I=t.value.formOptions)==null?void 0:I.fields.map((W,_)=>_===v?re(R({},W),{isLabelHidden:!1,isLabelOnTop:!0}):W)})})},children:[s.jsx(J,{size:"xs",children:r("Label Top",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(i$,{size:13})})]})}),C?s.jsxs(ze,{onClick:()=>{var I;a.value=null,t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:(I=t.value.formOptions)==null?void 0:I.fields.map((W,_)=>_===v?re(R({},W),{isLabelHidden:!1}):W)})})},children:[j?s.jsx(J,{size:"xs",children:r("Label Offset",{ns:"dashboard"})}):s.jsx(J,{size:"xs",children:r("Show Label",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(u$,{size:13})})]}):s.jsxs(ze,{onClick:()=>{var I;t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:(I=t.value.formOptions)==null?void 0:I.fields.map((W,_)=>_===v?re(R({},W),{isLabelHidden:!0}):W)})})},children:[j?s.jsx(J,{size:"xs",children:r("Label on Left",{ns:"dashboard"})}):s.jsx(J,{size:"xs",children:r("Hide Label",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(LE,{size:13})})]}),s.jsx(rr,{}),s.jsxs(ze,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var I,W;t.value=re(R({},t.value),{formOptions:re(R({},t.value.formOptions),{fields:(W=(I=t.value.formOptions)==null?void 0:I.fields)==null?void 0:W.filter((_,K)=>K!==v)})})},children:[s.jsx(J,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:r("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(dn,{size:13})})]})]})]})]})]})]},b.id)})]})}function abe({clipValue:e,templateMissingFields:t,templateFoundFields:r,checkForTemplateFieldsCallback:n,isLargeView:a,localOptions:o}){var v;const{t:i}=Tt(),c=Ve(null),d=Ve(null),f=Ve(null),h=Ve(null),p=m.useRef(null),g=Ve(!1),S=Ve(Date.now().toString()),b=["text","textarea","select"];return s.jsxs(Q,{className:"select-none mt-1",children:[s.jsx(Q,{className:"my-2",children:s.jsxs(ve,{className:"gap-3 w-full justify-start",children:[s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[i("Add Template Field",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:i("General Fields",{ns:"dashboard"})})}),s.jsx(rr,{}),b.map(w=>s.jsxs(ze,{className:"text-xs",onClick:()=>{var j;c.value=null,o.value.templateOptions||(o.value.templateOptions=[]);const C=o.value.templateOptions.map(E=>{var N,M,P;return(N=E.label)!=null&&N.trim()||(E.label="".concat(E.type&&((M=E.type)==null?void 0:M.charAt(0).toUpperCase())+((P=E.type)==null?void 0:P.slice(1))," ").concat(i("Field",{ns:"dashboard"}))),E});C.push({id:Date.now().toString(),type:w,label:"".concat(w.charAt(0).toUpperCase()+w.slice(1)),isEnable:!0,value:""}),o.value=re(R({},o.value),{templateOptions:[...C]}),c.value=(j=C[C.length-1].id)!=null?j:null},children:[s.jsx(Pn,{size:12,className:"mr-1"}),i("{{type}} Field",{ns:"dashboard",type:w.charAt(0).toUpperCase()+w.slice(1)})]},w)),s.jsx(rr,{}),s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:i("Common Fields",{ns:"dashboard"})})}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:XB.map(w=>s.jsx(ze,{className:"text-xs",onClick:()=>{var M,P;o.value.templateOptions||(o.value.templateOptions=[]),g.value=!1;const C=[...o.value.templateOptions],j=w==="Text"?"text":w==="Number"?"number":w==="Password"||w==="Secret"||w==="API Key"||w==="License Key"||w==="SSN"?"password":w==="CVV Code"?"passwordCode":w==="Textarea"?"textarea":w==="Credit Card"?"creditcard":"text",E=(M=o.value.templateOptions)==null?void 0:M.every(D=>D.label!==w);E||(g.value=!0);const N=E?w:"".concat(w," ").concat(o.value.templateOptions.length+1);C.push({id:Date.now().toString(),label:N,type:j,isEnable:!0,value:""}),o.value=re(R({},o.value),{templateOptions:C}),w==="Custom"&&(c.value=(P=C[C.length-1].id)!=null?P:null)},children:w},w))}),s.jsx(rr,{}),s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:s.jsx(J,{children:i("Special Field",{ns:"dashboard"})})}),s.jsxs(ze,{className:"text-xs",onClick:()=>{var j;if(c.value=null,o.value.templateOptions||(o.value.templateOptions=[]),(j=o.value.templateOptions)==null?void 0:j.some(E=>E.label==="Clipboard")){o.value.templateOptions=o.value.templateOptions.map(E=>(E.label==="Clipboard"&&(E.isEnable=!0),E));return}const C=o.value.templateOptions.map(E=>E);C.push({id:Date.now().toString(),type:"text",label:"Clipboard",isEnable:!0,value:""}),o.value=re(R({},o.value),{templateOptions:[...C]})},children:[s.jsx(Pn,{size:12,className:"mr-1"}),i("Clipboard",{ns:"dashboard"})]})]})]}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{variant:"ghost",size:"mini",className:"cursor-pointer ml-auto hover:bg-transparent !px-2 !py-0",children:s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[i("Fields Value",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})})}),s.jsx(_r,{sideOffset:12,align:"center",children:s.jsxs(ze,{className:"text-center items-center justify-center py-1 text-xs",onSelect:()=>{o.value.templateOptions=o.value.templateOptions.map(w=>(w.value="",w)),o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]}),S.value=Date.now().toString()},children:[s.jsx(J,{children:i("Clear All Fields",{ns:"dashboard"})}),s.jsx(KE,{size:14,className:"ml-1 text-slate-400"})]})})]})]})}),(v=o.value.templateOptions)==null?void 0:v.map((w,C)=>{var D,A,O,$,H,z,I,W;const j=w.id===c.value,E=w.type==="textarea",N=w.isLabelOnTop,M=(D=w.selectOptions)==null?void 0:D.find(_=>_===w.value),P=!((A=w.selectOptions)!=null&&A.length);return s.jsxs(ve,{className:"mb-1 group ".concat(N?"flex-col items-start":"items-center"," ").concat(E?"!mt-2 !mb-1":""),children:[w.label||j?s.jsx(ve,{className:"".concat(w.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:j?s.jsxs(ve,{className:"whitespace-nowrap pr-1 min-w-[120px] text-left",children:[s.jsx(sr,{defaultValue:w.label,small:!0,placeholder:i("Enter Label",{ns:"dashboard"}),autoFocus:!0,onKeyDown:_=>{var K;(_.key==="Enter"||_.key==="Escape")&&(c.value=null,g.value=!1,(K=o.value.templateOptions)!=null&&K.every((U,X)=>X!==C?U.label!==w.label:!0)||(w.label="".concat(w.label," ").concat(C+1)),o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]}))},onChange:_=>{w.label=_.target.value.trim()}}),s.jsx(ke,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{c.value=null,o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]})},title:i("Done Edit",{ns:"common"}),children:s.jsx(Bt,{size:18})})]}):s.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:w.label})}):s.jsx("div",{className:"pr-1 min-w-[80px]"}),s.jsxs(ve,{className:"w-full",children:[s.jsx(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),children:s.jsx(ve,{className:"w-full gap-1",children:w.type==="password"||w.type==="passwordCode"?s.jsx(sr,{small:!0,placeholder:w.type==="passwordCode"?i("Enter code",{ns:"dashboard"}):i("Enter secret value",{ns:"dashboard"}),autoFocus:C===o.value.templateOptions.length-1&&o.value.templateOptions[C].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:w.isEnable===!1,isPassword:!0,numbersOnly:w.type==="passwordCode",showHidePassword:!0,className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:_=>{w.value=_.target.value.trim()},defaultValue:w.value},S.value):w.type==="creditcard"?s.jsx(v1,{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:w.isEnable===!1,autoFocus:C===((O=o.value.templateOptions)==null?void 0:O.length)-1&&o.value.templateOptions[C].value==="",className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onInputBlur:_=>{w.value=_},ccNumber:w.value},S.value):w.type==="textarea"?s.jsx(Eo,{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:w.isEnable===!1?"dark:!text-slate-500 !bg-gray-100 opacity-50 dark:!bg-gray-900":"dark:!text-slate-300 dark:!bg-slate-900",autoFocus:C===o.value.templateOptions.length-1&&o.value.templateOptions[C].value===""&&o.value.templateOptions[C].label!=="Textarea",maxRows:2,value:w.value,enableEmoji:!1,enableEmojiInside:!0,onKeyDown:_=>{_.stopPropagation()},onChange:_=>{w.value=_.target.value,o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]})}},S.value):w.type==="select"?s.jsx(ve,{className:"justify-start items-center w-full my-1",children:d.value!==w.id&&f.value!==w.id?s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",variant:"ghost",disabled:w.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:s.jsxs(ve,{className:"flex items-center justify-start w-full gap-1",children:[s.jsx(J,{className:"!text-slate-700 dark:!text-slate-300 text-ellipsis overflow-hidden !block line-clamp-2",children:P?i("Select is empty",{ns:"common"}):M||i("Select default",{ns:"common"})}),s.jsx(ve,{className:"w-[18px] h-[18px] ml-0.5 mr-0",children:s.jsx(Nr,{size:13})})]})})}),s.jsxs(_r,{sideOffset:12,align:"start",className:"max-w-[300px]",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",disabled:!0,children:P?s.jsx(J,{children:i("Select is empty",{ns:"common"})}):s.jsx(J,{children:i("Select Default Option",{ns:"dashboard"})})}),!P&&s.jsxs(s.Fragment,{children:[s.jsx(rr,{}),(H=($=o.value.templateOptions[C])==null?void 0:$.selectOptions)==null?void 0:H.map((_,K)=>s.jsxs(nr,{checked:w.value===_,onSelect:()=>{w.value=_,o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]})},children:[s.jsx(J,{className:"text-xs ".concat(w.value===_?"font-semibold":""),children:_}),w.value===_&&s.jsxs(ve,{className:"ml-auto gap-2 pl-2 opacity-60 hover:opacity-100",children:[s.jsx($b,{size:13,className:"cursor-pointer hover:text-blue-500 dark:hover:text-blue-400",onClick:()=>{var V;f.value=null,h.value=_,d.value=(V=w.id)!=null?V:null}}),s.jsx(e4,{size:13,className:"cursor-pointer hover:text-red-500 dark:hover:text-red-400",onClick:V=>{var X,G,F,q,Y;V.stopPropagation();const U=(G=(X=w.selectOptions)==null?void 0:X.indexOf(_))!=null?G:-1;if(w.selectOptions=(F=w.selectOptions)==null?void 0:F.filter(se=>se!==_),U!==-1){const se=(q=w.selectOptions)==null?void 0:q[U-1],ee=(Y=w.selectOptions)==null?void 0:Y[U];w.value=se||ee||void 0}o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]})}})]})]},K))]}),s.jsx(rr,{}),s.jsx(ze,{className:"text-center items-center justify-center py-0.5 text-xs",onClick:()=>{var _;P&&(w.selectOptions=[]),h.value=null,d.value=null,f.value=(_=w.id)!=null?_:null},children:s.jsxs(J,{size:"xs",className:"!text-blue-500 dark:!text-blue-400",children:[s.jsx(Pn,{size:13}),P?i("Add First Option",{ns:"common"}):i("Add Option",{ns:"common"})]})})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(sr,{small:!0,placeholder:i("Enter select option",{ns:"dashboard"}),autoFocus:!!o.value.templateOptions[C].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:w.isEnable===!1,type:"text",className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""),onKeyDown:_=>{var K,V,U;_.key==="Escape"?(h.value&&(w.value=h.value),d.value=null,h.value=null,f.value=null):_.key==="Enter"&&(h.value&&d.value===w.id?w.selectOptions=(K=w.selectOptions)==null?void 0:K.map(X=>X===h.value&&w.value||X):f.value===w.id&&w.value&&!((V=w.selectOptions)!=null&&V.includes(w.value))&&((U=w.selectOptions)==null||U.push(w.value)),o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]}),h.value=null,d.value=null,f.value=null)},onChange:_=>{w.value=_.target.value.trim()},defaultValue:f.value===w.id?"":w.value},S.value),s.jsx(ke,{size:"mini",variant:"ghost",className:"ml-1 h-8 w-9 text-blue-500 dark:bg-slate-800",onClick:()=>{var _,K,V;h.value&&d.value===w.id?w.selectOptions=(_=w.selectOptions)==null?void 0:_.map(U=>U===h.value&&w.value||U):f.value===w.id&&w.value&&!((K=w.selectOptions)!=null&&K.includes(w.value))&&((V=w.selectOptions)==null||V.push(w.value)),o.value=re(R({},o.value),{templateOptions:[...o.value.templateOptions]}),h.value=null,d.value=null,f.value=null},title:f.value===w.id?i("Add Option",{ns:"common"}):i("Done Edit",{ns:"common"}),children:f.value===w.id?s.jsx(Pn,{size:18}):d.value===w.id&&s.jsx(Bt,{size:18})}),s.jsx(ke,{size:"mini",variant:"ghost",className:"h-8 w-8 text-slate-400 dark:bg-transparent",onClick:()=>{h.value&&(w.value=h.value),d.value=null,h.value=null,f.value=null},title:i("Cancel",{ns:"common"}),children:s.jsx(Ur,{size:15})})]})}):((z=w.label)==null?void 0:z.toLocaleLowerCase())!=="clipboard"?s.jsx(sr,{small:!0,placeholder:i("Enter default value",{ns:"dashboard"}),autoFocus:o.value.templateOptions[C].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:w.isEnable===!1,type:w.type==="number"?"number":"text",className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full"),onChange:_=>{w.value=_.target.value.trim()},defaultValue:w.value},S.value):s.jsxs(s.Fragment,{children:[s.jsx(sr,{small:!0,value:w.isValueMasked?Db(i("This field allows to insert text from clipboard",{ns:"dashboard"})):i("This field allows to insert text from clipboard",{ns:"dashboard"}),title: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 opacity-100 dark:bg-transparent",disabled:!0,type:"text",className:"".concat(w.isEnable===!1?"bg-gray-100 opacity-50 dark:bg-gray-900":""," w-full")}),s.jsx($e,{isCompact:!0,text:i("Mask to hide clipboard value in preview",{ns:"dashboard"}),children:s.jsx(Zw,{width:15,height:15,className:"".concat(w.isValueMasked?"text-blue-500 opacity-100":"text-slate-500 opacity-50"," hover:text-blue-500 dark:hover:text-blue-400 hover:opacity-100 cursor-pointer"),onClick:()=>{var _;o.value=re(R({},o.value),{templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((K,V)=>V===C?re(R({},K),{isValueMasked:!K.isValueMasked}):K)]})}})})]})})}),s.jsxs(ve,{className:"gap-1 ml-0.5",children:[w.type!=="section"&&s.jsx(ke,{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=re(R({},o.value),{templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((K,V)=>V===C?re(R({},K),{isEnable:!K.isEnable}):K)]})},children:o.value.templateOptions&&((I=o.value.templateOptions[C])!=null&&I.isEnable)?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",title:i("Field Options",{ns:"dashboard"}),variant:"ghost",onClick:()=>{o.value=re(R({},o.value),{templateOptions:[...Jn(o.value.templateOptions||[],C,C-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:s.jsx(Hi,{size:14})})}),s.jsxs(_r,{align:"end",children:[s.jsxs(ze,{disabled:C===0,onClick:()=>{o.value=re(R({},o.value),{templateOptions:[...Jn(o.value.templateOptions||[],C,C-1)]})},className:"text-[13px] py-1",children:[s.jsx(J,{size:"xs",children:i("Move Up",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(t1,{size:13})})]}),s.jsxs(ze,{disabled:o.value.templateOptions?C===o.value.templateOptions.length-1:!1,onClick:()=>{o.value=re(R({},o.value),{templateOptions:[...Jn(o.value.templateOptions||[],C,C+1)]})},className:"text-[13px] py-1",children:[s.jsx(J,{size:"xs",children:i("Move Down",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(e1,{size:13})})]}),s.jsx(rr,{}),((W=w.label)==null?void 0:W.toLocaleLowerCase())!=="clipboard"&&s.jsxs(ze,{onClick:()=>{var _;j?c.value=null:c.value=(_=w.id)!=null?_:null},children:[j?s.jsx(J,{size:"xs",children:i("Done Edit",{ns:"common"})}):s.jsx(J,{size:"xs",children:i("Edit Label",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx($b,{size:13})})]}),w.isLabelOnTop?s.jsxs(ze,{onClick:()=>{var _;c.value=null,o.value=re(R({},o.value),{templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((K,V)=>V===C?re(R({},K),{isLabelOnTop:!1}):K)]})},children:[s.jsx(J,{size:"xs",children:i("Label Left",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(a$,{size:13})})]}):s.jsxs(ze,{onClick:()=>{var _;c.value=null,o.value=re(R({},o.value),{templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.map((K,V)=>V===C?re(R({},K),{isLabelOnTop:!0}):K)]})},children:[s.jsx(J,{size:"xs",children:i("Label Top",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(i$,{size:13})})]}),s.jsx(rr,{}),s.jsxs(ze,{className:"text-red-500 dark:!text-red-600 text-[13px] focus:text-red-500 py-1",onClick:()=>{var _;o.value=re(R({},o.value),{templateOptions:[...(_=o.value.templateOptions)==null?void 0:_.filter((K,V)=>V!==C)]}),n()},children:[s.jsx(J,{size:"xs",className:"!text-red-500 dark:!text-red-600",children:i("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(dn,{size:13})})]})]})]})]})]})]},C)}),g.value&&s.jsxs(J,{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"}),s.jsx(Ur,{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:()=>{g.value=!1}})]}),t.value.length>0&&s.jsxs(ve,{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:[s.jsxs(J,{className:"!text-amber-700 dark:!text-amber-500 text-[13px] w-full",children:[s.jsx(ti,{size:13,className:"mr-1"}),i("Found in template but missing from fields definition",{ns:"common"}),":"]}),t==null?void 0:t.value.map((w,C)=>s.jsx(Q,{className:"cursor-pointer",onClick:()=>{var M;o.value.templateOptions||(o.value.templateOptions=[]),g.value=!1;const j=[...o.value.templateOptions],E=(M=o.value.templateOptions)==null?void 0:M.every(P=>P.label!==w);E||(g.value=!0);const N=E?w:"".concat(w," ").concat(o.value.templateOptions.length+1);j.push({id:Date.now().toString(),label:N,type:"text",isEnable:!0,value:""}),o.value=re(R({},o.value),{templateOptions:j}),n()},children:s.jsxs(ft,{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:[s.jsx($e,{text:i("Add to template fields",{ns:"common"}),sideOffset:5,isCompact:!0,side:"bottom",children:s.jsxs(ve,{className:"group !text-red-500 dark:!text-red-400 hover:!text-blue-500 dark:hover:!text-blue-400 font-semibold mr-0.5",children:[s.jsx(c$,{size:12,className:"mr-0.5 group-hover:block hidden"}),s.jsx(Pn,{size:12,className:"mr-0.5 group-hover:hidden"}),w]})}),s.jsx($e,{text:i("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:s.jsx(Ur,{onClick:j=>{var E;j.preventDefault(),j.stopPropagation(),(E=p.current)==null||E.handleRemoveTemplateField(w)},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"})},C)]})},C))]}),s.jsxs(s.Fragment,{children:[o.value.templateOptions.length>0&&s.jsxs(ve,{className:"gap-2 my-3 items-start justify-start flex-wrap",children:[o.value.templateOptions.map((w,C)=>{var j;return!w.label||!w.label.length?null:w.label&&(r!=null&&r.value.includes((j=w.label)==null?void 0:j.toLocaleLowerCase()))?s.jsx($e,{text:w.isEnable?w.label==="Clipboard"?s.jsx(na,{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"}):s.jsx(na,{i18nKey:"Field <b>{{<b>{{name}}</b>}}</b> has been found in the template",ns:"dashboard",values:{name:w.label}}):s.jsx(na,{i18nKey:"Disabled field <b>{{<b>{{name}}</b>}}</b> has been found in the template",ns:"dashboard",values:{name:w.label}}),isCompact:!0,side:"bottom",children:s.jsx(J,{className:"".concat(w.isEnable?"!text-green-600 dark:!text-green-400":"!text-gray-400 dark:!text-gray-500"," !font-normal group"),size:"xs",children:s.jsxs(ft,{variant:"outline",className:"".concat(w.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:[s.jsx(Bt,{size:12,className:"mr-0.5"}),w.label,s.jsx($e,{text:i("Remove from template",{ns:"common"}),sideOffset:10,isCompact:!0,side:"bottom",children:s.jsx(Ur,{onClick:()=>{var E;(E=p.current)==null||E.handleRemoveTemplateField(w.label)},size:12,className:"".concat(w.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")})})]})})},C):s.jsx($e,{text:w.isEnable?w.label==="Clipboard"?s.jsx(na,{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"}):s.jsx(na,{i18nKey:"Add field <b>{{<b>{{name}}</b>}}</b> into the template",ns:"dashboard",values:{name:w.label}}):s.jsx(na,{i18nKey:"Disabled field <b>{{<b>{{name}}</b>}}</b>",ns:"dashboard",values:{name:w.label}}),isCompact:!0,side:"bottom",children:s.jsx(J,{className:"".concat(w.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;w.isEnable&&((E=p==null?void 0:p.current)==null||E.handleAddText("{{".concat(w.label,"}}")))},children:s.jsxs(ft,{variant:"outline",className:"".concat(w.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:[w.isEnable?s.jsxs(s.Fragment,{children:[s.jsx(iv,{size:12,className:"mr-0.5 group-hover:block hidden"}),s.jsx(Pn,{size:12,className:"mr-0.5 group-hover:hidden"})]}):s.jsx(oa,{size:12,className:"mr-0.5 hover:text-blue-500 cursor-pointer",onClick:E=>{var N;E.preventDefault(),E.stopPropagation(),o.value=re(R({},o.value),{templateOptions:[...(N=o.value.templateOptions)==null?void 0:N.map((M,P)=>P===C?re(R({},M),{isEnable:!0}):M)]})}}),w.label]})})},C)}),o.value.templateOptions.length>1&&r.value.length>0&&s.jsx($e,{text:i("Remove all fields from template",{ns:"common"}),isCompact:!0,side:"bottom",children:s.jsx(J,{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 w;(w=p==null?void 0:p.current)==null||w.handleRemoveAllTemplateFields()},children:s.jsx(ft,{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:s.jsx(e4,{size:13})})})})]}),s.jsx(Eo,{ref:p,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:a?12:6,value:e.value,onKeyDown:w=>{w.stopPropagation()},onChange:w=>{e.value=w.target.value}})]})]})}function obe({clipId:e,clipValue:t,showLinkValidationError:r,isLargeView:n,isDark:a,webrequestTestOutputObject:o,webrequestLocalOptions:i}){var v,w,C,j,E,N,M,P,D,A,O,$,H,z,I,W,_,K,V,U,X,G,F,q,Y,se;const{t:c}=Tt(),d=Ve(!1),f=Ve(!1),h=Ve(!1),p=Ve(!1),{updateItemById:g}=Bi(),S={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=ee=>pe(this,null,function*(){const{headers:ae,body:oe,filters:le}=i.value,ue={headers:ae,body:oe,filters:le,method:ee};yield g({updatedItem:{requestOptions:JSON.stringify({headers:ae,body:oe,method:ee}),itemId:e}}),i.value=R({},ue)});return m.useEffect(()=>{i.value.body||(p.value=!1)},[o.value.body]),s.jsxs(Q,{className:"select-none mt-1",children:[s.jsxs(ve,{className:"text-normal",children:[s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsxs(ke,{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:[s.jsx("span",{children:i.value.method}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{onClick:()=>{b("GET")},children:s.jsx(J,{className:"".concat(i.value.method==="GET"&&"font-semibold"),children:"GET"})}),s.jsx(ze,{textValue:"POST",onClick:()=>{b("POST")},children:s.jsx(J,{className:"".concat(i.value.method==="POST"&&"font-semibold"),children:"POST"})}),s.jsx(ze,{onClick:()=>{b("PUT")},children:s.jsx(J,{className:"".concat(i.value.method==="PUT"&&"font-semibold"),children:"PUT"})}),s.jsx(ze,{onClick:()=>{b("DELETE")},children:s.jsx(J,{className:"".concat(i.value.method==="DELETE"&&"font-semibold"),children:"DELETE"})}),s.jsx(ze,{onClick:()=>{b("HEAD")},children:s.jsx(J,{className:"".concat(i.value.method==="HEAD"&&"!font-semibold"),children:"HEAD"})})]})]}),s.jsx(sr,{defaultValue:t.value,placeholder:"Enter request url...",classNameInput:"pr-7 text-sm focus:border- ".concat(r.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(r.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:s.jsx(Q,{className:"absolute top-3 right-2",children:r.value?s.jsx($e,{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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):r.value===!1&&s.jsx($e,{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:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:ee=>{if(r.value&&(r.value=void 0),ee.target.value.length>5){const oe=Nn().match(ee.target.value);!oe||oe.length>1?r.value=!0:r.value=!1}t.value=ee.target.value}})]}),s.jsx(Q,{className:"mt-2",children:s.jsxs(ve,{className:"gap-4 w-full justify-start",children:[s.jsx(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",onClick:()=>{const ee=[...i.value.headers];ee.unshift({id:Date.now().toString(),name:"",isEnable:!0,value:""}),i.value=re(R({},i.value),{headers:ee})},title:c("Add Request Header",{ns:"dashboard"}),children:c("Add Header",{ns:"dashboard"})}),s.jsx(ve,{children:s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[c("Add Auth",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Basic Password",i.value=re(R({},i.value),{auth:re(R({},i.value.auth),{type:"Basic Password",basicPassword:"",basicUsername:"",isEnable:!0})})},children:s.jsx(J,{className:"".concat(((v=i.value.auth)==null?void 0:v.type)==="Basic Password"&&"font-semibold"),children:c("Basic Auth",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="Bearer Token",i.value=re(R({},i.value),{auth:re(R({},i.value.auth),{type:"Bearer Token",bearerToken:"",isEnable:!0})})},children:s.jsx(J,{className:"".concat(((w=i.value.auth)==null?void 0:w.type)==="Bearer Token"&&"font-semibold"),children:c("Bearer Token",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{i.value.auth||(i.value.auth={}),i.value.auth.type="API Key",i.value=re(R({},i.value),{auth:re(R({},i.value.auth),{type:"API Key",apiKey:"",apiValue:"",isEnable:!0})})},children:s.jsx(J,{className:"".concat(((C=i.value.auth)==null?void 0:C.type)==="API Key"&&"font-semibold"),children:c("API Key",{ns:"dashboard"})})})]})]})}),s.jsx(ve,{children:s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[c("Add Response Filter",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{onClick:()=>{i.value.filters||(i.value.filters=[]);const ee=[...i.value.filters];ee.push({id:Date.now().toString(),filterType:"dotpathjson",isEnable:!0,value:""}),i.value=re(R({},i.value),{filters:ee})},children:s.jsx(J,{children:c("FILTERED_TYPES:::Dot Path",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{i.value.filters||(i.value.filters=[]);const ee=[...i.value.filters];ee.push({id:Date.now().toString(),filterType:"jsonpath",isEnable:!0,value:""}),i.value=re(R({},i.value),{filters:ee})},children:s.jsx(J,{children:c("FILTERED_TYPES:::JSON Path",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{i.value.filters||(i.value.filters=[]);const ee=[...i.value.filters];ee.push({id:Date.now().toString(),filterType:"regex",isEnable:!0,value:""}),i.value=re(R({},i.value),{filters:ee})},children:s.jsx(J,{children:c("FILTERED_TYPES:::RegEx",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{i.value.filters||(i.value.filters=[]);const ee=[...i.value.filters];ee.push({id:Date.now().toString(),filterType:"regexreplace",isEnable:!0,replace:"",value:""}),i.value=re(R({},i.value),{filters:ee})},children:s.jsx(J,{children:c("FILTERED_TYPES:::RegEx Replace",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{i.value.filters||(i.value.filters=[]);const ee=[...i.value.filters];ee.push({id:Date.now().toString(),filterType:"removequotes",isEnable:!0,value:""}),i.value=re(R({},i.value),{filters:ee})},children:s.jsx(J,{children:c("FILTERED_TYPES:::Remove Quotes",{ns:"dashboard"})})})]})]})})]})}),i.value.headers.length>0&&s.jsxs(Q,{className:"mt-2",children:[s.jsxs(ve,{className:"gap-1 w-full justify-start",children:[s.jsxs(J,{className:"font-semibold",size:"sm",children:[c("Headers",{ns:"dashboard"}),s.jsx(ft,{className:"ml-1 py-0",variant:"secondary",children:i.value.headers.length})]}),s.jsxs(ca,{defaultOpen:!1,open:d.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(ke,{size:"mini",title:c("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{d.value=!0},children:s.jsx(Ur,{size:16})})}),s.jsx(Ws,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{d.value=!1},onPointerDownOutside:()=>{d.value=!1},children:s.jsxs(ve,{className:"flex-col gap-3",children:[s.jsx(J,{color:"black",size:"sm",children:c("Confirm to remove headers",{ns:"dashboard"})}),s.jsxs(ve,{children:[s.jsx(ke,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{d.value=!1},children:c("Cancel",{ns:"common"})}),s.jsxs(ke,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=re(R({},i.value),{headers:[]}),d.value=!1},children:[c("Remove",{ns:"common"}),s.jsx(ft,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.headers.length})]})]})]})})]})]}),i.value.headers.map((ee,ae)=>{var oe;return s.jsxs(ve,{className:"gap-2 mb-1",children:[s.jsx(sr,{small:!0,defaultValue:ee.name,disabled:ee.isEnable===!1,onChange:le=>{ee.name=le.target.value.trim()},placeholder:c("Name",{ns:"dashboard"}),autoFocus:ae===0,className:"".concat(ee.isEnable===!1?"bg-gray-100 opacity-50":""),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),s.jsx(sr,{small:!0,placeholder:c("Value",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ee.isEnable===!1,className:"".concat(ee.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:le=>{ee.value=le.target.value.trim()},defaultValue:ee.value,required:!0}),s.jsx(ke,{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=re(R({},i.value),{headers:i.value.headers.map((le,ue)=>ue===ae?re(R({},le),{isEnable:!le.isEnable}):le)})},children:(oe=i.value.headers[ae])!=null&&oe.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsx(ke,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=re(R({},i.value),{headers:i.value.headers.filter((le,ue)=>ue!==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:s.jsx(dn,{size:14})})]},ee.id)})]}),((j=i.value.auth)==null?void 0:j.type)&&s.jsxs(Q,{className:"mt-2",children:[s.jsxs(ve,{className:"gap-1 w-full justify-start",children:[s.jsxs(J,{className:"font-semibold",size:"sm",children:[c("Auth",{ns:"dashboard"})," (",(E=i.value.auth)==null?void 0:E.type,")"]}),s.jsxs(ca,{defaultOpen:!1,open:f.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(ke,{size:"mini",title:c("Remove headers",{ns:"dashboard"}),variant:"ghost",className:"text-sm w-6 h-6 hover:bg-transparent ml-0.5",onClick:()=>{f.value=!0},children:s.jsx(Ur,{size:16})})}),s.jsx(Ws,{sideOffset:10,align:"center",className:"w-52",onEscapeKeyDown:()=>{f.value=!1},onPointerDownOutside:()=>{f.value=!1},children:s.jsxs(ve,{className:"flex-col gap-3",children:[s.jsx(J,{color:"black",size:"sm",children:c("Confirm to remove Auth",{ns:"dashboard"})}),s.jsxs(ve,{children:[s.jsx(ke,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{f.value=!1},children:c("Cancel",{ns:"common"})}),s.jsx(ke,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=re(R({},i.value),{auth:{}}),f.value=!1},children:c("Remove",{ns:"common"})})]})]})})]})]}),((N=i.value.auth)==null?void 0:N.type)==="Bearer Token"&&s.jsxs(ve,{className:"gap-2 mb-1",children:[s.jsx(sr,{small:!0,isPassword:!0,showHidePassword:!0,defaultValue:(M=i.value.auth)==null?void 0:M.bearerToken,disabled:((P=i.value.auth)==null?void 0:P.isEnable)===!1,onChange:ee=>{i.value.auth||(i.value.auth={}),i.value.auth.bearerToken=ee.target.value.trim()},className:"".concat(((D=i.value.auth)==null?void 0:D.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}),s.jsx(ke,{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 ee;i.value=re(R({},i.value),{auth:re(R({},i.value.auth),{isEnable:!((ee=i.value.auth)!=null&&ee.isEnable)})})},children:(A=i.value.auth)!=null&&A.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsx(ke,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=re(R({},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:s.jsx(dn,{size:14})})]}),((O=i.value.auth)==null?void 0:O.type)==="API Key"&&s.jsxs(ve,{className:"gap-2 mb-1",children:[s.jsx(sr,{small:!0,defaultValue:($=i.value.auth)==null?void 0:$.apiKey,disabled:((H=i.value.auth)==null?void 0:H.isEnable)===!1,className:"".concat(((z=i.value.auth)==null?void 0:z.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:ee=>{i.value.auth||(i.value.auth={}),i.value.auth.apiKey=ee.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}),s.jsx(sr,{small:!0,defaultValue:(I=i.value.auth)==null?void 0:I.apiValue,disabled:((W=i.value.auth)==null?void 0:W.isEnable)===!1,className:"".concat(((_=i.value.auth)==null?void 0:_.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:ee=>{i.value.auth||(i.value.auth={}),i.value.auth.apiValue=ee.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}),s.jsx(ke,{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 ee;i.value=re(R({},i.value),{auth:re(R({},i.value.auth),{isEnable:!((ee=i.value.auth)!=null&&ee.isEnable)})})},children:(K=i.value.auth)!=null&&K.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsx(ke,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=re(R({},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:s.jsx(dn,{size:14})})]}),((V=i.value.auth)==null?void 0:V.type)==="Basic Password"&&s.jsxs(ve,{className:"gap-2 mb-1",children:[s.jsx(sr,{small:!0,defaultValue:(U=i.value.auth)==null?void 0:U.basicUsername,disabled:((X=i.value.auth)==null?void 0:X.isEnable)===!1,className:"".concat(((G=i.value.auth)==null?void 0:G.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:ee=>{i.value.auth||(i.value.auth={}),i.value.auth.basicUsername=ee.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}),s.jsx(sr,{small:!0,defaultValue:(F=i.value.auth)==null?void 0:F.basicPassword,disabled:((q=i.value.auth)==null?void 0:q.isEnable)===!1,className:"".concat(((Y=i.value.auth)==null?void 0:Y.isEnable)===!1?"bg-gray-100 opacity-50":""),onChange:ee=>{i.value.auth||(i.value.auth={}),i.value.auth.basicPassword=ee.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}),s.jsx(ke,{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 ee;i.value=re(R({},i.value),{auth:re(R({},i.value.auth),{isEnable:!((ee=i.value.auth)!=null&&ee.isEnable)})})},children:(se=i.value.auth)!=null&&se.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsx(ke,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=re(R({},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:s.jsx(dn,{size:14})})]})]}),i.value.filters.length>0&&s.jsxs(Q,{className:"mt-2",children:[s.jsxs(ve,{className:"gap-1 w-full justify-start",children:[s.jsxs(J,{className:"font-semibold",size:"sm",children:[c("Response Filters",{ns:"dashboard"}),s.jsx(ft,{className:"ml-1 py-0",variant:"secondary",children:i.value.filters.length})]}),s.jsxs(ca,{defaultOpen:!1,open:h.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(ke,{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:s.jsx(Ur,{size:16})})}),s.jsx(Ws,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{h.value=!1},onPointerDownOutside:()=>{h.value=!1},children:s.jsxs(ve,{className:"flex-col gap-3",children:[s.jsx(J,{color:"black",size:"sm",children:c("Confirm to remove filters",{ns:"dashboard"})}),s.jsxs(ve,{children:[s.jsx(ke,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{h.value=!1},children:c("Cancel",{ns:"common"})}),s.jsxs(ke,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{i.value=re(R({},i.value),{filters:[]}),h.value=!1},children:[c("Remove",{ns:"common"}),s.jsx(ft,{variant:"destructive",className:"ml-1 py-[1px]",children:i.value.filters.length})]})]})]})})]})]}),i.value.filters.map((ee,ae)=>{var le;const oe=S[ee.filterType];return s.jsxs(ve,{className:"gap-1 mb-1",children:[s.jsx(J,{title:"".concat(c("Filter Type",{ns:"dashboard"}),": ").concat(oe),className:"".concat(ee.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end"),children:s.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[ae+1,". ",oe]})}),ee.filterType==="removequotes"?s.jsx(sr,{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(ee.isEnable===!1?"bg-gray-100 opacity-50":""," "),readOnly:!0,defaultValue:c("Remove all double quotes",{ns:"dashboard"})}):s.jsx(sr,{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:ee.isEnable===!1,className:"".concat(ee.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:ue=>{ee.value=ue.target.value.trim()},defaultValue:ee.value}),ee.filterType==="regexreplace"&&s.jsx(sr,{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:ee.isEnable===!1,className:"".concat(ee.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:ue=>{ee.replace=ue.target.value.trim()},defaultValue:ee.replace}),s.jsx(ke,{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=re(R({},i.value),{filters:i.value.filters.map((ue,ce)=>ce===ae?re(R({},ue),{isEnable:!ue.isEnable}):ue)})},children:(le=i.value.filters[ae])!=null&&le.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",title:c("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{i.value=re(R({},i.value),{filters:Jn(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:s.jsx(Hi,{size:14})})}),s.jsxs(_r,{align:"end",children:[s.jsxs(ze,{disabled:ae===0,onClick:()=>{i.value=re(R({},i.value),{filters:Jn(i.value.filters,ae,ae-1)})},className:"text-[13px] py-1",children:[s.jsx(J,{children:c("Move Up",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(t1,{size:13})})]}),s.jsxs(ze,{disabled:ae===i.value.filters.length-1,onClick:()=>{i.value=re(R({},i.value),{filters:Jn(i.value.filters,ae,ae+1)})},className:"text-[13px] py-1",children:[s.jsx(J,{children:c("Move Down",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(e1,{size:13})})]}),s.jsxs(ze,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{i.value=re(R({},i.value),{filters:i.value.filters.filter((ue,ce)=>ce!==ae)})},children:[s.jsx(J,{className:"!text-red-500",children:c("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(dn,{size:13})})]})]})]})]},ee.id)})]}),(o.value.body||o.value.status)&&s.jsxs(Q,{className:"".concat(o.value.status&&o.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(n?"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&&s.jsx(Cl,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:p.value?"fullBody":"filteredBody",onValueChange:ee=>{p.value=ee==="fullBody"},children:s.jsxs(si,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[s.jsx(En,{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"})}),s.jsx(En,{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"})})]})}),s.jsx(la,{isDark:a,maxHeight:n?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:o.value.filteredBody&&!p.value?o.value.filteredBody:o.value.body||c("No body returned for response",{ns:"dashboard"}),language:o.value.contentType&&o.value.body&&rM[o.value.contentType.split(";")[0]]||"text"}),s.jsxs(ve,{className:"justify-between py-1 pb-1",children:[s.jsx(Q,{className:"text-xs rounded-sm px-1.5 select-none bg-slate-300 text-slate-600",children:o.value.contentType&&rM[o.value.contentType.split(";")[0]]}),s.jsx(Q,{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 ibe({clipValue:e,showLinkValidationError:t,isLargeView:r,isDark:n,testOutputObject:a,localOptions:o}){var g,S,b,v,w,C,j,E,N,M,P,D,A,O,$,H,z,I,W,_,K,V,U,X,G,F,q,Y,se,ee,ae,oe,le,ue;const{t:i}=Tt(),c=Ve(!1),d=Ve(!1),f={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"})},h={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"})},p={first:i("RETURN_POSITION_TYPES:::First Only",{ns:"dashboard"}),last:i("RETURN_POSITION_TYPES:::Last Only",{ns:"dashboard"})};return s.jsxs(Q,{className:"select-none mt-1",children:[s.jsxs(ve,{className:"text-normal",children:[s.jsx($e,{asChild:!0,text:i("Website URL",{ns:"dashboard"}),isCompact:!0,side:"bottom",children:s.jsx(ke,{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:s.jsx("span",{children:i("URL",{ns:"dashboard"})})})}),s.jsx(sr,{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:s.jsx(Q,{className:"absolute top-3 right-2",children:t.value?s.jsx($e,{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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):t.value===!1&&s.jsx($e,{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:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:ce=>{if(t.value&&(t.value=void 0),ce.target.value.length>5){const we=Nn().match(ce.target.value);!we||we.length>1?t.value=!0:t.value=!1}e.value=ce.target.value}})]}),s.jsx(Q,{className:"mt-2",children:s.jsx(ve,{className:"gap-4 w-full justify-start",children:s.jsx(ve,{children:s.jsxs(Dr,{children:[s.jsx(Ar,{children:s.jsxs(J,{className:"!text-blue-500 hover:underline cursor-pointer",size:"xs",children:[i("Add Scraping Rule",{ns:"dashboard"}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ce=[...o.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"cssselector",isEnable:!0,value:""}),o.value=re(R({},o.value),{scrapingRules:ce})},children:s.jsx(J,{children:i("CSS Selector",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ce=[...o.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexfind",isEnable:!0,value:""}),o.value=re(R({},o.value),{scrapingRules:ce})},children:s.jsx(J,{children:i("RegEx Find",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ce=[...o.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexmatch",isEnable:!0,value:""}),o.value=re(R({},o.value),{scrapingRules:ce})},children:s.jsx(J,{children:i("RegEx Match",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ce=[...o.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexmatchfoundgroup",isEnable:!0,value:""}),o.value=re(R({},o.value),{scrapingRules:ce})},children:s.jsx(J,{children:i("RegEx Match Group",{ns:"dashboard"})})}),s.jsx(ze,{onClick:()=>{o.value.scrapingRules||(o.value.scrapingRules=[]);const ce=[...o.value.scrapingRules];ce.push({id:Date.now().toString(),ruleType:"regexreplace",isEnable:!0,value:""}),o.value=re(R({},o.value),{scrapingRules:ce})},children:s.jsx(J,{children:i("RegEx Replace",{ns:"dashboard"})})})]})]})})})}),o.value.scrapingRules&&o.value.scrapingRules.length>0&&s.jsxs(Q,{className:"mt-2",children:[s.jsxs(ve,{className:"gap-1 w-full justify-start",children:[s.jsxs(J,{className:"font-semibold",size:"sm",children:[i("Scrapping Rules",{ns:"dashboard"}),s.jsx(ft,{className:"ml-1 py-0",variant:"secondary",children:o.value.scrapingRules.length})]}),s.jsxs(ca,{defaultOpen:!1,open:c.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(ke,{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:s.jsx(Ur,{size:16})})}),s.jsx(Ws,{sideOffset:10,align:"center",className:"w-60",onEscapeKeyDown:()=>{c.value=!1},onPointerDownOutside:()=>{c.value=!1},children:s.jsxs(ve,{className:"flex-col gap-3",children:[s.jsx(J,{color:"black",size:"sm",children:i("Confirm to remove rules",{ns:"dashboard"})}),s.jsxs(ve,{children:[s.jsx(ke,{variant:"ghost",className:"hover:bg-transparent font-normal h-8",onClick:()=>{c.value=!1},children:i("Cancel",{ns:"dashboard"})}),s.jsxs(ke,{className:"hover:bg-red-100 bg-red-50 text-red-500 h-8",onClick:()=>{o.value=re(R({},o.value),{scrapingRules:[]}),c.value=!1},children:[i("Remove",{ns:"dashboard"}),s.jsx(ft,{variant:"destructive",className:"ml-1 py-[1px]",children:o.value.scrapingRules.length})]})]})]})})]})]}),o.value.scrapingRules.map((ce,he)=>{var Se,Ae;const we=f[ce.ruleType];return s.jsxs(ve,{className:"mb-1 mt-2 items-center",children:[s.jsx(J,{title:"".concat(i("Rule Type",{ns:"common"}),": ").concat(we),className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""," text-[13px] !font-semibold pl-1.5 self-stretch flex !justify-end pb-2"),children:s.jsxs("span",{className:"whitespace-nowrap overflow-hidden text-ellipsis w-[120px] text-left block",children:[he+1,". ",we]})}),s.jsxs(ve,{className:"gap-0.5 flex-col w-full items-start ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),children:[s.jsx(ve,{className:"w-full gap-1",children:s.jsxs(s.Fragment,{children:[s.jsx(sr,{small:!0,placeholder:ce.ruleType==="cssselector"?"Selector":"Rule's Value",autoFocus:o.value.scrapingRules?he===((Se=o.value.scrapingRules)==null?void 0:Se.length)-1:!1,classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""," w-full"),onChange:je=>{ce.value=je.target.value.trim()},defaultValue:ce.value}),ce.ruleType==="cssselector"&&s.jsx(sr,{small:!0,placeholder:"Find Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:je=>{ce.filterText=je.target.value.trim()},defaultValue:ce.filterText})]})}),s.jsxs(ve,{className:"gap-1 mb-1",children:[ce.ruleType==="regexreplace"&&s.jsx(sr,{small:!0,placeholder:"Replace Value",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:je=>{ce.replace=je.target.value.trim()},defaultValue:ce.replace}),ce.ruleType==="cssselector"&&s.jsxs(s.Fragment,{children:[s.jsx(sr,{small:!0,placeholder:"Attribute Name",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:je=>{ce.returnAttribute=je.target.value.trim()},defaultValue:ce.returnAttribute}),s.jsx(sr,{small:!0,placeholder:"Attribute Text",classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",disabled:ce.isEnable===!1,className:"max-w-[120px] ".concat(ce.isEnable===!1?"bg-gray-100 opacity-50":""),onChange:je=>{ce.returnAttributeText=je.target.value.trim()},defaultValue:ce.returnAttributeText})]})]})]}),s.jsxs(ve,{className:"gap-1 mb-1 mt-[-12px] ml-2",children:[s.jsx(ke,{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 je;o.value=re(R({},o.value),{scrapingRules:(je=o.value.scrapingRules)==null?void 0:je.map((Le,Ee)=>Ee===he?re(R({},Le),{isEnable:!Le.isEnable}):Le)})},children:o.value.scrapingRules&&((Ae=o.value.scrapingRules[he])!=null&&Ae.isEnable)?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(ke,{size:"mini",title:i("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{o.value=re(R({},o.value),{scrapingRules:Jn(o.value.scrapingRules||[],he,he-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:s.jsx(Hi,{size:14})})}),s.jsxs(_r,{align:"end",children:[s.jsxs(ze,{disabled:he===0,onClick:()=>{o.value=re(R({},o.value),{scrapingRules:Jn(o.value.scrapingRules||[],he,he-1)})},className:"text-[13px] py-1",children:[s.jsx(J,{children:i("Move Up",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(t1,{size:13})})]}),s.jsxs(ze,{disabled:o.value.scrapingRules?he===o.value.scrapingRules.length-1:!1,onClick:()=>{o.value=re(R({},o.value),{scrapingRules:Jn(o.value.scrapingRules||[],he,he+1)})},className:"text-[13px] py-1",children:[s.jsx(J,{children:i("Move Down",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(e1,{size:13})})]}),s.jsxs(ze,{className:"text-red-500 text-[13px] focus:text-red-500 py-1",onClick:()=>{var je;o.value=re(R({},o.value),{scrapingRules:(je=o.value.scrapingRules)==null?void 0:je.filter((Le,Ee)=>Ee!==he)})},children:[s.jsx(J,{className:"!text-red-500",children:i("Remove",{ns:"common"})}),s.jsx("div",{className:"ml-auto",children:s.jsx(dn,{size:13})})]})]})]})]})]},ce.id)}),o.value.scrapingRules&&o.value.scrapingRules.length>0&&s.jsxs(ve,{className:"mt-2 justify-start",children:[s.jsx(ke,{variant:"outline",size:"mini",className:"px-2 h-8 text-[13px] text-slate-500 border-0 font-semibold mr-2 flex items-center",children:s.jsx("span",{className:"whitespace-nowrap",children:i("Return Result As",{ns:"dashboard"})})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsxs(ke,{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:[s.jsx("span",{className:"whitespace-nowrap",children:(g=o.value.scrapingOptions)==null?void 0:g.returnType}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:s.jsx(J,{children:i("Return Type",{ns:"dashboard"})})}),s.jsx(rr,{}),s.jsx(nr,{checked:((S=o.value.scrapingOptions)==null?void 0:S.returnType)==="Text",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnType:"Text"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsx(J,{className:"".concat(((b=o.value.scrapingOptions)==null?void 0:b.returnType)==="Text"&&"font-semibold"),children:i("ReturnType:::Text",{ns:"dashboard"})})}),s.jsx(nr,{checked:((v=o.value.scrapingOptions)==null?void 0:v.returnType)==="Array",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnType:"Array"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsx(J,{className:"".concat(((w=o.value.scrapingOptions)==null?void 0:w.returnType)==="Array"&&"font-semibold"),children:i("ReturnType:::Array",{ns:"dashboard"})})})]})]}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsxs(ke,{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:[s.jsxs("span",{className:"whitespace-nowrap",children:[i("Limit",{ns:"dashboard"}),":",s.jsx("span",{className:"ml-1",children:(C=o.value.scrapingOptions)!=null&&C.returnCount&&o.value.scrapingOptions.returnPosition==null&&o.value.scrapingOptions.returnCount>0?(j=o.value.scrapingOptions)==null?void 0:j.returnCount:((E=o.value.scrapingOptions)==null?void 0:E.returnPosition)!==null?p[(N=o.value.scrapingOptions)==null?void 0:N.returnPosition]:i("RETURN_POSITION_TYPES:::All",{ns:"dashboard"})})]}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:s.jsx(J,{children:i("Return Count Limit",{ns:"dashboard"})})}),s.jsx(rr,{}),s.jsx(nr,{checked:((M=o.value.scrapingOptions)==null?void 0:M.returnCount)==null&&((P=o.value.scrapingOptions)==null?void 0:P.returnPosition)==null,onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnPosition:null,returnCount:null});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsx(J,{className:"".concat(((D=o.value.scrapingOptions)==null?void 0:D.returnCount)==null&&((A=o.value.scrapingOptions)==null?void 0:A.returnPosition)==null&&"font-semibold"),children:i("All (No Limit)",{ns:"dashboard"})})}),s.jsx(nr,{checked:((O=o.value.scrapingOptions)==null?void 0:O.returnPosition)=="first",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnCount:null,returnPosition:"first"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsx(J,{className:"".concat((($=o.value.scrapingOptions)==null?void 0:$.returnPosition)=="first"&&"font-semibold"),children:i("First Only",{ns:"dashboard"})})}),s.jsx(nr,{checked:((H=o.value.scrapingOptions)==null?void 0:H.returnPosition)=="last",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnCount:null,returnPosition:"last"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsx(J,{className:"".concat(((z=o.value.scrapingOptions)==null?void 0:z.returnPosition)=="last"&&"font-semibold"),children:i("Last Only",{ns:"dashboard"})})}),[...Array(5)].map((ce,he)=>{var Se,Ae;const we=he+1;return s.jsx(nr,{checked:((Se=o.value.scrapingOptions)==null?void 0:Se.returnCount)===we,onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const je=re(R({},o.value.scrapingOptions),{returnPosition:null,returnCount:we});o.value=re(R({},o.value),{scrapingOptions:je})},children:s.jsx(J,{className:"".concat(((Ae=o.value.scrapingOptions)==null?void 0:Ae.returnCount)===we&&"font-semibold"),children:we})},we)}),[10,20].map(ce=>{var he,we;return s.jsx(nr,{checked:((he=o.value.scrapingOptions)==null?void 0:he.returnCount)===ce,onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const Se=re(R({},o.value.scrapingOptions),{returnPosition:null,returnCount:ce});o.value=re(R({},o.value),{scrapingOptions:Se})},children:s.jsx(J,{className:"".concat(((we=o.value.scrapingOptions)==null?void 0:we.returnCount)===ce&&"font-semibold"),children:ce})},ce)})]})]}),((I=o.value.scrapingOptions)==null?void 0:I.returnType)!=="Array"&&((W=o.value.scrapingOptions)==null?void 0:W.returnPosition)==null&&(((_=o.value.scrapingOptions)==null?void 0:_.returnCount)==null||((K=o.value.scrapingOptions)==null?void 0:K.returnCount)!==1)&&s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsxs(ke,{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:[s.jsx("span",{className:"whitespace-nowrap",children:h[(V=o.value.scrapingOptions)==null?void 0:V.returnSeparator]}),s.jsx(Nr,{size:12,className:"ml-1"})]})}),s.jsxs(_r,{sideOffset:12,align:"center",children:[s.jsx(ze,{disabled:!0,className:"text-center flex items-center justify-center py-0.5",children:s.jsx(J,{children:i("Text Separator",{ns:"dashboard"})})}),s.jsx(rr,{}),s.jsx(nr,{checked:((U=o.value.scrapingOptions)==null?void 0:U.returnSeparator)==="newline",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnSeparator:"newline"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsxs(J,{className:"".concat(((X=o.value.scrapingOptions)==null?void 0:X.returnSeparator)==="newline"&&"font-semibold"),children:[i("ReturnSeparator:::New Line",{ns:"dashboard"})," (\\n)"]})}),s.jsx(nr,{checked:((G=o.value.scrapingOptions)==null?void 0:G.returnSeparator)==="tab",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnSeparator:"tab"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsxs(J,{className:"".concat(((F=o.value.scrapingOptions)==null?void 0:F.returnSeparator)==="tab"&&"font-semibold"),children:[i("ReturnSeparator:::Tab",{ns:"dashboard"})," (\\t)"]})}),s.jsx(nr,{checked:((q=o.value.scrapingOptions)==null?void 0:q.returnSeparator)==="comma",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnSeparator:"comma"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsxs(J,{className:"".concat(((Y=o.value.scrapingOptions)==null?void 0:Y.returnSeparator)==="comma"&&"font-semibold"),children:[i("ReturnSeparator:::Comma",{ns:"dashboard"})," (,)"]})}),s.jsx(nr,{checked:((se=o.value.scrapingOptions)==null?void 0:se.returnSeparator)==="semicolon",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnSeparator:"semicolon"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsxs(J,{className:"".concat(((ee=o.value.scrapingOptions)==null?void 0:ee.returnSeparator)==="semicolon"&&"font-semibold"),children:[i("ReturnSeparator:::Semicolon",{ns:"dashboard"})," (;)"]})}),s.jsx(nr,{checked:((ae=o.value.scrapingOptions)==null?void 0:ae.returnSeparator)==="pipe",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnSeparator:"pipe"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsxs(J,{className:"".concat(((oe=o.value.scrapingOptions)==null?void 0:oe.returnSeparator)==="pipe"&&"font-semibold"),children:[i("ReturnSeparator:::Pipe",{ns:"dashboard"})," (|)"]})}),s.jsx(nr,{checked:((le=o.value.scrapingOptions)==null?void 0:le.returnSeparator)==="space",onClick:()=>{o.value.scrapingOptions||(o.value.scrapingOptions={});const ce=re(R({},o.value.scrapingOptions),{returnSeparator:"space"});o.value=re(R({},o.value),{scrapingOptions:ce})},children:s.jsxs(J,{className:"".concat(((ue=o.value.scrapingOptions)==null?void 0:ue.returnSeparator)==="space"&&"font-semibold"),children:[i("ReturnSeparator:::Space",{ns:"dashboard"})," (' ')"]})})]})]})]})]}),(a.value.body||a.value.status)&&s.jsxs(Q,{className:"".concat(a.value.status&&a.value.status>=400?"bg-red-50 ":"bg-green-50"," ").concat(r?"!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:[a.value.body&&a.value.scrappedBody&&s.jsx(Cl,{className:"flex flex-row absolute top-2 right-3 z-10 select-none",value:d.value?"fullBody":"filteredBody",onValueChange:ce=>{d.value=ce==="fullBody"},children:s.jsxs(si,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200",children:[s.jsx(En,{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"})}),s.jsx(En,{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:a.value.foundCount&&a.value.foundCount>1?i("Found {{foundCount}} results",{ns:"dashboard",foundCount:a.value.foundCount}):i("Found",{ns:"common"})})]})}),s.jsx(la,{isDark:n,maxHeight:r?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:a.value.scrappedBody&&!d.value?a.value.scrappedBody:a.value.body||i("No body returned for response",{ns:"dashboard"}),language:a.value.body&&d.value?"html":"text"}),o.value.scrapingRules&&o.value.scrapingRules.length===0&&s.jsxs(J,{className:"text-xs text-yellow-600",children:[i("You have no rules added",{ns:"dashboard"}),"."]}),a.value.status&&a.value.status>=400&&s.jsx(ve,{className:"justify-between py-1 pb-1",children:s.jsxs(Q,{className:"text-xs rounded-sm px-1.5 select-none bg-red-300 text-red-700",children:[a.value.status," error"]})})]})]})}function QB({id:e,isMenu:t}){const r=Ve(!1),{t:n}=Tt(),a=()=>{r.value=!1,R3.value=null},{deleteClipImageByItemId:o}=Jme();return s.jsxs(ca,{defaultOpen:!1,open:r.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{tabIndex:0,className:"focus:outline-none",children:s.jsx($e,{text:n("Remove image",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(ke,{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:()=>{r.value=!0,R3.value=e},children:s.jsx(dn,{size:20,className:"text-red-600 cursor-pointer"})})})})}),s.jsx(Ws,{sideOffset:16,align:"center",className:"p-3 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",onEscapeKeyDown:()=>{a()},onPointerDownOutside:()=>{a()},children:r.value&&s.jsxs(ve,{className:"flex-col",children:[t?s.jsx(J,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:n("Are you sure you want to remove image from the menu?",{ns:"menus"})}):s.jsx(J,{color:"black",size:"sm",className:"!inline-block text-center mb-2 font-semibold",children:n("Are you sure you want to remove image from the clip?",{ns:"dashboard"})}),s.jsx(J,{color:"black",size:"sm",className:"italic text-center",children:n("This action cannot be undone.",{ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{children:[s.jsx(ke,{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:()=>{a()},children:n("Cancel",{ns:"common"})}),s.jsx(ke,{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}),a()},children:n("Remove",{ns:"common"})})]})]})})]})}function lbe({clipId:e,isOver:t,value:r,isCode:n,isText:a,isTemplate:o,isForm:i,isImage:c,isDelete:d,isMasked:f,hasEmoji:h,isVideo:p,isCommand:g,isWebRequest:S,isWebScraping:b,isPath:v,isLink:w,isLargeView:C,imageDataUrl:j,isPinned:E,isFavorite:N,requestOptions:M,isShowLinkedClip:P,formTemplateOptions:D,isNewlyCreated:A,isDark:O,detectedLanguage:$,isHistoryDragActive:H,onCancel:z}){var Xt,Ge,zt,ir,Ft,et,cr,ar,ur,Sr,Mt,Rr;const{t:I}=Tt(),W=m.useRef(null),_=Ve(""),K=Ve({method:"GET",headers:[],body:"",scrapingRules:[],scrapingOptions:{returnType:"Text",returnSeparator:null,returnCount:null},filters:[],auth:{}}),V=Ve({templateOptions:[],formOptions:{fields:[]}}),U=Ve(""),X=Ve(""),G=Ve("text"),F=Ve({body:null,status:null,hasFiltersError:null,foundCount:null,filteredBody:null,contentType:null}),{metadataLinkByItemId:q,invalidateLinkMetadataByItemId:Y}=d1(w,e),se=(q==null?void 0:q.linkTitle)&&(q==null?void 0:q.linkDomain),ee=Am(),ae=Ve(!1),oe=Ve([]),le=Ve([]),ue=Ve(Date.now()),ce=Ve(!1),he=Ve(void 0),we=Ve(void 0),Se=Ve(void 0),Ae=Ve(void 0),{updateItemById:je}=Bi(),Le=m.useRef(null),Ee=ro(_.value,300),He=ro(_.value,600),Qe=C?"max-h-[600px]":"max-h-[300px]",Ze=Ve(!1);m.useEffect(()=>{if(M)try{const Me=JSON.parse(M);K.value=R(R({},K.value),Me)}catch(Me){console.log("error",Me)}},[M]),m.useEffect(()=>{if(D)try{const Me=JSON.parse(D);V.value=R(R({},V.value),Me)}catch(Me){console.log("error",Me)}},[D]),m.useEffect(()=>{_.value=r!=null?r:""},[r]);const mt=m.useMemo(()=>n?I("Type:::Code Snippet",{ns:"common"}):c?I("Type:::Image",{ns:"common"}):g?I("Type:::Shell Command",{ns:"common"}):S?I("Type:::Web Request (HTTP)",{ns:"common"}):b?I("Type:::Web Scraper / Parser",{ns:"common"}):w?I("Type:::Link or Email",{ns:"common"}):v?I("Type:::File, Path or App",{ns:"common"}):i?I("Type:::Form Auto Fill",{ns:"common"}):o?I("Type:::Template Fill",{ns:"common"}):I("Type:::Plain Text",{ns:"common"}),[n,c,g,S,w,v,i,o,b]);m.useEffect(()=>{if(w){const Ye=Nn().match(_.value);!Ye||Ye.length>1?he.value=!0:he.value=!1}},[w]);const Ke=m.useCallback(Me=>pe(this,null,function*(){const Te=r===_.value?r:Me;v&&Te.length>5&&kr("check_path",{path:Te}).then(()=>{we.value=!1}).catch(()=>{we.value=!0})}),[v]),Lt=m.useCallback(Me=>{const Ye=/{{[^{}]+}}/g;oe.value=[],le.value=[];const Te=Me.match(Ye);Te&&Te.forEach((lt,xe)=>{Te[xe]=lt.replace(/[\n\r{}]+/g,"").trim(),le.value.push(Te[xe].toLocaleLowerCase());const be=V.value.templateOptions.find(De=>{var Fe;return((Fe=De.label)==null?void 0:Fe.toLocaleLowerCase())===Te[xe].toLocaleLowerCase()});be?be.isFound=!0:Te[xe].toLocaleLowerCase()==="clipboard"?oe.value.push("Clipboard"):oe.value.push(Te[xe])}),oe.value=[...new Set(oe.value)],!Te||Te.length===0||oe.value.length>0?Ae.value=!0:Ae.value=!1},[o,V.value.templateOptions]);m.useEffect(()=>{v&&Ee.length>5&&Ke(Ee)},[v,Ee]),m.useEffect(()=>{o&&He.length>5&&Lt(_.value)},[He]),m.useEffect(()=>{(he.value||we.value||Ae.value||Se.value)&&ce.value&&(ae.value=!0)},[he.value,we.value,Se.value,Ae.value,ce.value]),m.useEffect(()=>{F.value.status&&F.value.status>=400&&ce.value&&(ae.value=!0)},[F.value.status,ce.value]);const qt=(Me=!1)=>pe(this,null,function*(){var lt,xe,be,De,Fe,Je;if(up.value){fo.value=!0;return}let Ye=null;ae.value=!1,ce.value=!0,fo.value=!1,he.value=void 0,we.value=void 0,F.value={};const Te=_.value.trim();if(Me)Ye=v?"Error":null;else{if(o)if(Lt(_.value),oe.value.length>0||le.value.length===0){Ae.value=!0;return}else Ae.value=!1;if(i&&((lt=V.value.formOptions)!=null&<.openUrl)&&!((xe=V.value.formOptions)!=null&&xe.isOpenUrlDisabled)){const at=Nn().match((be=V.value.formOptions)==null?void 0:be.openUrl);if(!at||at.length>1){he.value=!0;return}}if(w){const at=Nn().match(Te);if(!at||at.length>1){he.value=!0;return}}if(v)try{Ye=yield kr("path_type_check",{path:Te})}catch(st){Ye="Error",we.value=!0;return}else if(g)try{if(yield kr("run_shell_command",{execCmd:Te}),(De=K.value.outputTemplate)!=null&&De.id&&!((Je=(Fe=K.value.outputTemplate)==null?void 0:Fe.value)!=null&&Je.includes("{{output}}"))){Ae.value=!0;return}}catch(st){U.value=st,Se.value=!0;return}else if(S)try{const st=yield kr("run_web_request",{request:{url:Te,method:K.value.method,headers:K.value.headers,filters:K.value.filters,body:K.value.body,auth:K.value.auth}});if(F.value={},st.status&&st.status>=400){F.value={body:st.body,filteredBody:st.filteredBody,hasFiltersError:st.hasFiltersError,status:st.status,contentType:st.contentType};return}}catch(st){F.value={body:st,status:500,contentType:null};return}else if(b)try{const st=yield kr("run_web_scraping",{request:{url:Te,method:"GET",scrapingRules:K.value.scrapingRules,scrapingOptions:K.value.scrapingOptions}});if(F.value={},st.status&&st.status>=400){F.value={body:st.body,filteredBody:st.scrappedBody,hasFiltersError:st.hasRulesError,status:st.status};return}}catch(st){F.value={body:st,status:500,contentType:null};return}}(i||o)&&(o&&V.value.templateOptions.forEach(st=>{st.defaultValue=st.value}),D=JSON.stringify(V.value),yield je({updatedItem:{formTemplateOptions:D,isForm:!!i,isTemplate:!!o,itemId:e}})),(S||b||g)&&(M=JSON.stringify(K.value),yield je({updatedItem:{requestOptions:M,itemId:e}})),yield je({updatedItem:re(R(R(R(R({value:Te},g?{isCommand:!0}:{}),S?{isWebRequest:!0}:{}),b?{isWebScraping:!0}:{}),Ye&&v?{pathType:Ye}:{}),{itemId:e})}),setTimeout(()=>{ce.value=!1,z()},200)});return m.useEffect(()=>{var Me;P&&((Me=W==null?void 0:W.current)==null||Me.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[P,W==null?void 0:W.current]),s.jsx(Of,{className:gr("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",d&&"bg-red-50 dark:bg-red-900"),children:s.jsxs(Q,{className:"w-full mt-0",ref:W,children:[!H||c&&j?n||$||c||g||w||S||o||b||i||v?v?s.jsxs(ve,{className:"relative text-normal",children:[s.jsx(sr,{defaultValue:_.value,placeholder:I("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(we.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(we.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:s.jsx(Q,{className:"absolute top-3 right-4",children:we.value?s.jsx($e,{text:I("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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):we.value===!1&&s.jsx($e,{text:I("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:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Me=>{_.value=Me.target.value}},ue.value),s.jsx(ZB,{onCallBack:Me=>{ue.value=Date.now(),_.value=Me}})]}):w?s.jsxs(ve,{className:"relative text-normal mt-1 flex-col",children:[s.jsx(sr,{defaultValue:_.value,placeholder:I("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(he.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(he.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:s.jsx(Q,{className:"absolute top-3 right-2",children:he.value?s.jsx($e,{text:I("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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):he.value===!1&&s.jsx($e,{text:I("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:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:Me=>{if(he.value&&(he.value=void 0),Me.target.value.length>5){const Te=Nn().match(Me.target.value);!Te||Te.length>1?he.value=!0:he.value=!1}_.value=Me.target.value}}),se&&s.jsx(Q,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:s.jsx(Dm,{isDisabled:wn((Xt=_.value)==null?void 0:Xt.trim())!==((Ge=q==null?void 0:q.linkUrl)==null?void 0:Ge.trim()),title:q==null?void 0:q.linkTitle,description:q==null?void 0:q.linkDescription,favicon:q==null?void 0:q.linkFavicon,link:q==null?void 0:q.linkUrl,image:q==null?void 0:q.linkImage,domain:q==null?void 0:q.linkDomain})}),c?!ec(_.value)&&!he.value&&s.jsx(Q,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:s.jsx(zi,{src:wn(_.value),hasError:Ze.value,onErrorCallback:()=>{Ze.value=!0},draggable:!1,decoding:"async",className:"".concat(Qe," min-h-10")})}):s.jsxs(ve,{className:"w-full mt-1 justify-start select-none",children:[ec(_.value)||he.value||_.value.length<3?!ec(_.value)&&s.jsx(ke,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:se?s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[s.jsx(Ib,{size:13,className:"mr-1"}),"!",I("Update Link Card",{ns:"dashboard"}),"!"]}):s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline",size:"xs",children:[s.jsx(cv,{size:13,className:"mr-1"}),I("Add Link Card",{ns:"dashboard"})]})}):s.jsx(ke,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:()=>pe(this,null,function*(){yield kr("fetch_link_metadata",{url:wn(_.value),itemId:e}),Y()}),children:se?s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[s.jsx(Ib,{size:13,className:"mr-1"}),I("Update Link Card",{ns:"dashboard"})]}):s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[s.jsx(cv,{size:13,className:"mr-1"}),I("Add Link Card",{ns:"dashboard"})]})}),se&&s.jsx(ke,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:()=>pe(this,null,function*(){yield kr("delete_link_metadata",{itemId:e}),Y()}),children:s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[I("Remove",{ns:"common"}),s.jsx(lv,{size:14,className:"ml-1"})]})})]})]}):n?s.jsx(H4,{value:_.value,height:C?"calc(100vh - 280px)":"200px",isDark:O,options:{mode:$!=null?$:"javascript"},onChange:Me=>{_.value=Me.getValue()}},"code-editor"):c?s.jsxs(Q,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[s.jsx("img",{src:j||Jd,draggable:!1,decoding:"async",height:"auto",className:"".concat(R3.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")}),s.jsx(Q,{className:"absolute",children:j?s.jsx(QB,{id:e}):s.jsx(YB,{id:e})})]}):g?s.jsxs(Q,{className:"mt-0.5",children:[s.jsx(H4,{value:_.value,height:C?"260px":"70px",isDark:O,isCmd:!0,lineWrapping:!0,options:{mode:"shell"},onChange:Me=>{_.value=Me.getValue(),U.value="",Se.value=void 0}},"code-editor"),(zt=K.value.outputRegexFilter)!=null&&zt.id?s.jsxs(Q,{className:"mt-2",children:[s.jsx(ve,{className:"gap-1 w-full justify-start",children:s.jsx(J,{className:"font-semibold",size:"sm",children:I("Regex Match Group Filter",{ns:"dashboard"})})}),s.jsxs(ve,{className:"gap-2 mb-2",children:[s.jsx(sr,{small:!0,defaultValue:(ir=K.value.outputRegexFilter)==null?void 0:ir.value,disabled:((Ft=K.value.outputRegexFilter)==null?void 0:Ft.isEnable)===!1,onChange:Me=>{K.value.outputRegexFilter||(K.value.outputRegexFilter={}),K.value.outputRegexFilter.value=Me.target.value.trim()},className:"".concat(((et=K.value.outputRegexFilter)==null?void 0:et.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:I("Enter regex for output filer",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),s.jsx(ke,{size:"mini",title:I("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 Me;K.value=re(R({},K.value),{outputRegexFilter:re(R({},K.value.outputRegexFilter),{isEnable:!((Me=K.value.outputRegexFilter)!=null&&Me.isEnable)})})},children:(cr=K.value.outputRegexFilter)!=null&&cr.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsx(ke,{size:"mini",title:I("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{K.value=re(R({},K.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:s.jsx(dn,{size:14})})]})]}):s.jsx(ve,{className:"gap-4 w-full justify-start mt-2 mb-1",children:s.jsx(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Me,Ye,Te;K.value.outputRegexFilter||(K.value.outputRegexFilter={}),K.value=re(R({},K.value),{outputRegexFilter:{id:(Me=K.value.outputRegexFilter.id)!=null?Me:Date.now().toString(),value:(Ye=K.value.outputRegexFilter.value)!=null?Ye:"",isEnable:(Te=K.value.outputRegexFilter.isEnable)!=null?Te:!0}})},children:I("Add Regex Match Group Filter",{ns:"dashboard"})})}),(ar=K.value.outputTemplate)!=null&&ar.id?s.jsxs(Q,{className:"mt-2",children:[s.jsx(ve,{className:"gap-1 w-full justify-start",children:s.jsx(J,{className:"font-semibold",size:"sm",children:I("Output Template",{ns:"dashboard"})})}),Ae.value&&s.jsx(J,{className:"!text-yellow-600 text-xs mt-2",children:s.jsx(na,{i18nKey:"Template should have⠀<b>{{output}}</b>⠀placeholder.",ns:"dashboard"})}),s.jsxs(ve,{className:"gap-2 mb-2",children:[s.jsx(sr,{small:!0,defaultValue:(ur=K.value.outputTemplate)==null?void 0:ur.value,disabled:((Sr=K.value.outputTemplate)==null?void 0:Sr.isEnable)===!1,onChange:Me=>{K.value.outputTemplate||(K.value.outputTemplate={}),K.value.outputTemplate.value=Me.target.value.trim()},className:"".concat(((Mt=K.value.outputTemplate)==null?void 0:Mt.isEnable)===!1?"bg-gray-100 opacity-50":""),placeholder:I("Wrap output using {{output}} placeholder",{ns:"dashboard"}),classNameInput:"text-sm border-0 border-b border-gray-200 rounded-none pl-1.5",required:!0}),s.jsx(ke,{size:"mini",title:I("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 Me;K.value=re(R({},K.value),{outputTemplate:re(R({},K.value.outputTemplate),{isEnable:!((Me=K.value.outputTemplate)!=null&&Me.isEnable)})})},children:(Rr=K.value.outputTemplate)!=null&&Rr.isEnable?s.jsx(ja,{size:14}):s.jsx(oa,{size:14})}),s.jsx(ke,{size:"mini",title:I("Remove",{ns:"common"}),variant:"ghost",onClick:()=>{K.value=re(R({},K.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:s.jsx(dn,{size:14})})]})]}):s.jsx(ve,{className:"gap-4 w-full justify-start mt-2 mb-1",children:s.jsx(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",onClick:()=>{var Me,Ye,Te;K.value.outputTemplate||(K.value.outputTemplate={}),K.value=re(R({},K.value),{outputTemplate:{id:(Me=K.value.outputTemplate.id)!=null?Me:Date.now().toString(),value:(Ye=K.value.outputTemplate.value)!=null?Ye:"",isEnable:(Te=K.value.outputTemplate.isEnable)!=null?Te:!0}})},children:I("Add Output Template",{ns:"dashboard"})})}),U.value&&s.jsxs(Q,{className:"".concat(Se.value?"bg-red-50 dark:bg-red-950":"bg-green-50 dark:bg-green-950"," ").concat(C?"py-1":"py-0"," rounded-md px-3 relative"),children:[s.jsx(la,{isDark:O,maxHeight:C?150:100,isLargeView:!1,isShowMore:!0,isWrapped:!0,value:U.value,language:"shell"}),s.jsx(Q,{className:"".concat(Se.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:Se.value?I("Command:::error",{ns:"dashboard"}):I("Command:::output",{ns:"dashboard"})})]})]}):S?s.jsx(obe,{isLargeView:C,clipId:e,clipValue:_,webrequestTestOutputObject:F,webrequestLocalOptions:K,showLinkValidationError:he,isDark:O,requestOptions:M}):b?s.jsx(ibe,{isLargeView:C,clipValue:_,testOutputObject:F,localOptions:K,showLinkValidationError:he,isDark:O,requestOptions:M}):o?s.jsxs(Q,{children:[s.jsx(abe,{clipValue:_,isLargeView:C,checkForTemplateFieldsCallback:()=>{Lt(_.value)},templateMissingFields:oe,templateFoundFields:le,localOptions:V}),X.value&&s.jsxs(Q,{className:"bg-sky-50/70 dark:bg-sky-950/70 relative mt-2 rounded-md text-sm",children:[s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:s.jsxs(Q,{className:"text-sm py-1 px-3 whitespace-pre-wrap pb-8",children:[s.jsx("div",re(R({},G.value==="html"&&{dangerouslySetInnerHTML:{__html:zB.sanitize(X.value)}}),{className:"font-normal"})),G.value==="text"&&X.value]})}),s.jsx(Ur,{size:16,className:"absolute right-2 top-2 cursor-pointer opacity-30 hover:opacity-100",onClick:()=>{X.value=""}}),s.jsx(Q,{className:"bg-slate-300 dark:bg-slate-900 text-xs rounded-sm px-1.5 absolute left-2 bottom-2 select-none",children:I("filled template",{ns:"dashboard"})}),s.jsx(Cl,{className:"flex flex-row absolute bottom-2 right-3 z-10 select-none",value:G.value,onValueChange:Me=>{G.value=Me==="html"?"html":"text"},children:s.jsxs(si,{className:"self-center px-1 py-1 opacity-60 hover:opacity-100 animate-in fade-in bg-slate-200 dark:bg-slate-900",children:[s.jsx(En,{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:I("Text",{ns:"dashboard"})}),s.jsx(En,{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:I("HTML",{ns:"dashboard"})})]})})]})]}):i&&s.jsx(sbe,{isLargeView:C,showLinkValidationError:he,localOptions:V}):s.jsxs(s.Fragment,{children:[s.jsxs(Q,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[s.jsx($e,{isCompact:!0,text:I("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:s.jsx(f$,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("copy")}})}),s.jsx($e,{isCompact:!0,text:I("Toolbar:::Masked Text Formatting",{ns:"common"}),children:s.jsx(Zw,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("mask")}})}),s.jsx($e,{isCompact:!0,text:I("Toolbar:::Blank Text Formatting",{ns:"common"}),children:s.jsx(BB,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("blank")}})}),s.jsx($e,{isCompact:!0,text:I("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:s.jsx(UB,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("hl")}})}),s.jsx($e,{isCompact:!0,text:I("Toolbar:::Header Formatting",{ns:"common"}),children:s.jsx(qae,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("h")}})}),s.jsx($e,{isCompact:!0,text:I("Toolbar:::Bold Formatting",{ns:"common"}),children:s.jsx(Une,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("b")}})}),s.jsx($e,{isCompact:!0,text:I("Toolbar:::Italic Formatting",{ns:"common"}),children:s.jsx(roe,{size:17,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleAddBBcode("i")}})}),s.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:s.jsx($e,{isCompact:!0,text:I("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:s.jsx(C$,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var Me;(Me=Le==null?void 0:Le.current)==null||Me.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),s.jsx(Eo,{ref:Le,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:I("Enter value or drag from history",{ns:"dashboard"}),rows:2,autoFocus:A,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:C?12:6,value:_.value,onKeyDown:Me=>{Me.stopPropagation()},onChange:Me=>{_.value=Me.target.value}})]}):s.jsx(nbe,{isOver:t}),s.jsx(Wr,{style:{minWidth:"100%"},className:"dashboard-tabs",children:s.jsxs(ve,{className:"w-full justify-start items-center select-none",children:[s.jsxs(ve,{className:"items-start mt-2",children:[s.jsx(ebe,{isCode:n,isCommand:g,isWebRequest:S,isWebScraping:b,isLink:w,isPath:v,isText:a,isTemplate:o,isForm:i,isImage:c,itemId:e,detectedLanguage:$,children:s.jsx(Q,{children:s.jsx($e,{text:mt,isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:n?s.jsxs(s.Fragment,{children:[s.jsx(FE,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Code",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):c?s.jsxs(s.Fragment,{children:[s.jsx(Ob,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Image",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):v?s.jsxs(s.Fragment,{children:[s.jsx(UE,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Path",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):S?s.jsxs(s.Fragment,{children:[s.jsx(xB,{width:16,height:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Request",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):b?s.jsxs(s.Fragment,{children:[s.jsx(yB,{width:16,height:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Scraper",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):g?s.jsxs(s.Fragment,{children:[s.jsx(_$,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Command",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):w?s.jsxs(s.Fragment,{children:[s.jsx(g$,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Link",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):i?s.jsxs(s.Fragment,{children:[s.jsx(M$,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::AutoFill",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):o?s.jsxs(s.Fragment,{children:[s.jsx(BE,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Template",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):s.jsxs(s.Fragment,{children:[s.jsx(Lb,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:I("Type:::Text",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]})})})})})}),g?s.jsx($e,{text:I("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>pe(this,null,function*(){var Me,Ye,Te,lt,xe;try{U.value=yield kr("run_shell_command",{execCmd:_.value,outputTemplate:(Me=K.value.outputTemplate)!=null&&Me.id?K.value.outputTemplate:null,outputRegexFilter:(Ye=K.value.outputRegexFilter)!=null&&Ye.id?K.value.outputRegexFilter:null}),Se.value=!1,Ae.value=!!((Te=K.value.outputTemplate)!=null&&Te.id&&!((xe=(lt=K.value.outputTemplate)==null?void 0:lt.value)!=null&&xe.includes("{{output}}")))}catch(be){U.value=be,Se.value=!0}}),children:s.jsx(ve,{className:"font-medium text-sm gap-1",children:s.jsx(E0,{size:16,className:"text-gray-500"})})})})}):S?s.jsx($e,{text:I("Test Request",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>pe(this,null,function*(){F.value={};try{F.value=yield kr("run_web_request",{request:{url:_.value,method:K.value.method,headers:K.value.headers,filters:K.value.filters,body:K.value.body,auth:K.value.auth}})}catch(Me){F.value={body:Me,status:500,contentType:null}}}),children:s.jsx(ve,{className:"font-medium text-sm gap-1",children:s.jsx(E0,{size:16,className:"text-gray-500"})})})})}):i?s.jsx($e,{text:I("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>pe(this,null,function*(){yield kr("run_form_fill",{formOptions:V.value.formOptions,firstDelay:1})}),children:s.jsx(ve,{className:"font-medium text-sm gap-1",children:s.jsx(E0,{size:16,className:"text-gray-500"})})})})}):o?s.jsx($e,{text:I("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>pe(this,null,function*(){try{X.value=yield kr("run_template_fill",{templateValue:_.value,templateOptions:V.value.templateOptions,isPreview:!0})}catch(Me){console.error(Me)}}),children:s.jsx(ve,{className:"font-medium text-sm gap-1",children:s.jsx(E0,{size:16,className:"text-gray-500"})})})})}):b&&s.jsx($e,{text:I("Test Run",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-2 px-1.5 h-8 w-8 text-gray-400 border-0 group",onClick:()=>pe(this,null,function*(){F.value={};try{F.value=yield kr("run_web_scraping",{request:{url:_.value,method:"GET",scrapingRules:K.value.scrapingRules,scrapingOptions:K.value.scrapingOptions}})}catch(Me){F.value={body:Me,status:500,contentType:null}}}),children:s.jsx(ve,{className:"font-medium text-sm gap-1",children:s.jsx(E0,{size:16,className:"text-gray-500"})})})})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx($e,{text:I("Clip Options",{ns:"dashboard"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1 h-8 w-8 text-slate-500 border-0 hover:text-blue-500",children:s.jsx(Tf,{size:16})})})})}),s.jsxs(_r,{className:"",sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{children:I("Clip Options",{ns:"dashboard"})})}),s.jsx(rr,{}),E?s.jsxs(ze,{onClick:()=>{je({updatedItem:{isPinned:!1,itemId:e}})},children:[I("UnPin Clip",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(hf,{size:15})})]}):s.jsxs(ze,{onClick:()=>{je({updatedItem:{isPinned:!0,itemId:e}})},children:[I("Pin",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(dc,{size:15})})]}),N?s.jsxs(ze,{onClick:()=>{je({updatedItem:{isFavorite:!1,itemId:e}})},children:[I("Remove Star",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(aw,{size:15,className:"fill-transparent"})})]}):s.jsxs(ze,{onClick:()=>{je({updatedItem:{isFavorite:!0,itemId:e}})},children:[I("Star",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Mf,{size:15,className:"fill-transparent"})})]}),s.jsx(rr,{}),s.jsxs(ze,{className:f?"font-semibold":"",onClick:Me=>{Me.preventDefault(),je({updatedItem:{isMasked:!f,itemId:e}})},children:[I("Type:::Secret",{ns:"common"}),f&&s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Bt,{size:15,className:"fill-transparent"})})]}),s.jsxs(ze,{className:p?"font-semibold":"",onClick:Me=>{Me.preventDefault(),je({updatedItem:{isVideo:!p,itemId:e}})},children:[I("Type:::Video",{ns:"common"}),p&&s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Bt,{size:15,className:"fill-transparent"})})]}),s.jsxs(ze,{className:h?"font-semibold":"",onClick:Me=>{Me.preventDefault(),je({updatedItem:{hasEmoji:!h,itemId:e}})},children:[I("Type:::Emoji",{ns:"common"}),h&&s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Bt,{size:15,className:"fill-transparent"})})]}),s.jsx(rr,{}),s.jsx(tbe,{clipId:e,onComplete:z})]})]})]}),s.jsxs(ve,{className:"items-end ml-auto mt-1",children:[s.jsx($e,{text:I("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{z()},children:s.jsx(Ur,{size:18})})})}),s.jsxs(ca,{defaultOpen:!1,open:ae.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsxs(ke,{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:()=>{!ee&&(g||S||b||o||i)?Ru.value=!0:qt()},children:[s.jsx(Bt,{size:18,className:"mr-1"}),I("Save",{ns:"common"}),(g||S||b||o||i)&&s.jsx(sc,{})]})})}),s.jsx(Ws,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{ae.value=!1,ce.value=!1},onPointerDownOutside:()=>{ae.value=!1,ce.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:s.jsxs(ve,{className:"flex-col p-1.5 rounded-md",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:he.value?I("Errors:::Please verify your link for any errors, or confirm to save as is.",{ns:"dashboard"}):we.value?I("Errors:::Please verify your path for any errors, or confirm to save as is.",{ns:"dashboard"}):Se.value?I("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?I("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?I("Errors:::Your request has filters error, confirm you want to save as is.",{ns:"dashboard"}):Ae.value?le.value.length===0?I("Errors:::No fields found in the template.",{ns:"dashboard"})+" "+I("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):oe.value.length>0?I("{{count}} fields found in template but missing from fields definition.",{ns:"dashboard",count:oe.value.length})+" "+I("Errors:::Please fix the problem or confirm to save as is.",{ns:"dashboard"}):I("Errors:::Your template has errors, confirm you want to save as is.",{ns:"dashboard"}):I("Please confirm to save as is.",{ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{className:"mb-1",children:[s.jsx(ke,{variant:"outline",size:"sm",className:"text-gray-500 hover:text-gray-600 mr-3 border-transparent hover:border-gray-200",onClick:()=>{ae.value=!1,ce.value=!1},children:I("Cancel",{ns:"common"})}),s.jsx(ke,{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:()=>{qt(!0)},children:I("Save It!",{ns:"common"})})]})]})})]})]})]})})]})})}const xN=["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"],xo={logo:e=>s.jsx("svg",re(R({viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:s.jsx("circle",{cx:"12",cy:"12",r:"10"})})),close:Ur,spinner:boe,chevronLeft:sse,chevronRight:ym,trash:dn,post:Lb,page:sM,media:Ob,settings:Tf,ellipsis:Hi,add:Pn,warning:ti,arrowRight:Ene,help:pse,twitter:vle,check:Bt,check2:rse,copy:$E,pin:dc,pinoff:hf,copyDone:d$,sun:ile,moon:zoe,facebook:qse,linkedin:doe,twitch:gle,youtube:Nle,instagram:toe,slack:Fie,dribbble:Fse,trello:hle,star:Mf,chrome:ise,codePen:jse,codesandbox:Ese,figma:Yse,image:Ob,list:rw,list2:yoe,list3:o$,list4:mne,list5:pne,listmusic:poe,listchecks:VE,listCollapse:foe,listOrdered:moe,listTree:xoe,listToDo:voe,scrollText:_ie,scroll:Tie,audioLines:Tne,audioWaveform:Mne,mic:Ioe,mails:Eoe,atSign:_ne,mail:joe,inbox:Jae,archive:kne,container:Pse,sendHorizontal:Mie,send:Pie,contact:Mse,contact2:Tse,userRound:vse,circleUser:xse,userSquare:ale,squareUser:ole,userRound2:yle,user:ble,baby:Ane,notebook:Yoe,paperclip:sie,bookUser:Vne,nfc:Goe,smartphoneNfc:Bie,smartphone:Uie,graduationCap:zae,apple2:wne,appWindows:bne,aLargeSmall:dne,alertTriangle:ti,alertCircle:u$,alarmClock:hne,alertOctagon:Qoe,voicemail:kle,calendarClock:Kne,calendarDays:Gne,calendarHeart:Yne,angry:vne,annoyed:xne,frown:Tae,meh:Aoe,smile:Wie,eye:bm,fan:Kse,handMetal:Uae,heartHandshake:Kae,heart:Q3,leafyGreen:coe,ribbon:kie,ralad:jie,crown:Ase,camera:Xne,fingerprint:pae,flame:vae,database:Rse,dog:Ise,cat:tse,bird:Hne,rabbit:xie,fish:gae,fishSymbol:mae,carrot:ese,candy:Qne,cherry:nse,dice:Ose,biohazard:Fne,satellite:Nie,satelliteDish:Eie,radioTower:bie,radio:wie,wifi:jle,router:Cie,bitcoin:Bne,dollarSign:$se,circleDollarSign:fse,euro:Vse,drum:Hse,medal:Poe,beer:Lne,beef:Rne,bell:$ne,draftingCompass:zse,trophy:ple,gaugeCircle:hse,gauge:Pae,bike:zne,award:Pne,trafficCone:dle,tramFront:fle,truck:mle,plane:cie,car:Jne,dumbbell:Bse,parkingCircle:mse,parkingSquare:sle,msquare:tle,partyPopper:aie,conciergeBell:_se,aperture:yne,areaChart:Cne,armchair:Sne,arrowUpRightSquare:Yie,asteriskSquare:S$,asterisk:Nne,keySquare:soe,key:aoe,lockKeyhole:koe,lock:Coe,shieldCheck:Aie,shield:Lie,compass:Nse,shieldHalf:Rie,presentation:mie,folder:Vp,folderHeart:Cae,folderTree:_ae,folderDot:bae,folderGit:kae,folderGit2:wae,folderKey:jae,folderLock:Eae,folderKanban:Sae,file:sM,fileCode:Xse,fileText:Lb,fileCode2:FE,fileJson:tae,fileJson2:eae,fileTerminal:uae,fileVideo:fae,fileVideo2:dae,fileVolume:hae,fileHeart:Qse,fileImage:Jse,fileLock2:nae,fileLock:sae,fileSpreadsheet:cae,fileCog:HE,fileMusic:aae,filePieChart:iae,filePen:oae,fileSearch:lae,fileLineChart:rae,fileSymlink:UE,driveDownload:Wae,driveUpload:y$,imageDown:Xae,import:Qae,music:Voe,sheet:Die,pieChart:iie,packageOpen:Joe,package:eie,gamepad2:Mae,joystick:noe,hammer:Bae,lampDesk:ooe,lamp:ioe,bookOpen:Wne,airplay:fne,code2:Cse,code:Sse,codeSquare:Zie,functionSquare:E$,arrowDownCircle:lse,arrowUpCircle:dse,arrowLeftCircle:cse,arrowRightCircle:use,gem:Dae,ghost:Aae,rocket:Zh,skull:zie,sparkles:qie,puzzle:gie,messageWarning:Roe,messageWarning2:Ooe,dessert:Lse,pizza:lie,venetianMask:wle,wand:Cle,toyBrick:ule,mountain:Hoe,milestone:$oe,feather:Gse,flaskRound:xae,goal:$ae,hourglass:Zae,axe:Dne,gitlab:Oae,github2:Lae,sprayCcan:Gie,gift:Rae,swords:lle,fileAudio2:Zse,downloadCloud:wse,uploadCloud:kse,upload:xle,download:m$,globe:Iae,globe2:Use,hash:Vae,highlighter:Gae,infinity:eoe,lifeBuoy:uoe,locateFixed:woe,mapPin:Noe,map:_oe,magnet:Soe,martini:Toe,mountainSnow:Foe,mousePointer:nle,move3d:Boe,network:qoe,newspaper:Koe,notebook2:Zoe,notepadText:Xoe,megaphone:Doe,ganttChartSquare:Qie,personStanding:oie,plug2:die,play:uie,plug:pie,plugZap2:fie,plugZap:hie,radiation:yie,quote:vie,tag:cle,speech:Kie,spade:Vie,shoppingCart:Oie,slidersHorizontal:Hie,kanbanSquare:Jie,creditcard:e=>s.jsxs("svg",re(R({viewBox:"0 0 24 24",fill:"currentColor",width:e.size,height:e.size},e),{children:[s.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"}),s.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=>s.jsx("svg",re(R({viewBox:"0 0 127.14 96.36",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({viewBox:"0 0 438.549 438.549",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({viewBox:"0 0 24 24",width:e.size,height:e.size},e),{children:s.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=>s.jsxs("svg",re(R({viewBox:"0 0 25 25",width:e.size,height:e.size},e),{fill:"none",stroke:"currentColor",children:[s.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"}),s.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=>s.jsx("svg",re(R({viewBox:"0 0 24 24",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({viewBox:"0 0 16 16",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({viewBox:"0 0 24 24",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({viewBox:"0 0 24 24",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({role:"img",viewBox:"0 0 24 24",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({role:"img",viewBox:"0 0 24 24",width:e.size,height:e.size},e),{children:s.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=>s.jsx("svg",re(R({viewBox:"0 0 48 48",width:e.size,height:e.size},e),{children:s.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=>s.jsxs("svg",re(R({viewBox:"10.9 10.9 78.2 78.2"},e),{xmlns:"http://www.w3.org/2000/svg",children:[s.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"}),s.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=>s.jsx("svg",re(R({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e),{children:s.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"})}))},sm=({name:e,size:t,className:r})=>{if(xN.indexOf(e)===-1)return s.jsx(qne,{size:t,className:r});const n=xo[e];return s.jsx(n,{size:t,className:r})},$l=({iconVisibility:e,isBoard:t=!1,className:r,description:n,color:a="text-slate-500 dark:text-slate-400",size:o=16,icon:i,pathType:c,children:d=null})=>e==="none"?null:n&&!d&&!i&&!t?e==="always"?s.jsx($e,{text:n,isCompact:!0,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:s.jsx(b$,{size:o,className:"stroke-[1.8] ".concat(a)})}):null:(e==="always"||!e)&&!t?s.jsx("span",{className:"".concat(a),children:s.jsx($e,{isCompact:!0,text:n||c,isDisabled:!c&&!n,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:i?s.jsx(sm,{size:16,name:i,className:"".concat(a)}):d})}):e==="always"||t?s.jsx("span",{className:"".concat(a),children:s.jsx($e,{isCompact:!0,text:n||c,isDisabled:!c&&!n,side:"right",align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:i?s.jsx(sm,{size:o,name:i,className:"".concat(a," ").concat(r)}):d})}):null;/**
|
||
* @remix-run/router v1.13.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fn.apply(this,arguments)}var qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(qn||(qn={}));const aD="popstate";function cbe(e){e===void 0&&(e={});function t(n,a){let{pathname:o,search:i,hash:c}=n.location;return wv("",{pathname:o,search:i,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:wf(a)}return dbe(t,r,null,e)}function Er(e,t){if(e===!1||e===null||typeof e=="undefined")throw new Error(t)}function bf(e,t){if(!e){typeof console!="undefined"&&console.warn(t);try{throw new Error(t)}catch(r){}}}function ube(){return Math.random().toString(36).substr(2,8)}function oD(e,t){return{usr:e.state,key:e.key,idx:t}}function wv(e,t,r,n){return r===void 0&&(r=null),Fn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?kc(t):t,{state:r,key:t&&t.key||n||ube()})}function wf(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function kc(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function dbe(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,c=qn.Pop,d=null,f=h();f==null&&(f=0,i.replaceState(Fn({},i.state,{idx:f}),""));function h(){return(i.state||{idx:null}).idx}function p(){c=qn.Pop;let w=h(),C=w==null?null:w-f;f=w,d&&d({action:c,location:v.location,delta:C})}function g(w,C){c=qn.Push;let j=wv(v.location,w,C);r&&r(j,w),f=h()+1;let E=oD(j,f),N=v.createHref(j);try{i.pushState(E,"",N)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(N)}o&&d&&d({action:c,location:v.location,delta:1})}function S(w,C){c=qn.Replace;let j=wv(v.location,w,C);r&&r(j,w),f=h();let E=oD(j,f),N=v.createHref(j);i.replaceState(E,"",N),o&&d&&d({action:c,location:v.location,delta:0})}function b(w){let C=a.location.origin!=="null"?a.location.origin:a.location.href,j=typeof w=="string"?w:wf(w);return Er(C,"No window.location.(origin|href) available to create URL for href: "+j),new URL(j,C)}let v={get action(){return c},get location(){return e(a,i)},listen(w){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(aD,p),d=w,()=>{a.removeEventListener(aD,p),d=null}},createHref(w){return t(a,w)},createURL:b,encodeLocation(w){let C=b(w);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:g,replace:S,go(w){return i.go(w)}};return v}var Kn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kn||(Kn={}));const fbe=new Set(["lazy","caseSensitive","path","id","index","children"]);function hbe(e){return e.index===!0}function B4(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,o],c=typeof a.id=="string"?a.id:i.join("-");if(Er(a.index!==!0||!a.children,"Cannot specify children on an index route"),Er(!n[c],'Found a route id collision on id "'+c+"\". Route id's must be globally unique within Data Router usages"),hbe(a)){let d=Fn({},a,t(a),{id:c});return n[c]=d,d}else{let d=Fn({},a,t(a),{id:c,children:void 0});return n[c]=d,a.children&&(d.children=B4(a.children,t,i,n)),d}})}function Jh(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?kc(t):t,a=Uu(n.pathname||"/",r);if(a==null)return null;let o=JB(e);mbe(o);let i=null;for(let c=0;i==null&&c<o.length;++c)i=Sbe(o[c],Ebe(a));return i}function pbe(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function JB(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,c)=>{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};d.relativePath.startsWith("/")&&(Er(d.relativePath.startsWith(n),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(n.length));let f=ac([n,d.relativePath]),h=r.concat(d);o.children&&o.children.length>0&&(Er(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),JB(o.children,t,h,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:kbe(f,o.index),routesMeta:h})};return e.forEach((o,i)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))a(o,i);else for(let d of eU(o.path))a(o,i,d)}),t}function eU(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=eU(n.join("/")),c=[];return c.push(...i.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...i),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function mbe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Cbe(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const gbe=/^:\w+$/,vbe=3,xbe=2,ybe=1,bbe=10,wbe=-2,iD=e=>e==="*";function kbe(e,t){let r=e.split("/"),n=r.length;return r.some(iD)&&(n+=wbe),t&&(n+=xbe),r.filter(a=>!iD(a)).reduce((a,o)=>a+(gbe.test(o)?vbe:o===""?ybe:bbe),n)}function Cbe(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function Sbe(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i<r.length;++i){let c=r[i],d=i===r.length-1,f=a==="/"?t:t.slice(a.length)||"/",h=U4({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},f);if(!h)return null;Object.assign(n,h.params);let p=c.route;o.push({params:n,pathname:ac([a,h.pathname]),pathnameBase:Mbe(ac([a,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(a=ac([a,h.pathnameBase]))}return o}function U4(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=jbe(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((f,h,p)=>{let{paramName:g,isOptional:S}=h;if(g==="*"){let v=c[p]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const b=c[p];return S&&!b?f[g]=void 0:f[g]=Nbe(b||"",g),f},{}),pathname:o,pathnameBase:i,pattern:e}}function jbe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),bf(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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,c,d)=>(n.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Ebe(e){try{return decodeURI(e)}catch(t){return bf(!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 Nbe(e,t){try{return decodeURIComponent(e)}catch(r){return bf(!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 ("+r+").")),e}}function Uu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function _be(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?kc(e):e;return{pathname:r?r.startsWith("/")?r:Tbe(r,t):t,search:Pbe(n),hash:Dbe(a)}}function Tbe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function O5(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function tU(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ek(e){return tU(e).map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)}function tk(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=kc(e):(a=Fn({},e),Er(!a.pathname||!a.pathname.includes("?"),O5("?","pathname","search",a)),Er(!a.pathname||!a.pathname.includes("#"),O5("#","pathname","hash",a)),Er(!a.search||!a.search.includes("#"),O5("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,c;if(i==null)c=r;else if(n){let p=t[t.length-1].replace(/^\//,"").split("/");if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p.pop();a.pathname=g.join("/")}c="/"+p.join("/")}else{let p=t.length-1;if(i.startsWith("..")){let g=i.split("/");for(;g[0]==="..";)g.shift(),p-=1;a.pathname=g.join("/")}c=p>=0?t[p]:"/"}let d=_be(a,c),f=i&&i!=="/"&&i.endsWith("/"),h=(o||i===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||h)&&(d.pathname+="/"),d}const ac=e=>e.join("/").replace(/\/\/+/g,"/"),Mbe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pbe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dbe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class yN{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function rU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const nU=["post","put","patch","delete"],Abe=new Set(nU),Rbe=["get",...nU],Lbe=new Set(Rbe),Obe=new Set([301,302,303,307,308]),Ibe=new Set([307,308]),I5={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$be={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},O0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zbe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),aU="remix-router-transitions";function Fbe(e){const t=e.window?e.window:typeof window!="undefined"?window:void 0,r=typeof t!="undefined"&&typeof t.document!="undefined"&&typeof t.document.createElement!="undefined",n=!r;Er(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let xe=e.detectErrorBoundary;a=be=>({hasErrorBoundary:xe(be)})}else a=zbe;let o={},i=B4(e.routes,a,void 0,o),c,d=e.basename||"/",f=Fn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),h=null,p=new Set,g=null,S=null,b=null,v=e.hydrationData!=null,w=Jh(i,e.history.location,d),C=null;if(w==null){let xe=zo(404,{pathname:e.history.location.pathname}),{matches:be,route:De}=mD(i);w=be,C={[De.id]:xe}}let j=!w.some(xe=>xe.route.lazy)&&(!w.some(xe=>xe.route.loader)||e.hydrationData!=null),E,N={historyAction:e.history.action,location:e.history.location,matches:w,initialized:j,navigation:I5,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||C,fetchers:new Map,blockers:new Map},M=qn.Pop,P=!1,D,A=!1,O=new Map,$=null,H=!1,z=!1,I=[],W=[],_=new Map,K=0,V=-1,U=new Map,X=new Set,G=new Map,F=new Map,q=new Set,Y=new Map,se=new Map,ee=!1;function ae(){if(h=e.history.listen(xe=>{let{action:be,location:De,delta:Fe}=xe;if(ee){ee=!1;return}bf(se.size===0||Fe!=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 Je=Sr({currentLocation:N.location,nextLocation:De,historyAction:be});if(Je&&Fe!=null){ee=!0,e.history.go(Fe*-1),ur(Je,{state:"blocked",location:De,proceed(){ur(Je,{state:"proceeding",proceed:void 0,reset:void 0,location:De}),e.history.go(Fe)},reset(){let st=new Map(N.blockers);st.set(Je,O0),ue({blockers:st})}});return}return Se(be,De)}),r){Xbe(t,O);let xe=()=>Qbe(t,O);t.addEventListener("pagehide",xe),$=()=>t.removeEventListener("pagehide",xe)}return N.initialized||Se(qn.Pop,N.location),E}function oe(){h&&h(),$&&$(),p.clear(),D&&D.abort(),N.fetchers.forEach((xe,be)=>Xt(be)),N.blockers.forEach((xe,be)=>ar(be))}function le(xe){return p.add(xe),()=>p.delete(xe)}function ue(xe,be){be===void 0&&(be={}),N=Fn({},N,xe);let De=[],Fe=[];f.v7_fetcherPersist&&N.fetchers.forEach((Je,st)=>{Je.state==="idle"&&(q.has(st)?Fe.push(st):De.push(st))}),[...p].forEach(Je=>Je(N,{deletedFetchers:Fe,unstable_viewTransitionOpts:be.viewTransitionOpts,unstable_flushSync:be.flushSync===!0})),f.v7_fetcherPersist&&(De.forEach(Je=>N.fetchers.delete(Je)),Fe.forEach(Je=>Xt(Je)))}function ce(xe,be,De){var Fe,Je;let{flushSync:st}=De===void 0?{}:De,at=N.actionData!=null&&N.navigation.formMethod!=null&&wi(N.navigation.formMethod)&&N.navigation.state==="loading"&&((Fe=xe.state)==null?void 0:Fe._isRedirect)!==!0,wt;be.actionData?Object.keys(be.actionData).length>0?wt=be.actionData:wt=null:at?wt=N.actionData:wt=null;let ct=be.loaderData?pD(N.loaderData,be.loaderData,be.matches||[],be.errors):N.loaderData,Nt=N.blockers;Nt.size>0&&(Nt=new Map(Nt),Nt.forEach((dr,Yt)=>Nt.set(Yt,O0)));let Gt=P===!0||N.navigation.formMethod!=null&&wi(N.navigation.formMethod)&&((Je=xe.state)==null?void 0:Je._isRedirect)!==!0;c&&(i=c,c=void 0),H||M===qn.Pop||(M===qn.Push?e.history.push(xe,xe.state):M===qn.Replace&&e.history.replace(xe,xe.state));let kt;if(M===qn.Pop){let dr=O.get(N.location.pathname);dr&&dr.has(xe.pathname)?kt={currentLocation:N.location,nextLocation:xe}:O.has(xe.pathname)&&(kt={currentLocation:xe,nextLocation:N.location})}else if(A){let dr=O.get(N.location.pathname);dr?dr.add(xe.pathname):(dr=new Set([xe.pathname]),O.set(N.location.pathname,dr)),kt={currentLocation:N.location,nextLocation:xe}}ue(Fn({},be,{actionData:wt,loaderData:ct,historyAction:M,location:xe,initialized:!0,navigation:I5,revalidation:"idle",restoreScrollPosition:Te(xe,be.matches||N.matches),preventScrollReset:Gt,blockers:Nt}),{viewTransitionOpts:kt,flushSync:st===!0}),M=qn.Pop,P=!1,A=!1,H=!1,z=!1,I=[],W=[]}function he(xe,be){return pe(this,null,function*(){if(typeof xe=="number"){e.history.go(xe);return}let De=W4(N.location,N.matches,d,f.v7_prependBasename,xe,be==null?void 0:be.fromRouteId,be==null?void 0:be.relative),{path:Fe,submission:Je,error:st}=lD(f.v7_normalizeFormMethod,!1,De,be),at=N.location,wt=wv(N.location,Fe,be&&be.state);wt=Fn({},wt,e.history.encodeLocation(wt));let ct=be&&be.replace!=null?be.replace:void 0,Nt=qn.Push;ct===!0?Nt=qn.Replace:ct===!1||Je!=null&&wi(Je.formMethod)&&Je.formAction===N.location.pathname+N.location.search&&(Nt=qn.Replace);let Gt=be&&"preventScrollReset"in be?be.preventScrollReset===!0:void 0,kt=(be&&be.unstable_flushSync)===!0,dr=Sr({currentLocation:at,nextLocation:wt,historyAction:Nt});if(dr){ur(dr,{state:"blocked",location:wt,proceed(){ur(dr,{state:"proceeding",proceed:void 0,reset:void 0,location:wt}),he(xe,be)},reset(){let Yt=new Map(N.blockers);Yt.set(dr,O0),ue({blockers:Yt})}});return}return yield Se(Nt,wt,{submission:Je,pendingError:st,preventScrollReset:Gt,replace:be&&be.replace,enableViewTransition:be&&be.unstable_viewTransition,flushSync:kt})})}function we(){if(mt(),ue({revalidation:"loading"}),N.navigation.state!=="submitting"){if(N.navigation.state==="idle"){Se(N.historyAction,N.location,{startUninterruptedRevalidation:!0});return}Se(M||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation})}}function Se(xe,be,De){return pe(this,null,function*(){D&&D.abort(),D=null,M=xe,H=(De&&De.startUninterruptedRevalidation)===!0,Ye(N.location,N.matches),P=(De&&De.preventScrollReset)===!0,A=(De&&De.enableViewTransition)===!0;let Fe=c||i,Je=De&&De.overrideNavigation,st=Jh(Fe,be,d),at=(De&&De.flushSync)===!0;if(!st){let Yt=zo(404,{pathname:be.pathname}),{matches:Ht,route:lr}=mD(Fe);Mt(),ce(be,{matches:Ht,loaderData:{},errors:{[lr.id]:Yt}},{flushSync:at});return}if(N.initialized&&!z&&Vbe(N.location,be)&&!(De&&De.submission&&wi(De.submission.formMethod))){ce(be,{matches:st},{flushSync:at});return}D=new AbortController;let wt=$0(e.history,be,D.signal,De&&De.submission),ct,Nt;if(De&&De.pendingError)Nt={[Pg(st).route.id]:De.pendingError};else if(De&&De.submission&&wi(De.submission.formMethod)){let Yt=yield Ae(wt,be,De.submission,st,{replace:De.replace,flushSync:at});if(Yt.shortCircuited)return;ct=Yt.pendingActionData,Nt=Yt.pendingActionError,Je=$5(be,De.submission),at=!1,wt=new Request(wt.url,{signal:wt.signal})}let{shortCircuited:Gt,loaderData:kt,errors:dr}=yield je(wt,be,st,Je,De&&De.submission,De&&De.fetcherSubmission,De&&De.replace,at,ct,Nt);Gt||(D=null,ce(be,Fn({matches:st},ct?{actionData:ct}:{},{loaderData:kt,errors:dr})))})}function Ae(xe,be,De,Fe,Je){return pe(this,null,function*(){Je===void 0&&(Je={}),mt();let st=Ybe(be,De);ue({navigation:st},{flushSync:Je.flushSync===!0});let at,wt=q4(Fe,be);if(!wt.route.action&&!wt.route.lazy)at={type:Kn.error,error:zo(405,{method:xe.method,pathname:be.pathname,routeId:wt.route.id})};else if(at=yield I0("action",xe,wt,Fe,o,a,d),xe.signal.aborted)return{shortCircuited:!0};if(vp(at)){let ct;return Je&&Je.replace!=null?ct=Je.replace:ct=at.location===N.location.pathname+N.location.search,yield Qe(N,at,{submission:De,replace:ct}),{shortCircuited:!0}}if(Dg(at)){let ct=Pg(Fe,wt.route.id);return(Je&&Je.replace)!==!0&&(M=qn.Push),{pendingActionData:{},pendingActionError:{[ct.route.id]:at.error}}}if(Dd(at))throw zo(400,{type:"defer-action"});return{pendingActionData:{[wt.route.id]:at.data}}})}function je(xe,be,De,Fe,Je,st,at,wt,ct,Nt){return pe(this,null,function*(){let Gt=Fe||$5(be,Je),kt=Je||st||xD(Gt),dr=c||i,[Yt,Ht]=cD(e.history,N,De,kt,be,z,I,W,q,G,X,dr,d,ct,Nt);if(Mt(qe=>!(De&&De.some(ut=>ut.route.id===qe))||Yt&&Yt.some(ut=>ut.route.id===qe)),V=++K,Yt.length===0&&Ht.length===0){let qe=Ft();return ce(be,Fn({matches:De,loaderData:{},errors:Nt||null},ct?{actionData:ct}:{},qe?{fetchers:new Map(N.fetchers)}:{}),{flushSync:wt}),{shortCircuited:!0}}if(!H){Ht.forEach(ut=>{let Pt=N.fetchers.get(ut.key),or=z0(void 0,Pt?Pt.data:void 0);N.fetchers.set(ut.key,or)});let qe=ct||N.actionData;ue(Fn({navigation:Gt},qe?Object.keys(qe).length===0?{actionData:null}:{actionData:qe}:{},Ht.length>0?{fetchers:new Map(N.fetchers)}:{}),{flushSync:wt})}Ht.forEach(qe=>{_.has(qe.key)&&zt(qe.key),qe.controller&&_.set(qe.key,qe.controller)});let lr=()=>Ht.forEach(qe=>zt(qe.key));D&&D.signal.addEventListener("abort",lr);let{results:It,loaderResults:Mr,fetcherResults:Jt}=yield Ze(N.matches,De,Yt,Ht,xe);if(xe.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",lr),Ht.forEach(qe=>_.delete(qe.key));let yt=gD(It);if(yt){if(yt.idx>=Yt.length){let qe=Ht[yt.idx-Yt.length].key;X.add(qe)}return yield Qe(N,yt.result,{replace:at}),{shortCircuited:!0}}let{loaderData:er,errors:Ot}=hD(N,De,Yt,Mr,Nt,Ht,Jt,Y);Y.forEach((qe,ut)=>{qe.subscribe(Pt=>{(Pt||qe.done)&&Y.delete(ut)})});let nt=Ft(),ye=et(V),Ie=nt||ye||Ht.length>0;return Fn({loaderData:er,errors:Ot},Ie?{fetchers:new Map(N.fetchers)}:{})})}function Le(xe,be,De,Fe){if(n)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(xe)&&zt(xe);let Je=(Fe&&Fe.unstable_flushSync)===!0,st=c||i,at=W4(N.location,N.matches,d,f.v7_prependBasename,De,be,Fe==null?void 0:Fe.relative),wt=Jh(st,at,d);if(!wt){Lt(xe,be,zo(404,{pathname:at}),{flushSync:Je});return}let{path:ct,submission:Nt,error:Gt}=lD(f.v7_normalizeFormMethod,!0,at,Fe);if(Gt){Lt(xe,be,Gt,{flushSync:Je});return}let kt=q4(wt,ct);if(P=(Fe&&Fe.preventScrollReset)===!0,Nt&&wi(Nt.formMethod)){Ee(xe,be,ct,kt,wt,Je,Nt);return}G.set(xe,{routeId:be,path:ct}),He(xe,be,ct,kt,wt,Je,Nt)}function Ee(xe,be,De,Fe,Je,st,at){return pe(this,null,function*(){if(mt(),G.delete(xe),!Fe.route.action&&!Fe.route.lazy){let Pt=zo(405,{method:at.formMethod,pathname:De,routeId:be});Lt(xe,be,Pt,{flushSync:st});return}let wt=N.fetchers.get(xe);Ke(xe,Zbe(at,wt),{flushSync:st});let ct=new AbortController,Nt=$0(e.history,De,ct.signal,at);_.set(xe,ct);let Gt=K,kt=yield I0("action",Nt,Fe,Je,o,a,d);if(Nt.signal.aborted){_.get(xe)===ct&&_.delete(xe);return}if(q.has(xe)){Ke(xe,qc(void 0));return}if(vp(kt))if(_.delete(xe),V>Gt){Ke(xe,qc(void 0));return}else return X.add(xe),Ke(xe,z0(at)),Qe(N,kt,{fetcherSubmission:at});if(Dg(kt)){Lt(xe,be,kt.error);return}if(Dd(kt))throw zo(400,{type:"defer-action"});let dr=N.navigation.location||N.location,Yt=$0(e.history,dr,ct.signal),Ht=c||i,lr=N.navigation.state!=="idle"?Jh(Ht,N.navigation.location,d):N.matches;Er(lr,"Didn't find any matches after fetcher action");let It=++K;U.set(xe,It);let Mr=z0(at,kt.data);N.fetchers.set(xe,Mr);let[Jt,yt]=cD(e.history,N,lr,at,dr,z,I,W,q,G,X,Ht,d,{[Fe.route.id]:kt.data},void 0);yt.filter(Pt=>Pt.key!==xe).forEach(Pt=>{let or=Pt.key,Fr=N.fetchers.get(or),Xr=z0(void 0,Fr?Fr.data:void 0);N.fetchers.set(or,Xr),_.has(or)&&zt(or),Pt.controller&&_.set(or,Pt.controller)}),ue({fetchers:new Map(N.fetchers)});let er=()=>yt.forEach(Pt=>zt(Pt.key));ct.signal.addEventListener("abort",er);let{results:Ot,loaderResults:nt,fetcherResults:ye}=yield Ze(N.matches,lr,Jt,yt,Yt);if(ct.signal.aborted)return;ct.signal.removeEventListener("abort",er),U.delete(xe),_.delete(xe),yt.forEach(Pt=>_.delete(Pt.key));let Ie=gD(Ot);if(Ie){if(Ie.idx>=Jt.length){let Pt=yt[Ie.idx-Jt.length].key;X.add(Pt)}return Qe(N,Ie.result)}let{loaderData:qe,errors:ut}=hD(N,N.matches,Jt,nt,void 0,yt,ye,Y);if(N.fetchers.has(xe)){let Pt=qc(kt.data);N.fetchers.set(xe,Pt)}et(It),N.navigation.state==="loading"&&It>V?(Er(M,"Expected pending action"),D&&D.abort(),ce(N.navigation.location,{matches:lr,loaderData:qe,errors:ut,fetchers:new Map(N.fetchers)})):(ue({errors:ut,loaderData:pD(N.loaderData,qe,lr,ut),fetchers:new Map(N.fetchers)}),z=!1)})}function He(xe,be,De,Fe,Je,st,at){return pe(this,null,function*(){let wt=N.fetchers.get(xe);Ke(xe,z0(at,wt?wt.data:void 0),{flushSync:st});let ct=new AbortController,Nt=$0(e.history,De,ct.signal);_.set(xe,ct);let Gt=K,kt=yield I0("loader",Nt,Fe,Je,o,a,d);if(Dd(kt)&&(kt=(yield lU(kt,Nt.signal,!0))||kt),_.get(xe)===ct&&_.delete(xe),!Nt.signal.aborted){if(q.has(xe)){Ke(xe,qc(void 0));return}if(vp(kt))if(V>Gt){Ke(xe,qc(void 0));return}else{X.add(xe),yield Qe(N,kt);return}if(Dg(kt)){Lt(xe,be,kt.error);return}Er(!Dd(kt),"Unhandled fetcher deferred data"),Ke(xe,qc(kt.data))}})}function Qe(xe,be,De){return pe(this,null,function*(){let{submission:Fe,fetcherSubmission:Je,replace:st}=De===void 0?{}:De;be.revalidate&&(z=!0);let at=wv(xe.location,be.location,{_isRedirect:!0});if(Er(at,"Expected a location on the redirect navigation"),r){let dr=!1;if(be.reloadDocument)dr=!0;else if(sU.test(be.location)){const Yt=e.history.createURL(be.location);dr=Yt.origin!==t.location.origin||Uu(Yt.pathname,d)==null}if(dr){st?t.location.replace(be.location):t.location.assign(be.location);return}}D=null;let wt=st===!0?qn.Replace:qn.Push,{formMethod:ct,formAction:Nt,formEncType:Gt}=xe.navigation;!Fe&&!Je&&ct&&Nt&&Gt&&(Fe=xD(xe.navigation));let kt=Fe||Je;if(Ibe.has(be.status)&&kt&&wi(kt.formMethod))yield Se(wt,at,{submission:Fn({},kt,{formAction:be.location}),preventScrollReset:P});else{let dr=$5(at,Fe);yield Se(wt,at,{overrideNavigation:dr,fetcherSubmission:Je,preventScrollReset:P})}})}function Ze(xe,be,De,Fe,Je){return pe(this,null,function*(){let st=yield Promise.all([...De.map(ct=>I0("loader",Je,ct,be,o,a,d)),...Fe.map(ct=>ct.matches&&ct.match&&ct.controller?I0("loader",$0(e.history,ct.path,ct.controller.signal),ct.match,ct.matches,o,a,d):{type:Kn.error,error:zo(404,{pathname:ct.path})})]),at=st.slice(0,De.length),wt=st.slice(De.length);return yield Promise.all([vD(xe,De,at,at.map(()=>Je.signal),!1,N.loaderData),vD(xe,Fe.map(ct=>ct.match),wt,Fe.map(ct=>ct.controller?ct.controller.signal:null),!0)]),{results:st,loaderResults:at,fetcherResults:wt}})}function mt(){z=!0,I.push(...Mt()),G.forEach((xe,be)=>{_.has(be)&&(W.push(be),zt(be))})}function Ke(xe,be,De){De===void 0&&(De={}),N.fetchers.set(xe,be),ue({fetchers:new Map(N.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function Lt(xe,be,De,Fe){Fe===void 0&&(Fe={});let Je=Pg(N.matches,be);Xt(xe),ue({errors:{[Je.route.id]:De},fetchers:new Map(N.fetchers)},{flushSync:(Fe&&Fe.flushSync)===!0})}function qt(xe){return f.v7_fetcherPersist&&(F.set(xe,(F.get(xe)||0)+1),q.has(xe)&&q.delete(xe)),N.fetchers.get(xe)||$be}function Xt(xe){let be=N.fetchers.get(xe);_.has(xe)&&!(be&&be.state==="loading"&&U.has(xe))&&zt(xe),G.delete(xe),U.delete(xe),X.delete(xe),q.delete(xe),N.fetchers.delete(xe)}function Ge(xe){if(f.v7_fetcherPersist){let be=(F.get(xe)||0)-1;be<=0?(F.delete(xe),q.add(xe)):F.set(xe,be)}else Xt(xe);ue({fetchers:new Map(N.fetchers)})}function zt(xe){let be=_.get(xe);Er(be,"Expected fetch controller: "+xe),be.abort(),_.delete(xe)}function ir(xe){for(let be of xe){let De=qt(be),Fe=qc(De.data);N.fetchers.set(be,Fe)}}function Ft(){let xe=[],be=!1;for(let De of X){let Fe=N.fetchers.get(De);Er(Fe,"Expected fetcher: "+De),Fe.state==="loading"&&(X.delete(De),xe.push(De),be=!0)}return ir(xe),be}function et(xe){let be=[];for(let[De,Fe]of U)if(Fe<xe){let Je=N.fetchers.get(De);Er(Je,"Expected fetcher: "+De),Je.state==="loading"&&(zt(De),U.delete(De),be.push(De))}return ir(be),be.length>0}function cr(xe,be){let De=N.blockers.get(xe)||O0;return se.get(xe)!==be&&se.set(xe,be),De}function ar(xe){N.blockers.delete(xe),se.delete(xe)}function ur(xe,be){let De=N.blockers.get(xe)||O0;Er(De.state==="unblocked"&&be.state==="blocked"||De.state==="blocked"&&be.state==="blocked"||De.state==="blocked"&&be.state==="proceeding"||De.state==="blocked"&&be.state==="unblocked"||De.state==="proceeding"&&be.state==="unblocked","Invalid blocker state transition: "+De.state+" -> "+be.state);let Fe=new Map(N.blockers);Fe.set(xe,be),ue({blockers:Fe})}function Sr(xe){let{currentLocation:be,nextLocation:De,historyAction:Fe}=xe;if(se.size===0)return;se.size>1&&bf(!1,"A router only supports one blocker at a time");let Je=Array.from(se.entries()),[st,at]=Je[Je.length-1],wt=N.blockers.get(st);if(!(wt&&wt.state==="proceeding")&&at({currentLocation:be,nextLocation:De,historyAction:Fe}))return st}function Mt(xe){let be=[];return Y.forEach((De,Fe)=>{(!xe||xe(Fe))&&(De.cancel(),be.push(Fe),Y.delete(Fe))}),be}function Rr(xe,be,De){if(g=xe,b=be,S=De||null,!v&&N.navigation===I5){v=!0;let Fe=Te(N.location,N.matches);Fe!=null&&ue({restoreScrollPosition:Fe})}return()=>{g=null,b=null,S=null}}function Me(xe,be){return S&&S(xe,be.map(Fe=>pbe(Fe,N.loaderData)))||xe.key}function Ye(xe,be){if(g&&b){let De=Me(xe,be);g[De]=b()}}function Te(xe,be){if(g){let De=Me(xe,be),Fe=g[De];if(typeof Fe=="number")return Fe}return null}function lt(xe){o={},c=B4(xe,a,void 0,o)}return E={get basename(){return d},get state(){return N},get routes(){return i},get window(){return t},initialize:ae,subscribe:le,enableScrollRestoration:Rr,navigate:he,fetch:Le,revalidate:we,createHref:xe=>e.history.createHref(xe),encodeLocation:xe=>e.history.encodeLocation(xe),getFetcher:qt,deleteFetcher:Ge,dispose:oe,getBlocker:cr,deleteBlocker:ar,_internalFetchControllers:_,_internalActiveDeferreds:Y,_internalSetRoutes:lt},E}function Hbe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function W4(e,t,r,n,a,o,i){let c,d;if(o){c=[];for(let h of t)if(c.push(h),h.route.id===o){d=h;break}}else c=t,d=t[t.length-1];let f=tk(a||".",ek(c),Uu(e.pathname,r)||e.pathname,i==="path");return a==null&&(f.search=e.search,f.hash=e.hash),(a==null||a===""||a===".")&&d&&d.route.index&&!bN(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:ac([r,f.pathname])),wf(f)}function lD(e,t,r,n){if(!n||!Hbe(n))return{path:r};if(n.formMethod&&!Gbe(n.formMethod))return{path:r,error:zo(405,{method:n.formMethod})};let a=()=>({path:r,error:zo(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),c=iU(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!wi(i))return a();let g=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((S,b)=>{let[v,w]=b;return""+S+v+"="+w+"\n"},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:g}}}else if(n.formEncType==="application/json"){if(!wi(i))return a();try{let g=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:g,text:void 0}}}catch(g){return a()}}}Er(typeof FormData=="function","FormData is not available in this environment");let d,f;if(n.formData)d=V4(n.formData),f=n.formData;else if(n.body instanceof FormData)d=V4(n.body),f=n.body;else if(n.body instanceof URLSearchParams)d=n.body,f=fD(d);else if(n.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(n.body),f=fD(d)}catch(g){return a()}let h={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(wi(h.formMethod))return{path:r,submission:h};let p=kc(r);return t&&p.search&&bN(p.search)&&d.append("index",""),p.search="?"+d,{path:wf(p),submission:h}}function Bbe(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function cD(e,t,r,n,a,o,i,c,d,f,h,p,g,S,b){let v=b?Object.values(b)[0]:S?Object.values(S)[0]:void 0,w=e.createURL(t.location),C=e.createURL(a),j=b?Object.keys(b)[0]:void 0,N=Bbe(r,j).filter((P,D)=>{if(P.route.lazy)return!0;if(P.route.loader==null)return!1;if(Ube(t.loaderData,t.matches[D],P)||i.some($=>$===P.route.id))return!0;let A=t.matches[D],O=P;return uD(P,Fn({currentUrl:w,currentParams:A.params,nextUrl:C,nextParams:O.params},n,{actionResult:v,defaultShouldRevalidate:o||w.pathname+w.search===C.pathname+C.search||w.search!==C.search||oU(A,O)}))}),M=[];return f.forEach((P,D)=>{if(!r.some(z=>z.route.id===P.routeId)||d.has(D))return;let A=Jh(p,P.path,g);if(!A){M.push({key:D,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(D),$=q4(A,P.path),H=!1;h.has(D)?H=!1:c.includes(D)?H=!0:O&&O.state!=="idle"&&O.data===void 0?H=o:H=uD($,Fn({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:r[r.length-1].params},n,{actionResult:v,defaultShouldRevalidate:o})),H&&M.push({key:D,routeId:P.routeId,path:P.path,matches:A,match:$,controller:new AbortController})}),[N,M]}function Ube(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function oU(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function uD(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function dD(e,t,r){return pe(this,null,function*(){if(!e.lazy)return;let n=yield e.lazy();if(!e.lazy)return;let a=r[e.id];Er(a,"No route found in manifest");let o={};for(let i in n){let d=a[i]!==void 0&&i!=="hasErrorBoundary";bf(!d,'Route "'+a.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.')),!d&&!fbe.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Fn({},t(a),{lazy:void 0}))})}function I0(e,t,r,n,a,o,i,c){return pe(this,null,function*(){c===void 0&&(c={});let d,f,h,p=b=>{let v,w=new Promise((C,j)=>v=j);return h=()=>v(),t.signal.addEventListener("abort",h),Promise.race([b({request:t,params:r.params,context:c.requestContext}),w])};try{let b=r.route[e];if(r.route.lazy)if(b){let v,w=yield Promise.all([p(b).catch(C=>{v=C}),dD(r.route,o,a)]);if(v)throw v;f=w[0]}else if(yield dD(r.route,o,a),b=r.route[e],b)f=yield p(b);else if(e==="action"){let v=new URL(t.url),w=v.pathname+v.search;throw zo(405,{method:t.method,pathname:w,routeId:r.route.id})}else return{type:Kn.data,data:void 0};else if(b)f=yield p(b);else{let v=new URL(t.url),w=v.pathname+v.search;throw zo(404,{pathname:w})}Er(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(b){d=Kn.error,f=b}finally{h&&t.signal.removeEventListener("abort",h)}if(Kbe(f)){let b=f.status;if(Obe.has(b)){let C=f.headers.get("Location");if(Er(C,"Redirects returned/thrown from loaders/actions must have a Location header"),!sU.test(C))C=W4(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,C);else if(!c.isStaticRequest){let j=new URL(t.url),E=C.startsWith("//")?new URL(j.protocol+C):new URL(C),N=Uu(E.pathname,i)!=null;E.origin===j.origin&&N&&(C=E.pathname+E.search+E.hash)}if(c.isStaticRequest)throw f.headers.set("Location",C),f;return{type:Kn.redirect,status:b,location:C,revalidate:f.headers.get("X-Remix-Revalidate")!==null,reloadDocument:f.headers.get("X-Remix-Reload-Document")!==null}}if(c.isRouteRequest)throw{type:d===Kn.error?Kn.error:Kn.data,response:f};let v,w=f.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?v=yield f.json():v=yield f.text(),d===Kn.error?{type:d,error:new yN(b,f.statusText,v),headers:f.headers}:{type:Kn.data,data:v,statusCode:f.status,headers:f.headers}}if(d===Kn.error)return{type:d,error:f};if(qbe(f)){var g,S;return{type:Kn.deferred,deferredData:f,statusCode:(g=f.init)==null?void 0:g.status,headers:((S=f.init)==null?void 0:S.headers)&&new Headers(f.init.headers)}}return{type:Kn.data,data:f}})}function $0(e,t,r,n){let a=e.createURL(iU(t)).toString(),o={signal:r};if(n&&wi(n.formMethod)){let{formMethod:i,formEncType:c}=n;o.method=i.toUpperCase(),c==="application/json"?(o.headers=new Headers({"Content-Type":c}),o.body=JSON.stringify(n.json)):c==="text/plain"?o.body=n.text:c==="application/x-www-form-urlencoded"&&n.formData?o.body=V4(n.formData):o.body=n.formData}return new Request(a,o)}function V4(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function fD(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Wbe(e,t,r,n,a){let o={},i=null,c,d=!1,f={};return r.forEach((h,p)=>{let g=t[p].route.id;if(Er(!vp(h),"Cannot handle redirect results in processLoaderData"),Dg(h)){let S=Pg(e,g),b=h.error;n&&(b=Object.values(n)[0],n=void 0),i=i||{},i[S.route.id]==null&&(i[S.route.id]=b),o[g]=void 0,d||(d=!0,c=rU(h.error)?h.error.status:500),h.headers&&(f[g]=h.headers)}else Dd(h)?(a.set(g,h.deferredData),o[g]=h.deferredData.data):o[g]=h.data,h.statusCode!=null&&h.statusCode!==200&&!d&&(c=h.statusCode),h.headers&&(f[g]=h.headers)}),n&&(i=n,o[Object.keys(n)[0]]=void 0),{loaderData:o,errors:i,statusCode:c||200,loaderHeaders:f}}function hD(e,t,r,n,a,o,i,c){let{loaderData:d,errors:f}=Wbe(t,r,n,a,c);for(let h=0;h<o.length;h++){let{key:p,match:g,controller:S}=o[h];Er(i!==void 0&&i[h]!==void 0,"Did not find corresponding fetcher result");let b=i[h];if(!(S&&S.signal.aborted))if(Dg(b)){let v=Pg(e.matches,g==null?void 0:g.route.id);f&&f[v.route.id]||(f=Fn({},f,{[v.route.id]:b.error})),e.fetchers.delete(p)}else if(vp(b))Er(!1,"Unhandled fetcher revalidation redirect");else if(Dd(b))Er(!1,"Unhandled fetcher deferred data");else{let v=qc(b.data);e.fetchers.set(p,v)}}return{loaderData:d,errors:f}}function pD(e,t,r,n){let a=Fn({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function Pg(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 mD(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function zo(e,t){let{pathname:r,routeId:n,method:a,type:o}=t===void 0?{}:t,i="Unknown Server Error",c="Unknown @remix-run/router error";return e===400?(i="Bad Request",a&&r&&n?c="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"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 "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",c='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",a&&r&&n?c="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(c='Invalid request method "'+a.toUpperCase()+'"')),new yN(e||500,i,new Error(c),!0)}function gD(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(vp(r))return{result:r,idx:t}}}function iU(e){let t=typeof e=="string"?kc(e):e;return wf(Fn({},t,{hash:""}))}function Vbe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Dd(e){return e.type===Kn.deferred}function Dg(e){return e.type===Kn.error}function vp(e){return(e&&e.type)===Kn.redirect}function qbe(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 Kbe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body!="undefined"}function Gbe(e){return Lbe.has(e.toLowerCase())}function wi(e){return Abe.has(e.toLowerCase())}function vD(e,t,r,n,a,o){return pe(this,null,function*(){for(let i=0;i<r.length;i++){let c=r[i],d=t[i];if(!d)continue;let f=e.find(p=>p.route.id===d.route.id),h=f!=null&&!oU(f,d)&&(o&&o[d.route.id])!==void 0;if(Dd(c)&&(a||h)){let p=n[i];Er(p,"Expected an AbortSignal for revalidating fetcher deferred result"),yield lU(c,p,a).then(g=>{g&&(r[i]=g||r[i])})}}})}function lU(e,t,r){return pe(this,null,function*(){if(r===void 0&&(r=!1),!(yield e.deferredData.resolveData(t))){if(r)try{return{type:Kn.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Kn.error,error:a}}return{type:Kn.data,data:e.deferredData.data}}})}function bN(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function q4(e,t){let r=typeof t=="string"?kc(t).search:t.search;if(e[e.length-1].route.index&&bN(r||""))return e[e.length-1];let n=tU(e);return n[n.length-1]}function xD(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function $5(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 Ybe(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 z0(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 Zbe(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 qc(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 Xbe(e,t){try{let r=e.sessionStorage.getItem(aU);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch(r){}}function Qbe(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(aU,JSON.stringify(r))}catch(n){bf(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
|
||
* React Router v6.20.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function d2(){return d2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d2.apply(this,arguments)}const x1=m.createContext(null),wN=m.createContext(null),If=m.createContext(null),rk=m.createContext(null),Cc=m.createContext({outlet:null,matches:[],isDataRoute:!1}),cU=m.createContext(null);function Jbe(e,t){let{relative:r}=t===void 0?{}:t;Rm()||Er(!1);let{basename:n,navigator:a}=m.useContext(If),{hash:o,pathname:i,search:c}=nk(e,{relative:r}),d=i;return n!=="/"&&(d=i==="/"?n:ac([n,i])),a.createHref({pathname:d,search:c,hash:o})}function Rm(){return m.useContext(rk)!=null}function Ju(){return Rm()||Er(!1),m.useContext(rk).location}function uU(e){m.useContext(If).static||m.useLayoutEffect(e)}function ha(){let{isDataRoute:e}=m.useContext(Cc);return e?h2e():e2e()}function e2e(){Rm()||Er(!1);let e=m.useContext(x1),{basename:t,navigator:r}=m.useContext(If),{matches:n}=m.useContext(Cc),{pathname:a}=Ju(),o=JSON.stringify(ek(n)),i=m.useRef(!1);return uU(()=>{i.current=!0}),m.useCallback(function(d,f){if(f===void 0&&(f={}),!i.current)return;if(typeof d=="number"){r.go(d);return}let h=tk(d,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ac([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,o,a,e])}const t2e=m.createContext(null);function r2e(e){let t=m.useContext(Cc).outlet;return t&&m.createElement(t2e.Provider,{value:e},t)}function nk(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=m.useContext(Cc),{pathname:a}=Ju(),o=JSON.stringify(ek(n));return m.useMemo(()=>tk(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function n2e(e,t,r){Rm()||Er(!1);let{navigator:n}=m.useContext(If),{matches:a}=m.useContext(Cc),o=a[a.length-1],i=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=Ju(),f;if(t){var h;let v=typeof t=="string"?kc(t):t;c==="/"||(h=v.pathname)!=null&&h.startsWith(c)||Er(!1),f=v}else f=d;let p=f.pathname||"/",g=c==="/"?p:p.slice(c.length)||"/",S=Jh(e,{pathname:g}),b=l2e(S&&S.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:ac([c,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?c:ac([c,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r);return t&&b?m.createElement(rk.Provider,{value:{location:d2({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:qn.Pop}},b):b}function s2e(){let e=f2e(),t=rU(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),r?m.createElement("pre",{style:a},r):null,null)}const a2e=m.createElement(s2e,null);class o2e extends m.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?m.createElement(Cc.Provider,{value:this.props.routeContext},m.createElement(cU.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function i2e(e){let{routeContext:t,match:r,children:n}=e,a=m.useContext(x1);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),m.createElement(Cc.Provider,{value:t},n)}function l2e(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let o=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let c=o.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id]));c>=0||Er(!1),o=o.slice(0,Math.min(o.length,c+1))}return o.reduceRight((c,d,f)=>{let h=d.route.id?i==null?void 0:i[d.route.id]:null,p=null;r&&(p=d.route.errorElement||a2e);let g=t.concat(o.slice(0,f+1)),S=()=>{let b;return h?b=p:d.route.Component?b=m.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=c,m.createElement(i2e,{match:d,routeContext:{outlet:c,matches:g,isDataRoute:r!=null},children:b})};return r&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?m.createElement(o2e,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:S(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):S()},null)}var dU=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dU||{}),f2=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}(f2||{});function c2e(e){let t=m.useContext(x1);return t||Er(!1),t}function u2e(e){let t=m.useContext(wN);return t||Er(!1),t}function d2e(e){let t=m.useContext(Cc);return t||Er(!1),t}function fU(e){let t=d2e(),r=t.matches[t.matches.length-1];return r.route.id||Er(!1),r.route.id}function f2e(){var e;let t=m.useContext(cU),r=u2e(f2.UseRouteError),n=fU(f2.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function h2e(){let{router:e}=c2e(dU.UseNavigateStable),t=fU(f2.UseNavigateStable),r=m.useRef(!1);return uU(()=>{r.current=!0}),m.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,d2({fromRouteId:t},o)))},[e,t])}function p2e(e){let{to:t,replace:r,state:n,relative:a}=e;Rm()||Er(!1);let{matches:o}=m.useContext(Cc),{pathname:i}=Ju(),c=ha(),d=tk(t,ek(o),i,a==="path"),f=JSON.stringify(d);return m.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:a}),[c,f,a,r,n]),null}function kN(e){return r2e(e.context)}function m2e(e){let{basename:t="/",children:r=null,location:n,navigationType:a=qn.Pop,navigator:o,static:i=!1}=e;Rm()&&Er(!1);let c=t.replace(/^\/*/,"/"),d=m.useMemo(()=>({basename:c,navigator:o,static:i}),[c,o,i]);typeof n=="string"&&(n=kc(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:S="default"}=n,b=m.useMemo(()=>{let v=Uu(f,c);return v==null?null:{location:{pathname:v,search:h,hash:p,state:g,key:S},navigationType:a}},[c,f,h,p,g,S,a]);return b==null?null:m.createElement(If.Provider,{value:d},m.createElement(rk.Provider,{children:r,value:b}))}new Promise(()=>{});function g2e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:m.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:m.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
|
||
* React Router DOM v6.20.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},am.apply(this,arguments)}function hU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function v2e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function x2e(e,t){return e.button===0&&(!t||t==="_self")&&!v2e(e)}const y2e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],b2e=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function w2e(e,t){return Fbe({basename:t==null?void 0:t.basename,future:am({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:cbe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||k2e(),routes:e,mapRouteProperties:g2e,window:t==null?void 0:t.window}).initialize()}function k2e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=am({},t,{errors:C2e(t.errors)})),t}function C2e(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new yN(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch(i){}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}const pU=m.createContext({isTransitioning:!1}),S2e=m.createContext(new Map),j2e="startTransition",yD=_2[j2e],E2e="flushSync",bD=xZ[E2e];function N2e(e){yD?yD(e):e()}function F0(e){bD?bD(e):e()}class _2e{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function T2e(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=m.useState(r.state),[i,c]=m.useState(),[d,f]=m.useState({isTransitioning:!1}),[h,p]=m.useState(),[g,S]=m.useState(),[b,v]=m.useState(),w=m.useRef(new Map),{v7_startTransition:C}=n||{},j=m.useCallback(D=>{C?N2e(D):D()},[C]),E=m.useCallback((D,A)=>{let{deletedFetchers:O,unstable_flushSync:$,unstable_viewTransitionOpts:H}=A;O.forEach(I=>w.current.delete(I)),D.fetchers.forEach((I,W)=>{I.data!==void 0&&w.current.set(W,I.data)});let z=r.window==null||typeof r.window.document.startViewTransition!="function";if(!H||z){$?F0(()=>o(D)):j(()=>o(D));return}if($){F0(()=>{g&&(h&&h.resolve(),g.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let I=r.window.document.startViewTransition(()=>{F0(()=>o(D))});I.finished.finally(()=>{F0(()=>{p(void 0),S(void 0),c(void 0),f({isTransitioning:!1})})}),F0(()=>S(I));return}g?(h&&h.resolve(),g.skipTransition(),v({state:D,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(c(D),f({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[r.window,g,h,w,j]);m.useLayoutEffect(()=>r.subscribe(E),[r,E]),m.useEffect(()=>{d.isTransitioning&&!d.flushSync&&p(new _2e)},[d]),m.useEffect(()=>{if(h&&i&&r.window){let D=i,A=h.promise,O=r.window.document.startViewTransition(()=>pe(this,null,function*(){j(()=>o(D)),yield A}));O.finished.finally(()=>{p(void 0),S(void 0),c(void 0),f({isTransitioning:!1})}),S(O)}},[j,i,h,r.window]),m.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,g,a.location,i]),m.useEffect(()=>{!d.isTransitioning&&b&&(c(b.state),f({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),v(void 0))},[d.isTransitioning,b]);let N=m.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:D=>r.navigate(D),push:(D,A,O)=>r.navigate(D,{state:A,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(D,A,O)=>r.navigate(D,{replace:!0,state:A,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[r]),M=r.basename||"/",P=m.useMemo(()=>({router:r,navigator:N,static:!1,basename:M}),[r,N,M]);return m.createElement(m.Fragment,null,m.createElement(x1.Provider,{value:P},m.createElement(wN.Provider,{value:a},m.createElement(S2e.Provider,{value:w.current},m.createElement(pU.Provider,{value:d},m.createElement(m2e,{basename:M,location:a.location,navigationType:a.historyAction,navigator:N},a.initialized?m.createElement(M2e,{routes:r.routes,state:a}):t))))),null)}function M2e(e){let{routes:t,state:r}=e;return n2e(t,void 0,r)}const P2e=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",D2e=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xc=m.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:c,target:d,to:f,preventScrollReset:h,unstable_viewTransition:p}=t,g=hU(t,y2e),{basename:S}=m.useContext(If),b,v=!1;if(typeof f=="string"&&D2e.test(f)&&(b=f,P2e))try{let E=new URL(window.location.href),N=f.startsWith("//")?new URL(E.protocol+f):new URL(f),M=Uu(N.pathname,S);N.origin===E.origin&&M!=null?f=M+N.search+N.hash:v=!0}catch(E){}let w=Jbe(f,{relative:a}),C=R2e(f,{replace:i,state:c,target:d,preventScrollReset:h,relative:a,unstable_viewTransition:p});function j(E){n&&n(E),E.defaultPrevented||C(E)}return m.createElement("a",am({},g,{href:b||w,onClick:v||o?n:j,ref:r,target:d}))}),bh=m.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:c,to:d,unstable_viewTransition:f,children:h}=t,p=hU(t,b2e),g=nk(d,{relative:p.relative}),S=Ju(),b=m.useContext(wN),{navigator:v}=m.useContext(If),w=b!=null&&L2e(g)&&f===!0,C=v.encodeLocation?v.encodeLocation(g).pathname:g.pathname,j=S.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(j=j.toLowerCase(),E=E?E.toLowerCase():null,C=C.toLowerCase());const N=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let M=j===C||!i&&j.startsWith(C)&&j.charAt(N)==="/",P=E!=null&&(E===C||!i&&E.startsWith(C)&&E.charAt(C.length)==="/"),D={isActive:M,isPending:P,isTransitioning:w},A=M?n:void 0,O;typeof o=="function"?O=o(D):O=[o,M?"active":null,P?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let $=typeof c=="function"?c(D):c;return m.createElement(xc,am({},p,{"aria-current":A,className:O,ref:r,style:$,to:d,unstable_viewTransition:f}),typeof h=="function"?h(D):h)});var K4;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(K4||(K4={}));var wD;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wD||(wD={}));function A2e(e){let t=m.useContext(x1);return t||Er(!1),t}function R2e(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:c}=t===void 0?{}:t,d=ha(),f=Ju(),h=nk(e,{relative:i});return m.useCallback(p=>{if(x2e(p,r)){p.preventDefault();let g=n!==void 0?n:wf(f)===wf(h);d(e,{replace:g,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:c})}},[f,d,h,n,a,r,e,o,i,c])}function L2e(e,t){t===void 0&&(t={});let r=m.useContext(pU);r==null&&Er(!1);let{basename:n}=A2e(K4.useViewTransitionState),a=nk(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=Uu(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=Uu(r.nextLocation.pathname,n)||r.nextLocation.pathname;return U4(a.pathname,i)!=null||U4(a.pathname,o)!=null}function O2e({itemId:e,setShowDetails:t,isLargeView:r,isShowDetails:n,isSelected:a,isPinned:o,isMenu:i,icon:c,iconVisibility:d,isPinnedBoard:f,isFavorite:h,boardId:p,tabId:g,setSelectedItemId:S}){const{t:b}=Tt(),{updateMovedClips:v}=Mw(),{duplicateItem:w}=Zme(),{deleteItemById:C}=Dw(),{updateItemById:j}=Bi(),{updatePinnedClipsByIds:E}=EH(),{setIsShowPinned:N,isShowPinned:M}=xt(xs),{createNewItem:P}=Pw(),D=ha(),{clipItems:A,tabs:O,currentTab:$,setCurrentTab:H,currentCollectionId:z}=xt(kn),I=m.useMemo(()=>ta(A,$).filter(V=>V.id!==e),[A,$,e]),W=function(V,U=!1){return pe(this,null,function*(){var q,Y;if(!z||!V||!p)return;const X=V.toString(),G=ta(A,X);let F=(q=G.find(se=>se.name===b("Moved Clips Panel",{ns:"dashboard"})))==null?void 0:q.id;if(!F){const se=(Y=O.find(le=>le.tabId===X))==null?void 0:Y.tabColor,ee={name:b("Moved Clips Panel",{ns:"dashboard"}),isBoard:!0,tabId:X,color:se,description:b("Panel for moved or copied items from other tabs",{ns:"dashboard"}),parentId:null,collectionId:z,orderNumber:0},ae=yield P({item:ee});G.sort((le,ue)=>le.orderNumber-ue.orderNumber).unshift(re(R({},ee),{id:ae,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1}));const oe=G.map((le,ue)=>({itemId:le.id,parentId:null,tabId:le.tabId,collectionId:z,orderNumber:ue}));v({updatedMoveClips:oe}),F=ae}if(F){const se=F.toString(),ee=U?e:yield w({itemId:e,boardId:se,tabId:X,collectionId:z});Mu.value=se;const ae=ta(A,X.toString(),se==null?void 0:se.toString());ae.sort((le,ue)=>le.orderNumber-ue.orderNumber).unshift({parentId:se,tabId:X,id:ee,type:"clip",orderNumber:0,createdAt:0,value:"",name:""});const oe=ae.map((le,ue)=>({itemId:le.id,parentId:le.parentId,tabId:le.tabId,collectionId:z,orderNumber:ue}));H(X),U?yield v({updatedMoveClips:oe}):setTimeout(()=>pe(this,null,function*(){yield v({updatedMoveClips:oe}),qa.value=ee}),300)}})},_=function(V,U=!1){return pe(this,null,function*(){if(!z||!V)return;const X=V.toString(),G=$.toString(),F=U?e:yield w({itemId:e,boardId:X,tabId:G,collectionId:z});Mu.value=X;const q=ta(A,G.toString(),X==null?void 0:X.toString());q.sort((se,ee)=>se.orderNumber-ee.orderNumber).unshift({parentId:X,tabId:G,id:F,type:"clip",orderNumber:0,createdAt:0,value:"",name:""});const Y=q.map((se,ee)=>({itemId:se.id,parentId:se.parentId,tabId:se.tabId,collectionId:z,orderNumber:ee}));H(G),U?yield v({updatedMoveClips:Y}):setTimeout(()=>pe(this,null,function*(){yield v({updatedMoveClips:Y}),qa.value=F}),300)})},K=m.memo(({board:V,itemId:U,level:X,onSelect:G})=>{var F;return"isBoard"in V&&X<1&&((F=V.children)!=null&&F.some(q=>"isBoard"in q&&q.isBoard&&q.id!==U))?s.jsxs(ds,{children:[s.jsx(Xn,{onClick:()=>{G(V.id)},children:s.jsx("span",{className:"capitalize",children:V.name})}),s.jsx(Qn,{children:V.children.filter(q=>q.id!==U).filter(q=>q.type===Hs).map(q=>s.jsx(K,{board:q,itemId:U,level:X+1,onSelect:G},q.id))})]}):s.jsx($t,{onSelect:()=>{G(V.id)},children:s.jsx("span",{className:"capitalize",children:V.name})},V.id)});return e==null?null:s.jsx(u1,{children:s.jsxs(_m,{children:[r?s.jsxs($t,{onClick:()=>{$s.value=null},children:[b("Close Large",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(lv,{size:14})})]}):s.jsxs(s.Fragment,{children:[n?s.jsxs($t,{onClick:()=>{t(null)},children:[b("Hide Details",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(tie,{size:15})})]}):s.jsxs($t,{onClick:()=>{t(e)},children:[b("Show Details",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(rie,{size:15})})]}),$s.value!==e?s.jsxs($t,{onClick:()=>{$s.value=e},children:[b("Large View",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(zE,{size:14})})]}):s.jsxs($t,{onClick:()=>{$s.value=null},children:[b("Close Large",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(lv,{size:14})})]}),a?s.jsxs($t,{onClick:()=>{S(e)},children:[b("Deselect",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(bse,{size:15})})]}):s.jsxs($t,{onClick:()=>{S(e)},children:[b("Select",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(d$,{size:15})})]}),s.jsx(tn,{})]}),Fs.value!==e?s.jsxs($t,{className:"gap-2",onClick:()=>{Fs.value=e},children:[b("Edit Clip",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(Rb,{size:15})})]}):s.jsxs($t,{onClick:()=>{Fs.value=e},children:[b("Close Edit",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(Rb,{size:15})})]}),s.jsx(tn,{}),!f&&s.jsx(s.Fragment,{children:o?s.jsxs($t,{onClick:()=>{E({itemIds:[e],isPinned:!1})},children:[b("UnPin Clip",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(hf,{size:15})})]}):s.jsxs($t,{onClick:()=>{!o&&!M&&N(!0),E({itemIds:[e],isPinned:!0})},children:[b("Pin",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(dc,{size:15})})]})}),h?s.jsxs($t,{onClick:()=>{j({updatedItem:{isFavorite:!1,itemId:e}})},children:[b("Remove Star",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(aw,{size:15,className:"fill-transparent"})})]}):s.jsxs($t,{onClick:()=>{j({updatedItem:{isFavorite:!0,itemId:e}})},children:[b("Star",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Mf,{size:15,className:"fill-transparent"})})]}),s.jsx(tn,{}),i?s.jsxs($t,{onClick:()=>{D("/menu",{replace:!0}),setTimeout(()=>{su.value=e.toString()},300)},children:[b("Locate Menu",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(nw,{size:15})})]}):s.jsxs($t,{onClick:()=>{D("/menu",{replace:!0}),setTimeout(()=>{bd.value=e,Ka.value=!0},300)},children:[b("Add to Menu",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(qE,{size:15})})]}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("Manage",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("Clip Icon",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsx($t,{disabled:!0,className:"text-center items-center justify-center py-0.5",children:s.jsx(J,{children:b("Icon Visibility",{ns:"contextMenus"})})}),s.jsx(tn,{}),s.jsx(Ei,{checked:d==="none",onSelect:()=>{j({updatedItem:{iconVisibility:"none",itemId:e}})},className:d==="none"?"font-semibold":"",children:b("Hide",{ns:"contextMenus"})}),s.jsx(Ei,{checked:d==="always",onSelect:()=>{j({updatedItem:{iconVisibility:"always",itemId:e}})},className:d==="always"?"font-semibold":"",children:b("Show",{ns:"contextMenus"})}),s.jsxs(ds,{children:[s.jsxs(Xn,{className:"flex items-center justify-center",children:[c?s.jsx(sm,{size:16,className:"ml-1 mr-2",name:c}):s.jsx(LE,{size:16,className:"ml-1 mr-2 opacity-30"}),b("Custom Icon",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{className:"w-64",children:[s.jsxs($t,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[s.jsx(Q,{className:"w-6"}),s.jsx(J,{children:b("Select Icon",{ns:"contextMenus"})}),s.jsx(ke,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{j({updatedItem:{icon:"",iconVisibility:"",itemId:e}})},children:b("RESET",{ns:"contextMenus"})})]}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:s.jsx(ve,{className:"grid grid-cols-7 gap-0.5",children:xN.map(V=>s.jsx($t,{className:"flex items-center justify-center ".concat(c===V?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:U=>{U.preventDefault(),j({updatedItem:{icon:V,iconVisibility:"always",itemId:e}})},children:s.jsx(sm,{name:V,size:16})},V))})})]})]})]})]}),s.jsx(tn,{}),s.jsxs($t,{onClick:()=>pe(this,null,function*(){if(!z||!g||!p)return;const V=yield w({itemId:e,boardId:p,tabId:g,collectionId:z});Mu.value=p;const U=ta(A,g.toString(),p==null?void 0:p.toString());U.sort((G,F)=>G.orderNumber-F.orderNumber).unshift({parentId:p,tabId:g,id:V,type:"clip",orderNumber:0,createdAt:0,value:"",name:b("Copy Clip",{ns:"dashboard"})});const X=U.map((G,F)=>({itemId:G.id,parentId:G.parentId,tabId:G.tabId,collectionId:z,orderNumber:F}));setTimeout(()=>pe(this,null,function*(){yield v({updatedMoveClips:X}),qa.value=V}),600)}),children:[b("Duplicate",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx($E,{size:15})})]}),s.jsxs($t,{onClick:()=>{bl.value=p},children:[b("Organize",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(sw,{size:15,className:"fill-transparent"})})]}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("Copy To",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),s.jsx(Qn,{children:O.map(({tabId:V,tabName:U,tabOrderNumber:X})=>s.jsx($t,{onSelect:()=>{W(V)},children:$===V?s.jsx(J,{className:"font-semibold capitalize",children:U||"".concat(b("Tab",{ns:"dashboard"})," ").concat(X+1)}):s.jsx("span",{className:"capitalize",children:U||"".concat(b("Tab",{ns:"dashboard"})," ").concat(X+1)})},V))})]}),ta(A,$).filter(V=>V.id!==e).length>0&&s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),s.jsx(Qn,{children:I.map(V=>s.jsx(K,{board:V,level:0,itemId:e,onSelect:U=>{_(U)}},V.id))})]})]})]}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("Move To",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("CopyTo:::Tab",{ns:"contextMenus"}),"..."]}),s.jsx(Qn,{children:O.map(({tabId:V,tabName:U,tabOrderNumber:X})=>s.jsx($t,{onSelect:()=>{W(V,!0)},children:$===V?s.jsx(J,{className:"font-semibold capitalize",children:U||"".concat(b("Tab",{ns:"dashboard"})," ").concat(X+1)}):s.jsx("span",{className:"capitalize",children:U||"".concat(b("Tab",{ns:"dashboard"})," ").concat(X+1)})},V))})]}),ta(A,$).filter(V=>V.id!==e).length>0&&s.jsxs(ds,{children:[s.jsxs(Xn,{children:[b("CopyTo:::Board",{ns:"contextMenus"}),"..."]}),s.jsx(Qn,{children:I.map(V=>s.jsx(K,{board:V,level:0,itemId:e,onSelect:U=>{_(U,!0)}},V.id))})]})]})]})]})]}),s.jsx(tn,{}),f?s.jsxs($t,{onClick:()=>{E({itemIds:[e],isPinned:!1})},children:[s.jsx(J,{className:"!text-orange-600",children:b("UnPin Clip",{ns:"contextMenus"})}),s.jsx("div",{className:"ml-auto ",children:s.jsx(hf,{size:15,className:"!text-orange-600"})})]}):s.jsxs($t,{className:Ho.value===e?"!bg-red-100 dark:!bg-red-900":"",onClick:V=>{Ho.value===e?(C({itemId:e,collectionId:z}),r&&setTimeout(()=>{$s.value=null},300),Ho.value):(V.preventDefault(),Ho.value=e,setTimeout(()=>{Ho.value=null},3e3))},children:[s.jsx(ve,{children:s.jsx(J,{className:"!text-red-500",children:Ho.value!==e?b("Delete Clip",{ns:"contextMenus"}):b("Click to Confirm",{ns:"common"})})}),!Ho.value&&s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(dn,{size:15,className:"text-red-500"})})]})]})})}const z5=["Tab","Enter","TabTab","TabTabTab","TabEnter","TabTabEnter"];function mU({clip:e,boardColor:t,globalSearchTerm:r,isGlobalSearchBoardsOnly:n,isDragPreview:a,isSelected:o,selectedOrder:i,isShowDetails:c,canReorangeItems:d,isClipDelete:f,isHistoryDragActive:h,isClipEdit:p,isPinnedBoard:g,isLargeView:S,isShowOrganizeLayoutValue:b,isDisabledPinnedMoveDown:v,isDisabledPinnedMoveUp:w,isDark:C,closeGlobalSearch:j,onMovePinnedUpDown:E=({})=>{},setShowDetailsItem:N=()=>{},setSelectedItemId:M=()=>{}}){var Ge,zt,ir,Ft,et,cr,ar,ur,Sr;const{t:P}=Tt(),D=Ve(!1),A=Ve(!1),O=Ve(!1),$=Ve(""),{updateItemById:H}=Bi(),z=Yve(),[I,W,_,K]=Rf({}),[V,U,X]=Lf({}),G=ro($.value,300),F=m.useRef(null),q=m.useRef(null),Y=(b||d)&&!g,{setNodeRef:se,listeners:ee,isDragging:ae,setActivatorNodeRef:oe,isOver:le}=NE({transition:null,disabled:!!(Y&&p)||a||!1,id:g?"".concat(e.id,"::pinnedzone"):p?"".concat(e.id,"::dropzone"):e.id,animateLayoutChanges:()=>!1,data:{type:p?"clip::dropzone":"clip",clip:e}}),ue=r&&!n?dl(e.name,r):e.name,ce=f||Ll.value&&o,he=I===e.id,we=V===e.id,Se=K===e.id,Ae=V===e.id?U:void 0,je=c&&!g&&ji.value===e.id,Le=e.createdAt>Math.floor(Date.now())-60*1e3&&!e.isPinned&&!e.isFavorite,Ee=e.color?e.color:t||(g?"orange":"slate"),He=e.borderWidth&&e.borderWidth>0,Qe=He?e.borderWidth:1,Ze=He?"border-l-".concat(Ee,"-400 hover:!border-l-").concat(Ee,"-500 dark:border-l-").concat(Ee,"-600 dark:hover:!border-l-").concat(Ee,"-500"):"",mt=Pf("relative overflow-hidden p-[2px] px-0 hover:shadow-sm !rounded-lg duration-300 bg-".concat(Ee,"-50 dark:bg-").concat(Ee,"-950 dark:bg-opacity-80 border-").concat(Ee,"-200 dark:border-").concat(Ee,"-900 ").concat(Ze," hover:bg-white dark:hover:bg-").concat(Ee,"-950 dark:hover:bg-opacity-60 ").concat(He?"border border-l-[".concat(Qe,"px] "):"border-0"," ").concat(p?"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(ce?"border-red-300 bg-red-100 border hover:!bg-red-100 dark:!bg-red-900 border-l-[".concat(Qe,"px] "):"").concat(he||we?"!border-green-600 !bg-green-50 dark:!bg-green-900 dark:!border-green-700":""," ").concat(g&&!b?"animate-in fade-in":""," ").concat(je?"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]"}}});m.useEffect(()=>{var Mt,Rr,Me,Ye,Te,lt;!Y&&kx.value?(kx.value=null,ZC.value=null):ae&&(kx.value=(Me=(Rr=(Mt=q==null?void 0:q.current)==null?void 0:Mt.firstElementChild)==null?void 0:Rr.getBoundingClientRect().height)!=null?Me:null,ZC.value=(lt=(Te=(Ye=q==null?void 0:q.current)==null?void 0:Ye.firstElementChild)==null?void 0:Te.getBoundingClientRect().width)!=null?lt:null)},[ae,Y]);const Ke=m.useMemo(()=>"".concat(e.id,":::").concat(g?"pinned":e.parentId),[e.id,g,e.parentId]),Lt=X0.value===Ke||b||d||Se,qt=!p&&!A&&(Le||e.isPinned||e.isFavorite)?"".concat(Le?P("New",{ns:"common"}):""," ").concat(e.isPinned?P("Pinned",{ns:"common"}):""," ").concat(e.isFavorite?P("Starred",{ns:"common"}):""):void 0,Xt=m.useMemo(()=>{if(!e.links)return[];if(e.links)try{e.arrLinks=JSON.parse(e.links)}catch(Mt){e.arrLinks=[]}return e.arrLinks},[e.isLink,e.links]);return m.useEffect(()=>{A.value=!1,O.value=!1},[c]),m.useEffect(()=>{O.value||($.value="")},[O.value]),m.useEffect(()=>{!c||!_d.value||(_d.value&&c&&!O.value?O.value=!0:_d.value&&$.value.trim()===""&&(O.value=!1))},[_d.value]),s.jsxs(Em,{onOpenChange:Mt=>{D.value=Mt},children:[s.jsx(Nm,{disabled:!Lt&&!o||!!r,ref:q,children:s.jsxs(Q,{className:"relative",children:[o&&!(he||we)&&s.jsx(ft,{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:s.jsx(J,{className:"font-mono !text-yellow-500 dark:!text-yellow-300 font-semibold",children:i})}),(he||we)&&!Ae?s.jsx(Q,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:e.isForm?s.jsxs(ft,{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:[P("Running",{ns:"common"}),"..."]}):s.jsxs(ft,{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:[s.jsx(Bt,{size:14,className:"mr-1"}),he?P("Copied",{ns:"common"}):we?P("Pasted",{ns:"common"}):""]})}):Ae&&U>0&&s.jsx(Q,{className:"z-100 w-full flex justify-center fade-in-animation absolute top-[-10px]",children:e.isForm?s.jsx(ft,{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:P("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:U})}):s.jsx(ft,{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:P("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:U})})}),s.jsxs(lN,{ref:Ii(Y||p?se:null),style:a?{height:(Ge=kx.value)!=null?Ge:"auto",width:(zt=ZC.value)!=null?zt:"auto"}:{},onMouseEnter:()=>{X0.value=Ke},onMouseLeave:()=>{X0.value=null},onClick:()=>{X0.value=Ke},className:mt({dragging:a?"overlay":ae?"over":void 0}),children:[s.jsxs(Uge,re(R(re(R({title:qt},z(()=>{bl.value=e.parentId})),{onClickCapture:Mt=>{Mt.shiftKey&&(Mt.preventDefault(),Mt.stopPropagation(),c?$s.value===e.id?$s.value=null:N(null):N(e.id))},onDoubleClickCapture:Mt=>{if(O.value||p||Mt.shiftKey){Mt.preventDefault();return}if(Mt.altKey||Mt.metaKey){if(e.isForm){X(e.id,void 0,!0);return}X(e.id)}else W(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(Y?"cursor-grab":"cursor-pointer"," ").concat(S?"min-h-[30px]":"")}),Y?ee:{}),{children:[p?s.jsx(Lye,{clipId:e.id,name:e.name,description:(Ft=e.description)!=null?Ft:null,color:Ee,borderWidth:e.borderWidth?e.borderWidth:0}):O.value&&((ir=e.value)!=null&&ir.trim())?s.jsxs(ve,{className:"w-full text-sm",children:[s.jsx(Iu,{placeholder:"".concat(P("Find in clip",{ns:"dashboard"})," ..."),autoFocus:!0,onKeyDown:Mt=>{Mt.key==="Escape"&&$.value.trim()===""&&(O.value=!1)},iconLeft:s.jsx(Gp,{className:"h-4 w-4"}),classNameInput:"w-full px-[6px] h-6",onChange:Mt=>{$.value=Mt.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"}),s.jsx(rn,{className:"hover:bg-transparent text-slate-500 ml-1.5",children:s.jsx($e,{text:P("Close Find",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Ur,{size:18,onClick:()=>{O.value=!1}})})})]}):s.jsx("div",{className:"text-slate-600 dark:text-slate-300 text-sm line-clamp-3 text-ellipsis ".concat(Le?"font-semibold":"font-normal"),children:s.jsx($e,{text:e.description,isDisabled:!e.description||a,isCompact:!0,side:"right",delayDuration:2e3,align:"end",alignOffset:30,maxWidth:180,sideOffset:-10,asChild:!0,children:Xt&&Xt.length===1&&e.isLink?s.jsx("span",{onClick:Mt=>{if(Mt.shiftKey){Mt.preventDefault();return}yl(wn(Xt[0]))},title:Xt[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:ue}):e.isLink&&e.value?s.jsx("span",{onClick:Mt=>{var Ye;if(Mt.shiftKey){Mt.preventDefault();return}const Me=Nn().match((Ye=e.value)!=null?Ye:"");Me&&Me.length===1?yl(wn(Me[0].raw)):pl(P("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:ue}):e.isPath&&e.value?s.jsx("span",{onClick:()=>pe(this,null,function*(){try{yield _s("check_path",{path:e.value}),yield _s("open_path_or_app",{path:e.value})}catch(Mt){pl(P("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:ue}):ue})}),!((Lt||D.value)&&!p&&!O.value)&&s.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&&s.jsx(Mf,{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&&!g?s.jsx(uc,{className:"absolute text-orange-400 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28}):Le&&!e.isFavorite&&s.jsx(uc,{className:"absolute text-green-400 pointer-events-none top-[-5px] right-[-3px] animate-in fade-in duration-500",size:28}),p&&!up.value&&s.jsxs("div",{className:"mr-2 flex",children:[s.jsx(rn,{className:" hover:bg-transparent mr-2",onClick:()=>{$s.value=S?null:e.id},children:s.jsx($e,{text:S?P("Close Large View Edit",{ns:"common"}):P("Large View Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(zE,{size:13})})}),s.jsx(rn,{className:" hover:bg-transparent",onClick:()=>{xb()},children:s.jsx($e,{text:P("Close Edit",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Ur,{size:18})})})]}),!p&&s.jsx("div",{className:e.isPinned&&!e.isFavorite?"mr-[11px]":Le?"mr-[14px]":e.isFavorite?"mr-[13px]":"mr-1.5",children:Xt&&Xt.length===1&&e.isLink||e.isLink&&e.value?s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::Link",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:s.jsx(Nve,{className:"ml-1.5",width:15,height:15})}):e.isPath&&e.value?s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::".concat(e.pathType),{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:e.pathType==="Folder"?s.jsx(Dve,{width:16,height:16}):e.pathType==="File"?s.jsx(Mve,{width:16,height:16}):e.pathType==="App"?s.jsx(Tve,{width:16,height:16}):(((et=e.pathType)==null?void 0:et.includes("Executable"))||((cr=e.pathType)==null?void 0:cr.includes("Script")))&&s.jsx(Pve,{width:16,height:16})}):e.isCommand?s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::Shell Command",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:s.jsx(_$,{width:16,height:16})}):e.isForm?s.jsx(s.Fragment,{children:s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::Form Auto Fill",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:s.jsx(M$,{width:16,height:16})})}):e.isTemplate?s.jsx(s.Fragment,{children:s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::Template",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:s.jsx(BE,{width:16,height:16})})}):e.isWebRequest?s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::Web Request (HTTP)",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:s.jsx(xB,{width:16,height:16})}):e.isWebScraping?s.jsx($l,{icon:e.icon,description:e.description,pathType:P("Type:::Web Scraper / Parser",{ns:"common"}),iconVisibility:e.iconVisibility,isHover:Lt,children:s.jsx(yB,{width:16,height:16})}):e.icon&&s.jsx($l,{icon:e.icon,description:e.description,iconVisibility:e.iconVisibility,isHover:Lt})})]}),(Lt||D.value)&&!p&&(!d&&!a&&!ae&&!O.value&&!b?s.jsx(s.Fragment,{children:s.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(Lt||D.value?"fade-in-init-hover":""),children:[s.jsx("div",{}),c&&!O.value&&!e.isImage&&((ar=e.value)==null?void 0:ar.trim())&&s.jsx(rn,{className:"hover:bg-transparent hover:text-yellow-600 pr-2",onClick:()=>{O.value=!0},children:s.jsx($e,{text:P("Find in Clip",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(_ve,{width:16,height:16,className:"cursor-pointer"})})}),c&&e.isImage&&S&&s.jsx(rn,{className:"hover:bg-transparent pr-3",onClick:()=>{H({updatedItem:{itemId:e.id,imageScale:e.imageScale===1?2:1}})},children:s.jsx($e,{text:P("Image Scale {{ImageScale}}x",{ns:"common",ImageScale:e.imageScale}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsxs(ve,{children:[s.jsx(ft,{variant:"outline",className:"bg-slate-100 border border-slate-100 cursor-pointer px-1.5 mr-1 py-[1px]",children:s.jsx(J,{className:"font-mono !text-slate-400 font-semibold",children:"".concat(e.imageScale,"x")})}),e.imageScale===1?s.jsx(Tle,{width:16,height:16,className:"cursor-pointer"}):s.jsx(_le,{width:16,height:16,className:"cursor-pointer"})]})})}),s.jsx(rn,{className:"hover:bg-transparent hover:text-green-600",onClick:()=>{pr.value?e.isForm?X(e.id,void 0,!0):X(e.id):W(e.id)},children:e.isForm?s.jsx($e,{text:P("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Se||we&&!Ae?s.jsx(tm,{}):s.jsx(s2,{width:16,height:16})}):e.isWebRequest||e.isWebScraping||e.isCommand?s.jsx($e,{text:pr.value?P("Run and Paste Response",{ns:"common"}):P("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:16}):Se?s.jsx(tm,{}):s.jsx(s2,{width:16,height:16})}):s.jsx($e,{text:pr.value?P("Copy and Paste",{ns:"common"}):P("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:16}):s.jsx(aa,{size:16})})}),r?s.jsx(ke,{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:()=>{ji.value=e.id,j==null||j()},ref:F,children:s.jsx($e,{text:P("Locate Clip",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(nw,{size:18})})}):s.jsx(ke,{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 Me,Ye,Te;const Mt=(Me=F==null?void 0:F.current)==null?void 0:Me.getBoundingClientRect().x,Rr=(Ye=F==null?void 0:F.current)==null?void 0:Ye.getBoundingClientRect().y;(Te=q==null?void 0:q.current)==null||Te.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:Mt,clientY:Rr&&Rr+30}))},ref:F,children:s.jsx($e,{text:P("Clip Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Hi,{size:18})})})]})}):!O.value&&s.jsx("div",{className:"text-secondary-foreground/50 flex ml-auto !mt-0 !p-0 pr-2 w-[40px] items-center justify-center",children:a?s.jsx(sw,{size:16}):g?s.jsxs(ve,{children:[s.jsx(Q,{className:"".concat(w?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," pr-1 flex items-center justify-center"),children:s.jsx(Uoe,{size:15,onClick:()=>{w||E({itemId:e.id,moveUp:!0})}})}),s.jsx(Q,{className:"".concat(v?"cursor-default text-gray-300":"cursor-pointer text-slate-500"," flex items-center justify-center"),children:s.jsx(Woe,{size:15,onClick:()=>{v||E({itemId:e.id,moveDown:!0})}})})]}):s.jsx(ke,re(R({variant:"ghost",size:"mini"},ee),{"data-drag-handle":!0,ref:oe,className:"px-1 text-secondary-foreground/50 ml-auto cursor-grab fade-in animate-in !mt-0 flex hover:bg-transparent",children:s.jsx($e,{text:P("Drag to Move",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(tw,{size:16})})}))}))]})),c&&!p?s.jsx(HB,{isImage:e.isImage,isLink:e.isLink,isShowLinkedClip:je,searchTerm:G,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:A,isCopyOrPaste:he||we,isDark:C,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:S,formTemplateOptions:e.formTemplateOptions,commandRequestOutput:(ur=e.commandRequestOutput)==null?void 0:ur.replace("[Err]",""),isCommandRequestRunError:!!((Sr=e.commandRequestOutput)!=null&&Sr.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}):p&&s.jsx(lbe,{value:e.value,isOver:le,isLargeView:S,isShowLinkedClip:je,isNewlyCreated:Le,isPinned:e.isPinned,isFavorite:e.isFavorite,isDelete:ce,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:C,isHistoryDragActive:h,clipId:e.id,onCancel:()=>{xb()}})]})]})}),s.jsx(O2e,{itemId:e.id,isSelected:o,isPinnedBoard:g,isShowDetails:c,setShowDetails:N,setSelectedItemId:M,icon:e.icon,iconVisibility:e.iconVisibility,isPinned:e.isPinned,isFavorite:e.isFavorite,isMenu:e.isMenu,isLargeView:S,tabId:e.tabId,boardId:e.parentId})]})}const CN=m.memo(mU),gU=m.memo(({board:e,itemId:t,level:r,onSelect:n})=>{var a;return"isBoard"in e&&r<1&&((a=e.children)!=null&&a.some(o=>"isBoard"in o&&o.isBoard&&o.id!==t))?s.jsxs(ds,{children:[s.jsx(Xn,{onClick:()=>{n(e.id)},children:e.name}),s.jsx(Qn,{children:e.children.filter(o=>o.id!==t).filter(o=>o.type===Hs).map(o=>s.jsx(gU,{board:o,itemId:t,level:r+1,onSelect:n},o.id))})]}):s.jsx($t,{onSelect:()=>{n(e.id)},children:e.name},e.id)});function I2e({itemId:e,itemParentId:t,onShowDescriptionChange:r,hasDescription:n,isShowDescription:a,isEdit:o,iconVisibility:i,icon:c,setEditBoard:d}){const{clipItems:f,tabs:h,currentTab:p,setClipItems:g,currentCollectionId:S,isBoardHasChildren:b}=xt(kn),{t:v}=Tt(),{deleteItemById:w}=Dw(),{updateItemById:C}=Bi(),{updateMovedClips:j}=Mw(),E=m.useMemo(()=>ta(f,p).filter(M=>M.id!==e),[f,p,e]),N=m.useCallback((M,P)=>{const D=f.find(A=>A.itemId===e&&A.isBoard);if(D&&!M&&P){const O=ta(f,p,t==null?void 0:t.toString()).find(V=>V.id===e),$=O?mN(O):[],H=f.filter(V=>V.tabId===P&&V.isBoard&&V.parentId===null).sort((V,U)=>V.orderNumber-U.orderNumber);H.unshift(D);const z=new Map(H.map((V,U)=>[V.itemId,U])),I=new Map($==null?void 0:$.map(V=>[V,!0])),W=[],_=f.map(V=>{const U=z.get(V.itemId);return U!==void 0?(W.push(V.itemId),re(R({},V),{orderNumber:U,tabId:P,parentId:null})):I!=null&&I.has(V.itemId)?(W.push(V.itemId),re(R({},V),{tabId:P})):V});g(_);const K=_.filter(V=>W.includes(V.itemId)).map(V=>({itemId:V.itemId,parentId:V.parentId,tabId:V.tabId,collectionId:S,orderNumber:V.orderNumber}));j({updatedMoveClips:K})}else if(D&&M&&!P){const A=f.filter(z=>z.parentId===M&&z.tabId===p).sort((z,I)=>z.orderNumber-I.orderNumber);A.unshift(D);const O=new Map(A.map((z,I)=>[z.itemId,I])),$=f.map(z=>{const I=O.get(z.itemId);return I!==void 0?re(R({},z),{orderNumber:I,parentId:M.toString()}):z});g($);const H=$.filter(z=>z.parentId===M).map(z=>({itemId:z.itemId,parentId:M,tabId:p,collectionId:S,orderNumber:z.orderNumber}));j({updatedMoveClips:H})}},[e,p]);return e==null?null:s.jsx(u1,{children:s.jsxs(_m,{className:"min-w-[150px]",children:[s.jsxs($t,{onSelect:()=>{ol.value=e},children:[v("Add Clip",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(WE,{size:16})})]}),s.jsxs($t,{onSelect:()=>{Q0.value=e},children:[v("Add Board",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(uv,{size:16})})]}),s.jsx(tn,{}),!o&&s.jsxs($t,{onClick:()=>{d(e)},children:[v("Edit Board",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(BE,{size:15})})]}),s.jsxs($t,{onClick:()=>{bl.value=e},children:[v("Organize",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(sw,{size:15,className:"fill-transparent"})})]}),n&&s.jsx(s.Fragment,{children:a?s.jsxs($t,{onClick:()=>{r(e,!1)},children:[v("Hide Subtitle",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(Qv,{size:15})})]}):s.jsxs($t,{onClick:()=>{r(e,!0)},children:[v("Show Subtitle",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(bm,{size:15})})]})}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[v("Board Icon",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsx(Ei,{checked:i==="none",onSelect:()=>{C({updatedItem:{iconVisibility:"none",itemId:e}})},className:i==="none"?"font-semibold":"",children:v("Hide",{ns:"contextMenus"})}),s.jsx(Ei,{checked:i==="always",onSelect:()=>{C({updatedItem:{iconVisibility:"always",itemId:e}})},className:i==="always"?"font-semibold":"",children:v("Show",{ns:"contextMenus"})}),s.jsxs(ds,{children:[s.jsxs(Xn,{className:"flex items-center justify-center",children:[c?s.jsx(sm,{size:16,className:"ml-1 mr-2",name:c}):s.jsx(LE,{size:16,className:"ml-1 mr-2 opacity-30"}),v("Custom Icon",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{className:"w-64",children:[s.jsxs($t,{disabled:!0,className:"text-center items-center justify-between py-0.5 data-[disabled]:pointer-events-auto",children:[s.jsx(Q,{className:"w-6"}),s.jsx(J,{children:v("Select Icon",{ns:"contextMenus"})}),s.jsx(ke,{className:"text-[11px] px-1.5 font-semibold py-0.5 bg-opacity-70",variant:"default",size:"mini",onClick:()=>{C({updatedItem:{icon:"",iconVisibility:"none",itemId:e}})},children:v("RESET",{ns:"contextMenus"})})]}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:s.jsx(ve,{className:"grid grid-cols-7 gap-0.5",children:xN.map(M=>s.jsx($t,{className:"flex items-center justify-center ".concat(c===M?"!bg-gray-200 dark:!bg-gray-600 dark:!text-slate-300":""),onSelect:P=>{P.preventDefault(),C({updatedItem:{iconVisibility:"always",icon:M,itemId:e}})},children:s.jsx(sm,{name:M,size:16})},M))})})]})]})]})]}),s.jsx(tn,{}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[v("Move Board To",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsxs(ds,{children:[s.jsxs(Xn,{children:[v("MoveTo:::Tab",{ns:"contextMenus"})," ..."]}),s.jsx(Qn,{children:h.map(({tabId:M,tabName:P,tabOrderNumber:D})=>s.jsx($t,{onSelect:()=>{N(null,M)},children:p===M?s.jsx(J,{className:"font-semibold capitalize",children:P||"".concat(v("Tab",{ns:"dashboard"})," ").concat(D+1)}):s.jsx("span",{className:"capitalize",children:P||"".concat(v("Tab",{ns:"dashboard"})," ").concat(D+1)})},M))})]}),ta(f,p).filter(M=>M.id!==e).length>0&&s.jsxs(ds,{children:[s.jsxs(Xn,{children:[v("MoveTo:::Board",{ns:"contextMenus"})," ..."]}),s.jsx(Qn,{children:E.map(M=>s.jsx(gU,{board:M,level:0,itemId:e,onSelect:P=>{N(P)}},M.id))})]})]})]}),!b(e)&&s.jsxs(s.Fragment,{children:[s.jsx(tn,{}),s.jsxs($t,{className:Xc.value===e?"!bg-red-100 dark:!bg-red-900":"",onClick:M=>{Xc.value===e?(w({itemId:e,collectionId:S}),Xc.value):(M.preventDefault(),Xc.value=e,setTimeout(()=>{Xc.value=null},3e3))},children:[s.jsx(ve,{children:s.jsx(J,{className:"!text-red-500",children:Xc.value!==e?v("Delete Board",{ns:"contextMenus"}):v("Click to Confirm",{ns:"common"})})}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(dn,{size:15,className:"text-red-500"})})]})]})]})})}const $2e="_TopRow_16h0h_1",z2e="_BottomRow_16h0h_5",F2e="_Panel_16h0h_9",H2e="_PanelContent_16h0h_14",B2e="_ResizeHandleOuter_16h0h_24",U2e="_ResizeHandleInner_16h0h_35",W2e="_Button_16h0h_46",V2e="_Icon_16h0h_58",F5={TopRow:$2e,BottomRow:z2e,Panel:F2e,PanelContent:H2e,ResizeHandleOuter:B2e,ResizeHandleInner:U2e,Button:W2e,Icon:V2e};function vU({isVertical:e=!1,className:t="",id:r}){return s.jsx(W$,{className:"".concat(F5.ResizeHandleOuter," ").concat(t," opacity-0 hover:opacity-100 transition-opacity"),id:r,children:s.jsx("div",{className:F5.ResizeHandleInner,children:s.jsx(x$,{className:"".concat(F5.Icon," ").concat(e?"rotate-90":""," text-slate-300 dark:text-slate-500"),type:"resize-vertical"})})})}function q2e(c){var d=c,{children:e,isLastPanel:t=!1,hasPanel:r=!0,hasResizeHandle:n=!0,isVertical:a=!1,isCollapsible:o=!1}=d,i=Ce(d,["children","isLastPanel","hasPanel","hasResizeHandle","isVertical","isCollapsible"]);const[f,h]=m.useState(0);return r?s.jsxs(s.Fragment,{children:[s.jsx(zb,re(R({style:{width:"".concat(f,"%")},collapsible:o,onResize:p=>{h(p)}},i),{children:e})),!t&&n&&s.jsx(vU,{isVertical:a})]}):e}const H5=["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 xU({board:e,boardColor:t,isDragPreview:r,isSubBoard:n,isDark:a,globalSearchTerm:o,isGlobalSearchBoardsOnly:i,isHistoryDragActive:c,dragOverBoardId:d,panelHeight:f,currentTabLayout:h,selectedItemIds:p,showDetailsItem:g,closeGlobalSearch:S,setShowDetailsItem:b,setCurrentTab:v,setSelectedItemId:w}){var he,we,Se,Ae,je,Le,Ee;const{t:C}=Tt(),j=m.useMemo(()=>{var He,Qe;return(Qe=(He=e.children)==null?void 0:He.map(Ze=>Ze.id))!=null?Qe:[]},[e]),{updateItemById:E,updateItemByIdPending:N}=Bi(),M=Ve(!1),P=m.useRef(null),D=m.useRef(null),A=Ve(!1),O=Ve(!1),{isBoardHasChildren:$}=xt(kn),H=m.useRef(null),z=ea.value===Co,I=XC.value===e.id&&!o,{setNodeRef:W,listeners:_,isDragging:K}=NE({disabled:c||z||!!Fs.value||!!qa.value,id:e.id,data:{type:"board",isSubBoard:n,board:e}}),V=e.id===cf.value,U=e.name===C("Moved Clips Panel",{ns:"dashboard"}),X=e.id===rv.value,G=Xc.value===e.id,F=V||X,q=e.color||t||"slate",Y=e.borderWidth===0?n?"border":"border-none":e.borderWidth===1?"border":"border-[".concat(e.borderWidth,"px]"),se=((he=e.layout)==null?void 0:he.startsWith("flex"))||!1,ee=e.layout==="flex-nowrap"||!1,ae=((we=e.layout)==null?void 0:we.startsWith("grid"))||!1,oe=parseInt((Ae=(Se=e.layout)==null?void 0:Se.split("grid-cols-")[1])!=null?Ae:"",10)||2,le=bl.value===e.id&&!o,ue=d===e.id,ce=Pf("".concat(ue?"bg-blue-200 dark:bg-blue-400 border-blue-300 dark:border-blue-300":"".concat(Md(q,"200")," ").concat(Sy(q,"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(G?"border-2 border-red-300 bg-red-100":""," ").concat(U?"border-2 ".concat(Sy(q,"300","700")," border-opacity-70 dark:border-opacity-70"):""," ").concat(n?"border-opacity-50 dark:border-opacity-50":"border-opacity-60 dark:border-opacity-60"," ").concat(Y," ").concat(z?"hover:bg-blue-100":""," ").concat(I?"pulse-clip":""),{variants:{dragging:{over:"border-2 border-dashed border-blue-400 dark:border-blue-500",overlay:"".concat(Sy(q,"300","700")," opacity-70 border-2")}}});return m.useEffect(()=>{var He;I&&((He=H==null?void 0:H.current)==null||He.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),setTimeout(()=>{XC.value=null},1e3))},[I,H==null?void 0:H.current]),s.jsxs(lN,{ref:Ii(H,Fs.value||qa.value?null:W),className:ce({dragging:r?"overlay":K?"over":void 0}),children:[s.jsxs(Em,{onOpenChange:He=>{M.value=He,Xc.value=null},children:[s.jsx(Nm,{disabled:F,ref:O.value?D:null,children:s.jsxs(Wge,re(R({onMouseEnter:()=>{O.value=!0},onMouseLeave:()=>{O.value=!1},onClick:()=>{O.value=!0},className:"p-1 px-4 pt-2 pb-0 pr-2 flex flex-row relative"},!bo.value&&!F?_:{}),{children:[F?s.jsx(Eve,{boardName:e.name,boardSubtitle:e.description,scrollRef:H,isNewBoard:V,boardColor:e.color,boardBorderWidth:(je=e.borderWidth)!=null?je:0,boardId:e.id}):s.jsxs("div",{className:"overflow-hidden",children:[s.jsxs("div",{className:"cursor-default flex items-center",children:[s.jsx($l,{icon:e.icon,size:17,isBoard:!0,className:"mr-1.5",description:e.showDescription?null:e.description,iconVisibility:e.iconVisibility,isHover:!0,children:U&&s.jsx(Xie,{size:17,className:"mr-1.5"})}),o?s.jsx(J,{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:()=>{v==null||v(e.tabId),XC.value=e.id,S==null||S()},children:i?dl(e.name,o):e.name}):s.jsx(J,{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")&&s.jsx($e,{text:e.description,className:"!px-2 !py-1",delayDuration:300,isCompact:!0,isDisabled:r||!O.value,sideOffset:10,side:"bottom",children:s.jsx("div",{className:"ml-0.5 pl-1 text-primary/50 cursor-pointer hover:opacity-100 ".concat(O.value?"opacity-80":"opacity-0"),children:s.jsx(iB,{size:17})})})]}),e.description&&e.showDescription&&s.jsx("div",{onClick:()=>{A.value=!A.value},className:"!font-light text-xs cursor-default hover:opacity-100 opacity-70 hover:animate-in ".concat(A.value?"":"line-clamp-2"," mt-0.5"),children:e.description})]}),!F&&s.jsx("div",{className:"flex flex-row ml-auto opacity-0 animate-in fade-in ".concat(O.value||M.value||bo.value||le?"opacity-100":""," !mt-0"),children:r?s.jsx(sw,{size:18}):s.jsx(ve,{className:"flex-row items-start relative",children:bo.value?s.jsx(rn,re(R({},_),{className:"p-1 text-primary/50 h-auto cursor-grab absolute right-0 top-[-3px] hover:".concat(Md(e.color,"200")),children:s.jsx(tw,{size:18})})):le?s.jsxs(ke,{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:()=>{bl.value=null},children:[s.jsx(J,{className:"whitespace-nowrap",children:C("Done",{ns:"common"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:14})})]}):!o&&s.jsx(ke,{title:C("Board Menu",{ns:"dashboard"}),variant:"ghost",size:"mini",className:"p-1 text-secondary-foreground/50 ".concat(Md(e.color,"200")," dark:hover:bg-").concat(e.color,"-800 hover:").concat(Md(e.color,"200")," bg-opacity-80 cursor-pointer rounded-md !mt-0 flex absolute right-0 top-[-3px]"),onClick:()=>{var Ze,mt,Ke;const He=(Ze=P==null?void 0:P.current)==null?void 0:Ze.getBoundingClientRect().x,Qe=(mt=P==null?void 0:P.current)==null?void 0:mt.getBoundingClientRect().y;(Ke=D==null?void 0:D.current)==null||Ke.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:He&&He+10,clientY:Qe&&Qe+30}))},ref:P,children:s.jsx(Hi,{size:18})})})}),o&&e.tabName&&s.jsx(ft,{onClick:()=>{v==null||v(e.tabId),S==null||S()},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})]}))}),s.jsx(I2e,{itemId:e.id,itemParentId:e.parentId,icon:e.icon,iconVisibility:e.iconVisibility,isEdit:X,isShowDescription:e.showDescription,hasDescription:!!e.description,setEditBoard:He=>{rv.value=He},onShowDescriptionChange:(He,Qe)=>{E({updatedItem:{showDescription:Qe,itemId:He}})}})]}),s.jsxs(Of,{className:"m-0 p-0 pb-2 pr-3 pl-2 relative h-full",children:[s.jsxs(em,{defer:!0,options:{overflow:{x:"hidden"},scrollbars:{theme:a?"os-theme-light":"os-theme-dark",autoHide:"move"}},style:{maxHeight:n||h==="auto"?400:e.showDescription&&e.description&&f?f-(F?156:90):f&&f-(F?126:60)},children:[(c||z)&&!Fs.value&&!qa.value&&s.jsx(Kge,{board:e,isNewClip:z,isCreatingClip:Mu.value===e.id}),s.jsx(D3,{items:j,strategy:()=>null,disabled:c||z,children:((Le=e.children)==null?void 0:Le.length)&&Z2e(e.children,e.layoutSplit||1).map((He,Qe)=>He.length>0&&s.jsxs("div",{children:[Qe>0&&s.jsx(P6,{className:"mt-2 mb-1 ml-1",color:q}),s.jsx(em,{defer:!0,style:{width:"100%"},options:{scrollbars:{theme:a?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:s.jsx("div",{className:"".concat(se?"flex":"grid"," ").concat(ee?"flex-nowrap":"flex-wrap"," justify-normal gap-2.5 items-start mt-2.5 mb-1 ml-1 ").concat(ae?e.layout:""),children:He==null?void 0:He.map(Ze=>{const mt=Fs.value===Ze.id;return s.jsx("div",{className:"".concat(mt?"min-w-[265px] duration-100 ":"min-w-[140px] "," ").concat(e.layoutItemsMaxWidth?e.layoutItemsMaxWidth:mt||qa.value===Ze.id?"max-w-full":"max-w-fit"," hover:z-100 ").concat(se?e.layout:""),children:Ze.type===Hs?s.jsx(h2,{isHistoryDragActive:c,dragOverBoardId:d,isDark:a,board:Ze,boardColor:q,currentTabLayout:h,isSubBoard:!0,selectedItemIds:p,setSelectedItemId:w,showDetailsItem:g,setShowDetailsItem:b}):Ze.type===Co&&s.jsx(CN,{clip:Ze,boardColor:q,globalSearchTerm:o,isGlobalSearchBoardsOnly:i,closeGlobalSearch:S,isDark:a,isClipDelete:Ho.value===Ze.id,isClipEdit:mt||qa.value===Ze.id,canReorangeItems:F||le,isShowOrganizeLayoutValue:bo.value,isHistoryDragActive:c,isShowDetails:g===Ze.id,setShowDetailsItem:b,setSelectedItemId:w,isSelected:p.includes(Ze.id),selectedOrder:p.indexOf(Ze.id)+1})},Ze.id)})})})]},Qe))})]}),F&&s.jsxs(s.Fragment,{children:[s.jsx(wr,{h:11}),s.jsxs(ve,{className:"justify-between w-full pl-2 pr-2 mt-2 absolute bottom-1 left-0",children:[s.jsx(Vge,{boardName:e.name,isNewBoard:V,boardId:e.id}),s.jsx(ve,{className:"w-full scroll-h-tabs-wrap",children:$(e.id)&&s.jsx(Wr,{style:{minWidth:"100%"},children:s.jsx(Cl,{className:"min-w-[280px] flex flex-row mt-[2px]",title:C("Change Layout",{ns:"dashboard"}),activationMode:"manual",value:e.layout||"flex-auto",onValueChange:He=>pe(this,null,function*(){N||(yield E({updatedItem:{layout:He,itemId:e.id}}))}),children:s.jsxs(ve,{className:"w-full",children:[s.jsxs(ve,{className:"mr-2",children:[e.layoutSplit>1&&s.jsx(ft,{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:s.jsx(J,{className:"font-mono text-slate-400 font-semibold",children:e.layoutSplit})}),s.jsx(ke,{variant:"light",title:C("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:s.jsx(yae,{size:18,className:"opacity-70"})})]}),s.jsx(ve,{className:"mr-0.5",children:s.jsx(ft,{variant:"outline",title:C("Layout Max Width",{ns:"dashboard"}),onClick:()=>{let He=H5.findIndex(Ze=>Ze===e.layoutItemsMaxWidth);He===-1?He=0:He=(He+1)%H5.length;const Qe=H5[He];E({updatedItem:{layoutItemsMaxWidth:Qe,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:s.jsx(J,{className:"text-slate-400 font-semibold text-md uppercase",children:e.layoutItemsMaxWidth?(Ee=e.layoutItemsMaxWidth)==null?void 0:Ee.replace("max-w-",""):"fit"})})}),s.jsxs(si,{className:"self-center text-primary/40",children:[s.jsx(En,{value:"flex-auto",className:"text-xs px-2 py-1",children:s.jsx(T$,{size:18,className:"opacity-70"})}),s.jsx(En,{value:"flex-1",className:"text-xs px-2 py-1",children:s.jsx(loe,{size:18,className:"opacity-60 transform -scale-y-100"})}),s.jsx(En,{value:"flex-nowrap",className:"text-xs px-2 py-1",children:s.jsx(gne,{size:18,className:"opacity-60"})}),s.jsx(En,{value:"grid-cols-".concat(oe),className:"text-xs px-2 py-1",children:s.jsx(J3,{size:18,className:"opacity-60",onClick:He=>{He.stopPropagation(),E({updatedItem:{layout:"grid-cols-".concat(oe>3?1:oe+1),itemId:e.id}})}})})]}),ae&&s.jsx(ft,{title:C("Number of columns",{ns:"dashboard"}),onClick:()=>{E({updatedItem:{layout:"grid-cols-".concat(oe>3?1:oe+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:s.jsx(J,{className:"font-mono text-slate-400 font-semibold",children:oe})})]})})})}),s.jsx(ke,{variant:"light",title:"".concat($(e.id)?C("Done",{ns:"common"}):""),onClick:()=>{if(Fl.value){On.value=!0;return}xb()},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:$(e.id)?s.jsx(Bt,{size:19}):s.jsxs(s.Fragment,{children:[s.jsx(Bt,{size:19,className:"mr-1"}),C("Done",{ns:"common"})]})})]})]})]})]})}const h2=m.memo(xU);function K2e({board:e,isDragPreview:t,isDark:r,isSubBoard:n,isHistoryDragActive:a,dragOverBoardId:o,panelHeight:i,currentTabLayout:c,selectedItemIds:d,showDetailsItem:f,setShowDetailsItem:h,order:p,isLastBoard:g,setSelectedItemId:S}){return s.jsx(q2e,{defaultSize:20,isCollapsible:!1,minSize:10,order:p,hasResizeHandle:!t,isLastPanel:g,children:s.jsx(h2,{board:e,boardColor:e.color,order:p,panelHeight:i,isHistoryDragActive:a,dragOverBoardId:o,currentTabLayout:c,isSubBoard:n,selectedItemIds:d,setSelectedItemId:S,showDetailsItem:f,setShowDetailsItem:h,isDark:r,isDragPreview:t},e.id)})}const G2e=m.memo(K2e);function Y2e({children:e}){return e}function Z2e(e,t){const r=e.length,n=Math.ceil(r/t),a=Array.from({length:t},()=>[]);return e.forEach((o,i)=>{const c=Math.min(Math.floor(i/n),t-1);a[c].push(o)}),a}var Ro=(e=>(e.FOLDER="folder",e.SEPARATOR="separator",e.ITEM="item",e.DISABLED="disabled",e))(Ro||{}),Ni=(e=>(e.TAB="tab",e.BOARD="board",e.CLIP="clip",e))(Ni||{});function X2e(e){return s.jsx("svg",{viewBox:"0 0 25 25",className:e.className,xmlns:"http://www.w3.org/2000/svg",children:s.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 Q2e=({selectedItemIds:e,hasPinnedItemsInSelected:t,hasFavoriteItemsInSelected:r,setSelectedItemIds:n})=>{const{deleteItemsByIds:a}=e0e(),{t:o}=Tt(),[,,,i]=Lf({}),[,,c]=Rf({}),{updateItemByIds:d}=Kme(),{copyPasteSequencePinnedDelay:f,setCopyPasteSequencePinnedDelay:h,copyPasteSequenceIsReversOrder:p,setCopyPasteSequenceIsReversOrder:g}=xt(Rn),{currentCollectionId:S}=xt(kn);return s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,className:"animate-in fade-in",children:s.jsxs(ke,{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:[s.jsx(X2e,{className:"w-[24px]",lightingColor:"white"}),e.length>0&&s.jsx(ft,{variant:"slate",className:"absolute left-[-12px] top-[-12px]",children:e.length})]})}),s.jsxs(_r,{className:"w-52",sideOffset:10,align:"center",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:[s.jsxs(ze,{disabled:e.length===0,onClick:()=>{n([])},children:[s.jsx(IE,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:o("Deselect All",{ns:"common"})})]}),s.jsx(rr,{}),s.jsxs(ze,{disabled:e.length===0,onClick:()=>pe(void 0,null,function*(){yield c([...e]),n([])}),children:[s.jsx(aa,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:o("Sequence Copy",{ns:"common"})})]}),s.jsxs(ze,{disabled:e.length===0,onClick:()=>pe(void 0,null,function*(){yield i([...e]),n([])}),children:[s.jsx(ms,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:o("Sequence Paste",{ns:"common"})})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsxs(ve,{className:"flex w-full",children:[s.jsx(Sle,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:o("Next Delay",{ns:"common"})}),s.jsxs(ft,{variant:"slate",className:"ml-auto py-0 bg-slate-200 text-slate-500",children:[f,"s"]})]})}),s.jsxs(Ns,{className:"w-48",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:o("Sequence Next Delay",{ns:"common"})}),s.jsx(nr,{checked:f===1,onSelect:b=>{b.preventDefault(),h(1)},children:s.jsxs(J,{children:["1 ",o("second",{ns:"common"})]})}),s.jsx(nr,{checked:f===2,onSelect:b=>{b.preventDefault(),h(2)},children:s.jsxs(J,{children:["2 ",o("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:f===3,onSelect:b=>{b.preventDefault(),h(3)},children:s.jsxs(J,{children:["3 ",o("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:f===4,onSelect:b=>{b.preventDefault(),h(4)},children:s.jsxs(J,{children:["4 ",o("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:f===5,onSelect:b=>{b.preventDefault(),h(5)},children:s.jsxs(J,{children:["5 ",o("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:f===10,onSelect:b=>{b.preventDefault(),h(10)},children:s.jsxs(J,{children:["10 ",o("seconds",{ns:"common"})]})})]})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsxs(ve,{className:"flex w-full",children:[s.jsx($ie,{className:"mr-2 h-4 w-4"}),s.jsxs(J,{children:[o("Reverse Order",{ns:"common"}),"..."]}),s.jsx(ft,{className:"ml-auto py-0 bg-slate-200 text-slate-500",variant:"slate",children:p?"Yes":"No"})]})}),s.jsxs(Ns,{className:"w-48",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{children:o("Sequence Reverse Order",{ns:"common"})})}),s.jsx(nr,{checked:!p,onSelect:b=>{b.preventDefault(),g(!1)},children:s.jsx(J,{children:o("No",{ns:"common"})})}),s.jsx(nr,{checked:p,onSelect:b=>{b.preventDefault(),g(!0)},children:s.jsx(J,{children:o("Yes",{ns:"common"})})})]})]}),s.jsx(rr,{}),s.jsxs(ze,{onClick:()=>{d({updatedData:{isPinned:!0},itemIds:e}),n([])},children:[s.jsx(dc,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:o("Pin Selected",{ns:"common"})})]}),t&&s.jsxs(ze,{onClick:()=>{d({updatedData:{isPinned:!1},itemIds:e}),n([])},children:[s.jsx(hf,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:o("UnPin Selected",{ns:"common"})})]}),s.jsx(rr,{}),s.jsxs(ze,{onClick:()=>{d({updatedData:{isFavorite:!0},itemIds:e}),n([])},children:[s.jsx(Mf,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:o("Star Selected",{ns:"common"})})]}),r&&s.jsxs(ze,{onClick:()=>{d({updatedData:{isFavorite:!1},itemIds:e}),n([])},children:[s.jsx(aw,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:o("Remove Selected Star",{ns:"common"})})]}),s.jsx(rr,{}),s.jsxs(ze,{disabled:e.length===0,onClick:b=>pe(void 0,null,function*(){Ll.value?(yield a({itemIds:e,collectionId:S}),setTimeout(()=>{n([]),Ll.value=!1},400)):(b.preventDefault(),Ll.value=!0,setTimeout(()=>{Ll.value=!1},3e3))}),children:[s.jsx(dn,{className:"mr-2 h-4 w-4 ".concat(Ll.value?"text-red-500":"")}),s.jsxs(ve,{className:"text-red-400",children:[s.jsx(J,{className:"mr-1 ".concat(Ll.value?"!text-red-500":""),children:Ll.value?o("Click to Confirm",{ns:"common"}):o("Delete",{ns:"common"})}),e.length>0&&s.jsx(s.Fragment,{children:Ll.value?s.jsx(ft,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:e.length}):s.jsx(ft,{variant:"secondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:e.length})})]})]})]})]})};function J2e({tabId:e}){const{t}=Tt();return e==null?null:s.jsx(u1,{children:s.jsxs(_m,{children:[s.jsxs($t,{onClick:()=>{bo.value=!0},children:[t("Organize Layout",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(nie,{size:15})})]}),s.jsx(tn,{}),s.jsxs($t,{onClick:()=>{qh.value=!0},children:[t("Edit Tabs",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(Nae,{size:15})})]})]})})}const{CLIP:ewe,TAB:kD,BOARD:twe}=Ni;function CD({totalTabs:e,onCreateNewItemType:t,isFirstTab:r}){const{t:n}=Tt(),a=Am();return s.jsxs(Dr,{defaultOpen:r,modal:!1,children:[s.jsx(Ar,{className:"mr-1.5 rounded-sm flex",asChild:!0,children:r?s.jsx(Q,{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:s.jsx(Pn,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})}):s.jsx(ke,{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:s.jsx($e,{text:"".concat(n("Add New",{ns:"contextMenus"})," ..."),isDisabled:r,delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Pn,{size:20})})})}),s.jsxs(_r,{align:r?"center":"end",alignOffset:-28,sideOffset:r?12:8,children:[!r&&s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{t(ewe)},children:[s.jsx(WE,{size:16,className:"mr-2"}),s.jsx("span",{children:n("Add Clip",{ns:"contextMenus"})})]}),!r&&s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{t(twe)},children:[s.jsx(uv,{size:16,className:"mr-2"}),s.jsx("span",{children:n("Add Board",{ns:"contextMenus"})})]}),r?s.jsxs(s.Fragment,{children:[s.jsx(ze,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:n("Dashboard",{ns:"contextMenus"})}),s.jsx(rr,{}),s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{t(kD)},children:[s.jsx(Vp,{size:16,className:"mr-2"}),s.jsx("span",{children:n("Add First Tab",{ns:"contextMenus"})})]})]}):s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{!a&&e&&e>=2?Ru.value=!0:t(kD)},children:[s.jsx(Vp,{size:16,className:"mr-2"}),s.jsx("span",{children:n("Add Tab",{ns:"contextMenus"})}),e&&e>=2&&s.jsx(sc,{})]})]})]})}const Ad=1,Ag=50;function rwe({tabs:e,selectedItemIds:t,setSelectedItemIds:r,pinnedItemIds:n,currentTab:a,setCurrentTab:o}){var P,D;const{clipboardHistory:i}=xt(wl),{t:c}=Tt(),{updateTabById:d}=NH(),f=m.useRef(null),h=m.useRef(null),p=Ve(!1),{updateMovedClips:g}=Mw();m.useEffect(()=>{ea.value&&(ea.value=null)},[]);const{createNewItem:S}=Pw(ol.value===null),{currentCollectionId:b,clipItems:v}=xt(kn),w=(P=e.find(A=>A.tabId===a))==null?void 0:P.tabColor;function C(A,O=null){return pe(this,null,function*(){if(ea.value=A,A===Ni.BOARD){const $=ta(v,a,O?O==null?void 0:O.toString():null),H={name:c("New Board",{ns:"dashboard"}),isBoard:!0,tabId:a,showDescription:!0,color:w,borderWidth:0,parentId:O,collectionId:b,orderNumber:0},z=yield S({item:H});$.sort((W,_)=>W.orderNumber-_.orderNumber).unshift(re(R({},H),{id:z,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1,description:""}));const I=$.map((W,_)=>({itemId:W.id,parentId:O,tabId:W.tabId,collectionId:b,orderNumber:_}));g({updatedMoveClips:I}),cf.value=z}else A===Ni.CLIP&&(ea.value=A)})}function j(A,O=null){return pe(this,null,function*(){return new Promise(($,H)=>pe(this,null,function*(){var X,G,F,q,Y,se,ee,ae,oe,le,ue,ce,he,we,Se,Ae,je,Le;O||H("No board id");const z=A?i.find(Ee=>Ee.historyId===A):null,I=z==null?void 0:z.isImage,W=(X=v.find(Ee=>Ee.itemId===O))==null?void 0:X.color,_={historyId:A,name:z!=null&&z.value?z.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():I?"".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:(G=xd.value)!=null?G:"",description:null,detectedLanguage:(F=z==null?void 0:z.detectedLanguage)!=null?F:null,isImage:(q=z==null?void 0:z.isImage)!=null?q:!1,imageDataUrl:(Y=z==null?void 0:z.imageDataUrl)!=null?Y:null,imagePathFullRes:(se=z==null?void 0:z.imagePathFullRes)!=null?se:null,imageHeight:(ee=z==null?void 0:z.imageHeight)!=null?ee:null,imageWidth:(ae=z==null?void 0:z.imageWidth)!=null?ae:null,imagePreviewHeight:(oe=z==null?void 0:z.imagePreviewHeight)!=null?oe:null,isLink:(le=z==null?void 0:z.isLink)!=null?le:!1,links:(ue=z==null?void 0:z.links)!=null?ue:null,isImageData:(ce=z==null?void 0:z.isImageData)!=null?ce:!1,isMasked:(he=z==null?void 0:z.isMasked)!=null?he:!1,isVideo:(we=z==null?void 0:z.isVideo)!=null?we:!1,isCode:(Se=z==null?void 0:z.isCode)!=null?Se:!1,isText:(Ae=z==null?void 0:z.isText)!=null?Ae:!1,hasEmoji:(je=z==null?void 0:z.hasEmoji)!=null?je:!1,hasMaskedWords:(Le=z==null?void 0:z.hasMaskedWords)!=null?Le:!1,hasMultiLineCopy:!1,tabId:a,showDescription:!1,color:W,borderWidth:2,parentId:O,collectionId:b,createdAt:0,orderNumber:0},K=yield S({item:_});xd.value&&(xd.value=null),Mu.value=O;const V=ta(v,a,O==null?void 0:O.toString());V.sort((Ee,He)=>Ee.orderNumber-He.orderNumber).unshift(re(R({},_),{id:K,type:"clip"}));const U=V.map((Ee,He)=>({itemId:Ee.id,parentId:Ee.parentId,tabId:Ee.tabId,collectionId:b,orderNumber:He}));setTimeout(()=>pe(this,null,function*(){yield g({updatedMoveClips:U}),$(K)}),600)}))})}m.useEffect(()=>{function A(){return pe(this,null,function*(){var $;let O=null;if(ol.value&&!Mu.value){for(const H of($=Wp.value)!=null?$:[null])O=yield j(H,ol.value);setTimeout(()=>{Mu.value=null,ol.value=null,Wp.value=null,xd.value=null,qa.value=O},300)}})}A()},[ol.value]),m.useEffect(()=>{function A(){return pe(this,null,function*(){yield C(Ni.BOARD,Q0.value),ky.value=!1,Q0.value=null})}(Q0.value||ky.value)&&A()},[Q0.value,ky.value]);const{tabLayoutSplit:E,tabLayout:N}=(D=e.find(A=>A.tabId===a))!=null?D:{},M=e.length===0&&!ea.value&&!qh.value;return s.jsxs(s.Fragment,{children:[s.jsxs(Cl,{className:"flex ".concat(Md(w)," rounded-lg py-0 mx-1.5 ").concat(M?"flex-col items-center justify-center pb-2 mb-1":"mb-3 mr-3"),onValueChange:A=>{o(A)},value:a,children:[s.jsxs(Em,{onOpenChange:A=>{p.value=A},children:[s.jsxs(Nm,{ref:h,className:"flex w-full",disabled:M,children:[!M&&s.jsx(ve,{className:"justify-start dashboard-tabs w-full",children:s.jsx(Wr,{style:{width:"97%"},children:qh.value?s.jsxs(si,{className:"bg-transparent pr-0.5",children:[e.map(({tabId:A,tabName:O,tabIsHidden:$,tabColor:H,tabOrderNumber:z})=>A&&!$&&s.jsx(nwe,{tabColor:H,tabId:A,tabName:O||"".concat(c("Tab",{ns:"dashboard"})," ").concat(z+1),currentTab:a},A)),ea.value===Ni.TAB?s.jsx(SD,{newTabOrderNumber:e.length+1}):s.jsx(ke,{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:()=>{C(Ni.TAB)},children:s.jsx(Pn,{size:18})})]}):s.jsxs(si,{className:"bg-transparent pr-0.5",children:[e.map(({tabId:A,tabName:O,tabIsHidden:$,tabOrderNumber:H})=>A&&!$&&s.jsx(swe,{tabId:A,currentTabColor:w!=null?w:"slate",tabOrderNumber:H,tabName:O||"".concat(c("Tab",{ns:"dashboard"})," ").concat(H+1),currentTab:a},A)),ea.value===Ni.TAB&&s.jsx(SD,{newTabOrderNumber:e.length+1})]})})}),s.jsx(Q,{className:"flex flex-row p-1 !mt-0 mr-0.5",children:bo.value?s.jsxs(s.Fragment,{children:[E&&s.jsxs(ve,{className:"mr-2",children:[E>1&&s.jsx(ft,{onClick:()=>{d({updatedTab:{tabLayoutSplit:E>3?1:E+1,tabId:a}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:s.jsx(J,{className:"font-mono text-slate-400 font-semibold",children:E})}),s.jsxs(ke,{variant:"light",title:c("Board Layout Split",{ns:"dashboard"}),onClick:()=>{d({updatedTab:{tabLayoutSplit:E>3?1:E+1,tabId:a}})},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&&s.jsx(Sie,{size:18,className:"opacity-70"}),E===2&&s.jsx(Fae,{size:18,className:"opacity-70"}),E===3&&s.jsx(Hae,{size:18,className:"opacity-70"}),E===4&&s.jsxs(s.Fragment,{children:[s.jsx(J3,{size:18,className:"opacity-70"}),s.jsx(J3,{size:18,className:"opacity-70 ml-[-2px]"})]})]})]}),s.jsxs(ve,{className:"mr-2",children:[s.jsx(ft,{onClick:()=>{d({updatedTab:{tabLayoutSplit:E,tabLayout:N==="full"?"auto":N==="auto"||!N?"full":"auto",tabId:a}})},variant:"outline",className:"bg-white border border-white dark:bg-slate-500 dark:border-slate-500 cursor-pointer px-1.5 mr-1",children:s.jsx(J,{className:"font-mono text-slate-400 font-semibold",children:N||"auto"})}),s.jsxs(ke,{variant:"light",title:c("Board Layout Height",{ns:"dashboard"}),onClick:()=>{d({updatedTab:{tabLayoutSplit:E,tabLayout:N==="full"||!N?"auto":N==="auto"?"full":"auto",tabId:a}})},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)&&s.jsx(T$,{size:18,className:"opacity-70"}),N==="full"&&s.jsx(oa,{size:18,className:"opacity-70"})]})]}),s.jsxs(ke,{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:()=>{bo.value=!1,bl.value=null},children:[s.jsx(J,{className:"whitespace-nowrap",children:c("Done Organize",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:15})})]})]}):qh.value?s.jsxs(ke,{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:()=>{qh.value=!1,bl.value=null},children:[s.jsx(J,{className:"whitespace-nowrap",children:c("Done Edit Tabs",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:15})})]}):ea.value===Co?s.jsxs(ke,{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:()=>{ea.value=null,xd.value=null},children:[s.jsx(J,{className:"whitespace-nowrap",children:c("Done Create Clip",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:15})})]}):rv.value!=null||Fs.value!=null?s.jsxs(ke,{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:()=>{rv.value=null,Fs.value=null},children:[s.jsx(J,{className:"whitespace-nowrap",children:c("Done Edit",{ns:"dashboard"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:15})})]}):s.jsxs(s.Fragment,{children:[t.length>0&&s.jsx(Q,{className:"animate-in fade-in duration-300",children:s.jsx(Q2e,{selectedItemIds:t,hasPinnedItemsInSelected:t.some(A=>n.includes(A)),hasFavoriteItemsInSelected:t.some(A=>{var O;return(O=v.find($=>$.itemId===A))==null?void 0:O.isFavorite}),setSelectedItemIds:r})}),e.length>0&&s.jsxs(s.Fragment,{children:[s.jsx(CD,{totalTabs:e.length,onCreateNewItemType:C,isFirstTab:!1}),s.jsx(ke,{variant:"ghost",size:"mini",className:"px-1 py-1 text-secondary-foreground/50 cursor-pointer !mt-0 flex w-[30px]",onClick:()=>{var $,H,z;const A=($=f==null?void 0:f.current)==null?void 0:$.getBoundingClientRect().x,O=(H=f==null?void 0:f.current)==null?void 0:H.getBoundingClientRect().y;(z=h==null?void 0:h.current)==null||z.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:A&&A+20,clientY:O&&O+20}))},ref:f,children:s.jsx($e,{text:c("Tabs Menu",{ns:"dashboard"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Hi,{size:20})})})]})]})})]}),s.jsx(J2e,{tabId:a})]}),M&&s.jsx(CD,{onCreateNewItemType:C,isFirstTab:!0})]}),M&&s.jsx(J,{className:"text-sm mt-2 !text-slate-500 items-center justify-center mx-1.5 mr-3",children:c("Create Tab",{ns:"dashboard"})})]})}function SD({newTabOrderNumber:e}){const{t}=Tt(),{createNewTab:r}=s0e(),{currentCollectionId:n}=xt(kn),a=Ve(!1),o=Ve(""),i=Ve(null);return s.jsxs(ve,{className:"ml-1.5",children:[s.jsx(Q,{className:"w-[22px] mr-1",children:s.jsx(Ww,{color:i.value,type:ll,itemId:null,onColorChange:c=>{i.value=c}})}),s.jsx($e,{open:a.value,text:o.value.length<=Ad?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:s.jsx(sr,{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:c=>pe(this,null,function*(){c.stopPropagation(),c.key==="Enter"&&(o.value.length<=Ad||o.value.length>Ag)?a.value=!0:c.key==="Enter"&&(yield r({tab:{tabName:o.value,tabColor:i.value,collectionId:n,tabOrderNumber:e}}))}),value:o.value,onChange:c=>{(a.value&&c.target.value.length>Ad&&c.target.value.length<=Ag||a.value&&c.target.value.length===0)&&(a.value=!1),o.value=c.target.value}})}),s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:()=>pe(this,null,function*(){a.value||(yield r({tab:{tabName:o.value,tabColor:i.value,collectionId:n,tabOrderNumber:e}}))}),children:s.jsx($e,{text:t("Create tab",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Bt,{size:18})})}),s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{ea.value=null},children:s.jsx($e,{text:t("Cancel",{ns:"dashboard"}),isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Ur,{size:18})})})]})}function nwe({tabId:e,tabName:t,tabColor:r,currentTab:n}){const{t:a}=Tt(),o=Ve(!1),i=Ve(""),c=Ve(!1);if(!t)return null;m.useEffect(()=>{c.value&&(c.value=!1)},[n]);const d=Ve(!1),f=Ve(!1),{tabHasBoards:h,setCurrentTab:p}=xt(kn),{deleteItemById:g}=a0e(),{updateTabById:S}=NH();return s.jsx(ve,{className:"inline-flex items-center whitespace-nowrap rounded-sm px-1.5 pr-2 ".concat(c.value?"":"py-1.5"," ").concat(n===e&&!c.value?"bg-white dark:bg-gray-900/60":""," ").concat(f.value?"bg-red-100/80 dark:bg-red-900/70":""," ").concat(d.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?s.jsxs(s.Fragment,{children:[s.jsx($e,{open:o.value,asChild:!0,text:i.value.length<=Ad?a("Too short",{ns:"dashboard"}):a("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:s.jsx(sr,{small:!0,autoFocus:!0,className:"bg-white rounded-md text-sm font-semibold max-w-[200px] min-w-[120px]",placeholder:a("Enter tab name",{ns:"dashboard"}),onKeyDown:b=>pe(this,null,function*(){b.stopPropagation(),b.key==="Escape"?c.value=!1:b.key==="Enter"&&(i.value.length<=Ad||i.value.length>Ag)?o.value=!0:b.key==="Enter"&&(yield S({updatedTab:{tabName:i.value,tabId:e}}),setTimeout(()=>{c.value=!1},200))}),defaultValue:t,onChange:b=>{o.value&&b.target.value.length>Ad&&b.target.value.length<=Ag||o.value&&b.target.value.length===0?o.value=!1:(b.target.value.length<=Ad||b.target.value.length>Ag)&&(o.value=!0),i.value=b.target.value}})}),s.jsx($e,{text:a("Rename",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-blue-500 dark:text-blue-300 border-0",onClick:()=>pe(this,null,function*(){o.value||(yield S({updatedTab:{tabName:i.value,tabId:e}}),setTimeout(()=>{c.value=!1},200))}),children:s.jsx(Bt,{size:18})})})}),s.jsx($e,{text:a("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{c.value=!1},children:s.jsx(Ur,{size:18})})})})]}):s.jsxs(s.Fragment,{children:[s.jsx(Ww,{color:r,itemId:e,onOpen:()=>{p(e)},updateById:S,type:ll}),s.jsx(Q,{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}),s.jsx(Q,{onClick:()=>{c.value=!0},title:a("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:s.jsx(qp,{size:14})}),s.jsxs(ca,{defaultOpen:!1,open:f.value||d.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{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:a("Delete tab",{ns:"dashboard"}),onClick:()=>{h(e)?d.value=!0:f.value=!0},children:s.jsx(dn,{size:14})})}),s.jsx(Ws,{sideOffset:16,align:"center",className:"p-3 ".concat(d.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:()=>{f.value=!1,d.value=!1},onPointerDownOutside:()=>{f.value=!1,d.value=!1},children:d.value?s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{justify:"left",size:"md",weight:"bold",color:"waning",children:a("Tab is Not Empty",{ns:"dashboard"})}),s.jsx(wr,{h:1}),s.jsx(J,{color:"black",size:"sm",children:a("You'll need to clear this tab of all boards before it can be deleted.",{ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsx(ke,{variant:"secondary",size:"mini",className:"py-1 px-4 bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-700/80",onClick:()=>{d.value=!1},children:a("Got it",{ns:"common"})})]}):f.value&&s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block",children:s.jsx(na,{i18nKey:"Are you sure you want to delete <strong>{{tabName}}</strong> tab?",values:{tabName:t},ns:"dashboard"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{children:[s.jsx(ke,{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:()=>{f.value=!1},children:s.jsx("div",{children:a("Cancel",{ns:"common"})})}),s.jsx(ke,{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:()=>pe(this,null,function*(){yield g({tabId:e}),qh.value=!1,bl.value=null}),children:a("Delete Tab",{ns:"dashboard"})})]})]})})]})]})},e)}function swe({tabId:e,tabName:t,currentTabColor:r}){const{setNodeRef:n,listeners:a,transform:o,transition:i,isDragging:c}=NE({id:e,animateLayoutChanges:()=>!1,data:{type:ll,tabId:e}}),d={transition:i,transform:ei.Translate.toString(o)},f=r!=="slate"?"dark:data-[state=active]:bg-".concat(r,"-700"):"dark:data-[state=active]:bg-slate-600";return s.jsx(En,re(R({value:e,style:d,asChild:c},bo.value?{}:a),{ref:n,className:"".concat(f," data-[state=active]:bg-").concat(r,"-50 ").concat(c||Ol.value===e?"border-2 border-dashed border-blue-400 py-1":"transition-none"),children:s.jsxs(ve,{className:"justify-start max-w-[260px]",children:[s.jsx(Q,{className:"text-ellipsis overflow-hidden first-letter:uppercase",title:t,children:t}),(bo.value||c)&&s.jsx(Q,re(R({},a),{className:"pr-0 pl-1.5 py-0 text-primary/50 h-auto cursor-grab relative",children:c?s.jsx(l$,{size:14}):s.jsx(tw,{size:14})}))]})}),e)}const Hs="board",Co="clip",ll="tab";function awe({historyDragActive:e,isDark:t,dragOverBoardId:r}){var Mt,Rr,Me;B6();const{t:n}=Tt(),{isShowPinned:a,setIsShowPinned:o}=xt(xs),[i,c]=m.useState(null),[d,f]=m.useState(null),[h,p]=m.useState(null),g=m.useRef(null),S=m.useRef(null),{updateTabs:b}=n0e(),{invalidateCollectionWithClips:v,isCollectionWithClipsLoadingFinished:w,isCollectionWithClipsLoading:C}=U6(),{updateMovedClips:j}=Mw(),{movePinnedClipUpDown:E}=r0e(),[,,,N]=Lf({}),[,,M]=Rf({}),[P,D]=m.useState([]),[A,O]=m.useState(!1),$=m.useRef(null),H=Ve(!1),z=Ve(!1),I=Ve(!1),W=m.useMemo(()=>{var Ye;return S!=null&&S.current&&((Ye=S==null?void 0:S.current)==null?void 0:Ye.getSize())===0?!1:z.value||H.value},[H.value,z.value,S==null?void 0:S.current]),_=m.useMemo(()=>pr.value,[pr.value]),{createNewItem:K}=Pw(),{unPinAllClips:V}=t0e(),{updatePinnedClipsByIds:U}=EH(),{clipItems:X,pinnedClips:G,tabs:F,tabsLoaded:q,setCurrentTab:Y,setTabsByOrder:se,currentTab:ee,setClipItemsDebounced:ae,setClipItems:oe,currentCollectionId:le}=xt(kn),{copyPasteSequencePinnedDelay:ue,setCopyPasteSequencePinnedDelay:ce,copyPasteSequenceIsReversOrder:he,setCopyPasteSequenceIsReversOrder:we}=xt(Rn),Se=m.useMemo(()=>X.filter(({parentId:Ye,isBoard:Te,tabId:lt})=>Ye===null&&Te&<===ee).map(Ye=>Ye.itemId),[X]);m.useEffect(()=>{G.length===0&&(H.value=!1,z.value=!1)},[G]),m.useEffect(()=>{var Ye,Te;G.length>0?(Ye=S==null?void 0:S.current)==null||Ye.expand():(Te=S==null?void 0:S.current)==null||Te.collapse()},[G,S]);const[Ae,je]=m.useState(null),[Le,Ee]=m.useState(null),He=m.useCallback(Sr,[_,Ae,Le,X]),Qe=m.useCallback(Ye=>{D(Te=>Te.includes(Ye)?Te.filter(xe=>xe!==Ye):[...Te,Ye])},[D]),Ze=N3(Vh(tv,{activationConstraint:{tolerance:100,delay:600}}),Vh(ev,{coordinateGetter:F4})),mt=N3(Vh(tv,{activationConstraint:{tolerance:10,delay:60}}),Vh(ev,{coordinateGetter:F4})),Ke=m.useMemo(()=>P.some(Ye=>G.some(Te=>Te.id===Ye)),[P,G]),Lt=m.useMemo(()=>X.length>0?ta(X,ee):[],[X,ee]),qt={keyframes({transform:Ye}){return A||Ol.value||d?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:ei.Transform.toString(Ye.initial)},{opacity:0,transform:ei.Transform.toString(R({},Ye.final))}]},easing:"ease-out",duration:A?0:300,sideEffects({active:Ye,dragOverlay:Te}){Le||Ol.value||d?Te.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:qd.easing}):Ye.node.animate([{opacity:0},{opacity:1}],{duration:qd.duration,easing:qd.easing})}},Xt=m.useMemo(()=>X.filter(({isClip:Ye})=>Ye).map(Ye=>Ye.itemId),[X,Le]),Ge=m.useCallback(Ye=>{var be;const Te=yX(Ye),lt=Te.length>0?Te:kE(Ye);let xe=wE(lt,"id");if(xe!=null){if(xe in Xt){const De=X.map(Fe=>Fe.parentId===xe&&Fe.itemId);De.length>0&&(xe=(be=mX(re(R({},Ye),{droppableContainers:Ye.droppableContainers.filter(Fe=>Fe.id!==xe&&De.includes(Fe.id))}))[0])==null?void 0:be.id)}return g.current=xe,[{id:xe}]}return g.current?[{id:g.current}]:[]},[Ae,Le,Xt,X]),zt=m.useMemo(()=>e?Y2e:cI,[e]),{tabLayoutSplit:ir=1,tabLayout:Ft}=(Mt=F.find(Ye=>Ye.tabId===ee))!=null?Mt:{},et=((Rr=$==null?void 0:$.current)==null?void 0:Rr.getSizePixels())||0,cr=((Me=S==null?void 0:S.current)==null?void 0:Me.getSizePixels())||0;return m.useEffect(()=>{if(ji.value||Fs.value){const Ye=Fs.value||ji.value,Te=X.find(lt=>lt.itemId===Ye);Te!=null&&Te.tabId&&Y(Te.tabId),ji.value&&c(ji.value),setTimeout(()=>{ji.value=null},2e3)}},[ji.value,Fs.value]),s.jsxs(zt,{sensors:bo.value?mt:Ze,measuring:{droppable:{strategy:lf.Always}},collisionDetection:Ge,onDragStart:ar,onDragCancel:()=>{O(!0),je(null),Ee(null),v(),setTimeout(()=>{O(!1)},300)},onDragEnd:ur,onDragOver:He,children:[s.jsx(D3,{items:Se,strategy:()=>null,children:s.jsxs(i4,{autoSaveId:"ClipsDashboard",direction:"vertical",className:"flex pt-4",children:[a&&s.jsxs(s.Fragment,{children:[s.jsxs(zb,{collapsible:!0,ref:S,defaultSize:6,id:"pinned-clips",order:1,minSize:6,maxSize:30,className:"flex flex-col ".concat(Le?d?"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:[s.jsxs(S4,{id:"clips::pinnedzone",className:"w-full h-full",isActive:!!Le,children:[Le&&s.jsx(Q,{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:s.jsx(Q,{className:"border-2 ".concat(d?"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:d?s.jsx(J,{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:n("Drop to Pin",{ns:"dashboard"})}):s.jsx(dc,{size:18,className:"text-orange-500/80 dark:!text-orange-400/80 hover:text-orange-400 animate-in fade-in duration-300"})})}),s.jsx(kg,{disableWidth:!0,defaultHeight:cr-20,children:({height:Ye})=>s.jsx(Wr,{style:{height:Ye},onMouseEnter:()=>{H.value=!0},onMouseLeave:()=>{H.value=!1},onClick:()=>{H.value=!0},children:s.jsx(ve,{className:"flex flex-wrap justify-normal gap-2 items-start mt-3 mb-1 ml-1 relative ".concat(Le?"opacity-20":""),children:G.map((Te,lt)=>s.jsx(CN,{clip:Te,isDark:t,isDisabledPinnedMoveUp:lt===0,isDisabledPinnedMoveDown:lt===G.length-1,onMovePinnedUpDown:xe=>{E(xe)},isShowDetails:h===Te.id,setShowDetailsItem:p,setSelectedItemId:Qe,isSelected:P.includes(Te.id),selectedOrder:P.indexOf(Te.id)+1,boardColor:"gray",isShowOrganizeLayoutValue:bo.value||I.value,isPinnedBoard:!0},Te.id))})})})]}),G.length>0&&!Le&&s.jsxs(ve,{className:"justify-between absolute right-0 bottom-1 ".concat(I.value?"px-1":"px-2.5"," w-full"),onMouseEnter:()=>{H.value=!0},onMouseLeave:()=>{H.value=!1},onClick:()=>{H.value=!0},children:[a&&!I.value&&!bo.value&&s.jsxs(s.Fragment,{children:[s.jsxs(ve,{className:"animate-in fade-in duration-300 ".concat(e||d||!W?"opacity-0":""),children:[s.jsx(rn,{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:_?n("Sequence Paste",{ns:"common"}):n("Sequence Copy",{ns:"common"}),children:_?s.jsx(ms,{size:14,onClick:()=>{N(G.map(Ye=>Ye.id))}}):s.jsx(aa,{size:14,onClick:()=>{M(G.map(Ye=>Ye.id))}})}),s.jsxs(Dr,{onOpenChange:Ye=>{z.value=Ye},children:[s.jsx(Ar,{asChild:!0,children:s.jsx(o6,{variant:"outline",title:n("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:s.jsxs(J,{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:[ue,"s"]})})}),s.jsxs(_r,{className:"w-44",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{size:"xs",children:n("Sequence Copy Paste",{ns:"common"})})}),s.jsx(rr,{}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsxs(ve,{className:"flex w-full",children:[s.jsxs(J,{size:"xs",children:[n("Delay Next",{ns:"common"}),"..."]}),s.jsxs(ft,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[ue,"s"]})]})}),s.jsxs(Ns,{children:[s.jsx(nr,{checked:ue===1,onSelect:()=>{ce(1)},children:s.jsxs(J,{size:"xs",children:["1 ",n("second",{ns:"common"})]})}),s.jsx(nr,{checked:ue===2,onSelect:()=>{ce(2)},children:s.jsxs(J,{size:"xs",children:["2 ",n("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:ue===3,onSelect:()=>{ce(3)},children:s.jsxs(J,{size:"xs",children:["3 ",n("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:ue===4,onSelect:()=>{ce(4)},children:s.jsxs(J,{size:"xs",children:["4 ",n("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:ue===5,onSelect:()=>{ce(5)},children:s.jsxs(J,{size:"xs",children:["5 ",n("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:ue===10,onSelect:()=>{ce(10)},children:s.jsxs(J,{size:"xs",children:["10 ",n("seconds",{ns:"common"})]})})]})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsxs(ve,{className:"flex w-full",children:[s.jsxs(J,{size:"xs",children:[n("Reverse Order",{ns:"common"}),"..."]}),s.jsx(ft,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:he?n("Yes",{ns:"common"}):n("No",{ns:"common"})})]})}),s.jsxs(Ns,{children:[s.jsx(nr,{checked:!he,onSelect:()=>{we(!1)},children:s.jsx(J,{size:"xs",children:n("No",{ns:"common"})})}),s.jsx(nr,{checked:he,onSelect:()=>{we(!0)},children:s.jsx(J,{size:"xs",children:n("Yes",{ns:"common"})})})]})]})]})]})]}),s.jsxs(Q,{className:"animate-in fade-in duration-300 ".concat(e||d||!W?"opacity-0":""),children:[s.jsx(rn,{title:n("Reorder pinned",{ns:"common"}),onClick:()=>{I.value=!I.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:s.jsx(l$,{size:15})}),s.jsx(rn,{title:Ke?n("Deselect pinned",{ns:"common"}):n("Select pinned",{ns:"common"}),onClick:()=>{const Ye=P.filter(Te=>G.some(lt=>lt.id===Te));D(Ke?P.filter(Te=>!Ye.includes(Te)):P.concat(G.map(Te=>Te.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:s.jsx(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:Ke?s.jsx(rw,{size:15}):s.jsx(VE,{size:17})})}),s.jsx(qF,{onOpen:Ye=>{z.value=Ye},onCancel:()=>{setTimeout(()=>{z.value=!1,H.value=!1},300)},onConfirm:()=>{V({})},buttonClassName:"group !text-orange-400 hover:bg-transparent dark:hover:bg-transparent px-2 pr-0.5 rounded-sm py-0 h-5"})]})]}),I.value&&s.jsxs(ke,{onClick:()=>{I.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:[s.jsx(J,{size:"xs",className:"!text-orange-600 dark:!text-orange-300 mr-1",children:n("Done Reorder",{ns:"common"})}),s.jsx(Bt,{size:15})]})]}),w&&!Le&&s.jsx(rn,{title:n("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:s.jsxs(ve,{className:"font-medium text-xs gap-1",children:[s.jsxs("span",{children:[G.length>0?G.length:n(" No",{ns:"common"})," ",n("Pinned",{ns:"common",count:G.length})]}),s.jsx(Ur,{size:14})]})})]}),s.jsx(vU,{isVertical:!0})]}),!C&&q&&s.jsx(D3,{items:F.map(Ye=>Ye.tabId),disabled:e,strategy:TQ,children:s.jsx(rwe,{tabs:F,selectedItemIds:P,setSelectedItemIds:D,pinnedItemIds:G.map(Ye=>Ye.id),currentTab:ee,setCurrentTab:Y})}),s.jsx(zb,{collapsible:!1,order:2,ref:$,id:"boards",children:et>0&&s.jsx(kg,{disableWidth:!0,defaultHeight:et-20,children:({height:Ye})=>s.jsxs(Wr,{style:{height:Ye},children:[Lt.reduce((Te,lt,xe)=>{const be=Math.floor(xe/ir);return Te[be]||(Te[be]=[]),Te[be].push(lt),Te},[]).map((Te,lt)=>s.jsx(i4,{autoSaveId:"".concat(ee,"-panel-group-").concat(lt),className:"mb-3",style:{height:Ft==="full"?Ye-12:void 0},direction:"horizontal",children:Te.map((xe,be)=>s.jsx(G2e,{board:xe,isDark:t,panelHeight:Ye,isHistoryDragActive:e,dragOverBoardId:r,currentTabLayout:Ft==="full"?"full":"auto",order:xe.orderNumber,isLastBoard:be===Te.length-1,showDetailsItem:i,setShowDetailsItem:c,selectedItemIds:P,setSelectedItemId:Qe},"".concat(ee,"-").concat(lt,"-").concat(be)))},"".concat(ee,"-").concat(lt))),q&&!(Lt.length&&F.length)&&s.jsxs(s.Fragment,{children:[!Lt.length&&F.length>0&&s.jsx(ve,{className:"flex items-start justify-center w-full absolute top-4",style:{height:Ye},children:s.jsxs(ve,{className:"flex-col items-center justify-center",children:[s.jsxs(Dr,{defaultOpen:!0,modal:!1,children:[s.jsx(Ar,{className:"mr-1.5 rounded-sm",asChild:!0,children:s.jsx(Q,{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:s.jsx(Pn,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),s.jsxs(_r,{align:"center",sideOffset:8,children:[s.jsx(ze,{disabled:!0,className:"flex justify-center py-0.5 dark:text-gray-400 text-gray-500",children:n("Dashboard",{ns:"dashboard"})}),s.jsx(rr,{}),s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{ky.value=!0},children:[s.jsx(uv,{size:16,className:"mr-2"}),s.jsx("span",{children:n("Add First Board",{ns:"dashboard"})})]})]})]}),s.jsx(J,{className:"text-sm mt-4 !text-slate-500",children:n("Create Board",{ns:"dashboard"})})]})}),s.jsx(ve,{className:"flex items-center justify-center w-full h-full",style:{height:Ye},children:s.jsx(J,{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?n("No Boards",{ns:"dashboard"}):n("No Tabs or Boards",{ns:"dashboard"})})})]})]})})})]})}),s.jsx(Ku,{children:s.jsxs(fI,{dropAnimation:qt,children:[Ae&&s.jsx(xU,{board:Ae,isDragPreview:!0,isDark:t,currentTabLayout:"auto",selectedItemIds:P,setSelectedItemId:Qe}),Le&&s.jsx(mU,{clip:Le,isDragPreview:!0,isDark:t})]})})]});function ar(Ye){if(!Zx(Ye.active))return;Ol.value&&(Ol.value=null);const Te=Ye.active.data.current;(Te==null?void 0:Te.type)===Hs?je(Te.board):(Te==null?void 0:Te.type)===Co&&Ee(Te.clip)}function ur(Ye){return pe(this,null,function*(){var De,Fe,Je,st,at,wt,ct,Nt,Gt,kt,dr;je(null),Ee(null),setTimeout(()=>{Ol.value=null},100);const{active:Te,over:lt}=Ye;if(!Te||!Zx(Te))return;const xe=Te.id;if((Te==null?void 0:Te.id)===d&&setTimeout(()=>pe(this,null,function*(){f(null),yield U({itemIds:[Te.id],isPinned:!0})}),300),((De=Te.data.current)==null?void 0:De.type)===ll&&((Fe=lt==null?void 0:lt.data.current)==null?void 0:Fe.type)===ll){const Yt=lt==null?void 0:lt.id,Ht=F.findIndex(({tabId:yt})=>yt===xe),lr=F.findIndex(({tabId:yt})=>yt===Yt),It=Jn(F,Ht,lr),Mr=new Map(It.map((yt,er)=>[yt.tabId,er])),Jt=F.map(yt=>{const er=Mr.get(yt.tabId);return er!==void 0&&(yt.tabOrderNumber=er),yt});se(Jt),yield b({updatedTabs:Jt});return}if(((Je=lt==null?void 0:lt.data.current)==null?void 0:Je.type)===ll){const Yt=lt.id,Ht=X.find(It=>It.itemId===xe&&It.isBoard),lr=X.find(It=>It.itemId===xe&&It.isClip);if((Ht==null?void 0:Ht.tabId)===Yt||(lr==null?void 0:lr.tabId)===Yt||!Yt)return;if(Ht){const It=lt.id.toString(),Mr=(at=(st=Te.data)==null?void 0:st.current)==null?void 0:at.isSubBoard,yt=(Mr&&((ct=(wt=Te.data)==null?void 0:wt.current)!=null&&ct.board.parentId)?ta(X,ee,(Gt=(Nt=Te.data)==null?void 0:Nt.current)==null?void 0:Gt.board.parentId):ta(X,ee)).find(ut=>ut.id===xe);if(!yt)return;const er=yt?mN(yt):[],Ot=X.filter(ut=>ut.tabId===It&&ut.isBoard&&ut.parentId===null).sort((ut,Pt)=>ut.orderNumber-Pt.orderNumber);if(Mr)if(Ot.length===0)Ot.push(Ht);else{const ut=Ot[0].itemId.toString(),Pt=X.filter(Kt=>Kt.parentId===ut&&Kt.tabId===It).sort((Kt,Et)=>Kt.orderNumber-Et.orderNumber);Pt.unshift(Ht);const or=new Map(Pt.map((Kt,Et)=>[Kt.itemId,Et])),Fr=new Map(er==null?void 0:er.map(Kt=>[Kt,!0])),Xr=[],ys=X.map(Kt=>{const Et=or.get(Kt.itemId);return Et!==void 0?(Xr.push(Kt.itemId),re(R({},Kt),{orderNumber:Et,tabId:It,parentId:ut})):Fr!=null&&Fr.has(Kt.itemId)?(Xr.push(Kt.itemId),re(R({},Kt),{tabId:It})):Kt});oe(ys);const fn=ys.filter(Kt=>Xr.includes(Kt.itemId)).map(Kt=>({itemId:Kt.itemId,parentId:Kt.parentId,tabId:It,collectionId:le,orderNumber:Kt.orderNumber}));j({updatedMoveClips:fn}),Y(It.toString());return}Ot.unshift(Ht);const nt=new Map(Ot.map((ut,Pt)=>[ut.itemId,Pt])),ye=new Map(er==null?void 0:er.map(ut=>[ut,!0])),Ie=X.map(ut=>{const Pt=nt.get(ut.itemId);return Pt!==void 0?re(R({},ut),{orderNumber:Pt,tabId:It,parentId:null}):ye!=null&&ye.has(ut.itemId)?re(R({},ut),{tabId:It}):ut});oe(Ie);const qe=Ie.filter(ut=>(ut.parentId===null||ut.parentId===xe||ye.has(ut.parentId))&&ut.tabId===It).map(ut=>({itemId:ut.itemId,parentId:ut.parentId,tabId:ut.tabId,collectionId:le,orderNumber:ut.orderNumber}));j({updatedMoveClips:qe})}else if(lr){const It=lt.id.toString(),Mr=ta(X,It);let Jt=(kt=Mr.find(yt=>yt.name===n("Moved Clips Panel",{ns:"dashboard"})))==null?void 0:kt.id;if(!Jt){const yt=(dr=F.find(ye=>ye.tabId===It))==null?void 0:dr.tabColor,er={name:n("Moved Clips Panel",{ns:"dashboard"}),isBoard:!0,tabId:It,color:yt,description:n("Panel for moved or copied items from other tabs",{ns:"dashboard"}),parentId:null,collectionId:le,orderNumber:0},Ot=yield K({item:er});Mr.sort((ye,Ie)=>ye.orderNumber-Ie.orderNumber).unshift(re(R({},er),{id:Ot,layout:"",type:"board",color:null,showDescription:!0,layoutItemsMaxWidth:"",layoutSplit:1}));const nt=Mr.map((ye,Ie)=>({itemId:ye.id,parentId:null,tabId:ye.tabId,collectionId:le,orderNumber:Ie}));j({updatedMoveClips:nt}),Jt=Ot}if(Jt){const yt=Jt.toString(),er=It.toString(),Ot=X.filter(qe=>qe.parentId===yt&&qe.tabId===er).sort((qe,ut)=>qe.orderNumber-ut.orderNumber);Ot.unshift(lr);const nt=new Map(Ot.map((qe,ut)=>[qe.itemId,ut])),ye=X.map(qe=>{const ut=nt.get(qe.itemId);return ut!==void 0?re(R({},qe),{orderNumber:ut,tabId:er,parentId:yt}):qe});oe(ye);const Ie=ye.filter(qe=>qe.parentId===yt).map(qe=>({itemId:qe.itemId,parentId:yt,tabId:er,collectionId:le,orderNumber:qe.orderNumber}));j({updatedMoveClips:Ie})}}Y(Yt.toString());return}let be=null;for(let Yt=0;Yt<X.length;Yt++)if(X[Yt].itemId===xe){be=X[Yt];break}if(be){const Yt=X.filter(Ht=>Ht.parentId===(be==null?void 0:be.parentId)).map(Ht=>({itemId:Ht.itemId,parentId:Ht.parentId,tabId:Ht.tabId,collectionId:le,orderNumber:Ht.orderNumber}));j({updatedMoveClips:Yt})}})}function Sr(Ye){var It,Mr;const{active:Te,over:lt}=Ye;if(!lt)return;const xe=(lt==null?void 0:lt.id)==="clips::pinnedzone";if(Te!=null&&Te.id&&xe?f(Te.id):xe||f(null),xe)return;if(((It=lt.data.current)==null?void 0:It.type)===ll&&((Mr=Te==null?void 0:Te.data.current)==null?void 0:Mr.type)!==ll){const Jt=X.find(({itemId:yt})=>yt===Te.id);((Jt==null?void 0:Jt.tabId)!==lt.id||ee!==lt.id)&&(Ol.value=lt.id.toString())}else Ol.value&&(Ol.value=null);const be=Te.id,De=lt.id;if(be===De||!Zx(Te)||!Zx(lt))return;const Fe=Te.data.current,Je=lt.data.current,st=(Fe==null?void 0:Fe.type)===Co,at=(Fe==null?void 0:Fe.type)===Hs,wt=(Je==null?void 0:Je.type)===Co,ct=(Je==null?void 0:Je.type)===Hs;if(!st&&!at||st&&ct&&bl.value===De)return;if(st&&ct&&!_){const Jt=Fe.clip.parentId,yt=X.filter(({parentId:Ie})=>Jt==Ie).sort((Ie,qe)=>Ie.orderNumber-qe.orderNumber),er=yt.findIndex(({itemId:Ie})=>Ie===be),Ot=yt.findIndex(({itemId:Ie})=>Ie===De),nt=yt[er],ye=yt[Ot];if(nt&&ye&&nt.parentId===ye.parentId){const Ie=Jn(yt,er,Ot),qe=new Map(Ie.map((Pt,or)=>[Pt.itemId,or])),ut=X.map(Pt=>{const or=qe.get(Pt.itemId);return or!==void 0&&(Pt.orderNumber=or),Pt});ae(ut);return}}else if(st&&wt){const Jt=Fe.clip.parentId,yt=X.filter(({parentId:Ie,isClip:qe})=>Jt==Ie&&qe).sort((Ie,qe)=>Ie.orderNumber-qe.orderNumber),er=yt.findIndex(({itemId:Ie})=>Ie===be),Ot=yt.findIndex(({itemId:Ie})=>Ie===De),nt=yt[er],ye=yt[Ot];if(nt&&ye&&nt.parentId===ye.parentId){const Ie=Jn(yt,er,Ot),qe=new Map(Ie.map((Pt,or)=>[Pt.itemId,or])),ut=X.map(Pt=>{const or=qe.get(Pt.itemId);return or!==void 0&&(Pt.orderNumber=or),Pt});ae(ut);return}}else if(at&&wt){const Jt=Je.clip.parentId,yt=X.filter(({parentId:Ie})=>Jt==Ie).sort((Ie,qe)=>Ie.orderNumber-qe.orderNumber),er=yt.findIndex(({itemId:Ie})=>Ie===be),Ot=yt.findIndex(({itemId:Ie})=>Ie===De),nt=yt[er],ye=yt[Ot];if(nt&&ye&&nt.parentId===ye.parentId){const Ie=Jn(yt,er,Ot),qe=new Map(Ie.map((Pt,or)=>[Pt.itemId,or])),ut=X.map(Pt=>{const or=qe.get(Pt.itemId);return or!==void 0&&(Pt.orderNumber=or),Pt});ae(ut);return}}const Nt=X.find(({itemId:Jt,isBoard:yt})=>Jt===De&&yt),Gt=X.find(({itemId:Jt,isClip:yt})=>Jt===De&&yt),kt=Nt==null?void 0:Nt.itemId,dr=Gt==null?void 0:Gt.itemId,Yt=X.findIndex(({itemId:Jt})=>Jt===be),Ht=X[Yt],lr=at?X[Yt]:null;if(kt&&Ht.parentId!==kt&&!at){const Jt=X.filter(({parentId:Ot})=>kt==Ot).sort((Ot,nt)=>Ot.orderNumber-nt.orderNumber);Ht.parentId=kt,Jt.unshift(Ht);const yt=new Map(Jt.map((Ot,nt)=>[Ot.itemId,nt])),er=X.map(Ot=>{const nt=yt.get(Ot.itemId);return nt!==void 0?re(R({},Ot),{orderNumber:nt}):Ot});ae(er);return}if(dr&&(Gt!=null&&Gt.parentId)&&Ht.parentId!==Gt.parentId&&!at){Ht.parentId=Gt.parentId,Ht.orderNumber=Gt.orderNumber;const Jt=X.filter(({parentId:nt})=>Gt.parentId==nt).sort((nt,ye)=>nt.orderNumber-ye.orderNumber);Jt.unshift(Ht);const yt=Jn(Jt,0,Gt.orderNumber),er=new Map(yt.map((nt,ye)=>[nt.itemId,ye])),Ot=X.map(nt=>{const ye=er.get(nt.itemId);return ye!==void 0?re(R({},nt),{orderNumber:ye}):nt});ae(Ot);return}if(kt&&at&&lr&&lr.parentId!==kt&&Fe.isSubBoard){lr.parentId=kt;const Jt=X.filter(({parentId:Ot})=>Nt.parentId==Ot).sort((Ot,nt)=>Ot.orderNumber-nt.orderNumber);Jt.unshift(lr);const yt=new Map(Jt.map((Ot,nt)=>[Ot.itemId,nt])),er=X.map(Ot=>{const nt=yt.get(Ot.itemId);return nt!==void 0?re(R({},Ot),{orderNumber:nt}):Ot});ae(er)}else if(kt&&at&&!Fe.isSubBoard&&!(Je!=null&&Je.isSubBoard)){const Jt=X.filter(({parentId:Ie,isBoard:qe,tabId:ut})=>(Nt==null?void 0:Nt.parentId)==Ie&&qe&&ut===ee).sort((Ie,qe)=>Ie.orderNumber-qe.orderNumber),yt=Jt.findIndex(({itemId:Ie})=>Ie===(lr==null?void 0:lr.itemId)),er=Jt.findIndex(({itemId:Ie})=>Ie===kt),Ot=Jn(Jt,yt,er),nt=new Map(Ot.map((Ie,qe)=>[Ie.itemId,qe])),ye=X.map(Ie=>{const qe=nt.get(Ie.itemId);return qe!==void 0?re(R({},Ie),{orderNumber:qe}):Ie});ae(ye)}}}const owe=m.memo(awe);function jD(e,t,r,n=!0,a=!1){const o=p=>r.filter(g=>g.tabId===p),i=p=>e.filter(g=>{var v;if(!(g.parentId===p&&g.isClip))return!1;const S=g.name.toLowerCase().includes(t.toLowerCase()),b=!n&&((v=g.value)==null?void 0:v.toLowerCase().includes(t.toLowerCase()));return S||b}).map(g=>re(R({},g),{type:Co,id:g.itemId.toString()})),c=p=>e.filter(g=>g.parentId===p&&g.isClip).map(g=>re(R({},g),{type:Co,id:g.itemId.toString()})).sort((g,S)=>g.orderNumber-S.orderNumber),d=e.filter(p=>p.isBoard);let f=0;const h=a?d.filter(p=>p.name.toLowerCase().includes(t.toLowerCase())).map(p=>{var S;const g=c(p.itemId.toString());return re(R({},p),{type:Hs,showDescription:!1,tabName:(S=o(p.tabId)[0])==null?void 0:S.tabName,id:p.itemId.toString(),children:g})}):d.map(p=>{var S;const g=i(p.itemId.toString());return g.length>0?(f=f+g.length,re(R({},p),{type:Hs,showDescription:!1,tabName:(S=o(p.tabId)[0])==null?void 0:S.tabName,id:p.itemId.toString(),children:g})):null}).filter(p=>p!==null);return{results:h,count:a?h.length:f}}function kv(e,t,r=!1){const n=a=>e.map(({itemId:o,name:i,parentId:c,orderNumber:d,isActive:f,isDisabled:h,isDeleted:p,isClip:g,isFolder:S,isSeparator:b})=>({id:o,name:i,parentId:c,orderNumber:d,isActive:f,isDisabled:h,isDeleted:p,isClip:g,isFolder:S,isSeparator:b,children:[]})).filter(o=>o.parentId===a).filter(o=>o.isActive||r&&!o.isActive).sort((o,i)=>o.orderNumber-i.orderNumber).map(o=>(o.children=n(o.id),o.children.length===0&&!o.isFolder&&delete o.children,o));return n(t||null)}function G4(){return G4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G4.apply(this,arguments)}var yU=["shift","alt","meta","mod","ctrl"],iwe={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 bu(e){return(iwe[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function lwe(e){return yU.includes(e)}function B5(e,t){return t===void 0&&(t=","),e.split(t)}function U5(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(i){return bu(i)}),a={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},o=n.filter(function(i){return!yU.includes(i)});return G4({},a,{keys:o,description:r})}(function(){typeof document!="undefined"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&bU([bu(e.key),bu(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&wU([bu(e.key),bu(e.code)])})),typeof window!="undefined"&&window.addEventListener("blur",function(){wu.clear()})})();var wu=new Set;function SN(e){return Array.isArray(e)}function cwe(e,t){t===void 0&&(t=",");var r=SN(e)?e:e.split(t);return r.every(function(n){return wu.has(n.trim().toLowerCase())})}function bU(e){var t=Array.isArray(e)?e:[e];wu.has("meta")&&wu.forEach(function(r){return!lwe(r)&&wu.delete(r.toLowerCase())}),t.forEach(function(r){return wu.add(r.toLowerCase())})}function wU(e){var t=Array.isArray(e)?e:[e];e==="meta"?wu.clear():t.forEach(function(r){return wu.delete(r.toLowerCase())})}function uwe(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function dwe(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function fwe(e){return kU(e,["input","textarea","select"])}function kU(e,t){var r=e.target;t===void 0&&(t=!1);var n=r&&r.tagName;return SN(t)?!!(n&&t&&t.some(function(a){return a.toLowerCase()===n.toLowerCase()})):!!(n&&t&&t===!0)}function hwe(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(r){return t.includes(r)})||e.includes("*"):!0}var pwe=function(t,r,n){n===void 0&&(n=!1);var a=r.alt,o=r.meta,i=r.mod,c=r.shift,d=r.ctrl,f=r.keys,h=t.key,p=t.code,g=t.ctrlKey,S=t.metaKey,b=t.shiftKey,v=t.altKey,w=bu(p),C=h.toLowerCase();if(!n){if(a===!v&&C!=="alt"||c===!b&&C!=="shift")return!1;if(i){if(!S&&!g)return!1}else if(o===!S&&C!=="meta"&&C!=="os"||d===!g&&C!=="ctrl"&&C!=="control")return!1}return f&&f.length===1&&(f.includes(C)||f.includes(w))?!0:f?cwe(f):!f},mwe=m.createContext(void 0),gwe=function(){return m.useContext(mwe)};function CU(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&CU(e[n],t[n])},!0):e===t}var vwe=m.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),xwe=function(){return m.useContext(vwe)};function ywe(e){var t=m.useRef(void 0);return CU(t.current,e)||(t.current=e),t.current}var ED=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},bwe=typeof window!="undefined"?m.useLayoutEffect:m.useEffect;function Is(e,t,r,n){var a=m.useRef(null),o=m.useRef(!1),i=r instanceof Array?n instanceof Array?void 0:n:r,c=SN(e)?e.join(i==null?void 0:i.splitKey):e,d=r instanceof Array?r:n instanceof Array?n:void 0,f=m.useCallback(t,d!=null?d:[]),h=m.useRef(f);d?h.current=f:h.current=t;var p=ywe(i),g=xwe(),S=g.enabledScopes,b=gwe();return bwe(function(){if(!((p==null?void 0:p.enabled)===!1||!hwe(S,p==null?void 0:p.scopes))){var v=function(N,M){var P;if(M===void 0&&(M=!1),!(fwe(N)&&!kU(N,p==null?void 0:p.enableOnFormTags))&&!(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(N))){if(a.current!==null&&document.activeElement!==a.current&&!a.current.contains(document.activeElement)){ED(N);return}(P=N.target)!=null&&P.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||B5(c,p==null?void 0:p.splitKey).forEach(function(D){var A,O=U5(D,p==null?void 0:p.combinationKey);if(pwe(N,O,p==null?void 0:p.ignoreModifiers)||(A=O.keys)!=null&&A.includes("*")){if(M&&o.current)return;if(uwe(N,O,p==null?void 0:p.preventDefault),!dwe(N,O,p==null?void 0:p.enabled)){ED(N);return}h.current(N,O),M||(o.current=!0)}})}},w=function(N){N.key!==void 0&&(bU(bu(N.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&v(N))},C=function(N){N.key!==void 0&&(wU(bu(N.code)),o.current=!1,p!=null&&p.keyup&&v(N,!0))},j=a.current||(i==null?void 0:i.document)||document;return j.addEventListener("keyup",C),j.addEventListener("keydown",w),b&&B5(c,p==null?void 0:p.splitKey).forEach(function(E){return b.addHotkey(U5(E,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){j.removeEventListener("keyup",C),j.removeEventListener("keydown",w),b&&B5(c,p==null?void 0:p.splitKey).forEach(function(E){return b.removeHotkey(U5(E,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[c,p,S]),a}function wwe({id:e,isSelected:t,deletingMenuItemIds:r,itemParentId:n,isDisabled:a,isImage:o,isClip:i,isSeparator:c,isActive:d,isFolder:f,isOpen:h,setOpenItemId:p,itemOrderNumber:g,hasChildren:S,deselectItemById:b,setSelectedItemIds:v,selectItemById:w}){const{t:C}=Tt(),{duplicateMenuItem:j}=Xme(),{deleteMenuItemById:E}=jH(),{updateMenuItemById:N}=f1(),{updateMovedMenuItems:M}=W6(),P=ha(),{menuItems:D,currentCollectionId:A}=xt(kn);return s.jsx(u1,{children:s.jsxs(_m,{className:"w-[150px]",children:[d?i?s.jsxs(s.Fragment,{children:[s.jsx($t,{disabled:!0,className:"flex justify-center py-0",children:C("Link To Clip",{ns:"contextMenus"})}),s.jsx(tn,{})]}):f?s.jsxs(s.Fragment,{children:[s.jsx($t,{disabled:!0,className:"flex justify-center py-0",children:C("Submenu",{ns:"contextMenus"})}),s.jsx(tn,{})]}):c?s.jsxs(s.Fragment,{children:[s.jsx($t,{disabled:!0,className:"flex justify-center py-0",children:C("Separator",{ns:"contextMenus"})}),s.jsx(tn,{})]}):s.jsxs(s.Fragment,{children:[s.jsx($t,{disabled:!0,className:"flex justify-center py-0",children:C("Menu",{ns:"contextMenus"})}),s.jsx(tn,{})]}):s.jsxs(s.Fragment,{children:[s.jsx($t,{disabled:!0,className:"flex justify-center py-0",children:C("Menu is Not Active",{ns:"contextMenus"})}),s.jsx(tn,{}),s.jsxs($t,{onClick:()=>{N({updatedItem:{itemId:e,isActive:!0}})},children:[C("Activate",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(bm,{size:15,className:"ml-auto"})})]}),s.jsx(tn,{})]}),t?s.jsxs($t,{onClick:()=>{b==null||b(e)},children:[C("Deselect",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(KE,{size:15})})]}):s.jsxs($t,{onClick:()=>{w==null||w(e)},children:[C("Select",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(ja,{size:15})})]}),s.jsx(tn,{}),Cs.value!==e&&!i&&s.jsxs($t,{disabled:!d||Ka.value,onClick:()=>{Cs.value=e,Ai.value=!0},children:[C("Edit Label",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(qp,{size:14})})]}),!i&&!f&&Cs.value!==e&&s.jsxs($t,{disabled:!d||Ka.value,onClick:()=>{Cs.value=e},children:[o?C("Edit Image",{ns:"contextMenus"}):C("Edit Value",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(Rb,{size:15})})]}),i&&s.jsxs(s.Fragment,{children:[s.jsxs($t,{disabled:!d||Ka.value,onClick:()=>{Fs.value=e,ji.value=e,P("/history",{replace:!0})},children:[C("Edit Clip",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(Rb,{size:15})})]}),s.jsxs($t,{disabled:!d||Ka.value,onClick:()=>{ji.value=e,P("/history",{replace:!0})},children:[C("Locate Clip",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(nw,{size:15})})]})]}),s.jsx(tn,{}),s.jsxs($t,{disabled:!d,onClick:()=>pe(this,null,function*(){v&&v([e]),Ka.value=!0}),children:[C("Add New Item",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(N$,{size:15})})]}),!i&&s.jsxs($t,{disabled:!d,onClick:()=>pe(this,null,function*(){var I;if(!A)return;const O=yield j({itemId:e,parentId:n!=null?n:null,orderNumber:g+2,collectionId:A}),$=kv(D);$.unshift({name:C("Copy of ",{ns:"common"})+((I=$.find(W=>W.id===e))==null?void 0:I.name),parentId:n!=null?n:null,orderNumber:g+2,id:O});const H=X3($,n!=null?n:null,[O],g+2),z=H==null?void 0:H.map(({id:W,parentId:_,orderNumber:K})=>({itemId:W,parentId:_,tabId:null,collectionId:A,orderNumber:K}));M({updatedMoveMenuItems:z})}),children:[C("Duplicate",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto pl-3",children:s.jsx($E,{size:15})})]}),s.jsx(tn,{}),a?s.jsxs($t,{disabled:!d,onClick:()=>{N({updatedItem:{itemId:e,isDisabled:!1}})},children:[C("Make Enabled",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(k$,{size:15,className:"ml-auto"})})]}):s.jsxs($t,{disabled:!d,onClick:()=>{N({updatedItem:{itemId:e,isDisabled:!0}}),h&&(p==null||p(null))},children:[C("Make Disabled",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(Kp,{size:15,className:"ml-auto"})})]}),s.jsx(tn,{}),d&&s.jsxs($t,{onClick:()=>{N({updatedItem:{itemId:e,isActive:!1}}),h&&(p==null||p(null))},children:[C("Make Inactive",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(Qv,{size:15,className:"ml-auto"})})]}),s.jsxs(Q,{className:"group",children:[s.jsxs($t,{className:Bc.value===e?"!bg-red-100 dark:!bg-red-900":"",disabled:S,onClick:O=>{var $,H;Bc.value===e?(E({itemId:e,collectionId:A}),r.value=(H=($=r.value)==null?void 0:$.filter(z=>z!==e))!=null?H:[],b==null||b(e),Bc.value):(O.preventDefault(),Bc.value=e,r.value=r.value?[...r.value,e]:[e],setTimeout(()=>{var z,I;Bc.value=null,r.value=(I=(z=r.value)==null?void 0:z.filter(W=>W!==e))!=null?I:[]},3e3))},children:[s.jsx(J,{className:"".concat(S?"!text-gray-500":"!text-red-500"),children:Bc.value!==e?C("Delete",{ns:"common"}):C("Click to Confirm",{ns:"common"})}),!Bc.value&&s.jsx("div",{className:"ml-auto pl-3",children:s.jsx(dn,{size:15,className:"".concat(S?"!text-gray-500":"!text-red-500")})})]}),S&&s.jsx(ve,{className:"p-0.5",children:s.jsx(J,{className:"!text-gray-400/80 text-[11px] group-hover:!text-amber-500",children:C("Remove Submenus First",{ns:"common"})})})]})]})})}function kwe(){const{data:e=[]}=Gu("get_clipboard_history_pinned");return e.forEach(t=>{if(t.links)try{t.arrLinks=JSON.parse(t.links)}catch(r){t.arrLinks=[]}t.hasEmoji&&(t.hasEmoji=n$(t.value))}),{pinnedClipboardHistory:e}}function Cwe(){const e=vr(),{mutate:t}=zr("update_clipboard_history_by_id",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",r)}});return{updateClipboardHistoryById:t}}function SU(){const e=vr(),{mutate:t}=zr("update_pinned_clipboard_history_by_ids",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",r)}});return{pinnedClipboardHistoryByIds:t}}function Swe(){const e=vr(),{mutate:t}=zr("unpin_all_clipboard_history_items",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",r)}});return{unPinAllClipboardHistory:t}}function jwe(){const e=vr(),{mutate:t}=zr("move_pinned_item_up_down",{onSuccess:r=>{r==="ok"?e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}):console.log("update clipboard error",r)}});return{movePinnedClipboardHistoryUpDown:t}}function jU(){const e=vr(),{data:t,isLoading:r,isFetched:n,fetchNextPage:a,isFetchingNextPage:o,error:i}=uG({queryKey:["get_clipboard_history"],queryFn:({pageParam:d})=>{const{limit:f=n5,offset:h=0}=d!=null?d:{};return _s("get_clipboard_history",{limit:f,offset:h})},initialPageParam:{limit:n5,offset:0},getNextPageParam:(d,f)=>{const h=f==null?void 0:f.reduce((p,g)=>{var S;return p+((S=g==null?void 0:g.length)!=null?S:0)},0);return h?{limit:n5,offset:h}:null}}),{setClipboardHistory:c}=xt(wl);return m.useEffect(()=>{if(Array.isArray(t==null?void 0:t.pages)){const d=!(t!=null&&t.pages.flat().length);c(t==null?void 0:t.pages.flat(),d)}},[t]),{infiniteClipboardHistory:t,invalidateClipboardHistoryQuery:()=>{e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})},isClipboardInfiniteHistoryLoading:r,isClipboardInfiniteHistoryFetched:n,fetchNextClipboardHistoryPage:a,isClipboardHistoryFetchingNextPage:o,isClipboardInfiniteHistoryError:i}}function Ewe({query:e="",filters:t=[],codeFilters:r=[]}){const n=vr(),{data:a,refetch:o,isLoading:i,isFetched:c,error:d}=Gu("find_clipboard_histories_by_value_or_filters",{query:e,filters:t,codeFilters:r,useQueryOptions:{enabled:!1,refetchOnWindowFocus:!1}}),{setClipboardHistory:f}=xt(wl);return m.useEffect(()=>{Array.isArray(a)&&f(a,!0,!0)},[a]),{foundClipboardHistory:a,invalidateFindClipboardHistoryQuery:()=>{n.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})},refetchFindClipboardHistory:o,isFoundClipboardHistoryLoading:i,isFlundClipboardHistoryFetched:c,isFoundClipboardHistoryError:d}}function jN(){const e=vr(),{mutate:t}=zr("delete_clipboard_history_by_ids",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("update clipboard error",r)}});return{deleteClipboardHistoryByIds:t}}function Nwe(){const e=vr(),{mutate:t}=zr("clear_clipboard_history_older_than",{onSuccess:r=>{r==="ok"?(e.invalidateQueries({queryKey:["get_clipboard_history"]}),e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]})):console.log("clear clipboard error",r)}});return{clearClipboardHistoryOlderThan:t}}const{FOLDER:_we,ITEM:wh,SEPARATOR:Twe,DISABLED:Mwe}=Ro;function p2({isCreatingMenuItem:e,currentMenuItemId:t,parentId:r,orderNumber:n,showEditMenuItemId:a,isMainCreateMenu:o,isDark:i,isFistItemsCreateMenu:c}){const{t:d}=Tt(),[f,h]=m.useState(""),[p,g]=m.useState(""),{clipboardHistory:S}=xt(wl),{fetchNextClipboardHistoryPage:b}=jU(),{collectionWithClips:v,fetchCollectionWithClips:w}=SH(),C=(v==null?void 0:v.clips)||[],j=ro(f,300),E=ro(p,300),N=m.useMemo(()=>j.length<1?C.filter(D=>D.isClip).sort((D,A)=>D.updatedAt&&A.updatedAt?A.updatedAt-D.updatedAt:0).slice(0,50).map(({name:D,itemId:A})=>({name:D.length>50?"".concat(D.substring(0,50),"..."):D,id:A})):C.filter(D=>D.isClip&&D.name.toLowerCase().includes(j.toLowerCase())).sort((D,A)=>D.updatedAt&&A.updatedAt?A.updatedAt-D.updatedAt:0).slice(0,50).map(({name:D,itemId:A})=>({name:D.length>50?"".concat(D.substring(0,50),"..."):D,id:A})),[C,j]),M=m.useMemo(()=>E.length<1?S.sort((D,A)=>A.updatedAt-D.updatedAt).slice(0,50).map(({value:D,historyId:A,isImage:O,imageWidth:$,imageHeight:H,detectedLanguage:z,isLink:I})=>({isImage:O,isLink:I,detectedLanguage:z,name:D!=null&&D.length&&(D==null?void 0:D.length)>80?"".concat(D==null?void 0:D.substring(0,80),"..."):O?"".concat(d("Image",{ns:"common"})," (").concat($,"x").concat(H,")"):D,id:A})):S.filter(D=>{var A;return D!=null&&D.value?(A=D==null?void 0:D.value)==null?void 0:A.toLowerCase().includes(E.toLowerCase()):"Image".toLocaleLowerCase().includes(E.toLowerCase())}).sort((D,A)=>A.updatedAt-D.updatedAt).slice(0,50).map(({value:D,historyId:A,isImage:O,imageWidth:$,imageHeight:H,detectedLanguage:z,isLink:I})=>({isImage:O,isLink:I,detectedLanguage:z,name:D!=null&&D.length&&(D==null?void 0:D.length)>80?"".concat(D==null?void 0:D.substring(0,80),"..."):O?"".concat(d("Image",{ns:"common"})," (").concat($,"x").concat(H,")"):D,value:D,id:A})),[S,E]);m.useEffect(()=>{S.length||b(),w()},[]);function P(){Kd(),e.value=!1,au.value=null,bd.value=null}return s.jsxs(Dr,{modal:!1,defaultOpen:c,children:[s.jsx(Ar,{asChild:!0,disabled:!!au.value||!!bd.value||!!yd.value,children:o?s.jsx(s.Fragment,{children:e.value?s.jsxs(ke,{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:()=>{P()},children:[s.jsx(J,{className:"whitespace-nowrap",children:d("Done Adding",{ns:"common"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:15})})]}):s.jsx(s.Fragment,{children:a.value?s.jsxs(rn,{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:()=>{P()},children:[s.jsx(J,{className:"whitespace-nowrap",children:d("Done Edit",{ns:"common"})}),s.jsx("div",{className:"ml-auto pl-1.5",children:s.jsx(Bt,{size:15})})]}):s.jsx(rn,{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:s.jsx($e,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:d("Add item",{ns:"menus"}),children:s.jsx(Pn,{size:20,className:"transition-colors group-hover:text-slate-400"})})})})}):s.jsx(Q,{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(!au.value&&!bd.value&&!yd.value)return;if(yd.value){Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:wh,text:yd.value},yd.value="";return}const D=S.find(({historyId:O})=>O===au.value),A=C.find(({itemId:O})=>O===bd.value);au.value=null,bd.value=null,D?Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:wh,clipboardHistoryItem:D,historyId:D.historyId.toString()}:A&&(Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:wh,clipId:A.itemId})},children:s.jsx(Pn,{size:20,className:"group-hover:text-blue-400 dark:group-hover:text-blue-300 text-slate-400"})})}),s.jsxs(_r,{align:"center",sideOffset:c?12:0,children:[s.jsx(ze,{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?d("Add First Item",{ns:"menus"}):d("Add Item",{ns:"menus"})}),s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:wh}},children:[s.jsx(rw,{size:16,className:"mr-2"}),s.jsx("span",{children:d("Menu Item",{ns:"menus"})})]}),s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:_we}},children:[s.jsx(Vp,{size:16,className:"mr-2"}),s.jsx("span",{children:d("Submenu",{ns:"menus"})})]}),s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:Twe}},children:[s.jsx(w$,{size:16,className:"mr-2"}),s.jsx("span",{children:d("Separator",{ns:"menus"})})]}),s.jsxs(ze,{className:"outline-none flex items-center",onClick:()=>{Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:Mwe}},children:[s.jsx(Kp,{size:16,className:"mr-2"}),s.jsx("span",{children:d("Disabled Item",{ns:"menus"})})]}),(M.length>0||N.length>0)&&s.jsx(rr,{}),M.length>0&&s.jsxs(zs,{children:[s.jsxs(Es,{children:[s.jsx(Yae,{size:16,className:"mr-2"}),s.jsx("span",{children:d("Recent History",{ns:"common"})})]}),s.jsxs(Ns,{className:"w-60",children:[s.jsx(ve,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:D=>D.stopPropagation(),children:s.jsx(Iu,{placeholder:"".concat(d("Find History",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:D=>{g(D.target.value)},value:p,iconLeft:s.jsx(Gp,{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"})}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:M.map(({name:D,id:A,isImage:O,detectedLanguage:$,isLink:H},z)=>s.jsx(ze,{onKeyDown:I=>I.stopPropagation(),className:"".concat(z>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:wh,clipboardHistoryItem:S.find(({historyId:I})=>I===A),historyId:A}},children:$?s.jsxs(Q,{className:"text-sm overflow-hidden text-ellipsis",children:[s.jsx(la,{isDark:i,searchTerm:"",isLargeView:!1,isShowMore:!1,isWrapped:!0,value:D!=null?D:"",language:$}),s.jsx(ft,{variant:"secondary",className:"absolute right-1 bottom-1",children:$})]}):s.jsxs(Q,{className:"relative overflow-hidden text-ellipsis",children:[s.jsx("code",{className:"text-sm line-clamp-2",children:D}),O&&s.jsx(ft,{variant:"secondary",className:"absolute right-1 bottom-1",children:d("Type:::Image",{ns:"common"})}),H&&s.jsx(ft,{variant:"secondary",className:"absolute right-1 bottom-1",children:d("Type:::Link",{ns:"common"})})]})},A))})]})]}),N.length>0&&s.jsxs(zs,{children:[s.jsxs(Es,{children:[s.jsx(yse,{size:16,className:"mr-2"}),s.jsx("span",{children:d("Link to Clip",{ns:"menus"})})]}),s.jsxs(Ns,{className:"w-52",children:[s.jsx(ve,{className:"focus:bg-transparent px-1 py-0.5 pb-1",onKeyDown:D=>D.stopPropagation(),children:s.jsx(Iu,{placeholder:"".concat(d("Find Clip",{ns:"common"})," ..."),type:"search",autoFocus:!0,onChange:D=>{h(D.target.value)},value:f,iconLeft:s.jsx(Gp,{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"})}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"260px"},autoHide:!1,children:N.map(({id:D,name:A},O)=>s.jsx(ze,{onKeyDown:$=>$.stopPropagation(),className:"".concat(O>0?"border-t":""," border-slate-100 dark:border-slate-800/90 ml-1 rounded-none"),onClick:()=>{Ba.value={orderNumber:n,currentMenuItemId:t,parentId:r,type:wh,clipId:D}},children:s.jsx("span",{children:A})},D!=null?D:O))})]})]})]})]})}const H0={isCode:!1,isText:!1,isForm:!1,isImage:!1,isCommand:!1,isWebRequest:!1,isWebScraping:!1,isLink:!1,isPath:!1,detectedLanguage:""},Pwe=({itemId:e,isCode:t,isImage:r,isText:n,isLink:a,isPath:o,detectedLanguage:i,children:c})=>{const{t:d}=Tt(),{CONST:{APP_DETECT_LANGUAGES_SUPPORTED:f}}=xt(Rn),{updateMenuItemById:h}=f1();return s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:c}),s.jsxs(_r,{className:"w-48",sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{children:d("Menu Type",{ns:"menus"})})}),s.jsx(rr,{}),s.jsx(nr,{checked:!!n,onClick:()=>{h({updatedItem:re(R({},H0),{isText:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(n?"font-semibold":""),children:d("TypeMenu:::Plain Text",{ns:"common"})})}),s.jsx(nr,{checked:!!a,onClick:()=>{h({updatedItem:re(R({},H0),{isLink:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(a?"font-semibold":""),children:d("TypeMenu:::Link or Email",{ns:"common"})})}),s.jsx(nr,{checked:!!r,onClick:()=>{h({updatedItem:re(R({},H0),{isImage:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(r?"font-semibold":""),children:d("TypeMenu:::Image",{ns:"common"})})}),s.jsx(nr,{checked:!!o,onClick:()=>{h({updatedItem:re(R({},H0),{isPath:!0,itemId:e})})},children:s.jsx(J,{className:"".concat(o?"font-semibold":""),children:d("TypeMenu:::File, Path or App",{ns:"common"})})}),s.jsxs(zs,{children:[s.jsxs(Es,{children:[t?s.jsx(Bt,{className:"mr-2 h-4 w-4"}):s.jsx(Q,{className:"mr-2 h-4 w-4"}),s.jsxs(J,{className:"".concat(t?"!font-semibold":""),children:[d("TypeMenu:::Code Snippet",{ns:"common"})," ..."]})]}),s.jsxs(Ns,{className:"w-40",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:i?s.jsx(J,{children:ND(i)}):s.jsx(J,{children:d("Select Language",{ns:"common"})})}),s.jsx(rr,{}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"290px"},autoHide:!1,children:f.map(p=>s.jsx(nr,{checked:i===p,className:"".concat(i===p?"font-semibold ":""),onClick:()=>{h({updatedItem:re(R({},H0),{isCode:!0,detectedLanguage:p,itemId:e})})},children:ND(p)},p))})]})]})]})]})};function ND(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Dwe({itemId:e,deletingMenuItemIds:t,onComplete:r}){const{t:n}=Tt(),a=Ve(!1),o=()=>{a.value=!1,t.value=null},{currentCollectionId:i}=xt(kn),{deleteMenuItemById:c}=jH();return s.jsxs(ca,{defaultOpen:!1,open:a.value,children:[s.jsx(ua,{asChild:!0,children:s.jsxs(ke,{variant:"ghost",title:n("Delete Clip",{ns:"dashboard"}),onClick:()=>{a.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:[s.jsx(dn,{size:16}),s.jsx(J,{className:"ml-1 !text-red-500 dark:!text-red-600 !font-medium",children:n("Delete",{ns:"common"})})]})}),s.jsx(Ws,{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:a.value&&s.jsxs(ve,{className:"flex-col",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block",children:n("Are you sure you want to delete?",{ns:"common"})}),s.jsx(wr,{h:3}),s.jsxs(ve,{children:[s.jsx(ke,{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:n("Cancel",{ns:"common"})}),s.jsx(ke,{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:()=>pe(this,null,function*(){yield c({itemId:e,collectionId:i}),r()}),children:n("Delete Menu",{ns:"menus"})})]})]})})]})}function Awe({itemId:e,value:t,isCode:r,detectedLanguage:n,isText:a,isClip:o,isMasked:i,isVideo:c,isImage:d,isDelete:f,hasEmoji:h,isPath:p,imageDataUrl:g,isDark:S,deletingMenuItemIds:b,isLink:v,onCancel:w}){const{t:C}=Tt(),j=Ve(""),E=Ve(!1),N=Ve(Date.now()),M=Ve(!1),P=Ve(void 0),D=Ve(void 0),A=Ve(void 0),O=Ve(void 0),{updateMenuItemById:$}=f1(),H=m.useRef(null),z=ro(j.value,300),{metadataLinkByItemId:I,invalidateLinkMetadataByItemId:W}=d1(v,e),_=(I==null?void 0:I.linkTitle)&&(I==null?void 0:I.linkDomain);m.useEffect(()=>{j.value=t!=null?t:""},[t]),m.useEffect(()=>{if(v){const G=Nn().match(j.value);!G||G.length>1?P.value=!0:P.value=!1}},[v]);const K=m.useCallback(X=>pe(this,null,function*(){const F=t===j.value?t:X;p&&F.length>5&&kr("check_path",{path:F}).then(()=>{D.value=!1}).catch(()=>{D.value=!0})}),[p]);m.useEffect(()=>{p&&z.length>5&&K(z)},[p,z]),m.useEffect(()=>{(P.value||D.value||O.value||A.value)&&M.value&&(E.value=!0)},[P.value,D.value,A.value,O.value,M.value]);const V=(X=!1)=>pe(this,null,function*(){if(Ai.value){ou.value=!0;return}let G=null;if(ou.value=!1,E.value=!1,M.value=!0,P.value=void 0,D.value=void 0,X)G=p?"Error":null;else{if(v){const q=Nn().match(j.value);if(!q||q.length>1){P.value=!0;return}}if(p)try{G=yield kr("path_type_check",{path:j.value})}catch(F){G="Error",D.value=!0;return}}yield $({updatedItem:re(R({value:j.value},G&&p?{pathType:G}:{}),{itemId:e})}),setTimeout(()=>{M.value=!1,w()},200)}),U=m.useMemo(()=>r?C("TypeMenu:::Code Snippet",{ns:"common"}):d?C("TypeMenu:::Image",{ns:"common"}):v?C("TypeMenu:::Link or Email",{ns:"common"}):p?C("TypeMenu:::Link or File, Path or App",{ns:"common"}):C("TypeMenu:::Plain Text",{ns:"common"}),[r,d,v,p]);return s.jsx(Of,{className:gr("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",f&&"bg-red-50 dark:bg-red-900"),children:s.jsxs(Q,{className:"w-full mt-0",children:[o?s.jsx(Q,{className:"mt-2",children:s.jsx(ve,{className:"gap-1 w-full justify-start",children:s.jsx(J,{className:"font-semibold",size:"sm",children:C("Clip value can't edit",{ns:"menus"})})})}):s.jsx(s.Fragment,{children:d?s.jsxs(Q,{className:"px-0 py-1.5 flex items-center justify-center relative",children:[s.jsx("img",{src:g||Jd,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"}),s.jsx(Q,{className:"absolute",children:g?s.jsx(QB,{id:e,isMenu:!0}):s.jsx(YB,{id:e})})]}):p?s.jsxs(ve,{className:"relative text-normal",children:[s.jsx(sr,{defaultValue:j.value,placeholder:C("Enter full path to file, folder or application",{ns:"dashboard"}),classNameInput:"pr-10 text-sm focus:border- ".concat(D.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(D.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:s.jsx(Q,{className:"absolute top-3 right-4",children:D.value?s.jsx($e,{text:C("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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):D.value===!1&&s.jsx($e,{text:C("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:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:X=>{j.value=X.target.value}},N.value),s.jsx(ZB,{onCallBack:X=>{N.value=Date.now(),j.value=X}})]}):v?s.jsxs(ve,{className:"relative text-normal mt-1 flex-col",children:[s.jsx(sr,{defaultValue:j.value,placeholder:C("Enter web link or email",{ns:"dashboard"}),classNameInput:"pr-7 text-sm focus:border- ".concat(P.value?"!border-yellow-600 !focus:border-yellow-600":""," ").concat(P.value===!1?"!border-green-600 !focus:border-green-600":""),suffix:s.jsx(Q,{className:"absolute top-3 right-2",children:P.value?s.jsx($e,{text:C("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:s.jsx(ti,{size:18,className:"text-yellow-500 cursor-pointer"})}):P.value===!1&&s.jsx($e,{text:C("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:s.jsx(Bt,{size:18,className:"text-green-600 cursor-pointer"})})}),onChange:X=>{if(P.value&&(P.value=void 0),X.target.value.length>5){const F=Nn().match(X.target.value);!F||F.length>1?P.value=!0:P.value=!1}j.value=X.target.value}}),_&&s.jsx(Q,{className:"self-start mt-2 mb-0 text-xs w-full select-none overflow-hidden",children:s.jsx(Dm,{isDisabled:wn(j.value)!==(I==null?void 0:I.linkUrl),title:I==null?void 0:I.linkTitle,description:I==null?void 0:I.linkDescription,favicon:I==null?void 0:I.linkFavicon,link:I==null?void 0:I.linkUrl,image:I==null?void 0:I.linkImage,imageWidth:12,domain:I==null?void 0:I.linkDomain})}),s.jsxs(ve,{className:"w-full mt-1 justify-start select-none",children:[ec(j.value)||P.value||j.value.length<3?!ec(j.value)&&s.jsx(ke,{disabled:!0,variant:"ghost",className:"!px-1 !m-0 !h-4",children:_?s.jsxs(J,{className:"!text-grey-500",size:"xs",children:[s.jsx(Ib,{size:13,className:"mr-1"}),C("Update Link Card",{ns:"dashboard"})]}):s.jsxs(J,{className:"!text-grey-500",size:"xs",children:[s.jsx(cv,{size:13,className:"mr-1"}),C("Add Link Card",{ns:"dashboard"})]})}):s.jsx(ke,{variant:"ghost",className:"px-1 !m-0 !h-4 hover:bg-transparent",onClick:()=>pe(this,null,function*(){yield kr("fetch_link_metadata",{url:wn(j.value),itemId:e}),W()}),children:_?s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[s.jsx(Ib,{size:13,className:"mr-1"}),C("Update Link Card",{ns:"dashboard"})]}):s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[s.jsx(cv,{size:13,className:"mr-1"}),C("Add Link Card",{ns:"dashboard"})]})}),_&&s.jsx(ke,{variant:"ghost",className:"px-1 ml-auto !h-4 hover:bg-transparent",onClick:()=>pe(this,null,function*(){yield kr("delete_link_metadata",{itemId:e}),W()}),children:s.jsxs(J,{className:"!text-blue-500 dark:!text-blue-400 hover:underline cursor-pointer",size:"xs",children:[C("Remove",{ns:"common"}),s.jsx(lv,{size:14,className:"ml-1"})]})})]})]}):r?s.jsx(H4,{value:j.value,height:"200px",isDark:S,options:{mode:n!=null?n:"javascript"},onChange:X=>{j.value=X.getValue()}},"code-editor"):s.jsxs(s.Fragment,{children:[s.jsxs(Q,{className:"text-slate-400 flex gap-1.5 px-0.5 p-1.5 pt-0.5 items-center",children:[s.jsx($e,{isCompact:!0,text:C("Toolbar:::Copy and Paste Formatting",{ns:"common"}),children:s.jsx(f$,{size:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var X;(X=H==null?void 0:H.current)==null||X.handleAddBBcode("copy")}})}),s.jsx($e,{isCompact:!0,text:C("Toolbar:::Masked Text Formatting",{ns:"common"}),children:s.jsx(Zw,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var X;(X=H==null?void 0:H.current)==null||X.handleAddBBcode("mask")}})}),s.jsx($e,{isCompact:!0,text:C("Toolbar:::Blank Text Formatting",{ns:"common"}),children:s.jsx(BB,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var X;(X=H==null?void 0:H.current)==null||X.handleAddBBcode("blank")}})}),s.jsx($e,{isCompact:!0,text:C("Toolbar:::Hightlight Text Formatting",{ns:"common"}),children:s.jsx(UB,{width:19,height:19,className:"hover:text-blue-500 dark:hover:text-blue-400 cursor-pointer",onClick:()=>{var X;(X=H==null?void 0:H.current)==null||X.handleAddBBcode("hl")}})}),s.jsx("div",{tabIndex:-1,className:"ml-auto mr-0.5",children:s.jsx($e,{isCompact:!0,text:C("Toolbar:::Remove Text Formatting",{ns:"common"}),asChild:!0,children:s.jsx(C$,{size:17,className:"hover:text-red-500 dark:hover:text-red-700 cursor-pointer",onClick:()=>{var X;(X=H==null?void 0:H.current)==null||X.handleRemoveBBcodes(["copy","mask","blank","hl","h","b","i"])}})})})]}),s.jsx(Eo,{ref:H,tabIndex:0,enableEmoji:!1,className:"bg-white rounded-md text-sm w-full mr-1",placeholder:"Enter paste value",rows:2,autoFocus:!Ai.value,autoCorrect:"off",spellCheck:!1,enableEmojiInside:!0,label:"",maxRows:6,value:j.value,onKeyDown:X=>{X.stopPropagation()},onChange:X=>{j.value=X.target.value}})]})}),s.jsxs(ve,{className:"w-full justify-start items-center select-none",children:[s.jsxs(ve,{className:"items-start mt-2",children:[s.jsx(Pwe,{isCode:r,isLink:v,isPath:p,isText:a,isImage:d,itemId:e,detectedLanguage:n,children:s.jsx(Q,{children:s.jsx($e,{text:U,isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:r?s.jsxs(s.Fragment,{children:[s.jsx(FE,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:C("Type:::Code",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):d?s.jsxs(s.Fragment,{children:[s.jsx(Ob,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:C("Type:::Image",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):p?s.jsxs(s.Fragment,{children:[s.jsx(UE,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:C("Type:::Path",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):v?s.jsxs(s.Fragment,{children:[s.jsx(g$,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:C("Type:::Link",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]}):s.jsxs(s.Fragment,{children:[s.jsx(Lb,{size:16}),s.jsx(J,{className:"ml-1.5 group-hover:!text-blue-500 dark:group-hover:!text-blue-400",children:C("Type:::Text",{ns:"common"})}),s.jsx(Nr,{size:12,className:"ml-1"})]})})})})})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx($e,{text:C("Menu Options",{ns:"menus"}),isCompact:!0,side:"bottom",asChild:!0,children:s.jsx(ke,{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:s.jsx(Tf,{size:16})})})})}),s.jsxs(_r,{className:"",sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{children:C("Menu Options",{ns:"menus"})})}),s.jsx(rr,{}),s.jsxs(ze,{className:i?"font-semibold":"",onClick:X=>{X.preventDefault(),$({updatedItem:{isMasked:!i,itemId:e}})},children:[C("Type:::Secret",{ns:"common"}),i&&s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Bt,{size:15,className:"fill-transparent"})})]}),s.jsxs(ze,{className:c?"font-semibold":"",onClick:X=>{X.preventDefault(),$({updatedItem:{isVideo:!c,itemId:e}})},children:[C("Type:::Video",{ns:"common"}),c&&s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Bt,{size:15,className:"fill-transparent"})})]}),s.jsxs(ze,{className:h?"font-semibold":"",onClick:X=>{X.preventDefault(),$({updatedItem:{hasEmoji:!h,itemId:e}})},children:[C("Type:::Emoji",{ns:"common"}),h&&s.jsx("div",{className:"ml-auto pl-2",children:s.jsx(Bt,{size:15,className:"fill-transparent"})})]}),s.jsx(rr,{}),s.jsx(Dwe,{itemId:e,onComplete:w,deletingMenuItemIds:b})]})]})]}),s.jsxs(ve,{className:"items-end ml-auto mt-1",children:[s.jsx($e,{text:C("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{w()},children:s.jsx(Ur,{size:18})})})}),s.jsxs(ca,{defaultOpen:!1,open:E.value,children:[s.jsx(ua,{asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsxs(ke,{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:()=>{V()},children:[s.jsx(Bt,{size:18,className:"mr-1"}),C("Save",{ns:"common"})]})})}),s.jsx(Ws,{sideOffset:16,align:"center",onEscapeKeyDown:()=>{E.value=!1,M.value=!1},onPointerDownOutside:()=>{E.value=!1,M.value=!1},className:"p-1.5 bg-gray-100 border-gray-200 dark:bg-gray-900 dark:border-gray-950 w-60",children:s.jsxs(ve,{className:"flex-col p-1.5 rounded-md",children:[s.jsx(J,{color:"black",size:"sm",className:"!inline-block text-center pointer-events-none !font-semibold drop-zone text-yellow-600",children:P.value?"Please verify your link for any errors, or confirm to save as is.":D.value?"Please verify your path for any errors, or confirm to save as is.":A.value?"Please verify your command for any errors, or confirm to save as is.":O.value?"Please verify your command output template for any errors, or confirm to save as is.":"Are you sure you want to save this?"}),s.jsx(wr,{h:3}),s.jsxs(ve,{className:"mb-1",children:[s.jsx(ke,{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,M.value=!1},children:C("Cancel",{ns:"common"})}),s.jsx(ke,{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:()=>{V(!0)},children:C("Save It!",{ns:"common"})})]})]})})]})]})]})]})})}function Rwe({isClip:e,itemId:t,isOpen:r,label:n}){const{t:a}=Tt(),o=Ve(!1),i=Ve(""),{updateMenuItemById:c}=f1(),d=Ve(Ai.value);return m.useEffect(()=>{o.value=!1,i.value=n!=null?n:"",Ai.value=d.value,e&&(d.value=!1)},[d.value]),s.jsx(ve,{className:"justify-start w-full",children:d.value?s.jsxs(s.Fragment,{children:[s.jsx($e,{open:o.value||ou.value,asChild:!0,text:ou.value?a("Unsaved label",{ns:"common"}):i.value.length<=RE?a("Too short",{ns:"common"}):a("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:s.jsx(sr,{small:!0,autoFocus:Ai.value,className:"bg-white rounded-md text-sm font-semibold w-full",placeholder:a("Enter menu label",{ns:"menus"}),onKeyDown:f=>pe(this,null,function*(){f.stopPropagation(),f.key==="Escape"?d.value=!1:f.key==="Enter"&&(!i.value.length||i.value.length>wg)?o.value=!0:f.key==="Enter"&&(yield c({updatedItem:{name:i.value,itemId:t}}),setTimeout(()=>{d.value=!1,r||Kd()},200))}),defaultValue:n,onFocus:f=>{n!=null&&n.startsWith("New ")&&f.target.select()},onChange:f=>{o.value&&f.target.value.length<=wg&&o.value&&f.target.value.length>0&&(o.value=!1),i.value=f.target.value}})}),s.jsxs(ve,{className:"ml-1",children:[s.jsx($e,{text:a("Save",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,isDisabled:ou.value,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{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:()=>pe(this,null,function*(){if(ou.value&&(ou.value=!1),!i.value.length||i.value.length>wg){o.value=!0;return}o.value||(yield c({updatedItem:{name:i.value,itemId:t}}),setTimeout(()=>{d.value=!1,r||Kd()},200))}),children:s.jsx(Bt,{size:18})})})}),s.jsx($e,{text:a("Cancel",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Q,{tabIndex:0,children:s.jsx(ke,{variant:"outline",size:"mini",className:"ml-1 px-1.5 h-8 text-gray-400 border-0",onClick:()=>{d.value=!1,r||Kd()},children:s.jsx(Ur,{size:18})})})})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(J,{className:"text-ellipsis !block overflow-hidden whitespace-nowrap ".concat(e?"":"border-dashed border-b border-slate-400 hover:border-gray-400"),onClick:()=>{d.value=!0},color:"black",children:n}),e?s.jsx(Q,{className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:s.jsx($e,{text:a("Menu is a link to Clip. You can't edit the label directly",{ns:"menus"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(Jv,{size:14})})}):s.jsx(Q,{onClick:()=>{d.value=!0},className:"ml-1 pr-0 pl-1 pt-[1px] text-primary/50 cursor-pointer relative opacity-80 hover:opacity-100",children:s.jsx($e,{text:a("Edit name",{ns:"common"}),isCompact:!0,side:"bottom",sideOffset:10,asChild:!0,children:s.jsx(qp,{size:14})})})]})})}function EU({triggerProps:e,contentProps:t,isSelected:r,hasMultipleSelectedItems:n,isCreatingMenuItem:a,isFirstItem:o,isLastItem:i,isForm:c,isWebRequest:d,isWebScraping:f,isCommand:h,isSeparator:p,indent:g=0,item:S,hasChildren:b,isOpen:v,isClip:w,showEditMenuItemId:C,onFolderClose:j,onFolderOpen:E,showMultiSelectItems:N,deletingMenuItemIds:M,isClosedFolder:P,setSelectedItemIds:D,deselectItemById:A,selectItemById:O,setOpenItemId:$,globalSearchTerm:H,isDark:z,closeGlobalSearch:I,id:W,label:_,children:K}){const{t:V}=Tt(),{isFolder:U,isDisabled:X,isActive:G}=S,F=m.useMemo(()=>{var Ke,Lt;return(Lt=(Ke=M.value)==null?void 0:Ke.includes(W))!=null?Lt:!1},[M.value,W]),q=Ve(!1),Y=a.value&&(o||r&&i),se=a.value&&(i||r),[ee,ae,oe,le]=Rf({}),[ue,ce,he]=Lf({}),we=m.useRef(null),Se=m.useRef(null),Ae=S.createdAt&&S.createdAt>Math.floor(Date.now())-60*1e3,je=(Cx.value===W||q.value)&&!N.value,Le=!X&&G&&!U&&!p,Ee=C.value===W,He=ee===W,Qe=ue===W,Ze=le===W,mt=ue===W?ce:void 0;return s.jsxs(s.Fragment,{children:[Y&&s.jsxs(ve,{className:gr("flex flex-col justify-center items-center my-1.5 mb-0 animate-in fade-in duration-300 ease-in-out transition-opacity",g>0&&"ml-[".concat(g*30,"px]")),children:[s.jsx(p2,{isCreatingMenuItem:a,showEditMenuItemId:C,isDark:z,currentMenuItemId:W,parentId:null,orderNumber:i?S.orderNumber+1:0}),s.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"})]}),s.jsxs(Em,{onOpenChange:Ke=>{q.value=Ke},children:[s.jsx(Nm,{ref:Se,disabled:!je&&!r||!!H,children:s.jsxs(Q,{className:"relative",children:[(He||Qe)&&!mt?s.jsx(Q,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(o?"top-[-6px]":"top-[-10px]"," ").concat(g>0?"ml-[".concat(g*10,"px]"):""),children:c?s.jsxs(ft,{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:[V("Running",{ns:"common"}),"..."]}):s.jsxs(ft,{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:[s.jsx(Bt,{size:14,className:"mr-1"}),He?V("Copied",{ns:"common"}):Qe?V("Pasted",{ns:"common"}):""]})}):mt&&ce>0&&s.jsx(Q,{className:"z-100 w-full flex justify-center fade-in-animation absolute ".concat(o?"top-[-6px]":"top-[-10px]"," ").concat(g>0?"ml-[".concat(g*10,"px]"):""),children:c?s.jsx(ft,{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:V("Run in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ce})}):s.jsx(ft,{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:V("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:ce})})}),s.jsxs(Q,{onMouseEnter:()=>{Cx.value=W!=null?W:null},onMouseLeave:()=>{Cx.value=null},onClick:Ke=>{if(!N.value){if(Ke.stopPropagation(),Cx.value=W!=null?W:null,Ke.shiftKey){if(p)return;if(U){P?E(W):j(W);return}C.value||$==null||$(v?null:W);return}if(Ke.metaKey||Ke.ctrlKey){r?A==null||A(W):O==null||O(W);return}D==null||D([W])}},className:gr("rounded-lg border-2 bg-card text-card-foreground shadow-sm flex flex-col","duration-200 ease-in-out transition-none",g>0&&"ml-[".concat(g*30,"px]"),!se&&!Y?"my-1.5":"",r&&!o&&!i?"mt-1.5":"",o&&Y&&!r?"mb-1.5":"",i&&se&&!r?"mt-1.5":"",r?"border-slate-400/70 dark:border-slate-600":"dark:border-slate-700/80",F&&"!border-red-400 dark:!border-red-800",vi.value&&r&&!b&&"!border-red-400 dark:!border-red-800",v?"max-w-[340px] min-w-[270px]":"w-[270px]",Ee&&"max-w-[340px] min-w-[340px]",(He||Qe)&&"!border-green-600 dark:!border-green-700","transition-transform",su.value===W&&"pulse-clip"),children:[s.jsx(sH,{className:"flex",children:s.jsx(I6,re(R({onDoubleClickCapture:Ke=>{if(Ee||Ke.shiftKey||!Le||q.value){Ke.preventDefault();return}if(Ke.altKey||Ke.metaKey){if(c){he(W,void 0,!0);return}he(W)}else ae(W)}},e),{asChild:!0,className:gr("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",(r||v)&&"bg-slate-100/90 dark:bg-slate-950/80 dark:text-slate-300",je&&!(r||v)&&"!bg-slate-50/60 dark:!bg-slate-950/60",n&&r&&"bg-amber-50 dark:bg-amber-950/80",F&&"!bg-red-50 dark:!bg-red-950",!G&&"not-active-background bg-slate-100 text-slate-400 line-through dark:bg-slate-900 dark:text-slate-600",vi.value&&r&&!b&&"!bg-red-50 dark:!bg-red-950/80",(He||Qe)&&"!bg-green-50 dark:!bg-green-900",e==null?void 0:e.className),children:s.jsxs(ve,{className:"relative",children:[s.jsxs(ve,{className:gr("mx-1 mr-3 whitespace-nowrap overflow-hidden text-[15px] w-full",N.value&&"ml-0",r||Ae?"font-semibold":"font-normal",X?"text-gray-500/60":""),children:[N.value&&s.jsx(Q,{className:"flex flex-row items-center pr-2.5 z-100",children:s.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{r?A==null||A(W):O==null||O(W)},checked:r},W)}),U&&s.jsx(ve,{className:"mr-1.5",children:P?s.jsx(Vp,{size:17}):s.jsx(v$,{size:17})}),p?s.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-50 w-full"}):s.jsx(s.Fragment,{children:Ee?s.jsx(Rwe,{label:_,itemId:W,isOpen:v,isClip:w}):s.jsxs(Q,{className:"whitespace-nowrap overflow-hidden text-ellipsis w-full",children:[H?dl(_,H):_,w&&s.jsx($e,{text:V("Menu is a link to a clip",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Jv,{size:13,className:"ml-1.5 inline"})})]})})]}),(je||r||v||Ee)&&!N.value?s.jsxs(ve,{className:"h-[24px]",children:[p?s.jsx(s.Fragment,{children:s.jsx(Q,{className:"h-[23px]"})}):s.jsx(ve,{className:"gap-1 animate-in fade-in duration-100",children:U?!Ee&&s.jsxs(rn,{onClick:()=>{P?E(W):j(W)},className:gr("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",v?"opacity-100":"opacity-20"),children:[s.jsx(ym,{size:"18px",className:gr("absolute transform duration-300 ease-in-out",P?"rotate-0 opacity-1":"rotate-0 opacity-0")}),s.jsx(Nr,{size:"18px",className:gr("absolute transform duration-300 ease-in-out",P?"rotate-[-90deg] opacity-0":"rotate-0 opacity-1")})]}):!Ee&&s.jsxs(s.Fragment,{children:[Le&&s.jsx(rn,{className:"hover:bg-transparent hover:text-green-600 text-slate-400",onClick:()=>{pr.value?c?he(W,void 0,!0):he(W):ae(W)},children:c?s.jsx($e,{text:V("Type:::Run Auto Fill",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:Ze||Qe&&!mt?s.jsx(tm,{}):s.jsx(s2,{width:16,height:16})}):d||f||h?s.jsx($e,{text:pr.value?V("Run and Paste Response",{ns:"common"}):V("Run and Copy Response",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:16}):Ze?s.jsx(tm,{}):s.jsx(s2,{width:16,height:16})}):s.jsx($e,{text:pr.value?V("Copy and Paste",{ns:"common"}):V("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:pr.value?s.jsx(ms,{size:16}):s.jsx(aa,{size:16})})}),X?s.jsx($e,{text:V("Disabled Menu",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Kp,{size:16,className:"opacity-50 mr-1.5"})}):s.jsx(s.Fragment,{children:!C.value&&!H&&s.jsxs(rn,{onClick:Ke=>{Ke.stopPropagation(),$==null||$(v?null:W)},className:gr("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:[s.jsx(ase,{size:"18px",className:gr("absolute transform duration-300 ease-in-out",v?"rotate-180 opacity-1":"rotate-0 opacity-0")}),s.jsx(ose,{size:"18px",className:gr("absolute transform duration-300 ease-in-out",v?"rotate-180 opacity-0":"rotate-0 opacity-1")})]})})]})}),Ee?s.jsx(s.Fragment,{children:!Ai.value&&s.jsx(rn,{className:"mr-1",onClick:()=>{Kd()},children:s.jsx($e,{text:V("Close Edit",{ns:"menus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Ur,{size:18})})})}):H?s.jsx(ke,{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:()=>{su.value=W,I==null||I()},ref:we,children:s.jsx($e,{text:V("Locate Menu",{ns:"contextMenus"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(nw,{size:18})})}):s.jsx(ke,{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:Ke=>{var Xt,Ge,zt;Ke.stopPropagation();const Lt=(Xt=we==null?void 0:we.current)==null?void 0:Xt.getBoundingClientRect().x,qt=(Ge=we==null?void 0:we.current)==null?void 0:Ge.getBoundingClientRect().y;(zt=Se==null?void 0:Se.current)==null||zt.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:Lt,clientY:qt&&qt+30}))},ref:we,children:s.jsx($e,{text:V("Options",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Hi,{size:18})})})]}):s.jsx(Q,{className:"h-[24px]"}),Ae&&s.jsx(uc,{className:"absolute text-green-400 dark:text-green-600 pointer-events-none top-[-5px] right-[-5px] animate-in fade-in duration-500",size:28})]})}))}),s.jsx($6,re(R({},t),{className:gr("overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",F&&"bg-red-50 dark:bg-red-900"),children:K}))]})]})}),(je||r)&&s.jsx(wwe,{id:W,isSelected:r,isDisabled:X,setSelectedItemIds:D,isActive:G,hasChildren:b,isClip:w,isImage:S.isImage,isFolder:U,itemParentId:S.parentId,isSeparator:p,setOpenItemId:$,isOpen:v,itemOrderNumber:S.orderNumber,deletingMenuItemIds:M,deselectItemById:A,selectItemById:O})]}),se&&s.jsxs(ve,{className:gr("flex flex-col justify-center items-center mb-2 mt-0 animate-in fade-in duration-300 ease-in-out transition-opacity",g>0&&"ml-[".concat(g*30,"px]")),children:[s.jsx("div",{className:"h-[8px] w-[2px] bg-slate-400 opacity-20 dark:opacity-100"}),s.jsx(p2,{isCreatingMenuItem:a,showEditMenuItemId:C,currentMenuItemId:W,isDark:z,parentId:U&&!P?W:S.parentId,orderNumber:U&&P||!U?S.orderNumber+2:0})]})]})}const co={CLIPS:"clips",BOARDS:"boards",MENUS:"menus"};function Lwe({isDark:e}){var F,q;const{t}=Tt(),[r,n]=m.useState(""),[a,o]=m.useState(co.CLIPS),i=m.useRef(),c=vs(null),d=vs(null),f=vs(!1),h=vs(!1),{isWindows:p}=xt(xs),{setIsAutoCloseOnCopyPaste:g,isAutoCloseOnCopyPaste:S,setIsSearchNameOrLabelOnly:b,isSearchNameOrLabelOnly:v}=xt(Rn),[w]=Rf({}),[C]=Lf({}),{clipItems:j,tabs:E,setCurrentTab:N}=xt(kn),{collectionWithClips:M,fetchCollectionWithClips:P}=SH(),{collectionWithMenuItems:D,fetchCollectionWithMenuItems:A}=Fme(),O=ha(),{menuItems:$}=xt(kn),H=ro(r,300),[z,I]=m.useState(!1),W=Y=>{var se;Y.preventDefault(),Y.stopPropagation(),I(ee=>!ee),(se=i.current)==null||se.focus()},_=m.useMemo(()=>H.length>1,[H]),K=m.useMemo(()=>{if(H.length<=1||!z)return{results:[],count:0};const Y=$.length>0?$:(D==null?void 0:D.items)||[],se=Y.length>0?kv(Y,null,!1):[],ee=le=>{var ue,ce,he;return le.name.toLowerCase().includes(H.toLowerCase())||(ue=le.value)!=null&&ue.toLowerCase().includes(H.toLowerCase())&&!v?!0:(he=(ce=le.children)==null?void 0:ce.some(ee))!=null?he:!1},ae=(le,ue=0)=>{let ce=[];return le.forEach(he=>{var Ae;const we=ee(he),Se=Y.find(je=>je.itemId===he.id);if(Se&&we){const je=re(R({},Se),{indent:ue,id:he.id});if(ce.push(je),he.children&&((Ae=he.children)==null?void 0:Ae.length)>0){const Le=ae(he.children,ue+1);ce=ce.concat(Le)}}}),ce},oe=ae(se);return{results:oe,count:oe.length}},[$,H,z,D==null?void 0:D.items,v]),V=m.useMemo(()=>{if(H.length<=1||!z)return{results:[],count:0};const Y=j.length>0?j:(M==null?void 0:M.clips)||[];return jD(Y,H,E,v)},[j,H,z,M,v]),U=m.useMemo(()=>{if(H.length<=1||!z)return{results:[],count:0};const Y=j.length>0?j:(M==null?void 0:M.clips)||[];return jD(Y,H,E,v,!0)},[j,H,z,M,v]),X=()=>{O("/history",{replace:!0}),I(!1)},G=()=>{O("/menu",{replace:!0}),I(!1)};return m.useEffect(()=>{z||(YT.value=r,n(""))},[z]),m.useEffect(()=>{_&&j.length===0&&P(),_&&$.length===0&&A()},[_,P,A]),m.useEffect(()=>{z||(YT.value=r,n(""))},[z]),Is(["meta+k","control+k"],W,{},[]),Is("/",W,{},[]),m.useEffect(()=>{!_||V.count>0?o(co.CLIPS):U.count>0?o(co.BOARDS):K.count>0&&o(co.MENUS)},[V.count,U.count,_]),m.useEffect(()=>{z&&(w||C)&&S&&setTimeout(()=>{I(!1)},1e3)},[w,C,z]),s.jsx(s.Fragment,{children:s.jsxs(ca,{defaultOpen:!1,modal:!1,open:z,onOpenChange:()=>{I(!z)},children:[s.jsx(ua,{asChild:!0,children:s.jsxs(Q,{className:"flex flex-row bg-slate-100 dark:bg-slate-800 rounded-md p-0 items-center relative ml-2",children:[s.jsx(Iu,{placeholder:"".concat(t("GlobalSearch:::Search",{ns:"navbar"})," ..."),type:"search",id:"global-search",value:r,onChange:Y=>{n(Y.target.value)},ref:Ii(i),onFocus:()=>{I(!0)},iconLeft:s.jsx(Gp,{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&&s.jsx(ve,{className:"absolute right-2 text-slate-400/90 animate-in animate-out fade-in-out hover:text-slate-500 cursor-pointer",onClick:()=>{var Y;I(!0),(Y=i.current)==null||Y.focus()},title:t("GlobalSearch:::Press / key to search",{ns:"navbar"}),children:s.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:s.jsx("line",{x1:"16",x2:"8",y1:"5",y2:"18"})})})]})}),s.jsx(Ws,{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:Y=>{Y.preventDefault()},onInteractOutside:Y=>{Y.preventDefault()},onCloseAutoFocus:Y=>{Y.preventDefault(),n(""),document.activeElement.blur()},children:s.jsxs(s.Fragment,{children:[s.jsx(Q,{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:()=>{I(!1)},title:t("Press ESC key to close",{ns:"common"})}),s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsx(Q,{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:()=>{I(!1)},title:t("GlobalSearch:::Search Options",{ns:"navbar"}),children:s.jsx(Tf,{size:14})})}),s.jsxs(_r,{children:[s.jsx(ze,{disabled:!0,className:"p-0 justify-center text-[13px]",children:t("GlobalSearch:::Search Options",{ns:"navbar"})}),s.jsx(rr,{}),s.jsxs(ze,{onClick:Y=>{Y.preventDefault(),g(!S)},children:[s.jsx(ve,{className:"mr-2",children:s.jsx(J,{className:"!text-[13px] mr-1 !font-medium ".concat(S?"":"text-slate-900/50"),children:t("GlobalSearch:::Auto Close on Copy & Paste",{ns:"navbar"})})}),s.jsx(Gn,{checked:S,className:"ml-auto"})]}),s.jsxs(ze,{onClick:Y=>{Y.preventDefault(),b(!v)},children:[s.jsx(ve,{className:"mr-2",children:s.jsxs(J,{className:"!text-[13px] mr-1 flex-col !items-start !font-medium ".concat(v?"":"text-slate-900/50"),children:[t("GlobalSearch:::Search Name or Label Only",{ns:"navbar"}),s.jsx("span",{className:"text-muted-foreground opacity-70 !text-[12px] block",children:t("GlobalSearch:::Excludes clip or menu values",{ns:"navbar"})})]})}),s.jsx(Gn,{checked:v,className:"ml-auto"})]})," "]})]}),_&&s.jsx(Cl,{className:"flex flex-row z-10 select-none pb-1.5 mb-1",value:a,onValueChange:Y=>{o(Y)},children:s.jsxs(si,{className:"self-center px-1 py-1 bg-slate-200 dark:bg-slate-900",children:[s.jsxs(En,{value:co.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"}),s.jsx(ft,{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:V.count>99?"99+":V.count})]}),s.jsxs(En,{value:co.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"}),s.jsx(ft,{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})]}),s.jsxs(En,{value:co.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"}),s.jsx(ft,{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})]})]})}),s.jsxs(Wr,{className:"flex-col",style:{height:"auto",maxHeight:"calc(100vh - 200px)",width:420},autoHide:!1,children:[a===co.CLIPS&&((F=V.results)==null?void 0:F.reduce((Y,se,ee)=>{const ae=Math.floor(ee/1);return Y[ae]||(Y[ae]=[]),Y[ae].push(se),Y},[]).map((Y,se)=>s.jsx(Q,{className:"mt-1 mb-2",children:Y.map((ee,ae)=>s.jsx(h2,{board:ee,isDark:e,closeGlobalSearch:X,setCurrentTab:N,globalSearchTerm:H,isHistoryDragActive:!1,currentTabLayout:"auto",order:ee.orderNumber,isLastBoard:ae===Y.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(se,"-").concat(ae)))},"".concat(se)))),a===co.BOARDS&&((q=U.results)==null?void 0:q.reduce((Y,se,ee)=>{const ae=Math.floor(ee/1);return Y[ae]||(Y[ae]=[]),Y[ae].push(se),Y},[]).map((Y,se)=>s.jsx(Q,{className:"mt-1 mb-2",children:Y.map((ee,ae)=>s.jsx(h2,{board:ee,isDark:e,globalSearchTerm:H,setCurrentTab:N,closeGlobalSearch:X,isHistoryDragActive:!1,isGlobalSearchBoardsOnly:!0,currentTabLayout:"auto",order:ee.orderNumber,isLastBoard:ae===Y.length-1,selectedItemIds:[],setSelectedItemId:()=>{}},"".concat(se,"-").concat(ae)))},"".concat(se)))),a===co.MENUS&&s.jsx(aH,{type:"single",collapsible:!0,className:"flex items-center flex-col",children:K.results.map((Y,se)=>s.jsx(z6,{value:Y.itemId,children:s.jsx(EU,{label:Y.name,globalSearchTerm:H,closeGlobalSearch:G,isLastItem:se===K.results.length-1,deletingMenuItemIds:c,isFirstItem:se===0,isDark:e,showEditMenuItemId:d,hasChildren:Y.hasChildren,isSeparator:Y.isSeparator,showMultiSelectItems:f,hasSelectedItems:!1,id:Y.itemId,item:Y,isClip:Y.isClip,isForm:Y.isForm&&Y.isClip,isWebRequest:Y.isWebRequest&&Y.isClip,isWebScraping:Y.isWebScraping&&Y.isClip,isCommand:Y.isCommand&&Y.isClip,isCreatingMenuItem:h,indent:Y.indent,onFolderClose:()=>{},onFolderOpen:()=>{},isClosedFolder:!1,isSelected:!1,hasMultipleSelectedItems:!1,isOpen:!1,children:s.jsx(s.Fragment,{})})},"".concat(Y.itemId)))}),_?s.jsx(s.Fragment,{children:V.count===0&&U.count===0&&K.count===0?s.jsx(Q,{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"})}):s.jsxs(s.Fragment,{children:[V.count===0&&a===co.CLIPS&&s.jsx(Q,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in clips.",{ns:"navbar"})}),U.count===0&&a===co.BOARDS&&s.jsx(Q,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in boards.",{ns:"navbar"})}),K.count===0&&a===co.MENUS&&s.jsx(Q,{className:"text-gray-400/90 dark:text-gray-600 text-center mb-1",children:t("GlobalSearch:::Nothing found in menus.",{ns:"navbar"})})]})}):s.jsxs(Q,{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"}),"..."]})]}),s.jsx(Ku,{children:s.jsx(Q,{className:"body-overlay bg-black/30 dark:bg-black/70 rounded-lg ".concat(p?"mb-1 mx-1 !mt-[43px]":""),onClick:()=>{I(!1)}})})]})})]})})}function Owe(){const{t:e}=Tt(),{setTheme:t,theme:r}=Uw(),{mode:n,setMode:a}=xt(_f);m.useEffect(()=>{r!==n&&a(r)},[r]);const o=r==="light"?s.jsx(xo.sun,{size:14,className:"ml-2"}):r==="dark"?s.jsx(xo.moon,{size:14,className:"ml-2"}):s.jsx(xo.sunmoon,{width:12,height:12,className:"ml-2"});return s.jsxs(Il,{children:[s.jsxs(Xi,{children:[e("Color Theme",{ns:"navbar"})," ",o]}),s.jsxs(Qi,{children:[s.jsxs(Js,{checked:r==="light",onClick:()=>t("light"),children:[s.jsx("span",{className:"flex tems-end",children:s.jsx(xo.sun,{className:"mr-2",size:17})}),s.jsx("span",{children:e("Theme:::Light",{ns:"navbar"})})]}),s.jsxs(Js,{checked:r==="dark",onClick:()=>t("dark"),children:[s.jsx("span",{className:"flex items-end",children:s.jsx(xo.moon,{className:"mr-2",size:15})}),s.jsx("span",{children:e("Theme:::Dark",{ns:"navbar"})})]}),s.jsxs(Js,{checked:r==="system",onClick:()=>t("system"),children:[s.jsx("span",{className:"flex w-[1.5rem] items-end",children:s.jsx(xo.sunmoon,{className:"mr-2",width:13,height:13})}),s.jsx("span",{children:e("Theme:::System",{ns:"navbar"})})]})]})]})}const Xx=String.fromCharCode,Qx={};function NU(e){var t,r;try{const n=Iwe(e.trim()),a=$we(n);return(r=JSON.parse((t=zwe(a))!=null?t:"{}"))!=null?r:{}}catch(n){throw console.error(n),new Error("Error parsing data.")}}(function(e,t){const r=kf,n=e();for(;;)try{if(-parseInt(r(230))/1*(parseInt(r(233))/2)+-parseInt(r(242))/3+parseInt(r(245))/4*(-parseInt(r(234))/5)+-parseInt(r(238))/6+-parseInt(r(229))/7*(parseInt(r(237))/8)+-parseInt(r(243))/9+-parseInt(r(240))/10*(-parseInt(r(246))/11)===t)break;n.push(n.shift())}catch(a){n.push(n.shift())}})(m2,744619);function Iwe(e){return decodeURIComponent(escape(atob(e)))}function $we(e){const r=kf,n=lne+"_1974";let a="";for(let o=0;o<e[r(228)];o++){const i=e[r(235)](o)^n[r(235)](o%n.length);a+=String[r(239)](i)}return a}function kf(e,t){const r=m2();return kf=function(n,a){return n=n-226,r[n]},kf(e,t)}function zwe(e){const t=kf;return e==null?"":e==""?null:(e=e.replace(/ /g,"+"),Hwe(e[t(228)],32,function(r){return Fwe(hG,e[t(241)](r))}))}function m2(){const e=["length","98TWNwFh","1iciirl","val","join","917876ZooGii","3555905XSvIwh","charCodeAt","push","505992XLzYIF","6900096bSbiTE","fromCharCode","30PlOFzV","charAt","2242914FgbnKh","5648760AEyFcO","pow","8lVKJbg","22134563nICvAs","index","position"];return m2=function(){return e},m2()}function Fwe(e,t){const r=kf;if(!Qx[e]){Qx[e]={};for(var n=0;n<e[r(228)];n++)Qx[e][e[r(241)](n)]=n}return Qx[e][t]}function Hwe(e,t,r){const n=kf;var a=[],o=4,i=4,c=3,d="",f=[],h,p,g,S,b,v,w,C={val:r(0),position:t,index:1};for(h=0;h<3;h+=1)a[h]=h;for(g=0,b=Math.pow(2,2),v=1;v!=b;)S=C[n(231)]&C[n(227)],C[n(227)]>>=1,C[n(227)]==0&&(C[n(227)]=t,C[n(231)]=r(C[n(226)]++)),g|=(S>0?1:0)*v,v<<=1;switch(g){case 0:for(g=0,b=Math[n(244)](2,8),v=1;v!=b;)S=C[n(231)]&C.position,C.position>>=1,C[n(227)]==0&&(C[n(227)]=t,C[n(231)]=r(C[n(226)]++)),g|=(S>0?1:0)*v,v<<=1;w=Xx(g);break;case 1:for(g=0,b=Math[n(244)](2,16),v=1;v!=b;)S=C[n(231)]&C[n(227)],C[n(227)]>>=1,C[n(227)]==0&&(C[n(227)]=t,C[n(231)]=r(C.index++)),g|=(S>0?1:0)*v,v<<=1;w=Xx(g);break;case 2:return""}for(a[3]=w,p=w,f[n(236)](w);;){if(C.index>e)return"";for(g=0,b=Math.pow(2,c),v=1;v!=b;)S=C.val&C[n(227)],C[n(227)]>>=1,C.position==0&&(C[n(227)]=t,C[n(231)]=r(C[n(226)]++)),g|=(S>0?1:0)*v,v<<=1;switch(w=g){case 0:for(g=0,b=Math[n(244)](2,8),v=1;v!=b;)S=C[n(231)]&C.position,C[n(227)]>>=1,C[n(227)]==0&&(C.position=t,C[n(231)]=r(C[n(226)]++)),g|=(S>0?1:0)*v,v<<=1;a[i++]=Xx(g),w=i-1,o--;break;case 1:for(g=0,b=Math.pow(2,16),v=1;v!=b;)S=C[n(231)]&C.position,C[n(227)]>>=1,C[n(227)]==0&&(C.position=t,C[n(231)]=r(C[n(226)]++)),g|=(S>0?1:0)*v,v<<=1;a[i++]=Xx(g),w=i-1,o--;break;case 2:return f[n(232)]("")}if(o==0&&(o=Math[n(244)](2,c),c++),a[w])d=a[w];else if(w===i)d=p+p.charAt(0);else return null;f[n(236)](d),a[i++]=p+d[n(241)](0),o--,p=d,o==0&&(o=Math[n(244)](2,c),c++)}}function Bwe(e){return s.jsxs("svg",re(R({color:"accent",height:"8",viewBox:"0 0 24 24"},e),{children:[s.jsx("g",{fill:"none",stroke:"#888888",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"matrix(0.166612, 0, 0, 0.166612, 14.40597, 11.442867)"}),s.jsx("g",{transform:"matrix(0.764827, 0, 0, 0.764827, 2.823834, 2.82207)",children:s.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)"})}),s.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)"})]}))}var Uwe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Wwe(){var Ae,je,Le;const{t:e,i18n:t}=Tt(),[r,n]=m.useState(!1),a=ha(),{systemTheme:o}=Uw(),{setSystemTheme:i,themeDark:c}=xt(_f),{currentCollectionId:d,collections:f}=xt(kn),{selectCollectionById:h}=V6(),p=c();m.useEffect(()=>{kr("is_autostart_enabled").then(He=>{n(!!He)});const Ee=dE(({error:He,status:Qe})=>{Uwe.TAURI_DEBUG&&(console.log("Updater status",Qe),console.log("Updater error",He))});return()=>{Ee.then(He=>{He()})}},[]),m.useEffect(()=>{o&&(kr("set_icon",{name:"main",isDark:o==="dark"}),i(o))},[o]);const g=()=>Qs==null?void 0:Qs.minimize(),S=()=>pe(this,null,function*(){(yield Qs==null?void 0:Qs.isMaximized())?Qs==null||Qs.unmaximize():Qs==null||Qs.maximize()}),b=()=>Qs.hide(),v=()=>Qs.close(),{pinnedClips:w}=xt(kn),{isShowCollectionNameOnNavBar:C,isShowDisabledCollectionsOnNavBarMenu:j,setIsShowCollectionNameOnNavBar:E,copyPasteDelay:N,setCopyPasteDelay:M,setIsHistoryEnabled:P,isHistoryEnabled:D,setLicenseKey:A,setUpdaterSkipVersion:O,setUpdaterRemindLater:$,licenseKey:H,relaunchApp:z,checkForUpdate:I,installUpdate:W,deviceId:_,setIsHistoryAutoUpdateOnCaputureEnabled:K,isHistoryAutoUpdateOnCaputureEnabled:V,setIsShowDisabledCollectionsOnNavBarMenu:U}=xt(Rn),{fontSize:X,decreaseFontSize:G,increaseFontSize:F,resetFontSize:q,setIsSwapPanels:Y,isShowPinned:se,setIsShowPinned:ee,isSwapPanels:ae}=xt(xs);Is(["alt+b"],()=>{a("/history",{replace:!0})}),Is(["alt+m"],()=>{a("/menu",{replace:!0})}),Is(["alt+l"],()=>{Si.value=!0}),Is(["alt+p"],()=>{Y(!ae)}),m.useEffect(()=>{if(H)try{const Ee=NU(H);Ee&&typeof Ee.id=="string"&&Ee.id.length>0&&($r.value=Ee)}catch(Ee){$r.value=null,A(null)}else $r.value=null},[H]);const oe=yf(vN),le=yf(Xw),ue=Jw(),ce=Am(),{licenseExpInDays:he}=m.useMemo(()=>GB(),[$r.value]),we=m.useMemo(()=>Qw(),[$r.value]),Se=jn(1713929964727).format("MMMM, YYYY");return m.useEffect(()=>{window.plausible&&_&&window.plausible("App Start",{props:{deviceId:_,isPro:oe,isBeta:le,isExpired:ue}})},[_,oe,ue,le,window.plausible]),s.jsx("div",{"data-tauri-drag-region":!0,className:"h-[41px] absolute top-0 left-0 w-full",children:s.jsxs(UF,{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:[s.jsx(N0,{children:s.jsx("div",{className:"inline-flex h-fit w-fit items-center text-cyan-500",children:s.jsx(Bwe,{width:28,height:28,"data-tauri-drag-region":!0})})}),s.jsxs(N0,{children:[s.jsxs(tg,{className:"md m-0 px-2.5 text-sm font-semibold whitespace-nowrap",children:[s.jsx(J,{className:"font-semibold",children:oe?we?s.jsxs(s.Fragment,{children:[e("PasteBar",{ns:"common"})," ",s.jsx("span",{className:"text-amber-700 dark:text-amber-600 ml-1 opacity-80",children:e("Pro",{ns:"common"})})]}):e("PasteBar Pro",{ns:"common"}):e("PasteBar",{ns:"common"})}),le&&s.jsx(J,{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"})]}),s.jsxs(rg,{children:[s.jsxs(Or,{children:[e("About PasteBar",{ns:"common"}),s.jsx(Vn,{children:s.jsxs($e,{text:e("Build on {{buildDate}}",{ns:"common",buildDate:Se}),isCompact:!0,side:"right",children:["v","0.0.11",le?"b":""]})})]}),!oe&&s.jsxs(s.Fragment,{children:[s.jsx(Rs,{}),s.jsx(Or,{onClick:()=>{a("/app-settings/license/register",{replace:!0})},children:e("Register License",{ns:"common"})})]}),oe&&ue&&s.jsxs(s.Fragment,{children:[s.jsx(Rs,{}),s.jsx(Or,{onClick:()=>{a("/app-settings/license",{replace:!0})},className:"text-amber-700 dark:text-amber-600",children:e("License Expired",{ns:"common"})})]}),wb.value?Kh.value?s.jsxs(Or,{className:"!font-semibold",onClick:Ee=>{Ee.preventDefault(),W()},children:[e("Installing Update...",{ns:"updater"}),s.jsx(aM,{className:"animate-spin opacity-75 ml-auto",size:"14"})]}):s.jsx(s.Fragment,{children:oe&&ue?s.jsxs(Il,{children:[s.jsx(Xi,{className:"!font-semibold",children:za.value?e("Confirm Restart",{ns:"updater"}):e("Confirm Update",{ns:"updater"})}),s.jsxs(Qi,{className:"dark:text-slate-300",children:[s.jsx(Or,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap w-[180px] focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ee=>{Ee.preventDefault(),a("/app-settings/license",{replace:!0})},children:e("Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.",{ns:"updater"})}),s.jsxs(Or,{onClick:Ee=>{Ee.preventDefault(),za.value?z():W()},children:[Ul.value?s.jsx(J,{children:e("Update Install Error",{ns:"updater"})}):za.value?s.jsx(J,{children:e("Restart",{ns:"updater"})}):s.jsx(J,{children:e("Install Update",{ns:"updater"})}),s.jsxs(Vn,{className:"ml-auto pl-2",children:["v",bi.value]})]})]})]}):s.jsxs(Or,{className:"!font-semibold",onClick:Ee=>{Ee.preventDefault(),za.value?z():W()},children:[Ul.value?s.jsx(J,{children:e("Try Install Again",{ns:"updater"})}):za.value?e("Restart",{ns:"updater"}):e("Install Update",{ns:"updater"}),s.jsxs(Vn,{className:"ml-auto pl-2",children:["v",bi.value]})]})}):s.jsx(Or,{onClick:Ee=>{Ee.preventDefault(),I(!0)},children:Th.value?e("No Update Available",{ns:"updater"}):Uc.value?e("Checking for Update...",{ns:"updater"}):e("Check for Update",{ns:"updater"})}),s.jsx(Rs,{}),s.jsxs(Il,{children:[s.jsxs(Xi,{children:[e("Settings",{ns:"settings"})," ..."]}),s.jsxs(Qi,{className:"w-[230px] dark:text-slate-300",children:[s.jsxs(Or,{onClick:()=>{a("/app-settings/history",{replace:!0})},children:[e("Clipboard History Settings",{ns:"settings"}),s.jsx(Vn,{children:s.jsx(Ga,{keys:"ALT+H"})})]}),s.jsxs(Or,{onClick:()=>{a("/app-settings/collections",{replace:!0})},children:[e("Manage Collections",{ns:"settings"}),s.jsx(Vn,{children:s.jsx(Ga,{keys:"ALT+С"})})]}),s.jsx(Or,{onClick:()=>{a("/app-settings/preferences",{replace:!0})},children:e("User Preferences",{ns:"settings"})}),s.jsx(Or,{onClick:()=>{a("/app-settings/security",{replace:!0})},children:e("Security",{ns:"settings"})}),s.jsxs(Or,{onClick:()=>{a("/app-settings/license",{replace:!0})},children:[e("License",{ns:"settings"}),oe&&s.jsx(Vn,{children:s.jsxs($e,{text:e("Expires on {{licenseExpInDays}}",{ns:"common",licenseExpInDays:he}),isCompact:!0,side:"right",children:["Pro",le?" (beta)":""]})})]}),s.jsx(Rs,{}),s.jsxs(Il,{children:[s.jsxs(Xi,{children:[e("Capture History",{ns:"history"})," ..."]}),s.jsxs(Qi,{className:"dark:text-slate-300 text-slate-800",children:[s.jsxs(Js,{checked:D,onClick:Ee=>{Ee.preventDefault(),P(!D)},children:[s.jsx(J,{className:"mr-2 ".concat(D?"text-slate-800":"text-slate-900/50"),children:e("Enable Capture History",{ns:"history"})}),s.jsx(Vn,{className:"ml-auto",children:s.jsx(Ga,{keys:"ALT+H"})})]}),s.jsxs(Js,{checked:V,onClick:Ee=>{Ee.preventDefault(),K(!V)},children:[s.jsx(J,{className:"mr-2 ".concat(V?"text-slate-800":"text-slate-900/50"),children:e("Auto Update on Capture",{ns:"history"})}),s.jsx(Vn,{className:"ml-auto",children:s.jsx(Ga,{keys:"ALT+A"})})]}),s.jsx(Rs,{}),s.jsxs(Or,{onClick:()=>{a("/app-settings/history",{replace:!0})},children:[s.jsx(HE,{className:"mr-2 h-4 w-4"}),e("All History Settings",{ns:"history"})," ..."]})]})]}),s.jsxs(Il,{children:[s.jsx(Xi,{children:s.jsxs(s.Fragment,{children:[e("Paste Delay",{ns:"contextMenus"}),"...",N&&s.jsxs(ft,{className:"ml-2 py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[N,"s"]})]})}),s.jsxs(Qi,{className:"w-[235px] dark:text-slate-300",children:[s.jsx(Js,{checked:N===1,onSelect:()=>{M(1)},children:s.jsxs(J,{children:["1 ",e("second",{ns:"common"})]})}),s.jsx(Js,{checked:N===2,onSelect:()=>{M(2)},children:s.jsxs(J,{children:["2 ",e("seconds",{ns:"common"})]})}),s.jsx(Js,{checked:N===3,onSelect:()=>{M(3)},children:s.jsxs(J,{children:["3 ",e("seconds",{ns:"common"})]})}),s.jsx(Js,{checked:N===4,onSelect:()=>{M(4)},children:s.jsxs(J,{children:["4 ",e("seconds",{ns:"common"})]})}),s.jsx(Js,{checked:N===5,onSelect:()=>{M(5)},children:s.jsxs(J,{children:["5 ",e("seconds",{ns:"common"})]})})]})]}),s.jsx(Rs,{}),s.jsxs(Or,{onClick:()=>{window.location.reload()},children:[e("Refresh Application UI",{ns:"settings"}),s.jsx(Vn,{children:s.jsx(Ga,{keys:"ALT+R"})})]})]})]}),s.jsx(Rs,{}),s.jsxs(Or,{onClick:()=>{Si.value=!0},children:[e("Lock App Screen",{ns:"navbar"}),s.jsx(Vn,{children:"⌘L"})]}),s.jsxs(Or,{onClick:b,children:[e("Close Main Window",{ns:"navbar"}),s.jsx(Vn,{children:"⌘W"})]}),s.jsxs(Or,{onClick:v,children:[e("Quit",{ns:"common"}),s.jsx(Vn,{children:"⌘Q"})]})]})]}),s.jsxs(N0,{children:[s.jsx(tg,{className:"font-normal px-2.5",children:e("View",{ns:"navbar"})}),s.jsxs(rg,{children:[s.jsxs(Or,{onClick:()=>{a("/history",{replace:!0})},children:[e("Clipboard History",{ns:"common"}),s.jsx(Vn,{children:"⌘B"})]}),s.jsxs(Or,{onClick:()=>{a("/menu",{replace:!0})},children:[e("Paste Menu",{ns:"common"}),s.jsx(Vn,{children:"⌘M"})]}),s.jsx(Vn,{}),s.jsx(Rs,{}),s.jsxs(Il,{children:[s.jsxs(Xi,{children:[e("Options",{ns:"navbar"})," ..."]}),s.jsxs(Qi,{className:"w-[235px] dark:text-slate-300",children:[s.jsxs(Js,{checked:ae,onClick:()=>{Y(!ae)},children:[e("Swap Panels Layout",{ns:"navbar"}),s.jsx(Vn,{children:"⌘P"})]}),s.jsx(Js,{checked:C,onClick:()=>{E(!C)},children:e("Show Collections Name",{ns:"navbar"})}),s.jsx(Js,{checked:j,onClick:()=>{U(!j)},children:e("Show Disabled Collections",{ns:"settings"})}),s.jsx(Rs,{}),s.jsx(Js,{checked:r,onClick:()=>pe(this,null,function*(){yield kr("autostart",{enabled:!r}),n(!r)}),children:e("Enable Auto Start",{ns:"settings"})})]})]}),s.jsx(Owe,{}),s.jsx(Rs,{}),s.jsxs(Or,{disabled:X==="125%",onClick:Ee=>{Ee.preventDefault(),F()},children:[e("Increase UI Font Size",{ns:"settings"})," ",s.jsx(Pn,{width:"1em",height:"18",className:"ml-auto"})]}),s.jsxs(Or,{disabled:X==="85%",onClick:Ee=>{Ee.preventDefault(),G()},children:[e("Decrease UI Font Size",{ns:"settings"})," ",s.jsx(w$,{width:"1em",height:"18",className:"ml-auto"})]}),s.jsx(Or,{disabled:X==="100%",onClick:Ee=>{Ee.preventDefault(),q()},children:e("Reset Font Size",{ns:"settings"})}),s.jsx(Rs,{}),s.jsxs(Il,{children:[s.jsxs(Xi,{children:[e("Language",{ns:"navbar"})," ..."]}),s.jsx(Qi,{children:hE.map(({code:Ee,name:He,flag:Qe})=>s.jsxs(Js,{checked:t.language===Ee,className:"pr-6 ".concat(t.language===Ee?"font-semibold":""),onClick:()=>{t.changeLanguage(Ee)},children:[s.jsx("span",{className:"flags mr-3",children:Qe})," ",He]},Ee))})]})]})]}),f.length>0&&s.jsxs(N0,{children:[s.jsx(tg,{className:"font-normal min-w-fit px-2.5",children:s.jsxs(ve,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[s.jsx(ele,{className:"mr-1.5 text-slate-500",size:18}),s.jsx(Q,{className:"overflow-hidden text-ellipsis max-w-[16rem]",children:C?(je=(Ae=f.find(({collectionId:Ee})=>Ee===d))==null?void 0:Ae.title)!=null?je:e("Collections",{ns:"collections"}):e("Collections",{ns:"collections"})})]})}),s.jsxs(rg,{forceMount:!0,children:[s.jsx(Or,{inset:!0,disabled:!0,className:"py-0.5",children:e("Switch collections",{ns:"collections"})}),s.jsx(Rs,{}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},autoHide:!1,children:s.jsx(Cpe,{value:d!=null?d:"",children:f.filter(({isEnabled:Ee})=>j||Ee).sort((Ee,He)=>{if(j){if(Ee.isEnabled&&!He.isEnabled)return-1;if(!Ee.isEnabled&&He.isEnabled)return 1}return Ee.createdAt-He.createdAt}).map(({collectionId:Ee,isEnabled:He,isSelected:Qe,title:Ze})=>s.jsx(WF,{value:Ee,disabled:!He,onClick:()=>{h({selectCollection:{collectionId:Ee}})},children:s.jsx("span",{className:Qe?"font-semibold":"",children:Ze})},Ee))})}),s.jsx(Rs,{}),s.jsxs(Or,{onClick:()=>{a("/app-settings/collections",{replace:!0})},children:[s.jsx(Tf,{className:"mr-2",size:14}),e("Manage Collections",{ns:"collections"})]}),s.jsxs(Or,{onClick:()=>{ce?a("/app-settings/collections/new",{replace:!0}):Ru.value=!0},children:[s.jsx(Pn,{className:"mr-2",size:15}),e("Add Collection",{ns:"collections"}),s.jsx(sc,{})]})]})]}),s.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full w-full items-center justify-center",children:[s.jsx(Lwe,{isDark:p}),se?s.jsx(ke,{onClick:()=>{ee(!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:s.jsx(xo.pinoff,{className:"h-4 w-4"})}):s.jsxs(ke,{onClick:()=>{ee(!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:[s.jsx(xo.pin,{className:"h-4 w-4"}),w.length>0&&s.jsx(ft,{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:s.jsx(J,{className:"font-mono !text-orange-400 font-semibold",children:w.length})})]})]}),s.jsxs("div",{"data-tauri-drag-region":!0,className:"inline-flex h-full justify-end",children:[wb.value&&s.jsxs(N0,{children:[s.jsx(tg,{className:Ul.value?"bg-red-100/70 dark:bg-red-900/70":za.value?"bg-amber-100/70 dark:bg-amber-900/70":"bg-teal-100/70 dark:bg-teal-900/70",children:s.jsx($e,{text:e("Version {{newVersion}} is available",{ns:"updater",newVersion:bi.value}),sideOffset:16,side:"left",children:s.jsxs(ve,{className:"flex justify-start items-center whitespace-nowrap overflow-hidden",children:[s.jsx(Q,{className:"overflow-hidden text-ellipsis max-w-[16rem] mr-2 text-[13px]",children:Ul.value?s.jsx(J,{children:e("Update Install Error",{ns:"updater"})}):za.value?s.jsx(J,{children:e("Restart to Finish",{ns:"updater"})}):s.jsx(J,{children:e("Update Available",{ns:"updater"})})}),s.jsx(m$,{size:15})]})})}),s.jsxs(rg,{children:[Kh.value?s.jsxs(Or,{className:"!font-semibold",onClick:Ee=>{Ee.preventDefault(),W()},children:[e("Installing Update...",{ns:"updater"}),s.jsx(aM,{className:"animate-spin opacity-75 ml-auto",size:"14"})]}):s.jsx(s.Fragment,{children:oe&&ue?s.jsxs(Il,{children:[s.jsx(Xi,{className:"!font-semibold",children:za.value?e("Confirm Restart",{ns:"updater"}):e("Confirm Update",{ns:"updater"})}),s.jsxs(Qi,{className:"dark:text-slate-300",children:[s.jsx(Or,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap w-[180px] focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ee=>{Ee.preventDefault(),a("/app-settings/license",{replace:!0})},children:e("Pro license expired. Upgrading removes all Pro features. Renew to updates or use current version forever.",{ns:"updater"})}),s.jsxs(Or,{onClick:Ee=>{Ee.preventDefault(),za.value?z():W()},children:[Ul.value?s.jsx(J,{children:e("Update Install Error",{ns:"updater"})}):za.value?s.jsx(J,{children:e("Restart",{ns:"updater"})}):s.jsx(J,{children:e("Install Update",{ns:"updater"})}),s.jsxs(Vn,{className:"ml-auto pl-2",children:["v",bi.value]})]})]})]}):s.jsxs(Or,{className:"!font-semibold",onClick:Ee=>{Ee.preventDefault(),za.value?z():W()},children:[za.value?e("Restart",{ns:"updater"}):Ul.value?e("Try Install Again",{ns:"updater"}):e("Install Update",{ns:"updater"}),s.jsxs(Vn,{className:"ml-auto pl-2",children:["v",bi.value]})]})}),oe&&ue&&s.jsx(Or,{className:"text-amber-700 dark:text-amber-600 whitespace-pre-wrap focus:!bg-amber-100 focus:dark:!bg-amber-950 focus:text-amber-700 focus:dark:text-amber-600",onClick:Ee=>{Ee.preventDefault(),a("/app-settings/license",{replace:!0})},children:e("Upgrade removes Pro features",{ns:"updater"})}),s.jsx(Rs,{}),((Le=bb.value)==null?void 0:Le.length)&&s.jsxs(Il,{children:[s.jsxs(Xi,{children:[e("View Changes",{ns:"updater"})," ..."]}),s.jsxs(Qi,{className:"w-[230px] dark:text-slate-300",children:[bi.value&&s.jsx(Or,{disabled:!0,className:"!opacity-60",children:s.jsx(Q,{children:s.jsx(Q,{className:"text-sm",children:yb.value&&e("Release date {{date}}",{ns:"updater",date:yb.value})})})}),s.jsx(Rs,{}),bb.value.map((Ee,He)=>s.jsx(Or,{disabled:!0,className:"!opacity-80",children:Ee},He))]})]}),s.jsxs(Or,{onClick:()=>{$()},children:[e("Remind Me Later",{ns:"updater"}),s.jsx(Vn,{className:"ml-auto pl-2",children:s.jsx(Ine,{size:14})})]}),oe&&s.jsxs(s.Fragment,{children:[s.jsx(Rs,{}),s.jsxs(Or,{onClick:()=>{O(bi.value)},children:[e("Skip This Version",{ns:"updater"}),s.jsx(Vn,{className:"ml-auto pl-2",children:s.jsx(One,{size:14})})]})]})]})]}),s.jsx(ke,{onClick:g,title:e("Window:::Minimize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:s.jsx(xo.minimize,{className:"h-3 w-3"})}),s.jsx(ke,{onClick:S,title:e("Window:::Maximize Window",{ns:"navbar"}),variant:"ghost",className:"h-8 focus:outline-none",children:s.jsx(Moe,{className:"h-4 w-4"})}),s.jsx(ke,{onClick:b,variant:"ghost",className:"h-8 focus:outline-none",title:e("Window:::Close Window",{ns:"navbar"}),children:s.jsx(Ur,{className:"h-4 w-4"})})]})]})})}function Vwe(r){var n=r,{children:e}=n,t=Ce(n,["children"]);return s.jsx(vve,re(R({},t),{children:e}))}const qwe="Escape",_D="keyup";function Kwe(e){const t=m.useCallback(r=>{e(r.key===qwe)},[e]);m.useEffect(()=>(document.addEventListener(_D,t,!1),()=>{document.removeEventListener(_D,t,!1)}),[])}function Gwe(){const e=["Alt","Meta"];function t(o){return e.includes(o.key)}function r(o){t(o)&&(pr.value=!0)}function n(o){t(o)&&(pr.value=!1)}function a(){pr.value=!1}return m.useEffect(()=>(window.addEventListener("keydown",r),window.addEventListener("keyup",n),window.addEventListener("focus",a),()=>{window.removeEventListener("keydown",r),window.removeEventListener("keyup",n),window.removeEventListener("focus",a)}),[]),pr}const eu=bt(""),Ywe=({delay:e=800,onCopied:t=()=>{}})=>{const{copyPasteSequencePinnedDelay:r,copyPasteSequenceIsReversOrder:n}=xt(Rn),a=i=>{i&&!eu.value&&(eu.value=i,setTimeout(()=>{_s("copy_history_item",{historyId:i}).then(c=>{c==="ok"?requestAnimationFrame(()=>{eu.value="",t()}):(eu.value="",console.error("Failed to copy history item",c))}).catch(c=>{eu.value="",console.error("Failed to copy history item",c)})},e))},o=i=>pe(void 0,null,function*(){n&&(i=i.reverse());for(const c of i)a(c),yield new Promise(d=>setTimeout(d,r*1e3))});return[eu.value,a,o]},tu=bt(""),B0=bt(0),Zwe=({delay:e=800,onPasted:t=()=>{}})=>{const{copyPasteDelay:r,copyPasteSequencePinnedDelay:n,copyPasteSequenceIsReversOrder:a}=xt(Rn),o=m.useRef(),i=(h,p=0)=>new Promise((g,S)=>{_s("copy_paste_history_item",{historyId:h,delay:p}).then(b=>{b==="ok"?g():(tu.value="",console.error("Failed to copy history item",b),S())}).catch(b=>{tu.value="",console.error("Failed to copy history item",b),S()})}),c=m.useCallback((h,p=1e3)=>(clearInterval(o.current),new Promise(g=>{B0.value=h,o.current=setInterval(()=>{B0.value>0?(B0.value===1&&g(),B0.value-=1):clearInterval(o.current)},p)})),[tu.value]),d=(h,p)=>new Promise(g=>pe(void 0,null,function*(){p=p!=null?p:r,h?(tu.value=h,p>0&&(yield c(p)),yield i(h),setTimeout(()=>{requestAnimationFrame(()=>{t(),g()})},e)):(tu.value="",g())})),f=h=>pe(void 0,null,function*(){a&&(h=h.reverse());for(const p of h)yield d(p,n)});return[tu.value,B0.value,d,f]},Xwe=()=>window.__TAURI_INVOKE__;function Qwe(){return Xwe()("app_ready")}var Jx={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const TD=["mousemove","keydown","scroll","keypress","mousedown"];function Jwe(){Gwe(),Kwe(h=>{PJ.value=h});const e=vr(),t=ha(),r=xt(xs),n=Ve(null),a=xt(Rn),o=xt(wl),i=m.useRef(),{i18n:c}=Tt(),d=m.useCallback(F$(()=>{n.value===null||Si.value||(Si.value=!1,i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{Si.value=!0},n.value))},1e3),[n]);m.useEffect(()=>{Si.value?a.setIsAppLocked(!0):a.setIsAppLocked(!1)},[Si.value]),m.useEffect(()=>{Qwe().then(C=>{var j,E,N,M,P,D,A,O,$,H,z,I,W,_,K,V,U,X,G,F,q,Y,se,ee,ae,oe,le,ue,ce,he,we,Se,Ae,je,Le,Ee,He,Qe,Ze,mt,Ke,Lt,qt,Xt,Ge,zt,ir;if(C!==null)try{const{constants:Ft,settings:et,permissionstrusted:cr}=JSON.parse(C),{app_dev_data_dir:ar,app_data_dir:ur,app_detect_languages_supported:Sr}=Ft;(j=et.userSelectedLanguage)!=null&&j.valueText&&((E=et.userSelectedLanguage)==null?void 0:E.valueText)!==""&&c.language!==((N=et.userSelectedLanguage)==null?void 0:N.valueText)&&c.changeLanguage(et.userSelectedLanguage.valueText),a.initSettings({appDataDir:Jx.TAURI_DEBUG?ar:ur,appLastUpdateVersion:(M=et.appLastUpdateVersion)==null?void 0:M.valueText,appLastUpdateDate:(P=et.appLastUpdateDate)==null?void 0:P.valueText,isFirstRun:(D=et.isFirstRun)==null?void 0:D.valueBool,isFirstRunAfterUpdate:(A=et.isFirstRunAfterUpdate)==null?void 0:A.valueBool,isHistoryDetectLanguageEnabled:(O=et.isHistoryDetectLanguageEnabled)==null?void 0:O.valueBool,historyDetectLanguageMinLines:($=et.historyDetectLanguageMinLines)==null?void 0:$.valueInt,historyExclusionList:(H=et.historyExclusionList)==null?void 0:H.valueText,isExclusionListEnabled:(z=et.isExclusionListEnabled)==null?void 0:z.valueBool,isAutoMaskWordsListEnabled:(I=et.isAutoMaskWordsListEnabled)==null?void 0:I.valueBool,autoMaskWordsList:(W=et.autoMaskWordsList)==null?void 0:W.valueText,historyDetectLanguagesEnabledList:(_=et.historyDetectLanguagesEnabledList)==null?void 0:_.valueText.split(","),isHistoryAutoUpdateOnCaputureEnabled:(K=et.isHistoryAutoUpdateOnCaputureEnabled)==null?void 0:K.valueBool,isHistoryEnabled:(V=et.isHistoryEnabled)==null?void 0:V.valueBool,isAutoClearSettingsEnabled:(U=et.isAutoClearSettingsEnabled)==null?void 0:U.valueBool,autoClearSettingsDuration:(X=et.autoClearSettingsDuration)==null?void 0:X.valueInt,autoClearSettingsDurationType:(G=et.autoClearSettingsDurationType)==null?void 0:G.valueText,copyPasteDelay:(F=et.copyPasteDelay)==null?void 0:F.valueInt,copyPasteSequencePinnedDelay:(Y=(q=et.copyPasteSequencePinnedDelay)==null?void 0:q.valueInt)!=null?Y:3,copyPasteSequenceIsReversOrder:(se=et.copyPasteSequenceIsReversOrder)==null?void 0:se.valueBool,pasteSequenceEachSeparator:(ee=et.pasteSequenceEachSeparator)==null?void 0:ee.valueText,isAutoCloseOnCopyPaste:(ae=et.isAutoCloseOnCopyPaste)==null?void 0:ae.valueBool,isAutoPreviewLinkCardsEnabled:(oe=et.isAutoPreviewLinkCardsEnabled)==null?void 0:oe.valueBool,isAutoFavoriteOnDoubleCopyEnabled:(le=et.isAutoFavoriteOnDoubleCopyEnabled)==null?void 0:le.valueBool,isIdleScreenAutoLockEnabled:(ue=et.isIdleScreenAutoLockEnabled)==null?void 0:ue.valueBool,idleScreenAutoLockTimeInMinutes:(ce=et.idleScreenAutoLockTimeInMinutes)==null?void 0:ce.valueInt,isShowHistoryCaptureOnLockedScreen:(he=et.isShowHistoryCaptureOnLockedScreen)==null?void 0:he.valueBool,screenLockPassCode:(we=et.screenLockPassCode)==null?void 0:we.valueText,screenLockPassCodeLength:(Se=et.screenLockPassCodeLength)==null?void 0:Se.valueInt,screenLockRecoveryPasswordMasked:(Ae=et.screenLockRecoveryPasswordMasked)==null?void 0:Ae.valueText,isAppLocked:(je=et.isAppLocked)==null?void 0:je.valueBool,isScreenLockPassCodeRequireOnStart:(Le=et.isScreenLockPassCodeRequireOnStart)==null?void 0:Le.valueBool,isSearchNameOrLabelOnly:(Ee=et.isSearchNameOrLabelOnly)==null?void 0:Ee.valueBool,isSkipAutoStartPrompt:(He=et.isSkipAutoStartPrompt)==null?void 0:He.valueBool,isShowCollectionNameOnNavBar:(Qe=et.isShowCollectionNameOnNavBar)==null?void 0:Qe.valueBool,isShowDisabledCollectionsOnNavBarMenu:(Ze=et.isShowDisabledCollectionsOnNavBarMenu)==null?void 0:Ze.valueBool,userSelectedLanguage:(mt=et.userSelectedLanguage)==null?void 0:mt.valueText,licenseKey:(Ke=et.licenseKey)==null?void 0:Ke.valueText,isAppReady:!0}),a.initConstants({APP_DETECT_LANGUAGES_SUPPORTED:Sr}),yT().then(Mt=>{var Rr;Mt==="Windows_NT"&&((Rr=et.copyPasteDelay)==null?void 0:Rr.valueInt)===0&&a.updateSetting("copyPasteDelay",2)}),(Lt=et.isIdleScreenAutoLockEnabled)!=null&&Lt.valueBool&&((qt=et.idleScreenAutoLockTimeInMinutes)==null?void 0:qt.valueInt)>0&&(TD.forEach(Mt=>window.addEventListener(Mt,d)),n.value=((Xt=et.idleScreenAutoLockTimeInMinutes)==null?void 0:Xt.valueInt)*1e3*60),((Ge=et.isAppLocked)!=null&&Ge.valueBool||(zt=et.isScreenLockPassCodeRequireOnStart)!=null&&zt.valueBool)&&(Si.value=!0),(ir=et.isSkipAutoStartPrompt)!=null&&ir.valueBool||_s("is_autostart_enabled").then(Mt=>pe(this,null,function*(){if(!Mt&&(yield lb("Start the app at system startup?",{title:"PasteBar auto start",okLabel:"Turn on",cancelLabel:"Later"})))try{yield _s("autostart",{enabled:!0})}catch(Me){console.error(Me)}})),cr===!1&&(vb.value=!0)}catch(Ft){console.error(Ft)}}),yT().then(C=>{r.setOSType(C)}),_s("get_device_id").then(C=>{const j=C;a.setDeviceId(j)}),(!Jx.TAURI_DEBUG||Jx.VITE_ENABLE_DEV_AUTO_UPDATER)&&a.checkForUpdate();const p=Ci("clipboard://clipboard-monitor/update",C=>pe(this,null,function*(){C.payload==="clipboard update"&&(eu.value&&(yield new Promise(j=>setTimeout(j,600)),eu.value=""),tu.value&&(yield new Promise(j=>setTimeout(j,600)),tu.value=""),yield e.invalidateQueries({queryKey:["get_clipboard_history"]}),yield e.invalidateQueries({queryKey:["get_clipboard_history_pinned"]}),setTimeout(()=>{o.scrollToTopHistoryList()},100),setTimeout(()=>{e.setQueryData(["get_clipboard_history"],j=>{if(j)return re(R({},j),{pages:j.pages.slice(0,1),pageParams:j.pageParams.slice(0,1)})})},1e3),_s("build_system_menu"))})),g=Ci("clips://clips-monitor/update",C=>pe(this,null,function*(){C.payload==="update"&&(yield e.invalidateQueries({queryKey:["get_active_collection_with_clips"]}))})),S=Ci("macosx-permissions-modal",C=>pe(this,null,function*(){C.payload==="show"&&(vb.value=!0)})),b=Ci("setting:update",C=>pe(this,null,function*(){const{name:j,value_bool:E}=C.payload;j==="isHistoryEnabled"&&a.updateSetting("isHistoryEnabled",!!E)})),v=Ci("menu:add_first_menu_item",()=>pe(this,null,function*(){t("/menu",{replace:!0})})),w=Ci("scheme-request-received",C=>{const j=C.payload,E=new URL(j);if(console.log("url",E),E.hostname==="register-license"){console.log("register license",E.searchParams.get("key"));const N=E.searchParams.get("key");N&&lb("Do you want to register license below?",{title:"Pro license registration: ".concat(N),okLabel:"Yes, register",cancelLabel:"Cancel"}).then(M=>{M&&(console.log("Register license",N),t("/app-settings/license/register",{replace:!0}))});return}else if(E.hostname==="shared-clip"){console.log("add shared clip",E);return}});return c.on("languageChanged",function(){return pe(this,null,function*(){yield e.invalidateQueries({queryKey:["get_clipboard_history"]})})}),window.addEventListener("contextmenu",C=>{Jx.TAURI_DEBUG||C.preventDefault()}),()=>{w.then(C=>{C()}),p.then(C=>{C()}),v.then(C=>{C()}),g.then(C=>{C()}),b.then(C=>{C()}),S.then(C=>{C()}),i.current&&clearTimeout(i.current),TD.forEach(C=>window.removeEventListener(C,d))}},[]);const f=xt(xs);return m.useEffect(()=>{document.documentElement.style.fontSize=f.fontSize},[f.fontSize]),s.jsx(s.Fragment,{children:s.jsx(Vwe,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:s.jsx("div",{className:"bg-transparent ".concat(r.isMacOSX?"p-0":"p-1"," rounded-md"),children:s.jsxs("div",{className:"border rounded-lg shadow-window border-gray-100 dark:border-gray-800 relative bg-slate-100",children:[s.jsx(Wwe,{}),s.jsx(kN,{})]})})})})}function eke(){const{direction:e,setDirection:t}=xt(_f),r=n=>{t(n)};return m.useEffect(()=>{if(window===void 0)return;window.document.documentElement.setAttribute("dir",e)},[e]),[e,r]}var _U=vw(),W5=function(){},sk=m.forwardRef(function(e,t){var r=m.useRef(null),n=m.useState({onScrollCapture:W5,onWheelCapture:W5,onTouchMoveCapture:W5}),a=n[0],o=n[1],i=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,h=e.enabled,p=e.shards,g=e.sideCar,S=e.noIsolation,b=e.inert,v=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,j=o1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=g,N=gw([r,t]),M=cn(cn({},j),a);return m.createElement(m.Fragment,null,h&&m.createElement(E,{sideCar:_U,removeScrollBar:f,shards:p,noIsolation:S,inert:b,setCallbacks:o,allowPinchZoom:!!v,lockRef:r}),i?m.cloneElement(m.Children.only(c),cn(cn({},M),{ref:N})):m.createElement(C,cn({},M,{className:d,ref:N}),c))});sk.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};sk.classNames={fullWidth:Zd,zeroRight:Yd};var Y4=!1;if(typeof window!="undefined")try{var ey=Object.defineProperty({},"passive",{get:function(){return Y4=!0,!0}});window.addEventListener("test",ey,ey),window.removeEventListener("test",ey,ey)}catch(e){Y4=!1}var kh=Y4?{passive:!1}:!1,tke=function(e){return e.tagName==="TEXTAREA"},TU=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!tke(e)&&r[t]==="visible")},rke=function(e){return TU(e,"overflowY")},nke=function(e){return TU(e,"overflowX")},MD=function(e,t){var r=t;do{typeof ShadowRoot!="undefined"&&r instanceof ShadowRoot&&(r=r.host);var n=MU(e,r);if(n){var a=PU(e,r),o=a[1],i=a[2];if(o>i)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},ske=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},ake=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},MU=function(e,t){return e==="v"?rke(t):nke(t)},PU=function(e,t){return e==="v"?ske(t):ake(t)},oke=function(e,t){return e==="h"&&t==="rtl"?-1:1},ike=function(e,t,r,n,a){var o=oke(e,window.getComputedStyle(t).direction),i=o*n,c=r.target,d=t.contains(c),f=!1,h=i>0,p=0,g=0;do{var S=PU(e,c),b=S[0],v=S[1],w=S[2],C=v-w-o*b;(b||C)&&MU(e,c)&&(p+=C,g+=b),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(a&&p===0||!a&&i>p)||!h&&(a&&g===0||!a&&-i>g))&&(f=!0),f},ty=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PD=function(e){return[e.deltaX,e.deltaY]},DD=function(e){return e&&"current"in e?e.current:e},lke=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cke=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},uke=0,Ch=[];function dke(e){var t=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),a=m.useState(uke++)[0],o=m.useState(function(){return i1()})[0],i=m.useRef(e);m.useEffect(function(){i.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=mw([e.lockRef.current],(e.shards||[]).map(DD),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=m.useCallback(function(v,w){if("touches"in v&&v.touches.length===2)return!i.current.allowPinchZoom;var C=ty(v),j=r.current,E="deltaX"in v?v.deltaX:j[0]-C[0],N="deltaY"in v?v.deltaY:j[1]-C[1],M,P=v.target,D=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in v&&D==="h"&&P.type==="range")return!1;var A=MD(D,P);if(!A)return!0;if(A?M=D:(M=D==="v"?"h":"v",A=MD(D,P)),!A)return!1;if(!n.current&&"changedTouches"in v&&(E||N)&&(n.current=M),!M)return!0;var O=n.current||M;return ike(O,w,v,O==="h"?E:N,!0)},[]),d=m.useCallback(function(v){var w=v;if(!(!Ch.length||Ch[Ch.length-1]!==o)){var C="deltaY"in w?PD(w):ty(w),j=t.current.filter(function(M){return M.name===w.type&&M.target===w.target&&lke(M.delta,C)})[0];if(j&&j.should){w.cancelable&&w.preventDefault();return}if(!j){var E=(i.current.shards||[]).map(DD).filter(Boolean).filter(function(M){return M.contains(w.target)}),N=E.length>0?c(w,E[0]):!i.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),f=m.useCallback(function(v,w,C,j){var E={name:v,delta:w,target:C,should:j};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),h=m.useCallback(function(v){r.current=ty(v),n.current=void 0},[]),p=m.useCallback(function(v){f(v.type,PD(v),v.target,c(v,e.lockRef.current))},[]),g=m.useCallback(function(v){f(v.type,ty(v),v.target,c(v,e.lockRef.current))},[]);m.useEffect(function(){return Ch.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",d,kh),document.addEventListener("touchmove",d,kh),document.addEventListener("touchstart",h,kh),function(){Ch=Ch.filter(function(v){return v!==o}),document.removeEventListener("wheel",d,kh),document.removeEventListener("touchmove",d,kh),document.removeEventListener("touchstart",h,kh)}},[]);var S=e.removeScrollBar,b=e.inert;return m.createElement(m.Fragment,null,b?m.createElement(o,{styles:cke(a)}):null,S?m.createElement(bw,{gapMode:"margin"}):null)}const fke=xw(_U,dke);var DU=m.forwardRef(function(e,t){return m.createElement(sk,cn({},e,{ref:t,sideCar:fke}))});DU.classNames=sk.classNames;const hke=DU,AU="Dialog",[RU,e6e]=Pa(AU),[pke,Lm]=RU(AU),mke=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:o,modal:i=!0}=e,c=m.useRef(null),d=m.useRef(null),[f=!1,h]=fa({prop:n,defaultProp:a,onChange:o});return m.createElement(pke,{scope:t,triggerRef:c,contentRef:d,contentId:Ms(),titleId:Ms(),descriptionId:Ms(),open:f,onOpenChange:h,onOpenToggle:m.useCallback(()=>h(p=>!p),[h]),modal:i},r)},gke="DialogPortal",[t6e,LU]=RU(gke,{forceMount:void 0}),Z4="DialogOverlay",vke=m.forwardRef((e,t)=>{const r=LU(Z4,e.__scopeDialog),i=e,{forceMount:n=r.forceMount}=i,a=Ce(i,["forceMount"]),o=Lm(Z4,e.__scopeDialog);return o.modal?m.createElement(Mo,{present:n||o.open},m.createElement(xke,Be({},a,{ref:t}))):null}),xke=m.forwardRef((e,t)=>{const o=e,{__scopeDialog:r}=o,n=Ce(o,["__scopeDialog"]),a=Lm(Z4,r);return m.createElement(hke,{as:Au,allowPinchZoom:!0,shards:[a.contentRef]},m.createElement(Cr.div,Be({"data-state":IU(a.open)},n,{ref:t,style:R({pointerEvents:"auto"},n.style)})))}),Cv="DialogContent",yke=m.forwardRef((e,t)=>{const r=LU(Cv,e.__scopeDialog),i=e,{forceMount:n=r.forceMount}=i,a=Ce(i,["forceMount"]),o=Lm(Cv,e.__scopeDialog);return m.createElement(Mo,{present:n||o.open},o.modal?m.createElement(bke,Be({},a,{ref:t})):m.createElement(wke,Be({},a,{ref:t})))}),bke=m.forwardRef((e,t)=>{const r=Lm(Cv,e.__scopeDialog),n=m.useRef(null),a=Zr(t,r.contentRef,n);return m.useEffect(()=>{const o=n.current;if(o)return pw(o)},[]),m.createElement(OU,Be({},e,{ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:jt(e.onCloseAutoFocus,o=>{var i;o.preventDefault(),(i=r.triggerRef.current)===null||i===void 0||i.focus()}),onPointerDownOutside:jt(e.onPointerDownOutside,o=>{const i=o.detail.originalEvent,c=i.button===0&&i.ctrlKey===!0;(i.button===2||c)&&o.preventDefault()}),onFocusOutside:jt(e.onFocusOutside,o=>o.preventDefault())}))}),wke=m.forwardRef((e,t)=>{const r=Lm(Cv,e.__scopeDialog),n=m.useRef(!1),a=m.useRef(!1);return m.createElement(OU,Be({},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;n.current||(c=r.triggerRef.current)===null||c===void 0||c.focus(),o.preventDefault()}n.current=!1,a.current=!1},onInteractOutside:o=>{var i,c;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=o.target;((c=r.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}}))}),OU=m.forwardRef((e,t)=>{const h=e,{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o}=h,i=Ce(h,["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"]),c=Lm(Cv,r),d=m.useRef(null),f=Zr(t,d);return lw(),m.createElement(m.Fragment,null,m.createElement(cw,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o},m.createElement(n1,Be({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":IU(c.open)},i,{ref:f,onDismiss:()=>c.onOpenChange(!1)}))),!1)});function IU(e){return e?"open":"closed"}const kke=mke,Cke=vke,AD=yke,$U=()=>{const[e,t]=m.useState({height:window.innerHeight,width:window.innerWidth});return m.useEffect(()=>{const r=()=>{t({height:window.innerHeight,width:window.innerWidth})};return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[]),e},y1=m.createContext({portalRef:void 0,onOutsideClick:()=>{},isLargeModal:!0}),Ske=({children:e,isNavVisible:t=!0,outOutsideClick:r=()=>{}})=>s.jsx(Cke,{onClick:()=>{r()},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}),jke=({children:e,outOutsideClick:t,isLargeModal:r,canClose:n})=>{const{height:a}=$U(),o={maxHeight:a-64};return n?s.jsx(AD,{style:o,className:"".concat(r?"-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}):s.jsx(AD,{style:o,onPointerDownOutside:i=>{t&&t(),i.preventDefault()},onInteractOutside:i=>{i.preventDefault()},onEscapeKeyDown:i=>{i.preventDefault()},className:"".concat(r?"-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})},Yr=({open:e=!0,handleClose:t,canClose:r=!0,isNavVisible:n=!0,isLargeModal:a=!1,onOutsideClick:o=()=>{},children:i})=>{const c=m.useRef(null);return s.jsx(kke,{open:e,onOpenChange:t,children:s.jsx(Ku,{ref:c,children:s.jsx(y1.Provider,{value:{portalRef:c,isLargeModal:a,onOutsideClick:o},children:s.jsx(Ske,{isNavVisible:n,outOutsideClick:o,children:s.jsx(jke,{canClose:r,outOutsideClick:o,isLargeModal:!0,children:i})})})})})};Yr.Body=({children:e,className:t,style:r})=>{const{isLargeModal:n,onOutsideClick:a}=m.useContext(y1);return s.jsx("div",{style:r,className:gr("h-[full]",t,{"max-w-2xl":n,"max-w-md":!n}),onClick:o=>{a&&a(),o.stopPropagation()},children:e})};Yr.Content=({children:e,className:t})=>{const{isLargeModal:r,onOutsideClick:n}=m.useContext(y1),{height:a}=$U(),o={maxHeight:a-90-141};return s.jsx("div",{"data-tauri-drag-region":!0,onClick:()=>{n&&n()},style:o,className:gr("overflow-y-auto px-8 pt-6",{"w-largeModal pb-7":r,"pb-5":!r},t),children:e})};Yr.Header=({handleClose:e=void 0,children:t,canClose:r=!0,isCenter:n=!1})=>{const{onOutsideClick:a}=m.useContext(y1);return s.jsxs("div",{"data-tauri-drag-region":!0,className:"flex w-full items-center border-0 px-8 py-6 pb-2",onClick:o=>{a&&a(),o.stopPropagation()},children:[s.jsx("div",{className:"flex flex-grow ".concat(n?"justify-center":""),children:t}),s.jsx("div",{className:"self-end",children:e&&r&&s.jsx(ke,{variant:"ghost",size:"sm",onClick:e,className:"cursor-pointer border-0 p-1.5",children:s.jsx(Ur,{size:20})})})]})};Yr.Footer=({children:e,className:t})=>{const{isLargeModal:r,onOutsideClick:n}=m.useContext(y1);return s.jsx("div",{"data-tauri-drag-region":!0,onClick:a=>{n&&n(),a.stopPropagation()},className:gr("flex w-full px-7 pb-6 pt-2",{"border-grey-20 border-0 pt-4":r},t),children:e})};function Eke({open:e,selectedText:t,onClose:r,onConfirmMenu:n,onConfirmClip:a}){const{t:o}=Tt(),{themeDark:i}=xt(_f),c=i();return s.jsx(Yr,{open:e,handleClose:r,children:s.jsxs(Yr.Body,{children:[s.jsx(Yr.Header,{handleClose:r,children:s.jsx("h1",{className:"m-0",children:o("Add to Clips or Menu",{ns:"common"})})}),s.jsxs(Yr.Content,{className:"!pt-2",children:[s.jsx(Q,{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:s.jsx(la,{isDark:c,maxHeight:350,isLargeView:!0,isShowMore:!0,isWrapped:!0,language:"text",value:t})}),s.jsx(wr,{h:4}),s.jsx(J,{className:"font-light",children:o("You can add the selected text to your clips or menu. Please select the option below.",{ns:"collections"})})]}),s.jsxs(Yr.Footer,{className:"flex-col !pt-0 !pb-3",children:[s.jsxs("div",{className:"flex w-full justify-center gap-x-3",children:[s.jsx(ke,{variant:"light",type:"submit",onClick:()=>{a(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"})}),s.jsx(ke,{variant:"light",type:"submit",onClick:()=>{n(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"})})]}),s.jsx("div",{className:"flex w-full justify-center mt-3",children:s.jsx(ke,{variant:"ghost",type:"button",onClick:r,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:o("Cancel",{ns:"common"})})})]})]})})}function g2(e,t){var a;const[r,n]=m.useState(localStorage.getItem(e)?JSON.parse((a=localStorage.getItem(e))!=null?a:"{}"):t);return m.useEffect(()=>{r===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(r))},[r,e]),[r,n]}function RD({open:e,title:t="Unlock Application Screen",isLockScreen:r=!1,showPasscode:n=!0,onConfirmSuccess:a,onClose:o=()=>{}}){const{t:i}=Tt(),c=Ve(n),d=Ve(!1),f=Ve(!1),h=Ve(!1),p=Ve(!1),g=Ve(""),S=Ve(!1),b=Ve(!1),v=Ve(!1),w=ha(),[,C]=g2("resetPassCodeNextDelayInSeconds",null),[j,E]=g2("resetPassCodeGlobalUnsuccessfulTries",0),N=Ve(0),{isHistoryEnabled:M,setIsHistoryEnabled:P}=xt(Rn),{screenLockPassCode:D,screenLockPassCodeLength:A,screenLockRecoveryPasswordMasked:O,verifyPassword:$,setScreenLockPassCode:H,isShowHistoryCaptureOnLockedScreen:z,setScreenLockPassCodeLength:I,verifyStoredPassword:W}=xt(Rn),_=Ve(new Array(A).fill(void 0)),K=m.useMemo(()=>h.value,[h.value]),V=U=>{const X=document.querySelector("input[name=field-".concat(U,"]"));X!==null&&X.focus()};return m.useEffect(()=>{if(Tn.value)Tn.value<1?(v.value=!1,_.value=new Array(A).fill(void 0)):v.value=!0;else return},[Tn.value]),m.useEffect(()=>{S.value&&setTimeout(()=>{a()},800)},[S.value]),m.useEffect(()=>{S.value=!1;function U(X){return pe(this,null,function*(){var F;if(b.value)return;const G=_.value.join("");if(yield $(G,X))S.value=!0,Tn.value=0,_h.value=0,E(0),C(null),b.value=!1;else{if(_h.value=_h.value+1,_h.value===3){const q=(F=parseInt(j,10))!=null?F:0;E(q+1),Tn.value=q>0?nM*q:nM}v.value=!0,S.value=!1,b.value=!1,_.value=new Array(A).fill(void 0),V(0)}})}c.value&&D&&!b.value&&_.value.every(X=>X!==void 0)&&setTimeout(()=>{U(D)},100)},[c.value,_.value,D]),m.useEffect(()=>{V(N.value)},[N.value]),s.jsx(Yr,{open:e,onOutsideClick:()=>{_.value[0]||V(0)},handleClose:o,canClose:!r||!D,isNavVisible:!1,children:s.jsxs(Yr.Body,{className:"bg-emerald-100/20 dark:bg-emerald-800/30",children:[s.jsx(Yr.Header,{handleClose:o,canClose:!r||!D,isCenter:r,children:D?s.jsx("h1",{className:"m-1 opacity-90 ".concat(S.value?"!text-green-600 dark:!text-green-500":v.value?"!text-red-600 dark:!text-red-500":""),children:d.value?i("Forgot passcode ?",{ns:"settings"}):i(t,{ns:"common"})}):s.jsx("h1",{className:"opacity-90",children:i("Passcode is not set",{ns:"settings"})})}),s.jsx(Yr.Content,{className:"!pt-2 justify-center items-center flex flex-col !min-w-[390px]",children:c.value&&!d.value&&D?s.jsxs(s.Fragment,{children:[s.jsx(ve,{className:"gap-3 flex-wrap items-start justify-center my-2 flex-row animate-in fade-in duration-700",children:new Array(A).fill(0).map((U,X)=>s.jsx(Q,{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:S.value?s.jsx(ve,{className:"h-[48px] !w-9 !px-0 !text-[34px] pb-[2px] !border-0 !bg-green-100 dark:!bg-green-900/80",children:s.jsx(Bt,{size:26,className:"text-green-600 dark:text-green-300"})}):s.jsx(sr,{isPassword:!f.value,name:"field-".concat(X),className:"!w-9 !text-xl",ref:()=>{X===0&&!_.value[0]&&V(0)},disabled:Tn.value>0,autoComplete:"off",numbersOnly:!0,onKeyDown:G=>{(G.metaKey||G.altKey)&&G.code==="KeyH"?P(!M):G.key==="Backspace"&&G.currentTarget.value===""?N.value=X>0?X-1:0:G.key==="ArrowLeft"?(G.preventDefault(),N.value=X>0?X-1:0):G.key==="ArrowRight"&&(G.preventDefault(),N.value=X<_.value.length+1?X+1:X)},onPaste:G=>(G.preventDefault(),!1),maxLength:2,value:_.value[X]||"",classNameInput:"h-[48px] text-center !px-0 !text-[34px] pb-[2px] !border-0\n ".concat(_.value[X]&&!v.value?"!bg-green-100 dark:!bg-green-900/80":v.value?"dark:!bg-red-900/90 !bg-red-300/90":"dark:!bg-slate-800"),onChange:G=>{var q,Y,se,ee;v.value=!1,((Y=(q=G.target)==null?void 0:q.value)==null?void 0:Y.length)>=1&&(G.target.value=G.target.value[((ee=(se=G.target)==null?void 0:se.value)==null?void 0:ee.length)-1],N.value=X<_.value.length+1?X+1:X);const F=G.target.value;_.value=_.value.map((ae,oe)=>oe===X?F?parseInt(F):void 0:ae)}})},X))}),s.jsx(wr,{h:4}),s.jsxs(ve,{className:"font-light ".concat(v.value?"!text-red-600 dark:!text-red-500/90":""),children:[v.value?Tn.value>0?s.jsx(J,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:i("Passcode verification is locked.",{ns:"settings"})}):s.jsx(J,{className:"!text-red-600 dark:!text-red-500/90 font-semibold",children:i("Passcode is not valid",{screenLockPassCodeLength:A,ns:"settings"})}):s.jsx(s.Fragment,{children:S.value?s.jsx(J,{className:"!text-green-600 dark:!text-green-500 font-semibold",children:i("Passcode successfully verified",{ns:"settings"})}):s.jsx(J,{children:s.jsx(na,{i18nKey:"Enter your <strong>{{screenLockPassCodeLength}} digits</strong> passcode",values:{screenLockPassCodeLength:A},ns:"settings"})})}),!S.value&&Tn.value===0&&s.jsx(s.Fragment,{children:f.value?s.jsx(Qv,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:U=>{U.preventDefault(),f.value=!1,V(N.value)}}):s.jsx(bm,{className:"cursor-pointer ml-1.5 opacity-60 hover:opacity-100",size:18,onClick:U=>{U.preventDefault(),f.value=!0,V(N.value)}})})]}),Tn.value>0&&s.jsx(Q,{className:"!text-amber-500 dark:!text-amber-600",children:s.jsx(na,{i18nKey:"Try after <strong>{{resetPassCodeNextDelay}}</strong> seconds",values:{resetPassCodeNextDelay:Tn.value},ns:"settings"})})]}):d.value&&O?s.jsxs(s.Fragment,{children:[s.jsxs(ve,{className:"mb-3 mt-0 gap-2 items-start justify-start",children:[s.jsx(sr,{className:"text-md !w-60",isPassword:!0,autoFocus:!0,showHidePassword:!0,onKeyDown:U=>{U.key==="Enter"&&!h.value&&g.value.length>=6&&(p.value=!1,h.value=!0,setTimeout(()=>{W("screenLockRecoveryPassword",g.value).then(X=>{X?(d.value=!1,H(null),I(0),g.value=""):p.value=!0,h.value=!1}).catch(X=>{console.error(X),p.value=!0,h.value=!1})},1e3))},errorElement:g.value.length>=6&&p.value?s.jsxs(s.Fragment,{children:[s.jsx(J,{className:"!text-red-400",children:i("Password is incorrect.",{ns:"settings"})}),s.jsx(J,{className:"mt-1 !text-red-400",children:i("Hint: {{screenLockRecoveryPasswordMasked}}",{ns:"settings",screenLockRecoveryPasswordMasked:O})})]}):"",autoComplete:"off",onPaste:U=>(U.preventDefault(),!1),classNameInput:"h-9",placeholder:i("Enter Password",{ns:"common"}),onChange:U=>{p.value=!1,g.value=U.target.value}}),s.jsx(ke,{variant:"secondary",size:"sm",disabled:g.value.length<6,onClick:()=>{!h.value&&g.value.length>=6&&(p.value=!1,h.value=!0,setTimeout(()=>{W("screenLockRecoveryPassword",g.value).then(U=>{U?(d.value=!1,H(null),I(0),Tn.value=0,_h.value=0,E(0),C(null),gi.value&&(clearInterval(gi.value),gi.value=null),g.value=""):p.value=!0,h.value=!1}).catch(U=>{console.error(U),p.value=!0,h.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:K?s.jsx(tm,{}):i("Reset",{ns:"common"})})]}),s.jsx(J,{className:"mt-1 text-center",children:i("Enter recovery password to reset passcode.",{ns:"settings"})})]}):s.jsx(J,{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."})}),s.jsxs(Yr.Footer,{className:"flex-row !pt-0 !pb-5 justify-center items-center gap-3 relative",children:[!r&&D?s.jsx(ke,{variant:"ghost",size:"sm",onClick:o,className:"hover:bg-slate-200 dark:hover:bg-slate-900",children:i("Cancel",{ns:"common"})}):!D&&s.jsx(ke,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{w("/app-settings/security",{replace:!0}),o()},children:i("Open Security Settings",{ns:"settings"})}),(v.value||d.value)&&O&&D&&s.jsx(s.Fragment,{children:d.value?s.jsx(ke,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{d.value=!1,_.value=new Array(A).fill(void 0)},children:i("Back",{ns:"settings"})}):s.jsx(ke,{size:"sm",variant:"light",className:"dark:bg-slate-700 bg-slate-200",onClick:()=>{d.value=!0,p.value=!1,h.value=!1,g.value=""},children:i("Forgot?",{ns:"settings"})})}),z&&s.jsx(s.Fragment,{children:s.jsxs(ve,{className:"dark:bg-slate-950/90 bg-gray-400/90 absolute bottom-[-100px] rounded-md px-2 py-1 cursor-pointer",onClick:U=>{U.preventDefault(),P(!M)},children:[s.jsxs(ve,{className:"mr-1",children:[s.jsx(J,{className:"mr-1 ".concat(M?"!text-slate-800 dark:!text-slate-400":"!text-gray-500 dark:!text-gray-700"),children:i("Capture History",{ns:"history"})}),s.jsx(ml,{className:M?"opacity-60":"opacity-30",children:s.jsx(Ga,{keys:"ALT+H"})})]}),s.jsx(Gn,{checked:M,className:M?"opacity-100":"!bg-gray-300 dark:!bg-gray-600 opacity-70"})]})})]})]})})}var EN={};Object.defineProperty(EN,"__esModule",{value:!0});function Nke(e,t){return Math.random()*(t-e)+e}var LD=EN.default=Nke,zU={},NN={},_N={},TN={};(function e(t,r,n,a){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 G=new OffscreenCanvas(1,1),F=G.getContext("2d");F.fillRect(0,0,1,1);var q=G.transferToImageBitmap();try{F.createPattern(q,"no-repeat")}catch(Y){return!1}return!0}();function d(){}function f(G){var F=r.exports.Promise,q=F!==void 0?F:t.Promise;return typeof q=="function"?new q(G):(G(d,d),null)}var h=function(G,F){return{transform:function(q){if(G)return q;if(F.has(q))return F.get(q);var Y=new OffscreenCanvas(q.width,q.height),se=Y.getContext("2d");return se.drawImage(q,0,0),F.set(q,Y),Y},clear:function(){F.clear()}}}(c,new Map),p=function(){var G=Math.floor(16.666666666666668),F,q,Y={},se=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(F=function(ee){var ae=Math.random();return Y[ae]=requestAnimationFrame(function oe(le){se===le||se+G-1<le?(se=le,delete Y[ae],ee()):Y[ae]=requestAnimationFrame(oe)}),ae},q=function(ee){Y[ee]&&cancelAnimationFrame(Y[ee])}):(F=function(ee){return setTimeout(ee,G)},q=function(ee){return clearTimeout(ee)}),{frame:F,cancel:q}}(),g=function(){var G,F,q={};function Y(se){function ee(ae,oe){se.postMessage({options:ae||{},callback:oe})}se.init=function(oe){var le=oe.transferControlToOffscreen();se.postMessage({canvas:le},[le])},se.fire=function(oe,le,ue){if(F)return ee(oe,null),F;var ce=Math.random().toString(36).slice(2);return F=f(function(he){function we(Se){Se.data.callback===ce&&(delete q[ce],se.removeEventListener("message",we),F=null,h.clear(),ue(),he())}se.addEventListener("message",we),ee(oe,ce),q[ce]=we.bind(null,{data:{callback:ce}})}),F},se.reset=function(){se.postMessage({reset:!0});for(var oe in q)q[oe](),delete q[oe]}}return function(){if(G)return G;if(!n&&o){var se=["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{G=new Worker(URL.createObjectURL(new Blob([se])))}catch(ee){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("🎊 Could not load worker",ee),null}Y(G)}return G}}(),S={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(G,F){return F?F(G):G}function v(G){return G!=null}function w(G,F,q){return b(G&&v(G[F])?G[F]:S[F],q)}function C(G){return G<0?0:Math.floor(G)}function j(G,F){return Math.floor(Math.random()*(F-G))+G}function E(G){return parseInt(G,16)}function N(G){return G.map(M)}function M(G){var F=String(G).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 P(G){var F=w(G,"origin",Object);return F.x=w(F,"x",Number),F.y=w(F,"y",Number),F}function D(G){G.width=document.documentElement.clientWidth,G.height=document.documentElement.clientHeight}function A(G){var F=G.getBoundingClientRect();G.width=F.width,G.height=F.height}function O(G){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=G,F}function $(G,F,q,Y,se,ee,ae,oe,le){G.save(),G.translate(F,q),G.rotate(ee),G.scale(Y,se),G.arc(0,0,1,ae,oe,le),G.restore()}function H(G){var F=G.angle*(Math.PI/180),q=G.spread*(Math.PI/180);return{x:G.x,y:G.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:G.startVelocity*.5+Math.random()*G.startVelocity,angle2D:-F+(.5*q-Math.random()*q),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:G.color,shape:G.shape,tick:0,totalTicks:G.ticks,decay:G.decay,drift:G.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:G.gravity*3,ovalScalar:.6,scalar:G.scalar,flat:G.flat}}function z(G,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 q=F.tick++/F.totalTicks,Y=F.x+F.random*F.tiltCos,se=F.y+F.random*F.tiltSin,ee=F.wobbleX+F.random*F.tiltCos,ae=F.wobbleY+F.random*F.tiltSin;if(G.fillStyle="rgba("+F.color.r+", "+F.color.g+", "+F.color.b+", "+(1-q)+")",G.beginPath(),i&&F.shape.type==="path"&&typeof F.shape.path=="string"&&Array.isArray(F.shape.matrix))G.fill(V(F.shape.path,F.shape.matrix,F.x,F.y,Math.abs(ee-Y)*.1,Math.abs(ae-se)*.1,Math.PI/10*F.wobble));else if(F.shape.type==="bitmap"){var oe=Math.PI/10*F.wobble,le=Math.abs(ee-Y)*.1,ue=Math.abs(ae-se)*.1,ce=F.shape.bitmap.width*F.scalar,he=F.shape.bitmap.height*F.scalar,we=new DOMMatrix([Math.cos(oe)*le,Math.sin(oe)*le,-Math.sin(oe)*ue,Math.cos(oe)*ue,F.x,F.y]);we.multiplySelf(new DOMMatrix(F.shape.matrix));var Se=G.createPattern(h.transform(F.shape.bitmap),"no-repeat");Se.setTransform(we),G.globalAlpha=1-q,G.fillStyle=Se,G.fillRect(F.x-ce/2,F.y-he/2,ce,he),G.globalAlpha=1}else if(F.shape==="circle")G.ellipse?G.ellipse(F.x,F.y,Math.abs(ee-Y)*F.ovalScalar,Math.abs(ae-se)*F.ovalScalar,Math.PI/10*F.wobble,0,2*Math.PI):$(G,F.x,F.y,Math.abs(ee-Y)*F.ovalScalar,Math.abs(ae-se)*F.ovalScalar,Math.PI/10*F.wobble,0,2*Math.PI);else if(F.shape==="star")for(var Ae=Math.PI/2*3,je=4*F.scalar,Le=8*F.scalar,Ee=F.x,He=F.y,Qe=5,Ze=Math.PI/Qe;Qe--;)Ee=F.x+Math.cos(Ae)*Le,He=F.y+Math.sin(Ae)*Le,G.lineTo(Ee,He),Ae+=Ze,Ee=F.x+Math.cos(Ae)*je,He=F.y+Math.sin(Ae)*je,G.lineTo(Ee,He),Ae+=Ze;else G.moveTo(Math.floor(F.x),Math.floor(F.y)),G.lineTo(Math.floor(F.wobbleX),Math.floor(se)),G.lineTo(Math.floor(ee),Math.floor(ae)),G.lineTo(Math.floor(Y),Math.floor(F.wobbleY));return G.closePath(),G.fill(),F.tick<F.totalTicks}function I(G,F,q,Y,se){var ee=F.slice(),ae=G.getContext("2d"),oe,le,ue=f(function(ce){function he(){oe=le=null,ae.clearRect(0,0,Y.width,Y.height),h.clear(),se(),ce()}function we(){n&&!(Y.width===a.width&&Y.height===a.height)&&(Y.width=G.width=a.width,Y.height=G.height=a.height),!Y.width&&!Y.height&&(q(G),Y.width=G.width,Y.height=G.height),ae.clearRect(0,0,Y.width,Y.height),ee=ee.filter(function(Se){return z(ae,Se)}),ee.length?oe=p.frame(we):he()}oe=p.frame(we),le=he});return{addFettis:function(ce){return ee=ee.concat(ce),ue},canvas:G,promise:ue,reset:function(){oe&&p.cancel(oe),le&&le()}}}function W(G,F){var q=!G,Y=!!w(F||{},"resize"),se=!1,ee=w(F,"disableForReducedMotion",Boolean),ae=o&&!!w(F||{},"useWorker"),oe=ae?g():null,le=q?D:A,ue=G&&oe?!!G.__confetti_initialized:!1,ce=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,he;function we(Ae,je,Le){for(var Ee=w(Ae,"particleCount",C),He=w(Ae,"angle",Number),Qe=w(Ae,"spread",Number),Ze=w(Ae,"startVelocity",Number),mt=w(Ae,"decay",Number),Ke=w(Ae,"gravity",Number),Lt=w(Ae,"drift",Number),qt=w(Ae,"colors",N),Xt=w(Ae,"ticks",Number),Ge=w(Ae,"shapes"),zt=w(Ae,"scalar"),ir=!!w(Ae,"flat"),Ft=P(Ae),et=Ee,cr=[],ar=G.width*Ft.x,ur=G.height*Ft.y;et--;)cr.push(H({x:ar,y:ur,angle:He,spread:Qe,startVelocity:Ze,color:qt[et%qt.length],shape:Ge[j(0,Ge.length)],ticks:Xt,decay:mt,gravity:Ke,drift:Lt,scalar:zt,flat:ir}));return he?he.addFettis(cr):(he=I(G,cr,le,je,Le),he.promise)}function Se(Ae){var je=ee||w(Ae,"disableForReducedMotion",Boolean),Le=w(Ae,"zIndex",Number);if(je&&ce)return f(function(Ze){Ze()});q&&he?G=he.canvas:q&&!G&&(G=O(Le),document.body.appendChild(G)),Y&&!ue&&le(G);var Ee={width:G.width,height:G.height};oe&&!ue&&oe.init(G),ue=!0,oe&&(G.__confetti_initialized=!0);function He(){if(oe){var Ze={getBoundingClientRect:function(){if(!q)return G.getBoundingClientRect()}};le(Ze),oe.postMessage({resize:{width:Ze.width,height:Ze.height}});return}Ee.width=Ee.height=null}function Qe(){he=null,Y&&(se=!1,t.removeEventListener("resize",He)),q&&G&&(document.body.removeChild(G),G=null,ue=!1)}return Y&&!se&&(se=!0,t.addEventListener("resize",He,!1)),oe?oe.fire(Ae,Ee,Qe):we(Ae,Ee,Qe)}return Se.reset=function(){oe&&oe.reset(),he&&he.reset()},Se}var _;function K(){return _||(_=W(null,{useWorker:!0,resize:!0})),_}function V(G,F,q,Y,se,ee,ae){var oe=new Path2D(G),le=new Path2D;le.addPath(oe,new DOMMatrix(F));var ue=new Path2D;return ue.addPath(le,new DOMMatrix([Math.cos(ae)*se,Math.sin(ae)*se,-Math.sin(ae)*ee,Math.cos(ae)*ee,q,Y])),ue}function U(G){if(!i)throw new Error("path confetti are not supported in this browser");var F,q;typeof G=="string"?F=G:(F=G.path,q=G.matrix);var Y=new Path2D(F),se=document.createElement("canvas"),ee=se.getContext("2d");if(!q){for(var ae=1e3,oe=ae,le=ae,ue=0,ce=0,he,we,Se=0;Se<ae;Se+=2)for(var Ae=0;Ae<ae;Ae+=2)ee.isPointInPath(Y,Se,Ae,"nonzero")&&(oe=Math.min(oe,Se),le=Math.min(le,Ae),ue=Math.max(ue,Se),ce=Math.max(ce,Ae));he=ue-oe,we=ce-le;var je=10,Le=Math.min(je/he,je/we);q=[Le,0,0,Le,-Math.round(he/2+oe)*Le,-Math.round(we/2+le)*Le]}return{type:"path",path:F,matrix:q}}function X(G){var F,q=1,Y="#000000",se='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';typeof G=="string"?F=G:(F=G.text,q="scalar"in G?G.scalar:q,se="fontFamily"in G?G.fontFamily:se,Y="color"in G?G.color:Y);var ee=10*q,ae=""+ee+"px "+se,oe=new OffscreenCanvas(ee,ee),le=oe.getContext("2d");le.font=ae;var ue=le.measureText(F),ce=Math.ceil(ue.actualBoundingBoxRight+ue.actualBoundingBoxLeft),he=Math.ceil(ue.actualBoundingBoxAscent+ue.actualBoundingBoxDescent),we=2,Se=ue.actualBoundingBoxLeft+we,Ae=ue.actualBoundingBoxAscent+we;ce+=we+we,he+=we+we,oe=new OffscreenCanvas(ce,he),le=oe.getContext("2d"),le.font=ae,le.fillStyle=Y,le.fillText(F,Se,Ae);var je=1/q;return{type:"bitmap",bitmap:oe.transferToImageBitmap(),matrix:[je,0,0,je,-ce*je/2,-he*je/2]}}r.exports=function(){return K().apply(this,arguments)},r.exports.reset=function(){K().reset()},r.exports.create=W,r.exports.shapeFromPath=U,r.exports.shapeFromText=X})(function(){return typeof window!="undefined"?window:typeof self!="undefined"?self:this||{}}(),TN,!1);const _ke=TN.exports;var Tke=TN.exports.create;const Mke=Object.freeze(Object.defineProperty({__proto__:null,create:Tke,default:_ke},Symbol.toStringTag,{value:"Module"})),Pke=iK(Mke);var v2=Tr&&Tr.__assign||function(){return v2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},v2.apply(this,arguments)},Dke=Tr&&Tr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ake=Tr&&Tr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Rke=Tr&&Tr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Dke(t,e,r);return Ake(t,e),t},Lke=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_N,"__esModule",{value:!0});var ry=Rke(m),Oke=Lke(Pke),Ike={resize:!0,useWorker:!1},$ke={position:"fixed",pointerEvents:"none",width:"100%",height:"100%",top:0,left:0};function zke(e,t){return!e&&!t?$ke:e}function Fke(e){var t=e.style,r=e.className,n=e.width,a=e.height,o=e.globalOptions,i=e.onInit,c=(0,ry.useRef)(null),d=(0,ry.useRef)(null);return(0,ry.useEffect)(function(){if(c.current)return d.current=Oke.default.create(c.current,v2(v2({},Ike),o)),i==null||i({confetti:d.current}),function(){var f;(f=d.current)===null||f===void 0||f.reset()}},[]),ry.default.createElement("canvas",{ref:c,style:zke(t,r),className:r,width:n,height:a})}_N.default=Fke;var X4=Tr&&Tr.__assign||function(){return X4=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},X4.apply(this,arguments)},Hke=Tr&&Tr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Bke=Tr&&Tr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Uke=Tr&&Tr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Hke(t,e,r);return Bke(t,e),t},Wke=Tr&&Tr.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Vke=Tr&&Tr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(c){i={error:c}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o},qke=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(NN,"__esModule",{value:!0});var ny=Uke(m),Kke=qke(_N),Gke=function(e){return e};function Yke(e){var t=e.decorateOptions,r=t===void 0?Gke:t,n=e.Conductor,a=e.autorun,o=e.onInit,i=Wke(e,["decorateOptions","Conductor","autorun","onInit"]),c=Vke((0,ny.useState)(),2),d=c[0],f=c[1],h=(0,ny.useCallback)(function(p){var g=p.confetti;f(function(){return g})},[]);return(0,ny.useEffect)(function(){if(d){var p=new n({confetti:d,decorateOptions:r});return a&&p.run(a),o==null||o({confetti:d,conductor:p}),p.stop}},[d]),ny.default.createElement(Kke.default,X4({onInit:h},i))}NN.default=Yke;var MN={},PN={};Object.defineProperty(PN,"__esModule",{value:!0});var Zke=function(){function e(t){var r=t.confetti,n=t.decorateOptions,a=this;this.interval=null,this.shoot=function(){return a.tickAnimation()},this.run=function(o){var i=o.speed,c=o.delay,d=c===void 0?0:c,f=o.duration;a.interval||setTimeout(function(){a.shoot(),a.interval=setInterval(a.shoot,1e3/Math.min(i,1e3)),f&&setTimeout(a.pause,f)},d)},this.pause=function(){clearInterval(a.interval),a.interval=null},this.stop=function(){a.pause(),a.confetti.reset()},this.confetti=r,this.decorateOptions=n}return e}();PN.default=Zke;var Xke=Tr&&Tr.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Qke=Tr&&Tr.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(c){i={error:c}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o},Jke=Tr&&Tr.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},FU=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(MN,"__esModule",{value:!0});var eCe=FU(PN),OD=FU(EN),tCe=function(e){Xke(t,e);function t(){var r=e.apply(this,Jke([],Qke(arguments),!1))||this;return r.tickAnimation=function(){r.confetti(r.decorateOptions({startVelocity:30,spread:360,ticks:60,zIndex:0,particleCount:150,origin:{x:(0,OD.default)(.1,.3),y:Math.random()-.2}})),r.confetti(r.decorateOptions({startVelocity:30,spread:360,ticks:60,zIndex:0,particleCount:150,origin:{x:(0,OD.default)(.7,.9),y:Math.random()-.2}}))},r}return t}(eCe.default);MN.default=tCe;var Q4=Tr&&Tr.__assign||function(){return Q4=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Q4.apply(this,arguments)},DN=Tr&&Tr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zU,"__esModule",{value:!0});var rCe=DN(m),nCe=DN(NN),sCe=DN(MN);function aCe(e){return rCe.default.createElement(nCe.default,Q4({Conductor:sCe.default},e))}var oCe=zU.default=aCe;let Zo;typeof window!="undefined"?Zo=window:typeof self!="undefined"?Zo=self:Zo=global;let J4=null,ej=null;const ID=20,V5=Zo.clearTimeout,$D=Zo.setTimeout,q5=Zo.cancelAnimationFrame||Zo.mozCancelAnimationFrame||Zo.webkitCancelAnimationFrame,zD=Zo.requestAnimationFrame||Zo.mozRequestAnimationFrame||Zo.webkitRequestAnimationFrame;q5==null||zD==null?(J4=V5,ej=function(t){return $D(t,ID)}):(J4=function([t,r]){q5(t),V5(r)},ej=function(t){const r=zD(function(){V5(n),t()}),n=$D(function(){q5(r),t()},ID);return[r,n]});function iCe(e){let t,r,n,a,o,i,c;const d=typeof document!="undefined"&&document.attachEvent;if(!d){i=function(C){const j=C.__resizeTriggers__,E=j.firstElementChild,N=j.lastElementChild,M=E.firstElementChild;N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight,M.style.width=E.offsetWidth+1+"px",M.style.height=E.offsetHeight+1+"px",E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight},o=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},c=function(C){if(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const j=this;i(this),this.__resizeRAF__&&J4(this.__resizeRAF__),this.__resizeRAF__=ej(function(){o(j)&&(j.__resizeLast__.width=j.offsetWidth,j.__resizeLast__.height=j.offsetHeight,j.__resizeListeners__.forEach(function(M){M.call(j,C)}))})};let g=!1,S="";n="animationstart";const b="Webkit Moz O ms".split(" ");let v="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),w="";{const C=document.createElement("fakeelement");if(C.style.animationName!==void 0&&(g=!0),g===!1){for(let j=0;j<b.length;j++)if(C.style[b[j]+"AnimationName"]!==void 0){w=b[j],S="-"+w.toLowerCase()+"-",n=v[j],g=!0;break}}}r="resizeanim",t="@"+S+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",a=S+"animation: 1ms "+r+"; "}const f=function(g){if(!g.getElementById("detectElementResize")){const S=(t||"")+".resize-triggers { "+(a||"")+'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%; }',b=g.head||g.getElementsByTagName("head")[0],v=g.createElement("style");v.id="detectElementResize",v.type="text/css",e!=null&&v.setAttribute("nonce",e),v.styleSheet?v.styleSheet.cssText=S:v.appendChild(g.createTextNode(S)),b.appendChild(v)}};return{addResizeListener:function(g,S){if(d)g.attachEvent("onresize",S);else{if(!g.__resizeTriggers__){const b=g.ownerDocument,v=Zo.getComputedStyle(g);v&&v.position==="static"&&(g.style.position="relative"),f(b),g.__resizeLast__={},g.__resizeListeners__=[],(g.__resizeTriggers__=b.createElement("div")).className="resize-triggers";const w=b.createElement("div");w.className="expand-trigger",w.appendChild(b.createElement("div"));const C=b.createElement("div");C.className="contract-trigger",g.__resizeTriggers__.appendChild(w),g.__resizeTriggers__.appendChild(C),g.appendChild(g.__resizeTriggers__),i(g),g.addEventListener("scroll",c,!0),n&&(g.__resizeTriggers__.__animationListener__=function(E){E.animationName===r&&i(g)},g.__resizeTriggers__.addEventListener(n,g.__resizeTriggers__.__animationListener__))}g.__resizeListeners__.push(S)}},removeResizeListener:function(g,S){if(d)g.detachEvent("onresize",S);else if(g.__resizeListeners__.splice(g.__resizeListeners__.indexOf(S),1),!g.__resizeListeners__.length){g.removeEventListener("scroll",c,!0),g.__resizeTriggers__.__animationListener__&&(g.__resizeTriggers__.removeEventListener(n,g.__resizeTriggers__.__animationListener__),g.__resizeTriggers__.__animationListener__=null);try{g.__resizeTriggers__=!g.removeChild(g.__resizeTriggers__)}catch(b){}}}}}class Cf extends m.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:r,disableWidth:n,onResize:a}=this.props;if(this._parentNode){var o,i,c,d;const f=window.getComputedStyle(this._parentNode)||{},h=parseFloat((o=f.paddingLeft)!==null&&o!==void 0?o:"0"),p=parseFloat((i=f.paddingRight)!==null&&i!==void 0?i:"0"),g=parseFloat((c=f.paddingTop)!==null&&c!==void 0?c:"0"),S=parseFloat((d=f.paddingBottom)!==null&&d!==void 0?d:"0"),b=this._parentNode.getBoundingClientRect(),v=b.height-g-S,w=b.width-h-p,C=this._parentNode.offsetHeight-g-S,j=this._parentNode.offsetWidth-h-p;(!r&&(this.state.height!==C||this.state.scaledHeight!==v)||!n&&(this.state.width!==j||this.state.scaledWidth!==w))&&(this.setState({height:C,width:j,scaledHeight:v,scaledWidth:w}),typeof a=="function"&&a({height:C,scaledHeight:v,scaledWidth:w,width:j}))}},this._setRef=r=>{this._autoSizer=r}}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!="undefined"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=iCe(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 j=this.props,{children:t,defaultHeight:r,defaultWidth:n,disableHeight:a=!1,disableWidth:o=!1,nonce:i,onResize:c,style:d={},tagName:f="div"}=j,h=Ce(j,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","nonce","onResize","style","tagName"]),{height:p,scaledHeight:g,scaledWidth:S,width:b}=this.state,v={overflow:"visible"},w={};let C=!1;return a||(p===0&&(C=!0),v.height=0,w.height=p,w.scaledHeight=g),o||(b===0&&(C=!0),v.width=0,w.width=b,w.scaledWidth=S),m.createElement(f,R({ref:this._setRef,style:R(R({},v),d)},h),!C&&t(w))}}function FD({registerLicense:e}){const t=m.useRef(null),{t:r}=Tt(),{licenseKey:n,setLicenseKey:a,screenLockPassCode:o}=xt(Rn),i=yf(vN),c=yf(Xw),d=m.useRef(),{returnRoute:f}=xt(xs),h=vs(n!=null?n:""),p=vs(!1),g=vs(!1),S=vs(null),b=$r.value,v=({conductor:z})=>{d.current=R({},z)},w=Jw(),C=m.useCallback(()=>{var z;!w&&((z=d==null?void 0:d.current)==null||z.shoot())},[w]),j=z=>re(R({},z),{drift:LD(.4,.8),startVelocity:LD(15,40),ticks:230}),E=m.useMemo(()=>h.value,[h.value]),N=m.useCallback(z=>{if(z.length<20){S.value=r("License key is too short.",{ns:"settings"});return}try{const I=NU(z);if(!I)return!1;typeof I.id=="string"&&I.id.length>0&&(S.value=null,$r.value=I,h.value!==n&&!jn().isAfter(jn(I.expires))&&setTimeout(()=>{C(),setTimeout(()=>{C()},600)},600),a(h.value))}catch(I){return S.value=r("License key is not valid or malformed.",{ns:"settings"}),$r.value=null,console.error("error",I),!1}return!0},[h.value]);m.useEffect(()=>{n&&(h.value=n,N(n))},[n]);const{licenseExpInDays:M,licenseExpiresDate:P,licenseExpiredDaysAgo:D}=m.useMemo(()=>GB(),[$r.value]),{licenseIssuedDate:A,licenseIssuedDaysAgo:O}=m.useMemo(()=>Xye(),[$r.value]),$=m.useMemo(()=>Qw(),[$r.value]),H=m.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 m.useEffect(()=>{(Wa.value===Vl.removeLicense&&_i.value===Vl.removeLicense||p.value)&&(a(null),$r.value=null,Wa.value=null,_i.value=null,g.value=!1,p.value=!1,h.value="")},[_i.value,Wa.value,p.value]),m.useMemo(()=>!0,[p.value,g.value,S.value,$r.value]),s.jsx(Cf,{disableWidth:!0,children:({height:z})=>{var I,W;return z&&s.jsxs(Q,{className:"p-4 py-6 select-none min-w-[320px]",children:[s.jsxs(Q,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[s.jsx(J,{className:"light",children:r("License Settings",{ns:"settings"})}),i?w?s.jsxs(ke,{variant:"secondary",size:"sm",disabled:E.length<10,onClick:()=>{},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:[r("Renew License",{ns:"common"}),s.jsx(Zh,{size:16,className:"ml-1.5 fill-green-200 dark:fill-green-700"})]}):s.jsxs(ke,{size:"sm",onClick:()=>{C(),setTimeout(()=>{C()},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:[r("Thank you for using Pro",{ns:"common"}),s.jsx(Q3,{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"})]}):s.jsxs(ke,{size:"sm",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:[r("Upgrade to Pro",{ns:"common"}),s.jsx(Zh,{size:16,className:"ml-1.5 fill-green-200 dark:fill-green-700"})]})]}),s.jsx(wr,{h:3}),s.jsxs(Wr,{style:{maxHeight:z-85},autoHide:!0,children:[!i&&s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:s.jsx(Q,{children:r("Free License",{ns:"settings"})})}),s.jsx(HU,{})]}),s.jsxs(hn,{children:[s.jsxs(J,{className:"text-sm text-muted-foreground mt-1 mb-3",children:[r("Thank you again for using PasteBar.",{ns:"settings"}),s.jsx(Q3,{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"})]}),s.jsxs(ke,{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:[r("Upgrade to Pro",{ns:"common"}),s.jsx(Zh,{size:16,className:"ml-1.5"})]})]})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{children:[i?s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[w?c?s.jsx(Q,{className:"text-red-600",children:r("Pro license has expired",{ns:"settings"})}):s.jsx(Q,{children:$?s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"text-red-600 mt-2",children:r("Pro license has expired",{ns:"settings"})}),s.jsxs(Q,{className:"text-yellow-700 mt-2 bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 rounded-md text-md mb-0 py-1.5 !my-2 !block",children:[r("Your Pro license includes 1 year of free upgrades and priority support. However, this application version was released on {{buildDate}}, which occurred after your license expired on {{expiredDate}}. Unfortunately, this version is not compatible with your Pro license. If you wish to continue accessing all available Pro features with your current license, you will need to downgrade the application to the last compatible version released before your license expired. Thank you for using PasteBar! 🙌",{buildDate:jn(1713929964727).format("DD MMMM, YYYY"),expiredDate:jn(P).format("DD MMMM, YYYY"),ns:"settings"}),s.jsxs(Q,{className:"mt-2",children:[r("To downgrade, please visit: ",{ns:"settings"}),s.jsx("span",{className:"underline cursor-pointer",onClick:()=>{yl("https://www.pastebar.app/releases")},children:"https://www.pastebar.app/releases"})]})]})]}):s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"text-yellow-600 mt-2",children:r("Pro license has expired",{ns:"settings"})}),s.jsx(Q,{className:"text-yellow-600 mt-2",children:r("However, you can continue using the current version with access to all available Pro features.",{ns:"settings"})})]})}):s.jsx(Q,{className:"text-green-600",children:r("Pro license is activated",{ns:"settings"})}),c&&s.jsx(J,{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"})]}),w?c?s.jsx(J,{className:"text-sm !block",children:s.jsx(na,{i18nKey:"<strong>Your beta license has expired</strong>. If you wish to gain access to priority support and all features, please consider upgrade your license to Pro.",values:{name:b==null?void 0:b.name},ns:"settings"})}):s.jsx(J,{className:"text-sm !block",children:s.jsx(na,{i18nKey:"If you wish to upgrade to the latest version, gain access to priority support and new features, please consider renewing your license.",values:{name:b==null?void 0:b.name},ns:"settings"})}):s.jsx(J,{className:"text-sm !block",children:s.jsx(na,{i18nKey:"Thank you <strong>{{name}}</strong> for 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?s.jsxs(J,{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 !block",children:[r("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"}),s.jsx("br",{}),s.jsx("b",{children:r("Thank you for testing! 🙌",{ns:"settings"})})]}):s.jsx(wr,{h:2}),H.name&&s.jsxs(J,{className:"text-sm !mt-2",children:[r("Name",{ns:"settings"}),":",s.jsx("strong",{className:"ml-1",children:H.name})]}),H.email&&s.jsxs(J,{className:"text-sm !mt-2",children:[r("Email",{ns:"settings"}),":",s.jsx("strong",{className:"ml-1",children:ane(H.email)})]}),H.email&&s.jsxs(J,{className:"text-sm !mt-2",children:[r("Maximum devices",{ns:"settings"}),":",s.jsx("strong",{className:"ml-1",children:H.devices})]}),H.email&&s.jsxs(J,{className:"text-sm !mt-2 gap-1",children:[r("License Id",{ns:"settings"}),":",s.jsx(_B,{id:1,text:Db(H.id,3),copyText:(I=H.id)!=null?I:""})]}),A&&s.jsxs(J,{className:"text-sm !mt-2",children:[r("Issued",{ns:"settings"}),":",s.jsx("strong",{className:"ml-1",children:A}),O&&s.jsx(ft,{className:"ml-1.5",variant:"secondary",children:r("{{licenseIssuedDaysAgo}} days ago",{ns:"settings",licenseIssuedDaysAgo:O})})]}),P&&!w&&s.jsxs(J,{className:"text-sm !mt-4",children:[r("License expires",{ns:"settings"}),":",s.jsx("strong",{className:"ml-1 text-green-600",children:P}),s.jsx(ft,{className:"ml-1.5 whitespace-nowrap",variant:"pro",children:M===0?r("Tomorrow",{ns:"settings"}):r("in {{licenseExpInDays}} days",{ns:"settings",licenseExpInDays:M})})]}),P&&w&&s.jsxs(J,{className:"text-sm !mt-4",children:[r("License expired",{ns:"settings"}),s.jsx("strong",{className:"ml-1 text-red-600",children:P}),s.jsx(ft,{className:"ml-1.5 whitespace-nowrap",variant:"destructive",children:D===0?r("Today",{ns:"settings"}):r("{{licenseExpiredDaysAgo}} days ago",{ns:"settings",licenseExpiredDaysAgo:D})})]})]}):s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:s.jsx(Q,{children:r("Register a License",{ns:"settings"})})}),s.jsx(J,{className:"text-sm text-muted-foreground mt-2",children:r('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"})})]}),s.jsx(hn,{children:s.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col w-full",children:[s.jsx(Eo,{className:"text-sm w-full",autoFocus:e,ref:t,label:i?r("License key",{ns:"settings"}):r("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:(W=S.value)!=null?W:"",rows:3,onChange:_=>{S.value=null,h.value=_.target.value},value:i?Db(E,10,10,100):E,maxRows:3,onPaste:_=>{_.preventDefault(),S.value=null,h.value=_.clipboardData.getData("text"),N(h.value)},enableEmoji:!1}),i?s.jsxs(ve,{className:"gap-4",children:[w&&s.jsxs(ke,{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-9",children:[r("Renew License",{ns:"common"}),s.jsx(Zh,{size:16,className:"ml-1.5"})]}),s.jsx(ke,{variant:"secondary",size:"sm",disabled:E.length<10,onClick:()=>{if(o){Ed.value=!0,Wa.value=Vl.removeLicense,Nd.value=r("license remove",{ns:"settings"});return}g.value?p.value=!0:(g.value=!0,setTimeout(()=>{g.value=!1},3e3))},className:"".concat(g.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:g.value?r("Confirm Remove",{ns:"common"}):w?r("Remove",{ns:"common"}):r("Remove License",{ns:"common"})})]}):s.jsx(ke,{variant:"secondary",size:"sm",disabled:E.length<10,onClick:()=>{N(h.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:r("Add License",{ns:"common"})})]})})]})}),s.jsx(wr,{h:6}),s.jsx(xc,{to:f,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:r("Back",{ns:"common"})})}),s.jsx(wr,{h:4})]}),b&&sa.createPortal(s.jsx(oCe,{onInit:v,decorateOptions:j,style:{position:"fixed",zIndex:9999,pointerEvents:"none",top:40,width:"100%",height:"100%"}}),document.body)]})}})}function HU(){const{t:e}=Tt(),t=yf(Xw),r=m.useMemo(()=>Qw(),[$r.value]);return s.jsxs(s.Fragment,{children:[r&&!t&&s.jsx(Q,{className:"text-yellow-700 mt-2 bg-amber-100 dark:bg-slate-600/90 dark:!text-slate-300 px-2 text-sm rounded-md mb-0 py-1.5 !my-2 !block",children:e("Your Pro license and 1 year of free upgrades have expired. This app version, released on {{buildDate}}, is not covered. See License Settings for details.",{buildDate:jn(1713929964727).format("DD MMMM, YYYY"),ns:"settings"})}),s.jsx(J,{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"})}),s.jsxs(ve,{className:"flex flex-col items-start justify-start",children:[s.jsx(J,{className:"text-sm text-muted-foreground my-2 mb-1 !block",children:s.jsx(na,{i18nKey:"By upgrading to <strong>PasteBar Pro</strong>, you'll gain access to:",ns:"settings"})}),s.jsxs(Q,{className:"list-image-none",children:[s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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"})})]}),s.jsxs(Q,{children:[s.jsxs(ve,{className:"justify-start items-center",children:[s.jsx(Bt,{size:18,className:"text-green-600 dark:text-green-500"}),s.jsx(J,{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"})})]}),s.jsx(J,{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 lCe({open:e,onClose:t}){const{t:r}=Tt(),n=ha(),a=Jw();return s.jsx(Yr,{open:e,handleClose:t,isLargeModal:!0,children:s.jsxs(Yr.Body,{className:"dark:bg-green-950/30 bg-green-50/30",children:[s.jsxs(Yr.Header,{handleClose:t,children:[s.jsx("h1",{className:"mt-0.5",children:r("Unlock Pro features",{ns:"common"})}),s.jsx(ke,{variant:"ghost",size:"sm",onClick:()=>{t(),n("/app-settings/license/register",{replace:!0})},className:"hover:bg-green-300 dark:hover:bg-green-900 h-6 py-4 ml-auto",children:a?r("Renew License",{ns:"settings"}):r("Register License",{ns:"common"})})]}),s.jsxs(Yr.Content,{className:"!pt-2 w-full !pb-2",children:[s.jsx("iframe",{src:"https://license.pastebar.app/checkout/stripe",height:400,width:600}),s.jsx(Wr,{style:{height:"auto",width:600,maxHeight:"500px"},autoHide:!1,children:s.jsx(HU,{})})]}),s.jsx(Yr.Footer,{className:"flex-col !pt-0 !pb-4",children:s.jsxs("div",{className:"flex w-full justify-center mt-3 gap-3",children:[s.jsx(ke,{variant:"ghost",type:"button",onClick:t,className:"hover:bg-slate-200 dark:hover:bg-slate-900 h-10",children:r("Ok, but later",{ns:"common"})}),s.jsxs(ke,{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:[a?r("Renew License",{ns:"settings"}):r("Upgrade to Pro",{ns:"common"}),s.jsx(Zh,{size:16,className:"ml-1.5"})]})]})})]})})}const HD="/assets/pastebar-accessibility-settings-monterey-CdsSxQWR.gif",BD="/assets/pastebar-accessibility-settings-ventura-B5xWaNbv.gif";function cCe({open:e,onClose:t}){const{t:r}=Tt(),n=Ve(!1),a=Ve(!1),o=Ve(null),i=Ve(14);return m.useEffect(()=>{wZ().then(c=>{c==="darwin"&&kZ().then(d=>{i.value=parseInt(d)})})},[]),m.useEffect(()=>{o.value!==null&&o.value&&setTimeout(()=>{t()},1200)},[o.value]),s.jsx(Yr,{open:e,handleClose:t,isLargeModal:!0,children:s.jsxs(Yr.Body,{className:"dark:bg-green-950/30 bg-green-50/30",children:[s.jsxs(Yr.Header,{handleClose:t,children:[s.jsx("h1",{className:"mt-0.5",children:r("Enable PasteBar in Accessibility Settings",{ns:"common"})}),s.jsx(ke,{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:r("Later",{ns:"common"})})]}),o.value!==!0?s.jsxs(Yr.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[s.jsx(J,{children:r("Please add PasteBar to the list of apps in",{ns:"common"})}),s.jsx(ft,{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:()=>{n.value=!0,o.value=null,kr("open_osx_accessibility_preferences")},children:i.value>=13?r("System Settings -> Privacy & Security -> Accessibility",{ns:"common"}):r("System Preferences -> Security & Privacy -> Accessibility",{ns:"common"})}),i.value?s.jsx("img",{src:i.value>=13?BD:HD,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"}):s.jsx(Q,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),o.value===!1?s.jsx(J,{className:"text-sm w-[90%]",color:"danger",children:r("Permission Check Failed: PasteBar has not been successfully added to Accessibility settings. Please grant the required permissions and click Done again.",{ns:"common"})}):s.jsx(J,{className:"text-sm w-[90%]",children:r("This permission ensures PasteBar can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}):s.jsxs(Yr.Content,{className:"!pt-2 w-full !pb-2 justify-start items-center flex flex-col gap-3",children:[s.jsx(J,{children:r("PasteBar was successfuly added to Accessibility settings",{ns:"common"})}),s.jsx(ft,{className:"!flex w-fit text-md px-10",variant:"pro",children:r("Success!",{ns:"common"})}),i.value?s.jsxs(ve,{className:"relative",children:[s.jsx(Bt,{size:"152",className:"text-green-500 absolute animate-in fade-in duration-1000 dark:text-green-600"}),s.jsx("img",{src:i.value>=13?BD:HD,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"})]}):s.jsx(Q,{className:"flex items-center w-[580px] h-[380px] justify-center bg-gray-300 rounded-lg animate-pulse dark:bg-gray-700"}),s.jsx(J,{className:"text-sm w-[80%]",children:r("PasteBar application now can access the clipboard and perform copy and paste operations across applications.",{ns:"common"})})]}),s.jsx(Yr.Footer,{className:"flex-col !pt-0 !pb-5",children:o.value?s.jsx("div",{className:"flex w-full justify-center mt-3 gap-3",children:s.jsx(ke,{variant:"ghost",type:"button",onClick:()=>pe(this,null,function*(){t()}),className:"h-10 ".concat(n.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:r("Close",{ns:"common"})})}):s.jsxs("div",{className:"flex w-full justify-center mt-3 gap-3",children:[s.jsx(ke,{size:"sm",autoFocus:!0,onClick:()=>{n.value=!0,o.value=null,kr("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:r("Open Accessibility",{ns:"common"})}),s.jsx(ke,{variant:"ghost",type:"button",onClick:()=>pe(this,null,function*(){a.value=yield kr("check_osx_accessibility_preferences"),o.value=null,a.value?o.value=!0:o.value=!1,n.value=!1}),className:"h-10 ".concat(n.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:r("Done",{ns:"common"})})]})})]})})}const uCe="_visible_1g3i7_1",dCe="_arrow_1g3i7_7",K5={visible:uCe,arrow:dCe,"empty-data":"_empty-data_1g3i7_20","shared-container":"_shared-container_1g3i7_28"},fCe=(e,t)=>{var H;const{t:r}=Tt(),n=m.useRef(null),a=m.useRef(null),{isScrolling:o,isSwapPanels:i}=xt(xs),{historyListSimpleBar:c,clipboardHistory:d}=xt(wl),[f,h]=g2("resetPassCodeNextDelayInSeconds",null),[,p]=g2("resetPassCodeGlobalUnsuccessfulTries",0),[g,S]=hN({}),[b,v,w]=pN({}),C=Ve(!1),j=Ve(!1),[E,N]=m.useState({top:0,left:0}),M=m.useRef(b),P=m.useRef(g),D=ha(),A=(z,I=0)=>{M.current||P.current||requestAnimationFrame(()=>{const W=n.current?n.current.getBoundingClientRect():new DOMRect(0),_=z.top-W.top,K=I>0&&z.left+z.width/2-W.left>I?I/2:z.left+z.width/2-W.left;N({top:_,left:K}),C.value=!0})};m.useEffect(()=>{var z;return f&&(Tn.value=(z=parseInt(f,10))!=null?z:0),()=>{gi.value&&(clearInterval(gi.value),gi.value=null),Tn.value>0?(h(Tn.value),Tn.value=0):h(null)}},[]),m.useEffect(()=>{Tn.value>0&&gi.value==null&&(gi.value=setInterval(()=>{Tn.value>0?(h(Tn.value),Tn.value-=1):(gi.value&&clearInterval(gi.value),p(0),h(null),Tn.value=0,_h.value=0,gi.value=null)},1e3))},[Tn.value]),m.useEffect(()=>{var z;g||b||(C.value=!1,(z=window.getSelection())==null||z.removeAllRanges())},[i,d,g,b]),m.useEffect(()=>{M.current=b,P.current=g},[b,g]),m.useEffect(()=>{C.value&&(xd.value=null,yd.value=null)},[C.value]),Is("esc",()=>{var z;C.value=!1,(z=window.getSelection())==null||z.removeAllRanges()}),Is(["meta+a","control+a"],z=>{z.preventDefault()}),Is(["meta+f","control+f"],z=>{_d.value=z.type==="keydown",setTimeout(()=>{_d.value&&(_d.value=!1)},300)},{enableOnFormTags:!0});const O=Td(z=>{var W,_;const I=Wc();if(I.text.trim().length&&((W=I.selection)!=null&&W.containsNode(n.current,!0)))try{const V=I.selection.getRangeAt(0).getBoundingClientRect();let U=0;(_=c==null?void 0:c.current)!=null&&_.contains(z.target)&&c.current.getBoundingClientRect().width>0&&(U=SI.getState().isSwapPanels?0:c.current.getBoundingClientRect().width),A(V,U)}catch(K){C.value=!1}else C.value=!1},600,{leading:!1}),$=NI(z=>{var I;if(z.target===(a==null?void 0:a.current)||(I=a.current)!=null&&I.contains(z.target))return!1;C.value&&(C.value=!1)},30,{leading:!0});return m.useEffect(()=>{o&&C.value&&(C.value=!1)},[o]),m.useEffect(()=>{var z,I;return(z=n==null?void 0:n.current)==null||z.addEventListener("mouseup",O),(I=n==null?void 0:n.current)==null||I.addEventListener("click",$),()=>{var W,_;(W=n==null?void 0:n.current)==null||W.removeEventListener("mouseup",O),(_=n==null?void 0:n.current)==null||_.removeEventListener("click",$)}},[n.current]),s.jsxs("div",{ref:Ii(t,n),className:"flex flex-col items-center relative",children:[e.children,sa.createPortal(s.jsx(Q,{className:gr(K5["shared-container"],!C.value&&K5.visible),style:R({zIndex:9999},E),children:C.value&&s.jsxs("button",{ref:a,onClick:z=>{z.stopPropagation()},children:[s.jsx(Q,{className:"h-8 text-slate-50 flex items-center justify-center gap-1 px-1.5",children:!g&&!b?s.jsxs(s.Fragment,{children:[pr.value?s.jsx(ms,{size:18,onClick:()=>{w(Wc().text)}}):s.jsx(aa,{size:18,onClick:z=>{!z.altKey&&!z.metaKey?S(Wc().text):w(Wc().text)}}),s.jsx($e,{isCompact:!0,side:"right",delayDuration:2e3,sideOffset:10,text:r("Add to clip or menu",{ns:"common"}),children:s.jsx(Pn,{size:18,onClick:()=>{j.value=!0,C.value=!1}})})]}):g?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{size:16}),s.jsx(J,{className:"text-white text-sm pr-1",children:r("Copied",{ns:"common"})})]}):b&&v===null?s.jsxs(s.Fragment,{children:[s.jsx(Bt,{size:16}),s.jsx(J,{className:"text-white text-sm pr-1",children:r("Pasted",{ns:"common"})})]}):v!==null&&v>0&&s.jsx(s.Fragment,{children:s.jsx(J,{className:"text-white text-sm px-1",children:r("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:v})})})}),s.jsx(Q,{className:K5.arrow})]})}),document.body),j.value&&s.jsx(Eke,{open:((H=Wc().text)==null?void 0:H.length)>0,selectedText:Wc().text,onClose:()=>{j.value=!1,Wc().text?C.value=!0:C.value=!1},onConfirmClip:z=>{D("/history",{replace:!0}),j.value=!1,$a.value&&($a.value=null),setTimeout(()=>{xd.value=z,ea.value=Ni.CLIP},300)},onConfirmMenu:z=>{D("/menu",{replace:!0}),j.value=!1,setTimeout(()=>{yd.value=z,Ka.value=!0},300)}}),Ed.value&&s.jsx(RD,{title:r("Confirm {{action}}",{ns:"common",action:Nd.value}),open:!0,onClose:()=>{Ed.value=!1,Nd.value=null,_i.value=null,Wa.value=null},showPasscode:!0,onConfirmSuccess:()=>{Ed.value=!1,Nd.value=null,_i.value=Wa.value},onConfirmFailed:()=>{Ed.value=!1,Nd.value=null,_i.value=null,Wa.value=null}}),Ru.value&&s.jsx(lCe,{open:!0,onClose:()=>{Ru.value=!1}}),vb.value&&s.jsx(cCe,{open:!0,onClose:()=>{vb.value=!1}}),Si.value&&s.jsx(RD,{open:!0,showPasscode:!0,isLockScreen:!0,onClose:()=>{Si.value=!1},onConfirmSuccess:()=>{Si.value=!1}})]})},hCe=()=>{const{isMacOSX:e,isWindows:t}=xt(xs);return eke(),s.jsx("div",{className:"flex flex-col bg-slate-100 dark:bg-slate-700 overflow-hidden rounded-b-md mt-[40px]",children:s.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:s.jsx(zge,{children:s.jsx(kN,{})})})})},ak=m.forwardRef(fCe),pCe=Object.freeze(Object.defineProperty({__proto__:null,Component:hCe,MainContainer:ak},Symbol.toStringTag,{value:"Module"}));function UD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tj(e,t){return tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},tj(e,t)}function mCe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tj(e,t)}var WD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function gCe(e,t){return!!(e===t||WD(e)&&WD(t))}function vCe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!gCe(e[r],t[r]))return!1;return!0}function G5(e,t){t===void 0&&(t=vCe);var r,n=[],a,o=!1;function i(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return o&&r===this&&t(c,n)||(a=e.apply(this,c),o=!0,r=this,n=c),a}return i}var xCe=typeof performance=="object"&&typeof performance.now=="function",VD=xCe?function(){return performance.now()}:function(){return Date.now()};function qD(e){cancelAnimationFrame(e.id)}function yCe(e,t){var r=VD();function n(){VD()-r>=t?e.call(null):a.id=requestAnimationFrame(n)}var a={id:requestAnimationFrame(n)};return a}var Y5=-1;function KD(e){if(e===void 0&&(e=!1),Y5===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Y5=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Y5}var Sh=null;function GD(e){if(e===void 0&&(e=!1),Sh===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Sh="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Sh="negative":Sh="positive-ascending"),document.body.removeChild(t),Sh}return Sh}var bCe=150,wCe=function(t,r){return t};function BU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,c=e.getStopIndexForStartIndex,d=e.initInstanceProps,f=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return t=function(p){mCe(g,p);function g(b){var v;return v=p.call(this,b)||this,v._instanceProps=d(v.props,UD(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:UD(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=G5(function(w,C,j,E){return v.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:C,visibleStartIndex:j,visibleStopIndex:E})}),v._callOnScroll=void 0,v._callOnScroll=G5(function(w,C,j){return v.props.onScroll({scrollDirection:w,scrollOffset:C,scrollUpdateWasRequested:j})}),v._getItemStyle=void 0,v._getItemStyle=function(w){var C=v.props,j=C.direction,E=C.itemSize,N=C.layout,M=v._getItemStyleCache(f&&E,f&&N,f&&j),P;if(M.hasOwnProperty(w))P=M[w];else{var D=r(v.props,w,v._instanceProps),A=a(v.props,w,v._instanceProps),O=j==="horizontal"||N==="horizontal",$=j==="rtl",H=O?D:0;M[w]=P={position:"absolute",left:$?void 0:H,right:$?H:void 0,top:O?0:D,height:O?"100%":A,width:O?A:"100%"}}return P},v._getItemStyleCache=void 0,v._getItemStyleCache=G5(function(w,C,j){return{}}),v._onScrollHorizontal=function(w){var C=w.currentTarget,j=C.clientWidth,E=C.scrollLeft,N=C.scrollWidth;v.setState(function(M){if(M.scrollOffset===E)return null;var P=v.props.direction,D=E;if(P==="rtl")switch(GD()){case"negative":D=-E;break;case"positive-descending":D=N-j-E;break}return D=Math.max(0,Math.min(D,N-j)),{isScrolling:!0,scrollDirection:M.scrollOffset<D?"forward":"backward",scrollOffset:D,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(w){var C=w.currentTarget,j=C.clientHeight,E=C.scrollHeight,N=C.scrollTop;v.setState(function(M){if(M.scrollOffset===N)return null;var P=Math.max(0,Math.min(N,E-j));return{isScrolling:!0,scrollDirection:M.scrollOffset<P?"forward":"backward",scrollOffset:P,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(w){var C=v.props.outerRef;v._outerRef=w,typeof C=="function"?C(w):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=w)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&qD(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=yCe(v._resetIsScrolling,bCe)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}g.getDerivedStateFromProps=function(v,w){return kCe(v,w),h(v),null};var S=g.prototype;return S.scrollTo=function(v){v=Math.max(0,v),this.setState(function(w){return w.scrollOffset===v?null:{scrollDirection:w.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},S.scrollToItem=function(v,w){w===void 0&&(w="auto");var C=this.props,j=C.itemCount,E=C.layout,N=this.state.scrollOffset;v=Math.max(0,Math.min(v,j-1));var M=0;if(this._outerRef){var P=this._outerRef;E==="vertical"?M=P.scrollWidth>P.clientWidth?KD():0:M=P.scrollHeight>P.clientHeight?KD():0}this.scrollTo(o(this.props,v,w,N,this._instanceProps,M))},S.componentDidMount=function(){var v=this.props,w=v.direction,C=v.initialScrollOffset,j=v.layout;if(typeof C=="number"&&this._outerRef!=null){var E=this._outerRef;w==="horizontal"||j==="horizontal"?E.scrollLeft=C:E.scrollTop=C}this._callPropsCallbacks()},S.componentDidUpdate=function(){var v=this.props,w=v.direction,C=v.layout,j=this.state,E=j.scrollOffset,N=j.scrollUpdateWasRequested;if(N&&this._outerRef!=null){var M=this._outerRef;if(w==="horizontal"||C==="horizontal")if(w==="rtl")switch(GD()){case"negative":M.scrollLeft=-E;break;case"positive-ascending":M.scrollLeft=E;break;default:var P=M.clientWidth,D=M.scrollWidth;M.scrollLeft=D-P-E;break}else M.scrollLeft=E;else M.scrollTop=E}this._callPropsCallbacks()},S.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&qD(this._resetIsScrollingTimeoutId)},S.render=function(){var v=this.props,w=v.children,C=v.className,j=v.direction,E=v.height,N=v.innerRef,M=v.innerElementType,P=v.innerTagName,D=v.itemCount,A=v.itemData,O=v.itemKey,$=O===void 0?wCe:O,H=v.layout,z=v.outerElementType,I=v.outerTagName,W=v.style,_=v.useIsScrolling,K=v.width,V=this.state.isScrolling,U=j==="horizontal"||H==="horizontal",X=U?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),F=G[0],q=G[1],Y=[];if(D>0)for(var se=F;se<=q;se++)Y.push(m.createElement(w,{data:A,key:$(se,A),index:se,isScrolling:_?V:void 0,style:this._getItemStyle(se)}));var ee=n(this.props,this._instanceProps);return m.createElement(z||I||"div",{className:C,onScroll:X,ref:this._outerRefSetter,style:Be({position:"relative",height:E,width:K,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:j},W)},m.createElement(M||P||"div",{children:Y,ref:N,style:{height:U?"100%":ee,pointerEvents:V?"none":void 0,width:U?ee:"100%"}}))},S._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var w=this._getRangeToRender(),C=w[0],j=w[1],E=w[2],N=w[3];this._callOnItemsRendered(C,j,E,N)}}if(typeof this.props.onScroll=="function"){var M=this.state,P=M.scrollDirection,D=M.scrollOffset,A=M.scrollUpdateWasRequested;this._callOnScroll(P,D,A)}},S._getRangeToRender=function(){var v=this.props,w=v.itemCount,C=v.overscanCount,j=this.state,E=j.isScrolling,N=j.scrollDirection,M=j.scrollOffset;if(w===0)return[0,0,0,0];var P=i(this.props,M,this._instanceProps),D=c(this.props,P,M,this._instanceProps),A=!E||N==="backward"?Math.max(1,C):1,O=!E||N==="forward"?Math.max(1,C):1;return[Math.max(0,P-A),Math.max(0,Math.min(w-1,D+O)),P,D]},g}(m.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var kCe=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},CCe=50,ep=function(t,r,n){var a=t,o=a.itemSize,i=n.itemMetadataMap,c=n.lastMeasuredIndex;if(r>c){var d=0;if(c>=0){var f=i[c];d=f.offset+f.size}for(var h=c+1;h<=r;h++){var p=o(h);i[h]={offset:d,size:p},d+=p}n.lastMeasuredIndex=r}return i[r]},SCe=function(t,r,n){var a=r.itemMetadataMap,o=r.lastMeasuredIndex,i=o>0?a[o].offset:0;return i>=n?UU(t,r,o,0,n):jCe(t,r,Math.max(0,o),n)},UU=function(t,r,n,a,o){for(;a<=n;){var i=a+Math.floor((n-a)/2),c=ep(t,i,r).offset;if(c===o)return i;c<o?a=i+1:c>o&&(n=i-1)}return a>0?a-1:0},jCe=function(t,r,n,a){for(var o=t.itemCount,i=1;n<o&&ep(t,n,r).offset<a;)n+=i,i*=2;return UU(t,r,Math.min(n,o-1),Math.floor(n/2),a)},YD=function(t,r){var n=t.itemCount,a=r.itemMetadataMap,o=r.estimatedItemSize,i=r.lastMeasuredIndex,c=0;if(i>=n&&(i=n-1),i>=0){var d=a[i];c=d.offset+d.size}var f=n-i-1,h=f*o;return c+h},ECe=BU({getItemOffset:function(t,r,n){return ep(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:YD,getOffsetForIndexAndAlignment:function(t,r,n,a,o,i){var c=t.direction,d=t.height,f=t.layout,h=t.width,p=c==="horizontal"||f==="horizontal",g=p?h:d,S=ep(t,r,o),b=YD(t,o),v=Math.max(0,Math.min(b-g,S.offset)),w=Math.max(0,S.offset-g+S.size+i);switch(n==="smart"&&(a>=w-g&&a<=v+g?n="auto":n="center"),n){case"start":return v;case"end":return w;case"center":return Math.round(w+(v-w)/2);case"auto":default:return a>=w&&a<=v?a:a<w?w:v}},getStartIndexForOffset:function(t,r,n){return SCe(t,n,r)},getStopIndexForStartIndex:function(t,r,n,a){for(var o=t.direction,i=t.height,c=t.itemCount,d=t.layout,f=t.width,h=o==="horizontal"||d==="horizontal",p=h?f:i,g=ep(t,r,a),S=n+p,b=g.offset+g.size,v=r;v<c-1&&b<S;)v++,b+=ep(t,v,a).size;return v},initInstanceProps:function(t,r){var n=t,a=n.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:a||CCe,lastMeasuredIndex:-1};return r.resetAfterIndex=function(i,c){c===void 0&&(c=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,i-1),r._getItemStyleCache(-1),c&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),WU=BU({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,a,o,i){var c=t.direction,d=t.height,f=t.itemCount,h=t.itemSize,p=t.layout,g=t.width,S=c==="horizontal"||p==="horizontal",b=S?g:d,v=Math.max(0,f*h-b),w=Math.min(v,r*h),C=Math.max(0,r*h-b+h+i);switch(n==="smart"&&(a>=C-b&&a<=w+b?n="auto":n="center"),n){case"start":return w;case"end":return C;case"center":{var j=Math.round(C+(w-C)/2);return j<Math.ceil(b/2)?0:j>v+Math.floor(b/2)?v:j}case"auto":default:return a>=C&&a<=w?a:a<C?C:w}},getStartIndexForOffset:function(t,r){var n=t.itemCount,a=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/a)))},getStopIndexForStartIndex:function(t,r,n){var a=t.direction,o=t.height,i=t.itemCount,c=t.itemSize,d=t.layout,f=t.width,h=a==="horizontal"||d==="horizontal",p=r*c,g=h?f:o,S=Math.ceil((g+n-p)/c);return Math.max(0,Math.min(i-1,r+S-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function NCe(e){var t=e.lastRenderedStartIndex,r=e.lastRenderedStopIndex,n=e.startIndex,a=e.stopIndex;return!(n>r||a<t)}function _Ce(e){for(var t=e.isItemLoaded,r=e.itemCount,n=e.minimumBatchSize,a=e.startIndex,o=e.stopIndex,i=[],c=null,d=null,f=a;f<=o;f++){var h=t(f);h?d!==null&&(i.push(c,d),c=d=null):(d=f,c===null&&(c=f))}if(d!==null){for(var p=Math.min(Math.max(d,c+n-1),r-1),g=d+1;g<=p&&!t(g);g++)d=g;i.push(c,d)}if(i.length)for(;i[1]-i[0]+1<n&&i[0]>0;){var S=i[0]-1;if(!t(S))i[0]=S;else break}return i}var TCe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},MCe=function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),PCe=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)},ZD=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},DCe=function(e){PCe(t,e);function t(){var r,n,a,o;TCe(this,t);for(var i=arguments.length,c=Array(i),d=0;d<i;d++)c[d]=arguments[d];return o=(n=(a=ZD(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(c))),a),a._lastRenderedStartIndex=-1,a._lastRenderedStopIndex=-1,a._memoizedUnloadedRanges=[],a._onItemsRendered=function(f){var h=f.visibleStartIndex,p=f.visibleStopIndex;a._lastRenderedStartIndex=h,a._lastRenderedStopIndex=p,a._ensureRowsLoaded(h,p)},a._setRef=function(f){a._listRef=f},n),ZD(a,o)}return MCe(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,a){var o=this.props,i=o.isItemLoaded,c=o.itemCount,d=o.minimumBatchSize,f=d===void 0?10:d,h=o.threshold,p=h===void 0?15:h,g=_Ce({isItemLoaded:i,itemCount:c,minimumBatchSize:f,startIndex:Math.max(0,n-p),stopIndex:Math.min(c-1,a+p)});(this._memoizedUnloadedRanges.length!==g.length||this._memoizedUnloadedRanges.some(function(S,b){return g[b]!==S}))&&(this._memoizedUnloadedRanges=g,this._loadUnloadedRanges(g))}},{key:"_loadUnloadedRanges",value:function(n){for(var a=this,o=this.props.loadMoreItems||this.props.loadMoreRows,i=function(f){var h=n[f],p=n[f+1],g=o(h,p);g!=null&&g.then(function(){if(NCe({lastRenderedStartIndex:a._lastRenderedStartIndex,lastRenderedStopIndex:a._lastRenderedStopIndex,startIndex:h,stopIndex:p})){if(a._listRef==null)return;typeof a._listRef.resetAfterIndex=="function"?a._listRef.resetAfterIndex(h,!0):(typeof a._listRef._getItemStyleCache=="function"&&a._listRef._getItemStyleCache(-1),a._listRef.forceUpdate())}})},c=0;c<n.length;c+=2)i(c)}}]),t}(m.PureComponent);function ACe(e,t){var r=m.useRef(null),n=m.useRef(null);n.current=t;var a=m.useRef(null);m.useEffect(function(){o()});var o=m.useCallback(function(){var i=a.current,c=n.current,d=i||(c?c instanceof Element?c:c.current:null);r.current&&r.current.element===d&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:d,subscriber:e,cleanup:d?e(d):void 0})},[e]);return m.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),m.useCallback(function(i){a.current=i,o()},[o])}function XD(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}function RCe(e){e===void 0&&(e={});var t=e.onResize,r=m.useRef(void 0);r.current=t;var n=e.round||Math.round,a=m.useRef(),o=m.useState({width:void 0,height:void 0}),i=o[0],c=o[1],d=m.useRef(!1);m.useEffect(function(){return d.current=!1,function(){d.current=!0}},[]);var f=m.useRef({width:void 0,height:void 0}),h=ACe(m.useCallback(function(p){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver(function(g){var S=g[0],b=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",v=XD(S,b,"inlineSize"),w=XD(S,b,"blockSize"),C=v?n(v):void 0,j=w?n(w):void 0;if(f.current.width!==C||f.current.height!==j){var E={width:C,height:j};f.current.width=C,f.current.height=j,r.current?r.current(E):d.current||c(E)}})}),a.current.instance.observe(p,{box:e.box}),function(){a.current&&a.current.instance.unobserve(p)}},[e.box,n]),e.ref);return m.useMemo(function(){return{ref:h,width:i.width,height:i.height}},[h,i.width,i.height])}function LCe(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const x2={prefix:String(Math.round(Math.random()*1e10)),current:0},VU=vt.createContext(x2),OCe=vt.createContext(!1);let ICe=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Z5=new WeakMap;function $Ce(e=!1){let t=m.useContext(VU),r=m.useRef(null);if(r.current===null&&!e){var n,a;let o=(a=vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(o){let i=Z5.get(o);i==null?Z5.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==i.state&&(t.current=i.id,Z5.delete(o))}r.current=++t.current}return r.current}function zCe(e){let t=m.useContext(VU);t===x2&&!ICe&&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 r=$Ce(!!e),n="react-aria".concat(t.prefix);return e||"".concat(n,"-").concat(r)}function FCe(e){let t=vt.useId(),[r]=m.useState(VCe()),n=r?"react-aria":"react-aria".concat(x2.prefix);return e||"".concat(n,"-").concat(t)}const HCe=typeof vt.useId=="function"?FCe:zCe;function BCe(){return!1}function UCe(){return!0}function WCe(e){return()=>{}}function VCe(){return typeof vt.useSyncExternalStore=="function"?vt.useSyncExternalStore(WCe,BCe,UCe):m.useContext(OCe)}const qCe=typeof document!="undefined"?vt.useLayoutEffect:()=>{};let KCe=!!(typeof window!="undefined"&&window.document&&window.document.createElement),QD=new Map;function GCe(e){let[t,r]=m.useState(e),n=m.useRef(null),a=HCe(t),o=m.useCallback(i=>{n.current=i},[]);return KCe&&QD.set(a,o),qCe(()=>{let i=a;return()=>{QD.delete(i)}},[a]),m.useEffect(()=>{let i=n.current;i&&(n.current=null,r(i))}),a}const YCe=new Set(["id"]),ZCe=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),XCe=new Set(["href","target","rel","download","ping","referrerPolicy"]),QCe=/^(data-.*)$/;function AN(e,t={}){let{labelable:r,isLink:n,propNames:a}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(YCe.has(i)||r&&ZCe.has(i)||n&&XCe.has(i)||a!=null&&a.has(i)||QCe.test(i))&&(o[i]=e[i]);return o}let U0=new Map,JD=new Set;function eA(){if(typeof window=="undefined")return;let e=r=>{let n=U0.get(r.target);n||(n=new Set,U0.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=U0.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),U0.delete(r.target)),U0.size===0)){for(let a of JD)a();JD.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document!="undefined"&&(document.readyState!=="loading"?eA():document.addEventListener("DOMContentLoaded",eA));function JCe(e,t){const r=m.useRef(!0),n=m.useRef(null);m.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[]),m.useEffect(()=>{r.current?r.current=!1:(!n.current||t.some((a,o)=>!Object.is(a,n[o])))&&e(),n.current=t},t)}const qU=m.createContext({activity:void 0,id:"",isCollapsed:void 0}),e5e=qU.Provider;function RN(){return m.useContext(qU)}let rj=null,Rd=null;function t5e(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 r5e(){Rd!==null&&(document.head.removeChild(Rd),rj=null,Rd=null)}function n5e(e,t){if(rj===e)return;rj=e;const r=t5e(e,t);Rd===null&&(Rd=document.createElement("style"),document.head.appendChild(Rd)),Rd.innerHTML="*{cursor: ".concat(r,"!important;}")}const s5e="_PanelGroupWrapper_13ky4_1",a5e="_PanelGroup_13ky4_1",o5e="_Panel_13ky4_1",i5e="_PanelColumn_13ky4_15",l5e="_PanelRow_13ky4_16",c5e="_Centered_13ky4_26",u5e="_ResizeHandle_13ky4_39",d5e="_Overflow_13ky4_42",f5e="_Button_13ky4_53",h5e="_ButtonDisabled_13ky4_54",p5e="_Buttons_13ky4_68",m5e="_Capitalize_13ky4_76",g5e="_WarningBlock_13ky4_80",v5e="_InlineCode_13ky4_87",x5e="_ResizeHandleOuter_13ky4_91",y5e="_ResizeHandleInner_13ky4_104",b5e="_HorizontalIcon_13ky4_135",w5e="_VerticalIcon_13ky4_136",k5e={PanelGroupWrapper:s5e,PanelGroup:a5e,Panel:o5e,PanelColumn:i5e,PanelRow:l5e,Centered:c5e,ResizeHandle:u5e,Overflow:d5e,Button:f5e,ButtonDisabled:h5e,Buttons:p5e,Capitalize:m5e,WarningBlock:g5e,InlineCode:v5e,ResizeHandleOuter:x5e,ResizeHandleInner:y5e,HorizontalIcon:b5e,VerticalIcon:w5e};function tA(e){try{if(typeof localStorage!="undefined")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}const ag={getItem:e=>(tA(ag),ag.getItem(e)),setItem:(e,t)=>{tA(ag),ag.setItem(e,t)}};function C5e(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 S5e(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 j5e=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.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(S5e(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=C5e(a);try{o.insertRule(n,o.cssRules.length)}catch(i){}}else a.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}(),Xs="-ms-",y2="-moz-",Vr="-webkit-",KU="comm",LN="rule",ON="decl",E5e="@import",GU="@keyframes",N5e="@layer",_5e=Math.abs,ok=String.fromCharCode,T5e=Object.assign;function M5e(e,t){return Os(e,0)^45?(((t<<2^Os(e,0))<<2^Os(e,1))<<2^Os(e,2))<<2^Os(e,3):0}function YU(e){return e.trim()}function P5e(e,t){return(e=t.exec(e))?e[0]:e}function qr(e,t,r){return e.replace(t,r)}function nj(e,t){return e.indexOf(t)}function Os(e,t){return e.charCodeAt(t)|0}function Sv(e,t,r){return e.slice(t,r)}function nl(e){return e.length}function IN(e){return e.length}function sy(e,t){return t.push(e),e}function D5e(e,t){return e.map(t).join("")}var ik=1,om=1,ZU=0,no=0,es=0,Om="";function lk(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:ik,column:om,length:i,return:""}}function W0(e,t){return T5e(lk("",null,null,"",null,null,0),e,{length:-e.length},t)}function A5e(){return es}function R5e(){return es=no>0?Os(Om,--no):0,om--,es===10&&(om=1,ik--),es}function So(){return es=no<ZU?Os(Om,no++):0,om++,es===10&&(om=1,ik++),es}function xl(){return Os(Om,no)}function Ty(){return no}function b1(e,t){return Sv(Om,e,t)}function jv(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 XU(e){return ik=om=1,ZU=nl(Om=e),no=0,[]}function QU(e){return Om="",e}function My(e){return YU(b1(no-1,sj(e===91?e+2:e===40?e+1:e)))}function L5e(e){for(;(es=xl())&&es<33;)So();return jv(e)>2||jv(es)>3?"":" "}function O5e(e,t){for(;--t&&So()&&!(es<48||es>102||es>57&&es<65||es>70&&es<97););return b1(e,Ty()+(t<6&&xl()==32&&So()==32))}function sj(e){for(;So();)switch(es){case e:return no;case 34:case 39:e!==34&&e!==39&&sj(es);break;case 40:e===41&&sj(e);break;case 92:So();break}return no}function I5e(e,t){for(;So()&&e+es!==57;)if(e+es===84&&xl()===47)break;return"/*"+b1(t,no-1)+"*"+ok(e===47?e:So())}function $5e(e){for(;!jv(xl());)So();return b1(e,no)}function z5e(e){return QU(Py("",null,null,null,[""],e=XU(e),0,[0],e))}function Py(e,t,r,n,a,o,i,c,d){for(var f=0,h=0,p=i,g=0,S=0,b=0,v=1,w=1,C=1,j=0,E="",N=a,M=o,P=n,D=E;w;)switch(b=j,j=So()){case 40:if(b!=108&&Os(D,p-1)==58){nj(D+=qr(My(j),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:D+=My(j);break;case 9:case 10:case 13:case 32:D+=L5e(b);break;case 92:D+=O5e(Ty()-1,7);continue;case 47:switch(xl()){case 42:case 47:sy(F5e(I5e(So(),Ty()),t,r),d);break;default:D+="/"}break;case 123*v:c[f++]=nl(D)*C;case 125*v:case 59:case 0:switch(j){case 0:case 125:w=0;case 59+h:C==-1&&(D=qr(D,/\f/g,"")),S>0&&nl(D)-p&&sy(S>32?nA(D+";",n,r,p-1):nA(qr(D," ","")+";",n,r,p-2),d);break;case 59:D+=";";default:if(sy(P=rA(D,t,r,f,h,a,c,E,N=[],M=[],p),o),j===123)if(h===0)Py(D,t,P,P,N,o,p,c,M);else switch(g===99&&Os(D,3)===110?100:g){case 100:case 108:case 109:case 115:Py(e,P,P,n&&sy(rA(e,P,P,0,0,a,c,E,a,N=[],p),M),a,M,p,c,n?N:M);break;default:Py(D,P,P,P,[""],M,0,c,M)}}f=h=S=0,v=C=1,E=D="",p=i;break;case 58:p=1+nl(D),S=b;default:if(v<1){if(j==123)--v;else if(j==125&&v++==0&&R5e()==125)continue}switch(D+=ok(j),j*v){case 38:C=h>0?1:(D+="\f",-1);break;case 44:c[f++]=(nl(D)-1)*C,C=1;break;case 64:xl()===45&&(D+=My(So())),g=xl(),h=p=nl(E=D+=$5e(Ty())),j++;break;case 45:b===45&&nl(D)==2&&(v=0)}}return o}function rA(e,t,r,n,a,o,i,c,d,f,h){for(var p=a-1,g=a===0?o:[""],S=IN(g),b=0,v=0,w=0;b<n;++b)for(var C=0,j=Sv(e,p+1,p=_5e(v=i[b])),E=e;C<S;++C)(E=YU(v>0?g[C]+" "+j:qr(j,/&\f/g,g[C])))&&(d[w++]=E);return lk(e,t,r,a===0?LN:c,d,f,h)}function F5e(e,t,r){return lk(e,t,r,KU,ok(A5e()),Sv(e,2,-2),0)}function nA(e,t,r,n){return lk(e,t,r,ON,Sv(e,0,n),Sv(e,n+1,-1),n)}function xp(e,t){for(var r="",n=IN(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function H5e(e,t,r,n){switch(e.type){case N5e:if(e.children.length)break;case E5e:case ON:return e.return=e.return||e.value;case KU:return"";case GU:return e.return=e.value+"{"+xp(e.children,n)+"}";case LN:e.value=e.props.join(",")}return nl(r=xp(e.children,n))?e.return=e.value+"{"+r+"}":""}function B5e(e){var t=IN(e);return function(r,n,a,o){for(var i="",c=0;c<t;c++)i+=e[c](r,n,a,o)||"";return i}}function U5e(e){return function(t){t.root||(t=t.return)&&e(t)}}function W5e(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var V5e=function(t,r,n){for(var a=0,o=0;a=o,o=xl(),a===38&&o===12&&(r[n]=1),!jv(o);)So();return b1(t,no)},q5e=function(t,r){var n=-1,a=44;do switch(jv(a)){case 0:a===38&&xl()===12&&(r[n]=1),t[n]+=V5e(no-1,r,n);break;case 2:t[n]+=My(a);break;case 4:if(a===44){t[++n]=xl()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ok(a)}while(a=So());return t},K5e=function(t,r){return QU(q5e(XU(t),r))},sA=new WeakMap,G5e=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!sA.get(n))&&!a){sA.set(t,!0);for(var o=[],i=K5e(r,o),c=n.props,d=0,f=0;d<i.length;d++)for(var h=0;h<c.length;h++,f++)t.props[f]=o[d]?i[d].replace(/&\f/g,c[h]):c[h]+" "+i[d]}}},Y5e=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function JU(e,t){switch(M5e(e,t)){case 5103:return Vr+"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 Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Vr+e+y2+e+Xs+e+e;case 6828:case 4268:return Vr+e+Xs+e+e;case 6165:return Vr+e+Xs+"flex-"+e+e;case 5187:return Vr+e+qr(e,/(\w+).+(:[^]+)/,Vr+"box-$1$2"+Xs+"flex-$1$2")+e;case 5443:return Vr+e+Xs+"flex-item-"+qr(e,/flex-|-self/,"")+e;case 4675:return Vr+e+Xs+"flex-line-pack"+qr(e,/align-content|flex-|-self/,"")+e;case 5548:return Vr+e+Xs+qr(e,"shrink","negative")+e;case 5292:return Vr+e+Xs+qr(e,"basis","preferred-size")+e;case 6060:return Vr+"box-"+qr(e,"-grow","")+Vr+e+Xs+qr(e,"grow","positive")+e;case 4554:return Vr+qr(e,/([^-])(transform)/g,"$1"+Vr+"$2")+e;case 6187:return qr(qr(qr(e,/(zoom-|grab)/,Vr+"$1"),/(image-set)/,Vr+"$1"),e,"")+e;case 5495:case 3959:return qr(e,/(image-set\([^]*)/,Vr+"$1$`$1");case 4968:return qr(qr(e,/(.+:)(flex-)?(.*)/,Vr+"box-pack:$3"+Xs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Vr+e+e;case 4095:case 3583:case 4068:case 2532:return qr(e,/(.+)-inline(.+)/,Vr+"$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(nl(e)-1-t>6)switch(Os(e,t+1)){case 109:if(Os(e,t+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Vr+"$2-$3$1"+y2+(Os(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~nj(e,"stretch")?JU(qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Os(e,t+1)!==115)break;case 6444:switch(Os(e,nl(e)-3-(~nj(e,"!important")&&10))){case 107:return qr(e,":",":"+Vr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vr+(Os(e,14)===45?"inline-":"")+"box$3$1"+Vr+"$2$3$1"+Xs+"$2box$3")+e}break;case 5936:switch(Os(e,t+11)){case 114:return Vr+e+Xs+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vr+e+Xs+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vr+e+Xs+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vr+e+Xs+e+e}return e}var Z5e=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case ON:t.return=JU(t.value,t.length);break;case GU:return xp([W0(t,{value:qr(t.value,"@","@"+Vr)})],a);case LN:if(t.length)return D5e(t.props,function(o){switch(P5e(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xp([W0(t,{props:[qr(o,/:(read-\w+)/,":"+y2+"$1")]})],a);case"::placeholder":return xp([W0(t,{props:[qr(o,/:(plac\w+)/,":"+Vr+"input-$1")]}),W0(t,{props:[qr(o,/:(plac\w+)/,":"+y2+"$1")]}),W0(t,{props:[qr(o,/:(plac\w+)/,Xs+"input-$1")]})],a)}return""})}},X5e=[Z5e],Q5e=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var a=t.stylisPlugins||X5e,o={},i,c=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),C=1;C<w.length;C++)o[w[C]]=!0;c.push(v)});var d,f=[G5e,Y5e];{var h,p=[H5e,U5e(function(v){h.insert(v)})],g=B5e(f.concat(a,p)),S=function(w){return xp(z5e(w),g)};d=function(w,C,j,E){h=j,S(w?w+"{"+C.styles+"}":C.styles),E&&(b.inserted[C.name]=!0)}}var b={key:r,sheet:new j5e({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:d};return b.sheet.hydrate(c),b};function J5e(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 eSe={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},tSe=/[A-Z]|^ms/g,rSe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eW=function(t){return t.charCodeAt(1)===45},aA=function(t){return t!=null&&typeof t!="boolean"},X5=W5e(function(e){return eW(e)?e:e.replace(tSe,"-$&").toLowerCase()}),oA=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(rSe,function(n,a,o){return sl={name:a,styles:o,next:sl},a})}return eSe[t]!==1&&!eW(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ev(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return sl={name:r.name,styles:r.styles,next:sl},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)sl={name:n.name,styles:n.styles,next:sl},n=n.next;var a=r.styles+";";return a}return nSe(e,t,r)}case"function":{if(e!==void 0){var o=sl,i=r(e);return sl=o,Ev(e,t,i)}break}}if(t==null)return r;var c=t[r];return c!==void 0?c:r}function nSe(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Ev(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object")t!=null&&t[i]!==void 0?n+=o+"{"+t[i]+"}":aA(i)&&(n+=X5(o)+":"+oA(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++)aA(i[c])&&(n+=X5(o)+":"+oA(o,i[c])+";");else{var d=Ev(e,t,i);switch(o){case"animation":case"animationName":{n+=X5(o)+":"+d+";";break}default:n+=o+"{"+d+"}"}}}return n}var iA=/label:\s*([^\s;\n{]+)\s*(;|$)/g,sl,Q5=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";sl=void 0;var i=t[0];i==null||i.raw===void 0?(a=!1,o+=Ev(n,r,i)):o+=i[0];for(var c=1;c<t.length;c++)o+=Ev(n,r,t[c]),a&&(o+=i[c]);iA.lastIndex=0;for(var d="",f;(f=iA.exec(o))!==null;)d+="-"+f[1];var h=J5e(o)+d;return{name:h,styles:o,next:sl}},sSe=!0;function tW(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var aSe=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||sSe===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},oSe=function(t,r,n){aSe(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function lA(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function cA(e,t,r){var n=[],a=tW(e,n,r);return n.length<2?r:a+t(n)}var iSe=function(t){var r=Q5e(t);r.sheet.speedy=function(c){this.isSpeedy=c},r.compat=!0;var n=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var p=Q5(f,r.registered,void 0);return oSe(r,p,!1),r.key+"-"+p.name},a=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var p=Q5(f,r.registered),g="animation-"+p.name;return lA(r,{name:p.name,styles:"@keyframes "+g+"{"+p.styles+"}"}),g},o=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var p=Q5(f,r.registered);lA(r,p)},i=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];return cA(r.registered,n,lSe(f))};return{css:n,cx:i,injectGlobal:o,keyframes:a,hydrate:function(d){d.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:tW.bind(null,r.registered),merge:cA.bind(null,r.registered,n)}},lSe=function e(t){for(var r="",n=0;n<t.length;n++){var a=t[n];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{o="";for(var i in a)a[i]&&i&&(o&&(o+=" "),o+=i)}break}default:o=a}o&&(r&&(r+=" "),r+=o)}}return r},rW=iSe({key:"css"}),uA=rW.cx,im=rW.css;function dA(e){throw new Error("Expected never to be called, but received: "+JSON.stringify(e))}function cSe(e){return typeof e=="number"&&!isNaN(e)}function uSe(e){return Object.entries(e)}function dSe(e){return Object.keys(e)}var fSe=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.literal,n=t.overlap,a=r?e:["&"].concat(e);function o(i){if(typeof i!="object"||i==null)return[];if(Array.isArray(i))return i.map(o);var c={},d={},f={};return Object.keys(i).forEach(function(h){var p=i[h];if(!Array.isArray(p)&&r&&(p=[p]),(r||Array.isArray(p))&&h.charCodeAt(0)!==38){var g=void 0;p.forEach(function(S,b){if(!(n&&g===S)&&S!=null)if(g=S,b===0&&!r)f[h]=S;else if(c[a[b]]===void 0){var v;c[a[b]]=(v={},v[h]=S,v)}else c[a[b]][h]=S})}else typeof p=="object"?d[h]=o(p):f[h]=p}),a.forEach(function(h){c[h]&&(f[h]=c[h])}),Object.assign(f,d),f}return function(){for(var i=arguments.length,c=Array(i),d=0;d<i;d++)c[d]=arguments[d];return c.map(o)}};const Ua={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 b2(e,t={}){let{delay:r=0,duration:n="short",easing:a="easeInOut"}=t,o=a==="linear"?"linear":Ua.animation.easing[a],i=fA(n);return Array.isArray(e)?e.map(c=>b2(c,t)).join(", "):"".concat(e," ").concat(i," ").concat(o)+(r?" ".concat(fA(r)):"")}function fA(e){return cSe(e)?"".concat(e,"ms"):Ua.animation.duration[e]}const hSe="ksv",hA=pSe("reset");function pSe(e){return"".concat(hSe,":").concat(e)}function ck(...e){let t=uA(e);return t.includes(hA)?t:uA(hA,t)}const Kl={mobile:0,tablet:740,desktop:992,wide:1200},Dy=e=>"@media (min-width: ".concat(e,"px)"),J5=e=>"@media (max-width: ".concat(e-1,"px)"),pA={above:{mobile:Dy(Kl.tablet),tablet:Dy(Kl.desktop),desktop:Dy(Kl.wide)},below:{tablet:J5(Kl.tablet),desktop:J5(Kl.desktop),wide:J5(Kl.wide)}},mA=dSe(Kl),e7=Kl,{mobile:r6e}=e7,mSe=Ce(e7,["mobile"]),gSe=Object.values(mSe).map(Dy),vSe=fSe(gSe);function xSe(e,t){return t==null?null:typeof t=="object"&&!Array.isArray(t)?ySe(e,t):e(t)}function ySe(e,t){const r=[];for(let n=0;n<mA.length;n++){const a=mA[n];r.push(t[a]!=null?e(t[a]):null)}return r}const t7=Kl,{mobile:n6e}=t7,bSe=Ce(t7,["mobile"]),wSe=uSe(bSe).sort(([,e],[,t])=>t-e);wSe.map(([,e])=>"(min-width: ".concat(e,"px)"));function kSe(e,t){for(const r of t.split(".")){if(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r))return;e=e[r]}return e}function w2(e,t){var r;return typeof t!="string"?t:(e=t.includes(".")?t:"".concat(e,".").concat(t),(r=kSe(Ua,e))!==null&&r!==void 0?r:t)}function uo(e,t){return[e,n=>w2(t,n)]}const CSe=e=>e;function vn(e,t=CSe){return[e,t]}function V0(e){return[e,r=>{const n=w2("color.border",r);return"".concat(Ua.size.border.regular," solid ").concat(n)}]}function SSe(e){let[t,r]=e.split(".");return!t||!r?!1:!!Ua.size[t][r]}function jSe(e){if(typeof e=="number"){if(e===0)return"".concat(e,"px");dA(e)}if(SSe(e)){let[t,r]=e.split(".");return Ua.size[t][r]}if(e==="auto"||e==="inherit"||e==="100%"||e==="100vh"||e==="100vw")return e;dA(e)}function fd(e){return[e,jSe]}function Wn(e){return uo(e,"size.space")}function Dl(e){return uo(e,"size.radius")}const ESe={backgroundColor:uo("backgroundColor","color.background"),boxShadow:["boxShadow",NSe],height:fd("height"),maxHeight:fd("maxHeight"),minHeight:fd("minHeight"),maxWidth:fd("maxWidth"),minWidth:fd("minWidth"),width:fd("width"),margin:Wn("margin"),marginStart:Wn("marginInlineStart"),marginEnd:Wn("marginInlineEnd"),marginTop:Wn("marginBlockStart"),marginBottom:Wn("marginBlockEnd"),marginX:Wn("marginInline"),marginY:Wn("marginBlock"),padding:Wn("padding"),paddingStart:Wn("paddingInlineStart"),paddingEnd:Wn("paddingInlineEnd"),paddingTop:Wn("paddingBlockStart"),paddingBottom:Wn("paddingBlockEnd"),paddingX:Wn("paddingInline"),paddingY:Wn("paddingBlock"),border:V0("border"),borderStart:V0("borderInlineStart"),borderEnd:V0("borderInlineEnd"),borderTop:V0("borderTop"),borderBottom:V0("borderBottom"),borderColor:uo("borderColor","color.border"),borderStartColor:uo("borderInlineStartColor","color.border"),borderEndColor:uo("borderInlineEndColor","color.border"),borderTopColor:uo("borderTopColor","color.border"),borderBottomColor:uo("borderBottomColor","color.border"),borderStyle:vn("borderStyle"),borderStartStyle:vn("borderInlineStartStyle"),borderEndStyle:vn("borderInlineEndStyle"),borderTopStyle:vn("borderTopStyle"),borderBottomStyle:vn("borderBottomStyle"),borderWidth:uo("borderWidth","size.border"),borderStartWidth:uo("borderInlineStartWidth","size.border"),borderEndWidth:uo("borderInlineEndWidth","size.border"),borderTopWidth:uo("borderTopWidth","size.border"),borderBottomWidth:uo("borderBottomWidth","size.border"),borderRadius:Dl("borderRadius"),borderTopStartRadius:Dl("borderStartStartRadius"),borderTopEndRadius:Dl("borderStartEndRadius"),borderBottomStartRadius:Dl("borderEndStartRadius"),borderBottomEndRadius:Dl("borderEndEndRadius"),borderTopRadius:Dl(["borderStartStartRadius","borderStartEndRadius"]),borderBottomRadius:Dl(["borderEndStartRadius","borderEndEndRadius"]),borderStartRadius:Dl(["borderStartStartRadius","borderEndStartRadius"]),borderEndRadius:Dl(["borderEndEndRadius","borderStartEndRadius"]),inset:Wn("inset"),insetBottom:Wn("insetBlockEnd"),insetEnd:Wn("insetInlineEnd"),insetStart:Wn("insetInlineStart"),insetTop:Wn("insetBlockStart"),insetX:Wn("insetInline"),insetY:Wn("insetBlock"),position:vn("position"),zIndex:vn("zIndex"),order:vn("order"),alignSelf:vn("alignSelf"),flex:vn("flex",eS),flexBasis:fd("flexBasis"),flexGrow:vn("flexGrow",eS),flexShrink:vn("flexShrink",eS),justifySelf:vn("justifySelf"),gridArea:vn("gridArea"),gridColumn:vn("gridColumn"),gridColumnEnd:vn("gridColumnEnd"),gridColumnStart:vn("gridColumnStart"),gridRow:vn("gridRow"),gridRowEnd:vn("gridRowEnd"),gridRowStart:vn("gridRowStart"),cursor:vn("cursor"),opacity:vn("opacity"),pointerEvents:vn("pointerEvents"),overflow:vn("overflow"),userSelect:vn("userSelect")};function eS(e){return typeof e=="boolean"?e?"1":void 0:""+e}function NSe(e){const t={small:"muted",medium:"regular",large:"emphasis"},[r,n]=e.split(" "),a=w2("color.shadow",n!=null?n:t[r]),o=w2("size.shadow",r);return"".concat(o," ").concat(a)}function _Se(e,t){let r={};for(let n in e){let a=t[n];if(!a||e[n]==null)continue;let[o,i]=a,c=xSe(i,e[n]);if(Array.isArray(o))for(let d of o)r[d]=c;else r[o]=c}return r}function $N(e,t={}){let r=R(R({},ESe),t),h=e,{isHidden:n,UNSAFE_className:a,UNSAFE_style:o}=h,i=Ce(h,["isHidden","UNSAFE_className","UNSAFE_style"]),c=_Se(e,r),d=vSe(c);i.className,i.style;let f=[];if(n)if(n===!0)f.push({display:"none"});else{const p={};"above"in n&&(p[pA.above[n.above]]={display:"none"}),"below"in n&&(p[pA.below[n.below]]={display:"none"}),f.push(p)}return{className:ck(im(d),a,im(f)),style:o}}function gA(e){return PSe(e)?e.clientX:DSe(e)?e.touches[0].clientX:0}function TSe(e,t,r){return Math.round((e-t)/(r-t)*100)}function zN(e){return"primary-pane-".concat(e)}function nW(e){return"secondary-pane-".concat(e)}function sW(e){return"resize-handle-".concat(e)}function vA(e){return document.getElementById(zN(e))}function MSe(e){return document.getElementById(nW(e))}function xA(e){return document.getElementById(sW(e))}function jh(e){return"".concat(e,"px")}function PSe(e){return e.type.startsWith("mouse")}function DSe(e){return e.type.startsWith("touch")}const aW="--primary-pane-max-width",ASe="var(".concat(aW,")"),oW="--primary-pane-min-width",RSe="var(".concat(oW,")"),Ay="--primary-pane-width",LSe="var(".concat(Ay,")"),OSe=32,ISe=10,$Se={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"},zSe=m.forwardRef(function(t,r){const{activity:n,id:a,isCollapsed:o}=RN();return s.jsx("div",re(R({},t),{ref:r,"aria-controls":zN(a),"aria-label":"Resize","aria-orientation":"vertical",id:sW(a),role:"separator",tabIndex:0,"data-split-view-resize-handle":!0,"data-split-view-activity":n,"data-split-view-collapsed":o||void 0,className:"animate-in ".concat(im({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:b2("opacity"),userSelect:"none",width:18,zIndex:1,"&[data-split-view-collapsed]:not([data-split-view-activity])":$Se,"&::before":{content:'""',position:"absolute",inset:"calc(".concat(Ua.size.space.small," * -1)")},"&::after":{backgroundColor:Ua.color.alias.backgroundHovered,content:'""',insetBlock:0,insetInline:"calc(".concat(Ua.size.border.medium," * -1)"),opacity:0,position:"absolute",transition:b2("opacity")},"&:hover":{opacity:1,backgroundColor:Ua.color.border.neutral,transitionDelay:Ua.animation.duration.regular,"&::after":{opacity:1,transitionDelay:Ua.animation.duration.regular}},"&[data-split-view-activity]::after":{backgroundColor:Ua.color.background.accentEmphasis,insetInline:"calc(".concat(Ua.size.border.regular," * -1)"),opacity:1}})),children:s.jsx(x$,{className:"".concat(k5e.HorizontalIcon," text-slate-300 dark:text-slate-500"),type:"resize-horizontal",width:"16px"})}))});function FN(e){const{autoSaveId:t,children:r,defaultSize:n,isCollapsed:a,minSize:o,maxSize:i,onCollapseChange:c,onResize:d,swapPanes:f,reversed:h,storage:p=ag}=e,[g,S]=f?[r[1],r[0]]:r,b=GCe(e.id),v=$N(e),[w,C]=m.useState(h),[j,E]=m.useState(!1),[N,M]=m.useState(!1),[P,D]=m.useState(()=>{let H=n;if(t){const z=p.getItem(t);z&&(H=Number.parseInt(z))}return H}),A=m.useRef(null),O=m.useRef(0),$=m.useRef(0);return m.useEffect(()=>{const H=xA(b),z=vA(b),I=MSe(b);C(h?(H==null?void 0:H.previousElementSibling)===z:(H==null?void 0:H.previousElementSibling)===I)},[h,b]),JCe(()=>d==null?void 0:d(P),[P]),m.useEffect(()=>{var H;(H=A.current)==null||H.style.setProperty(Ay,jh(P)),$.current=P,t&&p.setItem(t,jh(P))},[t,d,P,p]),m.useEffect(()=>{const H=A.current,z=xA(b),I=vA(b);if(!H||!z||!I)return;let W=!1;const _=typeof a=="boolean",K=q=>{q.preventDefault();let Y=gA(q)-O.current;w&&(Y=Y*-1);let se=P+Y;Math.abs(se-n)<OSe/2&&(se=n),_&&(W=se<=o/2),W?(I.style.setProperty("width","0px"),$.current=P):($.current=se,I.style.removeProperty("width")),H.style.setProperty(Ay,jh($.current));let ee="horizontal";$.current<o&&(ee="horizontal-min"),$.current>i&&(ee="horizontal-max"),n5e(ee,!!w)},V=()=>{z.blur(),E(!1),r5e(),W?(c==null||c(!a),I.style.removeProperty("width")):D(LCe($.current,o,i)),W=!1,document.body.removeEventListener("mousemove",K),document.body.removeEventListener("touchmove",K),window.removeEventListener("mouseup",V),window.removeEventListener("touchend",V)},U=q=>{"button"in q&&q.button!==0||"touches"in q&&q.touches.length!==1||(E(!0),O.current=gA(q),document.body.addEventListener("mousemove",K),document.body.addEventListener("touchmove",K),window.addEventListener("mouseup",V),window.addEventListener("touchend",V))},X=q=>{if(q.defaultPrevented)return;const Y=Math.round((i-o)/ISe),se=()=>D(ae=>Math.min(ae+Y,i)),ee=()=>D(ae=>Math.max(ae-Y,o));switch(q.key){case"Enter":_&&(q.preventDefault(),c==null||c(!a));break;case"Home":q.preventDefault(),D(o);break;case"End":q.preventDefault(),D(i);break;case"ArrowLeft":q.preventDefault(),w?se():ee();break;case"ArrowRight":q.preventDefault(),w?ee():se()}},G={passive:!0},F=q=>{q.clientX===O.current&&D(n)};return z.addEventListener("contextmenu",V),z.addEventListener("dblclick",F),z.addEventListener("keydown",X),z.addEventListener("mousedown",U,G),z.addEventListener("touchstart",U,G),()=>{z.removeEventListener("contextmenu",V),z.removeEventListener("dblclick",F),z.removeEventListener("keydown",X),z.removeEventListener("mousedown",U),z.removeEventListener("touchstart",U)}},[i,o,n,b,w,P,c,a,f]),s.jsx(e5e,{value:{id:b,isCollapsed:a,activity:j?"pointer":N?"keyboard":void 0},children:s.jsxs("div",re(R(R({},v),AN(e)),{ref:A,className:ck(im({display:"flex",height:"100%",width:"100%",overflow:"hidden",[oW]:jh(o),[aW]:jh(i),[Ay]:jh(n)}),v.className),children:[g,s.jsx(zSe,{"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":TSe(P,o,i),onBlur:()=>M(!1),onFocus:()=>M(!0)}),S]}))})}const HN=m.forwardRef(function(t,r){const{activity:n,id:a,isCollapsed:o}=RN(),i=$N(t);return s.jsx("div",re(R(R({},i),AN(t)),{ref:r,id:zN(a),"data-split-pane":"primary","data-split-view-activity":n,"data-split-view-collapsed":o||void 0,className:ck(im({containerType:"inline-size",overflow:"hidden",width:"clamp(".concat(RSe,",").concat(LSe,",").concat(ASe,")"),maxWidth:"calc(100% - 100px)","&[data-split-view-collapsed]":{visibility:"hidden",width:0},"&:not([data-split-view-activity])":{transition:b2("width")},"&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),i.className),children:t.children}))}),BN=m.forwardRef(function(t,r){const{id:n,activity:a}=RN(),o=$N(t);return s.jsx("div",re(R(R({},o),AN(t)),{ref:r,id:nW(n),"data-split-pane":"secondary","data-split-view-activity":a,className:ck(im({containerType:"inline-size",flex:"1 1 0",minWidth:"100px",overflow:"hidden","&[data-split-view-activity=pointer]":{pointerEvents:"none"}}),o.className),children:t.children}))});function FSe({id:e}){const{setNodeRef:t,isOver:r}=Q2({id:e});return s.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(r?"border-red-600":"border-slate-300 dark:border-slate-600"),children:[s.jsx(J,{children:" "}),s.jsx(dn,{size:15,className:"text-red-400 dark:text-red-700"}),s.jsx(J,{children:" "})]})}function iW({historyId:e,value:t,arrLinks:r,isImage:n,isText:a,isImageData:o,isLargeView:i,isMasked:c,isPinned:d,isFavorite:f,detectedLanguage:h,invalidateClipboardHistoryQuery:p=()=>{},generateLinkMetaData:g=()=>Promise.resolve(),removeLinkMetaData:S=()=>Promise.resolve(),isSelected:b,hasLinkCard:v,setSavingItem:w,setLargeViewItemId:C,setSelectHistoryItem:j,onCopyPaste:E}){const{t:N}=Tt(),M=vr(),{copyPasteDelay:P,setCopyPasteDelay:D,historyDetectLanguagesEnabledList:A}=xt(Rn),{updateClipboardHistoryById:O}=Cwe(),{deleteClipboardHistoryByIds:$}=jN(),{pinnedClipboardHistoryByIds:H}=SU(),z=ha(),I=W=>{pl(N("Errors:::Something went wrong! {{err}} Please try again.",{ns:"common",err:W}),"Error")};return e==null?null:s.jsx(u1,{children:s.jsxs(_m,{className:"w-[190px]",children:[s.jsx($t,{onClick:()=>{j(e)},children:b?s.jsxs(s.Fragment,{children:[N("Deselect",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(rle,{size:15})})]}):s.jsxs(s.Fragment,{children:[N("Select",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(j$,{size:15})})]})}),s.jsxs($t,{onClick:()=>{E(e)},children:[N("Copy & Paste",{ns:"contextMenus"}),s.jsxs(ve,{className:"ml-auto",children:[s.jsx(ve,{className:"text-gray-800 relative",children:s.jsx(Q,{className:"py-0 px-2 font-normal pr-2",children:s.jsx(J,{className:"text-xs text-gray-400/80",children:P>0?"delay ".concat(P,"s"):"no delay"})})}),s.jsx(ms,{size:15})]})]}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[N("Paste Delay",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[s.jsx(Ei,{checked:P===1,onSelect:()=>{D(1),E(e,1)},children:s.jsxs(J,{children:["1 ",N("second",{ns:"common"})]})}),s.jsx(Ei,{checked:P===2,onSelect:()=>{D(2),E(e,2)},children:s.jsxs(J,{children:["2 ",N("seconds",{ns:"common"})]})}),s.jsx(Ei,{checked:P===3,onSelect:()=>{D(3),E(e,3)},children:s.jsxs(J,{children:["3 ",N("seconds",{ns:"common"})]})}),s.jsx(Ei,{checked:P===4,onSelect:()=>{D(4),E(e,4)},children:s.jsxs(J,{children:["4 ",N("seconds",{ns:"common"})]})}),s.jsx(Ei,{checked:P===5,onSelect:()=>{D(5),E(e,5)},children:s.jsxs(J,{children:["5 ",N("seconds",{ns:"common"})]})})]})]}),s.jsx(tn,{}),s.jsxs($t,{onClick:()=>{C(i?null:e)},children:[i?N("Close Large View",{ns:"contextMenus"}):N("Show Large View",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:i?s.jsx(Iie,{size:15}):s.jsx(zE,{size:15})})]}),s.jsx(tn,{}),(r==null?void 0:r.length)>0&&s.jsxs(s.Fragment,{children:[r[0]===t&&!n&&!v&&s.jsxs($t,{onClick:()=>pe(this,null,function*(){yield g(e,wn(r[0])),p()}),children:[N("Add Link Card",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(uv,{size:15})})]}),v&&s.jsxs($t,{onClick:()=>pe(this,null,function*(){yield S(e),p()}),children:[N("Remove Link Card",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(uv,{size:15})})]})]}),s.jsxs($t,{onClick:()=>pe(this,null,function*(){yield H({historyIds:[e],isPinned:!d}),yield M.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})}),children:[d?N("UnPin",{ns:"contextMenus"}):N("Pin",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:d?s.jsx(hf,{size:15}):s.jsx(dc,{size:15})})]}),s.jsxs($t,{onClick:()=>pe(this,null,function*(){yield O({historyId:e,updatedData:{isFavorite:!f,historyId:e}}),yield M.invalidateQueries({queryKey:["find_clipboard_histories_by_value_or_filters"]})}),children:[f?N("Remove Star",{ns:"contextMenus"}):N("Star",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:f?s.jsx(aw,{size:15}):s.jsx(Mf,{size:15})})]}),s.jsx(tn,{}),s.jsxs(ds,{children:[s.jsxs(Xn,{children:[N("Add to",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{className:"w-28",children:[s.jsxs($t,{onClick:()=>{ea.value=Ni.CLIP,Wp.value=[e]},children:[N("AddTo:::Clip on Board",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(WE,{size:15})})]}),s.jsxs($t,{onClick:()=>{z("/menu",{replace:!0}),setTimeout(()=>{au.value=e.toString(),Ka.value=!0},300)},children:[N("AddTo:::Paste Menu",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(qE,{size:15})})]})]})]}),s.jsx(tn,{}),(r==null?void 0:r.length)>0&&!h||a&&s.jsxs(s.Fragment,{children:[s.jsxs($t,{onClick:()=>{O({historyId:e,updatedData:{isMasked:!c,historyId:e}})},children:[c?N("Unmask Secret",{ns:"contextMenus"}):N("Mask Secret",{ns:"contextMenus"}),s.jsx("div",{className:"ml-auto",children:s.jsx(S$,{size:15})})]}),s.jsx(tn,{})]}),h&&s.jsxs(s.Fragment,{children:[s.jsxs(ds,{children:[s.jsxs(Xn,{children:[N("Detected Language",{ns:"contextMenus"})," ..."]}),s.jsxs(Qn,{children:[A.map(W=>s.jsx(Ei,{checked:h===W,onSelect:()=>{O({historyId:e,updatedData:{detectedLanguage:W,isCode:!0,historyId:e}})},children:s.jsx(J,{children:W})},W)),s.jsx(tn,{}),s.jsxs($t,{onSelect:()=>{O({historyId:e,updatedData:{isCode:!1,isText:!0,historyId:e}})},children:[s.jsx(Wse,{size:16,className:"mr-2"}),s.jsx(J,{children:N("not a code",{ns:"contextMenus"})})]})]})]}),s.jsx(tn,{})]}),(n||o)&&s.jsxs($t,{onClick:()=>{kr("save_to_file_history_item",{historyId:e,asImage:!0}).then(W=>{W==="saved"?(w(e),setTimeout(()=>{w(null)},1600)):W!=="cancel"&&(I(N("Errors:::Cant save image file",{ns:"common"})),console.error(N("Errors:::Failed to save image file",{ns:"common"}),W))}).catch(()=>{I(N("Errors:::Cant save image file",{ns:"common"}))})},children:[N("Save as Image File",{ns:"contextMenus"})," ...",s.jsx("div",{className:"ml-auto",children:s.jsx(iv,{size:15})})]}),!(n&&!(r!=null&&r.length))&&s.jsxs($t,{onClick:()=>{kr("save_to_file_history_item",{historyId:e}).then(W=>{W==="saved"?(w(e),setTimeout(()=>{w(null)},1600)):W!=="cancel"&&I(N("Errors:::Cant save to file",{ns:"common"}))}).catch(()=>{I(N("Errors:::Cant save to file",{ns:"common"}))})},children:[N("Save as Text File",{ns:"contextMenus"}),"...",s.jsx("div",{className:"ml-auto",children:s.jsx(iv,{size:15})})]}),s.jsx(tn,{}),s.jsxs($t,{className:Zc.value===e?"!bg-red-100 dark:!bg-red-950":"",onClick:W=>pe(this,null,function*(){W.preventDefault(),Zc.value===e?(yield $({historyIds:[e]}),Zc.value=null):(W.preventDefault(),Zc.value=e,setTimeout(()=>{Zc.value=null},3e3))}),children:[s.jsx(ve,{children:s.jsx(J,{className:"!text-red-500 dark:!text-red-600",children:Zc.value!==e?N("Delete",{ns:"common"}):N("Click to Confirm",{ns:"common"})})}),s.jsx("div",{className:"ml-auto",children:s.jsx(dn,{className:"h-4 w-4 text-red-500 dark:!text-red-600"})})]})]})})}function HSe({index:e,style:t,clipboard:r,isDark:n,searchTerm:a,isPinnedTop:o=!1,isPinnedTopFirst:i=!1,isDisabledPinnedMoveUp:c=!1,isDisabledPinnedMoveDown:d=!1,isExpanded:f=!1,isSelected:h=!1,isWrapText:p=!1,isDeleting:g=!1,isOverPinned:S=!1,isLinkCardPreviewEnabled:b=!0,selectedItemsCount:v=0,timeAgo:w=null,showTimeAgo:C=!1,showSelectHistoryItems:j,isCopied:E,isPasted:N,isSaved:M,isLargeView:P=!1,largeViewItemId:D,setSavingItem:A=()=>{},setLargeViewItemId:O=()=>{},pastingCountDown:$,onCopyPaste:H=()=>{},onCopy:z=()=>{},invalidateClipboardHistoryQuery:I=()=>{},generateLinkMetaData:W,removeLinkMetaData:_=()=>Promise.resolve(),isBrokenImage:K=!1,setExpanded:V=()=>{},onMovePinnedUpDown:U=({})=>{},setWrapText:X=()=>{},setBrokenImageItem:G=()=>{},setSelectHistoryItem:F=()=>{},isDragPreview:q=!1,setRowHeight:Y=()=>{}}){var mt,Ke,Lt,qt,Xt,Ge,zt,ir,Ft,et,cr,ar,ur,Sr,Mt,Rr;const{t:se}=Tt(),ee=m.useRef(null),ae=m.useRef(null),oe=m.useRef(null),le=E||N||M,ue=Ve(!1),ce=Ve(!1),he=o?vd.value==="".concat(r==null?void 0:r.historyId,"::pinned")&&!q&&!le||ce.value:vd.value===(r==null?void 0:r.historyId)&&!le&&!q||ce.value,{setNodeRef:we,listeners:Se,isDragging:Ae}=uI({disabled:q&&!(he||h),data:{isPinned:o},id:o?"".concat(r==null?void 0:r.historyId,"::pinned"):(mt=r==null?void 0:r.historyId)!=null?mt:"id"});if(m.useLayoutEffect(()=>{var Me;(Me=ee.current)!=null&&Me.clientHeight&&ue.value&&e!==void 0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{ee!=null&&ee.current&&Y(e,(ee==null?void 0:ee.current.clientHeight)+4)})})},[ue.value,(Ke=ee.current)==null?void 0:Ke.clientHeight,Y,w,C,e]),m.useEffect(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e!==void 0&&(ee!=null&&ee.current)&&Y(e,(ee==null?void 0:ee.current.clientHeight)+4)})})},[f,p]),!r)return null;const je=m.useMemo(()=>{var Me,Ye,Te;return!r.isFavorite&&!r.isPinned?"":(Me=ee==null?void 0:ee.current)!=null&&Me.clientHeight&&(((Ye=ee==null?void 0:ee.current)==null?void 0:Ye.clientHeight)<=42&&!C||((Te=ee==null?void 0:ee.current)==null?void 0:Te.clientHeight)<=72&&C)?o&&!r.isFavorite?"":"mr-4":""},[(Lt=ee==null?void 0:ee.current)==null?void 0:Lt.clientHeight,C,o,r.isFavorite,r.isPinned]),Le=(Xt=(qt=r==null?void 0:r.value)==null?void 0:qt.trim())!=null?Xt:"",Ee=(r==null?void 0:r.isLink)&&((Ge=r==null?void 0:r.linkMetadata)==null?void 0:Ge.linkTitle)&&((zt=r==null?void 0:r.linkMetadata)==null?void 0:zt.linkDomain),He=e===0&&r.updatedAt>Date.now()-f7,Qe=i?"top-[5px]":"top-[-10px]",Ze="".concat(!o&&S&&!He?"bg-orange-50 dark:!bg-transparent":g?"bg-red-50 dark:bg-red-950/80":ce.value?"bg-slate-100 dark:bg-slate-900 ".concat(He?"bg-teal-50/80 dark:bg-sky-900/80":""):le?"dark:bg-green-950/80":M?"dark:bg-sky-950/80":h?"bg-yellow-50 dark:bg-amber-950/80":He?"bg-teal-50/90 dark:bg-sky-950":"bg-white dark:bg-slate-950/80");return s.jsx(Q,re(R({style:re(R({},t),{opacity:(g||S)&&!q?1:Ae||q?.7:void 0}),ref:q&&!(he||h)?null:we},h||he?Se:{}),{children:s.jsxs(Q,{ref:ee,children:[C&&s.jsx(Q,{className:"flex justify-center text-gray-400 text-xs ".concat(e===0?"pt-0":"pt-2"),children:w}),s.jsxs(Em,{onOpenChange:Me=>{ce.value=Me,Zc.value=null},children:[s.jsx(Nm,{ref:he||h?oe:null,children:s.jsxs(Q,{className:"relative select-none",children:[s.jsx(Q,{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&&r.updatedAt>Date.now()-f7&&!le&&!g&&!h?"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":g&&!q?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":ce.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":M&&!q?"bg-sky-50 border-sky-600 dark:bg-sky-950/80 dark:border-sky-900/80 dark:hover:border-sky-800":le&&!q?"bg-green-50 border-green-600 dark:bg-green-950/80 dark:border-green-800":h?"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(P?"border-slate-500 bg-white dark:bg-slate-950 hover:dark:border-slate-500":"".concat(!o&&S?"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(q?"dark:border-slate-700":"")),onClickCapture:Me=>{var Ye,Te;Me.shiftKey?(Me.preventDefault(),Me.stopPropagation(),(Ye=window.getSelection())==null||Ye.removeAllRanges(),O(P?null:r.historyId)):D&&!P?((Te=window.getSelection())==null||Te.removeAllRanges(),O(r.historyId)):vd.value=o?"".concat(r.historyId,"::pinned"):r.historyId},onMouseEnter:()=>{vd.value=o?"".concat(r.historyId,"::pinned"):r.historyId},onMouseLeave:()=>{vd.value=null},onDoubleClickCapture:Me=>{Wc().text.trim()||(Me.altKey||Me.metaKey?H(r.historyId):z(r.historyId))},children:s.jsxs(Q,{className:"".concat(j?"flex flex-row -ml-1":""),children:[j&&!q&&s.jsx(Q,{className:"flex flex-row items-center pr-2 z-100",children:s.jsx("input",{type:"checkbox",className:"form-checkbox h-[16px] w-[16px] bg-slate-400",onChange:()=>{F(r.historyId)},checked:h})}),r.isImageData?s.jsxs(Q,{className:"text-ellipsis self-start text-xs w-full _select-text overflow-hidden cursor-pointer",children:[s.jsx(Q,{className:"flex px-0 py-1 items-center justify-center w-full",children:s.jsx(zi,{src:Le,hasError:K,onErrorCallback:()=>{G(r.historyId)},draggable:!1,decoding:"async",onLoad:()=>{ue.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),s.jsx("code",{className:"pb-0.5",children:a?_5(r.value,a):s.jsx("span",{children:r.valuePreview})})]}):r.isLink&&r.isImage?s.jsxs(Q,{className:"text-ellipsis self-start text-xs w-full _select-text cursor-pointer overflow-hidden",children:[s.jsx(Q,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center w-full",children:s.jsx(zi,{src:wn(Le),hasError:K,height:r.imageHeight,onErrorCallback:()=>{G(r.historyId)},draggable:!1,decoding:"async",onLoad:()=>{ue.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}),s.jsx("code",{className:"pb-0.5",children:a?_5(Le,a):gf(Le,r.arrLinks)})]}):r.isImage&&r.imageDataUrl?s.jsx(Q,{className:"px-0 py-1.5 flex items-center justify-center w-full",children:s.jsx("img",{src:r.imageDataUrl,draggable:!1,decoding:"async",height:r.imageHeight,onLoad:()=>{ue.value=!0},className:"max-w-full max-h-56 min-h-10 rounded-md shadow-sm border border-slate-100 dark:border-slate-700"})}):r.detectedLanguage&&r.valuePreview?s.jsxs(Q,{ref:Me=>{Me&&(ue.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[s.jsx(g1,{theme:n?$i.vsDark:$i.github,code:f?Le:r.valuePreview.trim(),language:r.detectedLanguage,children:({className:Me,style:Ye,tokens:Te,getLineProps:lt,getTokenProps:xe})=>s.jsx("code",{className:"".concat(Me),style:Ye,children:Te.map((be,De)=>{const Fe=De===Te.length-1&&r.valueMorePreviewLines&&!f;return s.jsxs("div",re(R({},lt({line:be})),{className:"".concat(p?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:[be.map((Je,st)=>s.jsx("span",re(R({},xe({token:Je})),{className:"_select-text cursor-pointer",children:a?dl(Je.content,a):Je.content}),st)),Fe&&s.jsx("span",{className:"select-none",children:"..."})]}),De)})})}),r.valueMorePreviewLines&&s.jsxs(Q,{className:"select-none",children:[" "," "," "]})]}):s.jsxs(Q,{ref:Me=>{Me&&(ue.value=!0)},className:"text-ellipsis self-start text-sm w-full overflow-hidden",children:[Ee&&s.jsx(Q,{className:"self-start mt-1.5 mb-1 text-xs w-full overflow-hidden",children:s.jsx(Dm,{title:(ir=r.linkMetadata)==null?void 0:ir.linkTitle,description:(Ft=r.linkMetadata)==null?void 0:Ft.linkDescription,favicon:(et=r.linkMetadata)==null?void 0:et.linkFavicon,link:(ar=(cr=r==null?void 0:r.linkMetadata)==null?void 0:cr.linkUrl)!=null?ar:null,image:(ur=r.linkMetadata)==null?void 0:ur.linkImage,historyId:r.historyId,domain:(Sr=r.linkMetadata)==null?void 0:Sr.linkDomain})}),f?s.jsxs("code",{className:"justify-start cursor-pointer",children:[a?dl(Le,a):gf(Le,r.arrLinks),r.valueMorePreviewChars&&s.jsxs(Q,{className:"select-none",children:[" "," "," "]})]}):s.jsxs("code",{className:"justify-start cursor-pointer",children:[a?_5(Le!=null?Le:"",a):Bge({previewLinkCard:!Ee&&b,value:(Rr=(Mt=r.valuePreview)==null?void 0:Mt.trim())!=null?Rr:"",links:r.arrLinks,itemId:null,historyId:r.historyId}),r.valueMorePreviewChars&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"select-none",children:"..."}),s.jsxs(Q,{className:"select-none",children:[" "," "," "]})]})]})]}),(r.valueMorePreviewLines||r.valueMorePreviewChars)&&s.jsxs(Q,{className:"absolute left-1 bottom-1 flex flex-row items-center rounded mb-[2px] pl-0.5 ".concat(Ze),children:[s.jsx(Q,{className:"text-xs text-muted-foreground px-1 cursor-pointer",onClick:()=>{V(r.historyId,!f)},children:s.jsx($e,{text:f?"":se("Show all",{ns:"common"}),isCompact:!0,isDisabled:f||q,delayDuration:2e3,side:"bottom",sideOffset:10,children:f?s.jsxs(s.Fragment,{children:["- ",se("show less",{ns:"common"})]}):r!=null&&r.valueMorePreviewChars?s.jsxs(s.Fragment,{children:["+",r.valueMorePreviewChars," ",se("chars",{ns:"common"})]}):s.jsxs(s.Fragment,{children:["+",r.valueMorePreviewLines," ",se("lines",{ns:"common"})]})})}),f&&s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 cursor-pointer",onClick:()=>X(r.historyId,!p),children:s.jsx($e,{text:p?se("No Wrap",{ns:"common"}):se("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:p?s.jsx(rm,{width:20,height:20}):s.jsx(nm,{width:20,height:20})})})]}),r.isImage&&!r.isLink&&s.jsx(Q,{className:"absolute left-1 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5 z-100",children:s.jsxs(Q,{className:"text-xs text-muted-foreground px-1.5 rounded ".concat(Ze),title:se("Image size in pixels",{ns:"common"}),children:[r.imageWidth,"x",r.imageHeight]})}),s.jsxs(s.Fragment,{children:[r.isFavorite&&s.jsx(Mf,{className:"absolute text-transparent z-100 ".concat(r.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}),r.isPinned&&!r.isFavorite&&!o&&s.jsx(uc,{className:"absolute text-orange-400 dark:text-orange-500/60 pointer-events-none top-[-5px] right-[-5px] z-auto",size:28})]}),s.jsx(Q,{className:"absolute right-1 bottom-1 flex flex-row gap-1 items-center pb-0 pl-0.5 mb-[2px] rounded",children:he||h?s.jsxs("div",{className:"flex ".concat(Ze),children:[o?s.jsxs(ve,{className:"text-xs text-muted-foreground rounded px-1",children:[s.jsx($e,{text:se("Move Up",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q||c,side:"bottom",sideOffset:10,children:s.jsx(Q,{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:s.jsx(t1,{size:14,onClick:()=>{c||U({historyId:r.historyId,moveUp:!0})}})})}),s.jsx($e,{text:se("Move Down",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q||d,side:"bottom",sideOffset:10,children:s.jsx(Q,{className:"".concat(d?"cursor-default text-gray-300 dark:text-gray-800":"cursor-pointer text-slate-500"," px-1 flex items-center justify-center"),children:s.jsx(e1,{size:14,onClick:()=>{d||U({historyId:r.historyId,moveDown:!0})}})})})]}):r.timeAgoShort&&s.jsx(Q,{className:"text-xs text-muted-foreground rounded px-1",children:s.jsx($e,{text:xf(r.updatedAt,"PPpp"),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:r.timeAgoShort})}),s.jsx($e,{text:pr.value?se("Copy and Paste",{ns:"common"}):se("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:s.jsx(Q,{className:"text-xs cursor-pointer text-slate-500 hover:text-green-700 px-1 border-0 flex items-center justify-center",children:pr.value?s.jsx(ms,{size:14,onClick:()=>{H(r.historyId)}}):s.jsx(aa,{size:14,onClick:()=>{z(r.historyId)}})})}),s.jsx($e,{text:se("Drag",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:s.jsx(Q,re(R({className:"text-xs cursor-move text-slate-500 px-1 border-0 flex items-center justify-center"},Se),{children:s.jsx(tw,{size:16})}))}),s.jsx($e,{text:se("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,isDisabled:q,side:"bottom",sideOffset:10,children:s.jsx(Q,{ref:ae,className:"text-xs px-1 cursor-pointer text-slate-500 pl-0 pr-0 flex items-center justify-center",children:s.jsx(Hi,{size:16,onClick:()=>{var Me,Ye,Te;(Te=oe==null?void 0:oe.current)==null||Te.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(Me=ae==null?void 0:ae.current)==null?void 0:Me.getBoundingClientRect().x,clientY:(Ye=ae==null?void 0:ae.current)==null?void 0:Ye.getBoundingClientRect().y}))}})})})]},"hover-panel"):s.jsxs("div",{className:"".concat(je),children:[r.hasMaskedWords&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-0.5",children:s.jsx(uc,{size:16})}),r.isMasked&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:se("Type:::Secret",{ns:"common"})}),r.detectedLanguage&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:r.detectedLanguage}),r.isLink&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:r.isVideo?se("Type:::Video",{ns:"common"}):ec(Le)?se("Type:::Email",{ns:"common"}):se("Type:::Link",{ns:"common"})}),r.hasEmoji&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:se("Type:::Emoji",{ns:"common"})}),r.isImageData&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:se("Type:::Image Base64",{ns:"common"})})]},"labels-panel")}),v>1&&s.jsx(Q,{className:"absolute left-[-12px] top-[-12px] flex",children:s.jsx(ft,{variant:g?"destructive":"default",children:v})})]})}),M?s.jsx(Q,{className:"absolute z-50 w-full ".concat(Qe," flex justify-center fade-in-animation"),children:s.jsxs(ft,{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:[s.jsx(iv,{size:14,className:"mr-1"}),se("Saved",{ns:"common"})]})}):le&&!$?s.jsx(Q,{className:"absolute z-50 w-full ".concat(Qe," flex justify-center fade-in-animation"),children:s.jsxs(ft,{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:[s.jsx(Bt,{size:14,className:"mr-1"}),E?se("Copied",{ns:"common"}):N?se("Pasted",{ns:"common"}):""]})}):P?s.jsx(Q,{className:"absolute z-50 w-full ".concat(Qe," flex justify-center"),children:s.jsxs(ft,{variant:"default",className:"px-3 dark:bg-slate-600 hover:bg-slate-500/100 pr-2.5",children:[s.jsx(J,{className:"mr-1 bg-slate-500 dark:bg-slate-600 pointer-events-none dark:!text-slate-300",color:"muted",children:se("In Large View",{ns:"common"})}),s.jsx(Ur,{size:14,className:"cursor-pointer dark:text-slate-300",onClick:()=>{O(null)}})]})}):$&&$>0&&s.jsx(Q,{className:"absolute z-50 w-full ".concat(Qe," flex justify-center"),children:s.jsx(ft,{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:se("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:$})})})]})}),s.jsx(iW,{historyId:r.historyId,isMasked:r.isMasked,setSavingItem:A,value:r.value,isImage:r.isImage,isText:r.isText,isPinned:r.isPinned,isFavorite:r.isFavorite,isImageData:r.isImageData,detectedLanguage:r.detectedLanguage,setLargeViewItemId:O,isLargeView:P,arrLinks:r.arrLinks,hasLinkCard:Ee,isSelected:h,invalidateClipboardHistoryQuery:I,generateLinkMetaData:W,removeLinkMetaData:_,setSelectHistoryItem:F,onCopyPaste:H})]})]})}))}const tS=m.memo(HSe);function BSe({clipboard:e,isDark:t,searchTerm:r,isSelected:n=!1,isDeleting:a=!1,timeAgo:o=null,isCopied:i,isPasted:c,isSaved:d,setSavingItem:f=()=>{},setLargeViewItemId:h=()=>{},pastingCountDown:p=null,onCopyPaste:g=()=>{},onCopy:S=()=>{},invalidateClipboardHistoryQuery:b=()=>{},generateLinkMetaData:v=()=>Promise.resolve(),removeLinkMetaData:w=()=>Promise.resolve(),isBrokenImage:C=!1,setBrokenImageItem:j=()=>{},setSelectHistoryItem:E=()=>{}}){var I,W,_,K,V,U,X,G,F;const{t:N}=Tt(),M=Ve(!1),[P,D]=m.useState(!1),A=m.useRef(null),O=m.useRef(null),$=(W=(I=e==null?void 0:e.value)==null?void 0:I.trim())!=null?W:"",H=(e==null?void 0:e.isLink)&&((_=e==null?void 0:e.linkMetadata)==null?void 0:_.linkTitle)&&((K=e==null?void 0:e.linkMetadata)==null?void 0:K.linkDomain),z=i||c||d;return e?s.jsxs(Q,{className:"max-w-full max-h-full select-none",children:[s.jsx(Q,{className:"flex justify-center text-gray-400 text-xs my-2",children:o}),s.jsxs(Em,{onOpenChange:q=>{M.value=q},children:[s.jsx(Nm,{ref:O,children:s.jsxs(Q,{className:"select-none relative",children:[s.jsx(Q,{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(a?"border-red-400 bg-red-50 dark:bg-red-950/80 dark:border-red-900/80 dark:hover:border-red-800":M.value?"bg-slate-100 dark:bg-slate-950/80 border-slate-300 dark:border-slate-600":d?"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":n?"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:s.jsxs(Q,{children:[e.isImageData?s.jsxs(Q,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[s.jsx(Q,{className:"flex px-0 py-1 items-center justify-center",children:s.jsx(zi,{src:$,hasError:C,decoding:"async",onErrorCallback:()=>{j(e.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},e.historyId)}),s.jsx("code",{className:"pb-0.5",children:r?dl(e.valuePreview,r):s.jsx("span",{children:e.valuePreview})})]}):e.isLink&&e.isImage?s.jsxs(Q,{className:"text-ellipsis self-start text-xs w-full select-text overflow-hidden",children:[s.jsx(Q,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:s.jsx(zi,{src:wn($),hasError:C,height:e.imageHeight,decoding:"async",onErrorCallback:()=>{j(e.historyId)},className:"min-h-20 object-scale-down animate-in fade-in duration-300 border-slate-100 dark:border-slate-700"},e.historyId)}),s.jsx("code",{className:"pb-0.5",children:r?dl($,r):gf($,e.arrLinks)})]}):e.isImage&&e.imagePathFullRes?s.jsx(Q,{className:"px-0 py-1.5 flex items-center justify-center",children:s.jsx("img",{decoding:"async",srcSet:"".concat(Vd(e.imagePathFullRes)," 2x"),src:Vd(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?s.jsx(Q,{className:"text-ellipsis self-start text-sm w-full p-1.5 animate-in fade-in",children:s.jsx(g1,{theme:t?$i.vsDark:$i.github,code:$,language:e.detectedLanguage,children:({className:q,style:Y,tokens:se,getLineProps:ee,getTokenProps:ae})=>s.jsx(em,{options:{overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:t?"os-theme-light":"os-theme-dark",autoHide:"never"}},style:{maxWidth:"100%"},children:s.jsx("code",{className:"".concat(q),style:Y,children:se.map((oe,le)=>s.jsx("div",re(R({},ee({line:oe})),{className:"".concat(P?"whitespace-pre-wrap":"whitespace-pre"," overflow-hidden text-ellipsis"),children:oe.map((ue,ce)=>s.jsx("span",re(R({},ae({token:ue})),{className:"select-text",children:r?dl(ue.content,r):ue.content}),ce))}),le))})})})},e.historyId):s.jsxs(Q,{className:"text-ellipsis self-start text-sm w-full overflow-hidden animate-in fade-in",children:[H&&s.jsx(Q,{className:"self-start mt-1.5 mb-1 text-xs w-full select-text overflow-hidden",children:s.jsx(Dm,{title:(V=e.linkMetadata)==null?void 0:V.linkTitle,description:(U=e.linkMetadata)==null?void 0:U.linkDescription,favicon:(X=e.linkMetadata)==null?void 0:X.linkFavicon,link:e==null?void 0:e.arrLinks[0],image:(G=e.linkMetadata)==null?void 0:G.linkImage,domain:(F=e.linkMetadata)==null?void 0:F.linkDomain})}),s.jsxs("code",{className:"justify-start select-text ".concat(P?"whitespace-break-spaces":"whitespace-normal"),children:[r?dl($,r):gf($,e.arrLinks),e.valueMorePreviewChars&&s.jsxs(Q,{className:"select-none",children:[" "," "," "]})]})]},e.historyId),s.jsx(Q,{className:"flex flex-row gap-1 items-center mt-1",children:s.jsx(Q,{className:"flex flex-row gap-1 items-center pb-1 ml-auto",children:s.jsxs(s.Fragment,{children:[!e.isImage&&s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 ml-1.5 cursor-pointer",onClick:()=>D(!P),children:s.jsx($e,{text:P?N("No Wrap",{ns:"common"}):N("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:P?s.jsx(o$,{width:20,height:20,strokeWidth:1.5}):s.jsx(Ele,{width:20,height:20,strokeWidth:1.5})})}),e.isImage&&!e.isLink&&s.jsxs(Q,{className:"flex flex-row gap-1 rounded items-center",children:[s.jsx(Q,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:N("Type:::Image",{ns:"common"})}),s.jsxs(Q,{className:"text-[11px] text-muted-foreground px-1 pt-0.5",children:[e.imageWidth,"x",e.imageHeight]})]}),(e.isMasked||e.hasMaskedWords)&&s.jsx(Q,{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"}):s.jsx($e,{text:N("Found Masked Words",{ns:"common"}),delayDuration:600,isCompact:!0,side:"bottom",sideOffset:6,children:s.jsx(uc,{size:18})})}),e.detectedLanguage&&s.jsx(Q,{className:"bg-slate-300 dark:bg-slate-600 dark:text-slate-300 text-[12px] rounded-sm px-2",children:e.detectedLanguage}),e.isLink&&s.jsx(Q,{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&&s.jsx(Q,{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&&s.jsx(Q,{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"})}),s.jsx($e,{text:N("Copy to Clipboard",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Q,{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:pr.value?s.jsx(ms,{size:18,onClick:()=>{g(e.historyId)}}):s.jsx(aa,{size:18,onClick:()=>{S(e.historyId)}})})}),s.jsx($e,{text:N("Action Menu",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:s.jsx(Q,{ref:A,className:"text-xs cursor-pointer text-slate-500 pl-2 pr-0 flex items-center justify-center",children:s.jsx(Hi,{size:18,onClick:()=>{var q,Y,se;(se=O==null?void 0:O.current)==null||se.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,clientX:(q=A==null?void 0:A.current)==null?void 0:q.getBoundingClientRect().x,clientY:(Y=A==null?void 0:A.current)==null?void 0:Y.getBoundingClientRect().y}))}})})})]})})})]})}),d?s.jsx(Q,{className:"absolute z-50 w-full top-[-13px] flex justify-center animate-in fade-in-500 duration-500",children:s.jsxs(ft,{variant:"default",className:"dark:bg-sky-800 dark:text-blue-200 pointer-events-none px-2",children:[s.jsx(iv,{size:14,className:"mr-1"}),N("Saved",{ns:"common"})]})}):z&&p===null?s.jsx(Q,{className:"absolute z-50 w-full top-[-13px] animate-in fade-in-500 duration-500 slide-in-from-bottom-1 flex justify-center",children:s.jsxs(ft,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pr-4",children:[s.jsx(Bt,{size:14,className:"mr-1"}),i?N("Copied",{ns:"common"}):c?N("Pasted",{ns:"common"}):""]})}):p!==null&&p>0&&s.jsx(Q,{className:"absolute z-50 w-full top-[-13px] slide-in-from-bottom-1 flex justify-center",children:s.jsx(ft,{variant:"default",className:"bg-green-700 dark:bg-green-800 dark:text-white pointer-events-none px-2 pl-3",children:p&&p>0&&N("Paste in {{pastingCountDown}}...",{ns:"common",pastingCountDown:p})})})]})}),s.jsx(iW,{historyId:e.historyId,isPinned:e.isPinned,isFavorite:e.isFavorite,isMasked:e.isMasked,detectedLanguage:e.detectedLanguage,setSavingItem:f,value:e.value,isImage:e.isImage,isText:e.isText,isImageData:e.isImageData,setLargeViewItemId:h,isLargeView:!0,arrLinks:e.arrLinks,hasLinkCard:H,isSelected:n,invalidateClipboardHistoryQuery:b,generateLinkMetaData:v,removeLinkMetaData:w,setSelectHistoryItem:E,onCopyPaste:g})]}),s.jsx(Q,{className:"flex justify-center text-gray-400 text-xs my-2",children:s.jsxs(ft,{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:()=>{h(null),$s.value=null},children:[N("Close",{ns:"common"}),s.jsx(Ur,{size:14,className:"ml-1"})]})})]}):null}const USe=m.memo(BSe);function WSe(e){return s.jsxs("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0.294 3.317 24.273 26.397",children:[s.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)"}),s.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 VSe=({selectedHistoryItems:e,setShowSelectHistoryItems:t,isDeleting:r,onDelete:n,setIsDeleting:a,isDark:o,setSelectHistoryItem:i,setSelectedHistoryItems:c,showSelectHistoryItems:d})=>{const{t:f}=Tt(),{deleteClipboardHistoryByIds:h}=jN(),{clearClipboardHistoryOlderThan:p}=Nwe(),g=ha(),{isHistoryEnabled:S,setIsHistoryEnabled:b,isHistoryAutoUpdateOnCaputureEnabled:v,setIsHistoryAutoUpdateOnCaputureEnabled:w}=xt(Rn);Is(["alt+s"],()=>{t(!d)}),Is(["control+s"],()=>{vd.value&&i(vd.value)}),Is(["alt+h"],()=>{b(!S)}),Is(["alt+a"],()=>{w(!v)}),Is(["alt+u"],()=>{AE.getState().updateClipboardHistory()}),Is(["alt+d"],()=>{c([])});const C=(j,E)=>pe(void 0,null,function*(){const N={days:E==="1"?f("Day",{ns:"calendar"}):f("Days",{ns:"calendar"}),weeks:E==="1"?f("Week",{ns:"calendar"}):f("Weeks",{ns:"calendar"}),months:E==="1"?f("Month",{ns:"calendar"}):f("Months",{ns:"calendar"}),year:E==="1"?f("Year",{ns:"calendar"}):f("Years",{ns:"calendar"})},M=E==="0"&&j==="days",P=M?f("Do you really want to remove ALL clipboard history items?",{ns:"history"}):f("Do you want to remove clipboard history items older than {{olderThen}} {{durationType}}",{ns:"history",olderThen:E,durationType:N[j]});if(yield lb(P,{title:f("{{isAll}} Clipboard History",{ns:"history",isAll:M?f("Clear All",{ns:"history"}):f("Clear",{ns:"history"})}).trim(),okLabel:f("{{isAll}} Clipboard History",{ns:"history",isAll:M?f("Clear All",{ns:"history"}):f("Clear",{ns:"history"})}).trim(),cancelLabel:f("Cancel",{ns:"common"})}))try{if(M&&!(yield lb(f("Please confirm your action!",{ns:"common"}),{title:f("Confirm Clear All History",{ns:"history"}),okLabel:f("Confirm",{ns:"common"}),cancelLabel:f("Cancel",{ns:"common"})})))return;yield p({durationType:j,olderThen:E}),setTimeout(()=>{c([]),t(!1),a(!1),n(M)},400),yield pl(f("All done! History's been cleared.",{ns:"history"}),"Success")}catch(A){console.error(A),yield pl(f("Something goes wrong! Please try again.",{ns:"common"}),"Error")}});return s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:s.jsxs(ke,{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:[s.jsx(WSe,{className:"w-5 max-w-[22px] min-w-[16px] stroke-[1.3px]",lightingColor:o?"#0f182a":"#f1f5f9"}),e.length>0&&s.jsx(ft,{variant:"slate",className:"absolute left-[-10px] top-[-10px]",children:e.length})]})}),s.jsx(_r,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:s.jsxs(pF,{children:[d?s.jsxs(ze,{onClick:()=>{t(!1)},children:[s.jsx(p$,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-2",children:f("Hide Muli Select",{ns:"common"})}),s.jsx(ml,{children:s.jsx(Ga,{keys:"ALT+S"})})]}):s.jsxs(ze,{onClick:()=>{t(!0)},children:[s.jsx(h$,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-2",children:f("Multi Select",{ns:"common"})}),s.jsx(ml,{children:s.jsx(Ga,{keys:"ALT+S"})})]}),s.jsxs(ze,{disabled:e.length===0,onClick:()=>{c([])},children:[s.jsx(IE,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:f("Deselect All",{ns:"common"})}),s.jsx(ml,{children:s.jsx(Ga,{keys:"ALT+D"})})]}),s.jsx(rr,{}),s.jsxs(ze,{disabled:e.length===0,onClick:()=>{ea.value=Ni.CLIP,Wp.value=Array.from(new Set([...e])),setTimeout(()=>{c([])},400)},children:[s.jsx(Dse,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:f("Add to Board",{ns:"dashboard"})})]}),s.jsx(rr,{}),s.jsxs(ze,{disabled:e.length===0,onClick:j=>pe(void 0,null,function*(){r?(yield h({historyIds:e}),setTimeout(()=>{n(),c([]),t(!1),a(!1)},400)):(j.preventDefault(),a(!0),setTimeout(()=>{a(!1)},3e3))}),children:[s.jsx(dn,{className:"mr-2 h-4 w-4 ".concat(r?"text-red-500":"")}),s.jsxs(ve,{children:[s.jsx(J,{className:"mr-1 ".concat(r?"!text-red-500":""),children:r?f("Click to Confirm",{ns:"common"}):f("Delete",{ns:"common"})}),e.length>0&&s.jsx(s.Fragment,{children:r?s.jsx(ft,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:e.length}):s.jsx(ft,{variant:"slateSecondary",className:"bg-slate-200 text-slate-500 ml-1 py-0 font-semibold",children:e.length})})]})]}),s.jsxs(zs,{children:[s.jsxs(Es,{children:[s.jsx(Zne,{className:"mr-2 h-4 w-4"}),s.jsxs(J,{children:[f("Clear History",{ns:"history"})," ..."]})]}),s.jsxs(Ns,{children:[s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsx(J,{children:f("Days",{ns:"calendar"})})}),s.jsxs(Ns,{children:[s.jsxs(ze,{onClick:()=>{C("days","1")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["1 ",f("Day",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("days","3")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["3 ",f("Days",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("days","5")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["5 ",f("Days",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("days","7")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["7 ",f("Days",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]})]})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsx(J,{children:f("Weeks",{ns:"calendar"})})}),s.jsxs(Ns,{children:[s.jsxs(ze,{onClick:()=>{C("weeks","1")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["1 ",f("Week",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("weeks","2")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["2 ",f("Weeks",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("weeks","3")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["3 ",f("Weeks",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("weeks","4")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["4 ",f("Weeks",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]})]})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsx(J,{children:f("Months",{ns:"calendar"})})}),s.jsxs(Ns,{children:[s.jsxs(ze,{onClick:()=>{C("months","1")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["1 ",f("Month",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("months","2")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["2 ",f("Months",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("months","3")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["3 ",f("Months",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("months","6")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["6 ",f("Months",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]})]})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsx(J,{children:f("Years",{ns:"calendar"})})}),s.jsxs(Ns,{children:[s.jsxs(ze,{onClick:()=>{C("year","1")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["1 ",f("Year",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("year","2")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["2 ",f("Years",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]}),s.jsxs(ze,{onClick:()=>{C("year","3")},children:[s.jsxs(J,{className:"font-semibold mr-1",children:["3 ",f("Years",{ns:"calendar"})]}),f("and older",{ns:"calendar"})]})]})]}),s.jsx(rr,{}),s.jsx(ze,{onClick:()=>{C("days","0")},children:s.jsx(J,{className:"font-semibold",children:f("Clear All History",{ns:"history"})})}),s.jsx(rr,{}),s.jsxs(ze,{onClick:()=>{g("/app-settings/history",{replace:!0})},children:[s.jsx(HE,{className:"mr-2 h-4 w-4"}),s.jsxs(J,{children:[f("Auto-Clear Settings",{ns:"history"})," ..."]})]})]})]})]})})]})},rS={STARRED:"starred",PINNED:"pinned",TEXT:"text",LINK:"link",IMAGE:"image",VIDEO:"video",EMOJI:"emoji",SECRET:"secret",CODE:"code"},qSe=({historyFilters:e,setHistoryFilters:t,codeFilters:r,avaliableCodeLanguages:n,setCodeFilters:a,children:o})=>{const{t:i}=Tt(),c=(h,p)=>{if(p){t([h]);return}e.includes(h)?t(e.filter(g=>g!==h)):t([...e,h])},d=(h,p)=>{if(p){a([h]);return}r.includes(h)?a(r.filter(g=>g!==h)):a([...r,h])};m.useEffect(()=>{e.includes(rS.CODE)||a([])},[e]);const{isSwapPanels:f}=xt(xs);return s.jsxs(Dr,{children:[s.jsx(Ar,{asChild:!0,children:o}),s.jsxs(_r,{className:"w-52",sideOffset:12,align:"center",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!e.length,onClick:h=>{h.preventDefault(),h.stopPropagation(),t([])},children:e.length?s.jsxs(ve,{className:"justify-between items-center w-full",children:[s.jsx(Q,{className:"w-6 h-4"}),s.jsx(J,{children:i("Filters:::Clear Filters",{ns:"history"})}),s.jsx(Ur,{className:"w-6 h-4"})]}):s.jsx(J,{children:i("Filters:::Select Filters",{ns:"history"})})}),s.jsx(rr,{}),Object.values(rS).map((h,p)=>s.jsxs(Q,{children:[p===2&&s.jsx(rr,{},"separator"),s.jsxs(ze,{onClick:g=>{g.preventDefault(),c(h)},children:[s.jsx(b4,{label:i("Filters:::".concat(KSe(h)),{ns:"history"}),checked:e.includes(h)}),s.jsx(ml,{children:s.jsx(Q,{onClick:g=>{g.preventDefault(),g.stopPropagation(),c(h,!0)},className:"cursor-pointer hover:underline",children:s.jsx(Ga,{keys:"only"})})})]})]},h)),e.includes(rS.CODE)&&s.jsxs(zs,{children:[s.jsxs(Es,{noRightIcon:f,disabled:!1,children:[s.jsx(E$,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:i("Filters:::Language Filters",{ns:"history"})}),r.length>0&&s.jsx(ft,{className:"ml-auto py-0",children:r.length})]}),s.jsxs(Ns,{className:"w-48",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!r.length,onClick:h=>{h.preventDefault(),h.stopPropagation(),a([])},children:r.length?s.jsxs(ve,{className:"justify-between items-center w-full",children:[s.jsx(Q,{className:"w-6 h-4"}),s.jsx(J,{children:i("Filters:::Clear Filters",{ns:"history"})}),s.jsx(Ur,{className:"w-6 h-4"})]}):s.jsx(J,{children:i("Filters:::Language Filters",{ns:"history"})})}),s.jsx(rr,{}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"190px"},autoHide:!1,children:n.map(h=>s.jsxs(ze,{onClick:p=>{p.preventDefault(),d(h)},children:[s.jsx(b4,{label:h,checked:r.includes(h)}),s.jsx(ml,{children:s.jsx(Q,{onClick:p=>{p.preventDefault(),p.stopPropagation(),d(h,!0)},className:"cursor-pointer hover:underline",children:s.jsx(Ga,{keys:"only"})})})]},h))})]})]})]})]})};function KSe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function lW({clipId:e,isDark:t,isHistoryDragActive:r}){var d,f,h,p;U6();const{t:n}=Tt(),{clipItems:a}=xt(kn),o=m.useMemo(()=>{if($s.value){const g=a.find(({itemId:S})=>S===e);if(g)return g;$s.value=null}},[e,a]),[i,c]=m.useMemo(()=>{var g,S;return[(o==null?void 0:o.createdAt)&&Ou().format((g=o.createdAt)!=null?g:0,{round:"floor"}),(o==null?void 0:o.updatedAt)&&Ou().format((S=o.updatedAt)!=null?S:0,{round:"floor"})]},[o]);return o==null?null:s.jsxs(Q,{className:"max-w-full max-h-full ".concat(Fs.value===e&&!o.isCode&&!o.isImage?"min-w-[80%]":""),children:[s.jsxs(Q,{className:"flex justify-center text-gray-400 text-xs my-2 gap-1",children:[s.jsx($e,{text:"".concat(n("Created",{ns:"common"}),": ").concat(xf((d=o.createdAt)!=null?d:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:i}),c!==i&&s.jsxs($e,{text:"".concat(n("Updated",{ns:"common"}),": ").concat(xf((f=o.updatedAt)!=null?f:0,"PPpp")),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:["(",c,")"]})]}),s.jsx(Q,{className:"text-gray-400 text-xs mb-1 mt-2",children:s.jsx(CN,{clip:re(R({},o),{type:"clip",id:e,createdAt:(h=o.createdAt)!=null?h:0,tabId:(p=o.tabId)!=null?p:null}),boardColor:o.color,isDark:t,isClipDelete:Ho.value===e,isClipEdit:Fs.value===e,isShowOrganizeLayoutValue:!1,isHistoryDragActive:r,isShowDetails:!0,isLargeView:!0,isSelected:!1})}),s.jsx(Q,{className:"flex justify-center text-gray-400 text-xs my-2",children:s.jsxs(ft,{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:()=>{$s.value=null},children:[n("Close",{ns:"common"}),s.jsx(Ur,{size:14,className:"ml-1"})]})})]})}m.memo(lW);const yA="trash",GSe=()=>pe(void 0,null,function*(){window.Prism=tt,yield Promise.all([me(()=>import("./prism-json-xwnKirkR.js"),[]),me(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),me(()=>import("./prism-java-Bz0cy7o8.js"),[]),me(()=>import("./prism-c-BI05wwL9.js"),[]),me(()=>import("./prism-css-Cp0aSgQ4.js"),[]),me(()=>import("./prism-csharp-aZJd74Dz.js"),[]),me(()=>import("./prism-php-Y_bwvUTe.js"),[]),me(()=>import("./prism-regex-DCddBNSB.js"),[]),me(()=>import("./prism-ruby-pgU1Zfy6.js"),[]),me(()=>import("./prism-shell-session-C8ifCaAv.js"),[]),me(()=>import("./prism-sql-AgAyy5H_.js"),[]),me(()=>import("./prism-uri-BQNPRq5q.js"),[]),me(()=>import("./prism-yaml-Chm5ZdEN.js"),[]),me(()=>import("./prism-markdown-4MKFcK2x.js"),[]),me(()=>import("./prism-path-CC2I6U-X.js"),[])]),tt.languages.shell=tt.languages["shell-session"]});function YSe(){const[e,t,r]=Ywe({}),[n,a,o,i]=Zwe({}),[c,d]=m.useState(null),{updateItemValueByHistoryId:f}=qme(),{pinnedClipboardHistoryByIds:h}=SU(),{unPinAllClipboardHistory:p}=Swe(),{movePinnedClipboardHistoryUpDown:g}=jwe(),[S,b]=m.useState([]),[v,w]=m.useState([]),C=m.useRef(null),[j,E]=m.useState(!1),N=m.useRef(null),[M,P]=m.useState(null),[D,A]=m.useState([]),[O,$]=m.useState(null),[H,z]=m.useState(null),[I,W]=m.useState(null),[_,K]=m.useState(null),[V,U]=m.useState([]),[X,G]=m.useState([]),[F,q]=m.useState([]),[Y,se]=m.useState(!1),[ee,ae]=m.useState(!1),{setIsScrolling:oe,isShowHistoryPinned:le,setIsShowHistoryPinned:ue,isSwapPanels:ce,setReturnRoute:he}=xt(xs),{isHistoryEnabled:we,setIsHistoryEnabled:Se,isHistoryAutoUpdateOnCaputureEnabled:Ae,isAutoPreviewLinkCardsEnabled:je,historyDetectLanguagesEnabledList:Le,copyPasteSequencePinnedDelay:Ee,setCopyPasteSequencePinnedDelay:He,copyPasteSequenceIsReversOrder:Qe,setCopyPasteSequenceIsReversOrder:Ze,setIsHistoryAutoUpdateOnCaputureEnabled:mt}=xt(Rn),{t:Ke}=Tt(),{themeDark:Lt}=xt(_f),{ref:qt,height:Xt}=RCe(),Ge=Ve(!1),zt=Ve(!1),ir=m.useMemo(()=>zt.value||Ge.value,[Ge.value,zt.value]),{pinnedClipboardHistory:Ft}=kwe(),et=Lt(),{setHistoryListSimpleBar:cr,scrollToTopHistoryList:ar,updateClipboardHistory:ur,generateLinkMetaData:Sr,removeLinkMetaData:Mt}=xt(wl),[Rr,Me]=m.useState(!1),Ye=Ju(),Te=ha(),{isClipboardInfiniteHistoryLoading:lt,isClipboardHistoryFetchingNextPage:xe,infiniteClipboardHistory:be,invalidateClipboardHistoryQuery:De,fetchNextClipboardHistoryPage:Fe}=jU(),{deleteClipboardHistoryByIds:Je}=jN(),{clipboardHistory:st,newClipboardHistoryCount:at,foundClipboardHistory:wt}=xt(wl),[ct,Nt]=m.useState(""),[Gt,kt]=m.useState(""),dr=m.useRef(null),Yt=m.useRef({}),Ht=m.useRef(null),lr=ro(ct,300),It=m.useMemo(()=>lr.length>1||S.length>0,[lr,S]),Mr=m.useMemo(()=>pr.value,[pr.value]),Jt=m.useMemo(()=>F.some(ot=>Ft.some(Wt=>Wt.historyId===ot)),[F,Ft]),yt=m.useMemo(()=>n,[n]),er=m.useMemo(()=>e,[e]),Ot=It?wt:st,{refetchFindClipboardHistory:nt}=Ewe({query:lr,filters:S,codeFilters:v}),ye=m.useCallback(()=>{It&&Ae&&nt()},[It,Ae]);m.useEffect(()=>{const ot=Ci("clipboard://clipboard-monitor/update",Wt=>{Wt.payload==="clipboard update"&&ye()});return()=>{ot.then(Wt=>{Wt()})}},[ye]),m.useEffect(()=>{au.value=null,bl.value=null;const ot=()=>pe(this,null,function*(){yield GSe()});he(Ye.pathname),bo.value=!1,ot(),Me(!0)},[]),m.useEffect(()=>{e&&F.includes(e)&&q(ot=>ot.filter(Wt=>Wt!==e)),n&&F.includes(n)&&q(ot=>ot.filter(Wt=>Wt!==n))},[e,n]),m.useEffect(()=>{C&&cr(C)},[C]),m.useEffect(()=>{Ft.length===0&&(Ge.value=!1,zt.value=!1)},[Ft]),m.useEffect(()=>{(lr.length>1||S.length>0||v.length>0)&&nt()},[lr,S,v]),m.useEffect(()=>{var ot;!((ot=N.current)!=null&&ot.setDisableScroll)||!C.current||(M?(N.current.setDisableScroll(!0),C.current.style.overflow="hidden"):(N.current.setDisableScroll(!1),C.current.style.overflow="visible"))},[M]);const Ie=()=>pe(this,null,function*(){xe||(yield Fe({cancelRefetch:!1}))});function qe(ot){return Yt.current[ot]||60}function ut(ot,Wt){var Dt,ne;(Dt=dr.current)!=null&&Dt.resetAfterIndex&&((ne=dr.current)==null||ne.resetAfterIndex(0)),Yt.current=re(R({},Yt.current),{[ot]:Wt})}const Pt=N3(Vh(tv,{activationConstraint:{tolerance:10,delay:300}}),Vh(ev,{coordinateGetter:F4})),or={keyframes({transform:ot}){return M&&(O===M||I||_||H)?[{opacity:.7},{opacity:0}]:[{opacity:1,transform:ei.Transform.toString(ot.initial)},{opacity:0,transform:ei.Transform.toString(re(R({},ot.final),{x:ot.final.x+5,y:ot.final.y+5}))}]},easing:"ease-out",duration:300,sideEffects({active:ot,dragOverlay:Wt}){M&&(O===M||I===M||H===M)?Wt.node.animate([{opacity:.7},{opacity:0}],{duration:300,easing:qd.easing}):ot.node.animate([{opacity:0},{opacity:1}],{duration:qd.duration,easing:qd.easing})}},Fr=m.useCallback(ot=>{q(Wt=>Wt.includes(ot)?Wt.filter(ne=>ne!==ot):[...Wt,ot])},[q]),Xr=m.useCallback(ot=>{A(Wt=>Wt.includes(ot)?Wt.filter(ne=>ne!==ot):[...Wt,ot])},[A]),ys=m.useCallback((ot,Wt)=>{U(Dt=>Wt?[...Dt,ot]:Dt.filter(ne=>ne!==ot))},[U]),fn=m.useCallback((ot,Wt)=>{G(Dt=>Wt?[...Dt,ot]:Dt.filter(ne=>ne!==ot))},[G]),Kt=m.useMemo(()=>{if($a.value){const ot=Ot.find(Wt=>Wt.historyId===$a.value);if(ot)return $s.value&&($s.value=null),ot;$a.value=null}},[$a.value,Ot]),Et=ot=>ot===Zc.value||ot===O||!!O&&!!M&&F.includes(ot)||j&&F.includes(ot);return s.jsx(ak,{children:s.jsx(cI,{sensors:Pt,collisionDetection:kE,autoScroll:{layoutShiftCompensation:!1,acceleration:1},measuring:{droppable:{strategy:lf.Always}},onDragStart:({active:ot})=>{var Wt;P(ot.id),ae(ot.id&&((Wt=ot.data.current)==null?void 0:Wt.isPinned))},onDragOver:({active:ot,over:Wt})=>{const Dt=Wt==null?void 0:Wt.data.current,ne=(Dt==null?void 0:Dt.type)===Hs,fe=(Dt==null?void 0:Dt.type)==="clip::dropzone",Ue=(Wt==null?void 0:Wt.id)==="history::pinnedzone";ot!=null&&ot.id&&Ue&&!ee?z(ot.id):Ue||z(null),(Wt==null?void 0:Wt.id)===yA?$(ot.id):ne&&(Wt!=null&&Wt.id)?W(Wt==null?void 0:Wt.id):fe&&(Wt!=null&&Wt.id)?K(Wt==null?void 0:Wt.id):($(null),W(null),K(null))},onDragCancel:()=>(P(null),$(null),W(null),K(null),!0),onDragEnd:Wt=>pe(this,[Wt],function*({active:ot}){var ne;const Dt=(ne=ot==null?void 0:ot.data.current)==null?void 0:ne.isPinned;if((ot==null?void 0:ot.id)===H)setTimeout(()=>pe(this,null,function*(){z(null),q([]),P(null),!Dt&&(yield h({historyIds:F.length>0?Array.from(new Set([...F,ot.id])):[ot.id],isPinned:!0}))}),300);else if((ot==null?void 0:ot.id)===O){const fe=Dt?L5(ot.id):ot.id;yield Je({historyIds:F.length>0?Array.from(new Set([...F,fe])):[fe]}),setTimeout(()=>{ye(),z(null),$(null),W(null),K(null),q([]),P(null)},600)}else if(ot!=null&&ot.id&&I){const fe=Dt?L5(ot.id):ot.id;ol.value=I,Wp.value=F.length>0?Array.from(new Set([...F,fe])):[fe],setTimeout(()=>{W(null),P(null),q([])},400)}else if(ot!=null&&ot.id&&_){const fe=Dt?L5(ot.id):ot.id,Ue=_.toString().replace("::dropzone",""),rt=fe?Ot.find(Oe=>Oe.historyId===fe):null;Ue&&(rt!=null&&rt.historyId)&&(yield f({historyId:rt.historyId,itemId:Ue})),setTimeout(()=>{K(null),P(null)},400)}else ol.value=null,setTimeout(()=>{z(null),W(null),$(null),P(null)},300)}),children:s.jsxs(FN,{minSize:300,maxSize:700,defaultSize:300,swapPanes:ce,autoSaveId:"app-main-panel",children:[s.jsx(HN,{children:s.jsx(Q,{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:s.jsx(kg,{disableWidth:!0,children:({height:ot})=>{var Wt;return Rr&&ot&&ot>0&&s.jsxs(Q,{className:"flex flex-col h-[calc(100vh-95px)] relative",children:[s.jsx(Q,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-3",children:M&&Ft.length===0?s.jsx(S4,{id:"history::pinnedzone",className:"w-full h-full",isActive:!!M,children:s.jsx(Q,{ref:H?null:qt,className:"".concat(H?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(M?"":"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:M&&s.jsx(Q,{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:s.jsx(Q,{className:"border-2 ".concat(H?"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:H?s.jsx(J,{className:"!text-orange-400 dark:text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:Ke("Drop to Pin",{ns:"dashboard"})}):s.jsx(dc,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})})})}):s.jsxs(s.Fragment,{children:[s.jsx(Iu,{placeholder:"".concat(Ke("Find in history",{ns:"dashboard"}),"..."),autoFocus:ct.length>0,type:"search",onChange:Dt=>{Nt(Dt.target.value)},value:ct,ref:Ht,iconLeft:s.jsx(Gp,{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"),s.jsx(qSe,{setHistoryFilters:b,historyFilters:S,avaliableCodeLanguages:Le,codeFilters:v,setCodeFilters:w,children:s.jsxs(ke,{variant:"ghost",className:"relative cursor-pointer px-1 mr-2",children:[s.jsx(hoe,{size:20,className:"".concat(S.length?"text-blue-500 hover:text-blue-500/70":"text-slate-400 hover:text-slate-400/70"," ")}),S.length>0&&s.jsx(ft,{className:"absolute right-[-10px] top-[-10px] bg-blue-500 hover:bg-blue-500",children:S.length})]})})]})}),It?s.jsx(Q,{className:"cursor-pointer absolute top-[49px] animate-in fade-in fade-out flex justify-center w-full pointer-events-none",children:s.jsx($e,{text:Ke("Clear found results and filters",{ns:"common"}),isDisabled:!!M,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",onClick:()=>{var Dt;Nt(""),b([]),w([]),Ht!=null&&Ht.current&&Ht.current.value&&(Ht.current.value="",(Dt=Ht==null?void 0:Ht.current)==null||Dt.focus())},sideOffset:10,children:s.jsx(J,{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.length?s.jsxs(s.Fragment,{children:[Ot.length<100?Ot.length:"100+"," ",Ke("found",{ns:"common"})]}):s.jsx(s.Fragment,{children:Ke("Nothing found",{ns:"common"})})})})}):Ft.length>0&&s.jsx(S4,{id:"history::pinnedzone",isActive:!!M&&!ee,children:s.jsxs(Q,{onMouseEnter:()=>{Ge.value=!0},onMouseLeave:()=>{Ge.value=!1},onClick:()=>{Ge.value=!0},ref:H?null:qt,className:"".concat(H?"!bg-orange-100 dark:!bg-orange-500/40":""," ").concat(M?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:[M&&!ee&&s.jsx(Q,{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:s.jsx(Q,{className:"border-2 ".concat(H?"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:H?s.jsx(J,{className:"!text-orange-400 dark:!text-orange-500 !font-medium animate-in fade-in duration-300 text-sm",children:Ke("Drop to Pin",{ns:"dashboard"})}):s.jsx(dc,{size:18,className:"text-orange-300 dark:text-orange-500 animate-in fade-in duration-300"})})}),s.jsx(em,{defer:!0,style:{maxHeight:200},options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{theme:et?"os-theme-light":"os-theme-dark",autoHide:"move"}},children:s.jsx(Q,{className:"flex flex-col gap-1 relative ".concat(M&&!ee?"opacity-20":""),children:le&&Ft.sort((Dt,ne)=>Dt.pinnedOrderNumber-ne.pinnedOrderNumber).map((Dt,ne)=>{const fe=Dt.historyId;return s.jsx(Q,{children:s.jsx(tS,{isPinnedTop:!0,isPinnedTopFirst:ne===0,isDisabledPinnedMoveUp:ne===0,isDisabledPinnedMoveDown:ne===Ft.length-1,onMovePinnedUpDown:Ue=>{g(Ue)},isLinkCardPreviewEnabled:je,isLargeView:fe===$a.value,largeViewItemId:$a.value,setLargeViewItemId:Ue=>{$a.value=Ue},setSelectHistoryItem:Fr,onCopy:t,onCopyPaste:o,pastingCountDown:fe===yt?a:void 0,isPasted:fe===yt,isCopied:fe===er,isSaved:fe===c,setSavingItem:d,isDeleting:Et(fe),isSelected:F.includes(fe),setBrokenImageItem:Xr,isBrokenImage:D.includes(fe),showTimeAgo:!1,isExpanded:V.includes(fe),isWrapText:X.includes(fe),searchTerm:It?lr:"",showSelectHistoryItems:Y,invalidateClipboardHistoryQuery:()=>{De(),ye()},setExpanded:ys,setWrapText:fn,isDark:et,setRowHeight:ut,clipboard:Dt,removeLinkMetaData:Mt,generateLinkMetaData:Sr})},fe)})})}),s.jsxs(ve,{className:"justify-between",children:[le?s.jsxs(ve,{className:"animate-in fade-in duration-300 ".concat(M&&!ee||!ir?"opacity-0":""),children:[s.jsx(rn,{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:Mr?Ke("Sequence Paste",{ns:"common"}):Ke("Sequence Copy",{ns:"common"}),children:Mr?s.jsx(ms,{size:14,onClick:()=>{i(Ft.map(({historyId:Dt})=>Dt))}}):s.jsx(aa,{size:14,onClick:()=>{r(Ft.map(({historyId:Dt})=>Dt))}})}),s.jsxs(Dr,{onOpenChange:Dt=>{zt.value=Dt},children:[s.jsx(Ar,{asChild:!0,children:s.jsx(o6,{variant:"outline",title:Ke("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:s.jsxs(J,{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:[Ee,"s"]})})}),s.jsxs(_r,{className:"w-44",children:[s.jsx(ze,{className:"text-center items-center justify-center py-0.5",disabled:!0,children:s.jsx(J,{size:"xs",children:Ke("Sequence Copy Paste",{ns:"common"})})}),s.jsx(rr,{}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsxs(ve,{className:"flex w-full",children:[s.jsxs(J,{size:"xs",children:[Ke("Delay Next",{ns:"common"}),"..."]}),s.jsxs(ft,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:[Ee,"s"]})]})}),s.jsxs(Ns,{children:[s.jsx(nr,{checked:Ee===1,onSelect:()=>{He(1)},children:s.jsxs(J,{size:"xs",children:["1 ",Ke("second",{ns:"common"})]})}),s.jsx(nr,{checked:Ee===2,onSelect:()=>{He(2)},children:s.jsxs(J,{size:"xs",children:["2 ",Ke("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:Ee===3,onSelect:()=>{He(3)},children:s.jsxs(J,{size:"xs",children:["3 ",Ke("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:Ee===4,onSelect:()=>{He(4)},children:s.jsxs(J,{size:"xs",children:["4 ",Ke("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:Ee===5,onSelect:()=>{He(5)},children:s.jsxs(J,{size:"xs",children:["5 ",Ke("seconds",{ns:"common"})]})}),s.jsx(nr,{checked:Ee===10,onSelect:()=>{He(10)},children:s.jsxs(J,{size:"xs",children:["10 ",Ke("seconds",{ns:"common"})]})})]})]}),s.jsxs(zs,{children:[s.jsx(Es,{children:s.jsxs(ve,{className:"flex w-full",children:[s.jsxs(J,{size:"xs",children:[Ke("Reverse Order",{ns:"common"}),"..."]}),s.jsx(ft,{className:"ml-auto py-0 bg-slate-200 text-slate-500 dark:bg-slate-700 dark:text-slate-400",variant:"outline",children:Qe?Ke("Yes",{ns:"common"}):Ke("No",{ns:"common"})})]})}),s.jsxs(Ns,{children:[s.jsx(nr,{checked:!Qe,onSelect:()=>{Ze(!1)},children:s.jsx(J,{size:"xs",children:Ke("No",{ns:"common"})})}),s.jsx(nr,{checked:Qe,onSelect:()=>{Ze(!0)},children:s.jsx(J,{size:"xs",children:Ke("Yes",{ns:"common"})})})]})]})]})]})]}):s.jsx(Q,{}),!M&&s.jsxs(rn,{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?Ke("Hide pinned history",{ns:"history"}):Ke("View pinned history",{ns:"history"}),onClick:()=>{ue(!le)},children:[s.jsxs(J,{className:"!font-medium text-xs !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400 mr-1",children:[Ft.length," ",Ke("Pinned",{ns:"common",count:Ft.length})]}),le?s.jsx(c$,{size:13,className:"group-hover:opacity-100 opacity-0"}):s.jsx(jne,{size:13,className:"group-hover:opacity-100 opacity-0"})]}),le?s.jsxs(Q,{className:"animate-in fade-in duration-300 ".concat(M&&!ee||!ir?"opacity-0":""),children:[s.jsx(rn,{title:Jt?Ke("Deselect pinned",{ns:"common"}):Ke("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:s.jsx(ve,{className:"font-medium text-sm gap-1 !text-orange-500/80 dark:!text-orange-400/80 hover:!text-orange-400",children:Jt?s.jsx(rw,{size:15,onClick:()=>{const Dt=F.filter(ne=>Ft.some(fe=>fe.historyId===ne));q(F.filter(ne=>!Dt.includes(ne)))}}):s.jsx(VE,{size:17,onClick:()=>{q(F.concat(Ft.map(Dt=>Dt.historyId)))}})})}),s.jsx(qF,{onOpen:Dt=>{zt.value=Dt},onCancel:()=>{setTimeout(()=>{zt.value=!1,Ge.value=!1},300)},onConfirm:()=>pe(this,null,function*(){yield p({})}),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"})]}):s.jsx(Q,{})]})]})}),Ot.length>0||It?s.jsx(Wr,{style:{height:ot-(It?115:Ft.length===0?85:Xt?Xt+103:85)},ref:Dt=>{N.current=Dt},onScroll:(Dt,ne)=>{oe(ne)},className:"animate-in fade-in mr-[-10px] ".concat(It?"mt-[20px]":""),children:({scrollableNodeRef:Dt,contentNodeRef:ne})=>s.jsxs("div",{className:"pr-[10px] relative h-full",children:[Gt&&s.jsx(Q,{className:"".concat(at>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:s.jsx($e,{text:Ke("Scroll to Top",{ns:"common"}),isDisabled:!!M,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"bottom",asChild:!0,sideOffset:10,children:s.jsx(rn,{className:"pointer-events-auto rounded-full bg-slate-300 dark:bg-slate-600 hover:bg-slate-300/90",onClick:()=>{ar(!0)},children:s.jsx(J,{className:"text-mute text-xs text-center px-3",children:Gt})})})}),at>0&&!It&&s.jsx(Q,{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:s.jsx($e,{text:Ke("Update history list",{ns:"common"}),isDisabled:!!M,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:3,children:s.jsx(rn,{className:"pointer-events-auto",onClick:()=>{ur()},children:s.jsxs(J,{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:["+ ",at," ",Ke("new clips",{ns:"dashboard"})]})})})}),!we&&!It&&s.jsxs(Q,{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:[s.jsx($e,{text:Ke("Turn on history capture",{ns:"dashboard"}),isDisabled:!!M,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:6,children:s.jsx(rn,{className:"pointer-events-auto",onClick:()=>{Se(!0)},children:s.jsx(J,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:Ke("History capture is off",{ns:"dashboard"})})})}),Ot.length>0&&s.jsxs(J,{className:"text-xs text-center bg-slate-100 dark:bg-slate-700 rounded-full px-3 mt-2",children:[Ke("Last update",{ns:"dashboard"}),":"," ",Ot[0].timeAgo]})]}),we&&!It&&!Ae&&s.jsx(Q,{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:s.jsx($e,{text:Ke("Turn On auto update",{ns:"dashboard"}),isDisabled:!!M,className:"animate-in fade-in fade-out duration-300",isCompact:!0,delayDuration:2e3,side:"top",asChild:!0,sideOffset:10,children:s.jsx(rn,{className:"pointer-events-auto",onClick:()=>{mt(!0)},children:s.jsx(J,{className:"text-xs text-center bg-yellow-200 dark:bg-yellow-800 rounded-full px-3 cursor-pointer pointer-events-auto",children:Ke("Auto update is Off",{ns:"dashboard"})})})})}),s.jsx(DCe,{isItemLoaded:fe=>fe<Ot.length&&!!Ot[fe],threshold:10,itemCount:Ot.length+1,loadMoreItems:Ie,children:({onItemsRendered:fe,ref:Ue})=>s.jsx(ECe,{overscanCount:10,height:ot-(It?60:85),itemCount:Ot.length,width:"100%",itemSize:qe,itemKey:rt=>{var Oe;return(Oe=Ot[rt].historyId)!=null?Oe:"id-${index}"},onItemsRendered:rt=>{if(rt.visibleStartIndex>10){const Oe=Ot[rt.visibleStartIndex];Oe!=null&&Oe.timeAgo?Gt!==Oe.timeAgo&&kt(Oe.timeAgo):kt("")}else Gt&&kt("");!lr&&fe(rt)},ref:Ii(dr,Ue),outerRef:Ii(C,Dt),innerRef:ne,children:({index:rt,style:Oe})=>{const gt=Ot[rt],{historyId:mr,showTimeAgo:Hn,timeAgo:Ps}=gt;return s.jsx(tS,{isLargeView:mr===$a.value,largeViewItemId:$a.value,isLinkCardPreviewEnabled:je,setLargeViewItemId:Sc=>{$a.value=Sc},setSelectHistoryItem:Fr,onCopy:t,onCopyPaste:o,pastingCountDown:mr===yt?a:void 0,isPasted:mr===yt,isCopied:mr===er,isSaved:mr===c,setSavingItem:d,isDeleting:Et(mr),isOverPinned:mr===H||!!H&&!!M&&F.includes(mr),isSelected:F.includes(mr),setBrokenImageItem:Xr,isBrokenImage:D.includes(mr),showTimeAgo:Hn,timeAgo:Ps,isExpanded:V.includes(mr),isWrapText:X.includes(mr),searchTerm:It?lr:"",showSelectHistoryItems:Y,invalidateClipboardHistoryQuery:()=>{De(),ye()},setExpanded:ys,setWrapText:fn,isDark:et,setRowHeight:ut,clipboard:gt,removeLinkMetaData:Mt,generateLinkMetaData:Sr,index:rt,style:Oe},mr)}})})]})}):!lt&&((Wt=be==null?void 0:be.pages)==null?void 0:Wt.flat().length)===0&&s.jsx(ve,{style:{height:ot-85},className:"flex items-center flex-col gap-3 justify-center",children:s.jsx(J,{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:Ke("No Clipboard History",{ns:"dashboard"})})}),s.jsx(Ku,{children:s.jsx(fI,{dropAnimation:or,children:M?s.jsx(tS,{index:1,isWrapText:X.includes(M),isExpanded:V.includes(M),style:{zIndex:999},showSelectHistoryItems:Y,setSelectHistoryItem:Fr,isDark:et,isBrokenImage:D.includes(M),setBrokenImageItem:Xr,isDragPreview:!0,isDeleting:M===O||!!O&&F.includes(M),selectedItemsCount:F.length&&F.includes(M)?F.length:F.length+1,clipboard:Ot.find(Dt=>ee?Dt.historyId===M.toString().split("::pinned")[0]:Dt.historyId===M)}):null})}),s.jsx(Q,{className:"flex-1 mt-2"}),s.jsxs(Cl,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:Ye.pathname,onValueChange:Dt=>{Te(Dt,{replace:!0})},children:[!M&&s.jsx(VSe,{isDeleting:j,isDark:et,setIsDeleting:E,setSelectHistoryItem:Fr,onDelete:(Dt=!1)=>{var ne;Dt&&(Nt(""),b([]),w([]),Ht!=null&&Ht.current&&Ht.current.value&&(Ht.current.value="",(ne=Ht==null?void 0:Ht.current)==null||ne.focus())),ye()},showSelectHistoryItems:Y,setSelectedHistoryItems:q,setShowSelectHistoryItems:se,selectedHistoryItems:F}),s.jsx(si,{className:"self-center",children:M?s.jsx(En,{value:"",className:"p-0.5",children:s.jsx(FSe,{id:yA})}):s.jsxs(s.Fragment,{children:[s.jsx(En,{value:"/history",children:Ke("Clipboard History",{ns:"common"})}),s.jsx(En,{value:"/menu",children:Ke("Paste Menu",{ns:"common"})})]})}),s.jsx(Q,{className:"w-1"})]})]})}})})}),s.jsx(BN,{children:!$a.value&&!$s.value?s.jsx(Q,{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:s.jsx(kg,{disableWidth:!0,children:({height:ot})=>ot&&ot>0&&s.jsx(Q,{className:"p-2 pt-0 py-4 pr-0 pb-0 m-0 select-none",children:s.jsx(Wr,{style:{height:ot-20},onScroll:(Wt,Dt)=>{oe(Dt)},children:s.jsx(ve,{style:{height:ot-20},className:"flex items-start flex-col justify-start p-0",children:s.jsx(owe,{historyDragActive:!!M,isDark:et,dragOverBoardId:I})})})})})}):s.jsx(Q,{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:s.jsx(kg,{disableWidth:!0,children:({height:ot})=>ot&&ot>0&&s.jsxs(Q,{className:"p-4 py-3 select-auto relative",children:[s.jsx(Q,{className:"flex justify-center mb-2",children:s.jsx(J,{className:"font-thin select-none !text-slate-400",size:"sm",children:Ke("Large View",{ns:"common"})})}),s.jsx(Wr,{style:{height:ot-85},autoHide:!1,onScroll:(Wt,Dt)=>{oe(Dt)},children:s.jsxs(ve,{style:{height:ot-105},children:[$s.value&&s.jsx(lW,{clipId:$s.value,isHistoryDragActive:!!M,isDark:et}),Kt&&s.jsx(USe,{setLargeViewItemId:Wt=>{$a.value=Wt},setSelectHistoryItem:Fr,onCopy:t,onCopyPaste:o,pastingCountDown:Kt.historyId===yt?a:null,isPasted:Kt.historyId===yt,isCopied:Kt.historyId===er,isSaved:Kt.historyId===c,setSavingItem:d,isDeleting:Kt.historyId===O||!!O&&!!M&&F.includes(Kt.historyId)||j&&F.includes(Kt.historyId),isSelected:F.includes(Kt.historyId),setBrokenImageItem:Xr,isBrokenImage:D.includes(Kt.historyId),showTimeAgo:Kt.showTimeAgo,timeAgo:Kt.timeAgo,searchTerm:It?lr:"",invalidateClipboardHistoryQuery:()=>{De(),ye()},setExpanded:ys,isDark:et,clipboard:Kt,removeLinkMetaData:Mt,generateLinkMetaData:Sr})]})})]})})})})]},ce?"swap":"no-swap")})})}class cW{constructor(t){St(this,"root");this.root=ZSe(t)}get data(){var t,r;return(r=(t=this.root.children)==null?void 0:t.map(n=>n.data))!=null?r:[]}create(t){const r=t.parentId?this.find(t.parentId):this.root;if(!r)return null;r.addChild(t.data,t.index)}move(t){const r=this.find(t.id),n=t.parentId?this.find(t.parentId):this.root;!r||!n||(n.addChild(r.data,t.index),r.drop())}update(t){const r=this.find(t.id);r&&r.update(t.changes)}drop(t){const r=this.find(t.id);r&&r.drop()}find(t,r=this.root){if(!r)return null;if(r.id===t)return r;if(r.children){for(let n of r.children){const a=this.find(t,n);if(a)return a}return null}return null}}function ZSe(e){const t=new uW({id:"ROOT"},null);return t.children=e.map(r=>UN(r,t)),t}function UN(e,t){const r=new uW(e,t);return e.children&&(r.children=e.children.map(n=>UN(n,r))),r}class uW{constructor(t,r){St(this,"id");St(this,"children");this.data=t,this.parent=r,this.id=t.id}hasParent(){return!!this.parent}get childIndex(){return this.hasParent()?this.parent.children.indexOf(this):-1}addChild(t,r){var a,o;const n=UN(t,this);this.children=(a=this.children)!=null?a:[],this.children.splice(r,0,n),this.data.children=(o=this.data.children)!=null?o:[],this.data.children.splice(r,0,t)}removeChild(t){var r,n;(r=this.children)==null||r.splice(t,1),(n=this.data.children)==null||n.splice(t,1)}update(t){if(this.hasParent()){const r=this.childIndex;this.parent.addChild(R(R({},this.data),t),r),this.drop()}}drop(){this.hasParent()&&this.parent.removeChild(this.childIndex)}}let XSe=0;function QSe(e){const[t,r]=m.useState(e),n=m.useMemo(()=>new cW(t),[t]);return[t,{onMove:f=>{for(const h of f.dragIds)n.move({id:h,parentId:f.parentId,index:f.index});r(n.data)},onRename:({name:f,id:h})=>{n.update({id:h,changes:{name:f}}),r(n.data)},onCreate:({parentId:f,index:h,type:p})=>{const g={id:"simple-tree-id-".concat(XSe++),name:""};return p==="internal"&&(g.children=[]),n.create({parentId:f,index:h,data:g}),r(n.data),g},onDelete:f=>{f.ids.forEach(h=>n.drop({id:h})),r(n.data)}}]}function JSe(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,r]=QSe(e.initialData);return re(R(R({},e),r),{data:t})}else return e}const dW=m.createContext({dragDropManager:void 0});function ba(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 bA=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),nS=function(){return Math.random().toString(36).substring(7).split("").join(".")},k2={INIT:"@@redux/INIT"+nS(),REPLACE:"@@redux/REPLACE"+nS(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+nS()}};function e3e(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 WN(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ba(0));if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(ba(1));return r(WN)(e,t)}if(typeof e!="function")throw new Error(ba(2));var a=e,o=t,i=[],c=i,d=!1;function f(){c===i&&(c=i.slice())}function h(){if(d)throw new Error(ba(3));return o}function p(v){if(typeof v!="function")throw new Error(ba(4));if(d)throw new Error(ba(5));var w=!0;return f(),c.push(v),function(){if(w){if(d)throw new Error(ba(6));w=!1,f();var j=c.indexOf(v);c.splice(j,1),i=null}}}function g(v){if(!e3e(v))throw new Error(ba(7));if(typeof v.type=="undefined")throw new Error(ba(8));if(d)throw new Error(ba(9));try{d=!0,o=a(o,v)}finally{d=!1}for(var w=i=c,C=0;C<w.length;C++){var j=w[C];j()}return v}function S(v){if(typeof v!="function")throw new Error(ba(10));a=v,g({type:k2.REPLACE})}function b(){var v,w=p;return v={subscribe:function(j){if(typeof j!="object"||j===null)throw new Error(ba(11));function E(){j.next&&j.next(h())}E();var N=w(E);return{unsubscribe:N}}},v[bA]=function(){return this},v}return g({type:k2.INIT}),n={dispatch:g,subscribe:p,getState:h,replaceReducer:S},n[bA]=b,n}function t3e(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:k2.INIT});if(typeof n=="undefined")throw new Error(ba(12));if(typeof r(void 0,{type:k2.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(ba(13))})}function wA(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var o=Object.keys(r),i;try{t3e(r)}catch(c){i=c}return function(d,f){if(d===void 0&&(d={}),i)throw i;for(var h=!1,p={},g=0;g<o.length;g++){var S=o[g],b=r[S],v=d[S],w=b(v,f);if(typeof w=="undefined")throw f&&f.type,new Error(ba(14));p[S]=w,h=h||w!==v}return h=h||o.length!==Object.keys(d).length,h?p:d}}function br(e,t,...r){if(r3e()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let a=0;n=new Error(t.replace(/%s/g,function(){return r[a++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function r3e(){return typeof process!="undefined"&&!0}function n3e(e,t,r){return t.split(".").reduce((n,a)=>n&&n[a]?n[a]:r||null,e)}function s3e(e,t){return e.filter(r=>r!==t)}function fW(e){return typeof e=="object"}function a3e(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const a=[];return r.forEach((o,i)=>{o===1&&a.push(i)}),a}function o3e(e,t){return e.filter(r=>t.indexOf(r)>-1)}const VN="dnd-core/INIT_COORDS",uk="dnd-core/BEGIN_DRAG",qN="dnd-core/PUBLISH_DRAG_SOURCE",dk="dnd-core/HOVER",fk="dnd-core/DROP",hk="dnd-core/END_DRAG";function kA(e,t){return{type:VN,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const i3e={type:VN,payload:{clientOffset:null,sourceClientOffset:null}};function l3e(e){return function(r=[],n={publishSource:!0}){const{publishSource:a=!0,clientOffset:o,getSourceClientOffset:i}=n,c=e.getMonitor(),d=e.getRegistry();e.dispatch(kA(o)),c3e(r,c,d);const f=f3e(r,c);if(f==null){e.dispatch(i3e);return}let h=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");u3e(i),h=i(f)}e.dispatch(kA(o,h));const g=d.getSource(f).beginDrag(c,f);if(g==null)return;d3e(g),d.pinSource(f);const S=d.getSourceType(f);return{type:uk,payload:{itemType:S,item:g,sourceId:f,clientOffset:o||null,sourceClientOffset:h||null,isSourcePublic:!!a}}}}function c3e(e,t,r){br(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){br(r.getSource(n),"Expected sourceIds to be registered.")})}function u3e(e){br(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function d3e(e){br(fW(e),"Item must be an object.")}function f3e(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function h3e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p3e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){h3e(e,a,r[a])})}return e}function m3e(e){return function(r={}){const n=e.getMonitor(),a=e.getRegistry();g3e(n),y3e(n).forEach((i,c)=>{const d=v3e(i,c,a,n),f={type:fk,payload:{dropResult:p3e({},r,d)}};e.dispatch(f)})}}function g3e(e){br(e.isDragging(),"Cannot call drop while not dragging."),br(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function v3e(e,t,r,n){const a=r.getTarget(e);let o=a?a.drop(n,e):void 0;return x3e(o),typeof o=="undefined"&&(o=t===0?{}:n.getDropResult()),o}function x3e(e){br(typeof e=="undefined"||fW(e),"Drop result must either be an object or undefined.")}function y3e(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function b3e(e){return function(){const r=e.getMonitor(),n=e.getRegistry();w3e(r);const a=r.getSourceId();return a!=null&&(n.getSource(a,!0).endDrag(r,a),n.unpinSource()),{type:hk}}}function w3e(e){br(e.isDragging(),"Cannot call endDrag while not dragging.")}function aj(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function k3e(e){return function(r,{clientOffset:n}={}){C3e(r);const a=r.slice(0),o=e.getMonitor(),i=e.getRegistry(),c=o.getItemType();return j3e(a,i,c),S3e(a,o,i),E3e(a,o,i),{type:dk,payload:{targetIds:a,clientOffset:n||null}}}}function C3e(e){br(Array.isArray(e),"Expected targetIds to be an array.")}function S3e(e,t,r){br(t.isDragging(),"Cannot call hover while not dragging."),br(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const a=e[n];br(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(a);br(o,"Expected targetIds to be registered.")}}function j3e(e,t,r){for(let n=e.length-1;n>=0;n--){const a=e[n],o=t.getTargetType(a);aj(o,r)||e.splice(n,1)}}function E3e(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function N3e(e){return function(){if(e.getMonitor().isDragging())return{type:qN}}}function _3e(e){return{beginDrag:l3e(e),publishDragSource:N3e(e),hover:k3e(e),drop:m3e(e),endDrag:b3e(e)}}class T3e{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...i)=>{const c=o.apply(t,i);typeof c!="undefined"&&r(c)}}const a=_3e(this);return Object.keys(a).reduce((o,i)=>{const c=a[i];return o[i]=n(c),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function M3e(e,t){return{x:e.x+t.x,y:e.y+t.y}}function hW(e,t){return{x:e.x-t.x,y:e.y-t.y}}function P3e(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:hW(M3e(t,n),r)}function D3e(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:hW(t,r)}const Rg=[],KN=[];Rg.__IS_NONE__=!0;KN.__IS_ALL__=!0;function A3e(e,t){return e===Rg?!1:e===KN||typeof t=="undefined"?!0:o3e(t,e).length>0}class R3e{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;br(typeof t=="function","listener must be a function."),br(typeof n=="undefined"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let a=this.store.getState().stateId;const o=()=>{const i=this.store.getState(),c=i.stateId;try{c===a||c===a+1&&!A3e(i.dirtyHandlerIds,n)||t()}finally{a=c}};return this.store.subscribe(o)}subscribeToOffsetChange(t){br(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const a=this.store.getState().dragOffset;a!==r&&(r=a,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return br(r,"Expected to find a valid source. sourceId=".concat(t)),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(br(r,"Expected to find a valid target. targetId=".concat(t)),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),a=this.getItemType();return aj(n,a)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(br(r,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),a=this.getItemType();return n!==a?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const a=this.registry.getTargetType(t),o=this.getItemType();if(o&&!aj(a,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const c=i.indexOf(t);return n?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 P3e(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return D3e(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const CA=typeof global!="undefined"?global:self,pW=CA.MutationObserver||CA.WebKitMutationObserver;function mW(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function L3e(e){let t=1;const r=new pW(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const O3e=typeof pW=="function"?L3e:mW;class I3e{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.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 r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+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=O3e(this.flush),this.requestErrorThrow=mW(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class $3e{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class z3e{create(t){const r=this.freeTasks,n=r.length?r.pop():new $3e(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const gW=new I3e,F3e=new z3e(gW.registerPendingError);function H3e(e){gW.enqueueTask(F3e.create(e))}const GN="dnd-core/ADD_SOURCE",YN="dnd-core/ADD_TARGET",ZN="dnd-core/REMOVE_SOURCE",pk="dnd-core/REMOVE_TARGET";function B3e(e){return{type:GN,payload:{sourceId:e}}}function U3e(e){return{type:YN,payload:{targetId:e}}}function W3e(e){return{type:ZN,payload:{sourceId:e}}}function V3e(e){return{type:pk,payload:{targetId:e}}}function q3e(e){br(typeof e.canDrag=="function","Expected canDrag to be a function."),br(typeof e.beginDrag=="function","Expected beginDrag to be a function."),br(typeof e.endDrag=="function","Expected endDrag to be a function.")}function K3e(e){br(typeof e.canDrop=="function","Expected canDrop to be a function."),br(typeof e.hover=="function","Expected hover to be a function."),br(typeof e.drop=="function","Expected beginDrag to be a function.")}function oj(e,t){if(t&&Array.isArray(e)){e.forEach(r=>oj(r,!1));return}br(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 Wo;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(Wo||(Wo={}));let G3e=0;function Y3e(){return G3e++}function Z3e(e){const t=Y3e().toString();switch(e){case Wo.SOURCE:return"S".concat(t);case Wo.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function SA(e){switch(e[0]){case"S":return Wo.SOURCE;case"T":return Wo.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(e))}}function jA(e,t){const r=e.entries();let n=!1;do{const{done:a,value:[,o]}=r.next();if(o===t)return!0;n=!!a}while(!n);return!1}class X3e{addSource(t,r){oj(t),q3e(r);const n=this.addHandler(Wo.SOURCE,t,r);return this.store.dispatch(B3e(n)),n}addTarget(t,r){oj(t,!0),K3e(r);const n=this.addHandler(Wo.TARGET,t,r);return this.store.dispatch(U3e(n)),n}containsHandler(t){return jA(this.dragSources,t)||jA(this.dropTargets,t)}getSource(t,r=!1){return br(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return br(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return br(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return br(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return SA(t)===Wo.SOURCE}isTargetId(t){return SA(t)===Wo.TARGET}removeSource(t){br(this.getSource(t),"Expected an existing source."),this.store.dispatch(W3e(t)),H3e(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){br(this.getTarget(t),"Expected an existing target."),this.store.dispatch(V3e(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);br(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){br(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const a=Z3e(t);return this.types.set(a,r),t===Wo.SOURCE?this.dragSources.set(a,n):t===Wo.TARGET&&this.dropTargets.set(a,n),a}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Q3e=(e,t)=>e===t;function J3e(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function e4e(e,t,r=Q3e){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function t4e(e=Rg,t){switch(t.type){case dk:break;case GN:case YN:case pk:case ZN:return Rg;case uk:case qN:case hk:case fk:default:return KN}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,a=a3e(r,n);if(!(a.length>0||!e4e(r,n)))return Rg;const i=n[n.length-1],c=r[r.length-1];return i!==c&&(i&&a.push(i),c&&a.push(c)),a}function r4e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n4e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){r4e(e,a,r[a])})}return e}const EA={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function s4e(e=EA,t){const{payload:r}=t;switch(t.type){case VN:case uk:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case dk:return J3e(e.clientOffset,r.clientOffset)?e:n4e({},e,{clientOffset:r.clientOffset});case hk:case fk:return EA;default:return e}}function a4e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){a4e(e,a,r[a])})}return e}const o4e={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function i4e(e=o4e,t){const{payload:r}=t;switch(t.type){case uk:return Eh({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case qN:return Eh({},e,{isSourcePublic:!0});case dk:return Eh({},e,{targetIds:r.targetIds});case pk:return e.targetIds.indexOf(r.targetId)===-1?e:Eh({},e,{targetIds:s3e(e.targetIds,r.targetId)});case fk:return Eh({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case hk:return Eh({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function l4e(e=0,t){switch(t.type){case GN:case YN:return e+1;case ZN:case pk:return e-1;default:return e}}function c4e(e=0){return e+1}function u4e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d4e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){u4e(e,a,r[a])})}return e}function f4e(e={},t){return{dirtyHandlerIds:t4e(e.dirtyHandlerIds,{type:t.type,payload:d4e({},t.payload,{prevTargetIds:n3e(e,"dragOperation.targetIds",[])})}),dragOffset:s4e(e.dragOffset,t),refCount:l4e(e.refCount,t),dragOperation:i4e(e.dragOperation,t),stateId:c4e(e.stateId)}}function h4e(e,t=void 0,r={},n=!1){const a=p4e(n),o=new R3e(a,new X3e(a)),i=new T3e(a,o),c=e(i,t,r);return i.receiveBackend(c),i}function p4e(e){const t=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return WN(f4e,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function m4e(e,t){if(e==null)return{};var r=g4e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g4e(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}let NA=0;const Ry=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var v4e=m.memo(function(t){var{children:r}=t,n=m4e(t,["children"]);const[a,o]=x4e(n);return m.useEffect(()=>{if(o){const i=vW();return++NA,()=>{--NA===0&&(i[Ry]=null)}}},[]),s.jsx(dW.Provider,{value:a,children:r})});function x4e(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=y4e(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function y4e(e,t=vW(),r,n){const a=t;return a[Ry]||(a[Ry]={dragDropManager:h4e(e,t,r,n)}),a[Ry]}function vW(){return typeof global!="undefined"?global:window}var b4e=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[a]))return!1;for(a=n;a--!==0;){var i=o[a];if(!e(t[i],r[i]))return!1}return!0}return t!==t&&r!==r};const w4e=Fi(b4e),Sf=typeof window!="undefined"?m.useLayoutEffect:m.useEffect;function xW(e,t,r){const[n,a]=m.useState(()=>t(e)),o=m.useCallback(()=>{const i=t(e);w4e(n,i)||(a(i),r&&r())},[n,e,r]);return Sf(o),[n,o]}function k4e(e,t,r){const[n,a]=xW(e,t,r);return Sf(function(){const i=e.getHandlerId();if(i!=null)return e.subscribeToStateChange(a,{handlerIds:[i]})},[e,a]),n}function yW(e,t,r){return k4e(t,e||(()=>({})),()=>r.reconnect())}function bW(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function C4e(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function S4e(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let sS=!1,aS=!1;class j4e{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){br(!sS,"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 sS=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{sS=!1}}isDragging(){if(!this.sourceId)return!1;br(!aS,"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 aS=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{aS=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}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 oS=!1;class E4e{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;br(!oS,"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 oS=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{oS=!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 N4e(e,t,r){const n=r.getRegistry(),a=n.addTarget(e,t);return[a,()=>n.removeTarget(a)]}function _4e(e,t,r){const n=r.getRegistry(),a=n.addSource(e,t);return[a,()=>n.removeSource(a)]}function ij(e,t,r,n){let a=r?r.call(n,e,t):void 0;if(a!==void 0)return!!a;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 d=0;d<o.length;d++){const f=o[d];if(!c(f))return!1;const h=e[f],p=t[f];if(a=r?r.call(n,h,p,f):void 0,a===!1||a===void 0&&h!==p)return!1}return!0}function lj(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function T4e(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 M4e(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return T4e(n),P4e(n,r?o=>e(o,r):e)}}function wW(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const a=M4e(n);t[r]=()=>a}}),t}function _A(e,t){typeof e=="function"?e(t):e.current=t}function P4e(e,t){const r=e.ref;return br(typeof r!="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"),r?m.cloneElement(e,{ref:n=>{_A(r,n),_A(t,n)}}):m.cloneElement(e,{ref:t})}class D4e{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,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!ij(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!ij(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=wW({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,lj(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,lj(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,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 A4e{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,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!ij(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=wW({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,lj(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function $f(){const{dragDropManager:e}=m.useContext(dW);return br(e!=null,"Expected drag drop context"),e}function R4e(e,t){const r=$f(),n=m.useMemo(()=>new D4e(r.getBackend()),[r]);return Sf(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Sf(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function L4e(){const e=$f();return m.useMemo(()=>new j4e(e),[e])}class O4e{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n!=null?n:null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,a=this.monitor,{isDragging:o}=n;return o?o(a):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:a}=t;a&&a(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function I4e(e,t,r){const n=m.useMemo(()=>new O4e(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function $4e(e){return m.useMemo(()=>{const t=e.type;return br(t!=null,"spec.type must be defined"),t},[e])}function z4e(e,t,r){const n=$f(),a=I4e(e,t,r),o=$4e(e);Sf(function(){if(o!=null){const[c,d]=_4e(o,a,n);return t.receiveHandlerId(c),r.receiveHandlerId(c),d}},[n,t,r,a,o])}function F4e(e,t){const r=bW(e,t);br(!r.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 n=L4e(),a=R4e(r.options,r.previewOptions);return z4e(r,n,a),[yW(r.collect,n,a),C4e(a),S4e(a)]}function H4e(e){const r=$f().getMonitor(),[n,a]=xW(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(a)),m.useEffect(()=>r.subscribeToStateChange(a)),n}function B4e(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function U4e(e){const t=$f(),r=m.useMemo(()=>new A4e(t.getBackend()),[t]);return Sf(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function W4e(){const e=$f();return m.useMemo(()=>new E4e(e),[e])}function V4e(e){const{accept:t}=e;return m.useMemo(()=>(br(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class q4e{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function K4e(e,t){const r=m.useMemo(()=>new q4e(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function G4e(e,t,r){const n=$f(),a=K4e(e,t),o=V4e(e);Sf(function(){const[c,d]=N4e(o,a,n);return t.receiveHandlerId(c),r.receiveHandlerId(c),d},[n,t,a,r,o.map(i=>i.toString()).join("|")])}function kW(e,t){const r=bW(e,t),n=W4e(),a=U4e(r.options);return G4e(r,n,a),[yW(r.collect,n,a),B4e(a)]}const CW=m.createContext(null);function Ra(){const e=m.useContext(CW);if(e===null)throw new Error("No Tree Api Provided");return e}const SW=m.createContext(null);function Y4e(){const e=m.useContext(SW);if(e===null)throw new Error("Provide a NodesContext");return e}const jW=m.createContext(null);function Z4e(){const e=m.useContext(jW);if(e===null)throw new Error("Provide a DnDContext");return e}const EW=m.createContext(0);function XN(){m.useContext(EW)}const X4e={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},Q4e=e=>{if(!e)return{display:"none"};const{x:t,y:r}=e;return{transform:"translate(".concat(t,"px, ").concat(r,"px)")}},J4e=e=>{if(!e)return{display:"none"};const{x:t,y:r}=e;return{transform:"translate(".concat(t+10,"px, ").concat(r+10,"px)")}};function NW({offset:e,mouse:t,id:r,dragIds:n,isDragging:a}){return s.jsxs(eje,{isDragging:a,children:[s.jsx(tje,{offset:e,children:s.jsx(nje,{id:r,dragIds:n})}),s.jsx(rje,{mouse:t,count:n.length})]})}const eje=m.memo(function(t){return t.isDragging?s.jsx("div",{style:X4e,children:t.children}):null});function tje(e){return s.jsx("div",{className:"row preview",style:Q4e(e.offset),children:e.children})}function rje(e){const{count:t,mouse:r}=e;return t>1?s.jsx("div",{className:"selected-count",style:J4e(r),children:t}):null}const nje=m.memo(function(t){const r=Ra(),n=r.get(t.id);return n?s.jsx(r.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*r.indent,opacity:.5,background:"transparent"},tree:r}):null});function sje(){const e=Ra(),{offset:t,mouse:r,item:n,isDragging:a}=H4e(i=>({offset:i.getSourceClientOffset(),mouse:i.getClientOffset(),item:i.getItem(),isDragging:i.isDragging()})),o=e.props.renderDragPreview||NW;return s.jsx(o,{offset:t,mouse:r,id:(n==null?void 0:n.id)||null,dragIds:(n==null?void 0:n.dragIds)||[],isDragging:a})}const Nv=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}}},lm={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 aje(e=Nv().dnd,t){switch(t.type){case"DND_CURSOR":return re(R({},e),{cursor:t.cursor});case"DND_DRAG_START":return re(R({},e),{dragId:t.id,dragIds:t.dragIds});case"DND_DRAG_END":return Nv().dnd;case"DND_HOVERING":return re(R({},e),{parentId:t.parentId,index:t.index});default:return e}}function _W(e,t,r){return Math.max(Math.min(e,r),t)}function TW(e){return e&&e.isLeaf}function MW(e){return e&&e.isInternal&&!e.isOpen}const PW=(e,t)=>{let r=e;for(;r;){if(r.id===t.id)return!0;r=r.parent}return!1},DW=e=>{if(!e.parent)throw Error("Node does not have a parent");return e.parent.children.findIndex(t=>t.id===e.id)};function oje(){}function QN(e,t){if(!e)return null;if(e.id===t)return e;if(e.children)for(let r of e.children){const n=QN(r,t);if(n)return n}return null}function C2(e,t){if(t(e),e.children)for(let r of e.children)C2(r,t)}function AW(e){const t=LW(e);let r;for(let n=0;n<t.length;++n)if(t[n]===e){r=ije(t,n);break}r==null||r.focus()}function RW(e){const t=LW(e);let r;for(let n=0;n<t.length;++n)if(t[n]===e){r=lje(t,n);break}r==null||r.focus()}function ije(e,t){return t+1<e.length?e[t+1]:e[0]}function lje(e,t){return t-1>=0?e[t-1]:e[e.length-1]}function LW(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 og(e,t){return typeof t=="boolean"?t:typeof t=="string"?e[t]:t(e)}function OW(e){return e===null?null:wd(e)}function wd(e){return typeof e=="string"?e:e.id}function cje(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}function IW(e,...t){if(e)return e(...t)}function $W(e){return new Promise((t,r)=>{let n=0;function a(){n+=1,n===100&&r(),e()?t():setTimeout(a,10)}a()})}function zW(e){var r,n;const t=e.focusedNode;return t?t.isOpen?0:t.parent?t.childIndex+1:0:(n=(r=e.root.children)==null?void 0:r.length)!=null?n:0}function FW(e){const t=e.focusedNode;return t?t.isOpen?t.id:t.parent&&!t.parent.isRoot?t.parent.id:null:null}const uje=Object.freeze(Object.defineProperty({__proto__:null,access:og,bound:_W,dfs:QN,focusNextElement:AW,focusPrevElement:RW,getInsertIndex:zW,getInsertParentId:FW,identify:wd,identifyNull:OW,indexOf:DW,isClosed:MW,isDecendent:PW,isItem:TW,mergeRefs:cje,noop:oje,safeRun:IW,waitFor:$W,walk:C2},Symbol.toStringTag,{value:"Module"}));function dje(e,t){const r=e.getBoundingClientRect(),n=t.x-Math.round(r.x),a=t.y-Math.round(r.y),o=r.height,i=a<o/2,c=!i,d=o/4,f=a>d&&a<o-d;return{x:n,inTopHalf:i,inBottomHalf:c,inMiddle:f,atTop:!f&&i,atBottom:!f&&c}}function fje(e,t,r,n){return e?e.isInternal?n.atTop?[t,e]:n.inMiddle?[e,e]:[e,r]:n.inTopHalf?[t,e]:[e,r]:[t,null]}function hje(e,t,r,n){const a=Math.round(Math.max(0,e.x-n)/n);let o,i;return t?r?(i=t.level,o=r.level):(i=t.level,o=0):(i=0,o=0),_W(a,o,i)}function iS(e,t){return{parentId:e||null,index:t}}function lS(e,t){return{type:"line",index:e,level:t}}function pje(e){return{type:"highlight",id:e}}function mje(e,t){var o;let r=e;for(;r.parent&&r.level>t;)r=r.parent;const n=((o=r.parent)==null?void 0:o.id)||null,a=DW(r)+1;return{parentId:n,index:a}}function HW(e){var c;const t=dje(e.element,e.offset),{node:r,nextNode:n,prevNode:a}=e,[o,i]=fje(r,a,n,t);if(r&&r.isInternal&&t.inMiddle)return{drop:iS(r.id,0),cursor:pje(r.id)};if(!o)return{drop:iS((c=i==null?void 0:i.parent)==null?void 0:c.id,0),cursor:lS(0,0)};if(TW(o)||MW(o)){const d=hje(t,o,i,e.indent);return{drop:mje(o,d),cursor:lS(o.rowIndex+1,d)}}return{drop:iS(o==null?void 0:o.id,0),cursor:lS(o.rowIndex+1,o.level+1)}}function gje(){const e=Ra(),[,t]=kW(()=>({accept:"NODE",canDrop:(r,n)=>n.isOver({shallow:!0})?e.canDrop():!1,hover:(r,n)=>{if(!n.isOver({shallow:!0}))return;const a=n.getClientOffset();if(!e.listEl.current||!a)return;const{cursor:o,drop:i}=HW({element:e.listEl.current,offset:a,indent:e.indent,node:null,prevNode:e.visibleNodes[e.visibleNodes.length-1],nextNode:null});i&&e.dispatch(lm.hovering(i.parentId,i.index)),n.canDrop()?o&&e.showCursor(o):e.hideCursor()}}),[e]);t(e.listEl)}function vje(e){return gje(),e.children}function BW(e){let t=null;return()=>(t==null&&(t=e()),t)}function xje(e,t){return e.filter(r=>r!==t)}function yje(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const a=[];return r.forEach(o=>a.push(o)),a}class bje{enter(t){const r=this.entered.length,n=a=>this.isNodeInDocument(a)&&(!a.contains||a.contains(t));return this.entered=yje(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=xje(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class wje{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 r={};Object.keys(this.config.exposeProperties).forEach(n=>{const a=this.config.exposeProperties[n];a!=null&&(r[n]={value:a(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const UW="__NATIVE_FILE__",WW="__NATIVE_URL__",VW="__NATIVE_TEXT__",qW="__NATIVE_HTML__",TA=Object.freeze(Object.defineProperty({__proto__:null,FILE:UW,HTML:qW,TEXT:VW,URL:WW},Symbol.toStringTag,{value:"Module"}));function cS(e,t,r){const n=t.reduce((a,o)=>a||e.getData(o),"");return n!=null?n:r}const cj={[UW]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[qW]:{exposeProperties:{html:(e,t)=>cS(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[WW]:{exposeProperties:{urls:(e,t)=>cS(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[VW]:{exposeProperties:{text:(e,t)=>cS(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function kje(e,t){const r=cj[e];if(!r)throw new Error("native type ".concat(e," has no configuration"));const n=new wje(r);return n.loadDataTransfer(t),n}function uS(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(cj).filter(r=>{const n=cj[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(a=>t.indexOf(a)>-1):!1})[0]||null}const Cje=BW(()=>/firefox/i.test(navigator.userAgent)),KW=BW(()=>!!window.safari);class MA{interpolate(t){const{xs:r,ys:n,c1s:a,c2s:o,c3s:i}=this;let c=r.length-1;if(t===r[c])return n[c];let d=0,f=i.length-1,h;for(;d<=f;){h=Math.floor(.5*(d+f));const S=r[h];if(S<t)d=h+1;else if(S>t)f=h-1;else return n[h]}c=Math.max(0,f);const p=t-r[c],g=p*p;return n[c]+a[c]*p+o[c]*g+i[c]*p*g}constructor(t,r){const{length:n}=t,a=[];for(let S=0;S<n;S++)a.push(S);a.sort((S,b)=>t[S]<t[b]?-1:1);const o=[],i=[];let c,d;for(let S=0;S<n-1;S++)c=t[S+1]-t[S],d=r[S+1]-r[S],o.push(c),i.push(d/c);const f=[i[0]];for(let S=0;S<o.length-1;S++){const b=i[S],v=i[S+1];if(b*v<=0)f.push(0);else{c=o[S];const w=o[S+1],C=c+w;f.push(3*C/((C+w)/b+(C+c)/v))}}f.push(i[i.length-1]);const h=[],p=[];let g;for(let S=0;S<f.length-1;S++){g=i[S];const b=f[S],v=1/o[S],w=b+f[S+1]-g-g;h.push((g-b-w)*v),p.push(w*v*v)}this.xs=t,this.ys=r,this.c1s=f,this.c2s=h,this.c3s=p}}const Sje=1;function GW(e){const t=e.nodeType===Sje?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function ay(e){return{x:e.clientX,y:e.clientY}}function jje(e){var t;return e.nodeName==="IMG"&&(Cje()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function Eje(e,t,r,n){let a=e?t.width:r,o=e?t.height:n;return KW()&&e&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}function Nje(e,t,r,n,a){const o=jje(t),c=GW(o?e:t),d={x:r.x-c.x,y:r.y-c.y},{offsetWidth:f,offsetHeight:h}=e,{anchorX:p,anchorY:g}=n,{dragPreviewWidth:S,dragPreviewHeight:b}=Eje(o,t,f,h),v=()=>{let P=new MA([0,.5,1],[d.y,d.y/h*b,d.y+b-h]).interpolate(g);return KW()&&o&&(P+=(window.devicePixelRatio-1)*b),P},w=()=>new MA([0,.5,1],[d.x,d.x/f*S,d.x+S-f]).interpolate(p),{offsetX:C,offsetY:j}=a,E=C===0||C,N=j===0||j;return{x:E?C:w(),y:N?j:v()}}class _je{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")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,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}}function Tje(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable}))),n.forEach(function(a){Tje(e,a,r[a])})}return e}class Mje{profile(){var t,r;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:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.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 r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const a=i=>this.handleDragStart(i,t),o=i=>this.handleSelectStart(i);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",a),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",a),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=i=>this.handleDragEnter(i,t),a=i=>this.handleDragOver(i,t),o=i=>this.handleDrop(i,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",a),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",a),r.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(),r=this.sourceNodeOptions.get(t);return PA({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return PA({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(TA).some(r=>TA[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=kje(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}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,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){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=a=>{const o=this.sourceNodes.get(a);return o&&GW(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=a=>!!(a&&this.document&&this.document.body&&this.document.body.contains(a)),this.endDragIfSourceWasRemovedFromDOM=()=>{const a=this.currentDragSourceNode;a==null||this.isNodeInDocument(a)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=a=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(a||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=a=>{if(a.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const i=ay(a);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});const{dataTransfer:c}=a,d=uS(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const h=this.monitor.getSourceId(),p=this.sourceNodes.get(h),g=this.sourcePreviewNodes.get(h)||p;if(g){const{anchorX:S,anchorY:b,offsetX:v,offsetY:w}=this.getCurrentSourcePreviewNodeOptions(),E=Nje(p,g,i,{anchorX:S,anchorY:b},{offsetX:v,offsetY:w});c.setDragImage(g,E.x,E.y)}}try{c==null||c.setData("application/json",{})}catch(h){}this.setCurrentDragSourceNode(a.target);const{captureDraggingState:f}=this.getCurrentSourcePreviewNodeOptions();f?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(d)this.beginDragNativeItem(d);else{if(c&&!c.types&&(a.target&&!a.target.hasAttribute||!a.target.hasAttribute("draggable")))return;a.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=a=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(a.dataTransfer)}if(!this.enterLeaveCounter.enter(a.target)||this.monitor.isDragging())return;const{dataTransfer:c}=a,d=uS(c);d&&this.beginDragNativeItem(d,c)},this.handleTopDragEnter=a=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=a.altKey,o.length>0&&this.actions.hover(o,{clientOffset:ay(a)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=a=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(a.dataTransfer)}},this.handleTopDragOver=a=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none");return}this.altKeyPressed=a.altKey,this.lastClientOffset=ay(a),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?a.preventDefault():(a.preventDefault(),a.dataTransfer&&(a.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=a=>{this.isDraggingNativeItem()&&a.preventDefault(),this.enterLeaveCounter.leave(a.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=a=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;a.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(a.dataTransfer)}else uS(a.dataTransfer)&&a.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=a=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:ay(a)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=a=>{const o=a.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(a.preventDefault(),o.dragDrop()))},this.options=new _je(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new bje(this.isNodeInDocument)}}let oy;function Pje(){return oy||(oy=new Image,oy.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),oy}const Dje=function(t,r,n){return new Mje(t,r,n)},YW=m.forwardRef(function(a,n){var o=a,{style:t}=o,r=Ce(o,["style"]);var f,h,p,g;const i=Ra(),c=(h=(f=i.props.padding)!=null?f:i.props.paddingTop)!=null?h:0,d=(g=(p=i.props.padding)!=null?p:i.props.paddingBottom)!=null?g:0;return s.jsx("div",R({ref:n,style:re(R({},t),{height:"".concat(parseFloat(t.height)+c+d,"px")})},r))});function Aje(){var c,d;const e=Ra(),r=Z4e().cursor;if(!r||r.type!=="line")return null;const n=e.indent,a=e.rowHeight*r.index+((d=(c=e.props.padding)!=null?c:e.props.paddingTop)!=null?d:0),o=n*r.level,i=e.renderCursor;return s.jsx(i,{top:a,left:o,indent:n})}const ZW=m.forwardRef(function(t,r){const i=t,{children:n}=i,a=Ce(i,["children"]),o=Ra();return s.jsxs("div",re(R({ref:r},a),{onClick:c=>{c.currentTarget===c.target&&o.deselectAll()},children:[s.jsx(Rje,{}),n]}))}),Rje=()=>{const e=Ra();return s.jsx("div",{style:{height:e.visibleNodes.length*e.rowHeight,width:"100%",position:"absolute",left:"0",right:"0"},children:s.jsx(Aje,{})})};class S2{constructor(t){St(this,"tree");St(this,"id");St(this,"data");St(this,"level");St(this,"children");St(this,"parent");St(this,"isDraggable");St(this,"rowIndex");St(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===_v}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 r,n;const t=this.childIndex;return(n=(r=this.parent)==null?void 0:r.children[t+1])!=null?n: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 S2(R({},this))}edit(){return this.tree.edit(this)}}const _v="ROOT";function DA(e){var a;function t(o,i,c){const d=e.accessId(o),f=new S2({tree:e,data:o,level:i,parent:c,id:d,children:null,isDraggable:e.isDraggable(o),rowIndex:null}),h=e.accessChildren(o);return h&&(f.children=h.map(p=>t(p,i+1,f))),f}const r=new S2({tree:e,id:_v,data:{id:_v},level:-1,parent:null,children:null,isDraggable:!0,rowIndex:null}),n=(a=e.props.data)!=null?a:[];return r.children=n.map(o=>t(o,0,r)),r}function Lje(e){const t=Ra(),r=t.selectedIds,[n,a,o]=F4e(()=>({canDrag:()=>e.isDraggable,type:"NODE",item:()=>{const i=t.isSelected(e.id)?Array.from(r):[e.id];return t.dispatch(lm.dragStart(e.id,i)),{id:e.id}},end:()=>{t.hideCursor();let{parentId:i,index:c,dragIds:d}=t.state.dnd;t.canDrop()&&(IW(t.props.onMove,{dragIds:d,parentId:i===_v?null:i,index:c,dragNodes:t.dragNodes,parentNode:t.get(i)}),t.open(i)),t.dispatch(lm.dragEnd())}}),[r,e]);return m.useEffect(()=>{o(Pje())},[o]),a}function Oje(e,t){const r=Ra(),[n,a]=kW(()=>({accept:"NODE",canDrop:()=>r.canDrop(),hover:(o,i)=>{const c=i.getClientOffset();if(!e.current||!c)return;const{cursor:d,drop:f}=HW({element:e.current,offset:c,indent:r.indent,node:t,prevNode:t.prev,nextNode:t.next});f&&r.dispatch(lm.hovering(f.parentId,f.index)),i.canDrop()?d&&r.showCursor(d):r.hideCursor()},drop:(o,i)=>{if(!i.canDrop())return null}}),[t,e.current,r.props]);return a}function Ije(e){const t=Ra(),r=t.at(e);if(!r)throw new Error("Could not find node for index: ".concat(e));return m.useMemo(()=>{const n=r.clone();return t.visibleNodes[e]=n,n},[...Object.values(r.state),r])}const XW=m.memo(function({index:t,style:r}){XN(),Y4e();const n=Ra(),a=Ije(t),o=m.useRef(null),i=Lje(a),c=Oje(o,a),d=m.useCallback(v=>{o.current=v,c(v)},[c]),f=n.indent*a.level,h=m.useMemo(()=>({paddingLeft:f}),[f]),p=m.useMemo(()=>{var v,w;return re(R({},r),{top:parseFloat(r.top)+((w=(v=n.props.padding)!=null?v:n.props.paddingTop)!=null?w:0)})},[r,n.props.padding,n.props.paddingTop]),g={role:"treeitem","aria-level":a.level,"aria-selected":a.isSelected,style:p,tabIndex:-1,className:n.props.rowClassName};m.useEffect(()=>{var v;!a.isEditing&&a.isFocused&&((v=o.current)==null||v.focus({preventScroll:!0}))},[a.isEditing,a.isFocused,o.current]);const S=n.renderNode,b=n.renderRow;return s.jsx(b,{node:a,innerRef:d,attrs:g,children:s.jsx(S,{node:a,tree:n,style:h,dragHandle:i})},a.id)});let dS="",AA=null;function QW(){XN();const e=Ra();return s.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 n;if(e.isEditing)return;if(t.key==="Backspace"){if(!e.props.onDelete)return;const a=Array.from(e.selectedIds);if(a.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(a))}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(),AW(t.currentTarget);return}if(t.key==="Tab"&&t.shiftKey){t.preventDefault(),RW(t.currentTarget);return}if(t.key==="ArrowDown"){t.preventDefault();const a=e.nextNode;if(t.metaKey){e.select(e.focusedNode),e.activate(e.focusedNode);return}else if(!t.shiftKey||e.props.disableMultiSelection){e.focus(a);return}else{if(!a)return;const o=e.focusedNode;o?o.isSelected?e.selectContiguous(a):e.selectMulti(a):e.focus(e.firstNode);return}}if(t.key==="ArrowUp"){t.preventDefault();const a=e.prevNode;if(!t.shiftKey||e.props.disableMultiSelection){e.focus(a);return}else{if(!a)return;const o=e.focusedNode;o?o.isSelected?e.selectContiguous(a):e.selectMulti(a):e.focus(e.lastNode);return}}if(t.key==="ArrowRight"){const a=e.focusedNode;if(!a)return;a.isInternal&&a.isOpen?e.focus(e.nextNode):a.isInternal&&e.open(a.id);return}if(t.key==="ArrowLeft"){const a=e.focusedNode;if(!a||a.isRoot)return;a.isInternal&&a.isOpen?e.close(a.id):(n=a.parent)!=null&&n.isRoot||e.focus(a.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 a=e.focusedNode;if(!a||!a.isEditable||!e.props.onRename)return;setTimeout(()=>{a&&e.edit(a)});return}if(t.key===" "){t.preventDefault();const a=e.focusedNode;if(!a)return;a.isLeaf?(a.select(),a.activate()):a.toggle();return}if(t.key==="*"){const a=e.focusedNode;if(!a)return;e.openSiblings(a);return}if(t.key==="PageUp"){t.preventDefault(),e.pageUp();return}t.key==="PageDown"&&(t.preventDefault(),e.pageDown()),clearTimeout(AA),dS+=t.key,AA=setTimeout(()=>{dS=""},300);const r=e.visibleNodes.find(a=>{const o=a.data.name;return typeof o=="string"?o.toLowerCase().includes(dS.toLowerCase()):!1});r&&e.focus(r.id)},children:s.jsx(WU,{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 r;return((r=e.visibleNodes[t])==null?void 0:r.id)||t},outerElementType:ZW,innerElementType:YW,onScroll:e.props.onScroll,onItemsRendered:e.onItemsRendered.bind(e),ref:e.list,children:XW})})}const $je={display:"flex",alignItems:"center",zIndex:1},zje={flex:1,height:"2px",background:"#4B91E2",borderRadius:"1px"},Fje={width:"4px",height:"4px",boxShadow:"0 0 0 3px #4B91E2",borderRadius:"50%"},Hje=vt.memo(function({top:t,left:r,indent:n}){const a={position:"absolute",pointerEvents:"none",top:t-2+"px",left:r+"px",right:n+"px"};return s.jsxs("div",{style:R(R({},$je),a),children:[s.jsx("div",{style:R({},Fje)}),s.jsx("div",{style:R({},zje)})]})});function Bje(e){return s.jsxs("div",{ref:e.dragHandle,style:e.style,children:[s.jsx("span",{onClick:t=>{t.stopPropagation(),e.node.toggle()},children:e.node.isLeaf?"🌳":e.node.isOpen?"🗁":"🗀"})," ",e.node.isEditing?s.jsx(Wje,R({},e)):s.jsx(Uje,R({},e))]})}function Uje(e){return s.jsx(s.Fragment,{children:s.jsx("span",{children:e.node.data.name})})}function Wje({node:e}){const t=m.useRef();return m.useEffect(()=>{var r,n;(r=t.current)==null||r.focus(),(n=t.current)==null||n.select()},[]),s.jsx("input",{ref:t,defaultValue:e.data.name,onBlur:()=>e.reset(),onKeyDown:r=>{var n;r.key==="Escape"&&e.reset(),r.key==="Enter"&&e.submit(((n=t.current)==null?void 0:n.value)||"")}})}function Vje({node:e,attrs:t,innerRef:r,children:n}){return s.jsx("div",re(R({},t),{ref:r,onFocus:a=>a.stopPropagation(),onClick:e.handleClick,children:n}))}const RA=e=>e.reduce((t,r,n)=>(t[r.id]=n,t),{});function LA(e){return e.isFiltered?Kje(e.root,e.isMatch.bind(e)):qje(e.root)}function qje(e){const t=[];function r(n){var a;n.level>=0&&t.push(n),n.isOpen&&((a=n.children)==null||a.forEach(r))}return r(e),t.forEach(JW),t}function Kje(e,t){const r={},n=[];function a(i){if(!i.isRoot&&t(i)){r[i.id]=!0;let d=i.parent;for(;d;)r[d.id]=!0,d=d.parent}if(i.children)for(let d of i.children)a(d)}function o(i){var c;i.level>=0&&r[i.id]&&n.push(i),i.isOpen&&((c=i.children)==null||c.forEach(o))}return a(e),o(e),n.forEach(JW),n}function JW(e,t){e.rowIndex=t}function fS(e){return{type:"EDIT",id:e}}function Gje(e={id:null},t){return t.type==="EDIT"?re(R({},e),{id:t.id}):e}function Nh(e){return{type:"FOCUS",id:e}}function Yje(){return{type:"TREE_BLUR"}}function Zje(e={id:null,treeFocused:!1},t){return t.type==="FOCUS"?re(R({},e),{id:t.id,treeFocused:!0}):t.type==="TREE_BLUR"?re(R({},e),{treeFocused:!1}):e}const uj={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 OA(e={},t){if(t.type==="VISIBILITY_OPEN")return re(R({},e),{[t.id]:!0});if(t.type==="VISIBILITY_CLOSE")return re(R({},e),{[t.id]:!1});if(t.type==="VISIBILITY_TOGGLE"){const r=e[t.id];return re(R({},e),{[t.id]:!r})}else return t.type==="VISIBILITY_CLEAR"?{}:e}function Xje(e={filtered:{},unfiltered:{}},t){return t.type.startsWith("VISIBILITY")?t.filtered?re(R({},e),{filtered:OA(e.filtered,t)}):re(R({},e),{unfiltered:OA(e.unfiltered,t)}):e}const Do={clear:()=>({type:"SELECTION_CLEAR"}),only:e=>({type:"SELECTION_ONLY",id:wd(e)}),add:e=>({type:"SELECTION_ADD",ids:(Array.isArray(e)?e:[e]).map(wd)}),remove:e=>({type:"SELECTION_REMOVE",ids:(Array.isArray(e)?e:[e]).map(wd)}),set:e=>R({type:"SELECTION_SET"},e),mostRecent:e=>({type:"SELECTION_MOST_RECENT",id:e===null?null:wd(e)}),anchor:e=>({type:"SELECTION_ANCHOR",id:e===null?null:wd(e)})};function Qje(e=Nv().nodes.selection,t){const r=e.ids;switch(t.type){case"SELECTION_CLEAR":return re(R({},e),{ids:new Set});case"SELECTION_ONLY":return re(R({},e),{ids:new Set([t.id])});case"SELECTION_ADD":return t.ids.length===0?e:(t.ids.forEach(n=>r.add(n)),re(R({},e),{ids:new Set(r)}));case"SELECTION_REMOVE":return t.ids.length===0?e:(t.ids.forEach(n=>r.delete(n)),re(R({},e),{ids:new Set(r)}));case"SELECTION_SET":return re(R({},e),{ids:t.ids,mostRecent:t.mostRecent,anchor:t.anchor});case"SELECTION_MOST_RECENT":return re(R({},e),{mostRecent:t.id});case"SELECTION_ANCHOR":return re(R({},e),{anchor:t.id});default:return e}}const{safeRun:ws,identify:Al,identifyNull:Ao}=uje,tp=class tp{constructor(t,r,n,a){St(this,"root");St(this,"visibleNodes");St(this,"visibleStartIndex",0);St(this,"visibleStopIndex",0);St(this,"idToIndex");this.store=t,this.props=r,this.list=n,this.listEl=a,this.root=DA(this),this.visibleNodes=LA(this),this.idToIndex=RA(this.visibleNodes)}update(t){this.props=t,this.root=DA(this),this.visibleNodes=LA(this),this.idToIndex=RA(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 r;const t=(r=this.props.searchMatch)!=null?r:(n,a)=>JSON.stringify(Object.values(n.data)).toLocaleLowerCase().includes(a.toLocaleLowerCase());return n=>t(n,this.searchTerm)}accessChildren(t){var n;const r=this.props.childrenAccessor||"children";return(n=og(t,r))!=null?n:null}accessId(t){const r=this.props.idAccessor||"id",n=og(t,r);if(!n)throw new Error("Data must contain an 'id' property or props.idAccessor must return a string");return n}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,r){var c;if(t===null||r===null)return[];const n=(c=this.indexOf(t))!=null?c:0,a=this.indexOf(r);if(a===null)return[];const o=Math.min(n,a),i=Math.max(n,a);return this.visibleNodes.slice(o,i+1)}indexOf(t){const r=OW(t);return r?this.idToIndex[r]:null}get editingId(){return this.state.nodes.edit.id}createInternal(){return this.create({type:"internal"})}createLeaf(){return this.create({type:"leaf"})}create(){return pe(this,arguments,function*(t={}){var i,c;const r=t.parentId===void 0?FW(this):t.parentId,n=(i=t.index)!=null?i:zW(this),a=(c=t.type)!=null?c:"leaf",o=yield ws(this.props.onCreate,{type:a,parentId:r,index:n,parentNode:this.get(r)});o&&(this.focus(o),setTimeout(()=>{this.edit(o).then(()=>{this.select(o),this.activate(o)})}))})}delete(t){return pe(this,null,function*(){if(!t)return;const n=(Array.isArray(t)?t:[t]).map(Al),a=n.map(o=>this.get(o)).filter(o=>!!o);yield ws(this.props.onDelete,{nodes:a,ids:n})})}edit(t){const r=Al(t);return this.resolveEdit({cancelled:!0}),this.scrollTo(r),this.dispatch(fS(r)),new Promise(n=>{tp.editPromise=n})}submit(t,r){return pe(this,null,function*(){if(!t)return;const n=Al(t);yield ws(this.props.onRename,{id:n,name:r,node:this.get(n)}),setTimeout(()=>{this.focus(this.get(n)),this.dispatch(fS(null)),this.resolveEdit({cancelled:!1,value:r}),this.onFocus()},300)})}reset(){this.dispatch(fS(null)),this.resolveEdit({cancelled:!0}),setTimeout(()=>this.onFocus())}activate(t){const r=this.get(Ao(t));r&&ws(this.props.onActivate,r)}resolveEdit(t){const r=tp.editPromise;r&&r(t),tp.editPromise=null}get selectedIds(){return this.state.nodes.selection.ids}get selectedNodes(){let t=[];for(let r of Array.from(this.selectedIds)){const n=this.get(r);n&&t.push(n)}return t}focus(t,r={}){t&&(this.props.selectionFollowsFocus?this.select(t):(this.dispatch(Nh(Al(t))),r.scroll!==!1&&this.scrollTo(t),this.focusedNode&&ws(this.props.onFocus,this.focusedNode)))}pageUp(){var o,i;const t=this.visibleStartIndex,n=this.visibleStopIndex-t;let a=(i=(o=this.focusedNode)==null?void 0:o.rowIndex)!=null?i:0;a>t?a=t:a=Math.max(t-n,0),this.focus(this.at(a))}pageDown(){var o,i;const t=this.visibleStartIndex,r=this.visibleStopIndex,n=r-t;let a=(i=(o=this.focusedNode)==null?void 0:o.rowIndex)!=null?i:0;a<r?a=r:a=Math.min(a+n,this.visibleNodes.length-1),this.focus(this.at(a))}select(t,r={}){if(!t)return;const n=r.focus!==!1,a=Al(t);n&&this.dispatch(Nh(a)),this.dispatch(Do.only(a)),this.dispatch(Do.anchor(a)),this.dispatch(Do.mostRecent(a)),this.scrollTo(a,r.align),this.focusedNode&&n&&ws(this.props.onFocus,this.focusedNode),ws(this.props.onSelect,this.selectedNodes)}deselect(t){if(!t)return;const r=Al(t);this.dispatch(Do.remove(r)),ws(this.props.onSelect,this.selectedNodes)}selectMulti(t){const r=this.get(Ao(t));r&&(this.dispatch(Nh(r.id)),this.dispatch(Do.add(r.id)),this.dispatch(Do.anchor(r.id)),this.dispatch(Do.mostRecent(r.id)),this.scrollTo(r),this.focusedNode&&ws(this.props.onFocus,this.focusedNode),ws(this.props.onSelect,this.selectedNodes))}selectMultiId(t){const r=this.get(Ao(t));r&&this.dispatch(Do.add(r.id))}selectContiguous(t){if(!t)return;const r=Al(t),{anchor:n,mostRecent:a}=this.state.nodes.selection;this.dispatch(Nh(r)),this.dispatch(Do.remove(this.nodesBetween(n,a))),this.dispatch(Do.add(this.nodesBetween(n,Ao(r)))),this.dispatch(Do.mostRecent(r)),this.scrollTo(r),this.focusedNode&&ws(this.props.onFocus,this.focusedNode),ws(this.props.onSelect,this.selectedNodes)}deselectAll(){this.setSelection({ids:[],anchor:null,mostRecent:null}),ws(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(Nh((t=this.lastNode)==null?void 0:t.id)),this.focusedNode&&ws(this.props.onFocus,this.focusedNode),ws(this.props.onSelect,this.selectedNodes)}setSelection(t){var o;const r=new Set((o=t.ids)==null?void 0:o.map(Al)),n=Ao(t.anchor),a=Ao(t.mostRecent);this.dispatch(Do.set({ids:r,anchor:n,mostRecent:a})),ws(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 a;const t=(a=this.get(this.state.dnd.parentId))!=null?a:this.root,r=this.dragNodes,n=this.props.disableDrop;for(const o of r)if(!o||!t||o.isInternal&&PW(t,o))return!1;return typeof n=="function"?!n({parentNode:t,dragNodes:this.dragNodes,index:this.state.dnd.index}):typeof n=="string"?!t.data[n]:typeof n=="boolean"?!n:!0}hideCursor(){this.dispatch(lm.cursor({type:"none"}))}showCursor(t){this.dispatch(lm.cursor(t))}open(t){const r=Ao(t);r&&(this.isOpen(r)||(this.dispatch(uj.open(r,this.isFiltered)),ws(this.props.onFolderOpen,r)))}close(t){const r=Ao(t);r&&this.isOpen(r)&&(this.dispatch(uj.close(r,this.isFiltered)),ws(this.props.onFolderClose,r))}toggle(t){const r=Ao(t);if(r)return this.isOpen(r)?this.close(r):this.open(r)}openParents(t){const r=Ao(t);if(!r)return;const n=QN(this.root,r);let a=n==null?void 0:n.parent;for(;a;)this.open(a.id),a=a.parent}openSiblings(t){const r=t.parent;if(!r)this.toggle(t.id);else if(r.children){const n=t.isOpen;for(let a of r.children)a.isInternal&&(n?this.close(a.id):this.open(a.id));this.scrollTo(this.focusedNode)}}openAll(){C2(this.root,t=>{t.isInternal&&t.open()})}closeAll(){C2(this.root,t=>{t.isInternal&&t.close()})}scrollTo(t,r="smart"){if(!t)return;const n=Al(t);return this.openParents(n),$W(()=>n in this.idToIndex).then(()=>{var o;const a=this.idToIndex[n];a!==void 0&&((o=this.list.current)==null||o.scrollToItem(a,r))}).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 n,a,o;if(!t)return!1;if(t===_v)return!0;const r=(n=this.props.openByDefault)!=null?n:!0;return this.isFiltered?(a=this.state.nodes.open.filtered[t])!=null?a:!0:(o=this.state.nodes.open.unfiltered[t])!=null?o:r}isEditable(t){const r=this.props.disableEdit||(()=>!1);return!og(t,r)}isDraggable(t){const r=this.props.disableDrag||(()=>!1);return!og(t,r)}isDragging(t){const r=Ao(t);return r?this.state.nodes.drag.id===r:!1}isFocused(t){return this.hasFocus&&this.state.nodes.focus.id===t}isMatch(t){return this.matchFn(t)}willReceiveDrop(t){const r=Ao(t);return r?r===this.state.nodes.drag.idWillReceiveDrop:!1}onSearchClear(){var t,r;(r=(t=this.props).onSearchClear)==null||r.call(t)}onFocus(){const t=this.focusedNode||this.firstNode;t&&this.dispatch(Nh(t.id))}onBlur(){this.dispatch(Yje())}onItemsRendered(t){this.visibleStartIndex=t.visibleStartIndex,this.visibleStopIndex=t.visibleStopIndex}get renderContainer(){return this.props.renderContainer||QW}get renderRow(){return this.props.renderRow||Vje}get renderNode(){return this.props.children||Bje}get renderDragPreview(){return this.props.renderDragPreview||NW}get renderCursor(){return this.props.renderCursor||Hje}};St(tp,"editPromise");let dj=tp;function Jje(e={id:null,idWillReceiveDrop:null},t){switch(t.type){case"DND_DRAG_START":return re(R({},e),{id:t.id});case"DND_DRAG_END":return re(R({},e),{id:null});case"DND_CURSOR":const r=t.cursor;return r.type==="highlight"&&r.id!==e.idWillReceiveDrop?re(R({},e),{idWillReceiveDrop:r.id}):r.type!=="highlight"&&e.idWillReceiveDrop!==null?re(R({},e),{idWillReceiveDrop:null}):e;default:return e}}const eEe=wA({nodes:wA({focus:Zje,edit:Gje,open:Xje,selection:Qje,drag:Jje}),dnd:aje}),tEe=Nv();function rEe({treeProps:e,imperativeHandle:t,children:r}){const n=m.useRef(null),a=m.useRef(null),o=m.useRef(WN(eEe,Nv(e))),i=IO.useSyncExternalStore(o.current.subscribe,o.current.getState,()=>tEe),c=m.useMemo(()=>new dj(o.current,e,n,a),[]),d=m.useRef(0);return m.useMemo(()=>{d.current+=1,c.update(e)},[...Object.values(e),i.nodes.open]),m.useImperativeHandle(t,()=>c),m.useEffect(()=>{c.props.selection?c.select(c.props.selection,{focus:!1}):c.deselectAll()},[c.props.selection]),m.useEffect(()=>{c.props.selectedIds&&c.props.selectedIds.length>0?c.setSelectIds(c.props.selectedIds):c.deselectAll()},[c.props.selectedIds]),m.useEffect(()=>{c.props.searchTerm||o.current.dispatch(uj.clear(!0))},[c.props.searchTerm]),s.jsx(CW.Provider,{value:c,children:s.jsx(EW.Provider,{value:d.current,children:s.jsx(SW.Provider,{value:i.nodes,children:s.jsx(jW.Provider,{value:i.dnd,children:s.jsx(v4e,re(R({backend:Dje,options:{rootElement:c.props.dndRootElement||void 0}},e.dndManager&&{manager:e.dndManager}),{children:r}))})})})})}function nEe(){const t=Ra().props.renderContainer||QW;return s.jsx(s.Fragment,{children:s.jsx(t,{})})}function sEe(e,t){const r=JSe(e);return s.jsxs(rEe,{treeProps:r,imperativeHandle:t,children:[s.jsx(vje,{children:s.jsx(nEe,{})}),s.jsx(sje,{})]})}const aEe=m.forwardRef(sEe);function eV(){const[e,t]=m.useState([]);return m.useMemo(()=>new cW(e),[e]),{data:e,setData:t}}function IA({children:e}){const{currentCollectionId:t,collections:r}=xt(kn),{selectCollectionById:n}=V6(),a=ha(),{t:o}=Tt(),{isShowDisabledCollectionsOnNavBarMenu:i}=xt(Rn);return s.jsxs(Dr,{children:[s.jsx(Ar,{className:"flex m-0 p-0",asChild:!0,children:e}),s.jsxs(_r,{forceMount:!0,sideOffset:8,align:"center",children:[s.jsx(ze,{disabled:!0,className:"flex justify-center py-0.5",children:o("Switch collections",{ns:"collections"})}),s.jsx(rr,{}),s.jsx(Wr,{className:"code-filter",style:{height:"auto",maxHeight:"400px",width:"100%",minWidth:"200px"},autoHide:!1,children:s.jsx(The,{value:t!=null?t:"",children:r.filter(({isEnabled:c})=>i||c).sort((c,d)=>{if(i){if(c.isEnabled&&!d.isEnabled)return-1;if(!c.isEnabled&&d.isEnabled)return 1}return c.createdAt-d.createdAt}).map(({collectionId:c,isEnabled:d,title:f,isSelected:h})=>s.jsx(mF,{value:c,disabled:!d,onClick:()=>{n({selectCollection:{collectionId:c}})},children:s.jsx("span",{className:h?"font-semibold":"",children:f})},c))})}),s.jsx(rr,{}),s.jsxs(ze,{onClick:()=>{a("/app-settings/collections",{replace:!0})},children:[s.jsx(Tf,{className:"mr-2",size:14}),o("Manage Collections",{ns:"collections"})]})]})]})}const oEe="_node_1usvv_1",iEe="_dropCursor_1usvv_55",lEe="_mainContent_1usvv_61",cEe="_mobileWarning_1usvv_68",uEe="_content_1usvv_83",dEe="_sidebar_1usvv_89",tV={node:oEe,dropCursor:iEe,mainContent:lEe,mobileWarning:cEe,content:uEe,sidebar:dEe};function fEe({top:e,left:t}){return s.jsx("div",{className:gr(tV.dropCursor,"border-slate-400 border-dashed border-t-2"),style:{top:e-1,left:t}})}const hEe={position:"fixed",pointerEvents:"none",zIndex:100,left:0,top:0,width:"100%",height:"100%"},pEe=e=>{if(!e)return{display:"none"};const{x:t,y:r}=e;return{transform:"translate(".concat(t,"px, ").concat(r,"px)")}},mEe=e=>{if(!e)return{display:"none"};const{x:t,y:r}=e;return{transform:"translate(".concat(t+10,"px, ").concat(r+10,"px)")}},gEe=m.memo(function(t){return t.isDragging?s.jsx("div",{style:hEe,children:t.children}):null});function vEe(e){return s.jsx("div",{className:"row preview",style:pEe(e.offset),children:e.children})}function xEe(e){const{count:t,mouse:r}=e;return t>1?s.jsx("div",{className:"selected-count",style:mEe(r),children:t}):null}const yEe=m.memo(function(t){const r=Ra(),n=r.get(t.id);return n?s.jsx(r.renderNode,{preview:!0,node:n,style:{paddingLeft:n.level*r.indent,opacity:.5,background:"transparent"},tree:r}):null});function bEe({offset:e,mouse:t,id:r,dragIds:n,isDragging:a}){return s.jsxs(gEe,{isDragging:a,children:[s.jsx(vEe,{offset:e,children:s.jsx(yEe,{id:r,dragIds:n})}),s.jsx(xEe,{mouse:t,count:n.length})]})}function wEe({node:e}){return s.jsx(Iu,{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 kEe({node:e,style:t,dragHandle:r}){const{t:n}=Tt();return s.jsxs("div",{ref:r,style:t,className:gr(tV.node,e.state,"flex items-center w-full transition-all duration-100 ease-in"),onClick:()=>e.isInternal&&e.toggle(),children:[e.level>0&&s.jsx("div",{}),s.jsxs("div",{children:[!e.isLeaf&&!e.isOpen&&s.jsx(Vp,{width:17,height:17,className:"mr-2"}),!e.isLeaf&&e.isOpen&&s.jsx(v$,{width:17,height:17,className:"mr-2"})]}),s.jsx("div",{className:"flex items-center justify-start w-full overflow-hidden mr-4",children:e.data.isSeparator?s.jsx("hr",{className:"h-[1px] border-t-0 bg-slate-600 opacity-30 dark:opacity-70 w-full"}):s.jsx(s.Fragment,{children:e.isEditing?s.jsx(wEe,{node:e}):s.jsxs("div",{className:"overflow-hidden overflow-ellipsis text-[15px] ".concat(e.data.isDisabled?"text-gray-500/60":""," "),children:[e.data.name,e.data.isClip&&s.jsx("div",{title:n("Menu is a link to a clip",{ns:"menus"}),className:"inline-block",children:s.jsx(Jv,{size:13,className:"inline ml-2 mt-[-3px] dark:text-slate-500 text-slate-400"})})]})})}),s.jsx(CEe,{node:e})]})}function CEe({node:e}){return e.isLeaf?s.jsx("div",{}):e.isOpen?s.jsx(Nr,{width:22,className:"mr-3"}):s.jsx(ym,{width:22,className:"mr-3"})}function SEe({node:e,attrs:t,innerRef:r,children:n}){const a=hS.value===e.id,{t:o}=Tt();return m.createElement("div",re(R({},t),{key:e.id,onMouseEnter:()=>{hS.value=e.id},onMouseLeave:()=>{hS.value=null},ref:r,className:"".concat(a?"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){pl(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(),pl(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()}}),n)}function jEe(){const{t:e}=Tt();XN();const t=Ra();return s.jsxs("div",{style:{width:t.width,minHeight:0,minWidth:0},onContextMenu:t.props.onContextMenu,onClick:t.props.onClick,tabIndex:0,children:[t.isFiltered&&s.jsx("div",{className:"text-slate-400 text-sm rounded-sm mb-1 mt-1 flex items-center justify-center",children:s.jsx($e,{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:s.jsx(J,{className:"text-xs text-center bg-blue-200 rounded-full px-3 cursor-pointer pointer-events-auto",children:t.visibleNodes.length?s.jsxs(s.Fragment,{children:[t.visibleNodes.length<100?t.visibleNodes.length:"100+"," ",e("found",{ns:"common"})]}):s.jsx(s.Fragment,{children:e("Nothing found",{ns:"common"})})})})}),s.jsx(WU,{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:r=>{var n;return((n=t.visibleNodes[r])==null?void 0:n.id)||r},outerElementType:ZW,innerElementType:YW,onItemsRendered:t.onItemsRendered.bind(t),ref:t.list,children:XW})]})}const hS=bt(null);function EEe({itemId:e,isExpanded:t,isActive:r,isDisabled:n,isSeparator:a,isCode:o,isImage:i,isImageData:c,isLink:d,isMasked:f,isPath:h,hasMaskedWords:p,hasEmoji:g,isFolder:S,isVideo:b,isDelete:v,detectedLanguage:w,imagePathFullRes:C,imageDataUrl:j,imageHash:E,imageWidthHeight:N,imageType:M,arrLinks:P,isCopyOrPaste:D,pathType:A,menuName:O,isDark:$,value:H=""}){const{t:z}=Tt(),I=vs(!1),{valuePreview:W,morePreviewLines:_,morePreviewChars:K}=gN(H),V=H==null?void 0:H.trim(),U=vs(!1),X=vs(""),{metadataLinkByItemId:G}=d1(d,e),F=d&&!!(G!=null&&G.linkTitle&&(G!=null&&G.linkDomain));m.useEffect(()=>{t.value&&(I.value=!1)},[t.value]),m.useEffect(()=>{h&&kr("check_path",{path:V}).then(()=>{X.value=A}).catch(()=>{X.value="Error"})},[h]);const q=V.length===0;return s.jsxs(Of,{className:gr(D?"bg-green-50 dark:bg-green-900/40":"bg-slate-50/50 dark:bg-slate-900",v&&"!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:[s.jsx(Q,{className:"mb-0.5 ".concat(r?"":"opacity-40"),children:h?s.jsx(g1,{theme:$?$i.vsDark:$i.github,code:V,language:"path",children:({className:Y,style:se,tokens:ee,getLineProps:ae,getTokenProps:oe})=>s.jsx("code",{className:"".concat(Y," ").concat(X.value==="Error"?" line-through decoration-gray-300":""),style:se,children:ee.map((le,ue)=>s.jsx("div",re(R({},ae({line:le})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:le.map((ce,he)=>s.jsx("span",re(R({},oe({token:ce})),{className:"".concat(X.value==="Error"?"opacity-60":""," select-text"),children:ce.content}),he))}),ue))})}):c?s.jsxs(Q,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[s.jsx(Q,{className:"flex px-0 py-1 items-center justify-center",children:s.jsx(zi,{src:V,hasError:U.value,onErrorCallback:()=>{U.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),s.jsx("code",{className:"pb-0.5 select-none",children:W})]}):d&&i?s.jsxs(Q,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[s.jsx(Q,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:s.jsx(zi,{src:wn(V),hasError:U.value,onErrorCallback:()=>{U.value=!0},draggable:!1,decoding:"async",className:"max-h-[200px] min-h-10"})}),s.jsx("code",{className:"pb-0.5",children:gf(V,P!=null?P:"")})]}):i?s.jsxs(Q,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[s.jsx("img",{src:C&&(M==="webp"||M==="gif")?"".concat(Vd(C),"?").concat(E):j&&C?j:!j&&!C?Jd:Tg,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"}),s.jsx(Q,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:s.jsxs(Q,{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," ",M]})})]}):w&&o&&W?s.jsx(Q,{className:"text-ellipsis self-start text-sm w-full select-text",children:s.jsx(la,{isDark:$,isLargeView:!1,isShowMore:t.value||_==null,isWrapped:I.value,value:t.value?V:W,language:w})}):q?s.jsx(Q,{className:"mb-0.5",children:s.jsx(mv,{className:"self-start text-sm font-normal select-text !text-gray-400",children:O})}):s.jsx(Yw,{isExpanded:t.value,isWrapped:I.value,isImageData:c,isLargeView:!1,isCode:o,isMasked:f,isImage:i,isDark:$,trimmedValue:V,valuePreview:W,hasLinkCard:F,metadataLinkByItemId:G,metadataLinkImageWidth:12,morePreviewLines:_,searchTerm:""})}),s.jsxs(ve,{className:"justify-between select-none",children:[(_||K)&&r&&!n?s.jsxs(Q,{className:"flex flex-row items-center rounded",children:[s.jsx(Q,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{t.value=!t.value},children:s.jsx($e,{text:t.value?"":z("Show all",{ns:"common"}),isCompact:!0,isDisabled:t.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:t.value?s.jsxs(s.Fragment,{children:["- ",z("show less",{ns:"common"})]}):K?s.jsxs(s.Fragment,{children:["+",K," ",z("chars",{ns:"common"})]}):_&&s.jsxs(s.Fragment,{children:["+",_," ",z("lines",{ns:"common"})]})})}),s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{I.value=!I.value},children:s.jsx($e,{text:I.value?z("No Wrap",{ns:"common"}):z("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:I.value?s.jsx(rm,{width:20,height:20}):s.jsx(nm,{width:20,height:20})})})]}):r?n?s.jsx(Q,{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"})}):s.jsx(Q,{}):s.jsx(Q,{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"})}),s.jsxs(Q,{className:"flex flex-row gap-1 items-center justify-end ",children:[q&&!a&&!S&&!i?s.jsxs(s.Fragment,{children:[s.jsx(Q,{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"})}),s.jsx(Q,{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"})})]}):a?s.jsx(Q,{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"})}):S?s.jsx(Q,{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?s.jsx(Q,{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"})}):w?s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:w}):f||p?s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(p?"px-0.5":"px-1.5"),children:f?z("Type:::Secret",{ns:"common"}):s.jsx(uc,{size:16})}):c?s.jsx(Q,{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"})}):!d&&!h&&s.jsx(Q,{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"})}),d?s.jsx(Q,{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"}):ec(V)?z("Type:::Email",{ns:"common"}):z("Type:::Link",{ns:"common"})}):h&&X.value?s.jsx(Q,{className:"".concat(X.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:X.value==="Error"?s.jsx($e,{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:X.value}):X.value}):g&&s.jsx(Q,{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 rV({arrLinks:e=[],clipId:t,detectedLanguage:r,hasEmoji:n,hasMaskedWords:a,imageDataUrl:o,imageHash:i,imagePathFullRes:c,imageType:d,imageWidthHeight:f,isCode:h,isCommand:p,isWebRequest:g,isWebScraping:S,isExpanded:b,isImage:v,isImageData:w,isLargeView:C,isLink:j,isForm:E,isTemplate:N,isMasked:M,isPath:P,isVideo:D,isCopyOrPaste:A,isDark:O,isDelete:$,clipName:H,formTemplateOptions:z,commandRequestOutput:I,isCommandRequestRunError:W,commandRequestOutputLastRunAt:_,requestOptions:K,pathType:V,value:U=""}){var we,Se,Ae;const{t:X}=Tt(),G=vs(!1),F=vs(!1),q=vs(""),{metadataLinkByItemId:Y}=d1(j,t),se=j&&!!(Y!=null&&Y.linkTitle&&(Y!=null&&Y.linkDomain)),ee=vs({method:"GET",headers:[],body:"",scrapingRules:[],filters:[],auth:{}}),{valuePreview:ae,morePreviewLines:oe,morePreviewChars:le}=gN(U,v||w,C||j||P||p||g||S);m.useEffect(()=>{if(K)try{const je=JSON.parse(K);ee.value=R(R({},ee.value),je)}catch(je){}},[K]);const ue=U==null?void 0:U.trim();m.useEffect(()=>{b.value&&(F.value=!1)},[b.value]),m.useEffect(()=>{P&&_s("check_path",{path:ue}).then(()=>{q.value=V}).catch(()=>{q.value="Error"})},[P]);const ce=C?"max-h-[600px]":"max-h-[300px]",he=ue.length===0;return s.jsxs(Of,{className:gr(A?"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",$&&"!bg-red-50 dark:!bg-red-900"),children:[s.jsx(Q,{className:"mb-0.5",children:P?s.jsx(g1,{theme:O?$i.vsDark:$i.github,code:ue,language:"path",children:({className:je,style:Le,tokens:Ee,getLineProps:He,getTokenProps:Qe})=>s.jsx("code",{className:"".concat(je," ").concat(q.value==="Error"?" line-through decoration-gray-300":""),style:Le,children:Ee.map((Ze,mt)=>s.jsx("div",re(R({},He({line:Ze})),{className:"overflow-hidden text-ellipsis whitespace-pre-wrap",children:Ze.map((Ke,Lt)=>s.jsx("span",re(R({},Qe({token:Ke})),{className:"".concat(q.value==="Error"?"opacity-60":""," select-text"),children:Ke.content}),Lt))}),mt))})}):w?s.jsxs(Q,{className:"text-ellipsis self-start text-xs overflow-hidden cursor-pointer",children:[s.jsx(Q,{className:"flex px-0 py-1 items-center justify-center",children:s.jsx(zi,{src:ue,hasError:G.value,onErrorCallback:()=>{G.value=!0},draggable:!1,decoding:"async",className:"".concat(ce," min-h-10")})}),s.jsx("code",{className:"pb-0.5 select-none",children:ae})]}):j&&v?s.jsxs(Q,{className:"text-ellipsis self-start text-xs cursor-pointer overflow-hidden",children:[s.jsx(Q,{className:"flex px-0 pt-1.5 pb-0.5 items-center justify-center",children:s.jsx(zi,{src:wn(ue),hasError:G.value,onErrorCallback:()=>{G.value=!0},draggable:!1,decoding:"async",className:"".concat(ce," min-h-10")})}),s.jsx("code",{className:"pb-0.5",children:gf(ue,e)})]}):v?s.jsxs(Q,{className:"px-0 py-1.5 flex items-center justify-center relative animate-in fade-in duration-300 !fill-mode-forwards",children:[s.jsx("img",{src:c&&(d==="webp"||d==="gif")?"".concat(Vd(c),"?").concat(i):o&&c?o:!o&&!c?Jd:Tg,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"}),s.jsx(Q,{className:"absolute left-0 bottom-1 flex flex-row gap-1 rounded items-center pb-0.5 pl-0.5",children:s.jsxs(Q,{className:"text-xs text-muted-foreground bg-slate-50 dark:bg-slate-950 px-1.5 rounded transform duration-300",title:X("Image size in pixels",{ns:"common"}),children:[f," ",d]})})]}):r&&h&&ae?s.jsx(Q,{className:"text-ellipsis self-start text-sm w-full select-text",children:s.jsx(la,{isDark:O,isLargeView:C,isShowMore:b.value||oe==null,isWrapped:F.value,value:b.value?ue:ae,language:r})}):p&&ae?s.jsxs(Q,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[s.jsx(la,{isDark:O,isLargeView:C,isCommand:!0,isShowMore:!0,isWrapped:F.value,autoHideScrollbar:!0,value:ue,language:"shell"}),I&&s.jsxs(Q,{className:"".concat(W?"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:[s.jsx(la,{isDark:O,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:F.value,value:I,language:"shell"}),_&&s.jsx(Q,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:s.jsx($e,{text:"".concat(X("Last run",{ns:"dashboard"}),": ").concat(xf(_,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Ou().format(_,"mini-minute-now",{round:"floor"})})})]})]}):(g||S)&&ae?s.jsxs(Q,{className:"text-ellipsis self-start text-sm w-full select-text pt-0.5",children:[s.jsx(la,{isDark:O,isLargeView:C,isShowMore:!0,isWrapped:F.value,value:ue,autoHideScrollbar:!0,webRequestMethod:g?ee.value.method:"URL",language:"shell"}),I&&s.jsxs(Q,{className:"".concat(W?"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:[s.jsx(la,{isDark:O,maxHeight:100,isLargeView:!1,isShowMore:!0,isWrapped:F.value,value:I,language:W?"text":"json"}),_&&s.jsx(Q,{className:"text-xs text-muted-foreground rounded px-1 bg-slate-50 dark:bg-slate-900/80 absolute bottom-1 right-1",children:s.jsx($e,{text:"".concat(X("Last run",{ns:"dashboard"}),": ").concat(xf(_,"PPpp")),className:"text-xs bg-slate-50 dark:bg-slate-900 text-center",maxWidth:300,isCompact:!0,side:"bottom",sideOffset:10,children:Ou().format(_,"mini-minute-now",{round:"floor"})})})]})]}):E?s.jsx(Q,{className:"self-start text-sm w-full select-text",children:s.jsx(AB,{formTemplateOptions:z,clipId:t})}):N?s.jsx(Q,{className:"self-start text-sm w-full select-text",children:s.jsx(FB,{formTemplateOptions:z,clipId:t,value:U})}):he?s.jsx("code",{className:"text-gray-300",children:H}):s.jsx(Yw,{isExpanded:b.value,isWrapped:F.value,isImageData:w,isLargeView:C,isCode:h,isMasked:M,isImage:v,trimmedValue:ue,valuePreview:ae,isDark:O,hasLinkCard:se,metadataLinkByItemId:Y,metadataLinkImageWidth:12,morePreviewLines:oe,searchTerm:""})}),s.jsxs(ve,{className:"justify-between select-none",children:[(g||p||S)&&I?s.jsx(Q,{className:"flex flex-row items-center rounded",children:s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{F.value=!F.value},children:s.jsx($e,{text:F.value?"No Wrap":"Lines Wrap",delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:F.value?s.jsx(rm,{width:20,height:20}):s.jsx(nm,{width:20,height:20})})})}):oe||le?s.jsxs(Q,{className:"flex flex-row items-center rounded",children:[s.jsx(Q,{className:"text-xs text-muted-foreground px-0 transform duration-300 cursor-pointer",onClick:()=>{b.value=!b.value},children:s.jsx($e,{text:b.value?"":X("Show all",{ns:"common"}),isCompact:!0,isDisabled:b.value,delayDuration:2e3,side:"bottom",sideOffset:10,children:b.value?s.jsxs(s.Fragment,{children:["- ",X("show less",{ns:"common"})]}):le?s.jsxs(s.Fragment,{children:["+",le," ",X("chars",{ns:"common"})]}):oe&&s.jsxs(s.Fragment,{children:["+",oe," ",X("lines",{ns:"common"})]})})}),s.jsx(Q,{className:"text-xs text-muted-foreground px-1.5 transform duration-300 cursor-pointer",onClick:()=>{F.value=!F.value},children:s.jsx($e,{text:F.value?X("No Wrap",{ns:"common"}):X("Lines Wrap",{ns:"common"}),delayDuration:2e3,isCompact:!0,side:"bottom",sideOffset:10,children:F.value?s.jsx(rm,{width:20,height:20}):s.jsx(nm,{width:20,height:20})})})]}):s.jsx(Q,{}),s.jsxs(Q,{className:"flex flex-row gap-1 items-center justify-end ",children:[p&&s.jsx(Q,{className:"".concat(W?"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:W?X("Command error",{ns:"dashboard"}):X("Type:::Command",{ns:"dashboard"})}),(g||S)&&s.jsxs(ve,{className:"gap-1",children:[s.jsxs(Q,{className:"".concat(W?"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&&s.jsx("span",{children:W?X("Request error",{ns:"dashboard"}):X("Type:::Request",{ns:"dashboard"})}),S&&s.jsx("span",{children:W?X("Error",{ns:"dashboard"}):X("Type:::Scraper",{ns:"dashboard"})})]}),S&&ee.value.scrapingRules&&((we=ee.value.scrapingRules)==null?void 0:we.filter(je=>je.isEnable).length)>0&&s.jsxs(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Headers",{ns:"dashboard"}),s.jsx("span",{className:"ml-1 font-mono",children:ee.value.headers.filter(je=>je.isEnable).length})]}),g&&ee.value.headers.filter(je=>je.isEnable).length>0&&s.jsxs(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Headers",{ns:"dashboard"}),s.jsx("span",{className:"ml-1 font-mono",children:ee.value.headers.filter(je=>je.isEnable).length})]}),g&&((Se=ee.value.auth)==null?void 0:Se.isEnable)&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:(Ae=ee.value.auth)==null?void 0:Ae.type}),g&&ee.value.filters.filter(je=>je.isEnable).length>0&&s.jsxs(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Filters",{ns:"dashboard"}),s.jsx("span",{className:"ml-1 font-mono",children:ee.value.filters.filter(je=>je.isEnable).length})]})]}),(M||a)&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm ".concat(a?"px-0.5":"px-1.5"),children:M?X("Type:::Secret",{ns:"common"}):s.jsx(uc,{size:16})}),r&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:r}),j&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:D?X("Type:::Video",{ns:"common"}):ec(ue)?X("Type:::Email",{ns:"common"}):X("Type:::Link",{ns:"common"})}),P&&q.value&&s.jsx(Q,{className:"".concat(q.value==="Error"?"bg-red-300":"bg-slate-200"," text-xs rounded-sm px-1.5"),children:q.value==="Error"?s.jsx($e,{text:X("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}),n&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Emoji",{ns:"common"})}),he&&!E&&!v&&s.jsx(Q,{className:"bg-yellow-200 text-yellow-700 dark:bg-yellow-800 dark:text-yellow-400 text-xs rounded-sm px-1.5",children:X("Type:::Empty",{ns:"common"})}),w&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Image Base64",{ns:"common"})}),E&&s.jsx(Q,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:X("Type:::Auto Fill",{ns:"common"})}),s.jsxs(ve,{className:"bg-slate-200 text-slate-700 dark:bg-slate-600 dark:text-slate-300 text-xs rounded-sm px-1.5",children:[X("Type:::Clip",{ns:"common"}),s.jsx(Jv,{size:11,className:"ml-1"})]})]})]})]})}m.memo(rV);function NEe({isDisabled:e,isActive:t,isMenuEdit:r,isSeparator:n,isMenu:a,isFolder:o,item:i,menuName:c,isDark:d,deletingMenuItemIds:f,isClip:h}){var F,q,Y;const{clipItems:p}=xt(kn),g=Ve(!1),[S]=Rf({}),[b]=Lf({}),{itemId:v,isImage:w,isImageData:C,isPath:j,isLink:E,isCode:N,isText:M,detectedLanguage:P,imagePathFullRes:D,imageDataUrl:A,imageHash:O,isMasked:$,isVideo:H,hasMaskedWords:z,hasEmoji:I,imageWidth:W,imageHeight:_,imageType:K,value:V}=i,U=m.useMemo(()=>h?p.find(se=>se.itemId===v):null,[h,p,v]),X=m.useMemo(()=>{var se,ee;return(ee=(se=f.value)==null?void 0:se.includes(v))!=null?ee:!1},[f.value,v]),G=m.useMemo(()=>{if(!U||!U.links)return[];let se=[];if(U.links)try{se=JSON.parse(U.links)}catch(ee){se=[]}return se},[U]);return r?s.jsx(Awe,{isClip:h,itemId:v,value:V,isCode:N,detectedLanguage:P,isText:M,isMenu:a,isImage:w,isMasked:$,isVideo:H,isDelete:X,hasEmoji:I,imageDataUrl:A,isDark:d,isPath:j,isLink:E,deletingMenuItemIds:f,onCancel:()=>{Kd()}}):h&&(U==null?void 0:U.itemId)===v?s.jsx(rV,{isImage:U.isImage,isLink:U.isLink,isVideo:U.isVideo,isPath:U.isPath,isForm:U.isForm,isTemplate:U.isTemplate,isCopyOrPaste:S===v||b===v,isCode:U.isCode,clipName:U.name,isCommand:U.isCommand,isWebRequest:U.isWebRequest,isWebScraping:U.isWebScraping,isExpanded:g,isDark:d,arrLinks:G,isMasked:U.isMasked,hasMaskedWords:U.hasMaskedWords,detectedLanguage:U.detectedLanguage,hasEmoji:U.hasEmoji,pathType:U.pathType,isImageData:U.isImageData,imageHash:U.imageHash,imageType:U.imageType,imageScale:U.imageScale,imagePathFullRes:U.imagePathFullRes,imageDataUrl:U.imageDataUrl,isLargeView:!1,isDelete:X,formTemplateOptions:U.formTemplateOptions,commandRequestOutput:(F=U.commandRequestOutput)==null?void 0:F.replace("[Err]",""),isCommandRequestRunError:!!((q=U.commandRequestOutput)!=null&&q.startsWith("[Err]")),commandRequestOutputLastRunAt:U.commandRequestLastRunAt,requestOptions:U.requestOptions,imageWidthHeight:U.imageWidth?"".concat(U.imageWidth,"x").concat(U.imageHeight):null,clipId:v,value:U.value}):s.jsx(EEe,{itemId:v,isDark:d,isDisabled:e,isActive:t,isCopyOrPaste:S===v||b===v,isFolder:o,isImageData:C,isCode:N,isSeparator:n,menuName:c,isExpanded:g,isImage:w,isPath:j,isLink:E,isVideo:H,isDelete:X,isMasked:$,hasMaskedWords:z,hasEmoji:I,pathType:i.pathType,detectedLanguage:P,imagePathFullRes:D,imageDataUrl:A,imageHash:O,imageWidthHeight:W?"".concat(W,"x").concat(_):null,imageType:K,arrLinks:i.links?(Y=JSON.parse(i.links))!=null?Y:[]:[],value:V})}const _Ee=({menuItems:e,selectedItemIds:t,onDelete:r,showMultiSelectItems:n,collectionId:a,setSelectedItemIds:o})=>{const{t:i}=Tt(),{deleteMenuItemsByIds:c}=Qme(),{updateMenuItemsByIds:d}=Gme();Is(["alt+s"],()=>{n.value=!n.value}),Is(["alt+d"],()=>{o([])});const f=m.useMemo(()=>t.filter(b=>{const v=e.find(({itemId:w})=>w===b);return v&&e.filter(({parentId:w})=>w===v.itemId).length===0}),[t,e]),h=m.useMemo(()=>t.filter(b=>{const v=e.find(({itemId:w})=>w===b);return v&&v.isActive===!1}),[t,e]),p=m.useMemo(()=>t.filter(b=>{const v=e.find(({itemId:w})=>w===b);return v&&v.isActive===!0}),[t,e]),g=m.useMemo(()=>t.filter(b=>{const v=e.find(({itemId:w})=>w===b);return v&&v.isDisabled===!1}),[t,e]),S=m.useMemo(()=>t.filter(b=>{const v=e.find(({itemId:w})=>w===b);return v&&v.isDisabled===!0}),[t,e]);return s.jsxs(Dr,{onOpenChange:()=>{},children:[s.jsx(Ar,{asChild:!0,children:s.jsxs(ke,{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:[s.jsx(qE,{className:"stroke-[1.3px]",size:22}),t.length>1&&s.jsx(ft,{variant:"slate",className:"absolute right-[-10px] top-[-10px]",children:t.length})]})}),s.jsx(_r,{sideOffset:10,align:"start",shadow:"shadow-[0_-2px_12px_0_rgb(0,0,0,0.1)]",children:s.jsxs(pF,{children:[n.value?s.jsxs(ze,{onClick:()=>{n.value=!1},children:[s.jsx(p$,{className:"mr-2 h-4 w-4"}),s.jsx(J,{children:i("Hide Muli Select",{ns:"common"})}),s.jsx(ml,{children:s.jsx(Ga,{keys:"ALT+S"})})]}):s.jsxs(ze,{onClick:()=>{n.value=!0},children:[s.jsx(h$,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-2",children:i("Multi Select",{ns:"common"})}),s.jsx(ml,{children:s.jsx(Ga,{keys:"ALT+S"})})]}),s.jsxs(ze,{disabled:t.length===0,onClick:()=>{o([])},children:[s.jsx(IE,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:i("Deselect All",{ns:"common"})}),s.jsx(ml,{children:s.jsx(Ga,{keys:"ALT+D"})})]}),s.jsx(rr,{}),s.jsxs(ze,{onClick:()=>{kr("build_system_menu")},children:[s.jsx(goe,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:i("Rebuild Menu",{ns:"common"})})]}),s.jsx(rr,{}),S.length>0&&s.jsxs(ze,{onClick:()=>pe(void 0,null,function*(){yield d({updatedData:{isDisabled:!1},itemIds:t}),o([]),n.value=!1}),children:[s.jsx(k$,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:i("Make Enabled",{ns:"common"})}),s.jsx(ft,{variant:"slate",className:"ml-1 py-0 font-semibold",children:S.length})]}),g.length>0&&s.jsxs(ze,{onClick:()=>pe(void 0,null,function*(){yield d({updatedData:{isActive:!1},itemIds:t}),o([]),n.value=!1}),children:[s.jsx(Kp,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:i("Make Disabled",{ns:"common"})}),s.jsx(ft,{variant:"slate",className:"ml-1 py-0 font-semibold",children:g.length})]}),(g.length>0||S.length>0)&&s.jsx(rr,{}),p.length>0&&s.jsxs(ze,{onClick:()=>pe(void 0,null,function*(){yield d({updatedData:{isActive:!1},itemIds:t}),o([]),n.value=!1}),children:[s.jsx(Qv,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:i("Make Inactive",{ns:"common"})}),s.jsx(ft,{variant:"slate",className:"ml-1 py-0 font-semibold",children:p.length})]}),h.length>0&&s.jsxs(ze,{onClick:()=>pe(void 0,null,function*(){yield d({updatedData:{isActive:!0},itemIds:t}),o([]),n.value=!1}),children:[s.jsx(bm,{className:"mr-2 h-4 w-4"}),s.jsx(J,{className:"mr-1",children:i("Make Active",{ns:"common"})}),s.jsx(ft,{variant:"slate",className:"ml-1 py-0 font-semibold",children:h.length})]}),(h.length>0||p.length>0)&&s.jsx(rr,{}),s.jsxs(ze,{disabled:f.length===0,onClick:b=>pe(void 0,null,function*(){vi.value?(yield c({itemIds:f,collectionId:a}),setTimeout(()=>{r(),o([]),n.value=!1,vi.value=!1},400)):(b.preventDefault(),vi.value=!0,setTimeout(()=>{vi.value=!1},3e3))}),children:[s.jsx(dn,{className:"mr-2 h-4 w-4 ".concat(vi.value?"text-red-500 dark:text-red-600":"")}),s.jsxs(ve,{children:[s.jsx(J,{className:"mr-1 ".concat(vi.value?"!text-red-50 dark:!text-red-600":""),children:vi.value?i("Click to Confirm",{ns:"common"}):i("Delete",{ns:"common"})}),f.length>0&&s.jsx(s.Fragment,{children:vi.value?s.jsx(ft,{variant:"destructive",className:"bg-red-500 ml-1 py-0 font-semibold",children:f.length}):s.jsx(ft,{variant:"slate",className:"ml-1 py-0 font-semibold",children:f.length})})]})]})]})})]})};function TEe(){B6(),U6();const{t:e}=Tt(),t=Ju(),r=ha(),{updateMenuItemById:n}=f1(),{isSwapPanels:a,setReturnRoute:o}=xt(xs),{updateMovedMenuItems:i}=W6(),{isCollectionWithItemLoading:c,isCollectionWithItemSuccess:d}=CH(),{currentCollectionId:f,menuItems:h,isMenuLoaded:p,getCurrentCollectionTitle:g}=xt(kn),{data:S,setData:b}=eV(),{themeDark:v}=xt(_f),[w,C]=m.useState(""),[j,E]=m.useState(null),[N,M]=m.useState([""]),[P,D]=m.useState([""]),{createNewItem:A}=Pw(!1),{linkClipIdToMenuItem:O}=Yme(!1),$=ro(w,300),H=Ve(null),z=Ve(!1),I=Ve(!1),W=m.useRef(null),_=m.useRef(null),K=v(),V=m.useMemo(()=>p&&!c&&d,[p,c,d]),U=m.useMemo(()=>I.value,[I.value]),X=m.useMemo(()=>h.filter(q=>q.isActive),[h]);m.useEffect(()=>{o(t.pathname),Kd()},[]),m.useEffect(()=>{var q;Cs!=null&&Cs.value&&!((q=h==null?void 0:h.find(({itemId:se})=>se===Cs.value))!=null&&q.isFolder)&&!Ai.value&&E(Cs.value)},[Cs==null?void 0:Cs.value,Ai.value]),m.useEffect(()=>{b(h.length>0?kv(h,null,U):[])},[h,U]);const G=m.useMemo(()=>h.filter(q=>!q.isActive),[h]),F=m.useMemo(()=>{const q=se=>{var ee,ae;return se.name.toLowerCase().includes($.toLowerCase())?!0:(ae=(ee=se.children)==null?void 0:ee.some(q))!=null?ae:!1},Y=(se,ee=0)=>{let ae=[];return se.forEach(oe=>{var ce,he;const le=q(oe),ue=h.find(we=>we.itemId===oe.id);if(ue&&le){const we=re(R({},ue),{indent:ee,id:oe.id});if(ae.push(we),oe.children&&((ce=oe.children)==null?void 0:ce.length)>0&&!P.includes((he=oe.id)!=null?he:"")){const Se=Y(oe.children,ee+1);ae=ae.concat(Se)}}}),ae};return Y(S)},[S,h,P,U,$]);return m.useEffect(()=>{function q(){return pe(this,null,function*(){var Y,se,ee,ae,oe,le,ue,ce,he,we,Se,Ae,je,Le,Ee,He,Qe,Ze;if(Ba.value){const{type:mt,parentId:Ke,clipId:Lt,historyId:qt,text:Xt="",clipboardHistoryItem:Ge,orderNumber:zt=0}=Ba.value,ir=mt===Ro.FOLDER?e("New Submenu",{ns:"menus"}):mt===Ro.ITEM?e("New Menu",{ns:"menus"}):mt===Ro.DISABLED?e("New Disabled Menu",{ns:"menus"}):"",Ft=!!Lt,et=(Y=F.filter(({name:Me})=>Me.startsWith(ir)).length)!=null?Y:0,cr=Ge==null?void 0:Ge.isImage,ar=qt&&(Ge!=null&&Ge.historyId)?{historyId:qt,name:Ge!=null&&Ge.value?Ge.value.substring(0,50).replace(/\n\t/g,"").replace(/\s+/g," ").trim():cr?"".concat(e("Image size",{ns:"common"})," (").concat(Ge==null?void 0:Ge.imageWidth,"x").concat(Ge==null?void 0:Ge.imageHeight,")"):et>0?"".concat(ir," (").concat(et,")"):ir,isClip:!1,isMenu:!0,value:"",isActive:!0,description:null,detectedLanguage:(se=Ge==null?void 0:Ge.detectedLanguage)!=null?se:null,isImage:(ee=Ge==null?void 0:Ge.isImage)!=null?ee:!1,imageDataUrl:(ae=Ge==null?void 0:Ge.imageDataUrl)!=null?ae:null,imagePathFullRes:(oe=Ge==null?void 0:Ge.imagePathFullRes)!=null?oe:null,imageHeight:(le=Ge==null?void 0:Ge.imageHeight)!=null?le:null,imageWidth:(ue=Ge==null?void 0:Ge.imageWidth)!=null?ue:null,imagePreviewHeight:(ce=Ge==null?void 0:Ge.imagePreviewHeight)!=null?ce:null,isLink:(he=Ge==null?void 0:Ge.isLink)!=null?he:!1,links:(we=Ge==null?void 0:Ge.links)!=null?we:null,isImageData:(Se=Ge==null?void 0:Ge.isImageData)!=null?Se:!1,isMasked:(Ae=Ge==null?void 0:Ge.isMasked)!=null?Ae:!1,isVideo:(je=Ge==null?void 0:Ge.isVideo)!=null?je:!1,isCode:(Le=Ge==null?void 0:Ge.isCode)!=null?Le:!1,isText:(Ee=Ge==null?void 0:Ge.isText)!=null?Ee:!1,hasEmoji:(He=Ge==null?void 0:Ge.hasEmoji)!=null?He:!1,hasMaskedWords:(Qe=Ge==null?void 0:Ge.hasMaskedWords)!=null?Qe:!1,hasMultiLineCopy:!1,showDescription:!1,isDeleted:!1,indent:0,parentId:Ke!=null?Ke:null,tabId:null,collectionId:f,createdAt:0,orderNumber:zt+1}:{name:et>0?"".concat(ir," (").concat(et,")"):ir,isClip:Ft,isMenu:!0,value:Xt,description:null,isActive:!0,isFolder:mt===Ro.FOLDER,isSeparator:mt===Ro.SEPARATOR,isDisabled:mt===Ro.DISABLED,isText:!0,isDeleted:!1,indent:0,parentId:Ke!=null?Ke:null,tabId:null,collectionId:f,createdAt:0,orderNumber:zt+1},ur=Ft?yield O({clipId:Lt,item:ar}):yield A({item:ar});(Ze=Ge==null?void 0:Ge.linkMetadata)!=null&&Ze.metadataId&&!Ft&&(yield kr("copy_link_metadata_to_new_item_id",{metadataId:Ge.linkMetadata.metadataId,itemId:ur}));const Sr=kv(h,null,!0);Sr.unshift(re(R({},ar),{id:ur}));const Mt=X3(Sr,Ke!=null?Ke:null,[ur],Ke&&zt>0?zt-1:zt),Rr=Mt==null?void 0:Mt.map(({id:Me,parentId:Ye,orderNumber:Te})=>({itemId:Me,parentId:Ye,tabId:null,collectionId:f,orderNumber:Te}));i({updatedMoveMenuItems:Rr}),Ka.value=!1,Ba.value=null,M([]),Ro.FOLDER!==mt&&Ro.DISABLED!==mt&&Ro.SEPARATOR!==mt&&E(ur),Ro.SEPARATOR!==mt&&!Ft&&(Cs.value=ur,Ai.value=!0)}})}q()},[Ba.value]),m.useEffect(()=>{su.value&&(E(su.value),setTimeout(()=>{su.value=null},2e3))},[su.value,_==null?void 0:_.current]),m.useEffect(()=>{var q;_!=null&&_.current&&((q=_==null?void 0:_.current)==null||q.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))},[_==null?void 0:_.current]),s.jsx(ak,{children:s.jsxs(FN,{minSize:300,maxSize:600,swapPanes:a,defaultSize:300,autoSaveId:"app-main-panel",children:[s.jsx(HN,{children:s.jsx(Q,{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:s.jsx(Cf,{disableWidth:!0,children:({height:q})=>q&&q>0&&!c&&f&&s.jsxs(Q,{className:"flex flex-col h-[calc(100vh-95px)] relative",children:[S.length>0?s.jsx(Q,{className:"flex flex-row bg-slate-100 dark:bg-slate-700 rounded-md p-0 items-center h-[40px] mb-2",children:s.jsx(Iu,{placeholder:"".concat(e("Find in menu",{ns:"menus"}),"..."),type:"search",ref:W,onChange:Y=>{C(Y.target.value)},iconLeft:s.jsx(Gp,{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"})}):V&&h.length===0&&s.jsx(ve,{style:{height:q-85},className:"flex items-center flex-col gap-3 justify-center",children:s.jsx(J,{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"})})}),s.jsxs(Wr,{style:{maxHeight:q-93},autoHide:!0,children:[s.jsx(aEe,{data:S,rowHeight:33,selectedIds:N,closedFolderItemIds:P,renderCursor:fEe,renderContainer:jEe,renderDragPreview:bEe,onMove:({dragIds:Y,index:se,parentId:ee})=>{const ae=X3(S,ee,Y,se),oe=ae==null?void 0:ae.map(({id:le,parentId:ue,orderNumber:ce})=>({itemId:le,parentId:ue,tabId:null,collectionId:f,orderNumber:ce}));i({updatedMoveMenuItems:oe})},onSelect:Y=>{const se=Y.map(ae=>ae.id);se.length===N.length&&se.every(ae=>N.includes(ae))||M(se)},onFolderClose:Y=>{D(se=>[...se,Y])},onFolderOpen:Y=>{D(se=>se.filter(ee=>ee!==Y))},onRename:ee=>pe(this,[ee],function*({id:Y,name:se}){var oe;if(se.length<1){yield pl(e("Menu label cannot be empty.",{ns:"menus"}),"PasteBar");return}if(se.length>wg){yield pl("".concat(e("Menu label is too long. Max length is",{ns:"menus"})," ").concat(wg,"."),"PasteBar");return}if((oe=h.find(le=>le.itemId===Y))==null?void 0:oe.isClip){yield pl(e("Menu is link to a clip and cannot be renamed. Please rename its linked clip.",{ns:"menus"}),"PasteBar");return}yield n({updatedItem:{itemId:Y,name:se}})}),onSearchClear:()=>{var Y;C(""),W!=null&&W.current&&(W.current.value="",(Y=W==null?void 0:W.current)==null||Y.focus())},searchMatch:(Y,se)=>{const ee=Y.data.name;return typeof ee=="string"?ee.toLowerCase().includes(se.toLowerCase()):!1},renderRow:SEe,searchTerm:$,disableDrop:()=>!1,children:kEe}),!$&&X.length>1&&S.length>0&&s.jsx(J,{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"})})]}),s.jsx(Q,{className:"flex-1 mt-3"}),s.jsxs(Cl,{className:"min-w-full flex flex-row justify-center h-10 items-center gap-2",value:t.pathname,onValueChange:Y=>{r(Y,{replace:!0})},children:[s.jsxs(si,{className:"self-center",children:[s.jsx(En,{value:"/history",children:e("Clipboard History",{ns:"common"})}),s.jsx(En,{value:"/menu",children:e("Paste Menu",{ns:"common"})})]}),s.jsx(_Ee,{deletingMenuItemIds:H,menuItems:h,collectionId:f,onDelete:()=>{var Y;C(""),W!=null&&W.current&&W.current.value&&(W.current.value="",(Y=W==null?void 0:W.current)==null||Y.focus())},showMultiSelectItems:z,setSelectedItemIds:M,selectedItemIds:N})]})]})})})}),s.jsx(BN,{children:V&&s.jsx(Q,{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:s.jsx(Cf,{disableWidth:!0,children:({height:q})=>q&&s.jsxs(Q,{className:"p-4 py-4 pb-2 select-auto",children:[s.jsxs(ve,{className:"justify-center relative h-8 pt-2 select-none",children:[G.length>0&&s.jsx(ke,{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:()=>{I.value=!U},children:s.jsx($e,{asChild:!0,side:"bottom",isCompact:!0,sideOffset:12,text:e("Toggle inactive menu items",{ns:"menus"}),children:s.jsxs(Q,{className:"relative",children:[U?s.jsx(Qv,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-300/80 dark:text-slate-500"}):s.jsx(bm,{size:20,className:"transition-colors group-hover:text-slate-400 dark:group-hover:text-slate-500 dark:text-slate-300/80"}),s.jsx(ft,{className:"absolute right-[-16px] top-[-17px] ".concat(U?"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(U?"default":"outline"),children:G.length})]})})}),!Ka.value||X.length===0?s.jsx(Q,{className:"text-[13px] select-none",children:X.length>0?s.jsxs(J,{className:"gap-1",children:[s.jsx("span",{className:"font-semibold",children:X.length}),s.jsxs("span",{children:[G.length>0?e("active",{ns:"menus"}):""," ",e("menu items in",{ns:"menus"})]}),s.jsx(IA,{children:s.jsx("span",{className:"font-semibold underline cursor-pointer select-none",children:g()})})]}):s.jsxs(J,{className:"gap-1",children:[s.jsx("span",{children:e("No {{hasActive}} menu items in",{ns:"menus",hasActive:G.length>0?e("active",{ns:"menus"}):""})}),s.jsx(IA,{children:s.jsx("span",{className:"font-semibold underline cursor-pointer",children:g()})})]})}):s.jsx(Q,{className:"text-[13px]",children:s.jsx(J,{className:"text-center",children:e("Select item to add a menu after",{ns:"menus"})})}),X.length>0&&s.jsx(p2,{isMainCreateMenu:!0,isDark:K,showEditMenuItemId:Cs,isCreatingMenuItem:Ka})]}),X.length===0&&s.jsx(ve,{className:"mt-6 flex-col select-none",children:s.jsxs(Q,{children:[s.jsx(p2,{isFistItemsCreateMenu:!0,isDark:K,showEditMenuItemId:Cs,isCreatingMenuItem:Ka}),s.jsx(J,{className:"text-sm mt-4 !text-slate-500",children:e("Create Menu",{ns:"menus"})})]})}),s.jsx(wr,{h:2}),s.jsxs(Wr,{style:{height:q-75},autoHide:!0,className:"select-none",children:[s.jsx(aH,{type:"single",collapsible:!0,value:j!=null?j:"",className:"flex items-center flex-col select-none",children:F.map((Y,se)=>Y.itemId&&s.jsx(z6,{ref:su.value===Y.itemId?_:null,value:Y.itemId,children:s.jsx(EU,{label:Y.name,setOpenItemId:E,setSelectedItemIds:M,isLastItem:se===F.length-1,deletingMenuItemIds:H,isFirstItem:se===0,showEditMenuItemId:Cs,hasChildren:Y.hasChildren,isSeparator:Y.isSeparator,showMultiSelectItems:z,hasSelectedItems:N.length>0,isDark:K,deselectItemById:ee=>{M(N.filter(ae=>ae!==ee))},selectItemById:ee=>{M(ae=>[...ae,ee])},id:Y.itemId,item:Y,isClip:Y.isClip,isForm:Y.isForm&&Y.isClip,isWebRequest:Y.isWebRequest&&Y.isClip,isWebScraping:Y.isWebScraping&&Y.isClip,isCommand:Y.isCommand&&Y.isClip,isCreatingMenuItem:Ka,indent:Y.indent,onFolderClose:ee=>{D(ae=>[...ae,ee])},onFolderOpen:ee=>{D(ae=>ae.filter(oe=>oe!==ee))},isClosedFolder:P.includes(Y.itemId),isSelected:N.includes(Y.itemId),hasMultipleSelectedItems:N.length>1,isOpen:j===Y.itemId,children:s.jsx(NEe,{menuName:Y.name,isDisabled:Y.isDisabled,isMenuEdit:Cs.value===Y.itemId,isActive:Y.isActive,isDark:K,isMenu:Y.isMenu,isCode:Y.isCode,isSeparator:Y.isSeparator,isFolder:Y.isFolder,isText:Y.isText,isClip:Y.isClip,deletingMenuItemIds:H,item:Y})})},"".concat(Y.itemId)))}),s.jsx(wr,{h:3})]})]})})})})]},a?"swap":"no-swap")})}function MEe(){const{returnRoute:e}=xt(xs),{t}=Tt();return s.jsx(ak,{children:s.jsx(Q,{className:"w-full",children:s.jsxs(FN,{minSize:250,maxSize:360,defaultSize:290,autoSaveId:"app-main-panel",children:[s.jsx(HN,{children:s.jsx(Q,{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:s.jsxs(Q,{className:"animate-in fade-in",children:[s.jsx(Q,{className:"flex flex-rowrounded-md p-0 items-center justify-end pr-5 h-[40px]",children:s.jsxs(J,{className:"text-lg font-semibold text-center flex items-center",children:[s.jsx(Tf,{className:"mr-2"}),t("PasteBar Settings",{ns:"settings"})]})}),s.jsx(wr,{h:3}),s.jsx(bh,{to:"/app-settings/history",replace:!0,children:({isActive:r})=>s.jsx(J,{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(r&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("Clipboard History Settings",{ns:"settings"})})}),s.jsx(bh,{to:"/app-settings/collections",replace:!0,children:({isActive:r})=>s.jsx(J,{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(r&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("Manage Collections",{ns:"settings"})})}),s.jsx(bh,{to:"/app-settings/preferences",replace:!0,children:({isActive:r})=>s.jsx(J,{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(r&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("User Preferences",{ns:"settings"})})}),s.jsx(bh,{to:"/app-settings/security",replace:!0,children:({isActive:r})=>s.jsx(J,{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(r&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("Security",{ns:"settings"})})}),s.jsx(bh,{to:"/app-settings/license",replace:!0,children:({isActive:r})=>s.jsx(J,{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(r&&"!font-bold text-[19px] dark:!text-slate-300 !_text-slate-600"),children:t("License",{ns:"settings"})})}),s.jsx(wr,{h:6}),s.jsx(ve,{className:"mr-5 justify-end",children:s.jsx(P6,{decorative:!0,className:"bg-gray-300 dark:bg-gray-600"})}),s.jsx(wr,{h:6}),s.jsx(bh,{to:e,replace:!0,children:s.jsx(Q,{className:"pr-5 font-right text-right py-3 text-md animate fade-in transition-fonts duration-100",children:s.jsx(ke,{variant:"secondary",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",children:t("Back",{ns:"common"})})})})]})})}),s.jsx(BN,{children:s.jsx(Q,{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:s.jsx(kN,{})})})]})})})}function PEe(){const{isHistoryEnabled:e,setIsHistoryEnabled:t,isHistoryAutoUpdateOnCaputureEnabled:r,setIsHistoryAutoUpdateOnCaputureEnabled:n,setIsExclusionListEnabled:a,historyExclusionList:o,autoMaskWordsList:i,isExclusionListEnabled:c,setHistoryExclusionList:d,setAutoMaskWordsList:f,isAutoMaskWordsListEnabled:h,isAutoPreviewLinkCardsEnabled:p,setIsAutoPreviewLinkCardsEnabled:g,isAutoFavoriteOnDoubleCopyEnabled:S,setIsAutoFavoriteOnDoubleCopyEnabled:b,setIsAutoMaskWordsListEnabled:v,setHistoryDetectLanguagesEnabledList:w,setIsHistoryDetectLanguageEnabled:C,isHistoryDetectLanguageEnabled:j,historyDetectLanguagesEnabledList:E,historyDetectLanguageMinLines:N,setHistoryDetectLanguageMinLines:M,isAutoClearSettingsEnabled:P,setIsAutoClearSettingsEnabled:D,autoClearSettingsDuration:A,setAutoClearSettingsDuration:O,autoClearSettingsDurationType:$,setAutoClearSettingsDurationType:H,isAppReady:z,CONST:{APP_DETECT_LANGUAGES_SUPPORTED:I}}=xt(Rn),{returnRoute:W}=xt(xs),{t:_}=Tt(),[K,V]=m.useState(""),[U,X]=m.useState(""),[G,F]=m.useState(!1),q=ro(K,300),Y=ro(U,300);m.useEffect(()=>{z&&d(_x(q))},[q,z]),m.useEffect(()=>{z&&f(_x(Y))},[Y,z]),m.useEffect(()=>{z&&(V(o),X(i))},[z]);const se={days:[1,2,3,4,5,6],weeks:[1,2,3],months:[1,3,6,8],year:[1,2]};function ee(ae,oe){const ue={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"})}[oe];return"".concat(ae," ").concat(ue)}return s.jsx(Cf,{disableWidth:!0,children:({height:ae})=>ae&&s.jsxs(Q,{className:"p-4 py-6 select-none min-w-[320px]",children:[s.jsxs(Q,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[s.jsx(J,{className:"light",children:_("Clipboard History Settings",{ns:"settings"})}),s.jsx(xc,{to:W,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:_("Back",{ns:"common"})})})]}),s.jsx(wr,{h:3}),s.jsxs(Wr,{style:{maxHeight:ae-85},autoHide:!0,children:[s.jsx(Q,{className:"animate-in fade-in max-w-xl",children:s.jsxs(ln,{className:"".concat(!e&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Capture History",{ns:"settings"})}),s.jsx(Gn,{checked:e,className:"ml-auto",onCheckedChange:()=>{t(!e)}})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:_("Enable history capture",{ns:"settings"})})})]})}),e&&s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"max-w-xl animate-in fade-in mt-4",children:s.jsxs(ln,{className:"".concat(!r&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Update on Capture",{ns:"settings"})}),s.jsx(Gn,{checked:r,className:"ml-auto",onCheckedChange:()=>{n(!r)}})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:_("Enable auto update on capture",{ns:"settings"})})})]})}),s.jsx(Q,{className:"mt-4 max-w-xl animate-in fade-in",children:s.jsxs(ln,{className:"".concat(!S&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Star on Double Copy",{ns:"settings"})}),s.jsx(Gn,{checked:S,className:"ml-auto",onCheckedChange:()=>{b(!S)}})]}),s.jsx(hn,{children:s.jsx(J,{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"})})})]})}),s.jsx(Q,{className:"mt-4 max-w-xl animate-in fade-in",children:s.jsxs(ln,{className:"".concat(!p&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Preview Link on Hover",{ns:"settings"})}),s.jsx(Gn,{checked:p,className:"ml-auto",onCheckedChange:()=>{g(!p)}})]}),s.jsx(hn,{children:s.jsx(J,{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"})})})]})}),s.jsx(Q,{className:"max-w-xl animate-in fade-in mt-4",children:s.jsxs(ln,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Stop Words List",{ns:"settings"})}),s.jsx(Gn,{checked:c,className:"ml-auto",onCheckedChange:()=>{a(!c)}})]}),s.jsxs(hn,{children:[s.jsx(J,{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"})}),s.jsx(Eo,{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:()=>{d(_x(K))},onChange:oe=>{V(oe.target.value)},value:K})]})]})}),s.jsx(Q,{className:"max-w-xl animate-in fade-in mt-4",children:s.jsxs(ln,{className:"".concat(!h&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto Masking Words List",{ns:"settings"})}),s.jsx(Gn,{checked:h,className:"ml-auto",onCheckedChange:()=>{v(!h)}})]}),s.jsxs(hn,{children:[s.jsx(J,{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"})}),s.jsx(Eo,{className:"text-sm",label:_("List each word or sentence on a new line.",{ns:"settings"}),placeholder:void 0,isDisabled:!h,rows:5,maxRows:15,enableEmoji:!1,onFocus:()=>{F(!0)},onBlur:()=>{f(_x(U)),F(!1)},onChange:oe=>{X(oe.target.value)},value:G?U:ff(U)})]})]})}),s.jsx(Q,{className:"max-w-xl animate-in fade-in mt-4",children:s.jsxs(ln,{className:"".concat(!j&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Programming Language Detection",{ns:"settings"})}),s.jsx(Gn,{checked:j,className:"ml-auto",onCheckedChange:()=>{C(!j)}})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:_("Enable programming language detection",{ns:"settings"})})})]})})]}),e&&j&&s.jsxs(s.Fragment,{children:[s.jsx(Q,{className:"max-w-xl mt-4 animate-in fade-in",children:s.jsxs(ln,{children:[s.jsx(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Minimum number of lines to trigger detection",{ns:"settings"})})}),s.jsx(hn,{children:s.jsx(sr,{className:"text-md !w-36",error:void 0,small:!0,label:_("Number of lines",{ns:"common"}),value:N,onChange:oe=>{const le=oe.target.value;if(le==="")M(0);else{const ue=parseInt(le);ue&&M(ue)}}})})]})}),s.jsx(Q,{className:"mt-4 max-w-2xl animate-in fade-in",children:s.jsxs(ln,{children:[s.jsx(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full",children:[_("Programming language selection",{ns:"settings"}),s.jsx(J,{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"})})]})}),s.jsx(hn,{children:s.jsx(Q,{className:"grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 py-2",children:I.map((oe,le)=>s.jsx("button",{className:"flex",onClick:()=>{E.length>=7&&!E.includes(oe)||w(E.includes(oe)?E.filter(ue=>ue!==oe):E.concat([oe]))},children:s.jsx(b4,{label:oe,checked:E.includes(oe)})},le))})})]})})]}),s.jsx(Q,{className:"mt-4 max-w-xl animate-in fade-in",children:s.jsxs(ln,{className:"".concat(!P&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full",children:_("Auto-Clear Settings",{ns:"settings"})}),s.jsx(Gn,{checked:P,className:"ml-auto",onCheckedChange:()=>{D(!P)}})]}),s.jsxs(hn,{children:[s.jsx(J,{className:"text-sm text-muted-foreground",children:_("Configure settings to automatically delete clipboard history items after a specified duration.",{ns:"settings"})}),P&&s.jsxs(ve,{className:"mt-6 row justify-start",children:[s.jsx(J,{className:"text-sm text-muted-foreground",children:_("Auto-delete clipboard history after",{ns:"settings"})}),s.jsx(ve,{className:"mx-2",children:s.jsxs($M,{value:$,onValueChange:oe=>{H(oe),O(1)},children:[s.jsx(h4,{children:s.jsx(zM,{placeholder:"Select"})}),s.jsxs(p4,{children:[s.jsx(Dh,{value:"days",children:s.jsx("span",{className:"font-medium",children:_("Days",{ns:"calendar"})})}),s.jsx(Dh,{value:"weeks",children:s.jsx("span",{className:"font-medium",children:_("Weeks",{ns:"calendar"})})}),s.jsx(Dh,{value:"months",children:s.jsx("span",{className:"font-medium",children:_("Months",{ns:"calendar"})})}),s.jsx(Dh,{value:"year",children:s.jsx("span",{className:"font-medium",children:_("Years",{ns:"calendar"})})})]})]})}),s.jsx(ve,{children:s.jsxs($M,{value:A.toString(),onValueChange:oe=>{O(Number(oe))},children:[s.jsx(h4,{children:s.jsx(zM,{placeholder:"Select"})}),s.jsx(p4,{children:se[$].map(oe=>s.jsx(Dh,{value:oe.toString(),children:s.jsx("span",{className:"font-medium whitespace-nowrap",children:ee(oe,$)})},oe))})]})})]})]})]})}),s.jsx(wr,{h:6}),s.jsx(xc,{to:W,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:_("Back",{ns:"common"})})}),s.jsx(wr,{h:4})]})]})})}function DEe({open:e,onClose:t,setIsDeleteAllItemsInCollection:r,onConfirm:n}){const{t:a}=Tt();return s.jsx(Yr,{open:e,handleClose:t,children:s.jsxs(Yr.Body,{children:[s.jsx(Yr.Header,{handleClose:t,children:s.jsx("h1",{className:"m-0",children:a("Confirm Delete",{ns:"common"})})}),s.jsxs(Yr.Content,{children:[s.jsx(J,{className:"font-semibold",children:a("Are you sure you want to delete this collection?",{ns:"collections"})}),s.jsx(wr,{h:3}),s.jsx(J,{className:"font-light",children:a("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"})}),s.jsx(wr,{h:3}),s.jsx(XE,{color:"danger",onChange:o=>{r(o)},children:a("Delete all menu items within this collection",{ns:"collections"})})]}),s.jsx(Yr.Footer,{children:s.jsxs("div",{className:"flex w-full justify-end gap-x-2",children:[s.jsx(ke,{variant:"ghost",type:"button",onClick:t,children:a("Cancel",{ns:"common"})}),s.jsx(ke,{variant:"danger",type:"submit",onClick:n,children:a("Delete Collection",{ns:"collections"})})]})})]})})}function AEe({showAddNewCollection:e}){const{t}=Tt(),{createNewCollection:r,createNewCollectionSuccess:n}=Bme(),[a,o]=m.useState(""),[i,c]=m.useState(!0),[d,f]=m.useState(""),h=ha(),p=Am(),[g,S]=m.useState(e),[b,v]=m.useState(!1);return m.useEffect(()=>{n&&(o(""),f(""),S(!1),h("/history",{replace:!0}))},[n]),m.useEffect(()=>{o(""),f(""),c(!0)},[g]),s.jsx(ln,{className:"".concat(g?"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:g?s.jsxs(s.Fragment,{children:[s.jsx(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:s.jsx(en,{className:"animate-in fade-in text-md w-full",children:s.jsx(sr,{small:!0,autoFocus:!0,error:b?t("Title too short",{ns:"collections"}):void 0,name:"title",maxLength:50,onKeyDown:w=>{if(w.stopPropagation(),w.key==="Enter"){if(a.length<3){v(!0);return}r({createCollection:{title:a,isSelected:!1,description:d}})}},placeholder:t("Enter collection title",{ns:"collections"}),label:t("Collection Title",{ns:"collections"}),value:a,onChange:w=>{b&&w.target.value.length>3&&v(!1),o(w.target.value)}})})}),s.jsxs(hn,{children:[s.jsx(Eo,{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:d,onChange:w=>{f(w.target.value)}}),s.jsx(ve,{className:"items-center justify-start mt-2 ml-[-8px]",children:s.jsx(XE,{color:"default",checked:i,classNameLabel:"py-1",onChange:w=>{c(w)},children:s.jsx(mv,{size:"sm",children:t("Add default menu, tab and board",{ns:"collections"})})})})]}),s.jsxs(i6,{className:"flex flex-row items-center justify-between space-y-0",children:[s.jsx(Q,{}),s.jsxs(ve,{className:"min-h-[30px]",children:[s.jsx(ke,{size:"xs",variant:"link",onClick:()=>{S(!1)},children:t("Cancel",{ns:"common"})}),s.jsx(ke,{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:()=>pe(this,null,function*(){if(a.length<3){v(!0);return}yield r({addDefaultMenuTabBoard:i,createCollection:{title:a,isSelected:!1,description:d}})}),children:t("Create",{ns:"common"})})]})]})]}):s.jsx(ve,{className:"flex-row gap-3",children:s.jsxs(ke,{variant:"ghost",className:"rounded-md hover:dark:bg-blue-700/80 hover:bg-blue-200/80",onClick:()=>{p?S(!0):Ru.value=!0},children:[s.jsx(Pn,{width:20,className:"mr-1"}),s.jsx(mv,{className:"text-[15px] !font-semibold",children:t("Add Collection",{ns:"collections"})}),s.jsx(sc,{})]})})},"new-collection")}function pS({showAddNewCollection:e}){const{t}=Tt(),{isShowCollectionNameOnNavBar:r,setIsShowCollectionNameOnNavBar:n}=xt(Rn);B6(),W6(),CH();const{updateCollectionById:a}=Hme(),{selectCollectionById:o}=V6(),{deleteCollectionById:i}=Ume(),{currentCollectionId:c,menuItems:d,collections:f}=xt(kn),{returnRoute:h}=xt(xs),[p,g]=gB({timeout:10,sensitivity:10,interval:20}),{setData:S}=eV(),[b,v]=m.useState(),[w,C]=m.useState(""),[j,E]=m.useState(!1),[N,M]=m.useState(""),P=Ve(!1),[D,A]=m.useState(null),[O,$]=m.useState(null);return m.useEffect(()=>{var H;if(D){const z=f.find(({collectionId:I})=>I===D);z&&(C(z.title),M((H=z.description)!=null?H:""))}else C(""),$(null),M("")},[D]),m.useEffect(()=>{S(d.length>0?kv(d):[])},[d,d.length]),s.jsx(Cf,{disableWidth:!0,children:({height:H})=>H&&s.jsxs(Q,{className:"p-4 py-6 select-auto",children:[s.jsxs(Q,{className:"text-xl my-2 flex items-center justify-between px-2",children:[s.jsx(J,{className:"light",children:t("Manage Collections",{ns:"collections"})}),s.jsx(xc,{to:h,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:t("Back",{ns:"common"})})})]}),s.jsx(wr,{h:3}),s.jsxs(Wr,{style:{maxHeight:H-85},autoHide:!0,children:[s.jsxs(Q,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in",children:[s.jsx(AEe,{showAddNewCollection:e}),f.map(({collectionId:z,title:I,description:W,isEnabled:_})=>{const K=D===z,V=c===z;return s.jsxs(ln,{className:"".concat(V&&"border-teal-500 border-2"," ").concat(!_&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium",children:K?s.jsx(sr,{className:"text-md",error:b?t("Title too short",{ns:"collections"}):void 0,maxLength:50,small:!0,onKeyDown:U=>{if(U.stopPropagation(),U.key==="Enter"){if(w.length<3){v(!0);return}a({updatedCollection:{collectionId:z,title:w,isEnabled:_,description:N}}),setTimeout(()=>{A(null)},100)}},label:t("Collection Title",{ns:"collections"}),placeholder:t("Enter collection title",{ns:"collections"}),value:w,onChange:U=>{b&&U.target.value.length>3&&v(!1),C(U.target.value)}}):s.jsx(J,{className:"".concat(V?_?"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:()=>{_&&!V&&o({selectCollection:{collectionId:z}})},children:I})}),!K&&_&&s.jsx(s.Fragment,{children:V?s.jsx($e,{text:t("Current Collection",{ns:"collections"}),isCompact:!0,children:s.jsx(j$,{className:"text-teal-600 h-6",size:20})}):s.jsx(ke,{className:"text-sm box",size:"xs",variant:"outline",onClick:()=>{o({selectCollection:{collectionId:z}})},children:t("Select",{ns:"common"})})})]}),s.jsx(hn,{children:K?s.jsx(Eo,{className:"text-md",enableEmoji:!1,enableEmojiInside:!0,maxLength:200,rows:2,maxRows:4,label:t("Description",{ns:"collections"}),value:N,onChange:U=>{M(U.target.value)}}):s.jsx(J,{className:"text-sm text-muted-foreground",children:W})}),s.jsxs(i6,{className:"flex flex-row items-center justify-between space-y-0",children:[s.jsx(Q,{children:K?V?s.jsx($e,{isCompact:!0,className:"bg-warning-100 dark:bg-warning-800",text:s.jsx(J,{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:p,sideOffset:16,children:s.jsx(ke,{size:"xs",ref:Ii(g),variant:"ghost",className:"bg-slate-50 dark:bg-slate-800",children:s.jsx(e4,{size:"16",className:"opacity-20"})})}):s.jsx(ke,{size:"xs",variant:"ghost",onClick:()=>{$(z),P.value=!0},className:"".concat(O?"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:s.jsx(dn,{size:"16"})}):!V&&s.jsxs(pB,{children:[s.jsx(mB,{asChild:!0,children:s.jsx(Q,{children:s.jsx(Gn,{checked:_,disabled:V,onCheckedChange:U=>{a({updatedCollection:{collectionId:z,isEnabled:U}})}})})}),s.jsx(iN,{children:s.jsx(J,{className:"text-sm",children:_?t("Enabled",{ns:"common"}):t("Disabled",{ns:"common"})})})]})}),s.jsxs(ve,{className:"min-h-[30px]",children:[K&&s.jsx(ke,{size:"xs",variant:"link",className:"text-slate-500",onClick:()=>{A(null)},disabled:!_,children:t("Cancel",{ns:"common"})}),_&&s.jsx(ke,{size:"xs",variant:K?"default":"light",className:K?"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(!K)A(z);else{if(w.length<3){v(!0);return}a({updatedCollection:{collectionId:z,title:w,isEnabled:_,description:N}}),setTimeout(()=>{A(null)},100)}},disabled:!_,children:K?t("Save",{ns:"common"}):t("Edit",{ns:"common"})})]})]})]},z)})]}),s.jsx(wr,{h:5}),s.jsx(J,{className:"light",children:t("Collection Options",{ns:"collections"})}),s.jsx(Q,{className:"grid gap-4 md:grid-cols-1 lg:grid-cols-2 animate-in fade-in mt-4",children:s.jsxs(ln,{className:"".concat(!r&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{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"})}),s.jsx(Gn,{checked:r,className:"ml-auto",onCheckedChange:()=>{n(!r)}})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:t("Display full name of selected collection on the navigation bar",{ns:"collections"})})})]})}),s.jsx(wr,{h:6})]}),s.jsx(DEe,{open:P.value,setIsDeleteAllItemsInCollection:E,onClose:()=>{P.value=!1,E(!1),$(null)},onConfirm:()=>{O&&(i({deleteCollection:{deleteAllItemsInCollection:j,collectionId:O}}),P.value=!1,E(!1),$(null))}})]})})}function REe(){const{t:e}=Tt(),{isIdleScreenAutoLockEnabled:t,setIsIdleScreenAutoLockEnabled:r,idleScreenAutoLockTimeInMinutes:n,setIdleScreenAutoLockTimeInMinutes:a,isShowHistoryCaptureOnLockedScreen:o,setIsShowHistoryCaptureOnLockedScreen:i,isScreenLockPassCodeRequireOnStart:c,setIsScreenLockPassCodeRequireOnStart:d,screenLockPassCode:f,setScreenLockPassCode:h,screenLockPassCodeLength:p,setScreenLockPassCodeLength:g,screenLockRecoveryPasswordMasked:S,hashPassword:b,setScreenLockRecoveryPasswordMasked:v,storePassword:w,verifyStoredPassword:C,deleteStoredPassword:j}=xt(Rn),{returnRoute:E}=xt(xs),N=Am(),M=Ve(""),P=Ve(""),D=Ve(""),A=Ve(""),O=Ve(""),$=Ve(!1),H=Ve(!1),z=Ve(!1),I=Ve(!1),W=Ve(!1),_=Ve(!1),K=Ve(!1),V=Ve(!1);m.useEffect(()=>{Wa.value===Vl.resetPassword&&_i.value===Vl.resetPassword?(v(null),j("screenLockRecoveryPassword"),Wa.value=null,_i.value=null):Wa.value===Vl.resetPasscode&&_i.value===Vl.resetPasscode&&(h(null),g(0),Wa.value=null,_i.value=null)},[_i.value,Wa.value]),m.useEffect(()=>{M.value.length!==0&&!f&&M.value===P.value&&b(M.value).then(q=>{h(q),g(M.value.length),$.value=!1,P.value="",M.value=""})},[M.value,P.value]);const U=m.useMemo(()=>z.value,[z.value]),X=m.useMemo(()=>Tn.value,[Tn.value]);m.useMemo(()=>!0,[P.value,$.value,H.value,I.value,O.value,W.value,_.value,V.value,K.value]);const G=m.useMemo(()=>D.value.length>=6&&D.value.length<=50&&D.value===A.value,[D.value,A.value]),F=m.useMemo(()=>A.value.length>=D.value.length&&D.value!==A.value,[D.value,A.value]);return s.jsx(Cf,{disableWidth:!0,children:({height:q})=>q&&s.jsxs(Q,{className:"p-4 py-6 select-none min-w-[320px]",children:[s.jsxs(Q,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[s.jsx(J,{className:"light",children:e("Security Settings",{ns:"settings"})}),s.jsx(xc,{to:E,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),s.jsx(wr,{h:3}),s.jsxs(Wr,{style:{maxHeight:q-85},autoHide:!0,children:[s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:s.jsx(Q,{children:e("Lock Screen Passcode",{ns:"settings"})})}),s.jsx(J,{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"})})]}),s.jsxs(hn,{children:[f?s.jsxs(s.Fragment,{children:[s.jsx(ve,{className:"gap-5 justify-start flex-wrap",children:new Array(p).fill(0).map((Y,se)=>s.jsx(Q,{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:"●"},se))}),s.jsx(Q,{className:"mt-2 text-green-700 dark:text-green-600",children:s.jsx(na,{i18nKey:"<strong>{{screenLockPassCodeLength}}</strong> digits passcode is set.",values:{screenLockPassCodeLength:p},ns:"settings"})})]}):s.jsxs(s.Fragment,{children:[$.value?s.jsxs(ve,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[s.jsx(sr,{className:"text-md !w-40",numbersOnly:!0,isPassword:!0,autoComplete:"off",onPaste:Y=>(Y.preventDefault(),!1),autoFocus:!0,placeholder:e("Confirm",{ns:"common"}),label:e("Confirm Passcode",{ns:"common"}),onChange:Y=>{const se=Y.target.value;P.value=se}},"confirm-passcode"),s.jsx(ke,{variant:"secondary",size:"sm",onClick:()=>{$.value=!1,P.value="",M.value=""},className:"text-sm bg-gray-200 dark:bg-gray-700 dark:text-slate-200 mt-4 h-9",children:e("Cancel",{ns:"common"})})]}):s.jsxs(ve,{className:"gap-3 flex-wrap items-center justify-start my-2",children:[s.jsx(sr,{className:"text-md !w-40",numbersOnly:!0,autoComplete:"off",onPaste:Y=>(Y.preventDefault(),!1),placeholder:e("Enter Passcode",{ns:"common"}),label:e("Digits Only Passcode",{ns:"common"}),onKeyDown:Y=>{Y.key==="Enter"&&(M.value.length>3||M.value.length<11)&&($.value=!0)},onChange:Y=>{const se=Y.target.value;M.value=se}}),s.jsx(ke,{variant:"secondary",size:"sm",disabled:M.value.length<4||M.value.length>10,onClick:()=>{$.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"})})]}),$.value?P.value&&M.value&&s.jsx(s.Fragment,{children:P.value&&M.value.length-P.value.length>0?s.jsxs(J,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode digits remaining",{ns:"settings"}),":",s.jsx("b",{className:"ml-1",children:M.value.length-P.value.length})]}):M.value!==P.value&&s.jsx(J,{size:"sm",className:"!text-red-500 dark:!text-red-400",children:e("Passcode mismatch",{ns:"settings"})})}):s.jsx(s.Fragment,{children:M.value.length>=4&&M.value.length<=10?s.jsxs(J,{size:"sm",className:"!text-green-500 dark:!text-green-600",children:[e("Passcode length",{ns:"settings"}),":",s.jsx("b",{className:"ml-1",children:M.value.length})]}):M.value.length>10?s.jsx(J,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Maximum 10 digits",{ns:"settings"})}):M.value.length>0&&M.value.length<4&&s.jsx(J,{size:"sm",className:"!text-amber-500 dark:!text-amber-600",children:e("Minimal 4 digits",{ns:"settings"})})})]}),f&&s.jsx(s.Fragment,{children:s.jsx(ke,{variant:"secondary",size:"sm",onClick:()=>{Ed.value=!0,Wa.value=Vl.resetPasscode,Nd.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"})})})]})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:s.jsx(Q,{children:e("Recovery Password for Lock Screen Passcode",{ns:"settings"})})}),s.jsx(J,{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"})})]}),s.jsx(hn,{children:S?s.jsxs(Q,{children:[s.jsxs(ve,{className:"gap-2 justify-start items-start flex-wrap flex-col my-1",children:[s.jsx(Q,{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:s.jsx(J,{className:"text-lg",children:S})}),s.jsx(Q,{className:"mt-1 text-green-700 dark:text-green-600",children:e("Recovery password is set.",{ns:"settings"})})]}),U?s.jsxs(Q,{className:"mt-2",children:[s.jsx(sr,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:Y=>{Y.key==="Enter"&&!_.value&&O.value.length>=6&&(W.value=!1,_.value=!0,C("screenLockRecoveryPassword",O.value).then(se=>{se?(z.value=!1,v(null),j("screenLockRecoveryPassword"),O.value=""):W.value=!0,_.value=!1}).catch(()=>{W.value=!0,_.value=!1}))},error:O.value.length>=6&&W.value?e("Password is incorrect",{ns:"settings"}):"",autoComplete:"off",onPaste:Y=>(Y.preventDefault(),!1),classNameInput:"h-9",autoFocus:!0,placeholder:e("Enter Password",{ns:"common"}),label:e("Verify Current Password",{ns:"common"}),onChange:Y=>{W.value=!1,O.value=Y.target.value}},"recovery-reset-password"),s.jsxs(ve,{className:"justify-start items-center gap-2 mt-2",children:[s.jsx(ke,{variant:"secondary",size:"sm",disabled:O.value.length<6,onClick:()=>{W.value=!1,_.value=!0,C("screenLockRecoveryPassword",O.value).then(Y=>{Y?(z.value=!1,v(null),j("screenLockRecoveryPassword"),O.value=""):W.value=!0,_.value=!1}).catch(()=>{W.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?s.jsx(tm,{}):e("Reset",{ns:"common"})}),f&&s.jsx(ke,{variant:"light",size:"sm",onClick:()=>{z.value=!1,Ed.value=!0,Wa.value=Vl.resetPassword,Nd.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"})}),s.jsx(ke,{variant:"secondary",size:"sm",disabled:X>0,onClick:()=>{z.value=!1,W.value=!1,O.value=""},className:"text-sm bg-transparent dark:bg-transparent dark:text-slate-200 hover:dark:bg-slate-800",children:e("Cancel",{ns:"common"})})]})]}):s.jsx(ke,{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"})})]}):s.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start my-2 flex-col",children:[s.jsx(sr,{className:"text-md !w-60",isPassword:!0,autoComplete:"off",onPaste:Y=>(Y.preventDefault(),!1),showHidePassword:!0,placeholder:e("Recovery Password",{ns:"common"}),label:e("Enter Recovery Password",{ns:"common"}),classNameInput:D.value.length>=6&&D.value.length<=50?"!border-green-400 !bg-green-100 dark:!border-green-700 dark:!bg-green-950 h-9":"h-9",onChange:Y=>{D.value=Y.target.value}},"recovery-password"),s.jsx(sr,{className:"text-md !w-60",isPassword:!0,showHidePassword:!0,onKeyDown:Y=>{Y.key==="Enter"&&D.value===A.value&&D.value.length>=6&&D.value.length<=50&&w("screenLockRecoveryPassword",D.value).then(()=>{v(ff(D.value)),D.value="",A.value=""})},error:F?e("Passwords do not match",{ns:"settings"}):"",autoComplete:"off",onPaste:Y=>(Y.preventDefault(),!1),classNameInput:!F&&G?"!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:Y=>{A.value=Y.target.value}},"recovery-password-confirmation"),s.jsx(ke,{variant:"secondary",size:"sm",disabled:!G,onClick:()=>{D.value===A.value&&w("screenLockRecoveryPassword",D.value).then(()=>{v(ff(D.value)),D.value="",A.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"})})]})})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{className:"".concat(!o&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[s.jsx(Q,{children:e("Show Clipboard History Capture Control on Lock Screen",{ns:"settings"})}),s.jsx(Gn,{checked:o,className:"ml-auto",onCheckedChange:()=>{i(!o)}})]}),s.jsx(J,{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"})})]}),s.jsx(hn,{})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{className:"".concat(!t&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[s.jsxs(Q,{children:[e("Auto Lock the Screen on User Inactivity",{ns:"settings"}),s.jsx(sc,{})]}),s.jsx(Gn,{checked:t,className:"ml-auto",onCheckedChange:()=>{!t&&!N?Ru.value=!0:r(!t)}})]}),s.jsx(J,{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"})})]}),s.jsxs(hn,{children:[s.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start my-2",children:ine.map((Y,se)=>s.jsxs(ke,{variant:"ghost",disabled:!t,onClick:()=>{a(Y)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(n===Y?"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:[Y," ",e("minutes",{ns:"common"})]},se))}),s.jsx(ke,{variant:"secondary",size:"sm",disabled:n===15,onClick:()=>{a(15)},className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200 mt-2",children:e("Reset",{ns:"common"})})]})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{className:"".concat(!c&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3 flex",children:[s.jsxs(Q,{children:[e("Require Screen Unlock at Application Start",{ns:"settings"}),s.jsx(sc,{})]}),s.jsx(Gn,{checked:c,className:"ml-auto",onCheckedChange:()=>{!c&&!N?Ru.value=!0:d(!c)}})]}),s.jsx(J,{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"})})]}),s.jsx(hn,{})]})}),s.jsx(wr,{h:6}),s.jsx(xc,{to:E,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),s.jsx(wr,{h:4})]})]})})}function LEe(){const{t:e}=Tt(),{isSkipAutoStartPrompt:t,setIsSkipAutoStartPrompt:r,isShowCollectionNameOnNavBar:n,setIsShowCollectionNameOnNavBar:a,isShowDisabledCollectionsOnNavBarMenu:o,setIsShowDisabledCollectionsOnNavBarMenu:i}=xt(Rn),{setFontSize:c,fontSize:d,setIsSwapPanels:f,isSwapPanels:h}=xt(xs),[p,g]=m.useState(!1),{setTheme:S,theme:b}=Uw(),{mode:v,setMode:w}=xt(_f);m.useEffect(()=>{b!==v&&w(b)},[b]),m.useEffect(()=>{kr("is_autostart_enabled").then(j=>{g(!!j)})},[]);const{returnRoute:C}=xt(xs);return s.jsx(Cf,{disableWidth:!0,children:({height:j})=>j&&s.jsxs(Q,{className:"p-4 py-6 select-none min-w-[320px]",children:[s.jsxs(Q,{className:"text-xl my-2 mx-2 flex items-center justify-between",children:[s.jsx(J,{className:"light",children:e("User Preferences",{ns:"settings"})}),s.jsx(xc,{to:C,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})})]}),s.jsx(wr,{h:3}),s.jsxs(Wr,{style:{maxHeight:j-85},autoHide:!0,children:[s.jsx(Q,{className:"animate-in fade-in max-w-xl",children:s.jsxs(ln,{className:"".concat(!p&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Application Auto Start",{ns:"settings"})}),s.jsx(Gn,{checked:p,className:"ml-auto",onCheckedChange:()=>pe(this,null,function*(){yield kr("autostart",{enabled:!p}),g(!p)})})]}),s.jsxs(hn,{children:[s.jsx(J,{className:"text-sm text-muted-foreground",children:e("Enable application auto start on system boot",{ns:"settings"})}),!p&&s.jsx(ve,{className:"items-center justify-start mt-2 ml-[-12px]",children:s.jsx(XE,{color:"default",checked:t,classNameLabel:"py-1",onChange:()=>{r(!t)},children:s.jsx(mv,{size:"sm",children:e("Skip auto start prompt on app launch",{ns:"settings"})})})})]})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{children:[s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Fonts Scale",{ns:"settings"}),s.jsx(J,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface font size scale",{ns:"settings"})})]}),s.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start",children:Mh.map((E,N)=>s.jsx(ke,{variant:"ghost",onClick:()=>{c(E)},className:"text-sm font-normal bg-slate-50 dark:bg-slate-950 ".concat(d===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))})]}),s.jsx(hn,{children:s.jsx(ke,{variant:"secondary",size:"sm",disabled:d==="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"})})})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsx(ln,{children:s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Color Theme",{ns:"settings"}),s.jsx(J,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface color theme",{ns:"settings"})})]}),s.jsxs(ve,{className:"gap-3 flex-wrap items-start justify-start",children:[s.jsxs(ke,{variant:"ghost",onClick:()=>{S("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:[s.jsx("span",{className:"flex tems-end",children:s.jsx(xo.sun,{className:"mr-2",size:18})}),s.jsx("span",{children:e("Theme:::Light",{ns:"navbar"})})]}),s.jsxs(ke,{variant:"ghost",onClick:()=>{S("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:[s.jsx("span",{className:"flex tems-end",children:s.jsx(xo.moon,{className:"mr-2",size:17})}),s.jsx("span",{children:e("Theme:::Dark",{ns:"navbar"})})]}),s.jsxs(ke,{variant:"ghost",onClick:()=>{S("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:[s.jsx("span",{className:"tems-end flex w-[1.5rem] ",children:s.jsx(xo.sunmoon,{className:"mr-2",width:14,height:14})}),s.jsx("span",{children:e("Theme:::System",{ns:"navbar"})})]})]})]})})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsx(ln,{children:s.jsxs(Jr,{className:"flex flex-col items-start justify-between space-y-0 pb-1 mb-4",children:[s.jsxs(en,{className:"animate-in fade-in text-md font-medium w-full mb-3",children:[e("Application UI Language",{ns:"settings"}),s.jsx(J,{className:"text-sm text-muted-foreground mt-2",children:e("Change the application user interface language",{ns:"settings"})})]}),s.jsx(ve,{className:"gap-3 flex-wrap items-start justify-start",children:hE.map(({code:E,name:N,flag:M})=>s.jsxs(ke,{variant:"ghost",onClick:()=>{un.changeLanguage(E)},className:"text-sm border-0 font-normal bg-slate-50 dark:bg-slate-950 ".concat(un.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:[s.jsx("span",{className:"flags mr-3",children:M})," ",N]},E))})]})})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{className:"".concat(!h&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{className:"animate-in fade-in text-md font-medium border-red-300 border-1 w-full",children:e("Swap Panels Layout",{ns:"common"})}),s.jsx(Gn,{checked:h,className:"ml-auto",onCheckedChange:()=>pe(this,null,function*(){f(!h)})})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:e("Switch the layout position of panels in Clipboard History and Paste Menu views",{ns:"settings"})})})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{className:"".concat(!n&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{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"})}),s.jsx(Gn,{checked:n,className:"ml-auto",onCheckedChange:()=>{a(!n)}})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:e("Display full name of selected collection on the navigation bar",{ns:"settings"})})})]})}),s.jsx(Q,{className:"animate-in fade-in max-w-xl mt-4",children:s.jsxs(ln,{className:"".concat(!o&&"opacity-80 bg-gray-100 dark:bg-gray-900/80"),children:[s.jsxs(Jr,{className:"flex flex-row items-center justify-between space-y-0 pb-1",children:[s.jsx(en,{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"})}),s.jsx(Gn,{checked:o,className:"ml-auto",onCheckedChange:()=>{i(!o)}})]}),s.jsx(hn,{children:s.jsx(J,{className:"text-sm text-muted-foreground",children:e("Display disabled collections name on the navigation bar under collections menu",{ns:"settings"})})})]})}),s.jsx(wr,{h:6}),s.jsx(xc,{to:C,replace:!0,children:s.jsx(ke,{variant:"ghost",className:"text-sm bg-slate-200 dark:bg-slate-700 dark:text-slate-200",size:"sm",children:e("Back",{ns:"common"})})}),s.jsx(wr,{h:4})]})]})})}const OEe=[{index:!0,element:s.jsx(p2e,{to:"history",replace:!0})},{path:"menu",element:s.jsx(TEe,{}),index:!0},{path:"history",element:s.jsx(YSe,{})},{path:"app-settings",element:s.jsx(MEe,{}),children:[{path:"collections",element:s.jsx(pS,{})},{path:"collections/new",element:s.jsx(pS,{showAddNewCollection:!0})},{path:"items",element:s.jsx(pS,{})},{path:"history",element:s.jsx(PEe,{})},{path:"preferences",element:s.jsx(LEe,{})},{path:"security",element:s.jsx(REe,{})},{path:"license",element:s.jsx(FD,{})},{path:"license/register",element:s.jsx(FD,{registerLicense:!0})}]}],IEe=w2e([{element:s.jsx(Jwe,{}),children:[{path:"/",lazy:()=>me(()=>Promise.resolve().then(()=>pCe),void 0),children:OEe}]}]),$Ee=new VK({defaultOptions:{mutations:{networkMode:"always"},queries:{networkMode:"always",gcTime:vR?600:1e3*60*60*1,retry:pG,retryDelay:e=>Math.min(2e3*u0(2,e),3e4)}}});kO(document.getElementById("root")).render(s.jsx(m.StrictMode,{children:s.jsxs(ZK,{client:$Ee,children:[s.jsx(T2e,{router:IEe}),vR&&s.jsx(dG,{initialIsOpen:!1,position:"bottom"})]})}));export{vt as R,Iye as a,Hye as b,wc as c,Oye as d,m as e,Fi as g,zye as r};
|