(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[44020,70902],{44020:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(47359));t.default=a.default},47359:function(e){"use strict";function t(e){!function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,a=r.inside["interpolation-punctuation"],s=r.pattern.source;function o(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function i(t,n,r){var a={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",a),a.tokens=e.tokenize(a.code,a.grammar),e.hooks.run("after-tokenize",a),a.tokens}e.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),t].filter(Boolean);var u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};e.hooks.add("after-tokenize",function(t){t.language in u&&function t(n){for(var o=0,u=n.length;o<u;o++){var p=n[o];if("string"!=typeof p){var l=p.content;if(!Array.isArray(l)){"string"!=typeof l&&t([l]);continue}if("template-string"===p.type){var c=l[1];if(3===l.length&&"string"!=typeof c&&"embedded-code"===c.type){var f=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(c),g=c.alias,d=Array.isArray(g)?g[0]:g,v=e.languages[d];if(!v)continue;l[1]=function(t,n,o){var u=e.tokenize(t,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),p=0,l={},c=i(u.map(function(e){if("string"==typeof e)return e;for(var n,r,a=e.content;-1!==t.indexOf((n=p++,r="___"+o.toUpperCase()+"_"+n+"___")););return l[r]=a,r}).join(""),n,o),f=Object.keys(l);return p=0,!function t(n){for(var s=0;s<n.length;s++){if(p>=f.length)return;var o=n[s];if("string"==typeof o||"string"==typeof o.content){var u=f[p],c="string"==typeof o?o:o.content,g=c.indexOf(u);if(-1!==g){++p;var d=c.substring(0,g),v=function(t){var n={};n["interpolation-punctuation"]=a;var s=e.tokenize(t,n);if(3===s.length){var o=[1,1];o.push.apply(o,i(s[1],e.languages.javascript,"javascript")),s.splice.apply(s,o)}return new e.Token("interpolation",s,r.alias,t)}(l[u]),y=c.substring(g+u.length),k=[];if(d&&k.push(d),k.push(v),y){var h=[y];t(h),k.push.apply(k,h)}"string"==typeof o?(n.splice.apply(n,[s,1].concat(k)),s+=k.length-1):o.content=k}}else{var m=o.content;Array.isArray(m)?t(m):t([m])}}}(c),new e.Token(o,c,"language-"+o,t)}(f,v,d)}}else t(l)}}}(t.tokens)})}(e)}e.exports=t,t.displayName="jsTemplates",t.aliases=[]},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}}]);