(self.webpackChunk=self.webpackChunk||[]).push([["mode/jsx"],{3248:(t,e,n)=>{!function(t){"use strict";function e(t,e,n,a){this.state=t,this.mode=e,this.depth=n,this.prev=a}function n(a){return new e(t.copyState(a.mode,a.state),a.mode,a.depth,a.prev&&n(a.prev))}t.defineMode("jsx",(function(a,r){var s=t.getMode(a,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),i=t.getMode(a,r&&r.base||"javascript");function o(t){var e=t.tagName;t.tagName=null;var n=s.indent(t,"","");return t.tagName=e,n}function c(n,r){return r.context.mode==s?function(n,r,p){if(2==p.depth)return n.match(/^.*?\*\//)?p.depth=1:n.skipToEnd(),"comment";if("{"==n.peek()){s.skipAttribute(p.state);var u=o(p.state),d=p.state.context;if(d&&n.match(/^[^>]*>\s*$/,!1)){for(;d.prev&&!d.startOfLine;)d=d.prev;d.startOfLine?u-=a.indentUnit:p.prev.state.lexical&&(u=p.prev.state.lexical.indented)}else 1==p.depth&&(u+=a.indentUnit);return r.context=new e(t.startState(i,u),i,0,r.context),null}if(1==p.depth){if("<"==n.peek())return s.skipAttribute(p.state),r.context=new e(t.startState(s,o(p.state)),s,0,r.context),null;if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return p.depth=2,c(n,r)}var x,f=s.token(n,p.state),l=n.current();return/\btag\b/.test(f)?/>$/.test(l)?p.state.context?p.depth=0:r.context=r.context.prev:/^</.test(l)&&(p.depth=1):!f&&(x=l.indexOf("{"))>-1&&n.backUp(l.length-x),f}(n,r,r.context):function(n,a,r){if("<"==n.peek()&&!n.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&i.expressionAllowed(n,r.state))return a.context=new e(t.startState(s,i.indent(r.state,"","")),s,0,a.context),i.skipExpression(r.state),null;var o=i.token(n,r.state);if(!o&&null!=r.depth){var c=n.current();"{"==c?r.depth++:"}"==c&&0==--r.depth&&(a.context=a.context.prev)}return o}(n,r,r.context)}return{startState:function(){return{context:new e(t.startState(i),i)}},copyState:function(t){return{context:n(t.context)}},token:c,indent:function(t,e,n){return t.context.mode.indent(t.context.state,e,n)},innerMode:function(t){return t.context}}}),"xml","javascript"),t.defineMIME("text/jsx","jsx"),t.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})}(n(2063),n(2840),n(9360))}}]);
//# sourceMappingURL=jsx.js.map