@wire-dsl/web 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +19 -19
- package/CHANGELOG.md +7 -0
- package/dist/assets/{cssMode-DHhNu-d3.js → cssMode-B7uizfIo.js} +1 -1
- package/dist/assets/{freemarker2-CKoePx8U.js → freemarker2-DwDiEjhI.js} +1 -1
- package/dist/assets/{handlebars-DCcNN_JA.js → handlebars-Djmiqhok.js} +1 -1
- package/dist/assets/{html-q_H0suEi.js → html-Bs_UaqQO.js} +1 -1
- package/dist/assets/{htmlMode-51Or44r1.js → htmlMode-BlYn7-wY.js} +1 -1
- package/dist/assets/{index-DxoM11k4.js → index-f0G2kvVJ.js} +3 -3
- package/dist/assets/{javascript-DsO9DrY2.js → javascript-D-n8YX8F.js} +1 -1
- package/dist/assets/{jsonMode-CBTKltTc.js → jsonMode-ClFGXTqu.js} +1 -1
- package/dist/assets/{liquid-B_xseExe.js → liquid-BAZADs32.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-DcdKKHtr.js → lspLanguageFeatures-ZjY_JmfM.js} +1 -1
- package/dist/assets/{mdx-BzqxTvM_.js → mdx-MWmqRBAR.js} +1 -1
- package/dist/assets/{python-DR7n_tHO.js → python-DQPPTFgb.js} +1 -1
- package/dist/assets/{razor-WH_xenCG.js → razor-CXfduApc.js} +1 -1
- package/dist/assets/{tsMode-BPvQr8_E.js → tsMode-COurL-Bx.js} +1 -1
- package/dist/assets/{typescript-BqQocOFl.js → typescript-BnQMUe_U.js} +1 -1
- package/dist/assets/{xml-CIYPTjB8.js → xml-BfxCrbFK.js} +1 -1
- package/dist/assets/{yaml-Dihr52df.js → yaml-29Fklld3.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cssMode-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cssMode-B7uizfIo.js","assets/lspLanguageFeatures-ZjY_JmfM.js","assets/htmlMode-BlYn7-wY.js","assets/jsonMode-ClFGXTqu.js","assets/javascript-D-n8YX8F.js","assets/typescript-BnQMUe_U.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const o of n)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(n){const o={};return n.integrity&&(o.integrity=n.integrity),n.referrerPolicy&&(o.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?o.credentials="include":n.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(n){if(n.ep)return;n.ep=!0;const o=t(n);fetch(n.href,o)}})();function sue(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var _9={exports:{}},dL={};var vie;function hxe(){if(vie)return dL;vie=1;var s=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,n,o){var r=null;if(o!==void 0&&(r=""+o),n.key!==void 0&&(r=""+n.key),"key"in n){o={};for(var a in n)a!=="key"&&(o[a]=n[a])}else o=n;return n=o.ref,{$$typeof:s,type:i,key:r,ref:n!==void 0?n:null,props:o}}return dL.Fragment=e,dL.jsx=t,dL.jsxs=t,dL}var Cie;function uxe(){return Cie||(Cie=1,_9.exports=hxe()),_9.exports}var Ue=uxe(),b9={exports:{}},hL={},v9={exports:{}},C9={};var wie;function fxe(){return wie||(wie=1,(function(s){function e(q,Z){var Q=q.length;q.push(Z);e:for(;0<Q;){var de=Q-1>>>1,ye=q[de];if(0<n(ye,Z))q[de]=Z,q[Q]=ye,Q=de;else break e}}function t(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var Z=q[0],Q=q.pop();if(Q!==Z){q[0]=Q;e:for(var de=0,ye=q.length,W=ye>>>1;de<W;){var ee=2*(de+1)-1,me=q[ee],Le=ee+1,We=q[Le];if(0>n(me,Q))Le<ye&&0>n(We,me)?(q[de]=We,q[Le]=Q,de=Le):(q[de]=me,q[ee]=Q,de=ee);else if(Le<ye&&0>n(We,Q))q[de]=We,q[Le]=Q,de=Le;else break e}}return Z}function n(q,Z){var Q=q.sortIndex-Z.sortIndex;return Q!==0?Q:q.id-Z.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;s.unstable_now=function(){return o.now()}}else{var r=Date,a=r.now();s.unstable_now=function(){return r.now()-a}}var l=[],c=[],d=1,h=null,f=3,p=!1,m=!1,_=!1,C=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function x(q){for(var Z=t(c);Z!==null;){if(Z.callback===null)i(c);else if(Z.startTime<=q)i(c),Z.sortIndex=Z.expirationTime,e(l,Z);else break;Z=t(c)}}function E(q){if(_=!1,x(q),!m)if(t(l)!==null)m=!0,D||(D=!0,V());else{var Z=t(c);Z!==null&&X(E,Z.startTime-q)}}var D=!1,T=-1,R=5,A=-1;function H(){return C?!0:!(s.unstable_now()-A<R)}function z(){if(C=!1,D){var q=s.unstable_now();A=q;var Z=!0;try{e:{m=!1,_&&(_=!1,S(T),T=-1),p=!0;var Q=f;try{t:{for(x(q),h=t(l);h!==null&&!(h.expirationTime>q&&H());){var de=h.callback;if(typeof de=="function"){h.callback=null,f=h.priorityLevel;var ye=de(h.expirationTime<=q);if(q=s.unstable_now(),typeof ye=="function"){h.callback=ye,x(q),Z=!0;break t}h===t(l)&&i(l),x(q)}else i(l);h=t(l)}if(h!==null)Z=!0;else{var W=t(c);W!==null&&X(E,W.startTime-q),Z=!1}}break e}finally{h=null,f=Q,p=!1}Z=void 0}}finally{Z?V():D=!1}}}var V;if(typeof L=="function")V=function(){L(z)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,Y=K.port2;K.port1.onmessage=z,V=function(){Y.postMessage(null)}}else V=function(){y(z,0)};function X(q,Z){T=y(function(){q(s.unstable_now())},Z)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(q){q.callback=null},s.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<q?Math.floor(1e3/q):5},s.unstable_getCurrentPriorityLevel=function(){return f},s.unstable_next=function(q){switch(f){case 1:case 2:case 3:var Z=3;break;default:Z=f}var Q=f;f=Z;try{return q()}finally{f=Q}},s.unstable_requestPaint=function(){C=!0},s.unstable_runWithPriority=function(q,Z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var Q=f;f=q;try{return Z()}finally{f=Q}},s.unstable_scheduleCallback=function(q,Z,Q){var de=s.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?de+Q:de):Q=de,q){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=Q+ye,q={id:d++,callback:Z,priorityLevel:q,startTime:Q,expirationTime:ye,sortIndex:-1},Q>de?(q.sortIndex=Q,e(c,q),t(l)===null&&q===t(c)&&(_?(S(T),T=-1):_=!0,X(E,Q-de))):(q.sortIndex=ye,e(l,q),m||p||(m=!0,D||(D=!0,V()))),q},s.unstable_shouldYield=H,s.unstable_wrapCallback=function(q){var Z=f;return function(){var Q=f;f=Z;try{return q.apply(this,arguments)}finally{f=Q}}}})(C9)),C9}var yie;function gxe(){return yie||(yie=1,v9.exports=fxe()),v9.exports}var w9={exports:{}},ii={};var Sie;function pxe(){if(Sie)return ii;Sie=1;var s=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),r=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function p(W){return W===null||typeof W!="object"?null:(W=f&&W[f]||W["@@iterator"],typeof W=="function"?W:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function y(W,ee,me){this.props=W,this.context=ee,this.refs=C,this.updater=me||m}y.prototype.isReactComponent={},y.prototype.setState=function(W,ee){if(typeof W!="object"&&typeof W!="function"&&W!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,W,ee,"setState")},y.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function S(){}S.prototype=y.prototype;function L(W,ee,me){this.props=W,this.context=ee,this.refs=C,this.updater=me||m}var x=L.prototype=new S;x.constructor=L,_(x,y.prototype),x.isPureReactComponent=!0;var E=Array.isArray;function D(){}var T={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function A(W,ee,me){var Le=me.ref;return{$$typeof:s,type:W,key:ee,ref:Le!==void 0?Le:null,props:me}}function H(W,ee){return A(W.type,ee,W.props)}function z(W){return typeof W=="object"&&W!==null&&W.$$typeof===s}function V(W){var ee={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(me){return ee[me]})}var K=/\/+/g;function Y(W,ee){return typeof W=="object"&&W!==null&&W.key!=null?V(""+W.key):ee.toString(36)}function X(W){switch(W.status){case"fulfilled":return W.value;case"rejected":throw W.reason;default:switch(typeof W.status=="string"?W.then(D,D):(W.status="pending",W.then(function(ee){W.status==="pending"&&(W.status="fulfilled",W.value=ee)},function(ee){W.status==="pending"&&(W.status="rejected",W.reason=ee)})),W.status){case"fulfilled":return W.value;case"rejected":throw W.reason}}throw W}function q(W,ee,me,Le,We){var Ze=typeof W;(Ze==="undefined"||Ze==="boolean")&&(W=null);var nt=!1;if(W===null)nt=!0;else switch(Ze){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(W.$$typeof){case s:case e:nt=!0;break;case d:return nt=W._init,q(nt(W._payload),ee,me,Le,We)}}if(nt)return We=We(W),nt=Le===""?"."+Y(W,0):Le,E(We)?(me="",nt!=null&&(me=nt.replace(K,"$&/")+"/"),q(We,ee,me,"",function(Ds){return Ds})):We!=null&&(z(We)&&(We=H(We,me+(We.key==null||W&&W.key===We.key?"":(""+We.key).replace(K,"$&/")+"/")+nt)),ee.push(We)),1;nt=0;var Wt=Le===""?".":Le+":";if(E(W))for(var Xt=0;Xt<W.length;Xt++)Le=W[Xt],Ze=Wt+Y(Le,Xt),nt+=q(Le,ee,me,Ze,We);else if(Xt=p(W),typeof Xt=="function")for(W=Xt.call(W),Xt=0;!(Le=W.next()).done;)Le=Le.value,Ze=Wt+Y(Le,Xt++),nt+=q(Le,ee,me,Ze,We);else if(Ze==="object"){if(typeof W.then=="function")return q(X(W),ee,me,Le,We);throw ee=String(W),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return nt}function Z(W,ee,me){if(W==null)return W;var Le=[],We=0;return q(W,Le,"","",function(Ze){return ee.call(me,Ze,We++)}),Le}function Q(W){if(W._status===-1){var ee=W._result;ee=ee(),ee.then(function(me){(W._status===0||W._status===-1)&&(W._status=1,W._result=me)},function(me){(W._status===0||W._status===-1)&&(W._status=2,W._result=me)}),W._status===-1&&(W._status=0,W._result=ee)}if(W._status===1)return W._result.default;throw W._result}var de=typeof reportError=="function"?reportError:function(W){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof W=="object"&&W!==null&&typeof W.message=="string"?String(W.message):String(W),error:W});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",W);return}console.error(W)},ye={map:Z,forEach:function(W,ee,me){Z(W,function(){ee.apply(this,arguments)},me)},count:function(W){var ee=0;return Z(W,function(){ee++}),ee},toArray:function(W){return Z(W,function(ee){return ee})||[]},only:function(W){if(!z(W))throw Error("React.Children.only expected to receive a single React element child.");return W}};return ii.Activity=h,ii.Children=ye,ii.Component=y,ii.Fragment=t,ii.Profiler=n,ii.PureComponent=L,ii.StrictMode=i,ii.Suspense=l,ii.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,ii.__COMPILER_RUNTIME={__proto__:null,c:function(W){return T.H.useMemoCache(W)}},ii.cache=function(W){return function(){return W.apply(null,arguments)}},ii.cacheSignal=function(){return null},ii.cloneElement=function(W,ee,me){if(W==null)throw Error("The argument must be a React element, but you passed "+W+".");var Le=_({},W.props),We=W.key;if(ee!=null)for(Ze in ee.key!==void 0&&(We=""+ee.key),ee)!R.call(ee,Ze)||Ze==="key"||Ze==="__self"||Ze==="__source"||Ze==="ref"&&ee.ref===void 0||(Le[Ze]=ee[Ze]);var Ze=arguments.length-2;if(Ze===1)Le.children=me;else if(1<Ze){for(var nt=Array(Ze),Wt=0;Wt<Ze;Wt++)nt[Wt]=arguments[Wt+2];Le.children=nt}return A(W.type,We,Le)},ii.createContext=function(W){return W={$$typeof:r,_currentValue:W,_currentValue2:W,_threadCount:0,Provider:null,Consumer:null},W.Provider=W,W.Consumer={$$typeof:o,_context:W},W},ii.createElement=function(W,ee,me){var Le,We={},Ze=null;if(ee!=null)for(Le in ee.key!==void 0&&(Ze=""+ee.key),ee)R.call(ee,Le)&&Le!=="key"&&Le!=="__self"&&Le!=="__source"&&(We[Le]=ee[Le]);var nt=arguments.length-2;if(nt===1)We.children=me;else if(1<nt){for(var Wt=Array(nt),Xt=0;Xt<nt;Xt++)Wt[Xt]=arguments[Xt+2];We.children=Wt}if(W&&W.defaultProps)for(Le in nt=W.defaultProps,nt)We[Le]===void 0&&(We[Le]=nt[Le]);return A(W,Ze,We)},ii.createRef=function(){return{current:null}},ii.forwardRef=function(W){return{$$typeof:a,render:W}},ii.isValidElement=z,ii.lazy=function(W){return{$$typeof:d,_payload:{_status:-1,_result:W},_init:Q}},ii.memo=function(W,ee){return{$$typeof:c,type:W,compare:ee===void 0?null:ee}},ii.startTransition=function(W){var ee=T.T,me={};T.T=me;try{var Le=W(),We=T.S;We!==null&&We(me,Le),typeof Le=="object"&&Le!==null&&typeof Le.then=="function"&&Le.then(D,de)}catch(Ze){de(Ze)}finally{ee!==null&&me.types!==null&&(ee.types=me.types),T.T=ee}},ii.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},ii.use=function(W){return T.H.use(W)},ii.useActionState=function(W,ee,me){return T.H.useActionState(W,ee,me)},ii.useCallback=function(W,ee){return T.H.useCallback(W,ee)},ii.useContext=function(W){return T.H.useContext(W)},ii.useDebugValue=function(){},ii.useDeferredValue=function(W,ee){return T.H.useDeferredValue(W,ee)},ii.useEffect=function(W,ee){return T.H.useEffect(W,ee)},ii.useEffectEvent=function(W){return T.H.useEffectEvent(W)},ii.useId=function(){return T.H.useId()},ii.useImperativeHandle=function(W,ee,me){return T.H.useImperativeHandle(W,ee,me)},ii.useInsertionEffect=function(W,ee){return T.H.useInsertionEffect(W,ee)},ii.useLayoutEffect=function(W,ee){return T.H.useLayoutEffect(W,ee)},ii.useMemo=function(W,ee){return T.H.useMemo(W,ee)},ii.useOptimistic=function(W,ee){return T.H.useOptimistic(W,ee)},ii.useReducer=function(W,ee,me){return T.H.useReducer(W,ee,me)},ii.useRef=function(W){return T.H.useRef(W)},ii.useState=function(W){return T.H.useState(W)},ii.useSyncExternalStore=function(W,ee,me){return T.H.useSyncExternalStore(W,ee,me)},ii.useTransition=function(){return T.H.useTransition()},ii.version="19.2.3",ii}var xie;function WG(){return xie||(xie=1,w9.exports=pxe()),w9.exports}var y9={exports:{}},Fr={};var Lie;function mxe(){if(Lie)return Fr;Lie=1;var s=WG();function e(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},n=Symbol.for("react.portal");function o(l,c,d){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:l,containerInfo:c,implementation:d}}var r=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Fr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Fr.createPortal=function(l,c){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(e(299));return o(l,c,null,d)},Fr.flushSync=function(l){var c=r.T,d=i.p;try{if(r.T=null,i.p=2,l)return l()}finally{r.T=c,i.p=d,i.d.f()}},Fr.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,i.d.C(l,c))},Fr.prefetchDNS=function(l){typeof l=="string"&&i.d.D(l)},Fr.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var d=c.as,h=a(d,c.crossOrigin),f=typeof c.integrity=="string"?c.integrity:void 0,p=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;d==="style"?i.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:p}):d==="script"&&i.d.X(l,{crossOrigin:h,integrity:f,fetchPriority:p,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Fr.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var d=a(c.as,c.crossOrigin);i.d.M(l,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&i.d.M(l)},Fr.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var d=c.as,h=a(d,c.crossOrigin);i.d.L(l,d,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Fr.preloadModule=function(l,c){if(typeof l=="string")if(c){var d=a(c.as,c.crossOrigin);i.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else i.d.m(l)},Fr.requestFormReset=function(l){i.d.r(l)},Fr.unstable_batchedUpdates=function(l,c){return l(c)},Fr.useFormState=function(l,c,d){return r.H.useFormState(l,c,d)},Fr.useFormStatus=function(){return r.H.useHostTransitionStatus()},Fr.version="19.2.3",Fr}var kie;function _xe(){if(kie)return y9.exports;kie=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(e){console.error(e)}}return s(),y9.exports=mxe(),y9.exports}var Eie;function bxe(){if(Eie)return hL;Eie=1;var s=gxe(),e=WG(),t=_xe();function i(u){var g="https://react.dev/errors/"+u;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+u+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function o(u){var g=u,b=u;if(u.alternate)for(;g.return;)g=g.return;else{u=g;do g=u,(g.flags&4098)!==0&&(b=g.return),u=g.return;while(u)}return g.tag===3?b:null}function r(u){if(u.tag===13){var g=u.memoizedState;if(g===null&&(u=u.alternate,u!==null&&(g=u.memoizedState)),g!==null)return g.dehydrated}return null}function a(u){if(u.tag===31){var g=u.memoizedState;if(g===null&&(u=u.alternate,u!==null&&(g=u.memoizedState)),g!==null)return g.dehydrated}return null}function l(u){if(o(u)!==u)throw Error(i(188))}function c(u){var g=u.alternate;if(!g){if(g=o(u),g===null)throw Error(i(188));return g!==u?null:u}for(var b=u,w=g;;){var k=b.return;if(k===null)break;var I=k.alternate;if(I===null){if(w=k.return,w!==null){b=w;continue}break}if(k.child===I.child){for(I=k.child;I;){if(I===b)return l(k),u;if(I===w)return l(k),g;I=I.sibling}throw Error(i(188))}if(b.return!==w.return)b=k,w=I;else{for(var O=!1,$=k.child;$;){if($===b){O=!0,b=k,w=I;break}if($===w){O=!0,w=k,b=I;break}$=$.sibling}if(!O){for($=I.child;$;){if($===b){O=!0,b=I,w=k;break}if($===w){O=!0,w=I,b=k;break}$=$.sibling}if(!O)throw Error(i(189))}}if(b.alternate!==w)throw Error(i(190))}if(b.tag!==3)throw Error(i(188));return b.stateNode.current===b?u:g}function d(u){var g=u.tag;if(g===5||g===26||g===27||g===6)return u;for(u=u.child;u!==null;){if(g=d(u),g!==null)return g;u=u.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),L=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function V(u){return u===null||typeof u!="object"?null:(u=z&&u[z]||u["@@iterator"],typeof u=="function"?u:null)}var K=Symbol.for("react.client.reference");function Y(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===K?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case _:return"Fragment";case y:return"Profiler";case C:return"StrictMode";case E:return"Suspense";case D:return"SuspenseList";case A:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case m:return"Portal";case L:return u.displayName||"Context";case S:return(u._context.displayName||"Context")+".Consumer";case x:var g=u.render;return u=u.displayName,u||(u=g.displayName||g.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case T:return g=u.displayName||null,g!==null?g:Y(u.type)||"Memo";case R:g=u._payload,u=u._init;try{return Y(u(g))}catch{}}return null}var X=Array.isArray,q=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},de=[],ye=-1;function W(u){return{current:u}}function ee(u){0>ye||(u.current=de[ye],de[ye]=null,ye--)}function me(u,g){ye++,de[ye]=u.current,u.current=g}var Le=W(null),We=W(null),Ze=W(null),nt=W(null);function Wt(u,g){switch(me(Ze,g),me(We,u),me(Le,null),g.nodeType){case 9:case 11:u=(u=g.documentElement)&&(u=u.namespaceURI)?zte(u):0;break;default:if(u=g.tagName,g=g.namespaceURI)g=zte(g),u=$te(g,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}ee(Le),me(Le,u)}function Xt(){ee(Le),ee(We),ee(Ze)}function Ds(u){u.memoizedState!==null&&me(nt,u);var g=Le.current,b=$te(g,u.type);g!==b&&(me(We,u),me(Le,b))}function Pr(u){We.current===u&&(ee(Le),ee(We)),nt.current===u&&(ee(nt),rL._currentValue=Q)}var io,na;function Lo(u){if(io===void 0)try{throw Error()}catch(b){var g=b.stack.trim().match(/\n( *(at )?)/);io=g&&g[1]||"",na=-1<b.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<b.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+io+u+na}var ph=!1;function P_(u,g){if(!u||ph)return"";ph=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var w={DetermineComponentFrameRoot:function(){try{if(g){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(ke){var xe=ke}Reflect.construct(u,[],Ae)}else{try{Ae.call()}catch(ke){xe=ke}u.call(Ae.prototype)}}else{try{throw Error()}catch(ke){xe=ke}(Ae=u())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(ke){if(ke&&xe&&typeof ke.stack=="string")return[ke.stack,xe.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=w.DetermineComponentFrameRoot(),O=I[0],$=I[1];if(O&&$){var ie=O.split(`
|
|
@@ -909,7 +909,7 @@ ${e.toString()}`}}class jP{constructor(e=new sx,t=!1,i,n=Eet){this._services=e,t
|
|
|
909
909
|
`:`\r
|
|
910
910
|
`}};sG=Fu([$n(0,ct)],sG);class Het{publicLog2(){}}const Bk=class Bk{constructor(){const e=je.from({scheme:Bk.SCHEME,authority:"model",path:"/"});this.workspace={id:m_e,folders:[new Q9e({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Bk.SCHEME?this.workspace.folders[0]:null}};Bk.SCHEME="inmemory";let oG=Bk;function GP(s,e,t){if(!e||!(s instanceof qP))return;const i=[];Object.keys(e).forEach(n=>{m7e(n)&&i.push([`editor.${n}`,e[n]]),t&&_7e(n)&&i.push([`diffEditor.${n}`,e[n]])}),i.length>0&&s.updateValues(i)}let rG=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:tY.convert(e),n=new Map;for(const a of i){if(!(a instanceof Rm))throw new Error("bad edit - only text edits are supported");const l=this._modelService.getModel(a.resource);if(!l)throw new Error("bad edit - model not found");if(typeof a.versionId=="number"&&l.getVersionId()!==a.versionId)throw new Error("bad state - model changed in the meantime");let c=n.get(l);c||(c=[],n.set(l,c)),c.push(fn.replaceMove(M.lift(a.textEdit.range),a.textEdit.text))}let o=0,r=0;for(const[a,l]of n)a.pushStackElement(),a.pushEditOperations([],l,()=>[]),a.pushStackElement(),r+=1,o+=l.length;return{ariaSummary:Hv(QU.bulkEditServiceSummary,o,r),isApplied:o>0}}};rG=Fu([$n(0,Xi)],rG);class Wet{getUriLabel(e,t){return e.scheme==="file"?e.fsPath:e.path}getUriBasenameLabel(e){return ac(e)}}let aG=class extends eJe{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const n=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();n&&(t=n.getContainerDomNode())}return super.showContextView(e,t,i)}};aG=Fu([$n(0,Au),$n(1,Bt)],aG);class Vet{constructor(){this._neverEmitter=new j,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class zet extends yq{constructor(){super()}}class $et extends Ret{constructor(){super(new $ke)}}let lG=class extends Lq{constructor(e,t,i,n,o,r){super(e,t,i,n,o,r),this.configure({blockMouse:!1})}};lG=Fu([$n(0,Uo),$n(1,vn),$n(2,Yg),$n(3,$t),$n(4,gc),$n(5,it)],lG);const Uet={esmModuleLocation:void 0,label:"editorWorkerService"};let cG=class extends dq{constructor(e,t,i,n,o){super(Uet,e,t,i,n,o)}};cG=Fu([$n(0,Xi),$n(1,xF),$n(2,Ii),$n(3,Qi),$n(4,Oe)],cG);class jet{async playSignal(e,t){}}St(Ii,$et,0);St(ct,qP,0);St(xF,nG,0);St(dve,sG,0);St(Bg,oG,0);St(d0,Wet,0);St(Uo,Het,0);St(kD,Fet,0);St(hY,Pet,0);St(vn,tG,0);St(Ou,U1,0);St(bn,zet,0);St(xl,jXe,0);St(Xi,Nq,0);St(OK,Tq,0);St(it,Qq,0);St($pe,Oet,0);St(Pg,eG,0);St(ar,O8e,0);St(ia,cG,0);St(gD,rG,0);St(yve,Vet,0);St(rr,Jq,0);St(eo,Kq,0);St(bc,$We,0);St(Di,iG,0);St($t,AS,0);St(zo,qq,0);St(Yg,aG,0);St(Xg,Dq,0);St(Ta,Yq,0);St(Sl,lG,0);St(gc,RV,0);St(Kg,jet,0);St(CZ,Met,0);St(_fe,Gke,0);St(eX,oUe,0);var ot;(function(s){const e=new sx;for(const[l,c]of yne())e.set(l,c);const t=new jP(e,!0);e.set(He,t);function i(l){n||r({});const c=e.get(l);if(!c)throw new Error("Missing service "+l);return c instanceof Zh?t.invokeFunction(d=>d.get(l)):c}s.get=i;let n=!1;const o=new j;function r(l){if(n)return t;n=!0;for(const[d,h]of yne())e.get(d)||e.set(d,h);for(const d in l)if(l.hasOwnProperty(d)){const h=mt(d);e.get(h)instanceof Zh&&e.set(h,l[d])}const c=Q7e();for(const d of c)try{t.createInstance(d)}catch(h){st(h)}return o.fire(),t}s.initialize=r;function a(l){if(n)return l();const c=new ne,d=c.add(o.event(()=>{d.dispose(),c.add(l())}));return c}s.withServices=a})(ot||(ot={}));var qet=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qce=function(s,e){return function(t,i){e(t,i,s)}},SM,Mv;let dG=(Mv=class{constructor(e,t){this._configurationService=e,this._languageService=t}async renderCodeBlock(e,t,i){const n=sh(i.context)?i.context:void 0;let o;e?o=this._languageService.getLanguageIdByLanguageName(e):n&&(o=n.getModel()?.getLanguageId()),o||(o=fl);const r=await X4e(this._languageService,t,o),a=SM._ttpTokenizer?SM._ttpTokenizer.createHTML(r)??r:r,l=document.createElement("span");l.innerHTML=a;const c=l.querySelector(".monaco-tokenized-source");return _n(c)?(Ws(c,this.getFontInfo(n)),l):document.createElement("span")}getFontInfo(e){return e?e.getOption(59):kDe({fontFamily:this._configurationService.getValue("editor").fontFamily},1)}},SM=Mv,Mv._ttpTokenizer=Ru("tokenizeToString",{createHTML(e){return e}}),Mv);dG=SM=qet([Qce(0,ct),Qce(1,bn)],dG);var RX=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},wi=function(s,e){return function(t,i){e(t,i,s)}};let Get=0,Jce=!1;function Ket(s){if(!s){if(Jce)return;Jce=!0}lke(s||ci.document.body)}let KP=class extends Kv{constructor(e,t,i,n,o,r,a,l,c,d,h,f,p,m){const _={...t};_.ariaLabel=_.ariaLabel||YU.editorViewAccessibleLabel,super(e,_,{},i,n,o,r,c,d,h,f,p),l instanceof AS?this._standaloneKeybindingService=l:this._standaloneKeybindingService=null,Ket(_.ariaContainerElement),F5e((C,y)=>i.createInstance(_S,C,{instantHover:y},{})),GFe(a),m.setDefaultCodeBlockRenderer(i.createInstance(dG))}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Get,o=le.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if(typeof e.id!="string"||typeof e.label!="string"||typeof e.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),G.None;const t=e.id,i=e.label,n=le.and(le.equals("editorId",this.getId()),le.deserialize(e.precondition)),o=e.keybindings,r=le.and(n,le.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,c=(p,...m)=>Promise.resolve(e.run(this,...m)),d=new ne,h=this.getId()+":"+t;if(d.add(Rt.registerCommand(h,c)),a){const p={command:{id:h,title:i},when:n,group:a,order:l};d.add(Hs.appendMenuItem(Pe.EditorContext,p))}if(Array.isArray(o))for(const p of o)d.add(this._standaloneKeybindingService.addDynamicKeybinding(h,p,c,r));const f=new fpe(h,i,i,void 0,n,(...p)=>Promise.resolve(e.run(this,...p)),this._contextKeyService);return this._actions.set(t,f),d.add(Fe(()=>{this._actions.delete(t)})),d}_triggerCommand(e,t){if(this._codeEditorService instanceof OP)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};KP=RX([wi(2,He),wi(3,Bt),wi(4,Di),wi(5,it),wi(6,Mr),wi(7,$t),wi(8,ln),wi(9,vn),wi(10,eo),wi(11,Qi),wi(12,Oe),wi(13,cd)],KP);let hG=class extends KP{constructor(e,t,i,n,o,r,a,l,c,d,h,f,p,m,_,C,y){const S={...t};GP(h,S,!1);const L=c.registerEditorContainer(e);typeof S.theme=="string"&&c.setTheme(S.theme),typeof S.autoDetectHighContrast<"u"&&c.setAutoDetectHighContrast(!!S.autoDetectHighContrast);const x=S.model;delete S.model,super(e,S,i,n,o,r,a,l,c,d,f,_,C,y),this._configurationService=h,this._standaloneThemeService=c,this._register(L);let E;if(typeof x>"u"){const D=m.getLanguageIdByMimeType(S.language)||S.language||fl;E=g0e(p,m,S.value||"",D,void 0),this._ownsModel=!0}else E=x,this._ownsModel=!1;if(this._attachModel(E),E){const D={oldModelUrl:null,newModelUrl:E.uri};this._onDidChangeModel.fire(D)}}dispose(){super.dispose()}updateOptions(e){GP(this._configurationService,e,!1),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};hG=RX([wi(2,He),wi(3,Bt),wi(4,Di),wi(5,it),wi(6,Mr),wi(7,$t),wi(8,xl),wi(9,vn),wi(10,ct),wi(11,eo),wi(12,Xi),wi(13,bn),wi(14,Qi),wi(15,Oe),wi(16,cd)],hG);let uG=class extends Lu{constructor(e,t,i,n,o,r,a,l,c,d,h,f){const p={...t};GP(l,p,!0);const m=r.registerEditorContainer(e);typeof p.theme=="string"&&r.setTheme(p.theme),typeof p.autoDetectHighContrast<"u"&&r.setAutoDetectHighContrast(!!p.autoDetectHighContrast),super(e,p,{},n,i,o,f,d),this._configurationService=l,this._standaloneThemeService=r,this._register(m)}dispose(){super.dispose()}updateOptions(e){GP(this._configurationService,e,!0),typeof e.theme=="string"&&this._standaloneThemeService.setTheme(e.theme),typeof e.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!e.autoDetectHighContrast),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(KP,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};uG=RX([wi(2,He),wi(3,it),wi(4,Bt),wi(5,xl),wi(6,vn),wi(7,ct),wi(8,Sl),wi(9,Pg),wi(10,Ta),wi(11,Kg)],uG);function g0e(s,e,t,i,n){if(t=t||"",!i){const o=t.indexOf(`
|
|
911
911
|
`);let r=t;return o!==-1&&(r=t.substring(0,o)),ede(s,t,e.createByFilepathOrFirstLine(n||null,r),n)}return ede(s,t,e.createById(i),n)}function ede(s,e,t,i){return s.createModel(e,t,i)}F("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},v(142,"The background color of the diff editor's header"));F("multiDiffEditor.background",An,v(143,"The background color of the multi file diff editor"));F("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},v(144,"The border color of the multi file diff editor"));var Zet=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},tde=function(s,e){return function(t,i){e(t,i,s)}};class Yet{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let fG=class extends G{constructor(e,t,i,n,o){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=tt(this,void 0),this._collapsed=oe(this,l=>this._viewModel.read(l)?.collapsed.read(l)),this._editorContentHeight=tt(this,500),this.contentHeight=oe(this,l=>(this._collapsed.read(l)?0:this._editorContentHeight.read(l))+this._outerEditorHeight),this._modifiedContentWidth=tt(this,0),this._modifiedWidth=tt(this,0),this._originalContentWidth=tt(this,0),this._originalWidth=tt(this,0),this.maxScroll=oe(this,l=>{const c=this._modifiedContentWidth.read(l)-this._modifiedWidth.read(l),d=this._originalContentWidth.read(l)-this._originalWidth.read(l);return c>d?{maxScroll:c,width:this._modifiedWidth.read(l)}:{maxScroll:d,width:this._originalWidth.read(l)}}),this._elements=Ot("div.multiDiffEntry",[Ot("div.header@header",[Ot("div.header-content",[Ot("div.collapse-button@collapseButton"),Ot("div.file-path",[Ot("div.title.modified.show-file-icons@primaryPath",[]),Ot("div.status.deleted@status",["R"]),Ot("div.title.original.show-file-icons@secondaryPath",[])]),Ot("div.actions@actions")])]),Ot("div.editorParent",[Ot("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Lu,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode,fixedOverflowWidgets:!0},{})),this.isModifedFocused=Yi(this.editor.getModifiedEditor()).isFocused,this.isOriginalFocused=Yi(this.editor.getOriginalEditor()).isFocused,this.isFocused=oe(this,l=>this.isModifedFocused.read(l)||this.isOriginalFocused.read(l)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=this._register(new ne),this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const r=new lO(this._elements.collapseButton,{});this._register(Qe(l=>{r.element.className="",r.icon=this._collapsed.read(l)?he.chevronRight:he.chevronDown})),this._register(r.onDidClick(()=>{this._viewModel.get()?.collapsed.set(!this._collapsed.get(),void 0)})),this._register(Qe(l=>{this._elements.editor.style.display=this._collapsed.read(l)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(l=>{const c=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(c,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(l=>{const c=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(c,void 0)})),this._register(this.editor.onDidContentSizeChange(l=>{XL(c=>{this._editorContentHeight.set(l.contentHeight,c),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),c),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),c)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(l=>{if(this._isSettingScrollTop||!l.scrollTopChanged||!this._data)return;const c=l.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(c)})),this._register(Qe(l=>{const c=this._viewModel.read(l)?.isActive.read(l);this._elements.root.classList.toggle("active",c)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._contextKeyService=this._register(o.createScoped(this._elements.actions));const a=this._register(this._instantiationService.createChild(new sx([it,this._contextKeyService])));this._register(a.createInstance(PE,this._elements.actions,Pe.MultiDiffEditorFileToolbar,{actionRunner:this._register(new i_e(()=>this._viewModel.get()?.modifiedUri??this._viewModel.get()?.originalUri)),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:l=>l.startsWith("navigation")},actionViewItemProvider:(l,c)=>JZ(a,l,c)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){this._data=e;function t(n){return{...n,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}if(!e){XL(n=>{this._viewModel.set(void 0,n),this.editor.setDiffModel(null,n),this._dataStore.clear()});return}const i=e.viewModel.documentDiffItem;if(XL(n=>{this._resourceLabel?.setUri(e.viewModel.modifiedUri??e.viewModel.originalUri,{strikethrough:e.viewModel.modifiedUri===void 0});let o=!1,r=!1,a=!1,l="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(l="R",o=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(l="A",a=!0):(l="D",r=!0),this._elements.status.classList.toggle("renamed",o),this._elements.status.classList.toggle("deleted",r),this._elements.status.classList.toggle("added",a),this._elements.status.innerText=l,this._resourceLabel2?.setUri(o?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setDiffModel(e.viewModel.diffEditorViewModelRef,n),this.editor.updateOptions(t(i.options??{}))}),i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange(()=>{this.editor.updateOptions(t(i.options??{}))})),e.viewModel.isAlive.recomputeInitiallyAndOnChange(this._dataStore,n=>{n||this.setData(void 0)}),e.viewModel.documentDiffItem.contextKeys)for(const[n,o]of Object.entries(e.viewModel.documentDiffItem.contextKeys))this._contextKeyService.createKey(n,o)}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const o=e.length-this._headerHeight,r=Math.max(0,Math.min(n.start-e.start,o));this._elements.header.style.transform=`translateY(${r}px)`,XL(a=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",r>0||i>0),this._elements.header.classList.toggle("collapsed",r===o)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};fG=Zet([tde(3,He),tde(4,it)],fG);class Xet{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){let t;if(this._unused.size===0)t=this._create(e),this._itemData.set(t,e);else{const i=[...this._unused.values()];t=i.find(n=>this._itemData.get(n).getId()===e.getId())??i[0],this._unused.delete(t),this._itemData.set(t,e),t.setData(e)}return this._used.add(t),{object:t,dispose:()=>{this._used.delete(t),this._unused.size>5?t.dispose():this._unused.add(t)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var Qet=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ide=function(s,e){return function(t,i){e(t,i,s)}};let gG=class extends G{constructor(e,t,i,n,o,r){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=o,this._parentInstantiationService=r,this._scrollableElements=Ot("div.scrollContent",[Ot("div@content",{style:{overflow:"hidden"}}),Ot("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new ix({forceIntegerValues:!1,scheduleAtNextAnimationFrame:c=>Xr(ze(this._element),c),smoothScrollDuration:100})),this._scrollableElement=this._register(new O3(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=Ot("div.monaco-component.multiDiffEditor",{},[Ot("div",{},[this._scrollableElement.getDomNode()]),Ot("div.placeholder@placeholder",{},[Ot("div")])]),this._sizeObserver=this._register(new Pme(this._element,void 0)),this._objectPool=this._register(new Xet(c=>{const d=this._instantiationService.createInstance(fG,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return d.setData(c),d})),this.scrollTop=Kt(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=Kt(this,this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItemsInfo=oe(this,c=>{const d=this._viewModel.read(c);if(!d)return{items:[],getItem:m=>{throw new qe}};const h=d.items.read(c),f=new Map;return{items:h.map(m=>{const _=c.store.add(new ett(m,this._objectPool,this.scrollLeft,y=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+y})})),C=this._lastDocStates?.[_.getKey()];return C&&yi(y=>{_.setViewState(C,y)}),f.set(m,_),_}),getItem:m=>f.get(m)}}),this._viewItems=this._viewItemsInfo.map(this,c=>c.items),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(c,d)=>c.reduce((h,f)=>h+f.contentHeight.read(d)+this._spaceBetweenPx,0)),this.activeControl=oe(this,c=>{const d=this._viewModel.read(c)?.activeDiffItem.read(c);return d?this._viewItemsInfo.read(c).getItem(d).template.read(c)?.editor:void 0}),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new sx([it,this._contextKeyService]))),this._contextKeyService.createKey(B.inMultiDiffEditor.key,!0),this._lastDocStates={},this._register(Ho((c,d)=>{const h=this._viewModel.read(c);if(h&&h.contextKeys)for(const[f,p]of Object.entries(h.contextKeys)){const m=this._contextKeyService.createKey(f,void 0);m.set(p),d.add(Fe(()=>m.reset()))}}));const a=this._parentContextKeyService.createKey(B.multiDiffEditorAllCollapsed.key,!1);this._register(Qe(c=>{const d=this._viewModel.read(c);if(d){const h=d.items.read(c).every(f=>f.collapsed.read(c));a.set(h)}})),this._register(Qe(c=>{const d=this._dimension.read(c);this._sizeObserver.observe(d)}));const l=oe(c=>{if(this._viewItems.read(c).length>0)return;const h=this._viewModel.read(c);return!h||h.isLoading.read(c)?v(145,"Loading..."):v(146,"No Changed Files")});this._register(Qe(c=>{const d=l.read(c);this._elements.placeholder.innerText=d??"",this._elements.placeholder.classList.toggle("visible",!!d)})),this._scrollableElements.content.style.position="relative",this._register(Qe(c=>{const d=this._sizeObserver.height.read(c);this._scrollableElements.root.style.height=`${d}px`;const h=this._totalHeight.read(c);this._scrollableElements.content.style.height=`${h}px`;const f=this._sizeObserver.width.read(c);let p=f;const m=this._viewItems.read(c),_=eZ(m,Co(C=>C.maxScroll.read(c).maxScroll,wa));if(_){const C=_.maxScroll.read(c);p=f+C.maxScroll}this._scrollableElement.setScrollDimensions({width:f,height:d,scrollHeight:h,scrollWidth:p})})),e.replaceChildren(this._elements.root),this._register(Fe(()=>{e.replaceChildren()})),this._register(Qe(c=>{const d=this._viewModel.read(c);if(d&&!d.isLoading.read(c)){if(d.items.read(c).length===0||d.activeDiffItem.read(c))return;this.goToNextChange()}})),this._register(this._register(Qe(c=>{XL(d=>{this.render(c)})})))}reveal(e,t){const i=this._viewItems.get(),n=i.findIndex(c=>c.viewModel.originalUri?.toString()===e.original?.toString()&&c.viewModel.modifiedUri?.toString()===e.modified?.toString());if(n===-1)throw new qe("Resource not found in diff editor");const o=i[n];this._viewModel.get().activeDiffItem.setCache(o.viewModel,void 0);let r=0;for(let c=0;c<n;c++)r+=i[c].contentHeight.get()+this._spaceBetweenPx;this._scrollableElement.setScrollPosition({scrollTop:r});const a=o.template.get()?.editor,l="original"in e?a?.getOriginalEditor():a?.getModifiedEditor();l&&t?.range&&(l.revealRangeInCenter(t.range),Jet(l,t.range))}goToNextChange(){this._navigateToChange("next")}_navigateToChange(e){const t=this._viewItems.get();if(t.length===0)return;const i=this._viewModel.get()?.activeDiffItem.get(),n=i?t.findIndex(l=>l.viewModel===i):-1;if(n===-1){this._goToFile(0,"first");return}const o=t[n];o.viewModel.collapsed.get()&&o.viewModel.collapsed.set(!1,void 0);const r=o.template.get()?.editor;if(r?.getDiffComputationResult()?.changes2?.length){const l=r.getModifiedEditor().getPosition()?.lineNumber||1,c=r.getDiffComputationResult().changes2;if(e==="next"?c.some(h=>h.modified.startLineNumber>l):c.some(h=>h.modified.endLineNumberExclusive<=l)){r.goToDiff(e);return}}const a=(n+(e==="next"?1:-1)+t.length)%t.length;this._goToFile(a,e==="next"?"first":"last")}_goToFile(e,t){const i=this._viewItems.get()[e];i.viewModel.collapsed.get()&&i.viewModel.collapsed.set(!1,void 0),this.reveal({original:i.viewModel.originalUri,modified:i.viewModel.modifiedUri});const n=i.template.get()?.editor;if(n?.getDiffComputationResult()?.changes2?.length)if(t==="first")n.revealFirstDiff();else{const o=n.getDiffComputationResult().changes2.at(-1),r=n.getModifiedEditor();r.setPosition({lineNumber:o.modified.startLineNumber,column:1}),r.revealLineInCenter(o.modified.startLineNumber)}n?.focus()}render(e){const t=this.scrollTop.read(e);let i=0,n=0,o=0;const r=this._sizeObserver.height.read(e),a=Be.ofStartAndLength(t,r),l=this._sizeObserver.width.read(e);for(const c of this._viewItems.read(e)){const d=c.contentHeight.read(e),h=Math.min(d,r),f=Be.ofStartAndLength(n,h),p=Be.ofStartAndLength(o,d);if(p.isBefore(a))i-=d-h,c.hide();else if(p.isAfter(a))c.hide();else{const m=Math.max(0,Math.min(a.start-p.start,d-h));i-=m;const _=Be.ofStartAndLength(t+i,r);c.render(f,m,l,_)}n+=h+this._spaceBetweenPx,o+=d+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};gG=Qet([ide(4,it),ide(5,He)],gG);function Jet(s,e){const t=s.getModel(),i=s.createDecorationsCollection([{range:e,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{s.getModel()===t&&i.clear()},350)}class ett extends G{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register(mK(this,void 0)),this.contentHeight=oe(this,o=>this._templateRef.read(o)?.object.contentHeight?.read(o)??this.viewModel.lastTemplateData.read(o).contentHeight),this.maxScroll=oe(this,o=>this._templateRef.read(o)?.object.maxScroll.read(o)??{maxScroll:0,scrollWidth:0}),this.template=oe(this,o=>this._templateRef.read(o)?.object),this._isHidden=tt(this,!1),this._isFocused=oe(this,o=>this.template.read(o)?.isFocused.read(o)??!1),this.viewModel.setIsFocused(this._isFocused,void 0),this._register(Qe(o=>{const r=this._scrollLeft.read(o);this._templateRef.read(o)?.object.setScrollLeft(r)})),this._register(Qe(o=>{const r=this._templateRef.read(o);!r||!this._isHidden.read(o)||r.object.isFocused.read(o)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){return`VirtualViewItem(${this.viewModel.documentDiffItem.modified?.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const i=this.viewModel.lastTemplateData.get(),n=e.selections?.map(Re.liftSelection);this.viewModel.lastTemplateData.set({...i,selections:n},t);const o=this._templateRef.get();o&&n&&o.object.editor.setSelections(n)}_updateTemplateData(e){const t=this._templateRef.get();t&&this.viewModel.lastTemplateData.set({contentHeight:t.object.contentHeight.get(),selections:t.object.editor.getSelections()??void 0},e)}_clear(){const e=this._templateRef.get();e&&yi(t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)})}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let o=this._templateRef.get();if(!o){o=this._objectPool.getUnusedObj(new Yet(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(o,void 0);const r=this.viewModel.lastTemplateData.get().selections;r&&o.object.editor.setSelections(r)}o.object.render(e,i,t,n)}}var ttt=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},itt=function(s,e){return function(t,i){e(t,i,s)}};let pG=class extends G{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=tt(this,void 0),this._viewModel=tt(this,void 0),this._widgetImpl=oe(this,n=>n.store.add(this._instantiationService.createInstance(If(gG),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))),this._register(eS(this._widgetImpl))}};pG=ttt([itt(2,He)],pG);function ntt(s,e,t){return ot.initialize(t||{}).createInstance(hG,s,e)}function stt(s){return ot.get(Bt).onCodeEditorAdd(t=>{s(t)})}function ott(s){return ot.get(Bt).onDiffEditorAdd(t=>{s(t)})}function rtt(){return ot.get(Bt).listCodeEditors()}function att(){return ot.get(Bt).listDiffEditors()}function ltt(s,e,t){return ot.initialize(t||{}).createInstance(uG,s,e)}function ctt(s,e){const t=ot.initialize(e||{});return new pG(s,{},t)}function dtt(s){if(typeof s.id!="string"||typeof s.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return Rt.registerCommand(s.id,s.run)}function htt(s){if(typeof s.id!="string"||typeof s.label!="string"||typeof s.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const e=le.deserialize(s.precondition),t=(n,...o)=>ps.runEditorCommand(n,o,e,(r,a,l)=>Promise.resolve(s.run(a,...l))),i=new ne;if(i.add(Rt.registerCommand(s.id,t)),s.contextMenuGroupId){const n={command:{id:s.id,title:s.label},when:e,group:s.contextMenuGroupId,order:s.contextMenuOrder||0};i.add(Hs.appendMenuItem(Pe.EditorContext,n))}if(Array.isArray(s.keybindings)){const n=ot.get($t);if(!(n instanceof AS))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const o=le.and(e,le.deserialize(s.keybindingContext));i.add(n.addDynamicKeybindings(s.keybindings.map(r=>({keybinding:r,command:s.id,when:o}))))}}return i}function utt(s){return p0e([s])}function p0e(s){const e=ot.get($t);return e instanceof AS?e.addDynamicKeybindings(s.map(t=>({keybinding:t.keybinding,command:t.command,commandArgs:t.commandArgs,when:le.deserialize(t.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),G.None)}function ftt(s,e,t){const i=ot.get(bn),n=i.getLanguageIdByMimeType(e)||e;return g0e(ot.get(Xi),i,s,n,t)}function gtt(s,e){const t=ot.get(bn),i=t.getLanguageIdByMimeType(e)||e||fl;s.setLanguage(t.createById(i))}function ptt(s,e,t){s&&ot.get(Ou).changeOne(e,s.uri,t)}function mtt(s){ot.get(Ou).changeAll(s,[])}function _tt(s){return ot.get(Ou).read(s)}function btt(s){return ot.get(Ou).onMarkerChanged(s)}function vtt(s){return ot.get(Xi).getModel(s)}function Ctt(){return ot.get(Xi).getModels()}function wtt(s){return ot.get(Xi).onModelAdded(s)}function ytt(s){return ot.get(Xi).onModelRemoved(s)}function Stt(s){return ot.get(Xi).onModelLanguageChanged(t=>{s({model:t.model,oldLanguage:t.oldLanguageId})})}function xtt(s){return EQe(ot.get(Xi),s)}function Ltt(s,e){const t=ot.get(bn),i=ot.get(xl);return EX.colorizeElement(i,t,s,e).then(()=>{i.registerEditorContainer(s)})}function ktt(s,e,t){const i=ot.get(bn);return ot.get(xl).registerEditorContainer(ci.document.body),EX.colorize(i,s,e,t)}function Ett(s,e,t=4){return ot.get(xl).registerEditorContainer(ci.document.body),EX.colorizeModelLine(s,e,t)}function Itt(s){const e=un.get(s);return e||{getInitialState:()=>gS,tokenize:(t,i,n)=>vZ(s,n)}}function Dtt(s,e){un.getOrCreate(e);const t=Itt(e),i=Ea(s),n=[];let o=t.getInitialState();for(let r=0,a=i.length;r<a;r++){const l=i[r],c=t.tokenize(l,!0,o);n[r]=c.tokens,o=c.endState}return n}function Ttt(s,e){ot.get(xl).defineTheme(s,e)}function Ntt(s){ot.get(xl).setTheme(s)}function Rtt(){XH.clearAllFontInfos()}function Mtt(s,e){return Rt.registerCommand({id:s,handler:e})}function Att(s){return ot.get(Xg).registerOpener({async open(t){return typeof t=="string"&&(t=je.parse(t)),s.open(t)}})}function Ott(s){return ot.get(Bt).registerCodeEditorOpenHandler(async(t,i,n)=>{if(!i)return null;const o=t.options?.selection;let r;return o&&typeof o.endLineNumber=="number"&&typeof o.endColumn=="number"?r=o:o&&(r={lineNumber:o.startLineNumber,column:o.startColumn}),await s.openCodeEditor(i,t.resource,r)?i:null})}function Ptt(){return{create:ntt,getEditors:rtt,getDiffEditors:att,onDidCreateEditor:stt,onDidCreateDiffEditor:ott,createDiffEditor:ltt,addCommand:dtt,addEditorAction:htt,addKeybindingRule:utt,addKeybindingRules:p0e,createModel:ftt,setModelLanguage:gtt,setModelMarkers:ptt,getModelMarkers:_tt,removeAllMarkers:mtt,onDidChangeMarkers:btt,getModels:Ctt,getModel:vtt,onDidCreateModel:wtt,onWillDisposeModel:ytt,onDidChangeModelLanguage:Stt,createWebWorker:xtt,colorizeElement:Ltt,colorize:ktt,colorizeModelLine:Ett,tokenize:Dtt,defineTheme:Ttt,setTheme:Ntt,remeasureFonts:Rtt,registerCommand:Mtt,registerLinkOpener:Att,registerEditorOpener:Ott,AccessibilitySupport:hj,ContentWidgetPositionPreference:_j,CursorChangeReason:bj,DefaultEndOfLine:vj,EditorAutoIndentStrategy:wj,EditorOption:yj,EndOfLinePreference:Sj,EndOfLineSequence:xj,MinimapPosition:Pj,MinimapSectionHeaderStyle:Fj,MouseTargetType:Bj,OverlayWidgetPositionPreference:Vj,OverviewRulerLane:zj,GlyphMarginLane:Lj,RenderLineNumbersType:jj,RenderMinimap:qj,ScrollbarVisibility:Kj,ScrollType:Gj,TextEditorCursorBlinkingStyle:tq,TextEditorCursorStyle:iq,TrackedRangeStickiness:nq,WrappingIndent:sq,InjectedTextCursorStops:Ij,PositionAffinity:Uj,ShowLightbulbIconMode:Yj,TextDirection:eq,ConfigurationChangedEvent:Kfe,BareFontInfo:zv,FontInfo:rA,TextModelResolvedOptions:qR,FindMatch:Jk,ApplyUpdateResult:E2,EditorZoom:Gl,createMultiFileDiffEditor:ctt,EditorType:sD,EditorOptions:Qo}}function Ftt(s,e){if(!e||!Array.isArray(e))return!1;for(const t of e)if(!s(t))return!1;return!0}function xR(s,e){return typeof s=="boolean"?s:e}function nde(s,e){return typeof s=="string"?s:e}function Btt(s){const e={};for(const t of s)e[t]=!0;return e}function sde(s,e=!1){e&&(s=s.map(function(i){return i.toLowerCase()}));const t=Btt(s);return e?function(i){return t[i.toLowerCase()]!==void 0&&t.hasOwnProperty(i.toLowerCase())}:function(i){return t[i]!==void 0&&t.hasOwnProperty(i)}}function mG(s,e,t){e=e.replace(/@@/g,"");let i=0,n;do n=!1,e=e.replace(/@(\w+)/g,function(r,a){n=!0;let l="";if(typeof s[a]=="string")l=s[a];else if(s[a]&&s[a]instanceof RegExp)l=s[a].source;else throw s[a]===void 0?Fi(s,"language definition does not contain attribute '"+a+"', used at: "+e):Fi(s,"attribute reference '"+a+"' must be a string, used at: "+e);return z1(l)?"":"(?:"+l+")"}),i++;while(n&&i<5);e=e.replace(/\x01/g,"@");const o=(s.ignoreCase?"i":"")+(s.unicode?"u":"");if(t&&e.match(/\$[sS](\d\d?)/g)){let a=null,l=null;return c=>(l&&a===c||(a=c,l=new RegExp(RQe(s,e,c),o)),l)}return new RegExp(e,o)}function Htt(s,e,t,i){if(i<0)return s;if(i<e.length)return e[i];if(i>=100){i=i-100;const n=t.split(".");if(n.unshift(t),i<n.length)return n[i]}return null}function Wtt(s,e,t,i){let n=-1,o=t,r=t.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);r&&(r[3]&&(n=parseInt(r[3]),r[2]&&(n=n+100)),o=r[4]);let a="~",l=o;!o||o.length===0?(a="!=",l=""):/^\w*$/.test(l)?a="==":(r=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),r&&(a=r[1],l=r[2]));let c;if((a==="~"||a==="!~")&&/^(\w|\|)*$/.test(l)){const d=sde(l.split("|"),s.ignoreCase);c=function(h){return a==="~"?d(h):!d(h)}}else if(a==="@"||a==="!@"){const d=s[l];if(!d)throw Fi(s,"the @ match target '"+l+"' is not defined, in rule: "+e);if(!Ftt(function(f){return typeof f=="string"},d))throw Fi(s,"the @ match target '"+l+"' must be an array of strings, in rule: "+e);const h=sde(d,s.ignoreCase);c=function(f){return a==="@"?h(f):!h(f)}}else if(a==="~"||a==="!~")if(l.indexOf("$")<0){const d=mG(s,"^"+l+"$",!1);c=function(h){return a==="~"?d.test(h):!d.test(h)}}else c=function(d,h,f,p){return mG(s,"^"+om(s,l,h,f,p)+"$",!1).test(d)};else if(l.indexOf("$")<0){const d=yg(s,l);c=function(h){return a==="=="?h===d:h!==d}}else{const d=yg(s,l);c=function(h,f,p,m,_){const C=om(s,d,f,p,m);return a==="=="?h===C:h!==C}}return n===-1?{name:t,value:i,test:function(d,h,f,p){return c(d,d,h,f,p)}}:{name:t,value:i,test:function(d,h,f,p){const m=Htt(d,h,f,n);return c(m||"",d,h,f,p)}}}function _G(s,e,t){if(t){if(typeof t=="string")return t;if(t.token||t.token===""){if(typeof t.token!="string")throw Fi(s,"a 'token' attribute must be of type string, in rule: "+e);{const i={token:t.token};if(t.token.indexOf("$")>=0&&(i.tokenSubst=!0),typeof t.bracket=="string")if(t.bracket==="@open")i.bracket=1;else if(t.bracket==="@close")i.bracket=-1;else throw Fi(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+e);if(t.next){if(typeof t.next!="string")throw Fi(s,"the next state must be a string value in rule: "+e);{let n=t.next;if(!/^(@pop|@push|@popall)$/.test(n)&&(n[0]==="@"&&(n=n.substr(1)),n.indexOf("$")<0&&!MQe(s,om(s,n,"",[],""))))throw Fi(s,"the next state '"+t.next+"' is not defined in rule: "+e);i.next=n}}return typeof t.goBack=="number"&&(i.goBack=t.goBack),typeof t.switchTo=="string"&&(i.switchTo=t.switchTo),typeof t.log=="string"&&(i.log=t.log),typeof t.nextEmbedded=="string"&&(i.nextEmbedded=t.nextEmbedded,s.usesEmbedded=!0),i}}else if(Array.isArray(t)){const i=[];for(let n=0,o=t.length;n<o;n++)i[n]=_G(s,e,t[n]);return{group:i}}else if(t.cases){const i=[];let n=!1;for(const r in t.cases)if(t.cases.hasOwnProperty(r)){const a=_G(s,e,t.cases[r]);r==="@default"||r==="@"||r===""?i.push({test:void 0,value:a,name:r}):r==="@eos"?i.push({test:function(l,c,d,h){return h},value:a,name:r}):i.push(Wtt(s,e,r,a)),n||(n=!Ss(a)&&(a.hasEmbeddedEndInCases||["@pop","@popall"].includes(a.nextEmbedded||"")))}const o=s.defaultToken;return{hasEmbeddedEndInCases:n,test:function(r,a,l,c){for(const d of i)if(!d.test||d.test(r,a,l,c))return d.value;return o}}}else throw Fi(s,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+e)}else return{token:""}}let Vtt=class{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let i;if(typeof t=="string")i=t;else if(t instanceof RegExp)i=t.source;else throw Fi(e,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=i.length>0&&i[0]==="^",this.name=this.name+": "+i,this.regex=mG(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=_G(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}};function m0e(s,e){if(!e||typeof e!="object")throw new Error("Monarch: expecting a language definition object");const t={languageId:s,includeLF:xR(e.includeLF,!1),noThrow:!1,maxStack:100,start:typeof e.start=="string"?e.start:null,ignoreCase:xR(e.ignoreCase,!1),unicode:xR(e.unicode,!1),tokenPostfix:nde(e.tokenPostfix,"."+s),defaultToken:nde(e.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},i=e;i.languageId=s,i.includeLF=t.includeLF,i.ignoreCase=t.ignoreCase,i.unicode=t.unicode,i.noThrow=t.noThrow,i.usesEmbedded=t.usesEmbedded,i.stateNames=e.tokenizer,i.defaultToken=t.defaultToken;function n(r,a,l){for(const c of l){let d=c.include;if(d){if(typeof d!="string")throw Fi(t,"an 'include' attribute must be a string at: "+r);if(d[0]==="@"&&(d=d.substr(1)),!e.tokenizer[d])throw Fi(t,"include target '"+d+"' is not defined at: "+r);n(r+"."+d,a,e.tokenizer[d])}else{const h=new Vtt(r);if(Array.isArray(c)&&c.length>=1&&c.length<=3)if(h.setRegex(i,c[0]),c.length>=3)if(typeof c[1]=="string")h.setAction(i,{token:c[1],next:c[2]});else if(typeof c[1]=="object"){const f=c[1];f.next=c[2],h.setAction(i,f)}else throw Fi(t,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+r);else h.setAction(i,c[1]);else{if(!c.regex)throw Fi(t,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+r);c.name&&typeof c.name=="string"&&(h.name=c.name),c.matchOnlyAtStart&&(h.matchOnlyAtLineStart=xR(c.matchOnlyAtLineStart,!1)),h.setRegex(i,c.regex),h.setAction(i,c.action)}a.push(h)}}}if(!e.tokenizer||typeof e.tokenizer!="object")throw Fi(t,"a language definition must define the 'tokenizer' attribute as an object");t.tokenizer=[];for(const r in e.tokenizer)if(e.tokenizer.hasOwnProperty(r)){t.start||(t.start=r);const a=e.tokenizer[r];t.tokenizer[r]=new Array,n("tokenizer."+r,t.tokenizer[r],a)}if(t.usesEmbedded=i.usesEmbedded,e.brackets){if(!Array.isArray(e.brackets))throw Fi(t,"the 'brackets' attribute must be defined as an array")}else e.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const o=[];for(const r of e.brackets){let a=r;if(a&&Array.isArray(a)&&a.length===3&&(a={token:a[2],open:a[0],close:a[1]}),a.open===a.close)throw Fi(t,"open and close brackets in a 'brackets' attribute must be different: "+a.open+`
|
|
912
|
-
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:yg(t,a.open),close:yg(t,a.close)});else throw Fi(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function ztt(s){iS.registerLanguage(s)}function $tt(){let s=[];return s=s.concat(iS.getLanguages()),s}function Utt(s){return ot.get(bn).languageIdCodec.encodeLanguageId(s)}function jtt(s,e){return ot.withServices(()=>{const i=ot.get(bn).onDidRequestRichLanguageFeatures(n=>{n===s&&(i.dispose(),e())});return i})}function qtt(s,e){return ot.withServices(()=>{const i=ot.get(bn).onDidRequestBasicLanguageFeatures(n=>{n===s&&(i.dispose(),e())});return i})}function Gtt(s,e){if(!ot.get(bn).isRegisteredLanguageId(s))throw new Error(`Cannot set configuration for unknown language ${s}`);return ot.get(Qi).register(s,e,100)}class Ktt{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return DI.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new H3(n.tokens,n.endState)}}class DI{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,r=e.length;o<r;o++){const a=e[o];let l=a.startIndex;o===0?l=0:l<n&&(l=n),i[o]=new fE(l,a.scopes,t),n=l}return i}static adaptTokenize(e,t,i,n){const o=t.tokenize(i,n),r=DI._toClassicTokens(o.tokens,e);let a;return o.endState.equals(n)?a=n:a=o.endState,new tZ(r,a)}tokenize(e,t,i){return DI.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),n=this._standaloneThemeService.getColorTheme().tokenTheme,o=[];let r=0,a=0;for(let c=0,d=t.length;c<d;c++){const h=t[c],f=n.match(i,h.scopes)|1024;if(r>0&&o[r-1]===f)continue;let p=h.startIndex;c===0?p=0:p<a&&(p=a),o[r++]=p,o[r++]=f,a=p}const l=new Uint32Array(r);for(let c=0;c<r;c++)l[c]=o[c];return l}tokenizeEncoded(e,t,i){const n=this._actual.tokenize(e,i),o=this._toBinaryTokens(this._languageService.languageIdCodec,n.tokens);let r;return n.endState.equals(i)?r=i:r=n.endState,new H3(o,r)}}function Ztt(s){return typeof s.getInitialState=="function"}function Ytt(s){return"tokenizeEncoded"in s}function _0e(s){return s&&typeof s.then=="function"}function Xtt(s){const e=ot.get(xl);if(s){const t=[null];for(let i=1,n=s.length;i<n;i++)t[i]=se.fromHex(s[i]);e.setColorMapOverride(t)}else e.setColorMapOverride(null)}function b0e(s,e){return Ytt(e)?new Ktt(s,e):new DI(s,e,ot.get(bn),ot.get(xl))}function MX(s,e){const t=new $Me(async()=>{const i=await Promise.resolve(e.create());return i?Ztt(i)?b0e(s,i):new yI(ot.get(bn),ot.get(xl),s,m0e(s,i),ot.get(ct)):null});return un.registerFactory(s,t)}function Qtt(s,e){if(!ot.get(bn).isRegisteredLanguageId(s))throw new Error(`Cannot set tokens provider for unknown language ${s}`);return _0e(e)?MX(s,{create:()=>e}):un.register(s,b0e(s,e))}function Jtt(s,e){const t=i=>new yI(ot.get(bn),ot.get(xl),s,m0e(s,i),ot.get(ct));return _0e(e)?MX(s,{create:()=>e}):un.register(s,t(e))}function eit(s,e){return ot.get(Oe).referenceProvider.register(s,e)}function tit(s,e){return ot.get(Oe).renameProvider.register(s,e)}function iit(s,e){return ot.get(Oe).newSymbolNamesProvider.register(s,e)}function nit(s,e){return ot.get(Oe).signatureHelpProvider.register(s,e)}function sit(s,e){return ot.get(Oe).hoverProvider.register(s,{provideHover:async(i,n,o,r)=>{const a=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,o,r)).then(l=>{if(l)return!l.range&&a&&(l.range=new M(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn)),l.range||(l.range=new M(n.lineNumber,n.column,n.lineNumber,n.column)),l})}})}function oit(s,e){return ot.get(Oe).documentSymbolProvider.register(s,e)}function rit(s,e){return ot.get(Oe).documentHighlightProvider.register(s,e)}function ait(s,e){return ot.get(Oe).linkedEditingRangeProvider.register(s,e)}function lit(s,e){return ot.get(Oe).definitionProvider.register(s,e)}function cit(s,e){return ot.get(Oe).implementationProvider.register(s,e)}function dit(s,e){return ot.get(Oe).typeDefinitionProvider.register(s,e)}function hit(s,e){return ot.get(Oe).codeLensProvider.register(s,e)}function uit(s,e,t){return ot.get(Oe).codeActionProvider.register(s,{providedCodeActionKinds:t?.providedCodeActionKinds,documentation:t?.documentation,provideCodeActions:(n,o,r,a)=>{const c=ot.get(Ou).read({resource:n.uri}).filter(d=>M.areIntersectingOrTouching(d,o));return e.provideCodeActions(n,o,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function fit(s,e){return ot.get(Oe).documentFormattingEditProvider.register(s,e)}function git(s,e){return ot.get(Oe).documentRangeFormattingEditProvider.register(s,e)}function pit(s,e){return ot.get(Oe).onTypeFormattingEditProvider.register(s,e)}function mit(s,e){return ot.get(Oe).linkProvider.register(s,e)}function _it(s,e){return ot.get(Oe).completionProvider.register(s,e)}function bit(s,e){return ot.get(Oe).colorProvider.register(s,e)}function vit(s,e){return ot.get(Oe).foldingRangeProvider.register(s,e)}function Cit(s,e){return ot.get(Oe).declarationProvider.register(s,e)}function wit(s,e){return ot.get(Oe).selectionRangeProvider.register(s,e)}function yit(s,e){return ot.get(Oe).documentSemanticTokensProvider.register(s,e)}function Sit(s,e){return ot.get(Oe).documentRangeSemanticTokensProvider.register(s,e)}function xit(s,e){return ot.get(Oe).inlineCompletionsProvider.register(s,e)}function Lit(s,e){return ot.get(Oe).inlayHintsProvider.register(s,e)}function kit(){return{register:ztt,getLanguages:$tt,onLanguage:jtt,onLanguageEncountered:qtt,getEncodedLanguageId:Utt,setLanguageConfiguration:Gtt,setColorMap:Xtt,registerTokensProviderFactory:MX,setTokensProvider:Qtt,setMonarchTokensProvider:Jtt,registerReferenceProvider:eit,registerRenameProvider:tit,registerNewSymbolNameProvider:iit,registerCompletionItemProvider:_it,registerSignatureHelpProvider:nit,registerHoverProvider:sit,registerDocumentSymbolProvider:oit,registerDocumentHighlightProvider:rit,registerLinkedEditingRangeProvider:ait,registerDefinitionProvider:lit,registerImplementationProvider:cit,registerTypeDefinitionProvider:dit,registerCodeLensProvider:hit,registerCodeActionProvider:uit,registerDocumentFormattingEditProvider:fit,registerDocumentRangeFormattingEditProvider:git,registerOnTypeFormattingEditProvider:pit,registerLinkProvider:mit,registerColorProvider:bit,registerFoldingRangeProvider:vit,registerDeclarationProvider:Cit,registerSelectionRangeProvider:wit,registerDocumentSemanticTokensProvider:yit,registerDocumentRangeSemanticTokensProvider:Sit,registerInlineCompletionsProvider:xit,registerInlayHintsProvider:Lit,DocumentHighlightKind:Cj,CompletionItemKind:gj,CompletionItemTag:pj,CompletionItemInsertTextRule:fj,SymbolKind:Qj,SymbolTag:Jj,IndentAction:Ej,CompletionTriggerKind:mj,SignatureHelpTriggerKind:Xj,InlayHintKind:Dj,InlineCompletionTriggerKind:Rj,CodeActionTriggerType:uj,NewSymbolNameTag:Hj,NewSymbolNameTriggerKind:Wj,PartialAcceptTriggerKind:$j,HoverVerbosityAction:kj,InlineCompletionEndOfLifeReasonKind:Tj,InlineCompletionHintStyle:Nj,FoldingRangeKind:D0,SelectedSuggestionInfo:Qge,EditDeltaInfo:LE}}Qo.wrappingIndent.defaultValue=0;Qo.glyphMargin.defaultValue=!1;Qo.autoIndent.defaultValue=3;Qo.overviewRulerLanes.defaultValue=2;eI.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const Or=jve();Or.editor=Ptt();Or.languages=kit();const Eit=Or.CancellationTokenSource,OS=Or.Emitter,Iit=Or.KeyCode,Dit=Or.KeyMod,Tit=Or.Position,Nit=Or.Range,Rit=Or.Selection,Mit=Or.SelectionDirection,ag=Or.MarkerSeverity,bG=Or.MarkerTag,Ait=Or.Uri,Oit=Or.Token,MF=Or.editor,Ve=Or.languages,Pit=zG(),Ny=globalThis;(Pit?.globalAPI||typeof Ny.define=="function"&&Ny.define.amd)&&(Ny.monaco=Or);typeof Ny.require<"u"&&typeof Ny.require.config=="function"&&Ny.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const Fit=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:Eit,Emitter:OS,KeyCode:Iit,KeyMod:Dit,MarkerSeverity:ag,MarkerTag:bG,Position:Tit,Range:Nit,Selection:Rit,SelectionDirection:Mit,Token:Oit,Uri:Ait,editor:MF,languages:Ve},Symbol.toStringTag,{value:"Module"}));let AX=class{constructor(e,t,i){this._onDidChange=new OS,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const OX={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},PX={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},v0e=new AX("css",OX,PX),C0e=new AX("scss",OX,PX),w0e=new AX("less",OX,PX);function FX(){return Ke(()=>import("./cssMode-DHhNu-d3.js"),__vite__mapDeps([0,1]))}Ve.onLanguage("less",()=>{FX().then(s=>s.setupMode(w0e))});Ve.onLanguage("scss",()=>{FX().then(s=>s.setupMode(C0e))});Ve.onLanguage("css",()=>{FX().then(s=>s.setupMode(v0e))});const Bit=Object.freeze(Object.defineProperty({__proto__:null,cssDefaults:v0e,lessDefaults:w0e,scssDefaults:C0e},Symbol.toStringTag,{value:"Module"}));let Hit=class{constructor(e,t,i){this._onDidChange=new OS,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const Wit={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},AF={format:Wit,suggest:{},data:{useDefaultDataProvider:!0}};function OF(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===mk,documentFormattingEdits:s===mk,documentRangeFormattingEdits:s===mk}}const mk="html",ode="handlebars",rde="razor",y0e=PF(mk,AF,OF(mk)),Vit=y0e.defaults,S0e=PF(ode,AF,OF(ode)),zit=S0e.defaults,x0e=PF(rde,AF,OF(rde)),$it=x0e.defaults;function Uit(){return Ke(()=>import("./htmlMode-51Or44r1.js"),__vite__mapDeps([2,1]))}function PF(s,e=AF,t=OF(s)){const i=new Hit(s,e,t);let n;const o=Ve.onLanguage(s,async()=>{n=(await Uit()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n?.dispose(),n=void 0}}}const jit=Object.freeze(Object.defineProperty({__proto__:null,handlebarDefaults:zit,handlebarLanguageService:S0e,htmlDefaults:Vit,htmlLanguageService:y0e,razorDefaults:$it,razorLanguageService:x0e,registerHTMLLanguageService:PF},Symbol.toStringTag,{value:"Module"}));let qit=class{constructor(e,t,i){this._onDidChange=new OS,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const Git={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Kit={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L0e=new qit("json",Git,Kit),Zit=()=>k0e().then(s=>s.getWorker());function k0e(){return Ke(()=>import("./jsonMode-CBTKltTc.js"),__vite__mapDeps([3,1]))}Ve.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Ve.onLanguage("json",()=>{k0e().then(s=>s.setupMode(L0e))});const Yit=Object.freeze(Object.defineProperty({__proto__:null,getWorker:Zit,jsonDefaults:L0e},Symbol.toStringTag,{value:"Module"})),Xit="5.9.3";var E0e=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))(E0e||{}),I0e=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(I0e||{}),D0e=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(D0e||{}),T0e=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(T0e||{}),N0e=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(N0e||{});class R0e{constructor(e,t,i,n,o){this._onDidChange=new OS,this._onDidExtraLibsChange=new OS,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(typeof t>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let o=this._extraLibs[i];o&&o.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const i=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content;let o=1;this._removedExtraLibs[i]&&(o=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:n,version:o}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}}const Qit=Xit,M0e={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},A0e=new R0e({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},M0e),O0e=new R0e({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},M0e),Jit=()=>FF().then(s=>s.getTypeScriptWorker()),ent=()=>FF().then(s=>s.getJavaScriptWorker());function FF(){return Ke(()=>import("./tsMode-BPvQr8_E.js"),[])}Ve.onLanguage("typescript",()=>FF().then(s=>s.setupTypeScript(A0e)));Ve.onLanguage("javascript",()=>FF().then(s=>s.setupJavaScript(O0e)));const tnt=Object.freeze(Object.defineProperty({__proto__:null,JsxEmit:I0e,ModuleKind:E0e,ModuleResolutionKind:N0e,NewLineKind:D0e,ScriptTarget:T0e,getJavaScriptWorker:ent,getTypeScriptWorker:Jit,javascriptDefaults:O0e,typescriptDefaults:A0e,typescriptVersion:Qit},Symbol.toStringTag,{value:"Module"})),P0e={},zB={};class BX{static getOrCreate(e){return zB[e]||(zB[e]=new BX(e)),zB[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,P0e[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}}function Xe(s){const e=s.id;P0e[e]=s,Ve.register(s);const t=BX.getOrCreate(e);Ve.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Ve.onLanguageEncountered(e,async()=>{const i=await t.load();Ve.setLanguageConfiguration(e,i.conf)})}Xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ke(()=>import("./abap-DLDM7-KI.js"),[])});Xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ke(()=>import("./apex-DNDY2TF8.js"),[])});Xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ke(()=>import("./azcli-Y6nb8tq_.js"),[])});Xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ke(()=>import("./bat-BwHxbl9M.js"),[])});Xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ke(()=>import("./bicep-CFznDFnq.js"),[])});Xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ke(()=>import("./cameligo-Bf6VGUru.js"),[])});Xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ke(()=>import("./clojure-Dnu-v4kV.js"),[])});Xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ke(()=>import("./coffee-Bd8akH9Z.js"),[])});Xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ke(()=>import("./cpp-BbWJElDN.js"),[])});Xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ke(()=>import("./cpp-BbWJElDN.js"),[])});Xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ke(()=>import("./csharp-Co3qMtFm.js"),[])});Xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ke(()=>import("./csp-D-4FJmMZ.js"),[])});Xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ke(()=>import("./css-DdJfP1eB.js"),[])});Xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ke(()=>import("./cypher-cTPe9QuQ.js"),[])});Xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ke(()=>import("./dart-BOtBlQCF.js"),[])});Xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ke(()=>import("./dockerfile-BG73LgW2.js"),[])});Xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ke(()=>import("./ecl-BEgZUVRK.js"),[])});Xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ke(()=>import("./elixir-BkW5O-1t.js"),[])});Xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ke(()=>import("./flow9-BeJ5waoc.js"),[])});Xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ke(()=>import("./fsharp-PahG7c26.js"),[])});Xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagAutoInterpolationDollar)});Xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagAngleInterpolationDollar)});Xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagBracketInterpolationDollar)});Xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagAngleInterpolationBracket)});Xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagBracketInterpolationBracket)});Xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagAutoInterpolationDollar)});Xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ke(()=>import("./freemarker2-CKoePx8U.js"),[]).then(s=>s.TagAutoInterpolationBracket)});Xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ke(()=>import("./go-acbASCJo.js"),[])});Xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ke(()=>import("./graphql-BxJiqAUM.js"),[])});Xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ke(()=>import("./handlebars-DCcNN_JA.js"),[])});Xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ke(()=>import("./hcl-DtV1sZF8.js"),[])});Xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ke(()=>import("./html-q_H0suEi.js"),[])});Xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ke(()=>import("./ini-Kd9XrMLS.js"),[])});Xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ke(()=>import("./java-CXBNlu9o.js"),[])});Xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ke(()=>import("./javascript-DsO9DrY2.js"),__vite__mapDeps([4,5]))});Xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ke(()=>import("./julia-cl7-CwDS.js"),[])});Xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ke(()=>import("./kotlin-s7OhZKlX.js"),[])});Xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ke(()=>import("./less-9HpZscsL.js"),[])});Xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ke(()=>import("./lexon-OrD6JF1K.js"),[])});Xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ke(()=>import("./lua-Cyyb5UIc.js"),[])});Xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ke(()=>import("./liquid-B_xseExe.js"),[])});Xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ke(()=>import("./m3-B8OfTtLu.js"),[])});Xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ke(()=>import("./markdown-BFxVWTOG.js"),[])});Xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ke(()=>import("./mdx-BzqxTvM_.js"),[])});Xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ke(()=>import("./mips-CiqrrVzr.js"),[])});Xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ke(()=>import("./msdax-DmeGPVcC.js"),[])});Xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ke(()=>import("./mysql-C_tMU-Nz.js"),[])});Xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ke(()=>import("./objective-c-BDtDVThU.js"),[])});Xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ke(()=>import("./pascal-vHIfCaH5.js"),[])});Xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ke(()=>import("./pascaligo-DtZ0uQbO.js"),[])});Xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ke(()=>import("./perl-Ub6l9XKa.js"),[])});Xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ke(()=>import("./pgsql-BlNEE0v7.js"),[])});Xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ke(()=>import("./php-BBUBE1dy.js"),[])});Xe({id:"pla",extensions:[".pla"],loader:()=>Ke(()=>import("./pla-DSh2-awV.js"),[])});Xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ke(()=>import("./postiats-CocnycG-.js"),[])});Xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ke(()=>import("./powerquery-tScXyioY.js"),[])});Xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ke(()=>import("./powershell-COWaemsV.js"),[])});Xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ke(()=>import("./protobuf-Brw8urJB.js"),[])});Xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ke(()=>import("./pug-8SOpv6rk.js"),[])});Xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ke(()=>import("./python-DR7n_tHO.js"),[])});Xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ke(()=>import("./qsharp-Bw9ernYp.js"),[])});Xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ke(()=>import("./r-j7ic8hl3.js"),[])});Xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ke(()=>import("./razor-WH_xenCG.js"),[])});Xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ke(()=>import("./redis-Bu5POkcn.js"),[])});Xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ke(()=>import("./redshift-Bs9aos_-.js"),[])});Xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ke(()=>import("./restructuredtext-CqXO7rUv.js"),[])});Xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ke(()=>import("./ruby-zBfavPgS.js"),[])});Xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ke(()=>import("./rust-BzKRNQWT.js"),[])});Xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ke(()=>import("./sb-BBc9UKZt.js"),[])});Xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ke(()=>import("./scala-D9hQfWCl.js"),[])});Xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ke(()=>import("./scheme-BPhDTwHR.js"),[])});Xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ke(()=>import("./scss-CBJaRo0y.js"),[])});Xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ke(()=>import("./shell-DiJ1NA_G.js"),[])});Xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ke(()=>import("./solidity-Db0IVjzk.js"),[])});Xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ke(()=>import("./sophia-CnS9iZB_.js"),[])});Xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ke(()=>import("./sparql-CJmd_6j2.js"),[])});Xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ke(()=>import("./sql-ClhHkBeG.js"),[])});Xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ke(()=>import("./st-CHwy0fLd.js"),[])});Xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ke(()=>import("./swift-CnmFD0ga.js"),[])});Xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ke(()=>import("./systemverilog-Bs9z6M-B.js"),[])});Xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ke(()=>import("./systemverilog-Bs9z6M-B.js"),[])});Xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ke(()=>import("./tcl-Dm6ycUr_.js"),[])});Xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ke(()=>import("./twig-Csy3S7wG.js"),[])});Xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ke(()=>import("./typescript-BqQocOFl.js"),[])});Xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ke(()=>import("./typespec-Btyra-wh.js"),[])});Xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ke(()=>import("./vb-Db0cS2oM.js"),[])});Xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ke(()=>import("./wgsl-BTesnYfV.js"),[])});Xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ke(()=>import("./xml-CIYPTjB8.js"),[])});Xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ke(()=>import("./yaml-Dihr52df.js"),[])});var int=Object.defineProperty,nnt=(s,e,t)=>e in s?int(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,kt=(s,e,t)=>nnt(s,typeof e!="symbol"?e+"":e,t),LR,ade,kR,$B,ER;function snt(s){return s.method!==void 0}var lde;(function(s){function e(t){return t}s.create=e})(lde||(lde={}));var Uc;(function(s){s.parseError=-32700,s.invalidRequest=-32600,s.methodNotFound=-32601,s.invalidParams=-32602,s.internalError=-32603;function e(o){return-32099<=o&&o<=-32e3}s.isServerError=e;function t(o){if(!e(o))throw new Error("Invalid range for a server error.");return o}s.serverError=t,s.unexpectedServerError=-32e3;function i(o){return!0}s.isApplicationError=i;function n(o){return o}s.applicationError=n,s.genericApplicationError=-320100})(Uc||(Uc={}));var F0e=class{constructor(){kt(this,"listeners",new Set),kt(this,"event",s=>(this.listeners.add(s),{dispose:()=>{this.listeners.delete(s)}}))}fire(s){this.listeners.forEach(e=>e(s))}},ont=class{constructor(s){kt(this,"_value"),kt(this,"eventEmitter"),this._value=s,this.eventEmitter=new F0e}get value(){return this._value}set value(s){this._value!==s&&(this._value=s,this.eventEmitter.fire(s))}get onChange(){return this.eventEmitter.event}};function rnt(s,e){const t=setTimeout(e,s);return{dispose:()=>clearTimeout(t)}}function UB(s,e,t){return s instanceof Set?(s.add(e),{dispose:()=>s.delete(e)}):(s.set(e,t),{dispose:()=>s.delete(e)})}var ant=class{constructor(){kt(this,"_state","none"),kt(this,"promise"),kt(this,"resolve",()=>{}),kt(this,"reject",()=>{}),this.promise=new Promise((s,e)=>{this.resolve=s,this.reject=e})}get state(){return this._state}};LR=class{constructor(){kt(this,"_unprocessedMessages",[]),kt(this,"_messageListener"),kt(this,"id",LR.id++),kt(this,"_state",new ont({state:"open"})),kt(this,"state",this._state)}setListener(s){if(this._messageListener=s,!!s)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){const e=this._unprocessedMessages.shift();this._messageListener(e)}}send(s){return this._sendImpl(s)}_dispatchReceivedMessage(s){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(s):this._unprocessedMessages.push(s)}_onConnectionClosed(){this._state.value={state:"closed",error:void 0}}log(s){return new lnt(this,s??new cnt)}},kt(LR,"id",0);var lnt=class{constructor(s,e){kt(this,"baseStream"),kt(this,"logger"),this.baseStream=s,this.logger=e}get state(){return this.baseStream.state}setListener(s){if(s===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(e=>{this.logger.log(this.baseStream,"incoming",e),s(e)})}send(s){return this.logger.log(this.baseStream,"outgoing",s),this.baseStream.send(s)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},cnt=class{log(s,e,t){console.log(`${e==="incoming"?"<-":"->"} [${s.toString()}] ${JSON.stringify(t)}`)}},dnt=class B0e{constructor(e){kt(this,"connect"),this.connect=e}mapContext(e){return new B0e(t=>this.connect(t?hnt(t,e):void 0))}};function hnt(s,e){return{handleNotification:(t,i)=>s.handleNotification(t,e(i)),handleRequest:(t,i,n)=>s.handleRequest(t,i,e(n))}}var unt=class H0e{constructor(e,t,i){kt(this,"_stream"),kt(this,"_listener"),kt(this,"_logger"),kt(this,"_unprocessedResponses",new Map),kt(this,"_lastUsedRequestId",0),this._stream=e,this._listener=t,this._logger=i,this._stream.setListener(n=>{snt(n)?n.id===void 0?this._processNotification(n):this._processRequest(n):this._processResponse(n)})}static createChannel(e,t){let i=!1;return new dnt(n=>{if(i)throw new Error(`A channel to the stream ${e} was already constructed!`);return i=!0,new H0e(e,n,t)})}get state(){return this._stream.state}async _processNotification(e){if(e.id!==void 0)throw new Error;if(!this._listener){this._logger&&this._logger.debug({text:"Notification ignored",message:e});return}try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}}async _processRequest(e){if(e.id===void 0)throw new Error;let t;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:Uc.internalError,message:"An unexpected exception was thrown.",data:void 0}}}else this._logger&&this._logger.debug({text:"Received request even though not listening for requests",message:e}),t={error:{code:Uc.methodNotFound,message:"This endpoint does not listen for requests or notifications.",data:void 0}};let i;"result"in t?i={jsonrpc:"2.0",id:e.id,result:t.result}:i={jsonrpc:"2.0",id:e.id,error:t.error},await this._stream.send(i)}_processResponse(e){const t=""+e.id,i=this._unprocessedResponses.get(t);if(!i){this._logger&&this._logger.debug({text:"Got an unexpected response message",message:e});return}this._unprocessedResponses.delete(t),i(e)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,i){const n={jsonrpc:"2.0",id:this._newRequestId(),method:e.method,params:e.params||void 0};return i&&i(n.id),new Promise((o,r)=>{const a=""+n.id;this._unprocessedResponses.set(a,l=>{"result"in l?o({result:l.result}):(l.error||r(new Error("Response had neither 'result' nor 'error' field set.")),o({error:l.error}))}),this._stream.send(n).then(void 0,l=>{this._unprocessedResponses.delete(a),r(l)})})}sendNotification(e,t){const i={jsonrpc:"2.0",id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(i)}toString(){return"StreamChannel/"+this._stream.toString()}},Ry;(function(s){function e(){return{deserializeFromJson:n=>({hasErrors:!1,value:n}),serializeToJson:n=>n}}s.sAny=e;function t(){return{deserializeFromJson:n=>({hasErrors:!1,value:{}}),serializeToJson:n=>({})}}s.sEmptyObject=t;function i(){return{deserializeFromJson:n=>({hasErrors:!1,value:void 0}),serializeToJson:n=>null}}s.sVoidFromNull=i})(Ry||(Ry={}));const W0e=Symbol("OptionalMethodNotFound");var V0e=class{contextualize(s){return new fnt(this,s)}},fnt=class extends V0e{constructor(s,e){super(),kt(this,"underylingTypedChannel"),kt(this,"converters"),this.underylingTypedChannel=s,this.converters=e}async request(s,e,t){const i=await this.converters.getSendContext(t);return this.underylingTypedChannel.request(s,e,i)}async notify(s,e,t){const i=await this.converters.getSendContext(t);return this.underylingTypedChannel.notify(s,e,i)}registerNotificationHandler(s,e){return this.underylingTypedChannel.registerNotificationHandler(s,async(t,i)=>await e(t,await this.converters.getNewContext(i)))}registerRequestHandler(s,e){return this.underylingTypedChannel.registerRequestHandler(s,async(t,i,n)=>await e(t,i,await this.converters.getNewContext(n)))}},cde=class z0e extends V0e{constructor(e,t={}){super(),kt(this,"channelCtor"),kt(this,"_requestSender"),kt(this,"_handler",new Map),kt(this,"_unknownNotificationHandler",new Set),kt(this,"_timeout"),kt(this,"sendExceptionDetails",!1),kt(this,"_logger"),kt(this,"listeningDeferred",new ant),kt(this,"onListening",this.listeningDeferred.promise),kt(this,"_requestDidErrorEventEmitter",new F0e),kt(this,"onRequestDidError",this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=rnt(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(e,t={}){return new z0e(unt.createChannel(e,t.logger),t)}startListen(){if(this._requestSender)throw new Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&(this._timeout.dispose(),this._timeout=void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,i)=>this.handleRequest(e,t,i),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw new Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,i){const n=this._handler.get(e.method);if(!n)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:Uc.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if(n.kind!="request"){const r=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:r,data:{requestObject:e}}),{error:{code:Uc.invalidRequest,message:r,data:{method:e.method}}}}const o=n.requestType.paramsSerializer.deserializeFromJson(e.params);if(o.hasErrors){const r=`Got invalid params: ${o.errorMessage}`;return this._logger&&this._logger.debug({text:r,data:{requestObject:e,errorMessage:o.errorMessage}}),{error:{code:Uc.invalidParams,message:r,data:{errors:o.errorMessage}}}}else{const r=o.value;let a;try{const l=await n.handler(r,t,i);if("error"in l||"errorMessage"in l){const c=l.error?n.requestType.errorSerializer.serializeToJson(l.error):void 0;a={error:{code:l.errorCode||Uc.genericApplicationError,message:l.errorMessage||"An error was returned",data:c}}}else a={result:n.requestType.resultSerializer.serializeToJson(l.ok)}}catch(l){l instanceof hde?a={error:{code:l.code,message:l.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${l}.`,exception:l,data:{requestObject:e}}),a={error:{code:Uc.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${l}.`:"Server has thrown an unexpected exception"}})}return a}}async handleNotification(e,t){const i=this._handler.get(e.method);if(!i){for(const r of this._unknownNotificationHandler)r(e);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}});return}if(i.kind!="notification"){this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}});return}const n=i.notificationType.paramsSerializer.deserializeFromJson(e.params);if(n.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${n}`,data:{requestObject:e,errorMessage:n.errorMessage}});return}const o=n.value;for(const r of i.handlers)try{r(o,t)}catch(a){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${a}.`,exception:a,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return UB(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw new Error(`Handler with method "${e.method}" already registered.`);return UB(this._handler,e.method,{kind:"request",requestType:e,handler:t})}registerNotificationHandler(e,t){let i=this._handler.get(e.method);if(!i)i={kind:"notification",notificationType:e,handlers:new Set},this._handler.set(e.method,i);else{if(i.kind!=="notification")throw new Error(`Method "${e.method}" was already registered as request handler.`);if(i.notificationType!==e)throw new Error(`Method "${e.method}" was registered for a different type.`)}return UB(i.handlers,t)}getRegisteredTypes(){const e=[];for(const t of this._handler.values())t.kind==="notification"?e.push(t.notificationType):t.kind==="request"&&e.push(t.requestType);return e}async request(e,t,i){if(!this.checkChannel(this._requestSender))throw new Error("Impossible");const n=e.paramsSerializer.serializeToJson(t);dde(n);const o=await this._requestSender.sendRequest({method:e.method,params:n},i);if("error"in o){if(e.isOptional&&o.error.code===Uc.methodNotFound)return W0e;let r;if(o.error.data!==void 0){const l=e.errorSerializer.deserializeFromJson(o.error.data);if(l.hasErrors)throw new Error(l.errorMessage);r=l.value}else r=void 0;const a=new hde(o.error.message,r,o.error.code);throw this._requestDidErrorEventEmitter.fire({error:a}),a}else{const r=e.resultSerializer.deserializeFromJson(o.result);if(r.hasErrors)throw new Error("Could not deserialize response: "+r.errorMessage+`
|
|
912
|
+
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof a.open=="string"&&typeof a.token=="string"&&typeof a.close=="string")o.push({token:a.token+t.tokenPostfix,open:yg(t,a.open),close:yg(t,a.close)});else throw Fi(t,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return t.brackets=o,t.noThrow=!0,t}function ztt(s){iS.registerLanguage(s)}function $tt(){let s=[];return s=s.concat(iS.getLanguages()),s}function Utt(s){return ot.get(bn).languageIdCodec.encodeLanguageId(s)}function jtt(s,e){return ot.withServices(()=>{const i=ot.get(bn).onDidRequestRichLanguageFeatures(n=>{n===s&&(i.dispose(),e())});return i})}function qtt(s,e){return ot.withServices(()=>{const i=ot.get(bn).onDidRequestBasicLanguageFeatures(n=>{n===s&&(i.dispose(),e())});return i})}function Gtt(s,e){if(!ot.get(bn).isRegisteredLanguageId(s))throw new Error(`Cannot set configuration for unknown language ${s}`);return ot.get(Qi).register(s,e,100)}class Ktt{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if(typeof this._actual.tokenize=="function")return DI.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new H3(n.tokens,n.endState)}}class DI{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,r=e.length;o<r;o++){const a=e[o];let l=a.startIndex;o===0?l=0:l<n&&(l=n),i[o]=new fE(l,a.scopes,t),n=l}return i}static adaptTokenize(e,t,i,n){const o=t.tokenize(i,n),r=DI._toClassicTokens(o.tokens,e);let a;return o.endState.equals(n)?a=n:a=o.endState,new tZ(r,a)}tokenize(e,t,i){return DI.adaptTokenize(this._languageId,this._actual,e,i)}_toBinaryTokens(e,t){const i=e.encodeLanguageId(this._languageId),n=this._standaloneThemeService.getColorTheme().tokenTheme,o=[];let r=0,a=0;for(let c=0,d=t.length;c<d;c++){const h=t[c],f=n.match(i,h.scopes)|1024;if(r>0&&o[r-1]===f)continue;let p=h.startIndex;c===0?p=0:p<a&&(p=a),o[r++]=p,o[r++]=f,a=p}const l=new Uint32Array(r);for(let c=0;c<r;c++)l[c]=o[c];return l}tokenizeEncoded(e,t,i){const n=this._actual.tokenize(e,i),o=this._toBinaryTokens(this._languageService.languageIdCodec,n.tokens);let r;return n.endState.equals(i)?r=i:r=n.endState,new H3(o,r)}}function Ztt(s){return typeof s.getInitialState=="function"}function Ytt(s){return"tokenizeEncoded"in s}function _0e(s){return s&&typeof s.then=="function"}function Xtt(s){const e=ot.get(xl);if(s){const t=[null];for(let i=1,n=s.length;i<n;i++)t[i]=se.fromHex(s[i]);e.setColorMapOverride(t)}else e.setColorMapOverride(null)}function b0e(s,e){return Ytt(e)?new Ktt(s,e):new DI(s,e,ot.get(bn),ot.get(xl))}function MX(s,e){const t=new $Me(async()=>{const i=await Promise.resolve(e.create());return i?Ztt(i)?b0e(s,i):new yI(ot.get(bn),ot.get(xl),s,m0e(s,i),ot.get(ct)):null});return un.registerFactory(s,t)}function Qtt(s,e){if(!ot.get(bn).isRegisteredLanguageId(s))throw new Error(`Cannot set tokens provider for unknown language ${s}`);return _0e(e)?MX(s,{create:()=>e}):un.register(s,b0e(s,e))}function Jtt(s,e){const t=i=>new yI(ot.get(bn),ot.get(xl),s,m0e(s,i),ot.get(ct));return _0e(e)?MX(s,{create:()=>e}):un.register(s,t(e))}function eit(s,e){return ot.get(Oe).referenceProvider.register(s,e)}function tit(s,e){return ot.get(Oe).renameProvider.register(s,e)}function iit(s,e){return ot.get(Oe).newSymbolNamesProvider.register(s,e)}function nit(s,e){return ot.get(Oe).signatureHelpProvider.register(s,e)}function sit(s,e){return ot.get(Oe).hoverProvider.register(s,{provideHover:async(i,n,o,r)=>{const a=i.getWordAtPosition(n);return Promise.resolve(e.provideHover(i,n,o,r)).then(l=>{if(l)return!l.range&&a&&(l.range=new M(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn)),l.range||(l.range=new M(n.lineNumber,n.column,n.lineNumber,n.column)),l})}})}function oit(s,e){return ot.get(Oe).documentSymbolProvider.register(s,e)}function rit(s,e){return ot.get(Oe).documentHighlightProvider.register(s,e)}function ait(s,e){return ot.get(Oe).linkedEditingRangeProvider.register(s,e)}function lit(s,e){return ot.get(Oe).definitionProvider.register(s,e)}function cit(s,e){return ot.get(Oe).implementationProvider.register(s,e)}function dit(s,e){return ot.get(Oe).typeDefinitionProvider.register(s,e)}function hit(s,e){return ot.get(Oe).codeLensProvider.register(s,e)}function uit(s,e,t){return ot.get(Oe).codeActionProvider.register(s,{providedCodeActionKinds:t?.providedCodeActionKinds,documentation:t?.documentation,provideCodeActions:(n,o,r,a)=>{const c=ot.get(Ou).read({resource:n.uri}).filter(d=>M.areIntersectingOrTouching(d,o));return e.provideCodeActions(n,o,{markers:c,only:r.only,trigger:r.trigger},a)},resolveCodeAction:e.resolveCodeAction})}function fit(s,e){return ot.get(Oe).documentFormattingEditProvider.register(s,e)}function git(s,e){return ot.get(Oe).documentRangeFormattingEditProvider.register(s,e)}function pit(s,e){return ot.get(Oe).onTypeFormattingEditProvider.register(s,e)}function mit(s,e){return ot.get(Oe).linkProvider.register(s,e)}function _it(s,e){return ot.get(Oe).completionProvider.register(s,e)}function bit(s,e){return ot.get(Oe).colorProvider.register(s,e)}function vit(s,e){return ot.get(Oe).foldingRangeProvider.register(s,e)}function Cit(s,e){return ot.get(Oe).declarationProvider.register(s,e)}function wit(s,e){return ot.get(Oe).selectionRangeProvider.register(s,e)}function yit(s,e){return ot.get(Oe).documentSemanticTokensProvider.register(s,e)}function Sit(s,e){return ot.get(Oe).documentRangeSemanticTokensProvider.register(s,e)}function xit(s,e){return ot.get(Oe).inlineCompletionsProvider.register(s,e)}function Lit(s,e){return ot.get(Oe).inlayHintsProvider.register(s,e)}function kit(){return{register:ztt,getLanguages:$tt,onLanguage:jtt,onLanguageEncountered:qtt,getEncodedLanguageId:Utt,setLanguageConfiguration:Gtt,setColorMap:Xtt,registerTokensProviderFactory:MX,setTokensProvider:Qtt,setMonarchTokensProvider:Jtt,registerReferenceProvider:eit,registerRenameProvider:tit,registerNewSymbolNameProvider:iit,registerCompletionItemProvider:_it,registerSignatureHelpProvider:nit,registerHoverProvider:sit,registerDocumentSymbolProvider:oit,registerDocumentHighlightProvider:rit,registerLinkedEditingRangeProvider:ait,registerDefinitionProvider:lit,registerImplementationProvider:cit,registerTypeDefinitionProvider:dit,registerCodeLensProvider:hit,registerCodeActionProvider:uit,registerDocumentFormattingEditProvider:fit,registerDocumentRangeFormattingEditProvider:git,registerOnTypeFormattingEditProvider:pit,registerLinkProvider:mit,registerColorProvider:bit,registerFoldingRangeProvider:vit,registerDeclarationProvider:Cit,registerSelectionRangeProvider:wit,registerDocumentSemanticTokensProvider:yit,registerDocumentRangeSemanticTokensProvider:Sit,registerInlineCompletionsProvider:xit,registerInlayHintsProvider:Lit,DocumentHighlightKind:Cj,CompletionItemKind:gj,CompletionItemTag:pj,CompletionItemInsertTextRule:fj,SymbolKind:Qj,SymbolTag:Jj,IndentAction:Ej,CompletionTriggerKind:mj,SignatureHelpTriggerKind:Xj,InlayHintKind:Dj,InlineCompletionTriggerKind:Rj,CodeActionTriggerType:uj,NewSymbolNameTag:Hj,NewSymbolNameTriggerKind:Wj,PartialAcceptTriggerKind:$j,HoverVerbosityAction:kj,InlineCompletionEndOfLifeReasonKind:Tj,InlineCompletionHintStyle:Nj,FoldingRangeKind:D0,SelectedSuggestionInfo:Qge,EditDeltaInfo:LE}}Qo.wrappingIndent.defaultValue=0;Qo.glyphMargin.defaultValue=!1;Qo.autoIndent.defaultValue=3;Qo.overviewRulerLanes.defaultValue=2;eI.setFormatterSelector((s,e,t)=>Promise.resolve(s[0]));const Or=jve();Or.editor=Ptt();Or.languages=kit();const Eit=Or.CancellationTokenSource,OS=Or.Emitter,Iit=Or.KeyCode,Dit=Or.KeyMod,Tit=Or.Position,Nit=Or.Range,Rit=Or.Selection,Mit=Or.SelectionDirection,ag=Or.MarkerSeverity,bG=Or.MarkerTag,Ait=Or.Uri,Oit=Or.Token,MF=Or.editor,Ve=Or.languages,Pit=zG(),Ny=globalThis;(Pit?.globalAPI||typeof Ny.define=="function"&&Ny.define.amd)&&(Ny.monaco=Or);typeof Ny.require<"u"&&typeof Ny.require.config=="function"&&Ny.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});const Fit=Object.freeze(Object.defineProperty({__proto__:null,CancellationTokenSource:Eit,Emitter:OS,KeyCode:Iit,KeyMod:Dit,MarkerSeverity:ag,MarkerTag:bG,Position:Tit,Range:Nit,Selection:Rit,SelectionDirection:Mit,Token:Oit,Uri:Ait,editor:MF,languages:Ve},Symbol.toStringTag,{value:"Module"}));let AX=class{constructor(e,t,i){this._onDidChange=new OS,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const OX={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},PX={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},v0e=new AX("css",OX,PX),C0e=new AX("scss",OX,PX),w0e=new AX("less",OX,PX);function FX(){return Ke(()=>import("./cssMode-B7uizfIo.js"),__vite__mapDeps([0,1]))}Ve.onLanguage("less",()=>{FX().then(s=>s.setupMode(w0e))});Ve.onLanguage("scss",()=>{FX().then(s=>s.setupMode(C0e))});Ve.onLanguage("css",()=>{FX().then(s=>s.setupMode(v0e))});const Bit=Object.freeze(Object.defineProperty({__proto__:null,cssDefaults:v0e,lessDefaults:w0e,scssDefaults:C0e},Symbol.toStringTag,{value:"Module"}));let Hit=class{constructor(e,t,i){this._onDidChange=new OS,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const Wit={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},AF={format:Wit,suggest:{},data:{useDefaultDataProvider:!0}};function OF(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===mk,documentFormattingEdits:s===mk,documentRangeFormattingEdits:s===mk}}const mk="html",ode="handlebars",rde="razor",y0e=PF(mk,AF,OF(mk)),Vit=y0e.defaults,S0e=PF(ode,AF,OF(ode)),zit=S0e.defaults,x0e=PF(rde,AF,OF(rde)),$it=x0e.defaults;function Uit(){return Ke(()=>import("./htmlMode-BlYn7-wY.js"),__vite__mapDeps([2,1]))}function PF(s,e=AF,t=OF(s)){const i=new Hit(s,e,t);let n;const o=Ve.onLanguage(s,async()=>{n=(await Uit()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n?.dispose(),n=void 0}}}const jit=Object.freeze(Object.defineProperty({__proto__:null,handlebarDefaults:zit,handlebarLanguageService:S0e,htmlDefaults:Vit,htmlLanguageService:y0e,razorDefaults:$it,razorLanguageService:x0e,registerHTMLLanguageService:PF},Symbol.toStringTag,{value:"Module"}));let qit=class{constructor(e,t,i){this._onDidChange=new OS,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}};const Git={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Kit={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L0e=new qit("json",Git,Kit),Zit=()=>k0e().then(s=>s.getWorker());function k0e(){return Ke(()=>import("./jsonMode-ClFGXTqu.js"),__vite__mapDeps([3,1]))}Ve.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Ve.onLanguage("json",()=>{k0e().then(s=>s.setupMode(L0e))});const Yit=Object.freeze(Object.defineProperty({__proto__:null,getWorker:Zit,jsonDefaults:L0e},Symbol.toStringTag,{value:"Module"})),Xit="5.9.3";var E0e=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))(E0e||{}),I0e=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(I0e||{}),D0e=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(D0e||{}),T0e=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(T0e||{}),N0e=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(N0e||{});class R0e{constructor(e,t,i,n,o){this._onDidChange=new OS,this._onDidExtraLibsChange=new OS,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(typeof t>"u"?i=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:i=t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let o=this._extraLibs[i];o&&o.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const i=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,n=t.content;let o=1;this._removedExtraLibs[i]&&(o=this._removedExtraLibs[i]+1),this._extraLibs[i]={content:n,version:o}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}}const Qit=Xit,M0e={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},A0e=new R0e({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},M0e),O0e=new R0e({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},M0e),Jit=()=>FF().then(s=>s.getTypeScriptWorker()),ent=()=>FF().then(s=>s.getJavaScriptWorker());function FF(){return Ke(()=>import("./tsMode-COurL-Bx.js"),[])}Ve.onLanguage("typescript",()=>FF().then(s=>s.setupTypeScript(A0e)));Ve.onLanguage("javascript",()=>FF().then(s=>s.setupJavaScript(O0e)));const tnt=Object.freeze(Object.defineProperty({__proto__:null,JsxEmit:I0e,ModuleKind:E0e,ModuleResolutionKind:N0e,NewLineKind:D0e,ScriptTarget:T0e,getJavaScriptWorker:ent,getTypeScriptWorker:Jit,javascriptDefaults:O0e,typescriptDefaults:A0e,typescriptVersion:Qit},Symbol.toStringTag,{value:"Module"})),P0e={},zB={};class BX{static getOrCreate(e){return zB[e]||(zB[e]=new BX(e)),zB[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,P0e[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}}function Xe(s){const e=s.id;P0e[e]=s,Ve.register(s);const t=BX.getOrCreate(e);Ve.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Ve.onLanguageEncountered(e,async()=>{const i=await t.load();Ve.setLanguageConfiguration(e,i.conf)})}Xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Ke(()=>import("./abap-DLDM7-KI.js"),[])});Xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Ke(()=>import("./apex-DNDY2TF8.js"),[])});Xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Ke(()=>import("./azcli-Y6nb8tq_.js"),[])});Xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Ke(()=>import("./bat-BwHxbl9M.js"),[])});Xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Ke(()=>import("./bicep-CFznDFnq.js"),[])});Xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Ke(()=>import("./cameligo-Bf6VGUru.js"),[])});Xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Ke(()=>import("./clojure-Dnu-v4kV.js"),[])});Xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Ke(()=>import("./coffee-Bd8akH9Z.js"),[])});Xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Ke(()=>import("./cpp-BbWJElDN.js"),[])});Xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Ke(()=>import("./cpp-BbWJElDN.js"),[])});Xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Ke(()=>import("./csharp-Co3qMtFm.js"),[])});Xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Ke(()=>import("./csp-D-4FJmMZ.js"),[])});Xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Ke(()=>import("./css-DdJfP1eB.js"),[])});Xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Ke(()=>import("./cypher-cTPe9QuQ.js"),[])});Xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Ke(()=>import("./dart-BOtBlQCF.js"),[])});Xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Ke(()=>import("./dockerfile-BG73LgW2.js"),[])});Xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Ke(()=>import("./ecl-BEgZUVRK.js"),[])});Xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Ke(()=>import("./elixir-BkW5O-1t.js"),[])});Xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Ke(()=>import("./flow9-BeJ5waoc.js"),[])});Xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Ke(()=>import("./fsharp-PahG7c26.js"),[])});Xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagAutoInterpolationDollar)});Xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagAngleInterpolationDollar)});Xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagBracketInterpolationDollar)});Xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagAngleInterpolationBracket)});Xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagBracketInterpolationBracket)});Xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagAutoInterpolationDollar)});Xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Ke(()=>import("./freemarker2-DwDiEjhI.js"),[]).then(s=>s.TagAutoInterpolationBracket)});Xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Ke(()=>import("./go-acbASCJo.js"),[])});Xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Ke(()=>import("./graphql-BxJiqAUM.js"),[])});Xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Ke(()=>import("./handlebars-Djmiqhok.js"),[])});Xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Ke(()=>import("./hcl-DtV1sZF8.js"),[])});Xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Ke(()=>import("./html-Bs_UaqQO.js"),[])});Xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Ke(()=>import("./ini-Kd9XrMLS.js"),[])});Xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Ke(()=>import("./java-CXBNlu9o.js"),[])});Xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Ke(()=>import("./javascript-D-n8YX8F.js"),__vite__mapDeps([4,5]))});Xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Ke(()=>import("./julia-cl7-CwDS.js"),[])});Xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Ke(()=>import("./kotlin-s7OhZKlX.js"),[])});Xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Ke(()=>import("./less-9HpZscsL.js"),[])});Xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Ke(()=>import("./lexon-OrD6JF1K.js"),[])});Xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Ke(()=>import("./lua-Cyyb5UIc.js"),[])});Xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Ke(()=>import("./liquid-BAZADs32.js"),[])});Xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Ke(()=>import("./m3-B8OfTtLu.js"),[])});Xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Ke(()=>import("./markdown-BFxVWTOG.js"),[])});Xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Ke(()=>import("./mdx-MWmqRBAR.js"),[])});Xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Ke(()=>import("./mips-CiqrrVzr.js"),[])});Xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Ke(()=>import("./msdax-DmeGPVcC.js"),[])});Xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Ke(()=>import("./mysql-C_tMU-Nz.js"),[])});Xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Ke(()=>import("./objective-c-BDtDVThU.js"),[])});Xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Ke(()=>import("./pascal-vHIfCaH5.js"),[])});Xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Ke(()=>import("./pascaligo-DtZ0uQbO.js"),[])});Xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Ke(()=>import("./perl-Ub6l9XKa.js"),[])});Xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Ke(()=>import("./pgsql-BlNEE0v7.js"),[])});Xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Ke(()=>import("./php-BBUBE1dy.js"),[])});Xe({id:"pla",extensions:[".pla"],loader:()=>Ke(()=>import("./pla-DSh2-awV.js"),[])});Xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Ke(()=>import("./postiats-CocnycG-.js"),[])});Xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Ke(()=>import("./powerquery-tScXyioY.js"),[])});Xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Ke(()=>import("./powershell-COWaemsV.js"),[])});Xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Ke(()=>import("./protobuf-Brw8urJB.js"),[])});Xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Ke(()=>import("./pug-8SOpv6rk.js"),[])});Xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Ke(()=>import("./python-DQPPTFgb.js"),[])});Xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Ke(()=>import("./qsharp-Bw9ernYp.js"),[])});Xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Ke(()=>import("./r-j7ic8hl3.js"),[])});Xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Ke(()=>import("./razor-CXfduApc.js"),[])});Xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Ke(()=>import("./redis-Bu5POkcn.js"),[])});Xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Ke(()=>import("./redshift-Bs9aos_-.js"),[])});Xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Ke(()=>import("./restructuredtext-CqXO7rUv.js"),[])});Xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Ke(()=>import("./ruby-zBfavPgS.js"),[])});Xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Ke(()=>import("./rust-BzKRNQWT.js"),[])});Xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Ke(()=>import("./sb-BBc9UKZt.js"),[])});Xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Ke(()=>import("./scala-D9hQfWCl.js"),[])});Xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Ke(()=>import("./scheme-BPhDTwHR.js"),[])});Xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Ke(()=>import("./scss-CBJaRo0y.js"),[])});Xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Ke(()=>import("./shell-DiJ1NA_G.js"),[])});Xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Ke(()=>import("./solidity-Db0IVjzk.js"),[])});Xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Ke(()=>import("./sophia-CnS9iZB_.js"),[])});Xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Ke(()=>import("./sparql-CJmd_6j2.js"),[])});Xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Ke(()=>import("./sql-ClhHkBeG.js"),[])});Xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Ke(()=>import("./st-CHwy0fLd.js"),[])});Xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Ke(()=>import("./swift-CnmFD0ga.js"),[])});Xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Ke(()=>import("./systemverilog-Bs9z6M-B.js"),[])});Xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Ke(()=>import("./systemverilog-Bs9z6M-B.js"),[])});Xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Ke(()=>import("./tcl-Dm6ycUr_.js"),[])});Xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Ke(()=>import("./twig-Csy3S7wG.js"),[])});Xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Ke(()=>import("./typescript-BnQMUe_U.js"),[])});Xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Ke(()=>import("./typespec-Btyra-wh.js"),[])});Xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Ke(()=>import("./vb-Db0cS2oM.js"),[])});Xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Ke(()=>import("./wgsl-BTesnYfV.js"),[])});Xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>Ke(()=>import("./xml-BfxCrbFK.js"),[])});Xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Ke(()=>import("./yaml-29Fklld3.js"),[])});var int=Object.defineProperty,nnt=(s,e,t)=>e in s?int(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,kt=(s,e,t)=>nnt(s,typeof e!="symbol"?e+"":e,t),LR,ade,kR,$B,ER;function snt(s){return s.method!==void 0}var lde;(function(s){function e(t){return t}s.create=e})(lde||(lde={}));var Uc;(function(s){s.parseError=-32700,s.invalidRequest=-32600,s.methodNotFound=-32601,s.invalidParams=-32602,s.internalError=-32603;function e(o){return-32099<=o&&o<=-32e3}s.isServerError=e;function t(o){if(!e(o))throw new Error("Invalid range for a server error.");return o}s.serverError=t,s.unexpectedServerError=-32e3;function i(o){return!0}s.isApplicationError=i;function n(o){return o}s.applicationError=n,s.genericApplicationError=-320100})(Uc||(Uc={}));var F0e=class{constructor(){kt(this,"listeners",new Set),kt(this,"event",s=>(this.listeners.add(s),{dispose:()=>{this.listeners.delete(s)}}))}fire(s){this.listeners.forEach(e=>e(s))}},ont=class{constructor(s){kt(this,"_value"),kt(this,"eventEmitter"),this._value=s,this.eventEmitter=new F0e}get value(){return this._value}set value(s){this._value!==s&&(this._value=s,this.eventEmitter.fire(s))}get onChange(){return this.eventEmitter.event}};function rnt(s,e){const t=setTimeout(e,s);return{dispose:()=>clearTimeout(t)}}function UB(s,e,t){return s instanceof Set?(s.add(e),{dispose:()=>s.delete(e)}):(s.set(e,t),{dispose:()=>s.delete(e)})}var ant=class{constructor(){kt(this,"_state","none"),kt(this,"promise"),kt(this,"resolve",()=>{}),kt(this,"reject",()=>{}),this.promise=new Promise((s,e)=>{this.resolve=s,this.reject=e})}get state(){return this._state}};LR=class{constructor(){kt(this,"_unprocessedMessages",[]),kt(this,"_messageListener"),kt(this,"id",LR.id++),kt(this,"_state",new ont({state:"open"})),kt(this,"state",this._state)}setListener(s){if(this._messageListener=s,!!s)for(;this._unprocessedMessages.length>0&&this._messageListener!==void 0;){const e=this._unprocessedMessages.shift();this._messageListener(e)}}send(s){return this._sendImpl(s)}_dispatchReceivedMessage(s){this._unprocessedMessages.length===0&&this._messageListener?this._messageListener(s):this._unprocessedMessages.push(s)}_onConnectionClosed(){this._state.value={state:"closed",error:void 0}}log(s){return new lnt(this,s??new cnt)}},kt(LR,"id",0);var lnt=class{constructor(s,e){kt(this,"baseStream"),kt(this,"logger"),this.baseStream=s,this.logger=e}get state(){return this.baseStream.state}setListener(s){if(s===void 0){this.baseStream.setListener(void 0);return}this.baseStream.setListener(e=>{this.logger.log(this.baseStream,"incoming",e),s(e)})}send(s){return this.logger.log(this.baseStream,"outgoing",s),this.baseStream.send(s)}toString(){return`StreamLogger/${this.baseStream.toString()}`}},cnt=class{log(s,e,t){console.log(`${e==="incoming"?"<-":"->"} [${s.toString()}] ${JSON.stringify(t)}`)}},dnt=class B0e{constructor(e){kt(this,"connect"),this.connect=e}mapContext(e){return new B0e(t=>this.connect(t?hnt(t,e):void 0))}};function hnt(s,e){return{handleNotification:(t,i)=>s.handleNotification(t,e(i)),handleRequest:(t,i,n)=>s.handleRequest(t,i,e(n))}}var unt=class H0e{constructor(e,t,i){kt(this,"_stream"),kt(this,"_listener"),kt(this,"_logger"),kt(this,"_unprocessedResponses",new Map),kt(this,"_lastUsedRequestId",0),this._stream=e,this._listener=t,this._logger=i,this._stream.setListener(n=>{snt(n)?n.id===void 0?this._processNotification(n):this._processRequest(n):this._processResponse(n)})}static createChannel(e,t){let i=!1;return new dnt(n=>{if(i)throw new Error(`A channel to the stream ${e} was already constructed!`);return i=!0,new H0e(e,n,t)})}get state(){return this._stream.state}async _processNotification(e){if(e.id!==void 0)throw new Error;if(!this._listener){this._logger&&this._logger.debug({text:"Notification ignored",message:e});return}try{await this._listener.handleNotification({method:e.method,params:e.params||null})}catch(t){this._logger&&this._logger.warn({text:`Exception was thrown while handling notification: ${t}`,exception:t,message:e})}}async _processRequest(e){if(e.id===void 0)throw new Error;let t;if(this._listener)try{t=await this._listener.handleRequest({method:e.method,params:e.params||null},e.id)}catch(n){this._logger&&this._logger.warn({text:`Exception was thrown while handling request: ${n}`,message:e,exception:n}),t={error:{code:Uc.internalError,message:"An unexpected exception was thrown.",data:void 0}}}else this._logger&&this._logger.debug({text:"Received request even though not listening for requests",message:e}),t={error:{code:Uc.methodNotFound,message:"This endpoint does not listen for requests or notifications.",data:void 0}};let i;"result"in t?i={jsonrpc:"2.0",id:e.id,result:t.result}:i={jsonrpc:"2.0",id:e.id,error:t.error},await this._stream.send(i)}_processResponse(e){const t=""+e.id,i=this._unprocessedResponses.get(t);if(!i){this._logger&&this._logger.debug({text:"Got an unexpected response message",message:e});return}this._unprocessedResponses.delete(t),i(e)}_newRequestId(){return this._lastUsedRequestId++}sendRequest(e,t,i){const n={jsonrpc:"2.0",id:this._newRequestId(),method:e.method,params:e.params||void 0};return i&&i(n.id),new Promise((o,r)=>{const a=""+n.id;this._unprocessedResponses.set(a,l=>{"result"in l?o({result:l.result}):(l.error||r(new Error("Response had neither 'result' nor 'error' field set.")),o({error:l.error}))}),this._stream.send(n).then(void 0,l=>{this._unprocessedResponses.delete(a),r(l)})})}sendNotification(e,t){const i={jsonrpc:"2.0",id:void 0,method:e.method,params:e.params||void 0};return this._stream.send(i)}toString(){return"StreamChannel/"+this._stream.toString()}},Ry;(function(s){function e(){return{deserializeFromJson:n=>({hasErrors:!1,value:n}),serializeToJson:n=>n}}s.sAny=e;function t(){return{deserializeFromJson:n=>({hasErrors:!1,value:{}}),serializeToJson:n=>({})}}s.sEmptyObject=t;function i(){return{deserializeFromJson:n=>({hasErrors:!1,value:void 0}),serializeToJson:n=>null}}s.sVoidFromNull=i})(Ry||(Ry={}));const W0e=Symbol("OptionalMethodNotFound");var V0e=class{contextualize(s){return new fnt(this,s)}},fnt=class extends V0e{constructor(s,e){super(),kt(this,"underylingTypedChannel"),kt(this,"converters"),this.underylingTypedChannel=s,this.converters=e}async request(s,e,t){const i=await this.converters.getSendContext(t);return this.underylingTypedChannel.request(s,e,i)}async notify(s,e,t){const i=await this.converters.getSendContext(t);return this.underylingTypedChannel.notify(s,e,i)}registerNotificationHandler(s,e){return this.underylingTypedChannel.registerNotificationHandler(s,async(t,i)=>await e(t,await this.converters.getNewContext(i)))}registerRequestHandler(s,e){return this.underylingTypedChannel.registerRequestHandler(s,async(t,i,n)=>await e(t,i,await this.converters.getNewContext(n)))}},cde=class z0e extends V0e{constructor(e,t={}){super(),kt(this,"channelCtor"),kt(this,"_requestSender"),kt(this,"_handler",new Map),kt(this,"_unknownNotificationHandler",new Set),kt(this,"_timeout"),kt(this,"sendExceptionDetails",!1),kt(this,"_logger"),kt(this,"listeningDeferred",new ant),kt(this,"onListening",this.listeningDeferred.promise),kt(this,"_requestDidErrorEventEmitter",new F0e),kt(this,"onRequestDidError",this._requestDidErrorEventEmitter.event),this.channelCtor=e,this._logger=t.logger,this.sendExceptionDetails=!!t.sendExceptionDetails,this._timeout=rnt(1e3,()=>{this._requestSender||console.warn(`"${this.startListen.name}" has not been called within 1 second after construction of this channel. Did you forget to call it?`,this)})}static fromTransport(e,t={}){return new z0e(unt.createChannel(e,t.logger),t)}startListen(){if(this._requestSender)throw new Error(`"${this.startListen.name}" can be called only once, but it already has been called.`);this._timeout&&(this._timeout.dispose(),this._timeout=void 0),this._requestSender=this.channelCtor.connect({handleRequest:(e,t,i)=>this.handleRequest(e,t,i),handleNotification:(e,t)=>this.handleNotification(e,t)}),this.listeningDeferred.resolve()}checkChannel(e){if(!e)throw new Error(`"${this.startListen.name}" must be called before any messages can be sent or received.`);return!0}async handleRequest(e,t,i){const n=this._handler.get(e.method);if(!n)return this._logger&&this._logger.debug({text:`No request handler for "${e.method}".`,data:{requestObject:e}}),{error:{code:Uc.methodNotFound,message:`No request handler for "${e.method}".`,data:{method:e.method}}};if(n.kind!="request"){const r=`"${e.method}" is registered as notification, but was sent as request.`;return this._logger&&this._logger.debug({text:r,data:{requestObject:e}}),{error:{code:Uc.invalidRequest,message:r,data:{method:e.method}}}}const o=n.requestType.paramsSerializer.deserializeFromJson(e.params);if(o.hasErrors){const r=`Got invalid params: ${o.errorMessage}`;return this._logger&&this._logger.debug({text:r,data:{requestObject:e,errorMessage:o.errorMessage}}),{error:{code:Uc.invalidParams,message:r,data:{errors:o.errorMessage}}}}else{const r=o.value;let a;try{const l=await n.handler(r,t,i);if("error"in l||"errorMessage"in l){const c=l.error?n.requestType.errorSerializer.serializeToJson(l.error):void 0;a={error:{code:l.errorCode||Uc.genericApplicationError,message:l.errorMessage||"An error was returned",data:c}}}else a={result:n.requestType.resultSerializer.serializeToJson(l.ok)}}catch(l){l instanceof hde?a={error:{code:l.code,message:l.message}}:(this._logger&&this._logger.warn({text:`An exception was thrown while handling a request: ${l}.`,exception:l,data:{requestObject:e}}),a={error:{code:Uc.unexpectedServerError,message:this.sendExceptionDetails?`An exception was thrown while handling a request: ${l}.`:"Server has thrown an unexpected exception"}})}return a}}async handleNotification(e,t){const i=this._handler.get(e.method);if(!i){for(const r of this._unknownNotificationHandler)r(e);this._unknownNotificationHandler.size===0&&this._logger&&this._logger.debug({text:`Unhandled notification "${e.method}"`,data:{requestObject:e}});return}if(i.kind!="notification"){this._logger&&this._logger.debug({text:`"${e.method}" is registered as request, but was sent as notification.`,data:{requestObject:e}});return}const n=i.notificationType.paramsSerializer.deserializeFromJson(e.params);if(n.hasErrors){this._logger&&this._logger.debug({text:`Got invalid params: ${n}`,data:{requestObject:e,errorMessage:n.errorMessage}});return}const o=n.value;for(const r of i.handlers)try{r(o,t)}catch(a){this._logger&&this._logger.warn({text:`An exception was thrown while handling a notification: ${a}.`,exception:a,data:{requestObject:e}})}}registerUnknownNotificationHandler(e){return UB(this._unknownNotificationHandler,e)}registerRequestHandler(e,t){if(this._handler.get(e.method))throw new Error(`Handler with method "${e.method}" already registered.`);return UB(this._handler,e.method,{kind:"request",requestType:e,handler:t})}registerNotificationHandler(e,t){let i=this._handler.get(e.method);if(!i)i={kind:"notification",notificationType:e,handlers:new Set},this._handler.set(e.method,i);else{if(i.kind!=="notification")throw new Error(`Method "${e.method}" was already registered as request handler.`);if(i.notificationType!==e)throw new Error(`Method "${e.method}" was registered for a different type.`)}return UB(i.handlers,t)}getRegisteredTypes(){const e=[];for(const t of this._handler.values())t.kind==="notification"?e.push(t.notificationType):t.kind==="request"&&e.push(t.requestType);return e}async request(e,t,i){if(!this.checkChannel(this._requestSender))throw new Error("Impossible");const n=e.paramsSerializer.serializeToJson(t);dde(n);const o=await this._requestSender.sendRequest({method:e.method,params:n},i);if("error"in o){if(e.isOptional&&o.error.code===Uc.methodNotFound)return W0e;let r;if(o.error.data!==void 0){const l=e.errorSerializer.deserializeFromJson(o.error.data);if(l.hasErrors)throw new Error(l.errorMessage);r=l.value}else r=void 0;const a=new hde(o.error.message,r,o.error.code);throw this._requestDidErrorEventEmitter.fire({error:a}),a}else{const r=e.resultSerializer.deserializeFromJson(o.result);if(r.hasErrors)throw new Error("Could not deserialize response: "+r.errorMessage+`
|
|
913
913
|
|
|
914
914
|
${JSON.stringify(o,null,2)}`);return r.value}}async notify(e,t,i){if(!this.checkChannel(this._requestSender))throw new Error;const n=e.paramsSerializer.serializeToJson(t);dde(n),this._requestSender.sendNotification({method:e.method,params:n},i)}};function dde(s){if(s!==null&&Array.isArray(s)&&typeof s!="object")throw new Error("Invalid value! Only null, array and object is allowed.")}var hde=class $0e extends Error{constructor(e,t,i=Uc.genericApplicationError){super(e),kt(this,"data"),kt(this,"code"),this.data=t,this.code=i,Object.setPrototypeOf(this,$0e.prototype)}},gnt=class vG{constructor(e,t,i,n,o=!1){kt(this,"method"),kt(this,"paramsSerializer"),kt(this,"resultSerializer"),kt(this,"errorSerializer"),kt(this,"isOptional"),kt(this,"kind","request"),this.method=e,this.paramsSerializer=t,this.resultSerializer=i,this.errorSerializer=n,this.isOptional=o}withMethod(e){return new vG(e,this.paramsSerializer,this.resultSerializer,this.errorSerializer)}optional(){return new vG(this.method,this.paramsSerializer,this.resultSerializer,this.errorSerializer,!0)}},pnt=class U0e{constructor(e,t){kt(this,"method"),kt(this,"paramsSerializer"),kt(this,"kind","notification"),this.method=e,this.paramsSerializer=t}withMethod(e){return new U0e(e,this.paramsSerializer)}};function ut(s){return new gnt((s||{}).method,Ry.sAny(),Ry.sAny(),Ry.sAny())}function Tn(s){return new pnt((s||{}).method,Ry.sAny())}const mnt=Symbol();var ude=(ade=mnt,kR=class{constructor(s){kt(this,"error"),kt(this,ade),this.error=s}},kt(kR,"factory",s=>new kR(s)),kR);function _nt(s){const e=fde(s.server),t=fde(s.client);return new bnt(s.tags||[],e,t)}function fde(s){const e={};for(const[t,i]of Object.entries(s)){const n=i.method?i.method:t;e[t]=i.withMethod(n)}return e}var bnt=class j0e{constructor(e=[],t,i){kt(this,"tags"),kt(this,"server"),kt(this,"client"),this.tags=e,this.server=t,this.client=i}_onlyDesignTime(){return new Error("This property is not meant to be accessed at runtime")}get TContractObject(){throw this._onlyDesignTime()}get TClientInterface(){throw this._onlyDesignTime()}get TServerInterface(){throw this._onlyDesignTime()}get TClientHandler(){throw this._onlyDesignTime()}get TServerHandler(){throw this._onlyDesignTime()}get TTags(){throw this._onlyDesignTime()}getInterface(e,t,i,n){const o=this.buildCounterpart(e,i),r=this.registerHandlers(e,t,n,o);return{counterpart:o,dispose:()=>r.dispose()}}buildCounterpart(e,t){const i={};for(const[n,o]of Object.entries(t)){let r;o.kind==="request"?o.isOptional?r=async(a,l)=>{a===void 0&&(a={});try{return await e.request(o,a,l)}catch(c){if(c&&c.code===Uc.methodNotFound)return W0e;throw c}}:r=(a,l)=>(a===void 0&&(a={}),e.request(o,a,l)):r=(a,l)=>(a===void 0&&(a={}),e.notify(o,a,l)),i[n]=r}return i}registerHandlers(e,t,i,n){const o=[];for(const[r,a]of Object.entries(t))if(a.kind==="request"){let l=i[r];if(!l)continue;const c=this.createRequestHandler(n,l);o.push(e.registerRequestHandler(a,c))}else{const l=i[r];l&&o.push(e.registerNotificationHandler(a,(c,d)=>{l(c,{context:d,counterpart:n})}))}return{dispose:()=>o.forEach(r=>r.dispose())}}createRequestHandler(e,t){return async(i,n,o)=>{const r=await t(i,{context:o,counterpart:e,newErr:ude.factory,requestId:n});return r instanceof ude?r.error:{ok:r}}}static getServerFromStream(e,t,i,n){const o=cde.fromTransport(t,i),{server:r}=e.getServer(o,n);return o.startListen(),{channel:o,server:r}}static registerServerToStream(e,t,i,n){const o=cde.fromTransport(t,i),{client:r}=e.registerServer(o,n);return o.startListen(),{channel:o,client:r}}getServer(e,t){const{counterpart:i,dispose:n}=this.getInterface(e,this.client,this.server,t);return{server:i,dispose:n}}registerServer(e,t){const{counterpart:i,dispose:n}=this.getInterface(e,this.server,this.client,t);return{client:i,dispose:n}}withContext(){return new j0e(this.tags,this.server,this.client)}};let jB=(function(s){return s.Comment="comment",s.Imports="imports",s.Region="region",s})({}),qn=(function(s){return s[s.File=1]="File",s[s.Module=2]="Module",s[s.Namespace=3]="Namespace",s[s.Package=4]="Package",s[s.Class=5]="Class",s[s.Method=6]="Method",s[s.Property=7]="Property",s[s.Field=8]="Field",s[s.Constructor=9]="Constructor",s[s.Enum=10]="Enum",s[s.Interface=11]="Interface",s[s.Function=12]="Function",s[s.Variable=13]="Variable",s[s.Constant=14]="Constant",s[s.String=15]="String",s[s.Number=16]="Number",s[s.Boolean=17]="Boolean",s[s.Array=18]="Array",s[s.Object=19]="Object",s[s.Key=20]="Key",s[s.Null=21]="Null",s[s.EnumMember=22]="EnumMember",s[s.Struct=23]="Struct",s[s.Event=24]="Event",s[s.Operator=25]="Operator",s[s.TypeParameter=26]="TypeParameter",s})({}),vnt=(function(s){return s[s.Deprecated=1]="Deprecated",s})({}),gde=(function(s){return s[s.Type=1]="Type",s[s.Parameter=2]="Parameter",s})({}),ts=(function(s){return s[s.Text=1]="Text",s[s.Method=2]="Method",s[s.Function=3]="Function",s[s.Constructor=4]="Constructor",s[s.Field=5]="Field",s[s.Variable=6]="Variable",s[s.Class=7]="Class",s[s.Interface=8]="Interface",s[s.Module=9]="Module",s[s.Property=10]="Property",s[s.Unit=11]="Unit",s[s.Value=12]="Value",s[s.Enum=13]="Enum",s[s.Keyword=14]="Keyword",s[s.Snippet=15]="Snippet",s[s.Color=16]="Color",s[s.File=17]="File",s[s.Reference=18]="Reference",s[s.Folder=19]="Folder",s[s.EnumMember=20]="EnumMember",s[s.Constant=21]="Constant",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter",s})({}),Cnt=(function(s){return s[s.Deprecated=1]="Deprecated",s})({}),wnt=(function(s){return s[s.PlainText=1]="PlainText",s[s.Snippet=2]="Snippet",s})({}),qB=(function(s){return s[s.Text=1]="Text",s[s.Read=2]="Read",s[s.Write=3]="Write",s})({}),Lm=(function(s){return s[s.Error=1]="Error",s[s.Warning=2]="Warning",s[s.Information=3]="Information",s[s.Hint=4]="Hint",s})({}),pde=(function(s){return s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated",s})({}),GB=(function(s){return s[s.Invoked=1]="Invoked",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",s})({}),KB=(function(s){return s[s.Invoked=1]="Invoked",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange",s})({}),mde=(function(s){return s[s.Invoked=1]="Invoked",s[s.Automatic=2]="Automatic",s})({});var Ut=class{constructor(s){this.method=s}};const ynt={textDocumentImplementation:new Ut("textDocument/implementation"),textDocumentTypeDefinition:new Ut("textDocument/typeDefinition"),textDocumentDocumentColor:new Ut("textDocument/documentColor"),textDocumentColorPresentation:new Ut("textDocument/colorPresentation"),textDocumentFoldingRange:new Ut("textDocument/foldingRange"),textDocumentDeclaration:new Ut("textDocument/declaration"),textDocumentSelectionRange:new Ut("textDocument/selectionRange"),textDocumentPrepareCallHierarchy:new Ut("textDocument/prepareCallHierarchy"),textDocumentSemanticTokensFull:new Ut("textDocument/semanticTokens/full"),textDocumentSemanticTokensFullDelta:new Ut("textDocument/semanticTokens/full/delta"),textDocumentLinkedEditingRange:new Ut("textDocument/linkedEditingRange"),workspaceWillCreateFiles:new Ut("workspace/willCreateFiles"),workspaceWillRenameFiles:new Ut("workspace/willRenameFiles"),workspaceWillDeleteFiles:new Ut("workspace/willDeleteFiles"),textDocumentMoniker:new Ut("textDocument/moniker"),textDocumentPrepareTypeHierarchy:new Ut("textDocument/prepareTypeHierarchy"),textDocumentInlineValue:new Ut("textDocument/inlineValue"),textDocumentInlayHint:new Ut("textDocument/inlayHint"),textDocumentDiagnostic:new Ut("textDocument/diagnostic"),textDocumentInlineCompletion:new Ut("textDocument/inlineCompletion"),textDocumentWillSaveWaitUntil:new Ut("textDocument/willSaveWaitUntil"),textDocumentCompletion:new Ut("textDocument/completion"),textDocumentHover:new Ut("textDocument/hover"),textDocumentSignatureHelp:new Ut("textDocument/signatureHelp"),textDocumentDefinition:new Ut("textDocument/definition"),textDocumentReferences:new Ut("textDocument/references"),textDocumentDocumentHighlight:new Ut("textDocument/documentHighlight"),textDocumentDocumentSymbol:new Ut("textDocument/documentSymbol"),textDocumentCodeAction:new Ut("textDocument/codeAction"),workspaceSymbol:new Ut("workspace/symbol"),textDocumentCodeLens:new Ut("textDocument/codeLens"),textDocumentDocumentLink:new Ut("textDocument/documentLink"),textDocumentFormatting:new Ut("textDocument/formatting"),textDocumentRangeFormatting:new Ut("textDocument/rangeFormatting"),textDocumentRangesFormatting:new Ut("textDocument/rangesFormatting"),textDocumentOnTypeFormatting:new Ut("textDocument/onTypeFormatting"),textDocumentRename:new Ut("textDocument/rename"),workspaceExecuteCommand:new Ut("workspace/executeCommand"),workspaceDidCreateFiles:new Ut("workspace/didCreateFiles"),workspaceDidRenameFiles:new Ut("workspace/didRenameFiles"),workspaceDidDeleteFiles:new Ut("workspace/didDeleteFiles"),workspaceDidChangeConfiguration:new Ut("workspace/didChangeConfiguration"),textDocumentDidOpen:new Ut("textDocument/didOpen"),textDocumentDidChange:new Ut("textDocument/didChange"),textDocumentDidClose:new Ut("textDocument/didClose"),textDocumentDidSave:new Ut("textDocument/didSave"),textDocumentWillSave:new Ut("textDocument/willSave"),workspaceDidChangeWatchedFiles:new Ut("workspace/didChangeWatchedFiles")};_nt({server:{textDocumentImplementation:ut({method:"textDocument/implementation"}),textDocumentTypeDefinition:ut({method:"textDocument/typeDefinition"}),textDocumentDocumentColor:ut({method:"textDocument/documentColor"}),textDocumentColorPresentation:ut({method:"textDocument/colorPresentation"}),textDocumentFoldingRange:ut({method:"textDocument/foldingRange"}),textDocumentDeclaration:ut({method:"textDocument/declaration"}),textDocumentSelectionRange:ut({method:"textDocument/selectionRange"}),textDocumentPrepareCallHierarchy:ut({method:"textDocument/prepareCallHierarchy"}),callHierarchyIncomingCalls:ut({method:"callHierarchy/incomingCalls"}),callHierarchyOutgoingCalls:ut({method:"callHierarchy/outgoingCalls"}),textDocumentSemanticTokensFull:ut({method:"textDocument/semanticTokens/full"}),textDocumentSemanticTokensFullDelta:ut({method:"textDocument/semanticTokens/full/delta"}),textDocumentSemanticTokensRange:ut({method:"textDocument/semanticTokens/range"}),textDocumentLinkedEditingRange:ut({method:"textDocument/linkedEditingRange"}),workspaceWillCreateFiles:ut({method:"workspace/willCreateFiles"}),workspaceWillRenameFiles:ut({method:"workspace/willRenameFiles"}),workspaceWillDeleteFiles:ut({method:"workspace/willDeleteFiles"}),textDocumentMoniker:ut({method:"textDocument/moniker"}),textDocumentPrepareTypeHierarchy:ut({method:"textDocument/prepareTypeHierarchy"}),typeHierarchySupertypes:ut({method:"typeHierarchy/supertypes"}),typeHierarchySubtypes:ut({method:"typeHierarchy/subtypes"}),textDocumentInlineValue:ut({method:"textDocument/inlineValue"}),textDocumentInlayHint:ut({method:"textDocument/inlayHint"}),inlayHintResolve:ut({method:"inlayHint/resolve"}),textDocumentDiagnostic:ut({method:"textDocument/diagnostic"}),workspaceDiagnostic:ut({method:"workspace/diagnostic"}),textDocumentInlineCompletion:ut({method:"textDocument/inlineCompletion"}),initialize:ut({method:"initialize"}),shutdown:ut({method:"shutdown"}),textDocumentWillSaveWaitUntil:ut({method:"textDocument/willSaveWaitUntil"}),textDocumentCompletion:ut({method:"textDocument/completion"}),completionItemResolve:ut({method:"completionItem/resolve"}),textDocumentHover:ut({method:"textDocument/hover"}),textDocumentSignatureHelp:ut({method:"textDocument/signatureHelp"}),textDocumentDefinition:ut({method:"textDocument/definition"}),textDocumentReferences:ut({method:"textDocument/references"}),textDocumentDocumentHighlight:ut({method:"textDocument/documentHighlight"}),textDocumentDocumentSymbol:ut({method:"textDocument/documentSymbol"}),textDocumentCodeAction:ut({method:"textDocument/codeAction"}),codeActionResolve:ut({method:"codeAction/resolve"}),workspaceSymbol:ut({method:"workspace/symbol"}),workspaceSymbolResolve:ut({method:"workspaceSymbol/resolve"}),textDocumentCodeLens:ut({method:"textDocument/codeLens"}),codeLensResolve:ut({method:"codeLens/resolve"}),textDocumentDocumentLink:ut({method:"textDocument/documentLink"}),documentLinkResolve:ut({method:"documentLink/resolve"}),textDocumentFormatting:ut({method:"textDocument/formatting"}),textDocumentRangeFormatting:ut({method:"textDocument/rangeFormatting"}),textDocumentRangesFormatting:ut({method:"textDocument/rangesFormatting"}),textDocumentOnTypeFormatting:ut({method:"textDocument/onTypeFormatting"}),textDocumentRename:ut({method:"textDocument/rename"}),textDocumentPrepareRename:ut({method:"textDocument/prepareRename"}),workspaceExecuteCommand:ut({method:"workspace/executeCommand"}),workspaceDidChangeWorkspaceFolders:Tn({method:"workspace/didChangeWorkspaceFolders"}),windowWorkDoneProgressCancel:Tn({method:"window/workDoneProgress/cancel"}),workspaceDidCreateFiles:Tn({method:"workspace/didCreateFiles"}),workspaceDidRenameFiles:Tn({method:"workspace/didRenameFiles"}),workspaceDidDeleteFiles:Tn({method:"workspace/didDeleteFiles"}),notebookDocumentDidOpen:Tn({method:"notebookDocument/didOpen"}),notebookDocumentDidChange:Tn({method:"notebookDocument/didChange"}),notebookDocumentDidSave:Tn({method:"notebookDocument/didSave"}),notebookDocumentDidClose:Tn({method:"notebookDocument/didClose"}),initialized:Tn({method:"initialized"}),exit:Tn({method:"exit"}),workspaceDidChangeConfiguration:Tn({method:"workspace/didChangeConfiguration"}),textDocumentDidOpen:Tn({method:"textDocument/didOpen"}),textDocumentDidChange:Tn({method:"textDocument/didChange"}),textDocumentDidClose:Tn({method:"textDocument/didClose"}),textDocumentDidSave:Tn({method:"textDocument/didSave"}),textDocumentWillSave:Tn({method:"textDocument/willSave"}),workspaceDidChangeWatchedFiles:Tn({method:"workspace/didChangeWatchedFiles"}),setTrace:Tn({method:"$/setTrace"}),cancelRequest:Tn({method:"$/cancelRequest"}),progress:Tn({method:"$/progress"})},client:{workspaceWorkspaceFolders:ut({method:"workspace/workspaceFolders"}).optional(),workspaceConfiguration:ut({method:"workspace/configuration"}).optional(),workspaceFoldingRangeRefresh:ut({method:"workspace/foldingRange/refresh"}).optional(),windowWorkDoneProgressCreate:ut({method:"window/workDoneProgress/create"}).optional(),workspaceSemanticTokensRefresh:ut({method:"workspace/semanticTokens/refresh"}).optional(),windowShowDocument:ut({method:"window/showDocument"}).optional(),workspaceInlineValueRefresh:ut({method:"workspace/inlineValue/refresh"}).optional(),workspaceInlayHintRefresh:ut({method:"workspace/inlayHint/refresh"}).optional(),workspaceDiagnosticRefresh:ut({method:"workspace/diagnostic/refresh"}).optional(),clientRegisterCapability:ut({method:"client/registerCapability"}).optional(),clientUnregisterCapability:ut({method:"client/unregisterCapability"}).optional(),windowShowMessageRequest:ut({method:"window/showMessageRequest"}).optional(),workspaceCodeLensRefresh:ut({method:"workspace/codeLens/refresh"}).optional(),workspaceApplyEdit:ut({method:"workspace/applyEdit"}).optional(),windowShowMessage:Tn({method:"window/showMessage"}),windowLogMessage:Tn({method:"window/logMessage"}),telemetryEvent:Tn({method:"telemetry/event"}),textDocumentPublishDiagnostics:Tn({method:"textDocument/publishDiagnostics"}),logTrace:Tn({method:"$/logTrace"}),cancelRequest:Tn({method:"$/cancelRequest"}),progress:Tn({method:"$/progress"})}});$B=class{constructor(){kt(this,"_store",new Snt)}dispose(){this._store.dispose()}_register(s){if(s===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(s)}},kt($B,"None",Object.freeze({dispose(){}}));var Snt=(ER=class{constructor(){kt(this,"_toDispose",new Set),kt(this,"_isDisposed",!1)}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){if(this._toDispose.size!==0)try{for(const s of this._toDispose)s.dispose()}finally{this._toDispose.clear()}}add(s){if(!s)return s;if(s===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?ER.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(s),s}},kt(ER,"DISABLE_DISPOSED_WARNING",!1),ER);Ve.CodeActionTriggerType.Invoke,mde.Invoked,Ve.CodeActionTriggerType.Auto,mde.Automatic;ts.Text,Ve.CompletionItemKind.Text,ts.Method,Ve.CompletionItemKind.Method,ts.Function,Ve.CompletionItemKind.Function,ts.Constructor,Ve.CompletionItemKind.Constructor,ts.Field,Ve.CompletionItemKind.Field,ts.Variable,Ve.CompletionItemKind.Variable,ts.Class,Ve.CompletionItemKind.Class,ts.Interface,Ve.CompletionItemKind.Interface,ts.Module,Ve.CompletionItemKind.Module,ts.Property,Ve.CompletionItemKind.Property,ts.Unit,Ve.CompletionItemKind.Unit,ts.Value,Ve.CompletionItemKind.Value,ts.Enum,Ve.CompletionItemKind.Enum,ts.Keyword,Ve.CompletionItemKind.Keyword,ts.Snippet,Ve.CompletionItemKind.Snippet,ts.Color,Ve.CompletionItemKind.Color,ts.File,Ve.CompletionItemKind.File,ts.Reference,Ve.CompletionItemKind.Reference,ts.Folder,Ve.CompletionItemKind.Folder,ts.EnumMember,Ve.CompletionItemKind.EnumMember,ts.Constant,Ve.CompletionItemKind.Constant,ts.Struct,Ve.CompletionItemKind.Struct,ts.Event,Ve.CompletionItemKind.Event,ts.Operator,Ve.CompletionItemKind.Operator,ts.TypeParameter,Ve.CompletionItemKind.TypeParameter;Cnt.Deprecated,Ve.CompletionItemTag.Deprecated;Ve.CompletionTriggerKind.Invoke,GB.Invoked,Ve.CompletionTriggerKind.TriggerCharacter,GB.TriggerCharacter,Ve.CompletionTriggerKind.TriggerForIncompleteCompletions,GB.TriggerForIncompleteCompletions;wnt.Snippet,Ve.CompletionItemInsertTextRule.InsertAsSnippet;qn.File,Ve.SymbolKind.File,qn.Module,Ve.SymbolKind.Module,qn.Namespace,Ve.SymbolKind.Namespace,qn.Package,Ve.SymbolKind.Package,qn.Class,Ve.SymbolKind.Class,qn.Method,Ve.SymbolKind.Method,qn.Property,Ve.SymbolKind.Property,qn.Field,Ve.SymbolKind.Field,qn.Constructor,Ve.SymbolKind.Constructor,qn.Enum,Ve.SymbolKind.Enum,qn.Interface,Ve.SymbolKind.Interface,qn.Function,Ve.SymbolKind.Function,qn.Variable,Ve.SymbolKind.Variable,qn.Constant,Ve.SymbolKind.Constant,qn.String,Ve.SymbolKind.String,qn.Number,Ve.SymbolKind.Number,qn.Boolean,Ve.SymbolKind.Boolean,qn.Array,Ve.SymbolKind.Array,qn.Object,Ve.SymbolKind.Object,qn.Key,Ve.SymbolKind.Key,qn.Null,Ve.SymbolKind.Null,qn.EnumMember,Ve.SymbolKind.EnumMember,qn.Struct,Ve.SymbolKind.Struct,qn.Event,Ve.SymbolKind.Event,qn.Operator,Ve.SymbolKind.Operator,qn.TypeParameter,Ve.SymbolKind.TypeParameter;vnt.Deprecated,Ve.SymbolTag.Deprecated;qB.Text,Ve.DocumentHighlightKind.Text,qB.Read,Ve.DocumentHighlightKind.Read,qB.Write,Ve.DocumentHighlightKind.Write;jB.Comment,Ve.FoldingRangeKind.Comment,jB.Imports,Ve.FoldingRangeKind.Imports,jB.Region,Ve.FoldingRangeKind.Region;ag.Error,Lm.Error,ag.Warning,Lm.Warning,ag.Info,Lm.Information,ag.Hint,Lm.Hint;Lm.Error,ag.Error,Lm.Warning,ag.Warning,Lm.Information,ag.Info,Lm.Hint,ag.Hint;pde.Unnecessary,bG.Unnecessary,pde.Deprecated,bG.Deprecated;Ve.SignatureHelpTriggerKind.Invoke,KB.Invoked,Ve.SignatureHelpTriggerKind.TriggerCharacter,KB.TriggerCharacter,Ve.SignatureHelpTriggerKind.ContentChange,KB.ContentChange;gde.Type,Ve.InlayHintKind.Type,gde.Parameter,Ve.InlayHintKind.Parameter;new Map([...Object.values(ynt)].map(s=>[s.method,s]));function xnt(s,e){const t=globalThis.MonacoEnvironment;if(t?.createTrustedTypesPolicy)try{return t.createTrustedTypesPolicy(s,e)}catch(i){console.error(i);return}try{return globalThis.trustedTypes?.createPolicy(s,e)}catch(i){console.error(i);return}}let ZP;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?ZP=globalThis.workerttPolicy:ZP=xnt("defaultWorkerFactory",{createScriptURL:s=>s});function Lnt(s){const e=s.label,t=globalThis.MonacoEnvironment;if(t){if(typeof t.getWorker=="function")return t.getWorker("workerMain.js",e);if(typeof t.getWorkerUrl=="function"){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(ZP?ZP.createScriptURL(i):i,{name:e,type:"module"})}}if(s.createWorker)return s.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function R0t(s){const e=Promise.resolve(Lnt({label:s.label??"monaco-editor-worker",moduleId:s.moduleId,createWorker:s.createWorker})).then(t=>(t.postMessage("ignore"),t.postMessage(s.createData),t));return MF.createWebWorker({worker:e,host:s.host,keepIdleModels:s.keepIdleModels})}function q0e(){return Fit}const knt=globalThis.MonacoEnvironment;knt?.globalAPI&&(globalThis.monaco=q0e());const BF=q0e();BF.languages.css=Bit;BF.languages.html=jit;BF.languages.typescript=tnt;BF.languages.json=Yit;const HX=Bc.forwardRef(({content:s,onChange:e,fileName:t="untitled.wire",language:i="wire",readOnly:n=!1,className:o=""},r)=>{const a=mi.useRef(null),l=mi.useRef(null),c=mi.useRef(!1);return mi.useEffect(()=>{if(!(!a.current||c.current))try{const d=MF.create(a.current,{value:s,language:i,theme:"vs-light",fontSize:14,fontFamily:"Fira Code, monospace",lineNumbers:"on",wordWrap:"on",autoClosingBrackets:"always",autoClosingQuotes:"always",autoIndent:"full",formatOnPaste:!0,tabSize:2,insertSpaces:!0,readOnly:n,minimap:{enabled:!0},scrollBeyondLastLine:!1,automaticLayout:!0});l.current=d,c.current=!0,typeof r=="function"?r(d):r&&(r.current=d)}catch(d){console.error("Error creating Monaco editor:",d)}},[]),mi.useEffect(()=>{if(!l.current)return;const d=l.current.onDidChangeModelContent(()=>{const h=l.current.getValue();e(h)});return()=>{d.dispose()}},[e]),mi.useEffect(()=>{l.current&&l.current.getValue()!==s&&l.current.setValue(s)},[s]),Ue.jsx("div",{ref:a,className:o,style:{display:"flex",width:"100%",height:"100%",backgroundColor:"#ffffff"}})});HX.displayName="MonacoEditorComponent";HX.displayName="MonacoEditorComponent";const Ent=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Int=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()),_de=s=>{const e=Int(s);return e.charAt(0).toUpperCase()+e.slice(1)},G0e=(...s)=>s.filter((e,t,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===t).join(" ").trim(),Dnt=s=>{for(const e in s)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};var Tnt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Nnt=mi.forwardRef(({color:s="currentColor",size:e=24,strokeWidth:t=2,absoluteStrokeWidth:i,className:n="",children:o,iconNode:r,...a},l)=>mi.createElement("svg",{ref:l,...Tnt,width:e,height:e,stroke:s,strokeWidth:i?Number(t)*24/Number(e):t,className:G0e("lucide",n),...!o&&!Dnt(a)&&{"aria-hidden":"true"},...a},[...r.map(([c,d])=>mi.createElement(c,d)),...Array.isArray(o)?o:[o]]));const N_=(s,e)=>{const t=mi.forwardRef(({className:i,...n},o)=>mi.createElement(Nnt,{ref:o,iconNode:e,className:G0e(`lucide-${Ent(_de(s))}`,`lucide-${s}`,i),...n}));return t.displayName=_de(s),t};const Rnt=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Mnt=N_("book",Rnt);const Ant=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ont=N_("chevron-down",Ant);const Pnt=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Fnt=N_("download",Pnt);const Bnt=[["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"}]],Hnt=N_("external-link",Bnt);const Wnt=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],Vnt=N_("file-down",Wnt);const znt=[["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"}]],$nt=N_("folder-open",znt);const Unt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],jnt=N_("plus",Unt);const qnt=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Gnt=N_("save",qnt),bde=({currentFileName:s,isDirty:e,onNew:t,onOpen:i,onSave:n,onSaveAs:o,onRename:r,onExport:a,onExampleSelect:l,examples:c=["simple-dashboard","simple-multi-screen","admin-dashboard","form-example","analytics-dashboard"]})=>{const[d,h]=Bc.useState(!1),[f,p]=Bc.useState(!1),[m,_]=Bc.useState(s),C=Bc.useRef(null),y=Bc.useMemo(()=>s.endsWith(".wire")?s.slice(0,-5):s,[s]);Bc.useEffect(()=>{_(y)},[y]),Bc.useEffect(()=>{f&&C.current&&(C.current.focus(),C.current.select())},[f]);const S=()=>{if(m.trim()){const x=m.trim(),E=x.endsWith(".wire")?x:`${x}.wire`;E!==s&&r(E)}else _(y);p(!1)},L=x=>{x.key==="Enter"?S():x.key==="Escape"&&(p(!1),_(y))};return Ue.jsxs("header",{style:{height:"64px",backgroundColor:"#ffffff",borderBottom:"1px solid #e5e7eb",display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"24px",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.05)"},children:[Ue.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"24px"},children:[Ue.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[Ue.jsx("div",{style:{width:"32px",height:"32px",backgroundColor:"#3b82f6",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"18px",fontWeight:"bold"},children:Ue.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"234",height:"242",viewBox:"0 0 234 242",role:"img","aria-label":"Wire-DSL logo",children:[Ue.jsxs("defs",{children:[Ue.jsxs("radialGradient",{id:"bgGrad",cx:"30%",cy:"25%",r:"75%",children:[Ue.jsx("stop",{offset:"0%",stopColor:"#FFFFAA",stopOpacity:"1"}),Ue.jsx("stop",{offset:"55%",stopColor:"#AAAAAA",stopOpacity:"1"}),Ue.jsx("stop",{offset:"100%",stopColor:"#AADDDD",stopOpacity:"1"})]}),Ue.jsxs("radialGradient",{id:"nodeGrad",cx:"33%",cy:"33%",r:"75%",children:[Ue.jsx("stop",{offset:"0%",stopColor:"#EEEEEE",stopOpacity:"1"}),Ue.jsx("stop",{offset:"100%",stopColor:"#AAAAAA",stopOpacity:"1"})]}),Ue.jsxs("linearGradient",{id:"strokeGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[Ue.jsx("stop",{offset:"0%",stopColor:"#F4F4F4",stopOpacity:"1"}),Ue.jsx("stop",{offset:"100%",stopColor:"#DADADA",stopOpacity:"1"})]})]}),Ue.jsxs("g",{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",transform:"translate(0, 30)",children:[Ue.jsxs("g",{children:[Ue.jsx("circle",{cx:"44",cy:"45",r:"15",fill:"url(#nodeGrad)"}),Ue.jsx("circle",{cx:"86",cy:"136",r:"15",fill:"url(#nodeGrad)"}),Ue.jsx("circle",{cx:"117",cy:"56",r:"15",fill:"url(#nodeGrad)"}),Ue.jsx("circle",{cx:"148",cy:"136",r:"15",fill:"url(#nodeGrad)"}),Ue.jsx("circle",{cx:"190",cy:"45",r:"15",fill:"url(#nodeGrad)"})]}),Ue.jsx("path",{d:"M 44 45 L 86 136 L 117 56 L 148 136 L 190 45",stroke:"url(#strokeGrad)",strokeWidth:"18"})]})]})}),Ue.jsx("h1",{style:{fontSize:"18px",fontWeight:"600",color:"#111827",margin:0},children:"Wire Live"}),Ue.jsx("span",{style:{fontSize:"11px",backgroundColor:"#f3f4f6",color:"#4b5563",paddingLeft:"8px",paddingRight:"8px",paddingTop:"4px",paddingBottom:"4px",borderRadius:"6px",fontWeight:"500"},children:"open-source"})]}),Ue.jsx("div",{style:{width:"1px",height:"32px",backgroundColor:"#e5e7eb"}}),Ue.jsxs("div",{style:{fontSize:"14px",color:"#4b5563",display:"flex",alignItems:"center",gap:"8px"},children:[f?Ue.jsx("input",{ref:C,type:"text",value:m,onChange:x=>_(x.target.value),onBlur:S,onKeyDown:L,style:{fontSize:"14px",fontWeight:"500",color:"#111827",padding:"4px 8px",border:"2px solid #3b82f6",borderRadius:"4px",fontFamily:"inherit",outline:"none"}}):Ue.jsx("span",{onClick:()=>p(!0),style:{fontWeight:"500",color:"#111827",cursor:"pointer",padding:"4px 6px",borderRadius:"4px",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.backgroundColor="transparent",title:"Click to rename",children:s}),e&&Ue.jsx("span",{style:{color:"#f59e0b",fontSize:"10px"},children:"● unsaved"})]})]}),Ue.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[Ue.jsxs("button",{onClick:t,style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151",backgroundColor:"transparent",border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.backgroundColor="transparent",title:"Nuevo archivo (Ctrl+N)",children:[Ue.jsx(jnt,{size:16}),"New"]}),Ue.jsxs("button",{onClick:i,style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151",backgroundColor:"transparent",border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.backgroundColor="transparent",title:"Abrir archivo (Ctrl+O)",children:[Ue.jsx($nt,{size:16}),"Open"]}),Ue.jsxs("button",{onClick:n,style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"500",color:e?"#3b82f6":"#374151",backgroundColor:e?"#eff6ff":"transparent",border:e?"1px solid #93c5fd":"none",borderRadius:"6px",cursor:"pointer",transition:"all 0.2s"},onMouseEnter:x=>{e?x.currentTarget.style.backgroundColor="#dbeafe":x.currentTarget.style.backgroundColor="#f3f4f6"},onMouseLeave:x=>{x.currentTarget.style.backgroundColor=e?"#eff6ff":"transparent"},title:"Guardar archivo (Ctrl+S)",children:[Ue.jsx(Gnt,{size:16}),"Save"]}),o&&Ue.jsxs("button",{onClick:o,style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151",backgroundColor:"transparent",border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.backgroundColor="transparent",title:"Guardar como (Ctrl+Shift+S)",children:[Ue.jsx(Vnt,{size:16}),"Save As"]}),Ue.jsxs("div",{style:{position:"relative"},children:[Ue.jsxs("button",{onClick:()=>h(!d),style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151",backgroundColor:"transparent",border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.backgroundColor="transparent",children:["Examples",Ue.jsx(Ont,{size:16,style:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),d&&Ue.jsx("div",{style:{position:"absolute",top:"100%",right:"0",marginTop:"8px",backgroundColor:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"8px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1)",zIndex:1e3,minWidth:"160px"},children:c.map((x,E)=>Ue.jsx("button",{onClick:()=>{l?.(x),h(!1)},style:{width:"100%",textAlign:"left",paddingLeft:"16px",paddingRight:"16px",paddingTop:"10px",paddingBottom:"10px",fontSize:"14px",color:"#374151",backgroundColor:"transparent",border:"none",cursor:"pointer",transition:"background-color 0.2s",borderTopLeftRadius:E===0?"8px":"0px",borderTopRightRadius:E===0?"8px":"0px",borderBottomLeftRadius:E===c.length-1?"8px":"0px",borderBottomRightRadius:E===c.length-1?"8px":"0px"},onMouseEnter:D=>D.currentTarget.style.backgroundColor="#f9fafb",onMouseLeave:D=>D.currentTarget.style.backgroundColor="transparent",children:x},x))})]}),Ue.jsx("div",{style:{width:"1px",height:"32px",backgroundColor:"#e5e7eb"}}),Ue.jsxs("a",{href:"https://wire-dsl.org",target:"_blank",rel:"noopener noreferrer",style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"12px",paddingRight:"12px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"500",color:"#374151",backgroundColor:"transparent",border:"none",borderRadius:"6px",cursor:"pointer",textDecoration:"none",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:x=>x.currentTarget.style.backgroundColor="transparent",title:"Open documentation",children:[Ue.jsx(Mnt,{size:16}),"Docs",Ue.jsx(Hnt,{size:14,style:{opacity:.6}})]}),Ue.jsx("div",{style:{width:"1px",height:"32px",backgroundColor:"#e5e7eb"}}),Ue.jsxs("button",{onClick:a,style:{display:"flex",alignItems:"center",gap:"8px",paddingLeft:"16px",paddingRight:"16px",paddingTop:"8px",paddingBottom:"8px",fontSize:"14px",fontWeight:"600",color:"#ffffff",backgroundColor:"#3b82f6",border:"none",borderRadius:"6px",cursor:"pointer",transition:"background-color 0.2s"},onMouseEnter:x=>x.currentTarget.style.backgroundColor="#2563eb",onMouseLeave:x=>x.currentTarget.style.backgroundColor="#3b82f6",title:"Exportar como SVG",children:[Ue.jsx(Fnt,{size:16}),"Export SVG"]})]})]})},vde=s=>{let e;const t=new Set,i=(c,d)=>{const h=typeof c=="function"?c(e):c;if(!Object.is(h,e)){const f=e;e=d??(typeof h!="object"||h===null)?h:Object.assign({},e,h),t.forEach(p=>p(e,f))}},n=()=>e,a={setState:i,getState:n,getInitialState:()=>l,subscribe:c=>(t.add(c),()=>t.delete(c))},l=e=s(i,n,a);return a},Knt=(s=>s?vde(s):vde),Znt=s=>s;function Ynt(s,e=Znt){const t=Bc.useSyncExternalStore(s.subscribe,Bc.useCallback(()=>e(s.getState()),[s,e]),Bc.useCallback(()=>e(s.getInitialState()),[s,e]));return Bc.useDebugValue(t),t}const Xnt=s=>{const e=Knt(s),t=i=>Ynt(e,i);return Object.assign(t,e),t},Qnt=(s=>Xnt);function Jnt(s,e){let t;try{t=s()}catch{return}return{getItem:n=>{var o;const r=l=>l===null?null:JSON.parse(l,void 0),a=(o=t.getItem(n))!=null?o:null;return a instanceof Promise?a.then(r):r(a)},setItem:(n,o)=>t.setItem(n,JSON.stringify(o,void 0)),removeItem:n=>t.removeItem(n)}}const CG=s=>e=>{try{const t=s(e);return t instanceof Promise?t:{then(i){return CG(i)(t)},catch(i){return this}}}catch(t){return{then(i){return this},catch(i){return CG(i)(t)}}}},est=(s,e)=>(t,i,n)=>{let o={storage:Jnt(()=>localStorage),partialize:C=>C,version:0,merge:(C,y)=>({...y,...C}),...e},r=!1,a=0;const l=new Set,c=new Set;let d=o.storage;if(!d)return s((...C)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),t(...C)},i,n);const h=()=>{const C=o.partialize({...i()});return d.setItem(o.name,{state:C,version:o.version})},f=n.setState;n.setState=(C,y)=>(f(C,y),h());const p=s((...C)=>(t(...C),h()),i,n);n.getInitialState=()=>p;let m;const _=()=>{var C,y;if(!d)return;const S=++a;r=!1,l.forEach(x=>{var E;return x((E=i())!=null?E:p)});const L=((y=o.onRehydrateStorage)==null?void 0:y.call(o,(C=i())!=null?C:p))||void 0;return CG(d.getItem.bind(d))(o.name).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==o.version){if(o.migrate){const E=o.migrate(x.state,x.version);return E instanceof Promise?E.then(D=>[!0,D]):[!0,E]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,x.state];return[!1,void 0]}).then(x=>{var E;if(S!==a)return;const[D,T]=x;if(m=o.merge(T,(E=i())!=null?E:p),t(m,!0),D)return h()}).then(()=>{S===a&&(L?.(m,void 0),m=i(),r=!0,c.forEach(x=>x(m)))}).catch(x=>{S===a&&L?.(void 0,x)})};return n.persist={setOptions:C=>{o={...o,...C},C.storage&&(d=C.storage)},clearStorage:()=>{d?.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>_(),hasHydrated:()=>r,onHydrate:C=>(l.add(C),()=>{l.delete(C)}),onFinishHydration:C=>(c.add(C),()=>{c.delete(C)})},o.skipHydration||_(),m||p},tst=est,ist=()=>({name:"untitled.wire",content:"",isDirty:!1,lastModified:Date.now()}),Cd=Qnt()(tst((s,e)=>({files:new Map([["untitled-1",ist()]]),currentFileId:"untitled-1",zoomLevel:100,previewMode:"all-screens",selectedScreen:null,createFile:(t,i)=>{const n=`file-${Date.now()}`,o={name:t,content:i||"",isDirty:!!i,lastModified:Date.now()};s(r=>({files:new Map(r.files).set(n,o),currentFileId:n}))},openFile:t=>{s({currentFileId:t})},updateFileContent:(t,i)=>{s(n=>{const o=new Map(n.files),r=o.get(t);return r&&o.set(t,{...r,content:i,isDirty:!0,lastModified:Date.now()}),{files:o}})},renameFile:(t,i)=>{s(n=>{const o=new Map(n.files),r=o.get(t);return r&&o.set(t,{...r,name:i}),{files:o}})},markFileSaved:t=>{s(i=>{const n=new Map(i.files),o=n.get(t);return o&&n.set(t,{...o,isDirty:!1}),{files:n}})},deleteFile:t=>{s(i=>{const n=new Map(i.files);n.delete(t);let o=i.currentFileId;if(o===t){const r=Array.from(n.keys());o=r.length>0?r[0]:""}return{files:n,currentFileId:o}})},closeFile:t=>{s(i=>{if(i.currentFileId===t){const n=Array.from(i.files.keys()).filter(o=>o!==t);return{currentFileId:n.length>0?n[0]:""}}return{}})},setZoomLevel:t=>{s({zoomLevel:Math.max(25,Math.min(200,t))})},setPreviewMode:t=>{s({previewMode:t})},setSelectedScreen:t=>{s({selectedScreen:t})},getCurrentFile:()=>{const t=e();return t.files.get(t.currentFileId)||null}}),{name:"wire-editor-store",storage:{getItem:s=>{const e=localStorage.getItem(s);if(!e)return null;try{const t=JSON.parse(e);return{...t,state:{...t.state,files:new Map(t.state.files||[])}}}catch{return null}},setItem:(s,e)=>{localStorage.setItem(s,JSON.stringify({...e,state:{...e.state,files:Array.from(e.state.files||new Map)}}))},removeItem:s=>localStorage.removeItem(s)}}));var K0e=typeof global=="object"&&global&&global.Object===Object&&global,nst=typeof self=="object"&&self&&self.Object===Object&&self,Bu=K0e||nst||Function("return this")(),nd=Bu.Symbol,Z0e=Object.prototype,sst=Z0e.hasOwnProperty,ost=Z0e.toString,GL=nd?nd.toStringTag:void 0;function rst(s){var e=sst.call(s,GL),t=s[GL];try{s[GL]=void 0;var i=!0}catch{}var n=ost.call(s);return i&&(e?s[GL]=t:delete s[GL]),n}var ast=Object.prototype,lst=ast.toString;function cst(s){return lst.call(s)}var dst="[object Null]",hst="[object Undefined]",Cde=nd?nd.toStringTag:void 0;function R_(s){return s==null?s===void 0?hst:dst:Cde&&Cde in Object(s)?rst(s):cst(s)}function ah(s){return s!=null&&typeof s=="object"}var ust="[object Symbol]";function HF(s){return typeof s=="symbol"||ah(s)&&R_(s)==ust}function WF(s,e){for(var t=-1,i=s==null?0:s.length,n=Array(i);++t<i;)n[t]=e(s[t],t,s);return n}var ji=Array.isArray,wde=nd?nd.prototype:void 0,yde=wde?wde.toString:void 0;function Y0e(s){if(typeof s=="string")return s;if(ji(s))return WF(s,Y0e)+"";if(HF(s))return yde?yde.call(s):"";var e=s+"";return e=="0"&&1/s==-1/0?"-0":e}var fst=/\s/;function gst(s){for(var e=s.length;e--&&fst.test(s.charAt(e)););return e}var pst=/^\s+/;function mst(s){return s&&s.slice(0,gst(s)+1).replace(pst,"")}function sd(s){var e=typeof s;return s!=null&&(e=="object"||e=="function")}var Sde=NaN,_st=/^[-+]0x[0-9a-f]+$/i,bst=/^0b[01]+$/i,vst=/^0o[0-7]+$/i,Cst=parseInt;function wst(s){if(typeof s=="number")return s;if(HF(s))return Sde;if(sd(s)){var e=typeof s.valueOf=="function"?s.valueOf():s;s=sd(e)?e+"":e}if(typeof s!="string")return s===0?s:+s;s=mst(s);var t=bst.test(s);return t||vst.test(s)?Cst(s.slice(2),t?2:8):_st.test(s)?Sde:+s}var xde=1/0,yst=17976931348623157e292;function Sst(s){if(!s)return s===0?s:0;if(s=wst(s),s===xde||s===-xde){var e=s<0?-1:1;return e*yst}return s===s?s:0}function VF(s){var e=Sst(s),t=e%1;return e===e?t?e-t:e:0}function PS(s){return s}var xst="[object AsyncFunction]",Lst="[object Function]",kst="[object GeneratorFunction]",Est="[object Proxy]";function tp(s){if(!sd(s))return!1;var e=R_(s);return e==Lst||e==kst||e==xst||e==Est}var ZB=Bu["__core-js_shared__"],Lde=(function(){var s=/[^.]+$/.exec(ZB&&ZB.keys&&ZB.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""})();function Ist(s){return!!Lde&&Lde in s}var Dst=Function.prototype,Tst=Dst.toString;function V0(s){if(s!=null){try{return Tst.call(s)}catch{}try{return s+""}catch{}}return""}var Nst=/[\\^$.*+?()[\]{}|]/g,Rst=/^\[object .+?Constructor\]$/,Mst=Function.prototype,Ast=Object.prototype,Ost=Mst.toString,Pst=Ast.hasOwnProperty,Fst=RegExp("^"+Ost.call(Pst).replace(Nst,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bst(s){if(!sd(s)||Ist(s))return!1;var e=tp(s)?Fst:Rst;return e.test(V0(s))}function Hst(s,e){return s?.[e]}function z0(s,e){var t=Hst(s,e);return Bst(t)?t:void 0}var wG=z0(Bu,"WeakMap"),kde=Object.create,Wst=(function(){function s(){}return function(e){if(!sd(e))return{};if(kde)return kde(e);s.prototype=e;var t=new s;return s.prototype=void 0,t}})();function Vst(s,e,t){switch(t.length){case 0:return s.call(e);case 1:return s.call(e,t[0]);case 2:return s.call(e,t[0],t[1]);case 3:return s.call(e,t[0],t[1],t[2])}return s.apply(e,t)}function Io(){}function zst(s,e){var t=-1,i=s.length;for(e||(e=Array(i));++t<i;)e[t]=s[t];return e}var $st=800,Ust=16,jst=Date.now;function qst(s){var e=0,t=0;return function(){var i=jst(),n=Ust-(i-t);if(t=i,n>0){if(++e>=$st)return arguments[0]}else e=0;return s.apply(void 0,arguments)}}function Gst(s){return function(){return s}}var YP=(function(){try{var s=z0(Object,"defineProperty");return s({},"",{}),s}catch{}})(),Kst=YP?function(s,e){return YP(s,"toString",{configurable:!0,enumerable:!1,value:Gst(e),writable:!0})}:PS,Zst=qst(Kst);function X0e(s,e){for(var t=-1,i=s==null?0:s.length;++t<i&&e(s[t],t,s)!==!1;);return s}function Q0e(s,e,t,i){for(var n=s.length,o=t+-1;++o<n;)if(e(s[o],o,s))return o;return-1}function Yst(s){return s!==s}function Xst(s,e,t){for(var i=t-1,n=s.length;++i<n;)if(s[i]===e)return i;return-1}function WX(s,e,t){return e===e?Xst(s,e,t):Q0e(s,Yst,t)}function J0e(s,e){var t=s==null?0:s.length;return!!t&&WX(s,e,0)>-1}var Qst=9007199254740991,Jst=/^(?:0|[1-9]\d*)$/;function zF(s,e){var t=typeof s;return e=e??Qst,!!e&&(t=="number"||t!="symbol"&&Jst.test(s))&&s>-1&&s%1==0&&s<e}function VX(s,e,t){e=="__proto__"&&YP?YP(s,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):s[e]=t}function ED(s,e){return s===e||s!==s&&e!==e}var eot=Object.prototype,tot=eot.hasOwnProperty;function $F(s,e,t){var i=s[e];(!(tot.call(s,e)&&ED(i,t))||t===void 0&&!(e in s))&&VX(s,e,t)}function zX(s,e,t,i){var n=!t;t||(t={});for(var o=-1,r=e.length;++o<r;){var a=e[o],l=void 0;l===void 0&&(l=s[a]),n?VX(t,a,l):$F(t,a,l)}return t}var Ede=Math.max;function iot(s,e,t){return e=Ede(e===void 0?s.length-1:e,0),function(){for(var i=arguments,n=-1,o=Ede(i.length-e,0),r=Array(o);++n<o;)r[n]=i[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=i[n];return a[e]=t(r),Vst(s,this,a)}}function $X(s,e){return Zst(iot(s,e,PS),s+"")}var not=9007199254740991;function UX(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=not}function Hu(s){return s!=null&&UX(s.length)&&!tp(s)}function eCe(s,e,t){if(!sd(t))return!1;var i=typeof e;return(i=="number"?Hu(t)&&zF(e,t.length):i=="string"&&e in t)?ED(t[e],s):!1}function sot(s){return $X(function(e,t){var i=-1,n=t.length,o=n>1?t[n-1]:void 0,r=n>2?t[2]:void 0;for(o=s.length>3&&typeof o=="function"?(n--,o):void 0,r&&eCe(t[0],t[1],r)&&(o=n<3?void 0:o,n=1),e=Object(e);++i<n;){var a=t[i];a&&s(e,a,i,o)}return e})}var oot=Object.prototype;function ID(s){var e=s&&s.constructor,t=typeof e=="function"&&e.prototype||oot;return s===t}function rot(s,e){for(var t=-1,i=Array(s);++t<s;)i[t]=e(t);return i}var aot="[object Arguments]";function Ide(s){return ah(s)&&R_(s)==aot}var tCe=Object.prototype,lot=tCe.hasOwnProperty,cot=tCe.propertyIsEnumerable,UF=Ide((function(){return arguments})())?Ide:function(s){return ah(s)&&lot.call(s,"callee")&&!cot.call(s,"callee")};function dot(){return!1}var iCe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dde=iCe&&typeof module=="object"&&module&&!module.nodeType&&module,hot=Dde&&Dde.exports===iCe,Tde=hot?Bu.Buffer:void 0,uot=Tde?Tde.isBuffer:void 0,TI=uot||dot,fot="[object Arguments]",got="[object Array]",pot="[object Boolean]",mot="[object Date]",_ot="[object Error]",bot="[object Function]",vot="[object Map]",Cot="[object Number]",wot="[object Object]",yot="[object RegExp]",Sot="[object Set]",xot="[object String]",Lot="[object WeakMap]",kot="[object ArrayBuffer]",Eot="[object DataView]",Iot="[object Float32Array]",Dot="[object Float64Array]",Tot="[object Int8Array]",Not="[object Int16Array]",Rot="[object Int32Array]",Mot="[object Uint8Array]",Aot="[object Uint8ClampedArray]",Oot="[object Uint16Array]",Pot="[object Uint32Array]",ns={};ns[Iot]=ns[Dot]=ns[Tot]=ns[Not]=ns[Rot]=ns[Mot]=ns[Aot]=ns[Oot]=ns[Pot]=!0;ns[fot]=ns[got]=ns[kot]=ns[pot]=ns[Eot]=ns[mot]=ns[_ot]=ns[bot]=ns[vot]=ns[Cot]=ns[wot]=ns[yot]=ns[Sot]=ns[xot]=ns[Lot]=!1;function Fot(s){return ah(s)&&UX(s.length)&&!!ns[R_(s)]}function jF(s){return function(e){return s(e)}}var nCe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,_k=nCe&&typeof module=="object"&&module&&!module.nodeType&&module,Bot=_k&&_k.exports===nCe,YB=Bot&&K0e.process,__=(function(){try{var s=_k&&_k.require&&_k.require("util").types;return s||YB&&YB.binding&&YB.binding("util")}catch{}})(),Nde=__&&__.isTypedArray,jX=Nde?jF(Nde):Fot,Hot=Object.prototype,Wot=Hot.hasOwnProperty;function sCe(s,e){var t=ji(s),i=!t&&UF(s),n=!t&&!i&&TI(s),o=!t&&!i&&!n&&jX(s),r=t||i||n||o,a=r?rot(s.length,String):[],l=a.length;for(var c in s)(e||Wot.call(s,c))&&!(r&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||zF(c,l)))&&a.push(c);return a}function oCe(s,e){return function(t){return s(e(t))}}var Vot=oCe(Object.keys,Object),zot=Object.prototype,$ot=zot.hasOwnProperty;function rCe(s){if(!ID(s))return Vot(s);var e=[];for(var t in Object(s))$ot.call(s,t)&&t!="constructor"&&e.push(t);return e}function od(s){return Hu(s)?sCe(s):rCe(s)}var Uot=Object.prototype,jot=Uot.hasOwnProperty,hc=sot(function(s,e){if(ID(e)||Hu(e)){zX(e,od(e),s);return}for(var t in e)jot.call(e,t)&&$F(s,t,e[t])});function qot(s){var e=[];if(s!=null)for(var t in Object(s))e.push(t);return e}var Got=Object.prototype,Kot=Got.hasOwnProperty;function Zot(s){if(!sd(s))return qot(s);var e=ID(s),t=[];for(var i in s)i=="constructor"&&(e||!Kot.call(s,i))||t.push(i);return t}function aCe(s){return Hu(s)?sCe(s,!0):Zot(s)}var Yot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xot=/^\w*$/;function qX(s,e){if(ji(s))return!1;var t=typeof s;return t=="number"||t=="symbol"||t=="boolean"||s==null||HF(s)?!0:Xot.test(s)||!Yot.test(s)||e!=null&&s in Object(e)}var NI=z0(Object,"create");function Qot(){this.__data__=NI?NI(null):{},this.size=0}function Jot(s){var e=this.has(s)&&delete this.__data__[s];return this.size-=e?1:0,e}var ert="__lodash_hash_undefined__",trt=Object.prototype,irt=trt.hasOwnProperty;function nrt(s){var e=this.__data__;if(NI){var t=e[s];return t===ert?void 0:t}return irt.call(e,s)?e[s]:void 0}var srt=Object.prototype,ort=srt.hasOwnProperty;function rrt(s){var e=this.__data__;return NI?e[s]!==void 0:ort.call(e,s)}var art="__lodash_hash_undefined__";function lrt(s,e){var t=this.__data__;return this.size+=this.has(s)?0:1,t[s]=NI&&e===void 0?art:e,this}function m0(s){var e=-1,t=s==null?0:s.length;for(this.clear();++e<t;){var i=s[e];this.set(i[0],i[1])}}m0.prototype.clear=Qot;m0.prototype.delete=Jot;m0.prototype.get=nrt;m0.prototype.has=rrt;m0.prototype.set=lrt;function crt(){this.__data__=[],this.size=0}function qF(s,e){for(var t=s.length;t--;)if(ED(s[t][0],e))return t;return-1}var drt=Array.prototype,hrt=drt.splice;function urt(s){var e=this.__data__,t=qF(e,s);if(t<0)return!1;var i=e.length-1;return t==i?e.pop():hrt.call(e,t,1),--this.size,!0}function frt(s){var e=this.__data__,t=qF(e,s);return t<0?void 0:e[t][1]}function grt(s){return qF(this.__data__,s)>-1}function prt(s,e){var t=this.__data__,i=qF(t,s);return i<0?(++this.size,t.push([s,e])):t[i][1]=e,this}function ip(s){var e=-1,t=s==null?0:s.length;for(this.clear();++e<t;){var i=s[e];this.set(i[0],i[1])}}ip.prototype.clear=crt;ip.prototype.delete=urt;ip.prototype.get=frt;ip.prototype.has=grt;ip.prototype.set=prt;var RI=z0(Bu,"Map");function mrt(){this.size=0,this.__data__={hash:new m0,map:new(RI||ip),string:new m0}}function _rt(s){var e=typeof s;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?s!=="__proto__":s===null}function GF(s,e){var t=s.__data__;return _rt(e)?t[typeof e=="string"?"string":"hash"]:t.map}function brt(s){var e=GF(this,s).delete(s);return this.size-=e?1:0,e}function vrt(s){return GF(this,s).get(s)}function Crt(s){return GF(this,s).has(s)}function wrt(s,e){var t=GF(this,s),i=t.size;return t.set(s,e),this.size+=t.size==i?0:1,this}function np(s){var e=-1,t=s==null?0:s.length;for(this.clear();++e<t;){var i=s[e];this.set(i[0],i[1])}}np.prototype.clear=mrt;np.prototype.delete=brt;np.prototype.get=vrt;np.prototype.has=Crt;np.prototype.set=wrt;var yrt="Expected a function";function GX(s,e){if(typeof s!="function"||e!=null&&typeof e!="function")throw new TypeError(yrt);var t=function(){var i=arguments,n=e?e.apply(this,i):i[0],o=t.cache;if(o.has(n))return o.get(n);var r=s.apply(this,i);return t.cache=o.set(n,r)||o,r};return t.cache=new(GX.Cache||np),t}GX.Cache=np;var Srt=500;function xrt(s){var e=GX(s,function(i){return t.size===Srt&&t.clear(),i}),t=e.cache;return e}var Lrt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,krt=/\\(\\)?/g,Ert=xrt(function(s){var e=[];return s.charCodeAt(0)===46&&e.push(""),s.replace(Lrt,function(t,i,n,o){e.push(n?o.replace(krt,"$1"):i||t)}),e});function Irt(s){return s==null?"":Y0e(s)}function KF(s,e){return ji(s)?s:qX(s,e)?[s]:Ert(Irt(s))}function DD(s){if(typeof s=="string"||HF(s))return s;var e=s+"";return e=="0"&&1/s==-1/0?"-0":e}function KX(s,e){e=KF(e,s);for(var t=0,i=e.length;s!=null&&t<i;)s=s[DD(e[t++])];return t&&t==i?s:void 0}function Drt(s,e,t){var i=s==null?void 0:KX(s,e);return i===void 0?t:i}function ZX(s,e){for(var t=-1,i=e.length,n=s.length;++t<i;)s[n+t]=e[t];return s}var Rde=nd?nd.isConcatSpreadable:void 0;function Trt(s){return ji(s)||UF(s)||!!(Rde&&s&&s[Rde])}function YX(s,e,t,i,n){var o=-1,r=s.length;for(t||(t=Trt),n||(n=[]);++o<r;){var a=s[o];t(a)?ZX(n,a):i||(n[n.length]=a)}return n}function Zd(s){var e=s==null?0:s.length;return e?YX(s):[]}var lCe=oCe(Object.getPrototypeOf,Object);function cCe(s,e,t){var i=-1,n=s.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var o=Array(n);++i<n;)o[i]=s[i+e];return o}function Nrt(s,e,t,i){var n=-1,o=s==null?0:s.length;for(i&&o&&(t=s[++n]);++n<o;)t=e(t,s[n],n,s);return t}function Rrt(){this.__data__=new ip,this.size=0}function Mrt(s){var e=this.__data__,t=e.delete(s);return this.size=e.size,t}function Art(s){return this.__data__.get(s)}function Ort(s){return this.__data__.has(s)}var Prt=200;function Frt(s,e){var t=this.__data__;if(t instanceof ip){var i=t.__data__;if(!RI||i.length<Prt-1)return i.push([s,e]),this.size=++t.size,this;t=this.__data__=new np(i)}return t.set(s,e),this.size=t.size,this}function bu(s){var e=this.__data__=new ip(s);this.size=e.size}bu.prototype.clear=Rrt;bu.prototype.delete=Mrt;bu.prototype.get=Art;bu.prototype.has=Ort;bu.prototype.set=Frt;function Brt(s,e){return s&&zX(e,od(e),s)}var dCe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mde=dCe&&typeof module=="object"&&module&&!module.nodeType&&module,Hrt=Mde&&Mde.exports===dCe,Ade=Hrt?Bu.Buffer:void 0,Ode=Ade?Ade.allocUnsafe:void 0;function Wrt(s,e){var t=s.length,i=Ode?Ode(t):new s.constructor(t);return s.copy(i),i}function XX(s,e){for(var t=-1,i=s==null?0:s.length,n=0,o=[];++t<i;){var r=s[t];e(r,t,s)&&(o[n++]=r)}return o}function hCe(){return[]}var Vrt=Object.prototype,zrt=Vrt.propertyIsEnumerable,Pde=Object.getOwnPropertySymbols,QX=Pde?function(s){return s==null?[]:(s=Object(s),XX(Pde(s),function(e){return zrt.call(s,e)}))}:hCe;function $rt(s,e){return zX(s,QX(s),e)}var Urt=Object.getOwnPropertySymbols,jrt=Urt?function(s){for(var e=[];s;)ZX(e,QX(s)),s=lCe(s);return e}:hCe;function uCe(s,e,t){var i=e(s);return ji(s)?i:ZX(i,t(s))}function yG(s){return uCe(s,od,QX)}function qrt(s){return uCe(s,aCe,jrt)}var SG=z0(Bu,"DataView"),xG=z0(Bu,"Promise"),My=z0(Bu,"Set"),Fde="[object Map]",Grt="[object Object]",Bde="[object Promise]",Hde="[object Set]",Wde="[object WeakMap]",Vde="[object DataView]",Krt=V0(SG),Zrt=V0(RI),Yrt=V0(xG),Xrt=V0(My),Qrt=V0(wG),jc=R_;(SG&&jc(new SG(new ArrayBuffer(1)))!=Vde||RI&&jc(new RI)!=Fde||xG&&jc(xG.resolve())!=Bde||My&&jc(new My)!=Hde||wG&&jc(new wG)!=Wde)&&(jc=function(s){var e=R_(s),t=e==Grt?s.constructor:void 0,i=t?V0(t):"";if(i)switch(i){case Krt:return Vde;case Zrt:return Fde;case Yrt:return Bde;case Xrt:return Hde;case Qrt:return Wde}return e});var Jrt=Object.prototype,eat=Jrt.hasOwnProperty;function tat(s){var e=s.length,t=new s.constructor(e);return e&&typeof s[0]=="string"&&eat.call(s,"index")&&(t.index=s.index,t.input=s.input),t}var XP=Bu.Uint8Array;function iat(s){var e=new s.constructor(s.byteLength);return new XP(e).set(new XP(s)),e}function nat(s,e){var t=s.buffer;return new s.constructor(t,s.byteOffset,s.byteLength)}var sat=/\w*$/;function oat(s){var e=new s.constructor(s.source,sat.exec(s));return e.lastIndex=s.lastIndex,e}var zde=nd?nd.prototype:void 0,$de=zde?zde.valueOf:void 0;function rat(s){return $de?Object($de.call(s)):{}}function aat(s,e){var t=s.buffer;return new s.constructor(t,s.byteOffset,s.length)}var lat="[object Boolean]",cat="[object Date]",dat="[object Map]",hat="[object Number]",uat="[object RegExp]",fat="[object Set]",gat="[object String]",pat="[object Symbol]",mat="[object ArrayBuffer]",_at="[object DataView]",bat="[object Float32Array]",vat="[object Float64Array]",Cat="[object Int8Array]",wat="[object Int16Array]",yat="[object Int32Array]",Sat="[object Uint8Array]",xat="[object Uint8ClampedArray]",Lat="[object Uint16Array]",kat="[object Uint32Array]";function Eat(s,e,t){var i=s.constructor;switch(e){case mat:return iat(s);case lat:case cat:return new i(+s);case _at:return nat(s);case bat:case vat:case Cat:case wat:case yat:case Sat:case xat:case Lat:case kat:return aat(s);case dat:return new i;case hat:case gat:return new i(s);case uat:return oat(s);case fat:return new i;case pat:return rat(s)}}function Iat(s){return typeof s.constructor=="function"&&!ID(s)?Wst(lCe(s)):{}}var Dat="[object Map]";function Tat(s){return ah(s)&&jc(s)==Dat}var Ude=__&&__.isMap,Nat=Ude?jF(Ude):Tat,Rat="[object Set]";function Mat(s){return ah(s)&&jc(s)==Rat}var jde=__&&__.isSet,Aat=jde?jF(jde):Mat,fCe="[object Arguments]",Oat="[object Array]",Pat="[object Boolean]",Fat="[object Date]",Bat="[object Error]",gCe="[object Function]",Hat="[object GeneratorFunction]",Wat="[object Map]",Vat="[object Number]",pCe="[object Object]",zat="[object RegExp]",$at="[object Set]",Uat="[object String]",jat="[object Symbol]",qat="[object WeakMap]",Gat="[object ArrayBuffer]",Kat="[object DataView]",Zat="[object Float32Array]",Yat="[object Float64Array]",Xat="[object Int8Array]",Qat="[object Int16Array]",Jat="[object Int32Array]",elt="[object Uint8Array]",tlt="[object Uint8ClampedArray]",ilt="[object Uint16Array]",nlt="[object Uint32Array]",Kn={};Kn[fCe]=Kn[Oat]=Kn[Gat]=Kn[Kat]=Kn[Pat]=Kn[Fat]=Kn[Zat]=Kn[Yat]=Kn[Xat]=Kn[Qat]=Kn[Jat]=Kn[Wat]=Kn[Vat]=Kn[pCe]=Kn[zat]=Kn[$at]=Kn[Uat]=Kn[jat]=Kn[elt]=Kn[tlt]=Kn[ilt]=Kn[nlt]=!0;Kn[Bat]=Kn[gCe]=Kn[qat]=!1;function xM(s,e,t,i,n,o){var r;if(r!==void 0)return r;if(!sd(s))return s;var a=ji(s);if(a)return r=tat(s),zst(s,r);var l=jc(s),c=l==gCe||l==Hat;if(TI(s))return Wrt(s);if(l==pCe||l==fCe||c&&!n)return r=c?{}:Iat(s),$rt(s,Brt(r,s));if(!Kn[l])return n?s:{};r=Eat(s,l),o||(o=new bu);var d=o.get(s);if(d)return d;o.set(s,r),Aat(s)?s.forEach(function(p){r.add(xM(p,e,t,p,s,o))}):Nat(s)&&s.forEach(function(p,m){r.set(m,xM(p,e,t,m,s,o))});var h=yG,f=a?void 0:h(s);return X0e(f||s,function(p,m){f&&(m=p,p=s[m]),$F(r,m,xM(p,e,t,m,s,o))}),r}var slt=4;function Tr(s){return xM(s,slt)}function TD(s){for(var e=-1,t=s==null?0:s.length,i=0,n=[];++e<t;){var o=s[e];o&&(n[i++]=o)}return n}var olt="__lodash_hash_undefined__";function rlt(s){return this.__data__.set(s,olt),this}function alt(s){return this.__data__.has(s)}function FS(s){var e=-1,t=s==null?0:s.length;for(this.__data__=new np;++e<t;)this.add(s[e])}FS.prototype.add=FS.prototype.push=rlt;FS.prototype.has=alt;function mCe(s,e){for(var t=-1,i=s==null?0:s.length;++t<i;)if(e(s[t],t,s))return!0;return!1}function JX(s,e){return s.has(e)}var llt=1,clt=2;function _Ce(s,e,t,i,n,o){var r=t&llt,a=s.length,l=e.length;if(a!=l&&!(r&&l>a))return!1;var c=o.get(s),d=o.get(e);if(c&&d)return c==e&&d==s;var h=-1,f=!0,p=t&clt?new FS:void 0;for(o.set(s,e),o.set(e,s);++h<a;){var m=s[h],_=e[h];if(i)var C=r?i(_,m,h,e,s,o):i(m,_,h,s,e,o);if(C!==void 0){if(C)continue;f=!1;break}if(p){if(!mCe(e,function(y,S){if(!JX(p,S)&&(m===y||n(m,y,t,i,o)))return p.push(S)})){f=!1;break}}else if(!(m===_||n(m,_,t,i,o))){f=!1;break}}return o.delete(s),o.delete(e),f}function dlt(s){var e=-1,t=Array(s.size);return s.forEach(function(i,n){t[++e]=[n,i]}),t}function eQ(s){var e=-1,t=Array(s.size);return s.forEach(function(i){t[++e]=i}),t}var hlt=1,ult=2,flt="[object Boolean]",glt="[object Date]",plt="[object Error]",mlt="[object Map]",_lt="[object Number]",blt="[object RegExp]",vlt="[object Set]",Clt="[object String]",wlt="[object Symbol]",ylt="[object ArrayBuffer]",Slt="[object DataView]",qde=nd?nd.prototype:void 0,XB=qde?qde.valueOf:void 0;function xlt(s,e,t,i,n,o,r){switch(t){case Slt:if(s.byteLength!=e.byteLength||s.byteOffset!=e.byteOffset)return!1;s=s.buffer,e=e.buffer;case ylt:return!(s.byteLength!=e.byteLength||!o(new XP(s),new XP(e)));case flt:case glt:case _lt:return ED(+s,+e);case plt:return s.name==e.name&&s.message==e.message;case blt:case Clt:return s==e+"";case mlt:var a=dlt;case vlt:var l=i&hlt;if(a||(a=eQ),s.size!=e.size&&!l)return!1;var c=r.get(s);if(c)return c==e;i|=ult,r.set(s,e);var d=_Ce(a(s),a(e),i,n,o,r);return r.delete(s),d;case wlt:if(XB)return XB.call(s)==XB.call(e)}return!1}var Llt=1,klt=Object.prototype,Elt=klt.hasOwnProperty;function Ilt(s,e,t,i,n,o){var r=t&Llt,a=yG(s),l=a.length,c=yG(e),d=c.length;if(l!=d&&!r)return!1;for(var h=l;h--;){var f=a[h];if(!(r?f in e:Elt.call(e,f)))return!1}var p=o.get(s),m=o.get(e);if(p&&m)return p==e&&m==s;var _=!0;o.set(s,e),o.set(e,s);for(var C=r;++h<l;){f=a[h];var y=s[f],S=e[f];if(i)var L=r?i(S,y,f,e,s,o):i(y,S,f,s,e,o);if(!(L===void 0?y===S||n(y,S,t,i,o):L)){_=!1;break}C||(C=f=="constructor")}if(_&&!C){var x=s.constructor,E=e.constructor;x!=E&&"constructor"in s&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof E=="function"&&E instanceof E)&&(_=!1)}return o.delete(s),o.delete(e),_}var Dlt=1,Gde="[object Arguments]",Kde="[object Array]",IR="[object Object]",Tlt=Object.prototype,Zde=Tlt.hasOwnProperty;function Nlt(s,e,t,i,n,o){var r=ji(s),a=ji(e),l=r?Kde:jc(s),c=a?Kde:jc(e);l=l==Gde?IR:l,c=c==Gde?IR:c;var d=l==IR,h=c==IR,f=l==c;if(f&&TI(s)){if(!TI(e))return!1;r=!0,d=!1}if(f&&!d)return o||(o=new bu),r||jX(s)?_Ce(s,e,t,i,n,o):xlt(s,e,l,t,i,n,o);if(!(t&Dlt)){var p=d&&Zde.call(s,"__wrapped__"),m=h&&Zde.call(e,"__wrapped__");if(p||m){var _=p?s.value():s,C=m?e.value():e;return o||(o=new bu),n(_,C,t,i,o)}}return f?(o||(o=new bu),Ilt(s,e,t,i,n,o)):!1}function tQ(s,e,t,i,n){return s===e?!0:s==null||e==null||!ah(s)&&!ah(e)?s!==s&&e!==e:Nlt(s,e,t,i,tQ,n)}var Rlt=1,Mlt=2;function Alt(s,e,t,i){var n=t.length,o=n;if(s==null)return!o;for(s=Object(s);n--;){var r=t[n];if(r[2]?r[1]!==s[r[0]]:!(r[0]in s))return!1}for(;++n<o;){r=t[n];var a=r[0],l=s[a],c=r[1];if(r[2]){if(l===void 0&&!(a in s))return!1}else{var d=new bu,h;if(!(h===void 0?tQ(c,l,Rlt|Mlt,i,d):h))return!1}}return!0}function bCe(s){return s===s&&!sd(s)}function Olt(s){for(var e=od(s),t=e.length;t--;){var i=e[t],n=s[i];e[t]=[i,n,bCe(n)]}return e}function vCe(s,e){return function(t){return t==null?!1:t[s]===e&&(e!==void 0||s in Object(t))}}function Plt(s){var e=Olt(s);return e.length==1&&e[0][2]?vCe(e[0][0],e[0][1]):function(t){return t===s||Alt(t,s,e)}}function Flt(s,e){return s!=null&&e in Object(s)}function CCe(s,e,t){e=KF(e,s);for(var i=-1,n=e.length,o=!1;++i<n;){var r=DD(e[i]);if(!(o=s!=null&&t(s,r)))break;s=s[r]}return o||++i!=n?o:(n=s==null?0:s.length,!!n&&UX(n)&&zF(r,n)&&(ji(s)||UF(s)))}function Blt(s,e){return s!=null&&CCe(s,e,Flt)}var Hlt=1,Wlt=2;function Vlt(s,e){return qX(s)&&bCe(e)?vCe(DD(s),e):function(t){var i=Drt(t,s);return i===void 0&&i===e?Blt(t,s):tQ(e,i,Hlt|Wlt)}}function zlt(s){return function(e){return e?.[s]}}function $lt(s){return function(e){return KX(e,s)}}function Ult(s){return qX(s)?zlt(DD(s)):$lt(s)}function Wu(s){return typeof s=="function"?s:s==null?PS:typeof s=="object"?ji(s)?Vlt(s[0],s[1]):Plt(s):Ult(s)}function jlt(s,e,t,i){for(var n=-1,o=s==null?0:s.length;++n<o;){var r=s[n];e(i,r,t(r),s)}return i}function qlt(s){return function(e,t,i){for(var n=-1,o=Object(e),r=i(e),a=r.length;a--;){var l=r[++n];if(t(o[l],l,o)===!1)break}return e}}var Glt=qlt();function Klt(s,e){return s&&Glt(s,e,od)}function Zlt(s,e){return function(t,i){if(t==null)return t;if(!Hu(t))return s(t,i);for(var n=t.length,o=-1,r=Object(t);++o<n&&i(r[o],o,r)!==!1;);return t}}var $0=Zlt(Klt);function Ylt(s,e,t,i){return $0(s,function(n,o,r){e(i,n,t(n),r)}),i}function Xlt(s,e){return function(t,i){var n=ji(t)?jlt:Ylt,o=e?e():{};return n(t,s,Wu(i),o)}}var wCe=Object.prototype,Qlt=wCe.hasOwnProperty,iQ=$X(function(s,e){s=Object(s);var t=-1,i=e.length,n=i>2?e[2]:void 0;for(n&&eCe(e[0],e[1],n)&&(i=1);++t<i;)for(var o=e[t],r=aCe(o),a=-1,l=r.length;++a<l;){var c=r[a],d=s[c];(d===void 0||ED(d,wCe[c])&&!Qlt.call(s,c))&&(s[c]=o[c])}return s});function Yde(s){return ah(s)&&Hu(s)}var Jlt=200;function ect(s,e,t,i){var n=-1,o=J0e,r=!0,a=s.length,l=[],c=e.length;if(!a)return l;e.length>=Jlt&&(o=JX,r=!1,e=new FS(e));e:for(;++n<a;){var d=s[n],h=d;if(d=d!==0?d:0,r&&h===h){for(var f=c;f--;)if(e[f]===h)continue e;l.push(d)}else o(e,h,i)||l.push(d)}return l}var ZF=$X(function(s,e){return Yde(s)?ect(s,YX(e,1,Yde,!0)):[]});function _0(s){var e=s==null?0:s.length;return e?s[e-1]:void 0}function _r(s,e,t){var i=s==null?0:s.length;return i?(e=e===void 0?1:VF(e),cCe(s,e<0?0:e,i)):[]}function MI(s,e,t){var i=s==null?0:s.length;return i?(e=e===void 0?1:VF(e),e=i-e,cCe(s,0,e<0?0:e)):[]}function tct(s){return typeof s=="function"?s:PS}function zt(s,e){var t=ji(s)?X0e:$0;return t(s,tct(e))}function ict(s,e){for(var t=-1,i=s==null?0:s.length;++t<i;)if(!e(s[t],t,s))return!1;return!0}function nct(s,e){var t=!0;return $0(s,function(i,n,o){return t=!!e(i,n,o),t}),t}function Yd(s,e,t){var i=ji(s)?ict:nct;return i(s,Wu(e))}function yCe(s,e){var t=[];return $0(s,function(i,n,o){e(i,n,o)&&t.push(i)}),t}function dd(s,e){var t=ji(s)?XX:yCe;return t(s,Wu(e))}function sct(s){return function(e,t,i){var n=Object(e);if(!Hu(e)){var o=Wu(t);e=od(e),t=function(a){return o(n[a],a,n)}}var r=s(e,t,i);return r>-1?n[o?e[r]:r]:void 0}}var oct=Math.max;function rct(s,e,t){var i=s==null?0:s.length;if(!i)return-1;var n=t==null?0:VF(t);return n<0&&(n=oct(i+n,0)),Q0e(s,Wu(e),n)}var BS=sct(rct);function lh(s){return s&&s.length?s[0]:void 0}function act(s,e){var t=-1,i=Hu(s)?Array(s.length):[];return $0(s,function(n,o,r){i[++t]=e(n,o,r)}),i}function Lt(s,e){var t=ji(s)?WF:act;return t(s,Wu(e))}function Qc(s,e){return YX(Lt(s,e))}var lct=Object.prototype,cct=lct.hasOwnProperty,dct=Xlt(function(s,e,t){cct.call(s,t)?s[t].push(e):VX(s,t,[e])}),hct=Object.prototype,uct=hct.hasOwnProperty;function fct(s,e){return s!=null&&uct.call(s,e)}function Pt(s,e){return s!=null&&CCe(s,e,fct)}var gct="[object String]";function vl(s){return typeof s=="string"||!ji(s)&&ah(s)&&R_(s)==gct}function pct(s,e){return WF(e,function(t){return s[t]})}function No(s){return s==null?[]:pct(s,od(s))}var mct=Math.max;function Oa(s,e,t,i){s=Hu(s)?s:No(s),t=t?VF(t):0;var n=s.length;return t<0&&(t=mct(n+t,0)),vl(s)?t<=n&&s.indexOf(e,t)>-1:!!n&&WX(s,e,t)>-1}function Xde(s,e,t){var i=s==null?0:s.length;if(!i)return-1;var n=0;return WX(s,e,n)}var _ct="[object Map]",bct="[object Set]",vct=Object.prototype,Cct=vct.hasOwnProperty;function Xn(s){if(s==null)return!0;if(Hu(s)&&(ji(s)||typeof s=="string"||typeof s.splice=="function"||TI(s)||jX(s)||UF(s)))return!s.length;var e=jc(s);if(e==_ct||e==bct)return!s.size;if(ID(s))return!rCe(s).length;for(var t in s)if(Cct.call(s,t))return!1;return!0}var wct="[object RegExp]";function yct(s){return ah(s)&&R_(s)==wct}var Qde=__&&__.isRegExp,$g=Qde?jF(Qde):yct;function Ug(s){return s===void 0}var Sct="Expected a function";function xct(s){if(typeof s!="function")throw new TypeError(Sct);return function(){var e=arguments;switch(e.length){case 0:return!s.call(this);case 1:return!s.call(this,e[0]);case 2:return!s.call(this,e[0],e[1]);case 3:return!s.call(this,e[0],e[1],e[2])}return!s.apply(this,e)}}function Lct(s,e,t,i){if(!sd(s))return s;e=KF(e,s);for(var n=-1,o=e.length,r=o-1,a=s;a!=null&&++n<o;){var l=DD(e[n]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return s;if(n!=r){var d=a[l];c=void 0,c===void 0&&(c=sd(d)?d:zF(e[n+1])?[]:{})}$F(a,l,c),a=a[l]}return s}function kct(s,e,t){for(var i=-1,n=e.length,o={};++i<n;){var r=e[i],a=KX(s,r);t(a,r)&&Lct(o,KF(r,s),a)}return o}function uh(s,e){if(s==null)return{};var t=WF(qrt(s),function(i){return[i]});return e=Wu(e),kct(s,t,function(i,n){return e(i,n[0])})}function Ect(s,e,t,i,n){return n(s,function(o,r,a){t=i?(i=!1,o):e(t,o,r,a)}),t}function uc(s,e,t){var i=ji(s)?Nrt:Ect,n=arguments.length<3;return i(s,Wu(e),t,n,$0)}function YF(s,e){var t=ji(s)?XX:yCe;return t(s,xct(Wu(e)))}function Ict(s,e){var t;return $0(s,function(i,n,o){return t=e(i,n,o),!t}),!!t}function SCe(s,e,t){var i=ji(s)?mCe:Ict;return i(s,Wu(e))}var Dct=1/0,Tct=My&&1/eQ(new My([,-0]))[1]==Dct?function(s){return new My(s)}:Io,Nct=200;function Rct(s,e,t){var i=-1,n=J0e,o=s.length,r=!0,a=[],l=a;if(o>=Nct){var c=Tct(s);if(c)return eQ(c);r=!1,n=JX,l=new FS}else l=a;e:for(;++i<o;){var d=s[i],h=d;if(d=d!==0?d:0,r&&h===h){for(var f=l.length;f--;)if(l[f]===h)continue e;a.push(d)}else n(l,h,t)||(l!==a&&l.push(h),a.push(d))}return a}function nQ(s){return s&&s.length?Rct(s):[]}function LG(s){console&&console.error&&console.error(`Error: ${s}`)}function xCe(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function LCe(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function kCe(s){function e(){}e.prototype=s;const t=new e;function i(){return typeof t.bar}return i(),i(),s}function Mct(s){return Act(s)?s.LABEL:s.name}function Act(s){return vl(s.LABEL)&&s.LABEL!==""}class Vu{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),zt(this.definition,t=>{t.accept(e)})}}class fc extends Vu{constructor(e){super([]),this.idx=1,hc(this,uh(e,t=>t!==void 0))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class gx extends Vu{constructor(e){super(e.definition),this.orgText="",hc(this,uh(e,t=>t!==void 0))}}class Cl extends Vu{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,hc(this,uh(e,t=>t!==void 0))}}class pl extends Vu{constructor(e){super(e.definition),this.idx=1,hc(this,uh(e,t=>t!==void 0))}}class zu extends Vu{constructor(e){super(e.definition),this.idx=1,hc(this,uh(e,t=>t!==void 0))}}class $u extends Vu{constructor(e){super(e.definition),this.idx=1,hc(this,uh(e,t=>t!==void 0))}}class Fo extends Vu{constructor(e){super(e.definition),this.idx=1,hc(this,uh(e,t=>t!==void 0))}}class fh extends Vu{constructor(e){super(e.definition),this.idx=1,hc(this,uh(e,t=>t!==void 0))}}class gh extends Vu{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,hc(this,uh(e,t=>t!==void 0))}}class ks{constructor(e){this.idx=1,hc(this,uh(e,t=>t!==void 0))}accept(e){e.visit(this)}}function Oct(s){return Lt(s,LM)}function LM(s){function e(t){return Lt(t,LM)}if(s instanceof fc){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return vl(s.label)&&(t.label=s.label),t}else{if(s instanceof Cl)return{type:"Alternative",definition:e(s.definition)};if(s instanceof pl)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof zu)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof $u)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:LM(new ks({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof fh)return{type:"RepetitionWithSeparator",idx:s.idx,separator:LM(new ks({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof Fo)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof gh)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof ks){const t={type:"Terminal",name:s.terminalType.name,label:Mct(s.terminalType),idx:s.idx};vl(s.label)&&(t.terminalLabel=s.label);const i=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=$g(i)?i.source:i),t}else{if(s instanceof gx)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}class px{visit(e){const t=e;switch(t.constructor){case fc:return this.visitNonTerminal(t);case Cl:return this.visitAlternative(t);case pl:return this.visitOption(t);case zu:return this.visitRepetitionMandatory(t);case $u:return this.visitRepetitionMandatoryWithSeparator(t);case fh:return this.visitRepetitionWithSeparator(t);case Fo:return this.visitRepetition(t);case gh:return this.visitAlternation(t);case ks:return this.visitTerminal(t);case gx:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Pct(s){return s instanceof Cl||s instanceof pl||s instanceof Fo||s instanceof zu||s instanceof $u||s instanceof fh||s instanceof ks||s instanceof gx}function QP(s,e=[]){return s instanceof pl||s instanceof Fo||s instanceof fh?!0:s instanceof gh?SCe(s.definition,i=>QP(i,e)):s instanceof fc&&Oa(e,s)?!1:s instanceof Vu?(s instanceof fc&&e.push(s),Yd(s.definition,i=>QP(i,e))):!1}function Fct(s){return s instanceof gh}function Jh(s){if(s instanceof fc)return"SUBRULE";if(s instanceof pl)return"OPTION";if(s instanceof gh)return"OR";if(s instanceof zu)return"AT_LEAST_ONE";if(s instanceof $u)return"AT_LEAST_ONE_SEP";if(s instanceof fh)return"MANY_SEP";if(s instanceof Fo)return"MANY";if(s instanceof ks)return"CONSUME";throw Error("non exhaustive match")}class XF{walk(e,t=[]){zt(e.definition,(i,n)=>{const o=_r(e.definition,n+1);if(i instanceof fc)this.walkProdRef(i,o,t);else if(i instanceof ks)this.walkTerminal(i,o,t);else if(i instanceof Cl)this.walkFlat(i,o,t);else if(i instanceof pl)this.walkOption(i,o,t);else if(i instanceof zu)this.walkAtLeastOne(i,o,t);else if(i instanceof $u)this.walkAtLeastOneSep(i,o,t);else if(i instanceof fh)this.walkManySep(i,o,t);else if(i instanceof Fo)this.walkMany(i,o,t);else if(i instanceof gh)this.walkOr(i,o,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,i){}walkProdRef(e,t,i){}walkFlat(e,t,i){const n=t.concat(i);this.walk(e,n)}walkOption(e,t,i){const n=t.concat(i);this.walk(e,n)}walkAtLeastOne(e,t,i){const n=[new pl({definition:e.definition})].concat(t,i);this.walk(e,n)}walkAtLeastOneSep(e,t,i){const n=Jde(e,t,i);this.walk(e,n)}walkMany(e,t,i){const n=[new pl({definition:e.definition})].concat(t,i);this.walk(e,n)}walkManySep(e,t,i){const n=Jde(e,t,i);this.walk(e,n)}walkOr(e,t,i){const n=t.concat(i);zt(e.definition,o=>{const r=new Cl({definition:[o]});this.walk(r,n)})}}function Jde(s,e,t){return[new pl({definition:[new ks({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function ND(s){if(s instanceof fc)return ND(s.referencedRule);if(s instanceof ks)return Wct(s);if(Pct(s))return Bct(s);if(Fct(s))return Hct(s);throw Error("non exhaustive match")}function Bct(s){let e=[];const t=s.definition;let i=0,n=t.length>i,o,r=!0;for(;n&&r;)o=t[i],r=QP(o),e=e.concat(ND(o)),i=i+1,n=t.length>i;return nQ(e)}function Hct(s){const e=Lt(s.definition,t=>ND(t));return nQ(Zd(e))}function Wct(s){return[s.terminalType]}const ECe="_~IN~_";class Vct extends XF{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,i){}walkProdRef(e,t,i){const n=$ct(e.referencedRule,e.idx)+this.topProd.name,o=t.concat(i),r=new Cl({definition:o}),a=ND(r);this.follows[n]=a}}function zct(s){const e={};return zt(s,t=>{const i=new Vct(t).startWalking();hc(e,i)}),e}function $ct(s,e){return s.name+e+ECe}function jt(s){return s.charCodeAt(0)}function QB(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function KL(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function rw(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function Uct(){throw Error("Internal Error - Should never get here!")}function ehe(s){return s.type==="Character"}const JP=[];for(let s=jt("0");s<=jt("9");s++)JP.push(s);const e4=[jt("_")].concat(JP);for(let s=jt("a");s<=jt("z");s++)e4.push(s);for(let s=jt("A");s<=jt("Z");s++)e4.push(s);const the=[jt(" "),jt("\f"),jt(`
|
|
915
915
|
`),jt("\r"),jt(" "),jt("\v"),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt(" "),jt("\u2028"),jt("\u2029"),jt(" "),jt(" "),jt(" "),jt("\uFEFF")],jct=/[0-9a-fA-F]/,DR=/[0-9]/,qct=/[1-9]/;class Gct{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const i={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":KL(i,"global");break;case"i":KL(i,"ignoreCase");break;case"m":KL(i,"multiLine");break;case"u":KL(i,"unicode");break;case"y":KL(i,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}rw(t);const i=this.disjunction();return this.consumeChar(")"),{type:t,value:i,loc:this.loc(e)}}return Uct()}quantifier(e=!1){let t;const i=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let o;this.isDigit()?(o=this.integerIncludingZero(),t={atLeast:n,atMost:o}):t={atLeast:n,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;rw(t);break}if(!(e===!0&&t===void 0)&&rw(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(i),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),rw(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[jt(`
|
|
@@ -1064,7 +1064,7 @@ ${y2.errors.map(n=>n.message).join(`
|
|
|
1064
1064
|
Components and layouts cannot reference each other in a cycle.`)}}var Wmt={mobile:{name:"iPhone SE",width:375,minHeight:812,category:"mobile",description:"iPhone SE (baseline mobile viewport)"},tablet:{name:"Tablet Portrait",width:768,minHeight:1024,category:"tablet",description:"Tablet portrait viewport baseline"},desktop:{name:"Desktop HD",width:1280,minHeight:720,category:"desktop",description:"Standard desktop viewport"},print:{name:"Print A4",width:794,minHeight:1123,category:"print",description:"A4 portrait at 96 DPI"},"mobile-landscape":{name:"Mobile Landscape",width:812,minHeight:375,category:"mobile",description:"Mobile landscape viewport"},"mobile-min":{name:"Mobile Minimum",width:375,minHeight:375,category:"mobile",description:"Mobile minimum viewport"},"desktop-min":{name:"Desktop Minimum",width:1280,minHeight:640,category:"desktop",description:"Desktop minimum viewport"},"tablet-landscape":{name:"Tablet Landscape",width:1024,minHeight:768,category:"tablet",description:"Tablet landscape viewport"},"tablet-min":{name:"Tablet Minimum",width:768,minHeight:384,category:"tablet",description:"Tablet minimum viewport"},"print-landscape":{name:"Print A4 Landscape",width:1123,minHeight:794,category:"print",description:"A4 landscape at 96 DPI"}};function Ghe(s){const e=Wmt[s.toLowerCase()];return e?{width:e.width,minHeight:e.minHeight}:{width:1280,minHeight:720}}var Vmt=ic({density:nu(["compact","normal","comfortable"]),spacing:nu(["xs","sm","md","lg","xl"]),radius:nu(["none","sm","md","lg","full"]),stroke:nu(["thin","normal","thick"]),font:nu(["sm","base","lg"]),background:Zi().optional(),theme:Zi().optional(),device:Zi().optional()}),bQ=ic({padding:Zi().optional(),gap:Zi().optional(),justify:nu(["start","center","end","stretch","spaceBetween","spaceAround"]).optional(),align:nu(["start","center","end"]).optional(),background:Zi().optional()}),vQ=ic({source:Zi().optional(),nodeId:Zi().optional()}),zmt=ic({id:Zi(),kind:_Q("container"),containerType:nu(["stack","grid","split","panel","card"]),params:Oy(Zi(),r6([Zi(),FI()])),children:mQ(ic({ref:Zi()})),style:bQ,meta:vQ}),$mt=ic({id:Zi(),kind:_Q("component"),componentType:Zi(),props:Oy(Zi(),r6([Zi(),FI()])),style:bQ,meta:vQ}),Umt=ic({id:Zi(),kind:_Q("instance"),definitionName:Zi(),definitionKind:nu(["component","layout"]),invocationProps:Oy(Zi(),r6([Zi(),FI()])),expandedRoot:ic({ref:Zi()}),style:bQ,meta:vQ}),jmt=nmt("kind",[zmt,$mt,Umt]),qmt=ic({id:Zi(),name:Zi(),viewport:ic({width:FI(),height:FI()}),background:Zi().optional(),root:ic({ref:Zi()})}),Gmt=ic({id:Zi(),name:Zi(),style:Vmt,mocks:Oy(Zi(),FG()),colors:Oy(Zi(),Zi()),screens:mQ(qmt),nodes:Oy(Zi(),jmt)}),Kmt=ic({irVersion:Zi(),project:Gmt}),Zmt=class{constructor(){this.counters=new Map}generate(s){const t=(this.counters.get(s)||0)+1;return this.counters.set(s,t),`${s}_${t}`}reset(){this.counters.clear()}},Ymt=class{constructor(){this.idGen=new Zmt,this.nodes={},this.definedComponents=new Map,this.definedLayouts=new Map,this.definedComponentIndices=new Map,this.undefinedComponentsUsed=new Set,this.warnings=[],this.errors=[],this.style={density:"normal",spacing:"md",radius:"md",stroke:"normal",font:"base"}}generate(s){this.idGen.reset(),this.nodes={},this.definedComponents.clear(),this.definedLayouts.clear(),this.definedComponentIndices.clear(),this.undefinedComponentsUsed.clear(),this.warnings=[],this.errors=[],s.definedComponents&&s.definedComponents.length>0&&s.definedComponents.forEach((n,o)=>{this.definedComponents.set(n.name,n),this.definedComponentIndices.set(n.name,o)}),s.definedLayouts&&s.definedLayouts.length>0&&s.definedLayouts.forEach(n=>{this.definedLayouts.set(n.name,n)}),this.applyStyle(s.style);const e=s.screens.map((n,o)=>this.convertScreen(n,o));if(this.undefinedComponentsUsed.size>0){const n=Array.from(this.undefinedComponentsUsed).sort();throw new Error(`Components used but not defined: ${n.join(", ")}
|
|
1065
1065
|
Define these components with: define Component "Name" { ... }`)}if(this.errors.length>0){const n=this.errors.map(o=>`- [${o.type}] ${o.message}`).join(`
|
|
1066
1066
|
`);throw new Error(`IR generation failed with semantic errors:
|
|
1067
|
-
${n}`)}const i={irVersion:"1.0",project:{id:this.sanitizeId(s.name),name:s.name,style:this.style,mocks:s.mocks||{},colors:s.colors||{},screens:e,nodes:this.nodes}};return Kmt.parse(i)}applyStyle(s){s.density&&(this.style.density=s.density),s.spacing&&(this.style.spacing=s.spacing),s.radius&&(this.style.radius=s.radius),s.stroke&&(this.style.stroke=s.stroke),s.font&&(this.style.font=s.font),s.background&&(this.style.background=s.background),s.theme&&(this.style.theme=s.theme),s.device&&(this.style.device=s.device)}convertScreen(s,e){const t=this.convertLayout(s.layout),i=this.style.device?Ghe(this.style.device):Ghe("desktop"),n={id:this.sanitizeId(s.name),name:s.name,viewport:{width:i.width,height:i.minHeight},root:{ref:t}};return s.params.background?n.background=String(s.params.background):this.style.background&&(n.background=this.style.background),n}validateComponentOrder(s){if(!s.definedComponents||s.definedComponents.length===0)return;const e=new Set(s.definedComponents.map(t=>t.name));s.screens.forEach(t=>{this.findComponentsInLayout(t.layout).forEach(({componentType:n})=>{e.has(n)&&(this.definedComponentIndices.get(n),s.screens.indexOf(t),this.warnings.push({type:"component-order",message:`Component "${n}" is used in screen "${t.name}". Consider defining "${n}" before this screen for better code clarity.`}))})}),this.warnings.length>0&&this.warnings.forEach(t=>{console.warn(`⚠️ [${t.type.toUpperCase()}] ${t.message}`)})}findComponentsInLayout(s,e=[]){return s.children&&s.children.length>0&&s.children.forEach(t=>{t.type==="component"?e.push({componentType:t.componentType,location:"layout"}):t.type==="layout"?this.findComponentsInLayout(t,e):t.type==="cell"&&t.children&&t.children.forEach(i=>{i.type==="component"?e.push({componentType:i.componentType,location:"cell"}):i.type==="layout"&&this.findComponentsInLayout(i,e)})}),e}getWarnings(){return this.warnings}convertLayout(s,e){let t=this.resolveLayoutParams(s.layoutType,s.params,e);s.layoutType==="split"&&(t=this.normalizeSplitParams(t));const i=s.children,n=this.definedLayouts.get(s.layoutType);if(n)return this.expandDefinedLayout(n,t,i,e,s._meta?.nodeId);const o=this.idGen.generate("node"),r=[];for(const c of i)if(c.type==="layout"){const d=this.convertLayout(c,e);d&&r.push({ref:d})}else if(c.type==="component"){const d=this.convertComponent(c,e);d&&r.push({ref:d})}else if(c.type==="cell"){const d=this.convertCell(c,e);d&&r.push({ref:d})}const a={};t.padding!==void 0?a.padding=String(t.padding):a.padding="none",t.gap!==void 0&&(a.gap=String(t.gap)),t.justify!==void 0&&(a.justify=t.justify),t.align!==void 0&&(a.align=t.align),t.background!==void 0&&(a.background=String(t.background));const l={id:o,kind:"container",containerType:s.layoutType,params:this.cleanParams(t),children:r,style:a,meta:{nodeId:e?.instanceScope?`${s._meta?.nodeId}@${e.instanceScope}`:s._meta?.nodeId}};return this.nodes[o]=l,o}convertCell(s,e){const t=this.idGen.generate("node"),i=[];for(const o of s.children)if(o.type==="layout"){const r=this.convertLayout(o,e);r&&i.push({ref:r})}else if(o.type==="component"){const r=this.convertComponent(o,e);r&&i.push({ref:r})}const n={id:t,kind:"container",containerType:"stack",params:s.props,children:i,style:{padding:"none"},meta:{source:"cell",nodeId:e?.instanceScope?`${s._meta?.nodeId}@${e.instanceScope}`:s._meta?.nodeId}};return this.nodes[t]=n,t}convertComponent(s,e){if(s.componentType==="Children")return e?.allowChildrenSlot?e.childrenSlot?this.convertASTNode(e.childrenSlot,e):(this.errors.push({type:"children-slot-missing-child",message:`Layout "${e.definitionName}" requires exactly one child for "Children".`}),null):(this.errors.push({type:"children-slot-outside-layout-definition",message:'"Children" placeholder can only be used inside a define Layout body.'}),null);const t=this.resolveComponentProps(s.componentType,s.props,e),i=this.definedComponents.get(s.componentType);if(i)return this.expandDefinedComponent(i,t,s._meta?.nodeId,e);new Set(["Button","Input","Heading","Text","Label","Paragraph","Image","Card","Stat","Topbar","Table","Chart","Textarea","Select","Checkbox","Toggle","Divider","Breadcrumbs","SidebarMenu","Radio","Icon","IconButton","Alert","Badge","Modal","List","Sidebar","Tabs","Code","Link","Separate"]).has(s.componentType)||this.undefinedComponentsUsed.add(s.componentType);const o=this.idGen.generate("node"),r={id:o,kind:"component",componentType:s.componentType,props:t,style:{},meta:{nodeId:e?.instanceScope?`${s._meta?.nodeId}@${e.instanceScope}`:s._meta?.nodeId}};return this.nodes[o]=r,o}expandDefinedComponent(s,e,t,i){const n={args:e,providedArgNames:new Set(Object.keys(e)),usedArgNames:new Set,definitionName:s.name,definitionKind:"component",allowChildrenSlot:!1,instanceScope:t};let o=null;if(s.body.type==="layout")o=this.convertLayout(s.body,n);else if(s.body.type==="component")o=this.convertComponent(s.body,n);else throw new Error(`Invalid defined component body type for "${s.name}"`);if(this.reportUnusedArguments(n),!o)return null;const r=this.idGen.generate("node"),a={id:r,kind:"instance",definitionName:s.name,definitionKind:"component",invocationProps:e,expandedRoot:{ref:o},style:{},meta:{nodeId:t}};return this.nodes[r]=a,r}expandDefinedLayout(s,e,t,i,n){t.length!==1&&this.errors.push({type:"layout-children-arity",message:`Layout "${s.name}" expects exactly one child, received ${t.length}.`});const o=t[0],r=o?this.resolveChildrenSlot(o,i):void 0,a={args:e,providedArgNames:new Set(Object.keys(e)),usedArgNames:new Set,definitionName:s.name,definitionKind:"layout",allowChildrenSlot:!0,childrenSlot:r,instanceScope:n},l=this.convertLayout(s.body,a);if(this.reportUnusedArguments(a),!n)return l;const c=this.idGen.generate("node"),d={id:c,kind:"instance",definitionName:s.name,definitionKind:"layout",invocationProps:e,expandedRoot:{ref:l},style:{},meta:{nodeId:n}};return this.nodes[c]=d,c}resolveChildrenSlot(s,e){if(s.type==="component"&&s.componentType==="Children"){if(e?.allowChildrenSlot)return e.childrenSlot;this.errors.push({type:"children-slot-outside-layout-definition",message:'"Children" placeholder forwarding is only valid inside define Layout bodies.'});return}return s}convertASTNode(s,e){return s.type==="layout"?this.convertLayout(s,e):s.type==="component"?this.convertComponent(s,e):this.convertCell(s,e)}resolveLayoutParams(s,e,t){const i={};for(const[n,o]of Object.entries(e)){const r=this.resolveBindingValue(o,t,"layout-parameter",s,n);if(r!==void 0){if(typeof o=="string"&&o.startsWith("prop_")){const c=AI[s]?.properties?.[n];if(c?.type==="enum"&&Array.isArray(c.options)){const d=String(r);c.options.includes(d)||this.warnings.push({type:"invalid-bound-enum-value",message:`Invalid value "${d}" for parameter "${n}" in layout "${s}". Expected one of: ${c.options.join(", ")}.`})}}i[n]=r}}return i}normalizeSplitParams(s){const e={...s};e.sidebar!==void 0&&e.left===void 0&&e.right===void 0&&(e.left=e.sidebar,this.warnings.push({type:"split-sidebar-deprecated",message:'Split parameter "sidebar" is deprecated. Use "left" or "right".'})),delete e.sidebar;const t=e.left!==void 0,i=e.right!==void 0;if(t&&i&&(delete e.right,this.warnings.push({type:"split-side-conflict",message:'Split layout received both "left" and "right"; keeping "left".'})),!t&&!i&&(e.left=250,this.warnings.push({type:"split-side-missing",message:'Split layout missing both "left" and "right"; defaulting to left: 250.'})),e.left!==void 0){const n=Number(e.left);(!Number.isFinite(n)||n<=0)&&(e.left=250,this.warnings.push({type:"split-left-invalid",message:'Split "left" must be a positive number. Falling back to 250.'}))}if(e.right!==void 0){const n=Number(e.right);(!Number.isFinite(n)||n<=0)&&(e.right=250,this.warnings.push({type:"split-right-invalid",message:'Split "right" must be a positive number. Falling back to 250.'}))}return e}resolveComponentProps(s,e,t){const i={};for(const[n,o]of Object.entries(e)){const r=this.resolveBindingValue(o,t,"component-property",s,n);if(r!==void 0){if(typeof o=="string"&&o.startsWith("prop_")){const c=Sg[s]?.properties?.[n];if(c?.type==="enum"&&Array.isArray(c.options)){const d=String(r);c.options.includes(d)||this.warnings.push({type:"invalid-bound-enum-value",message:`Invalid value "${d}" for property "${n}" in component "${s}". Expected one of: ${c.options.join(", ")}.`})}}i[n]=r}}return i}resolveBindingValue(s,e,t,i,n){if(typeof s!="string"||!s.startsWith("prop_"))return s;const o=s.slice(5);if(!e)return s;if(Object.prototype.hasOwnProperty.call(e.args,o))return e.usedArgNames.add(o),e.args[o];const r=this.isBindingTargetRequired(t,i,n),a=t==="component-property"?"property":"parameter",l=`Missing required bound ${a} "${n}" for ${t==="component-property"?"component":"layout"} "${i}" in ${e.definitionKind} "${e.definitionName}" (expected arg "${o}").`;r?this.errors.push({type:"missing-required-bound-value",message:l}):this.warnings.push({type:"missing-bound-value",message:`Optional ${a} "${n}" in ${t==="component-property"?"component":"layout"} "${i}" was omitted because arg "${o}" was not provided while expanding ${e.definitionKind} "${e.definitionName}".`})}isBindingTargetRequired(s,e,t){if(s==="component-property"){const l=Sg[e]?.properties?.[t];return l?l.required===!0&&l.defaultValue===void 0:!1}const i=AI[e];if(!i)return!1;const n=i.properties?.[t],o=n?.required===!0&&n.defaultValue===void 0,r=(i.requiredProperties||[]).includes(t);return o||r}reportUnusedArguments(s){for(const e of s.providedArgNames)s.usedArgNames.has(e)||this.warnings.push({type:"unused-definition-argument",message:`Argument "${e}" is not used by ${s.definitionKind} "${s.definitionName}".`})}cleanParams(s){const e={};for(const[t,i]of Object.entries(s))["padding","gap","align","justify"].includes(t)||(e[t]=i);return e}sanitizeId(s){return s.toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_]/g,"")}};function Xmt(s){return new Ymt().generate(s)}var _w={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Khe={compact:.8,normal:1,comfortable:1.25};function vk(s,e="md",t="normal",i=!1){if(!s){const r=_w[e]??_w.md;return i?Math.round(r*Khe[t]):r}const n=_w[s],o=n!==void 0?n:_w[e]??_w.md;return i?Math.round(o*Khe[t]):o}var Zhe={compact:{xs:10,sm:12,md:16,lg:20,xl:28},normal:{xs:12,sm:14,md:18,lg:24,xl:32},comfortable:{xs:14,sm:16,md:20,lg:28,xl:36}},Yhe={compact:{xs:16,sm:20,md:24,lg:32,xl:40},normal:{xs:20,sm:24,md:32,lg:40,xl:48},comfortable:{xs:24,sm:28,md:40,lg:48,xl:56}},Xhe={compact:{xs:24,sm:28,md:32,lg:36,xl:44},normal:{xs:28,sm:36,md:40,lg:48,xl:56},comfortable:{xs:32,sm:40,md:48,lg:56,xl:64}},Qhe={compact:{xs:24,sm:28,md:32,lg:36,xl:44},normal:{xs:28,sm:36,md:40,lg:48,xl:56},comfortable:{xs:32,sm:40,md:48,lg:56,xl:64}},Jhe={compact:{none:0,xs:4,sm:8,md:10,lg:14,xl:18},normal:{none:0,xs:6,sm:10,md:14,lg:18,xl:24},comfortable:{none:0,xs:8,sm:12,md:16,lg:22,xl:28}};function Jwe(s,e="normal"){const t=Zhe[e]||Zhe.normal;return t[s||"md"]||t.md}function eye(s,e="normal"){const t=Yhe[e]||Yhe.normal;return t[s||"md"]||t.md}function Qmt(s,e="normal"){const t=Xhe[e]||Xhe.normal;return t[s||"md"]||t.md}function TM(s,e="normal"){const t=Qhe[e]||Qhe.normal;return t[s||"md"]||t.md}function d4(s,e="normal"){const t=Jhe[e]||Jhe.normal;return t[s||"md"]??t.md}var Jmt="h2",e_t={h1:1.4,h2:1,h3:.85,h4:.75,h5:.65,h6:.55},t_t={h1:700,h2:650,h3:620,h4:600,h5:600,h6:600};function i_t(s,e=Jmt){if(typeof s!="string")return e;const t=s.trim().toLowerCase();return t==="h1"?"h1":t==="h2"?"h2":t==="h3"?"h3":t==="h4"?"h4":t==="h5"?"h5":t==="h6"?"h6":e}function tye(s,e,t){const i=i_t(t),n=e_t[i],o=t_t[i];return{level:i,fontSize:Math.max(10,Math.round(s*n)),fontWeight:Math.max(e,o),lineHeight:1.25}}function iye(s,e){if(s==null||s==="")return null;if(typeof s=="number"&&Number.isFinite(s))return Math.max(0,s);if(typeof s!="string")return null;const t=s.trim().toLowerCase();if(!t)return null;const i=Number(t);return!Number.isNaN(i)&&Number.isFinite(i)?Math.max(0,i):t in _w?vk(t,"sm",e,!0):null}var eue={compact:32,normal:40,comfortable:48},n_t=class{constructor(s){this.result={},this.parentContainerTypes=new Map,this.ir=s,this.nodes=s.project.nodes,this.style=s.project.style,this.viewport=s.project.screens[0]?.viewport||{width:1280,height:720}}calculate(){this.result={};for(const s of this.ir.project.screens){const e=s.root.ref;e&&this.calculateNode(e,0,0,this.viewport.width,this.viewport.height)}return this.result}calculateNode(s,e,t,i,n,o){const r=this.nodes[s];r&&(o&&r.kind==="container"&&this.parentContainerTypes.set(s,o),r.kind==="container"?this.calculateContainer(r,s,e,t,i,n):r.kind==="instance"?this.calculateInstance(r,s,e,t,i,n,o):this.calculateComponent(r,s,e,t,i,n))}calculateContainer(s,e,t,i,n,o){if(s.kind!=="container")return;const a=s.containerType!=="card"?this.resolveSpacing(s.style.padding):0,l=t+a,c=i+a,d=n-a*2,h=s.params.direction||"vertical",f=s.containerType==="stack"&&h==="vertical",p=f?o:o-a*2;switch(this.result[e]={x:t,y:i,width:n,height:o},s.containerType){case"stack":this.calculateStack(s,l,c,d,p);break;case"grid":this.calculateGrid(s,l,c,d,p);break;case"split":this.calculateSplit(s,l,c,d,p);break;case"panel":this.calculatePanel(s,l,c,d,p);break;case"card":this.calculateCard(s,l,c,d,p);break}if((f||s.containerType==="card")&&s.children.length>0){let m=i;s.children.forEach(y=>{const S=this.result[y.ref];S&&(m=Math.max(m,S.y+S.height))});const _=s.containerType==="card"?this.resolveSpacing(s.style.padding):a,C=m-i+_;this.result[e].height=C}}calculateStack(s,e,t,i,n){if(s.kind!=="container")return;const o=s.params.direction||"vertical",r=this.resolveSpacing(s.style.gap),a=s.children;if(o==="vertical"){let l=t;a.forEach((d,h)=>{const f=this.nodes[d.ref];let p=this.getComponentHeight();f?.kind==="component"&&f.props.height?p=Number(f.props.height):f?.kind==="container"?p=this.calculateContainerHeight(f,i):f?.kind==="component"&&(p=this.getIntrinsicComponentHeight(f,i)),this.calculateNode(d.ref,e,l,i,p,"stack"),l+=p,h<a.length-1&&(l+=r)});let c=t;a.forEach((d,h)=>{const f=this.result[d.ref];if(f){const p=c-f.y;f.y=c,p!==0&&this.adjustNodeYPositions(d.ref,p),c+=f.height,h<a.length-1&&(c+=r)}})}else{const l=s.style.justify||"stretch",c=s.style.align||"start";if(l==="stretch"){let d=e;const h=this.calculateChildWidth(a.length,i,r);let f=0;a.forEach(p=>{const m=this.nodes[p.ref];let _=this.getComponentHeight();m?.kind==="component"&&m.props.height?_=Number(m.props.height):m?.kind==="container"?_=this.calculateContainerHeight(m,h):m?.kind==="component"&&(_=this.getIntrinsicComponentHeight(m,h)),f=Math.max(f,_)}),a.forEach(p=>{this.calculateNode(p.ref,d,t,h,f,"stack"),d+=h+r})}else{const d=[],h=[],f=[],p=new Set;let m=0;a.forEach((E,D)=>{const T=this.nodes[E.ref],R=T?.kind==="component"&&!!T.props.height,A=T?.kind==="component"&&!!T.props.width,H=T?.kind==="component"&&T.componentType==="Button"&&!A&&this.parseBooleanProp(T.props.block,!1),z=!A&&T?.kind==="container"&&!this.containerHasIntrinsicWidth(T);let V;H||z?(V=0,p.add(D)):A?V=Number(T.props.width):V=this.getIntrinsicWidth(T,i),d.push(V),h.push(this.getComponentHeight()),f.push(R)});const _=r*Math.max(0,a.length-1);if(p.size>0){const E=d.reduce((R,A,H)=>p.has(H)?R:R+A,0),D=i-_-E,T=Math.max(1,D/p.size);p.forEach(R=>{d[R]=T})}a.forEach((E,D)=>{const T=this.nodes[E.ref],R=d[D];let A=this.getComponentHeight();f[D]&&T?.kind==="component"?A=Number(T.props.height):T?.kind==="container"?A=this.calculateContainerHeight(T,R):T?.kind==="component"&&(A=this.getIntrinsicComponentHeight(T,R)),h[D]=A,m=Math.max(m,A)});const C=d.reduce((E,D)=>E+D,0),y=C+_;let S=e,L=r;if(l==="center")S=e+(i-y)/2;else if(l==="end")S=e+i-y;else if(l==="spaceBetween")S=e,L=a.length>1?(i-C)/(a.length-1):0;else if(l==="spaceAround"){const E=a.length>0?(i-C)/a.length:0;S=e+E/2,L=E}let x=S;a.forEach((E,D)=>{const T=d[D],R=h[D];let A=t;c==="center"?A=t+Math.round((m-R)/2):c==="end"&&(A=t+m-R),this.calculateNode(E.ref,x,A,T,R,"stack"),x+=T+L})}}}calculateContainerHeight(s,e){if(s.kind!=="container")return this.getComponentHeight();const t=this.resolveSpacing(s.style.gap);let n=this.resolveSpacing(s.style.padding)*2;const o=40;if(s.children.length===0)return Math.max(n,o);if(s.containerType==="grid"){const a=Number(s.params.columns)||12,l=(e-t*(a-1))/a;let c=0,d=0,h=0;const f=[0];s.children.forEach(p=>{const m=this.nodes[p.ref];let _=1,C=this.getComponentHeight();m?.kind==="container"&&m.meta?.source==="cell"&&(_=Number(m.params.span)||1);const y=l*_+t*(_-1);m?.kind==="component"?m.props.height?C=Number(m.props.height):C=this.getIntrinsicComponentHeight(m,y):m?.kind==="container"&&(C=this.calculateContainerHeight(m,y)),d+_>a&&(f[c]=h,c++,d=0,h=0),h=Math.max(h,C),d+=_}),f[c]=h;for(let p=0;p<=c;p++)n+=f[p],p<c&&(n+=t);return n}if(s.containerType==="split"){const a=this.resolveSpacing(s.style.gap),l=s.params.left,c=s.params.right,d=Number(l),h=Number(c),f=l!==void 0,p=c!==void 0,m=Number.isFinite(d)&&d>0?d:e/2,_=Number.isFinite(h)&&h>0?h:e/2;let C=0;return s.children.forEach((y,S)=>{const L=this.nodes[y.ref];let x=this.getComponentHeight();const E=S===0;let D;s.children.length>=2?p&&!f?D=E?Math.max(1,e-_-a):_:D=E?m:Math.max(1,e-m-a):D=e,L?.kind==="component"?x=L.props.height?Number(L.props.height):this.getIntrinsicComponentHeight(L,D):L?.kind==="container"&&(x=this.calculateContainerHeight(L,D)),C=Math.max(C,x)}),n+=C,n}const r=s.params.direction||"vertical";if(s.containerType==="stack"&&r==="horizontal"){let a=0;return s.children.forEach(l=>{const c=this.nodes[l.ref];let d=this.getComponentHeight();c?.kind==="component"?c.props.height?d=Number(c.props.height):d=this.getIntrinsicComponentHeight(c,e):c?.kind==="container"&&(d=this.calculateContainerHeight(c,e)),a=Math.max(a,d)}),n+=a,n}return s.children.forEach((a,l)=>{const c=this.nodes[a.ref];let d=this.getComponentHeight();c?.kind==="component"?c.props.height?d=Number(c.props.height):d=this.getIntrinsicComponentHeight(c,e):c?.kind==="container"&&(d=this.calculateContainerHeight(c,e)),n+=d,l<s.children.length-1&&(n+=t)}),n}calculateGrid(s,e,t,i,n){if(s.kind!=="container")return;const o=Number(s.params.columns)||12,r=this.resolveSpacing(s.style.gap),a=(i-r*(o-1))/o,l={};s.children.forEach((C,y)=>{const S=this.nodes[C.ref];let L=this.getComponentHeight(),x=1;S?.kind==="container"&&S.meta?.source==="cell"&&(x=Number(S.params.span)||1);const E=a*x+r*(x-1);S?.kind==="container"?L=this.calculateContainerHeight(S,E):S?.kind==="component"&&(S.props.height?L=Number(S.props.height):L=this.getIntrinsicComponentHeight(S,E)),l[y]=L});let c=0,d=0,h=0;const f=[0],p=[];s.children.forEach((C,y)=>{const S=this.nodes[C.ref];let L=1;S?.kind==="container"&&S.meta?.source==="cell"&&(L=Number(S.params.span)||1),d+L>o&&(f[c]=h,c++,d=0,h=0),p.push({row:c,col:d,span:L}),h=Math.max(h,l[y]),d+=L}),f[c]=h,s.children.forEach((C,y)=>{const{row:S,col:L,span:x}=p[y],E=f[S];let D=t;for(let A=0;A<S;A++)D+=f[A]+r;const T=a*x+r*(x-1),R=e+L*(a+r);this.calculateNode(C.ref,R,D,T,E,"grid")});const m=[...f];s.children.forEach((C,y)=>{const{row:S}=p[y],L=this.result[C.ref];L&&(m[S]=Math.max(m[S],L.height))});const _=[0];for(let C=1;C<m.length;C++)_[C]=_[C-1]+(m[C-1]-f[C-1]);s.children.forEach((C,y)=>{const{row:S}=p[y],L=_[S]||0;if(L===0)return;const x=this.result[C.ref];x&&(x.y+=L,this.adjustNodeYPositions(C.ref,L))})}calculateSplit(s,e,t,i,n){if(s.kind!=="container")return;const o=this.resolveSpacing(s.style.gap),r=s.params.left,a=s.params.right,l=Number(r),c=Number(a),d=r!==void 0,h=a!==void 0,f=Number.isFinite(l)&&l>0?l:250,p=Number.isFinite(c)&&c>0?c:250;if(s.children.length===1)this.calculateNode(s.children[0].ref,e,t,i,n,"split");else if(s.children.length>=2)if(h&&!d){const m=Math.max(1,i-p-o),_=e+m+o;this.calculateNode(s.children[0].ref,e,t,m,n,"split"),this.calculateNode(s.children[1].ref,_,t,p,n,"split")}else{const m=Math.max(1,i-f-o),_=e+f+o;this.calculateNode(s.children[0].ref,e,t,f,n,"split"),this.calculateNode(s.children[1].ref,_,t,m,n,"split")}}calculatePanel(s,e,t,i,n){if(s.kind!=="container"||s.children.length===0)return;const o=s.children[0];this.calculateNode(o.ref,e,t,i,n,"panel")}calculateCard(s,e,t,i,n){if(s.kind!=="container"||s.children.length===0)return;const o=this.resolveSpacing(s.style.padding),r=this.resolveSpacing(s.style.gap),a=i-o*2,l=s.children;let c=t+o;l.forEach((d,h)=>{const f=this.nodes[d.ref];let p=this.getComponentHeight();f?.kind==="component"&&f.props.height?p=Number(f.props.height):f?.kind==="container"?p=this.calculateContainerHeight(f,a):f?.kind==="component"&&(p=this.getIntrinsicComponentHeight(f,a)),this.calculateNode(d.ref,e+o,c,a,p,"card"),c+=p,h<l.length-1&&(c+=r)})}calculateInstance(s,e,t,i,n,o,r){const a=s.expandedRoot.ref;this.calculateNode(a,t,i,n,o,r);const l=this.result[a];l&&(this.result[e]={...l})}calculateComponent(s,e,t,i,n,o){if(s.kind!=="component")return;const r=Number(s.props.width)||n,a=Number(s.props.height)||this.getIntrinsicComponentHeight(s,r);this.result[e]={x:t,y:i,width:r,height:a}}resolveSpacing(s){return vk(s,this.style.spacing||"md",this.style.density||"normal",!0)}getSeparateSize(s){if(s.kind!=="component")return vk("md","md",this.style.density||"normal",!0);const e=s.props.size;return typeof e=="number"&&!isNaN(e)?e:vk(e?String(e):"md","md",this.style.density||"normal",!0)}getComponentHeight(){return eue[this.style.density]||eue.normal}getTextMetricsForDensity(){switch(this.style.density){case"compact":return{fontSize:12,lineHeight:1.4};case"comfortable":return{fontSize:16,lineHeight:1.6};default:return{fontSize:14,lineHeight:1.5}}}getButtonMetricsForDensity(){switch(this.style.density){case"compact":return{fontSize:12,paddingX:12};case"normal":return{fontSize:14,paddingX:18};case"comfortable":return{fontSize:16,paddingX:24};default:return{fontSize:14,paddingX:18}}}getHeadingMetricsForDensity(s){let e;switch(this.style.density){case"compact":e=16;break;case"comfortable":e=24;break;default:e=20;break}const t=tye(e,600,s);return{fontSize:t.fontSize,lineHeight:t.lineHeight}}wrapTextToLines(s,e,t){const n=s.replace(/\r\n/g,`
|
|
1067
|
+
${n}`)}const i={irVersion:"1.0",project:{id:this.sanitizeId(s.name),name:s.name,style:this.style,mocks:s.mocks||{},colors:s.colors||{},screens:e,nodes:this.nodes}};return Kmt.parse(i)}applyStyle(s){s.density&&(this.style.density=s.density),s.spacing&&(this.style.spacing=s.spacing),s.radius&&(this.style.radius=s.radius),s.stroke&&(this.style.stroke=s.stroke),s.font&&(this.style.font=s.font),s.background&&(this.style.background=s.background),s.theme&&(this.style.theme=s.theme),s.device&&(this.style.device=s.device)}convertScreen(s,e){const t=this.convertLayout(s.layout),i=this.style.device?Ghe(this.style.device):Ghe("desktop"),n={id:this.sanitizeId(s.name),name:s.name,viewport:{width:i.width,height:i.minHeight},root:{ref:t}};return s.params.background?n.background=String(s.params.background):this.style.background&&(n.background=this.style.background),n}validateComponentOrder(s){if(!s.definedComponents||s.definedComponents.length===0)return;const e=new Set(s.definedComponents.map(t=>t.name));s.screens.forEach(t=>{this.findComponentsInLayout(t.layout).forEach(({componentType:n})=>{e.has(n)&&(this.definedComponentIndices.get(n),s.screens.indexOf(t),this.warnings.push({type:"component-order",message:`Component "${n}" is used in screen "${t.name}". Consider defining "${n}" before this screen for better code clarity.`}))})}),this.warnings.length>0&&this.warnings.forEach(t=>{console.warn(`⚠️ [${t.type.toUpperCase()}] ${t.message}`)})}findComponentsInLayout(s,e=[]){return s.children&&s.children.length>0&&s.children.forEach(t=>{t.type==="component"?e.push({componentType:t.componentType,location:"layout"}):t.type==="layout"?this.findComponentsInLayout(t,e):t.type==="cell"&&t.children&&t.children.forEach(i=>{i.type==="component"?e.push({componentType:i.componentType,location:"cell"}):i.type==="layout"&&this.findComponentsInLayout(i,e)})}),e}getWarnings(){return this.warnings}convertLayout(s,e){let t=this.resolveLayoutParams(s.layoutType,s.params,e);s.layoutType==="split"&&(t=this.normalizeSplitParams(t));const i=s.children,n=this.definedLayouts.get(s.layoutType);if(n)return this.expandDefinedLayout(n,t,i,e,s._meta?.nodeId);const o=this.idGen.generate("node"),r=[];for(const c of i)if(c.type==="layout"){const d=this.convertLayout(c,e);d&&r.push({ref:d})}else if(c.type==="component"){const d=this.convertComponent(c,e);d&&r.push({ref:d})}else if(c.type==="cell"){const d=this.convertCell(c,e);d&&r.push({ref:d})}const a={};t.padding!==void 0?a.padding=String(t.padding):a.padding="none",t.gap!==void 0&&(a.gap=String(t.gap)),t.justify!==void 0&&(a.justify=t.justify),t.align!==void 0&&(a.align=t.align),t.background!==void 0&&(a.background=String(t.background));const l={id:o,kind:"container",containerType:s.layoutType,params:this.cleanParams(t),children:r,style:a,meta:{nodeId:e?.instanceScope?`${s._meta?.nodeId}@${e.instanceScope}`:s._meta?.nodeId}};return this.nodes[o]=l,o}convertCell(s,e){const t=this.idGen.generate("node"),i=[];for(const o of s.children)if(o.type==="layout"){const r=this.convertLayout(o,e);r&&i.push({ref:r})}else if(o.type==="component"){const r=this.convertComponent(o,e);r&&i.push({ref:r})}const n={id:t,kind:"container",containerType:"stack",params:s.props,children:i,style:{padding:"none"},meta:{source:"cell",nodeId:e?.instanceScope?`${s._meta?.nodeId}@${e.instanceScope}`:s._meta?.nodeId}};return this.nodes[t]=n,t}convertComponent(s,e){if(s.componentType==="Children")return e?.allowChildrenSlot?e.childrenSlot?this.convertASTNode(e.childrenSlot,e):(this.errors.push({type:"children-slot-missing-child",message:`Layout "${e.definitionName}" requires exactly one child for "Children".`}),null):(this.errors.push({type:"children-slot-outside-layout-definition",message:'"Children" placeholder can only be used inside a define Layout body.'}),null);const t=this.resolveComponentProps(s.componentType,s.props,e),i=this.definedComponents.get(s.componentType);if(i)return this.expandDefinedComponent(i,t,s._meta?.nodeId,e);new Set(["Button","Input","Heading","Text","Label","Paragraph","Image","Card","Stat","Topbar","Table","Chart","Textarea","Select","Checkbox","Toggle","Divider","Breadcrumbs","SidebarMenu","Radio","Icon","IconButton","Alert","Badge","Modal","List","Sidebar","Tabs","Code","Link","Separate"]).has(s.componentType)||this.undefinedComponentsUsed.add(s.componentType);const o=this.idGen.generate("node"),r={id:o,kind:"component",componentType:s.componentType,props:t,style:{},meta:{nodeId:e?.instanceScope?`${s._meta?.nodeId}@${e.instanceScope}`:s._meta?.nodeId}};return this.nodes[o]=r,o}expandDefinedComponent(s,e,t,i){const n={args:e,providedArgNames:new Set(Object.keys(e)),usedArgNames:new Set,definitionName:s.name,definitionKind:"component",allowChildrenSlot:!1,instanceScope:t};let o=null;if(s.body.type==="layout")o=this.convertLayout(s.body,n);else if(s.body.type==="component")o=this.convertComponent(s.body,n);else throw new Error(`Invalid defined component body type for "${s.name}"`);if(this.reportUnusedArguments(n),!o)return null;const r=this.idGen.generate("node"),a={id:r,kind:"instance",definitionName:s.name,definitionKind:"component",invocationProps:e,expandedRoot:{ref:o},style:{},meta:{nodeId:t}};return this.nodes[r]=a,r}expandDefinedLayout(s,e,t,i,n){t.length!==1&&this.errors.push({type:"layout-children-arity",message:`Layout "${s.name}" expects exactly one child, received ${t.length}.`});const o=t[0],r=o?this.resolveChildrenSlot(o,i):void 0,a={args:e,providedArgNames:new Set(Object.keys(e)),usedArgNames:new Set,definitionName:s.name,definitionKind:"layout",allowChildrenSlot:!0,childrenSlot:r,instanceScope:n},l=this.convertLayout(s.body,a);if(this.reportUnusedArguments(a),!n)return l;const c=this.idGen.generate("node"),d={id:c,kind:"instance",definitionName:s.name,definitionKind:"layout",invocationProps:e,expandedRoot:{ref:l},style:{},meta:{nodeId:n}};return this.nodes[c]=d,c}resolveChildrenSlot(s,e){if(s.type==="component"&&s.componentType==="Children"){if(e?.allowChildrenSlot)return e.childrenSlot;this.errors.push({type:"children-slot-outside-layout-definition",message:'"Children" placeholder forwarding is only valid inside define Layout bodies.'});return}return s}convertASTNode(s,e){return s.type==="layout"?this.convertLayout(s,e):s.type==="component"?this.convertComponent(s,e):this.convertCell(s,e)}resolveLayoutParams(s,e,t){const i={};for(const[n,o]of Object.entries(e)){const r=this.resolveBindingValue(o,t,"layout-parameter",s,n);if(r!==void 0){if(typeof o=="string"&&o.startsWith("prop_")){const c=AI[s]?.properties?.[n];if(c?.type==="enum"&&Array.isArray(c.options)){const d=String(r);c.options.includes(d)||this.warnings.push({type:"invalid-bound-enum-value",message:`Invalid value "${d}" for parameter "${n}" in layout "${s}". Expected one of: ${c.options.join(", ")}.`})}}i[n]=r}}return i}normalizeSplitParams(s){const e={...s};e.sidebar!==void 0&&e.left===void 0&&e.right===void 0&&(e.left=e.sidebar,this.warnings.push({type:"split-sidebar-deprecated",message:'Split parameter "sidebar" is deprecated. Use "left" or "right".'})),delete e.sidebar;const t=e.left!==void 0,i=e.right!==void 0;if(t&&i&&(delete e.right,this.warnings.push({type:"split-side-conflict",message:'Split layout received both "left" and "right"; keeping "left".'})),!t&&!i&&(e.left=250,this.warnings.push({type:"split-side-missing",message:'Split layout missing both "left" and "right"; defaulting to left: 250.'})),e.left!==void 0){const n=Number(e.left);(!Number.isFinite(n)||n<=0)&&(e.left=250,this.warnings.push({type:"split-left-invalid",message:'Split "left" must be a positive number. Falling back to 250.'}))}if(e.right!==void 0){const n=Number(e.right);(!Number.isFinite(n)||n<=0)&&(e.right=250,this.warnings.push({type:"split-right-invalid",message:'Split "right" must be a positive number. Falling back to 250.'}))}return e}resolveComponentProps(s,e,t){const i={};for(const[n,o]of Object.entries(e)){const r=this.resolveBindingValue(o,t,"component-property",s,n);if(r!==void 0){if(typeof o=="string"&&o.startsWith("prop_")){const c=Sg[s]?.properties?.[n];if(c?.type==="enum"&&Array.isArray(c.options)){const d=String(r);c.options.includes(d)||this.warnings.push({type:"invalid-bound-enum-value",message:`Invalid value "${d}" for property "${n}" in component "${s}". Expected one of: ${c.options.join(", ")}.`})}}i[n]=r}}return i}resolveBindingValue(s,e,t,i,n){if(typeof s!="string"||!s.startsWith("prop_"))return s;const o=s.slice(5);if(!e)return s;if(Object.prototype.hasOwnProperty.call(e.args,o))return e.usedArgNames.add(o),e.args[o];const r=this.isBindingTargetRequired(t,i,n),a=t==="component-property"?"property":"parameter",l=`Missing required bound ${a} "${n}" for ${t==="component-property"?"component":"layout"} "${i}" in ${e.definitionKind} "${e.definitionName}" (expected arg "${o}").`;r?this.errors.push({type:"missing-required-bound-value",message:l}):this.warnings.push({type:"missing-bound-value",message:`Optional ${a} "${n}" in ${t==="component-property"?"component":"layout"} "${i}" was omitted because arg "${o}" was not provided while expanding ${e.definitionKind} "${e.definitionName}".`})}isBindingTargetRequired(s,e,t){if(s==="component-property"){const l=Sg[e]?.properties?.[t];return l?l.required===!0&&l.defaultValue===void 0:!1}const i=AI[e];if(!i)return!1;const n=i.properties?.[t],o=n?.required===!0&&n.defaultValue===void 0,r=(i.requiredProperties||[]).includes(t);return o||r}reportUnusedArguments(s){for(const e of s.providedArgNames)s.usedArgNames.has(e)||this.warnings.push({type:"unused-definition-argument",message:`Argument "${e}" is not used by ${s.definitionKind} "${s.definitionName}".`})}cleanParams(s){const e={};for(const[t,i]of Object.entries(s))["padding","gap","align","justify"].includes(t)||(e[t]=i);return e}sanitizeId(s){return s.toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_]/g,"")}};function Xmt(s){return new Ymt().generate(s)}var _w={none:0,xs:4,sm:8,md:16,lg:24,xl:32},Khe={compact:.8,normal:1,comfortable:1.25};function vk(s,e="md",t="normal",i=!1){if(!s){const r=_w[e]??_w.md;return i?Math.round(r*Khe[t]):r}const n=_w[s],o=n!==void 0?n:_w[e]??_w.md;return i?Math.round(o*Khe[t]):o}var Zhe={compact:{xs:10,sm:12,md:16,lg:20,xl:28},normal:{xs:12,sm:14,md:18,lg:24,xl:32},comfortable:{xs:14,sm:16,md:20,lg:28,xl:36}},Yhe={compact:{xs:16,sm:20,md:24,lg:32,xl:40},normal:{xs:20,sm:24,md:32,lg:40,xl:48},comfortable:{xs:24,sm:28,md:40,lg:48,xl:56}},Xhe={compact:{xs:24,sm:28,md:32,lg:36,xl:44},normal:{xs:28,sm:36,md:40,lg:48,xl:56},comfortable:{xs:32,sm:40,md:48,lg:56,xl:64}},Qhe={compact:{xs:24,sm:28,md:32,lg:36,xl:44},normal:{xs:28,sm:36,md:40,lg:48,xl:56},comfortable:{xs:32,sm:40,md:48,lg:56,xl:64}},Jhe={compact:{none:0,xs:4,sm:8,md:10,lg:14,xl:18},normal:{none:0,xs:6,sm:10,md:14,lg:18,xl:24},comfortable:{none:0,xs:8,sm:12,md:16,lg:22,xl:28}};function Jwe(s,e="normal"){const t=Zhe[e]||Zhe.normal;return t[s||"md"]||t.md}function eye(s,e="normal"){const t=Yhe[e]||Yhe.normal;return t[s||"md"]||t.md}function Qmt(s,e="normal"){const t=Xhe[e]||Xhe.normal;return t[s||"md"]||t.md}function TM(s,e="normal"){const t=Qhe[e]||Qhe.normal;return t[s||"md"]||t.md}function d4(s,e="normal"){const t=Jhe[e]||Jhe.normal;return t[s||"md"]??t.md}var Jmt="h2",e_t={h1:1.4,h2:1,h3:.85,h4:.75,h5:.65,h6:.55},t_t={h1:700,h2:650,h3:620,h4:600,h5:600,h6:600};function i_t(s,e=Jmt){if(typeof s!="string")return e;const t=s.trim().toLowerCase();return t==="h1"?"h1":t==="h2"?"h2":t==="h3"?"h3":t==="h4"?"h4":t==="h5"?"h5":t==="h6"?"h6":e}function tye(s,e,t){const i=i_t(t),n=e_t[i],o=t_t[i];return{level:i,fontSize:Math.max(10,Math.round(s*n)),fontWeight:Math.max(e,o),lineHeight:1.25}}function iye(s,e){if(s==null||s==="")return null;if(typeof s=="number"&&Number.isFinite(s))return Math.max(0,s);if(typeof s!="string")return null;const t=s.trim().toLowerCase();if(!t)return null;const i=Number(t);return!Number.isNaN(i)&&Number.isFinite(i)?Math.max(0,i):t in _w?vk(t,"sm",e,!0):null}var eue={compact:32,normal:40,comfortable:48},n_t=class{constructor(s){this.result={},this.parentContainerTypes=new Map,this.ir=s,this.nodes=s.project.nodes,this.style=s.project.style,this.viewport=s.project.screens[0]?.viewport||{width:1280,height:720}}calculate(){this.result={};for(const s of this.ir.project.screens){const e=s.root.ref;e&&this.calculateNode(e,0,0,this.viewport.width,this.viewport.height)}return this.result}calculateNode(s,e,t,i,n,o){const r=this.nodes[s];r&&(o&&r.kind==="container"&&this.parentContainerTypes.set(s,o),r.kind==="container"?this.calculateContainer(r,s,e,t,i,n):r.kind==="instance"?this.calculateInstance(r,s,e,t,i,n,o):this.calculateComponent(r,s,e,t,i,n))}calculateContainer(s,e,t,i,n,o){if(s.kind!=="container")return;const a=s.containerType!=="card"?this.resolveSpacing(s.style.padding):0,l=t+a,c=i+a,d=n-a*2,h=s.params.direction||"vertical",f=s.containerType==="stack"&&h==="vertical",p=f?o:o-a*2;switch(this.result[e]={x:t,y:i,width:n,height:o},s.containerType){case"stack":this.calculateStack(s,l,c,d,p);break;case"grid":this.calculateGrid(s,l,c,d,p);break;case"split":this.calculateSplit(s,l,c,d,p);break;case"panel":this.calculatePanel(s,l,c,d,p);break;case"card":this.calculateCard(s,l,c,d,p);break}const m=s.containerType==="stack"&&!f;if((f||m||s.containerType==="card")&&s.children.length>0){let _=i;s.children.forEach(S=>{const L=this.result[S.ref];L&&(_=Math.max(_,L.y+L.height))});const C=s.containerType==="card"?this.resolveSpacing(s.style.padding):a,y=_-i+C;this.result[e].height=y}}calculateStack(s,e,t,i,n){if(s.kind!=="container")return;const o=s.params.direction||"vertical",r=this.resolveSpacing(s.style.gap),a=s.children;if(o==="vertical"){let l=t;a.forEach((d,h)=>{const f=this.nodes[d.ref];let p=this.getComponentHeight();f?.kind==="component"&&f.props.height?p=Number(f.props.height):f?.kind==="container"?p=this.calculateContainerHeight(f,i):f?.kind==="component"&&(p=this.getIntrinsicComponentHeight(f,i)),this.calculateNode(d.ref,e,l,i,p,"stack"),l+=p,h<a.length-1&&(l+=r)});let c=t;a.forEach((d,h)=>{const f=this.result[d.ref];if(f){const p=c-f.y;f.y=c,p!==0&&this.adjustNodeYPositions(d.ref,p),c+=f.height,h<a.length-1&&(c+=r)}})}else{const l=s.style.justify||"stretch",c=s.style.align||"start";if(l==="stretch"){let d=e;const h=this.calculateChildWidth(a.length,i,r);let f=0;a.forEach(p=>{const m=this.nodes[p.ref];let _=this.getComponentHeight();m?.kind==="component"&&m.props.height?_=Number(m.props.height):m?.kind==="container"?_=this.calculateContainerHeight(m,h):m?.kind==="component"&&(_=this.getIntrinsicComponentHeight(m,h)),f=Math.max(f,_)}),a.forEach(p=>{this.calculateNode(p.ref,d,t,h,f,"stack"),d+=h+r})}else{const d=[],h=[],f=[],p=new Set;let m=0;a.forEach((E,D)=>{const T=this.nodes[E.ref],R=T?.kind==="component"&&!!T.props.height,A=T?.kind==="component"&&!!T.props.width,H=T?.kind==="component"&&T.componentType==="Button"&&!A&&this.parseBooleanProp(T.props.block,!1),z=!A&&T?.kind==="container"&&!this.containerHasIntrinsicWidth(T);let V;H||z?(V=0,p.add(D)):A?V=Number(T.props.width):V=this.getIntrinsicWidth(T,i),d.push(V),h.push(this.getComponentHeight()),f.push(R)});const _=r*Math.max(0,a.length-1);if(p.size>0){const E=d.reduce((R,A,H)=>p.has(H)?R:R+A,0),D=i-_-E,T=Math.max(1,D/p.size);p.forEach(R=>{d[R]=T})}a.forEach((E,D)=>{const T=this.nodes[E.ref],R=d[D];let A=this.getComponentHeight();f[D]&&T?.kind==="component"?A=Number(T.props.height):T?.kind==="container"?A=this.calculateContainerHeight(T,R):T?.kind==="component"&&(A=this.getIntrinsicComponentHeight(T,R)),h[D]=A,m=Math.max(m,A)});const C=d.reduce((E,D)=>E+D,0),y=C+_;let S=e,L=r;if(l==="center")S=e+(i-y)/2;else if(l==="end")S=e+i-y;else if(l==="spaceBetween")S=e,L=a.length>1?(i-C)/(a.length-1):0;else if(l==="spaceAround"){const E=a.length>0?(i-C)/a.length:0;S=e+E/2,L=E}let x=S;a.forEach((E,D)=>{const T=d[D],R=h[D];let A=t;c==="center"?A=t+Math.round((m-R)/2):c==="end"&&(A=t+m-R),this.calculateNode(E.ref,x,A,T,R,"stack"),x+=T+L})}}}calculateContainerHeight(s,e){if(s.kind!=="container")return this.getComponentHeight();const t=this.resolveSpacing(s.style.gap);let n=this.resolveSpacing(s.style.padding)*2;const o=40;if(s.children.length===0)return Math.max(n,o);if(s.containerType==="grid"){const a=Number(s.params.columns)||12,l=(e-t*(a-1))/a;let c=0,d=0,h=0;const f=[0];s.children.forEach(p=>{const m=this.nodes[p.ref];let _=1,C=this.getComponentHeight();m?.kind==="container"&&m.meta?.source==="cell"&&(_=Number(m.params.span)||1);const y=l*_+t*(_-1);m?.kind==="component"?m.props.height?C=Number(m.props.height):C=this.getIntrinsicComponentHeight(m,y):m?.kind==="container"&&(C=this.calculateContainerHeight(m,y)),d+_>a&&(f[c]=h,c++,d=0,h=0),h=Math.max(h,C),d+=_}),f[c]=h;for(let p=0;p<=c;p++)n+=f[p],p<c&&(n+=t);return n}if(s.containerType==="split"){const a=this.resolveSpacing(s.style.gap),l=s.params.left,c=s.params.right,d=Number(l),h=Number(c),f=l!==void 0,p=c!==void 0,m=Number.isFinite(d)&&d>0?d:e/2,_=Number.isFinite(h)&&h>0?h:e/2;let C=0;return s.children.forEach((y,S)=>{const L=this.nodes[y.ref];let x=this.getComponentHeight();const E=S===0;let D;s.children.length>=2?p&&!f?D=E?Math.max(1,e-_-a):_:D=E?m:Math.max(1,e-m-a):D=e,L?.kind==="component"?x=L.props.height?Number(L.props.height):this.getIntrinsicComponentHeight(L,D):L?.kind==="container"&&(x=this.calculateContainerHeight(L,D)),C=Math.max(C,x)}),n+=C,n}const r=s.params.direction||"vertical";if(s.containerType==="stack"&&r==="horizontal"){let a=0;return s.children.forEach(l=>{const c=this.nodes[l.ref];let d=this.getComponentHeight();c?.kind==="component"?c.props.height?d=Number(c.props.height):d=this.getIntrinsicComponentHeight(c,e):c?.kind==="container"&&(d=this.calculateContainerHeight(c,e)),a=Math.max(a,d)}),n+=a,n}return s.children.forEach((a,l)=>{const c=this.nodes[a.ref];let d=this.getComponentHeight();c?.kind==="component"?c.props.height?d=Number(c.props.height):d=this.getIntrinsicComponentHeight(c,e):c?.kind==="container"&&(d=this.calculateContainerHeight(c,e)),n+=d,l<s.children.length-1&&(n+=t)}),n}calculateGrid(s,e,t,i,n){if(s.kind!=="container")return;const o=Number(s.params.columns)||12,r=this.resolveSpacing(s.style.gap),a=(i-r*(o-1))/o,l={};s.children.forEach((C,y)=>{const S=this.nodes[C.ref];let L=this.getComponentHeight(),x=1;S?.kind==="container"&&S.meta?.source==="cell"&&(x=Number(S.params.span)||1);const E=a*x+r*(x-1);S?.kind==="container"?L=this.calculateContainerHeight(S,E):S?.kind==="component"&&(S.props.height?L=Number(S.props.height):L=this.getIntrinsicComponentHeight(S,E)),l[y]=L});let c=0,d=0,h=0;const f=[0],p=[];s.children.forEach((C,y)=>{const S=this.nodes[C.ref];let L=1;S?.kind==="container"&&S.meta?.source==="cell"&&(L=Number(S.params.span)||1),d+L>o&&(f[c]=h,c++,d=0,h=0),p.push({row:c,col:d,span:L}),h=Math.max(h,l[y]),d+=L}),f[c]=h,s.children.forEach((C,y)=>{const{row:S,col:L,span:x}=p[y],E=f[S];let D=t;for(let A=0;A<S;A++)D+=f[A]+r;const T=a*x+r*(x-1),R=e+L*(a+r);this.calculateNode(C.ref,R,D,T,E,"grid")});const m=[...f];s.children.forEach((C,y)=>{const{row:S}=p[y],L=this.result[C.ref];L&&(m[S]=Math.max(m[S],L.height))});const _=[0];for(let C=1;C<m.length;C++)_[C]=_[C-1]+(m[C-1]-f[C-1]);s.children.forEach((C,y)=>{const{row:S}=p[y],L=_[S]||0;if(L===0)return;const x=this.result[C.ref];x&&(x.y+=L,this.adjustNodeYPositions(C.ref,L))})}calculateSplit(s,e,t,i,n){if(s.kind!=="container")return;const o=this.resolveSpacing(s.style.gap),r=s.params.left,a=s.params.right,l=Number(r),c=Number(a),d=r!==void 0,h=a!==void 0,f=Number.isFinite(l)&&l>0?l:250,p=Number.isFinite(c)&&c>0?c:250;if(s.children.length===1)this.calculateNode(s.children[0].ref,e,t,i,n,"split");else if(s.children.length>=2)if(h&&!d){const m=Math.max(1,i-p-o),_=e+m+o;this.calculateNode(s.children[0].ref,e,t,m,n,"split"),this.calculateNode(s.children[1].ref,_,t,p,n,"split")}else{const m=Math.max(1,i-f-o),_=e+f+o;this.calculateNode(s.children[0].ref,e,t,f,n,"split"),this.calculateNode(s.children[1].ref,_,t,m,n,"split")}}calculatePanel(s,e,t,i,n){if(s.kind!=="container"||s.children.length===0)return;const o=s.children[0];this.calculateNode(o.ref,e,t,i,n,"panel")}calculateCard(s,e,t,i,n){if(s.kind!=="container"||s.children.length===0)return;const o=this.resolveSpacing(s.style.padding),r=this.resolveSpacing(s.style.gap),a=i-o*2,l=s.children;let c=t+o;l.forEach((d,h)=>{const f=this.nodes[d.ref];let p=this.getComponentHeight();f?.kind==="component"&&f.props.height?p=Number(f.props.height):f?.kind==="container"?p=this.calculateContainerHeight(f,a):f?.kind==="component"&&(p=this.getIntrinsicComponentHeight(f,a)),this.calculateNode(d.ref,e+o,c,a,p,"card"),c+=p,h<l.length-1&&(c+=r)})}calculateInstance(s,e,t,i,n,o,r){const a=s.expandedRoot.ref;this.calculateNode(a,t,i,n,o,r);const l=this.result[a];l&&(this.result[e]={...l})}calculateComponent(s,e,t,i,n,o){if(s.kind!=="component")return;const r=Number(s.props.width)||n,a=Number(s.props.height)||this.getIntrinsicComponentHeight(s,r);this.result[e]={x:t,y:i,width:r,height:a}}resolveSpacing(s){return vk(s,this.style.spacing||"md",this.style.density||"normal",!0)}getSeparateSize(s){if(s.kind!=="component")return vk("md","md",this.style.density||"normal",!0);const e=s.props.size;return typeof e=="number"&&!isNaN(e)?e:vk(e?String(e):"md","md",this.style.density||"normal",!0)}getComponentHeight(){return eue[this.style.density]||eue.normal}getTextMetricsForDensity(){switch(this.style.density){case"compact":return{fontSize:12,lineHeight:1.4};case"comfortable":return{fontSize:16,lineHeight:1.6};default:return{fontSize:14,lineHeight:1.5}}}getButtonMetricsForDensity(){switch(this.style.density){case"compact":return{fontSize:12,paddingX:12};case"normal":return{fontSize:14,paddingX:18};case"comfortable":return{fontSize:16,paddingX:24};default:return{fontSize:14,paddingX:18}}}getHeadingMetricsForDensity(s){let e;switch(this.style.density){case"compact":e=16;break;case"comfortable":e=24;break;default:e=20;break}const t=tye(e,600,s);return{fontSize:t.fontSize,lineHeight:t.lineHeight}}wrapTextToLines(s,e,t){const n=s.replace(/\r\n/g,`
|
|
1068
1068
|
`).split(`
|
|
1069
1069
|
`),o=t*.5,r=Math.max(e,o),a=Math.max(1,Math.floor(r/o)),l=[];for(const c of n){if(!c.trim()){l.push("");continue}const d=c.split(/\s+/).filter(Boolean);let h="";for(const f of d){const p=h?`${h} ${f}`:f;if(p.length<=a){h=p;continue}if(h&&(l.push(h),h=""),f.length<=a){h=f;continue}for(let m=0;m<f.length;m+=a)l.push(f.slice(m,m+a))}h&&l.push(h)}return l.length>0?l:[""]}getIntrinsicComponentHeight(s,e){if(s.kind!=="component")return this.getComponentHeight();const t=String(s.props.size||"md"),i=String(s.props.size||"sm"),n=this.style.density||"normal",o=Qmt(t,n),r=TM(i,n),a=s.componentType==="Input"||s.componentType==="Textarea"||s.componentType==="Select"?this.getControlLabelOffset(String(s.props.label||"")):(s.componentType==="Button"||s.componentType==="IconButton")&&this.parseBooleanProp(s.props.labelSpace,!1)?18:0;if(s.componentType==="Image"){const l=String(s.props.placeholder||"landscape"),c=this.parseBooleanProp(s.props.circle,!1),d={landscape:16/9,portrait:2/3,square:1,icon:1,avatar:1},h=c?1:d[l]||16/9,f=Number(s.props.height);return!isNaN(f)&&f>0?f:e&&e>0?e/h:200}if(s.componentType==="Table"){const l=Number(s.props.height);if(!isNaN(l)&&l>0)return l;const c=Number(s.props.rows||s.props.rowsMock||5),d=!!s.props.title,h=this.parseBooleanProp(s.props.pagination,!1),f=String(s.props.caption||"").trim().length>0,p=String(s.props.paginationAlign||"right"),m=String(s.props.captionAlign||""),C=f&&h&&(m==="left"||m==="center"||m==="right"?m:p==="left"?"right":"left")===p,y=44,S=36,L=d?32:0;let x=0;return(h||f)&&(x+=16,x+=h?32:18,C&&(x+=26),x+=12),L+y+c*S+x}if(s.componentType==="Heading"){const l=String(s.props.text||"Heading"),{fontSize:c,lineHeight:d}=this.getHeadingMetricsForDensity(s.props.level),h=Math.ceil(c*d),f=e&&e>0?e:200,p=this.wrapTextToLines(l,f,c),m=Math.max(1,p.length)*h,_=this.style.density||"normal",C=iye(s.props.spacing,_);return C===null?Math.max(this.getComponentHeight(),m):Math.max(1,Math.ceil(m+C*2))}if(s.componentType==="Text"||s.componentType==="Paragraph"){const l=String(s.props.text||""),{fontSize:c,lineHeight:d}=this.getTextMetricsForDensity(),h=String(s.props.size||""),p={xs:10,sm:12,lg:16,xl:20}[h]??c,m=Math.ceil(p*d),_=e&&e>0?e:200,C=this.wrapTextToLines(l,_,p),y=Math.max(1,C.length)*m;return h?y:Math.max(this.getComponentHeight(),y)}if(s.componentType==="Alert"){const l=String(s.props.title||""),c=String(s.props.text||"Alert message"),d=13,h=Math.ceil(d*1.25),f=Math.ceil(d*1.4),p=Math.max(40,(e&&e>0?e:280)-24),m=l.trim().length>0?this.wrapTextToLines(l,p,d):[],_=this.wrapTextToLines(c,p,d),C=12,y=12,S=m.length>0?6:0,L=C+m.length*h+S+Math.max(1,_.length)*f+y;return Math.max(this.getComponentHeight(),L)}if(s.componentType==="SidebarMenu"){const c=String(s.props.items||"Item 1,Item 2,Item 3").split(",").map(f=>f.trim()).filter(Boolean),d=c.length>0?c.length:3;return Math.max(this.getComponentHeight(),d*40)}if(s.componentType==="Textarea")return 100+a;if(s.componentType==="Modal")return 300;if(s.componentType==="Card"||s.componentType==="Stat")return 120;if(s.componentType==="Chart")return 250;if(s.componentType==="List"){const l=String(s.props.items||"").split(",").map(_=>_.trim()).filter(Boolean),c=Number(s.props.itemsMock??4),d=Number.isFinite(c)?Math.max(0,Math.floor(c)):4,h=l.length>0?l.length:d,m=(String(s.props.title||"").trim().length>0?40:0)+h*36;return Math.max(this.getComponentHeight(),m)}if(s.componentType==="Topbar")return{sm:44,md:56,lg:72}[String(s.props.size||"md")]??56;if(s.componentType==="Tabs")return{sm:32,md:44,lg:52}[String(s.props.size||"md")]??44;if(s.componentType==="Divider")return 1;if(s.componentType==="Separate")return this.getSeparateSize(s);if(s.componentType==="Input"||s.componentType==="Select")return o+a;if(s.componentType==="Button"||s.componentType==="IconButton"||s.componentType==="Link")return r+a;if(s.componentType==="Badge"||s.componentType==="Chip"){const l={xs:28,sm:36,md:40,lg:48,xl:56},c=String(s.props.size||"md");return l[c]??40}return this.getComponentHeight()}getControlLabelOffset(s){return s.trim().length>0?18:0}containerHasIntrinsicWidth(s){return s.kind!=="container"?!1:s.containerType==="stack"&&String(s.params.direction||"vertical")==="horizontal"&&(s.style.justify||"stretch")!=="stretch"}getIntrinsicWidth(s,e){if(!s)return 120;if(s.kind==="component")return this.getIntrinsicComponentWidth(s);if(s.kind==="container"){if(this.containerHasIntrinsicWidth(s)){const t=this.resolveSpacing(s.style.gap),i=this.resolveSpacing(s.style.padding),n=Math.max(0,e-i*2),o=s.children??[];let r=i*2;return o.forEach((a,l)=>{const c=this.nodes[a.ref];r+=this.getIntrinsicWidth(c,n),l<o.length-1&&(r+=t)}),Math.min(r,e)}return e}return s.kind==="instance"?e:120}getIntrinsicComponentWidth(s){if(!s||s.kind!=="component")return 120;if(s.componentType==="Icon"){const e=String(s.props.size||"md");return Jwe(e,this.style.density||"normal")}if(s.componentType==="IconButton"){const e=String(s.props.size||"sm"),t=this.style.density||"normal",i=eye(e,t),n=d4(String(s.props.padding||"none"),t);return i+n*2}if(s.componentType==="Checkbox"||s.componentType==="Radio")return 24;if(s.componentType==="Separate")return this.getSeparateSize(s);if(s.componentType==="Button"||s.componentType==="Link"){const e=String(s.props.text||""),{fontSize:t,paddingX:i}=this.getButtonMetricsForDensity(),n=this.style.density||"normal",o=d4(String(s.props.padding||"none"),n),r=this.estimateTextWidth(e,t),a=String(s.props.icon||"").trim(),l=a?Math.round(t*1.1):0,c=a?8:0;return Math.max(60,Math.ceil(r+l+c+(i+o)*2))}if(s.componentType==="Label"||s.componentType==="Text"){const e=String(s.props.text||"");return Math.max(60,e.length*8+16)}if(s.componentType==="Heading"){const e=String(s.props.text||""),{fontSize:t}=this.getHeadingMetricsForDensity(s.props.level);return Math.max(80,Math.ceil(e.length*t*.6+16))}if(s.componentType==="Input"||s.componentType==="Select"||s.componentType==="Textarea")return 200;if(s.componentType==="Image"){const e=String(s.props.placeholder||"landscape");return{landscape:300,portrait:200,square:200,icon:64,avatar:64}[e]||300}if(s.componentType==="Table")return 400;if(s.componentType==="Stat"||s.componentType==="Card")return 280;if(s.componentType==="SidebarMenu")return 260;if(s.componentType==="Badge"||s.componentType==="Chip"){const e=String(s.props.text||""),t=String(s.props.size||"md"),i={xs:6,sm:6.5,md:7,lg:7.5,xl:8.5},n={xs:5,sm:6,md:8,lg:10,xl:14},o=s.props.padding!==void 0?Number(s.props.padding):void 0,r=o!==void 0&&!isNaN(o)?o:n[t]??8,a=i[t]??7;return Math.max(r*4,e.length*a+r*2)}return 120}calculateChildHeight(s,e,t){if(s===0)return 0;const i=t*(s-1);return(e-i)/s}calculateChildWidth(s,e,t){if(s===0)return 0;const i=t*(s-1);return(e-i)/s}estimateTextWidth(s,e){let t=0;for(const i of s)/\s/.test(i)?t+=e*.33:/[.,:;'"`|!iIl]/.test(i)?t+=e*.32:/[MW@#%&]/.test(i)?t+=e*.9:t+=e*.6;return t}parseBooleanProp(s,e=!1){if(typeof s=="boolean")return s;if(typeof s=="string"){const t=s.toLowerCase().trim();if(t==="true")return!0;if(t==="false")return!1}return e}adjustNodeYPositions(s,e){const t=this.nodes[s];t&&t.kind==="container"&&t.children&&t.children.forEach(i=>{const n=this.result[i.ref];n&&(n.y+=e,this.adjustNodeYPositions(i.ref,e))})}};function s_t(s){return new n_t(s).calculate()}var tue=["Juan","María","Carlos","Sofia","Alex","Luna","Diego","Emma"],iue=["García","López","Rodríguez","Martínez","Pérez","Sánchez","Torres","Flores"],o_t=["Active","Pending","Completed","On Hold","Review","Approved"],r_t=["Lead","Qualified","Proposal","Negotiation","Won","Lost"],a_t=["juan@example.com","maria@example.com","carlos@example.com","sofia@example.com","alex@example.com","luna@example.com"],l_t=["Buenos Aires","Madrid","Bogota","Santiago","Ciudad de Mexico","Lima","Barcelona","Monterrey"],c_t=["Laptop Pro","Wireless Mouse","Mechanical Keyboard","4K Monitor","USB-C Hub","Noise-Canceling Headphones"],d_t=["Paid","Pending","Failed","Refunded"],Up=class{static setCustomMocks(s){this.customMocks={};for(const[e,t]of Object.entries(s)){let i=[];typeof t=="string"?i=t.split(",").map(n=>n.trim()).filter(n=>n.length>0):Array.isArray(t)&&(i=t.map(n=>typeof n=="string"?n.trim():"").filter(n=>n.length>0)),i.length>0&&(this.customMocks[e.toLowerCase()]=i)}}static getMockValue(s,e,t=!1){const i=s.toLowerCase().trim();if(this.customMocks[i])return this.pick(this.customMocks[i],e,t);switch(i){case"id":return t?this.randomInt(1,9999).toString():(e+1).toString();case"name":case"owner":case"contact":case"requester":case"user":return this.pick(tue,e,t);case"last_name":return this.pick(iue,e,t);case"full_name":case"fullname":return`${this.pick(tue,e,t)} ${this.pick(iue,e+3,t)}`;case"email":return this.pick(a_t,e,t);case"status":return this.pick(o_t,e,t);case"stage":return this.pick(r_t,e,t);case"payment_status":return this.pick(d_t,e,t);case"city":return this.pick(l_t,e,t);case"price":case"cost":return t?`$${(this.randomInt(5e3,25e4)/100).toFixed(2)}`:`$${((e+1)*99.99).toFixed(2)}`;case"amount":return t?`$${this.randomInt(1e3,95e3).toLocaleString()}`:`$${((e+1)*5e3).toLocaleString()}`;case"account":case"company":return`Company ${t?this.randomInt(1,100):e+1}`;case"product":return this.pick(c_t,e,t);case"country":case"region":return this.pick(["USA","Spain","Mexico","Argentina","Chile"],e,t);case"device":return this.pick(["Desktop","Mobile","Tablet"],e,t);case"time":case"updated":return`${t?this.randomInt(1,24):2+e%20}h ago`;case"priority":return this.pick(["High","Medium","Low"],e,t);default:return i.startsWith("literal:")?s.substring(8):`Item ${e+1}`}}static inferMockTypeFromColumn(s){const e=s.toLowerCase().trim().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"");return e&&(this.HEADER_TO_MOCK[e]||e)||"item"}static generateMockList(s,e,t=!1){const i=[];for(let n=0;n<e;n++)i.push(this.getMockValue(s,n,t));return i}static generateMockRow(s,e,t=!1){const i=s.split(",").map(o=>o.trim()),n={};return i.forEach(o=>{const r=this.inferMockTypeFromColumn(o);n[o]=this.getMockValue(r,e,t)}),n}static generateMockRows(s,e,t=!1){const i=[];for(let n=0;n<e;n++)i.push(this.generateMockRow(s,n,t));return i}static pick(s,e,t){if(s.length===0)return"";if(t){const i=this.randomInt(0,s.length-1);return s[i]}return s[e%s.length]}static randomInt(s,e){return Math.floor(Math.random()*(e-s+1))+s}};Up.customMocks={};Up.HEADER_TO_MOCK={id:"id",user:"name",usuario:"name",name:"name",nombre:"name",fullname:"full_name",full_name:"full_name",email:"email",correo:"email",city:"city",ciudad:"city",country:"country",pais:"country",region:"region",amount:"amount",importe:"amount",total:"amount",price:"price",costo:"price",status:"status",estado:"status",payment_status:"payment_status",stage:"stage",etapa:"stage",company:"company",account:"account",product:"product",producto:"product",device:"device",priority:"priority",time:"time",updated:"updated",owner:"owner",contact:"contact",requester:"requester"};var h_t=class{constructor(){this.customColors={},this.namedColors={white:"#FFFFFF",black:"#000000",gray:"#9E9E9E",grey:"#9E9E9E",slate:"#607D8B",zinc:"#71717A",emerald:"#10B981",violet:"#8B5CF6",fuchsia:"#D946EF",rose:"#F43F5E","red-light":"#FFCDD2","blue-light":"#BBDEFB","green-light":"#C8E6C9",red:"#F44336",red_50:"#FFEBEE",red_100:"#FFCDD2",red_200:"#EF9A9A",red_300:"#E57373",red_400:"#EF5350",red_500:"#F44336",red_600:"#E53935",red_700:"#D32F2F",red_800:"#C62828",red_900:"#B71C1C",red_A100:"#FF8A80",red_A200:"#FF5252",red_A400:"#FF1744",red_A700:"#D50000",pink:"#E91E63",pink_50:"#FCE4EC",pink_100:"#F8BBD0",pink_200:"#F48FB1",pink_300:"#F06292",pink_400:"#EC407A",pink_500:"#E91E63",pink_600:"#D81B60",pink_700:"#C2185B",pink_800:"#AD1457",pink_900:"#880E4F",pink_A100:"#FF80AB",pink_A200:"#FF4081",pink_A400:"#F50057",pink_A700:"#C51162",purple:"#9C27B0",purple_50:"#F3E5F5",purple_100:"#E1BEE7",purple_200:"#CE93D8",purple_300:"#BA68C8",purple_400:"#AB47BC",purple_500:"#9C27B0",purple_600:"#8E24AA",purple_700:"#7B1FA2",purple_800:"#6A1B9A",purple_900:"#4A148C",purple_A100:"#EA80FC",purple_A200:"#E040FB",purple_A400:"#D500F9",purple_A700:"#AA00FF",deep_purple:"#673AB7",deep_purple_50:"#EDE7F6",deep_purple_100:"#D1C4E9",deep_purple_200:"#B39DDB",deep_purple_300:"#9575CD",deep_purple_400:"#7E57C2",deep_purple_500:"#673AB7",deep_purple_600:"#5E35B1",deep_purple_700:"#512DA8",deep_purple_800:"#4527A0",deep_purple_900:"#311B92",deep_purple_A100:"#B388FF",deep_purple_A200:"#7C4DFF",deep_purple_A400:"#651FFF",deep_purple_A700:"#6200EA",indigo:"#3F51B5",indigo_50:"#E8EAF6",indigo_100:"#C5CAE9",indigo_200:"#9FA8DA",indigo_300:"#7986CB",indigo_400:"#5C6BC0",indigo_500:"#3F51B5",indigo_600:"#3949AB",indigo_700:"#303F9F",indigo_800:"#283593",indigo_900:"#1A237E",indigo_A100:"#8C9EFF",indigo_A200:"#536DFE",indigo_A400:"#3D5AFE",indigo_A700:"#304FFE",blue:"#2196F3",blue_50:"#E3F2FD",blue_100:"#BBDEFB",blue_200:"#90CAF9",blue_300:"#64B5F6",blue_400:"#42A5F5",blue_500:"#2196F3",blue_600:"#1E88E5",blue_700:"#1976D2",blue_800:"#1565C0",blue_900:"#0D47A1",blue_A100:"#82B1FF",blue_A200:"#448AFF",blue_A400:"#2979FF",blue_A700:"#2962FF",light_blue:"#03A9F4",light_blue_50:"#E1F5FE",light_blue_100:"#B3E5FC",light_blue_200:"#81D4FA",light_blue_300:"#4FC3F7",light_blue_400:"#29B6F6",light_blue_500:"#03A9F4",light_blue_600:"#039BE5",light_blue_700:"#0288D1",light_blue_800:"#0277BD",light_blue_900:"#01579B",light_blue_A100:"#80D8FF",light_blue_A200:"#40C4FF",light_blue_A400:"#00B0FF",light_blue_A700:"#0091EA",cyan:"#00BCD4",cyan_50:"#E0F7FA",cyan_100:"#B2EBF2",cyan_200:"#80DEEA",cyan_300:"#4DD0E1",cyan_400:"#26C6DA",cyan_500:"#00BCD4",cyan_600:"#00ACC1",cyan_700:"#0097A7",cyan_800:"#00838F",cyan_900:"#006064",cyan_A100:"#84FFFF",cyan_A200:"#18FFFF",cyan_A400:"#00E5FF",cyan_A700:"#00B8D4",teal:"#009688",teal_50:"#E0F2F1",teal_100:"#B2DFDB",teal_200:"#80CBC4",teal_300:"#4DB6AC",teal_400:"#26A69A",teal_500:"#009688",teal_600:"#00897B",teal_700:"#00796B",teal_800:"#00695C",teal_900:"#004D40",teal_A100:"#A7FFEB",teal_A200:"#64FFDA",teal_A400:"#1DE9B6",teal_A700:"#00BFA5",green:"#4CAF50",green_50:"#E8F5E9",green_100:"#C8E6C9",green_200:"#A5D6A7",green_300:"#81C784",green_400:"#66BB6A",green_500:"#4CAF50",green_600:"#43A047",green_700:"#388E3C",green_800:"#2E7D32",green_900:"#1B5E20",green_A100:"#B9F6CA",green_A200:"#69F0AE",green_A400:"#00E676",green_A700:"#00C853",light_green:"#8BC34A",light_green_50:"#F1F8E9",light_green_100:"#DCEDC8",light_green_200:"#C5E1A5",light_green_300:"#AED581",light_green_400:"#9CCC65",light_green_500:"#8BC34A",light_green_600:"#7CB342",light_green_700:"#689F38",light_green_800:"#558B2F",light_green_900:"#33691E",light_green_A100:"#CCFF90",light_green_A200:"#B2FF59",light_green_A400:"#76FF03",light_green_A700:"#64DD17",lime:"#CDDC39",lime_50:"#F9FBE7",lime_100:"#F0F4C3",lime_200:"#E6EE9C",lime_300:"#DCE775",lime_400:"#D4E157",lime_500:"#CDDC39",lime_600:"#C0CA33",lime_700:"#AFB42B",lime_800:"#9E9D24",lime_900:"#827717",lime_A100:"#F4FF81",lime_A200:"#EEFF41",lime_A400:"#C6FF00",lime_A700:"#AEEA00",yellow:"#FFEB3B",yellow_50:"#FFFDE7",yellow_100:"#FFF9C4",yellow_200:"#FFF59D",yellow_300:"#FFF176",yellow_400:"#FFEE58",yellow_500:"#FFEB3B",yellow_600:"#FDD835",yellow_700:"#F9A825",yellow_800:"#F57F17",yellow_900:"#F57F17",yellow_A100:"#FFFF8D",yellow_A200:"#FFFF00",yellow_A400:"#FFEA00",yellow_A700:"#FFD600",amber:"#FFC107",amber_50:"#FFF8E1",amber_100:"#FFECB3",amber_200:"#FFE082",amber_300:"#FFD54F",amber_400:"#FFCA28",amber_500:"#FFC107",amber_600:"#FFB300",amber_700:"#FFA000",amber_800:"#FF8F00",amber_900:"#FF6F00",amber_A100:"#FFE57F",amber_A200:"#FFD740",amber_A400:"#FFC400",amber_A700:"#FFAB00",orange:"#FF9800",orange_50:"#FFF3E0",orange_100:"#FFE0B2",orange_200:"#FFCC80",orange_300:"#FFB74D",orange_400:"#FFA726",orange_500:"#FF9800",orange_600:"#FB8C00",orange_700:"#F57C00",orange_800:"#EF6C00",orange_900:"#E65100",orange_A100:"#FFD180",orange_A200:"#FFAB40",orange_A400:"#FF9100",orange_A700:"#FF6D00",deep_orange:"#FF5722",deep_orange_50:"#FBE9E7",deep_orange_100:"#FFCCBC",deep_orange_200:"#FFAB91",deep_orange_300:"#FF8A65",deep_orange_400:"#FF7043",deep_orange_500:"#FF5722",deep_orange_600:"#F4511E",deep_orange_700:"#E64A19",deep_orange_800:"#D84315",deep_orange_900:"#BF360C",deep_orange_A100:"#FF9E80",deep_orange_A200:"#FF6E40",deep_orange_A400:"#FF3D00",deep_orange_A700:"#DD2C00",brown:"#795548",brown_50:"#EFEBE9",brown_100:"#D7CCC8",brown_200:"#BCAAA4",brown_300:"#A1887F",brown_400:"#8D6E63",brown_500:"#795548",brown_600:"#6D4C41",brown_700:"#5D4037",brown_800:"#4E342E",brown_900:"#3E2723",grey_50:"#FAFAFA",grey_100:"#F5F5F5",grey_200:"#EEEEEE",grey_300:"#E0E0E0",grey_400:"#BDBDBD",grey_500:"#9E9E9E",grey_600:"#757575",grey_700:"#616161",grey_800:"#424242",grey_900:"#212121",gray_50:"#FAFAFA",gray_100:"#F5F5F5",gray_200:"#EEEEEE",gray_300:"#E0E0E0",gray_400:"#BDBDBD",gray_500:"#9E9E9E",gray_600:"#757575",gray_700:"#616161",gray_800:"#424242",gray_900:"#212121",blue_grey:"#607D8B",blue_grey_50:"#ECEFF1",blue_grey_100:"#CFD8DC",blue_grey_200:"#B0BEC5",blue_grey_300:"#90A4AE",blue_grey_400:"#78909C",blue_grey_500:"#607D8B",blue_grey_600:"#546E7A",blue_grey_700:"#455A64",blue_grey_800:"#37474F",blue_grey_900:"#263238",blue_gray:"#607D8B",blue_gray_50:"#ECEFF1",blue_gray_100:"#CFD8DC",blue_gray_200:"#B0BEC5",blue_gray_300:"#90A4AE",blue_gray_400:"#78909C",blue_gray_500:"#607D8B",blue_gray_600:"#546E7A",blue_gray_700:"#455A64",blue_gray_800:"#37474F",blue_gray_900:"#263238"}}setCustomColors(s){this.customColors=s||{}}hasColor(s){if(!s)return!1;const e="__unresolved__";return this.resolveColor(s,e)!==e}resolveColor(s,e="#000000"){return this.resolveColorInternal(s,e,new Set)}resolveColorInternal(s,e,t){if(!s||t.has(s))return e;if(t.add(s),this.customColors[s]){const i=this.customColors[s];return this.isValidHex(i)?i:this.namedColors[i]?this.namedColors[i]:this.customColors[i]?this.resolveColorInternal(i,e,t):e}return this.namedColors[s]?this.namedColors[s]:this.isValidHex(s)?s:e}isValidHex(s){return/^#[0-9A-Fa-f]{6}$/.test(s)}validateHex(s){return this.isValidHex(s)?s:void 0}},u_t={activity:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>',airplay:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path><polygon points="12 15 17 21 7 21 12 15"></polygon></svg>',"alert-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',"alert-octagon":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',"alert-triangle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',"align-center":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line></svg>',"align-justify":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line></svg>',"align-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line></svg>',"align-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line></svg>',anchor:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path></svg>',aperture:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line></svg>',archive:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line></svg>',"arrow-down-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line></svg>',"arrow-down-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline></svg>',"arrow-down-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline></svg>',"arrow-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline></svg>',"arrow-left-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line></svg>',"arrow-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>',"arrow-right-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line></svg>',"arrow-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>',"arrow-up-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line></svg>',"arrow-up-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline></svg>',"arrow-up-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline></svg>',"arrow-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>',"at-sign":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path></svg>',award:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline></svg>',"bar-chart-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>',"bar-chart":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line></svg>',"battery-charging":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline></svg>',battery:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line></svg>',"bell-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',bell:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>',bluetooth:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline></svg>',bold:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path></svg>',"book-open":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path></svg>',book:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg>',bookmark:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path></svg>',box:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',briefcase:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path></svg>',calendar:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>',"camera-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path></svg>',camera:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>',cast:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line></svg>',"check-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>',"check-square":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg>',check:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>',"chevron-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>',"chevron-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>',"chevron-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>',"chevron-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="18 15 12 9 6 15"></polyline></svg>',"chevrons-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline></svg>',"chevrons-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline></svg>',"chevrons-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline></svg>',"chevrons-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline></svg>',chrome:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line></svg>',circle:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle></svg>',clipboard:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect></svg>',clock:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>',"cloud-drizzle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>',"cloud-lightning":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline></svg>',"cloud-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',"cloud-rain":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path></svg>',"cloud-snow":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line></svg>',cloud:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path></svg>',code:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline></svg>',codepen:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line></svg>',codesandbox:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',coffee:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line></svg>',columns:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path></svg>',command:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path></svg>',compass:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon></svg>',copy:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>',"corner-down-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path></svg>',"corner-down-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path></svg>',"corner-left-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path></svg>',"corner-left-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path></svg>',"corner-right-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path></svg>',"corner-right-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path></svg>',"corner-up-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path></svg>',"corner-up-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path></svg>',cpu:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line></svg>',"credit-card":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line></svg>',crop:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path></svg>',crosshair:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line></svg>',database:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path></svg>',delete:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line></svg>',disc:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle></svg>',"divide-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle></svg>',"divide-square":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line></svg>',divide:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle></svg>',"dollar-sign":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>',"download-cloud":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path></svg>',download:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>',dribbble:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path></svg>',droplet:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path></svg>',"edit-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path></svg>',"edit-3":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg>',edit:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg>',"external-link":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>',"eye-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',eye:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>',facebook:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>',"fast-forward":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon></svg>',feather:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line></svg>',figma:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path></svg>',"file-minus":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line></svg>',"file-plus":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line></svg>',"file-text":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline></svg>',file:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline></svg>',film:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line></svg>',filter:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon></svg>',flag:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line></svg>',"folder-minus":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line></svg>',"folder-plus":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line></svg>',folder:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path></svg>',framer:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path></svg>',frown:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',gift:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path></svg>',"git-branch":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path></svg>',"git-commit":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line></svg>',"git-merge":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path></svg>',"git-pull-request":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line></svg>',github:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>',gitlab:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path></svg>',globe:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path></svg>',grid:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect></svg>',"hard-drive":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 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"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line></svg>',hash:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line></svg>',headphones:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path></svg>',heart:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>',"help-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>',hexagon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path></svg>',home:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>',image:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg>',inbox:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 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"></path></svg>',info:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>',instagram:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>',italic:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line></svg>',key:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path></svg>',layers:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline></svg>',layout:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line></svg>',"life-buoy":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line></svg>',"link-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line></svg>',link:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg>',linkedin:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></svg>',list:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>',loader:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>',lock:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>',"log-in":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line></svg>',"log-out":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>',mail:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>',"map-pin":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>',map:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line></svg>',"maximize-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>',maximize:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path></svg>',meh:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',menu:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>',"message-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>',"message-square":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>',"mic-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>',mic:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line></svg>',"minimize-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line></svg>',minimize:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path></svg>',"minus-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line></svg>',"minus-square":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line></svg>',minus:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line></svg>',monitor:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line></svg>',moon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>',"more-horizontal":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>',"more-vertical":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle></svg>',"mouse-pointer":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path></svg>',move:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line></svg>',music:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle></svg>',"navigation-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="12 2 19 21 12 17 5 21 12 2"></polygon></svg>',navigation:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="3 11 22 2 13 21 11 13 3 11"></polygon></svg>',octagon:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></polygon></svg>',package:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><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"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>',paperclip:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path></svg>',"pause-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line></svg>',pause:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>',"pen-tool":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle></svg>',percent:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle></svg>',"phone-call":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',"phone-forwarded":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',"phone-incoming":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',"phone-missed":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',"phone-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line></svg>',"phone-outgoing":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',phone:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>',"pie-chart":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path></svg>',"play-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon></svg>',play:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>',"plus-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>',"plus-square":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg>',plus:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>',pocket:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline></svg>',power:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line></svg>',printer:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect></svg>',radio:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path></svg>',"refresh-ccw":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path></svg>',"refresh-cw":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>',repeat:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path></svg>',rewind:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon></svg>',"rotate-ccw":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path></svg>',"rotate-cw":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path></svg>',rss:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg>',save:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></svg>',scissors:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line></svg>',search:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',send:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon></svg>',server:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line></svg>',settings:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>',"share-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg>',share:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line></svg>',"shield-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',shield:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>',"shopping-bag":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>',"shopping-cart":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>',shuffle:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line></svg>',sidebar:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line></svg>',"skip-back":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line></svg>',"skip-forward":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line></svg>',slack:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path></svg>',slash:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line></svg>',sliders:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line></svg>',smartphone:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>',smile:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line></svg>',speaker:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line></svg>',square:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect></svg>',star:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></polygon></svg>',"stop-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect></svg>',sun:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>',sunrise:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline></svg>',sunset:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline></svg>',table:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path></svg>',tablet:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>',tag:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg>',target:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle></svg>',terminal:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>',thermometer:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path></svg>',"thumbs-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path></svg>',"thumbs-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path></svg>',"toggle-left":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle></svg>',"toggle-right":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle></svg>',tool:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path></svg>',"trash-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line></svg>',trash:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path></svg>',trello:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect></svg>',"trending-down":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline></svg>',"trending-up":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline></svg>',triangle:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path></svg>',truck:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle></svg>',tv:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline></svg>',twitch:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path></svg>',twitter:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></svg>',type:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line></svg>',umbrella:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path></svg>',underline:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line></svg>',unlock:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path></svg>',"upload-cloud":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline></svg>',upload:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line></svg>',"user-check":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline></svg>',"user-minus":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line></svg>',"user-plus":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg>',"user-x":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line></svg>',user:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>',users:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>',"video-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line></svg>',video:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect></svg>',voicemail:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line></svg>',"volume-1":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>',"volume-2":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path></svg>',"volume-x":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line></svg>',volume:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon></svg>',watch:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path></svg>',"wifi-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>',wifi:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>',wind:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path></svg>',"x-circle":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',"x-octagon":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><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"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>',"x-square":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line></svg>',x:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>',youtube:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon></svg>',"zap-off":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line></svg>',zap:'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg>',"zoom-in":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>',"zoom-out":'<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line></svg>'};function la(s){return u_t[s]||null}var nue={compact:{spacing:{xs:2,sm:4,md:6,lg:8,xl:12},button:{paddingX:12,paddingY:6,radius:4,fontSize:12,fontWeight:500},input:{paddingX:8,paddingY:4,radius:4,fontSize:12},card:{padding:8,radius:6,strokeWidth:1},heading:{fontSize:16,fontWeight:600,marginBottom:6},text:{fontSize:12,lineHeight:1.4},badge:{paddingX:6,paddingY:2,radius:"pill",fontSize:10},table:{cellPaddingX:8,cellPaddingY:4,headerFontWeight:600,borderWidth:1}},normal:{spacing:{xs:4,sm:8,md:12,lg:16,xl:24},button:{paddingX:18,paddingY:9,radius:6,fontSize:14,fontWeight:500},input:{paddingX:12,paddingY:6,radius:6,fontSize:14},card:{padding:12,radius:8,strokeWidth:1},heading:{fontSize:20,fontWeight:600,marginBottom:8},text:{fontSize:14,lineHeight:1.5},badge:{paddingX:8,paddingY:3,radius:"pill",fontSize:12},table:{cellPaddingX:12,cellPaddingY:6,headerFontWeight:600,borderWidth:1}},comfortable:{spacing:{xs:6,sm:12,md:16,lg:24,xl:32},button:{paddingX:24,paddingY:12,radius:8,fontSize:16,fontWeight:500},input:{paddingX:16,paddingY:8,radius:8,fontSize:16},card:{padding:16,radius:12,strokeWidth:1},heading:{fontSize:24,fontWeight:600,marginBottom:12},text:{fontSize:16,lineHeight:1.6},badge:{paddingX:12,paddingY:4,radius:"pill",fontSize:14},table:{cellPaddingX:16,cellPaddingY:8,headerFontWeight:600,borderWidth:1}}};function f_t(s){const e=s.density||"normal";return nue[e]||nue.normal}var g_t={light:{bg:"#F8FAFC",cardBg:"#FFFFFF",border:"#E2E8F0",text:"#000000",textMuted:"#64748B",primary:"#3B82F6",primaryHover:"#2563EB",primaryLight:"#EFF6FF"},dark:{bg:"#111111",cardBg:"#1C1C1C",border:"#303030",text:"#F0F0F0",textMuted:"#808080",primary:"#60A5FA",primaryHover:"#3B82F6",primaryLight:"#1C2A3A"}},p_t=class{constructor(s,e,t){this.renderedNodeIds=new Set,this.fontFamily="Arial, Helvetica, sans-serif",this.parentContainerByChildId=new Map,this.ir=s,this.layout=e,this.selectedScreenName=t?.screenName;const i=t?.theme||s.project.style.theme||"light";this.tokens=f_t(s.project.style),this.options={width:t?.width||1280,height:t?.height||720,theme:i,includeLabels:t?.includeLabels??!0,screenName:t?.screenName,showDiagnostics:t?.showDiagnostics??!1},this.colorResolver=new h_t,this.buildParentContainerIndex(),s.project.mocks&&Object.keys(s.project.mocks).length>0&&Up.setCustomMocks(s.project.mocks),s.project.colors&&Object.keys(s.project.colors).length>0&&this.colorResolver.setCustomColors(s.project.colors);const n=g_t[this.options.theme];this.renderTheme={...n,text:this.resolveTextColor(),textMuted:this.resolveMutedColor()}}getAvailableScreens(){return this.ir.project.screens.map(s=>({name:s.name,id:s.id}))}getSelectedScreen(){let s=this.ir.project.screens[0],e=s?.name||"Unknown";if(this.selectedScreenName){const t=this.ir.project.screens.find(i=>i.name.toLowerCase()===this.selectedScreenName.toLowerCase());t&&(s=t,e=t.name)}return{screen:s,name:e}}render(){const{screen:s}=this.getSelectedScreen();if(!s)return"<svg></svg>";const e=s.root.ref,t=[];this.renderedNodeIds.clear(),this.renderNode(e,t);const i=this.calculateContentHeight(),n=Math.max(this.options.height,i);let o=this.renderTheme.bg;return s.background&&(o=this.colorResolver.resolveColor(s.background,this.renderTheme.bg)),`<svg width="${this.options.width}" height="${n}" viewBox="0 0 ${this.options.width} ${n}" xmlns="http://www.w3.org/2000/svg">
|
|
1070
1070
|
<rect width="100%" height="100%" fill="${o}"/>
|