mirror of
https://github.com/atisawd/boxicons.git
synced 2024-12-22 20:32:38 +01:00
2a18efb31d
added web component
2 lines
No EOL
21 KiB
JavaScript
2 lines
No EOL
21 KiB
JavaScript
webpackJsonp([1],{454:function(e,t,n){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return(0,m.bindActionCreators)({changeSideIcon:f.changeSideIcon,setSelectedIcon:f.setSelectedIcon},e)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,n,a){return n&&e(t.prototype,n),a&&e(t,a),t}}(),c=n(5),u=a(c),d=n(54),m=n(48),f=n(77),h=n(457),p=a(h),b=n(458),g=a(b),v=n(78),E=a(v);n(36);p.default.registerLanguage("xml",g.default);var x=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={color:"black",copied:!1,code:null,componentCode:null,colorChoiceDisplay:!1,animateChoiceDisplay:!1,rotate:0,type:"component",animation:"none"},n.handleBoxClose=n.handleBoxClose.bind(n),n.handleColor=n.handleColor.bind(n),n.handleRotate=n.handleRotate.bind(n),n.copyCode=n.copyCode.bind(n),n.handleCurrentColor=n.handleCurrentColor.bind(n),n.handleAnimate=n.handleAnimate.bind(n),n.handleCurrentAnimation=n.handleCurrentAnimation.bind(n),n.changeType=n.changeType.bind(n),n}return l(t,e),r(t,[{key:"changeType",value:function(e){this.setState({type:e})}},{key:"componentWillMount",value:function(){"SOLID"===this.props.icon.type_of_icon?this.setState({code:"<i class='bx bxs-"+this.props.icon.name+"'></i>",componentCode:"<box-icon type='solid' name='"+this.props.icon.name+"'></box-icon>"}):"LOGO"===this.props.icon.type_of_icon?this.setState({code:"<i class='bx bxl-"+this.props.icon.name+"'></i>",componentCode:"<box-icon type='logo' name='"+this.props.icon.name+"'></box-icon>"}):this.setState({code:"<i class='bx bx-"+this.props.icon.name+"'></i>",componentCode:"<box-icon name='"+this.props.icon.name+"'></box-icon>"})}},{key:"componentDidMount",value:function(){for(var e=document.querySelectorAll("code"),t=0;t<e.length;t++)p.default.highlightBlock(e[t])}},{key:"componentDidUpdate",value:function(){for(var e=document.querySelectorAll("code"),t=0;t<e.length;t++)p.default.highlightBlock(e[t])}},{key:"componentWillReceiveProps",value:function(e){if(this.props.icon.slug!==e.icon.slug){var t="bx bx-"+e.icon.name,n="name='"+e.icon.name+"' ";"SOLID"===e.icon.type_of_icon?(t="bx bxs-"+e.icon.name,n+="type='solid' "):"LOGO"===e.icon.type_of_icon&&(t="bx bxl-"+e.icon.name,n+="type='logo' "),"none"!==this.state.animation&&(t+=" bx-"+this.state.animation,n+="animation='"+this.state.animation+"' "),this.state.rotate>0&&(t+=" bx-rotate-"+this.state.rotate,n+="rotate='"+this.state.rotate+"' "),this.setState({code:"<i class='"+t+"'></i>",componentCode:"<box-icon "+n+"></box-icon>"})}}},{key:"handleRotate",value:function(){var e="bx bx-"+this.props.icon.name,t="name='"+this.props.icon.name+"' ";"SOLID"===this.props.icon.type_of_icon?(e="bx bxs-"+this.props.icon.name,t+="type='solid' "):"LOGO"===this.props.icon.type_of_icon&&(e="bx bxl-"+this.props.icon.name,t+="type='logo' "),"none"!==this.state.animation&&(e+=" bx-"+this.state.animation,t+="animation='"+this.state.animation+"' "),this.state.rotate+90!==360?(this.setState({rotate:this.state.rotate+90}),e+=" bx-rotate-"+(this.state.rotate+90),t+="rotate='"+(this.state.rotate+90)+"' "):this.setState({rotate:0}),this.setState({code:"<i class='"+e+"'></i>",componentCode:"<box-icon "+t+"></box-icon>"})}},{key:"handleAnimate",value:function(e){this.setState({animation:e}),this.setState({animateChoiceDisplay:!1});var t="bx bx-"+this.props.icon.name,n="name='"+this.props.icon.name+"' ";"SOLID"===this.props.icon.type_of_icon?(t="bx bxs-"+this.props.icon.name,n+="type='solid' "):"LOGO"===this.props.icon.type_of_icon&&(t="bx bxl-"+this.props.icon.name,n+="type='logo' "),"none"!==e&&(t+=" bx-"+e,n+="animation='"+e+"' "),this.state.rotate>0&&(t+=" bx-rotate-"+this.state.rotate,n+="animation='"+this.state.rotate+"' "),this.setState({code:"<i class='"+t+"'></i>",componentCode:"<box-icon "+n+"></box-icon>"})}},{key:"handleColor",value:function(e){this.setState({color:e}),this.setState({colorChoiceDisplay:!1})}},{key:"handleCurrentColor",value:function(){this.setState({colorChoiceDisplay:!this.state.colorChoiceDisplay}),this.setState({animateChoiceDisplay:!1})}},{key:"handleCurrentAnimation",value:function(){this.setState({animateChoiceDisplay:!this.state.animateChoiceDisplay}),this.setState({colorChoiceDisplay:!1})}},{key:"copyCode",value:function(){document.querySelector("#code").select(),document.execCommand("copy"),this.setState({copied:!0}),setTimeout(function(){this.setState({copied:!1})}.bind(this),1e3)}},{key:"handleBoxClose",value:function(){this.props.changeSideIcon(!1),this.props.setSelectedIcon(null,null)}},{key:"render",value:function(){var e=this,t=(0,E.default)({active:this.state.copied,copied:!0}),n="/static/img/svg/bx-"+this.props.icon.name+".svg",a=this.props.icon,i="bx-"+a.name;return"SOLID"===a.type_of_icon?(n="/static/img/svg/bxs-"+this.props.icon.name+".svg",i="bxs-"+a.name):"LOGO"===a.type_of_icon&&(n="/static/img/svg/bxl-"+this.props.icon.name+".svg",i="bxl-"+a.name),u.default.createElement("div",{className:" "},u.default.createElement("div",{className:"icon "},u.default.createElement("div",{className:"box-bg "+this.state.color},u.default.createElement("i",{className:"bx "+i+" bx-rotate-"+this.state.rotate+" bx-"+this.state.animation}),"white"===this.state.color&&u.default.createElement("div",{className:"blox-bg-overlay"})),u.default.createElement("div",{className:" icon-head"},u.default.createElement("div",{className:" icon-head-name"},a.name),u.default.createElement("div",{className:" icon-footer"},u.default.createElement("div",{className:" icon-color"},this.state.colorChoiceDisplay&&u.default.createElement("div",{className:" color-choices"},u.default.createElement("div",{className:"color black",onClick:function(){return e.handleColor("black")}}),u.default.createElement("div",{className:"color orange",onClick:function(){return e.handleColor("orange")}}),u.default.createElement("div",{className:"color yellow",onClick:function(){return e.handleColor("yellow")}}),u.default.createElement("div",{className:"color green",onClick:function(){return e.handleColor("green")}}),u.default.createElement("div",{className:"color blue",onClick:function(){return e.handleColor("blue")}}),u.default.createElement("div",{className:"color purple",onClick:function(){return e.handleColor("purple")}}),u.default.createElement("div",{className:"color red",onClick:function(){return e.handleColor("red")}}),u.default.createElement("div",{className:"color white",onClick:function(){return e.handleColor("white")}})),u.default.createElement("div",{className:" current-color",onClick:this.handleCurrentColor},u.default.createElement("div",{className:"color "+this.state.color}))),u.default.createElement("div",{className:"icon-rotate",onClick:this.handleRotate},u.default.createElement("i",{className:"bx bx-rotate"})),u.default.createElement("div",{className:"animate-box"},u.default.createElement("div",{className:"icon-animate",onClick:this.handleCurrentAnimation},u.default.createElement("i",{className:"bx bx-play"})),this.state.animateChoiceDisplay&&u.default.createElement("div",{className:"animate-choices"},u.default.createElement("div",{className:"animate tada",onClick:function(){return e.handleAnimate("tada")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-tada"})),u.default.createElement("div",{className:"animate flashing",onClick:function(){return e.handleAnimate("flashing")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-flashing"})),u.default.createElement("div",{className:"animate burst",onClick:function(){return e.handleAnimate("burst")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-burst"})),u.default.createElement("div",{className:"animate spin",onClick:function(){return e.handleAnimate("spin")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-spin"})),u.default.createElement("div",{className:"animate fade-left",onClick:function(){return e.handleAnimate("fade-left")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-fade-left"})),u.default.createElement("div",{className:"animate fade-right",onClick:function(){return e.handleAnimate("fade-right")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-fade-right"})),u.default.createElement("div",{className:"animate fade-up",onClick:function(){return e.handleAnimate("fade-up")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-fade-up"})),u.default.createElement("div",{className:"animate fade-down",onClick:function(){return e.handleAnimate("fade-down")}},u.default.createElement("i",{className:"bx "+i+" bx-sm bx-fade-down"})),u.default.createElement("div",{className:"animate none",onClick:function(){return e.handleAnimate("none")}},"none"))),u.default.createElement("div",{className:"icon-code"},u.default.createElement("div",{className:"code-options"},u.default.createElement("div",{className:"component"===this.state.type?"code-option active":"code-option",onClick:function(){return e.changeType("component")}},"Web Component"),u.default.createElement("div",{className:"font"===this.state.type?"code-option active":"code-option",onClick:function(){return e.changeType("font")}},"Font")),u.default.createElement("div",{className:"icon-code-in",onClick:this.copyCode},"component"===this.state.type?u.default.createElement("div",null,u.default.createElement("pre",null," ",u.default.createElement("code",{className:"html"},this.state.componentCode)),u.default.createElement("input",{className:"hidden",type:"text",onChange:function(){},value:this.state.componentCode,id:"code"}),u.default.createElement("div",{className:t},"Copied ",u.default.createElement("i",{className:"bx bx-check"}))):u.default.createElement("div",null," ",u.default.createElement("pre",null," ",u.default.createElement("code",{className:"html"},this.state.code)),u.default.createElement("input",{className:"hidden",type:"text",onChange:function(){},value:this.state.code,id:"code"}),u.default.createElement("div",{className:t},"Copied ",u.default.createElement("i",{className:"bx bx-check"})))," ")))),u.default.createElement("div",{className:"icon-buttons "},u.default.createElement("a",{href:n,download:i,className:"button icon-download "},u.default.createElement("i",{className:"bx bx-download"}),u.default.createElement("div",{className:"button-name"},"SVG"))),u.default.createElement("div",{className:"icon-close",onClick:this.handleBoxClose},u.default.createElement("i",{className:"bx bx-x"}))))}}]),t}(c.Component);t.default=(0,d.connect)(null,s)(x)},457:function(e,t,n){!function(e){"object"==typeof window&&window||"object"==typeof self&&self;e(t)}(function(e){function t(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function n(e){return e.nodeName.toLowerCase()}function a(e,t){var n=e&&e.exec(t);return n&&0===n.index}function i(e){return R.test(e)}function o(e){var t,n,a,o,l=e.className+" ";if(l+=e.parentNode?e.parentNode.className:"",n=k.exec(l))return N(n[1])?n[1]:"no-highlight";for(l=l.split(/\s+/),t=0,a=l.length;t<a;t++)if(o=l[t],i(o)||N(o))return o}function l(e){var t,n={},a=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return a.forEach(function(e){for(t in e)n[t]=e[t]}),n}function s(e){var t=[];return function e(a,i){for(var o=a.firstChild;o;o=o.nextSibling)3===o.nodeType?i+=o.nodeValue.length:1===o.nodeType&&(t.push({event:"start",offset:i,node:o}),i=e(o,i),n(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}));return i}(e,0),t}function r(e,a,i){function o(){return e.length&&a.length?e[0].offset!==a[0].offset?e[0].offset<a[0].offset?e:a:"start"===a[0].event?e:a:e.length?e:a}function l(e){function a(e){return" "+e.nodeName+'="'+t(e.value).replace('"',""")+'"'}u+="<"+n(e)+y.map.call(e.attributes,a).join("")+">"}function s(e){u+="</"+n(e)+">"}function r(e){("start"===e.event?l:s)(e.node)}for(var c=0,u="",d=[];e.length||a.length;){var m=o();if(u+=t(i.substring(c,m[0].offset)),c=m[0].offset,m===e){d.reverse().forEach(s);do{r(m.splice(0,1)[0]),m=o()}while(m===e&&m.length&&m[0].offset===c);d.reverse().forEach(l)}else"start"===m[0].event?d.push(m[0].node):d.pop(),r(m.splice(0,1)[0])}return u+t(i.substr(c))}function c(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(t){return l(e,{variants:null},t)})),e.cached_variants||e.endsWithParent&&[l(e)]||[e]}function u(e){function t(e){return e&&e.source||e}function n(n,a){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(a?"g":""))}function a(i,o){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var l={},s=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");l[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof i.keywords?s("keyword",i.keywords):C(i.keywords).forEach(function(e){s(e,i.keywords[e])}),i.keywords=l}i.lexemesRe=n(i.lexemes||/\w+/,!0),o&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=n(i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=n(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&o.terminator_end&&(i.terminator_end+=(i.end?"|":"")+o.terminator_end)),i.illegal&&(i.illegalRe=n(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map(function(e){return c("self"===e?i:e)})),i.contains.forEach(function(e){a(e,i)}),i.starts&&a(i.starts,o);var r=i.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=r.length?n(r.join("|"),!0):{exec:function(){return null}}}}a(e)}function d(e,n,i,o){function l(e,t){var n,i;for(n=0,i=t.contains.length;n<i;n++)if(a(t.contains[n].beginRe,e))return t.contains[n]}function s(e,t){if(a(e.endRe,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}if(e.endsWithParent)return s(e.parent,t)}function r(e,t){return!i&&a(t.illegalRe,e)}function c(e,t){var n=E.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function f(e,t,n,a){var i=a?"":A.classPrefix,o='<span class="'+i,l=n?"":O;return(o+=e+'">')+t+l}function h(){var e,n,a,i;if(!y.keywords)return t(R);for(i="",n=0,y.lexemesRe.lastIndex=0,a=y.lexemesRe.exec(R);a;)i+=t(R.substring(n,a.index)),e=c(y,a),e?(k+=e[1],i+=f(e[0],t(a[0]))):i+=t(a[0]),n=y.lexemesRe.lastIndex,a=y.lexemesRe.exec(R);return i+t(R.substr(n))}function p(){var e="string"==typeof y.subLanguage;if(e&&!_[y.subLanguage])return t(R);var n=e?d(y.subLanguage,R,!0,C[y.subLanguage]):m(R,y.subLanguage.length?y.subLanguage:void 0);return y.relevance>0&&(k+=n.relevance),e&&(C[y.subLanguage]=n.top),f(n.language,n.value,!1,!0)}function b(){w+=null!=y.subLanguage?p():h(),R=""}function g(e){w+=e.className?f(e.className,"",!0):"",y=Object.create(e,{parent:{value:y}})}function v(e,t){if(R+=e,null==t)return b(),0;var n=l(t,y);if(n)return n.skip?R+=t:(n.excludeBegin&&(R+=t),b(),n.returnBegin||n.excludeBegin||(R=t)),g(n,t),n.returnBegin?0:t.length;var a=s(y,t);if(a){var i=y;i.skip?R+=t:(i.returnEnd||i.excludeEnd||(R+=t),b(),i.excludeEnd&&(R=t));do{y.className&&(w+=O),y.skip||(k+=y.relevance),y=y.parent}while(y!==a.parent);return a.starts&&g(a.starts,""),i.returnEnd?0:t.length}if(r(t,y))throw new Error('Illegal lexeme "'+t+'" for mode "'+(y.className||"<unnamed>")+'"');return R+=t,t.length||1}var E=N(e);if(!E)throw new Error('Unknown language: "'+e+'"');u(E);var x,y=o||E,C={},w="";for(x=y;x!==E;x=x.parent)x.className&&(w=f(x.className,"",!0)+w);var R="",k=0;try{for(var S,M,D=0;;){if(y.terminators.lastIndex=D,!(S=y.terminators.exec(n)))break;M=v(n.substring(D,S.index),S[0]),D=S.index+M}for(v(n.substr(D)),x=y;x.parent;x=x.parent)x.className&&(w+=O);return{relevance:k,value:w,language:e,top:y}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:t(n)};throw e}}function m(e,n){n=n||A.languages||C(_);var a={relevance:0,value:t(e)},i=a;return n.filter(N).forEach(function(t){var n=d(t,e,!1);n.language=t,n.relevance>i.relevance&&(i=n),n.relevance>a.relevance&&(i=a,a=n)}),i.language&&(a.second_best=i),a}function f(e){return A.tabReplace||A.useBR?e.replace(S,function(e,t){return A.useBR&&"\n"===e?"<br>":A.tabReplace?t.replace(/\t/g,A.tabReplace):""}):e}function h(e,t,n){var a=t?w[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(a)&&i.push(a),i.join(" ").trim()}function p(e){var t,n,a,l,c,u=o(e);i(u)||(A.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e,c=t.textContent,a=u?d(u,c,!0):m(c),n=s(t),n.length&&(l=document.createElementNS("http://www.w3.org/1999/xhtml","div"),l.innerHTML=a.value,a.value=r(n,s(l),c)),a.value=f(a.value),e.innerHTML=a.value,e.className=h(e.className,u,a.language),e.result={language:a.language,re:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance}))}function b(e){A=l(A,e)}function g(){if(!g.called){g.called=!0;var e=document.querySelectorAll("pre code");y.forEach.call(e,p)}}function v(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)}function E(t,n){var a=_[t]=n(e);a.aliases&&a.aliases.forEach(function(e){w[e]=t})}function x(){return C(_)}function N(e){return e=(e||"").toLowerCase(),_[e]||_[w[e]]}var y=[],C=Object.keys,_={},w={},R=/^(no-?highlight|plain|text)$/i,k=/\blang(?:uage)?-([\w-]+)\b/i,S=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,O="</span>",A={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};return e.highlight=d,e.highlightAuto=m,e.fixMarkup=f,e.highlightBlock=p,e.configure=b,e.initHighlighting=g,e.initHighlightingOnLoad=v,e.registerLanguage=E,e.listLanguages=x,e.getLanguage=N,e.inherit=l,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(t,n,a){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},a||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e})},458:function(e,t){e.exports=function(e){var t={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"<!DOCTYPE",end:">",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"<style(?=\\s|>|$)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>|$)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}}});
|
|
//# sourceMappingURL=1.bundle.js.map
|