import{g as b}from"./index-BwFBdTM3.js";import{e as w,a as S}from"./index.Bm5EmiRX.entry.js";import{a as E}from"./javascript-BIkgBgT-.js";function O(l,v){for(var i=0;i<v.length;i++){const s=v[i];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in l)){const r=Object.getOwnPropertyDescriptor(s,f);r&&Object.defineProperty(l,f,r.get?r:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var T={exports:{}};(function(l,v){(function(i){i(w(),S(),E)})(function(i){function s(r,c,o,a){this.state=r,this.mode=c,this.depth=o,this.prev=a}function f(r){return new s(i.copyState(r.mode,r.state),r.mode,r.depth,r.prev&&f(r.prev))}i.defineMode("jsx",function(r,c){var o=i.getMode(r,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),a=i.getMode(r,c&&c.base||"javascript");function j(e){var n=e.tagName;e.tagName=null;var t=o.indent(e,"","");return e.tagName=n,t}function g(e,n){return n.context.mode==o?x(e,n,n.context):y(e,n,n.context)}function x(e,n,t){if(t.depth==2)return e.match(/^.*?\*\//)?t.depth=1:e.skipToEnd(),"comment";if(e.peek()=="{"){o.skipAttribute(t.state);var u=j(t.state),p=t.state.context;if(p&&e.match(/^[^>]*>\s*$/,!1)){for(;p.prev&&!p.startOfLine;)p=p.prev;p.startOfLine?u-=r.indentUnit:t.prev.state.lexical&&(u=t.prev.state.lexical.indented)}else t.depth==1&&(u+=r.indentUnit);return n.context=new s(i.startState(a,u),a,0,n.context),null}if(t.depth==1){if(e.peek()=="<")return o.skipAttribute(t.state),n.context=new s(i.startState(o,j(t.state)),o,0,n.context),null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.depth=2,g(e,n)}var h=o.token(e,t.state),d=e.current(),m;return/\btag\b/.test(h)?/>$/.test(d)?t.state.context?t.depth=0:n.context=n.context.prev:/^</.test(d)&&(t.depth=1):!h&&(m=d.indexOf("{"))>-1&&e.backUp(d.length-m),h}function y(e,n,t){if(e.peek()=="<"&&!e.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&a.expressionAllowed(e,t.state))return n.context=new s(i.startState(o,a.indent(t.state,"","")),o,0,n.context),a.skipExpression(t.state),null;var u=a.token(e,t.state);if(!u&&t.depth!=null){var p=e.current();p=="{"?t.depth++:p=="}"&&--t.depth==0&&(n.context=n.context.prev)}return u}return{startState:function(){return{context:new s(i.startState(a),a)}},copyState:function(e){return{context:f(e.context)}},token:g,indent:function(e,n,t){return e.context.mode.indent(e.context.state,n,t)},innerMode:function(e){return e.context}}},"xml","javascript"),i.defineMIME("text/jsx","jsx"),i.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();var k=T.exports;const N=b(k),I=O({__proto__:null,default:N},[k]);export{I as j};
