芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/tblonline.org/public/backend/plugins/tinymce/plugins/codesample/plugin.js
(function () { var codesample = (function () { 'use strict'; var Cell = function (initial) { var value = initial; var get = function () { return value; }; var set = function (v) { value = v; }; var clone = function () { return Cell(get()); }; return { get: get, set: set, clone: clone }; }; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var global$1 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils'); var getContentCss = function (editor) { return editor.settings.codesample_content_css; }; var getLanguages = function (editor) { return editor.settings.codesample_languages; }; var getDialogMinWidth = function (editor) { return Math.min(global$1.DOM.getViewPort().w, editor.getParam('codesample_dialog_width', 800)); }; var getDialogMinHeight = function (editor) { return Math.min(global$1.DOM.getViewPort().w, editor.getParam('codesample_dialog_height', 650)); }; var $_7mx4fhabjkmcduic = { getContentCss: getContentCss, getLanguages: getLanguages, getDialogMinWidth: getDialogMinWidth, getDialogMinHeight: getDialogMinHeight }; var window$$1 = {}; var global$2 = window$$1; var _self = typeof window$$1 !== 'undefined' ? window$$1 : typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope ? self : {}; var Prism = function () { var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i; var _ = _self.Prism = { util: { encode: function (tokens) { if (tokens instanceof Token) { return new Token(tokens.type, _.util.encode(tokens.content), tokens.alias); } else if (_.util.type(tokens) === 'Array') { return tokens.map(_.util.encode); } else { return tokens.replace(/&/g, '&').replace(/ text.length) { break tokenloop; } if (str instanceof Token) { continue; } pattern.lastIndex = 0; var match = pattern.exec(str); if (match) { if (lookbehind) { lookbehindLength = match[1].length; } var from = match.index - 1 + lookbehindLength; match = match[0].slice(lookbehindLength); var len = match.length, to = from + len, before = str.slice(0, from + 1), after = str.slice(to + 1); var args = [ i, 1 ]; if (before) { args.push(before); } var wrapped = new Token(token, inside ? _.tokenize(match, inside) : match, alias); args.push(wrapped); if (after) { args.push(after); } Array.prototype.splice.apply(strarr, args); } } } } return strarr; }, hooks: { all: {}, add: function (name$$1, callback) { var hooks = _.hooks.all; hooks[name$$1] = hooks[name$$1] || []; hooks[name$$1].push(callback); }, run: function (name$$1, env) { var callbacks = _.hooks.all[name$$1]; if (!callbacks || !callbacks.length) { return; } for (var i = 0, callback = void 0; callback = callbacks[i++];) { callback(env); } } } }; var Token = _.Token = function (type, content, alias) { this.type = type; this.content = content; this.alias = alias; }; Token.stringify = function (o, language, parent$$1) { if (typeof o === 'string') { return o; } if (_.util.type(o) === 'Array') { return o.map(function (element) { return Token.stringify(element, language, o); }).join(''); } var env = { type: o.type, content: Token.stringify(o.content, language, parent$$1), tag: 'span', classes: [ 'token', o.type ], attributes: {}, language: language, parent: parent$$1 }; if (env.type === 'comment') { env.attributes.spellcheck = 'true'; } if (o.alias) { var aliases = _.util.type(o.alias) === 'Array' ? o.alias : [o.alias]; Array.prototype.push.apply(env.classes, aliases); } _.hooks.run('wrap', env); var attributes = ''; for (var name$$1 in env.attributes) { attributes += (attributes ? ' ' : '') + name$$1 + '="' + (env.attributes[name$$1] || '') + '"'; } return '<' + env.tag + ' class="' + env.classes.join(' ') + '" ' + attributes + '>' + env.content + '' + env.tag + '>'; }; if (!_self.document) { if (!_self.addEventListener) { return _self.Prism; } _self.addEventListener('message', function (evt) { var message = JSON.parse(evt.data), lang = message.language, code = message.code, immediateClose = message.immediateClose; _self.postMessage(_.highlight(code, _.languages[lang], lang)); if (immediateClose) { _self.close(); } }, false); return _self.Prism; } }(); if (typeof global$2 !== 'undefined') { global$2.Prism = Prism; } Prism.languages.markup = { comment: //, prolog: /<\?[\w\W]+?\?>/, doctype: //, cdata: //i, tag: { pattern: /<\/?[^\s>\/=.]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i, inside: { 'tag': { pattern: /^<\/?[^\s>\/]+/i, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, 'attr-value': { pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i, inside: { punctuation: /[=>"']/ } }, 'punctuation': /\/?>/, 'attr-name': { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: /?[\da-z]{1,8};/i }; Prism.hooks.add('wrap', function (env) { if (env.type === 'entity') { env.attributes.title = env.content.replace(/&/, '&'); } }); Prism.languages.xml = Prism.languages.markup; Prism.languages.html = Prism.languages.markup; Prism.languages.mathml = Prism.languages.markup; Prism.languages.svg = Prism.languages.markup; Prism.languages.css = { comment: /\/\*[\w\W]*?\*\//, atrule: { pattern: /@[\w-]+?.*?(;|(?=\s*\{))/i, inside: { rule: /@[\w-]+/ } }, url: /url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i, selector: /[^\{\}\s][^\{\};]*?(?=\s*\{)/, string: /("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/, property: /(\b|\B)[\w-]+(?=\s*:)/i, important: /\B!important\b/i, function: /[-a-z0-9]+(?=\()/i, punctuation: /[(){};:]/ }; Prism.languages.css.atrule.inside.rest = Prism.util.clone(Prism.languages.css); if (Prism.languages.markup) { Prism.languages.insertBefore('markup', 'tag', { style: { pattern: /