"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8149],{8149:function(e,O,n){n.r(O),n.d(O,{completeFromSchema:function(){return x},xml:function(){return Q},xmlLanguage:function(){return X}});var t=n(726),r=n(1976),a=n(2951),o=n(8551),l=n(994);function s(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}var i=null,y=null,c=0;function u(e,O){var n,t=e.pos+O;if(y==e&&c==t)return i;for(;9==(n=e.peek(O))||10==n||13==n||32==n;)O++;for(var r="";;){var a=e.peek(O);if(!s(a))break;r+=String.fromCharCode(a),O++}return y=e,c=t,i=r||null}function p(e,O){this.name=e,this.parent=O,this.hash=O?O.hash:0;for(var n=0;n=O.length&&n.acceptToken(e,1-O.length);break}}else t=n.next==O.charCodeAt(0)?1:0;n.advance()}}))}var v=S(35,"--\x3e"),m=S(36,"?>"),d=S(37,"]]>"),g=(0,l.Gv)({Text:l.pJ.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":l.pJ.angleBracket,TagName:l.pJ.tagName,"MismatchedCloseTag/Tagname":[l.pJ.tagName,l.pJ.invalid],AttributeName:l.pJ.attributeName,AttributeValue:l.pJ.attributeValue,Is:l.pJ.definitionOperator,"EntityReference CharacterReference":l.pJ.character,Comment:l.pJ.blockComment,ProcessingInst:l.pJ.processingInstruction,DoctypeDecl:l.pJ.documentMeta,Cdata:l.pJ.special(l.pJ.string)}),P=o.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#U",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=O.textContent?O.textContent.map((function(e){return{label:e,type:"text"}})):[]})),C=/^[:\-\.\w\u00b7-\uffff]*$/;function W(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function V(e){return"string"==typeof e?{label:'"'.concat(e,'"'),type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:'"'.concat(e.label,'"')})}function x(e,O){var n,r=[],a=[],o=Object.create(null),l=(0,t.Z)(O);try{for(l.s();!(n=l.n()).done;){var s=n.value,i=W(s);r.push(i),s.global&&a.push(i),s.values&&(o[s.name]=s.values.map(V))}}catch(x){l.e(x)}finally{l.f()}var y,c=[],u=[],p=Object.create(null),$=(0,t.Z)(e);try{var f=function(){var e=y.value,O=a,n=o;e.attributes&&(O=O.concat(e.attributes.map((function(e){return"string"==typeof e?r.find((function(O){return O.label==e}))||{label:e,type:"property"}:(e.values&&(n==o&&(n=Object.create(n)),n[e.name]=e.values.map(V)),W(e))}))));var t=new w(e,O,n);p[t.name]=t,c.push(t),e.top&&u.push(t)};for($.s();!(y=$.n()).done;)f()}catch(x){$.e(x)}finally{$.f()}u.length||(u=c);for(var S=0;SO||r.lastChild.type.isError)){var o=r.parent;if("TagName"==t.name)return"CloseTag"==r.name||"MismatchedCloseTag"==r.name?{type:"closeTag",from:t.from,context:o}:{type:"openTag",from:t.from,context:b(o)};if("AttributeName"==t.name)return{type:"attrName",from:t.from,context:r};if("AttributeValue"==t.name)return{type:"attrValue",from:t.from,context:r};var l=t==r||"Attribute"==t.name?t.childBefore(O):t;return"StartTag"==(null===l||void 0===l?void 0:l.name)?{type:"openTag",from:O,context:b(o)}:"StartCloseTag"==(null===l||void 0===l?void 0:l.name)&&l.to<=O?{type:"closeTag",from:O,context:o}:"Is"==(null===l||void 0===l?void 0:l.name)?{type:"attrValue",from:O,context:r}:l?{type:"attrName",from:O,context:r}:null}if("StartCloseTag"==t.name)return{type:"closeTag",from:O,context:t.parent};for(;t.parent&&t.to==O&&!(null===(n=t.lastChild)||void 0===n?void 0:n.type.isError);)t=t.parent;return"Element"==t.name||"Text"==t.name||"Document"==t.name?{type:"tag",from:O,context:"Element"==t.name?t:b(t)}:null}(e.state,e.pos);if(!t||"tag"==t.type&&!e.explicit)return null;var r=t.type,l=t.from,s=t.context;if("openTag"==r){var i=u,y=T(n,s);if(y){var $=p[y];i=(null===$||void 0===$?void 0:$.children)||c}return{from:l,options:i.map((function(e){return e.completion})),validFor:C}}if("closeTag"==r){var f=T(n,s);return f?{from:l,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(O=p[f])||void 0===O?void 0:O.closeNameCompletion)||{label:f+">",type:"type"}],validFor:C}:null}if("attrName"==r){var S=p[_(n,s)];return{from:l,options:(null===S||void 0===S?void 0:S.attrs)||a,validFor:C}}if("attrValue"==r){var v=function(e,O,n){var t=O&&O.getChildren("Attribute").find((function(e){return e.from<=n&&e.to>=n})),r=t&&t.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}(n,s,l);if(!v)return null;var m=p[_(n,s)],d=((null===m||void 0===m?void 0:m.attrValues)||o)[v];return d&&d.length?{from:l,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:d,validFor:/^"[^"]*"?$/}:null}if("tag"==r){var g=T(n,s),P=p[g],w=[],W=s&&s.lastChild;!g||W&&"CloseTag"==W.name&&_(n,W)==g||w.push(P?P.closeCompletion:{label:"",type:"type",boost:2});var V=w.concat(((null===P||void 0===P?void 0:P.children)||(s?c:u)).map((function(e){return e.openCompletion})));if(s&&(null===P||void 0===P?void 0:P.text.length)){var x=s.firstChild;x.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(x.to,e.pos))&&(V=V.concat(P.text))}return{from:l,options:V,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}var X=h.qp.define({name:"xml",parser:P.configure({props:[h.uj.add({Element:function(e){var O=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(O?0:e.unit)},"OpenTag CloseTag SelfClosingTag":function(e){return e.column(e.node.from)+e.unit}}),h.x0.add({Element:function(e){var O=e.firstChild,n=e.lastChild;return O&&"OpenTag"==O.name?{from:O.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),h.a0.add({"OpenTag CloseTag":function(e){return e.getChild("TagName")}})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new h.ri(X,X.data.of({autocomplete:x(e.elements||[],e.attributes||[])}))}}}]); //# sourceMappingURL=8149.9bc1da44.chunk.js.map