"use strict";(globalThis.webpackChunk_wpgraphql_wp_graphql=globalThis.webpackChunk_wpgraphql_wp_graphql||[]).push([[605],{986(t,e,r){r.d(e,{a:()=>o,m:()=>h});var n=r(3491),a=Object.defineProperty,c=(t,e)=>a(t,"name",{value:e,configurable:!0});function i(t,e){return e.forEach(function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach(function(r){if("default"!==r&&!(r in t)){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})}),Object.freeze(t)}c(i,"_mergeNamespaces");var o={exports:{}};!function(t){var e=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),r=t.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(t){return t&&t.bracketRegex||/[(){}[\]]/}function i(t,e,c){var i=t.getLineHandle(e.line),l=e.ch-1,h=c&&c.afterCursor;null==h&&(h=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var s=a(c),u=!h&&l>=0&&s.test(i.text.charAt(l))&&n[i.text.charAt(l)]||s.test(i.text.charAt(l+1))&&n[i.text.charAt(++l)];if(!u)return null;var f=">"==u.charAt(1)?1:-1;if(c&&c.strict&&f>0!=(l==e.ch))return null;var g=t.getTokenTypeAt(r(e.line,l+1)),m=o(t,r(e.line,l+(f>0?1:0)),f,g,c);return null==m?null:{from:r(e.line,l),to:m&&m.pos,match:m&&m.ch==u.charAt(0),forward:f>0}}function o(t,e,c,i,o){for(var l=o&&o.maxScanLineLength||1e4,h=o&&o.maxScanLines||1e3,s=[],u=a(o),f=c>0?Math.min(e.line+h,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-h),g=e.line;g!=f;g+=c){var m=t.getLine(g);if(m){var p=c>0?0:m.length-1,d=c>0?m.length:-1;if(!(m.length>l))for(g==e.line&&(p=e.ch-(c<0?1:0));p!=d;p+=c){var k=m.charAt(p);if(u.test(k)&&(void 0===i||(t.getTokenTypeAt(r(g,p+1))||"")==(i||""))){var v=n[k];if(v&&">"==v.charAt(1)==c>0)s.push(k);else{if(!s.length)return{pos:r(g,p),ch:k};s.pop()}}}}}return g-c!=(c>0?t.lastLine():t.firstLine())&&null}function l(t,n,a){for(var o=t.state.matchBrackets.maxHighlightLineLength||1e3,l=a&&a.highlightNonMatching,h=[],s=t.listSelections(),u=0;u<s.length;u++){var f=s[u].empty()&&i(t,s[u].head,a);if(f&&(f.match||!1!==l)&&t.getLine(f.from.line).length<=o){var g=f.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";h.push(t.markText(f.from,r(f.from.line,f.from.ch+1),{className:g})),f.to&&t.getLine(f.to.line).length<=o&&h.push(t.markText(f.to,r(f.to.line,f.to.ch+1),{className:g}))}}if(h.length){e&&t.state.focused&&t.focus();var m=c(function(){t.operation(function(){for(var t=0;t<h.length;t++)h[t].clear()})},"clear");if(!n)return m;setTimeout(m,800)}}function h(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=l(t,!1,t.state.matchBrackets)})}function s(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}c(a,"bracketRegex"),c(i,"findMatchingBracket"),c(o,"scanForBracket"),c(l,"matchBrackets"),c(h,"doMatchBrackets"),c(s,"clearHighlighted"),t.defineOption("matchBrackets",!1,function(e,r,n){n&&n!=t.Init&&(e.off("cursorActivity",h),e.off("focus",h),e.off("blur",s),s(e)),r&&(e.state.matchBrackets="object"==typeof r?r:{},e.on("cursorActivity",h),e.on("focus",h),e.on("blur",s))}),t.defineExtension("matchBrackets",function(){l(this,!0)}),t.defineExtension("findMatchingBracket",function(t,e,r){return(r||"boolean"==typeof e)&&(r?(r.strict=e,e=r):e=e?{strict:!0}:null),i(this,t,e)}),t.defineExtension("scanForBracket",function(t,e,r,n){return o(this,t,e,r,n)})}(n.a.exports);var l=o.exports,h=Object.freeze(i({__proto__:null,[Symbol.toStringTag]:"Module",default:l},[o.exports]))}}]);