1 | (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
2 | module.exports = {
|
3 | VERSION: '%KARMA_VERSION%',
|
4 | KARMA_URL_ROOT: '%KARMA_URL_ROOT%',
|
5 | KARMA_PROXY_PATH: '%KARMA_PROXY_PATH%',
|
6 | BROWSER_SOCKET_TIMEOUT: '%BROWSER_SOCKET_TIMEOUT%',
|
7 | CONTEXT_URL: 'context.html'
|
8 | }
|
9 |
|
10 | },{}],2:[function(require,module,exports){
|
11 | var stringify = require('../common/stringify')
|
12 | var constant = require('./constants')
|
13 | var util = require('../common/util')
|
14 |
|
15 | function Karma (socket, iframe, opener, navigator, location, document) {
|
16 | var startEmitted = false
|
17 | var reloadingContext = false
|
18 | var self = this
|
19 | var queryParams = util.parseQueryParams(location.search)
|
20 | var browserId = queryParams.id || util.generateId('manual-')
|
21 | var displayName = queryParams.displayName
|
22 | var returnUrl = queryParams['return_url' + ''] || null
|
23 |
|
24 | var resultsBufferLimit = 50
|
25 | var resultsBuffer = []
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | var policy = {
|
34 | createURL: function (s) {
|
35 | return s
|
36 | },
|
37 | createScriptURL: function (s) {
|
38 | return s
|
39 | }
|
40 | }
|
41 | var trustedTypes = window.trustedTypes || window.TrustedTypes
|
42 | if (trustedTypes) {
|
43 | policy = trustedTypes.createPolicy('karma', policy)
|
44 | if (!policy.createURL) {
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | policy.createURL = function (s) { return s }
|
51 | }
|
52 | }
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | var socketReconnect = false
|
58 |
|
59 | this.VERSION = constant.VERSION
|
60 | this.config = {}
|
61 |
|
62 |
|
63 |
|
64 | this.socket = socket
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | if (window.addEventListener) {
|
70 | window.addEventListener('message', function handleMessage (evt) {
|
71 |
|
72 | var origin = evt.origin || evt.originalEvent.origin
|
73 |
|
74 |
|
75 | if (origin !== window.location.origin) {
|
76 | return
|
77 | }
|
78 |
|
79 |
|
80 | var method = evt.data.__karmaMethod
|
81 | if (method) {
|
82 | if (!self[method]) {
|
83 | self.error('Received `postMessage` for "' + method + '" but the method doesn\'t exist')
|
84 | return
|
85 | }
|
86 | self[method].apply(self, evt.data.__karmaArguments)
|
87 | }
|
88 | }, false)
|
89 | }
|
90 |
|
91 | var childWindow = null
|
92 | function navigateContextTo (url) {
|
93 | if (self.config.useIframe === false) {
|
94 |
|
95 | if (self.config.runInParent === false) {
|
96 |
|
97 |
|
98 | if (childWindow !== null && childWindow.closed !== true) {
|
99 | childWindow.close()
|
100 | }
|
101 | childWindow = opener(url)
|
102 |
|
103 |
|
104 | } else if (url !== 'about:blank') {
|
105 | var loadScript = function (idx) {
|
106 | if (idx < window.__karma__.scriptUrls.length) {
|
107 | var parser = new DOMParser()
|
108 |
|
109 | var string = window.__karma__.scriptUrls[idx]
|
110 | .replace(/\\x3C/g, '<')
|
111 | .replace(/\\x3E/g, '>')
|
112 | var doc = parser.parseFromString(string, 'text/html')
|
113 | var ele = doc.head.firstChild || doc.body.firstChild
|
114 |
|
115 |
|
116 |
|
117 | if (ele.tagName && ele.tagName.toLowerCase() === 'script') {
|
118 | var tmp = ele
|
119 | ele = document.createElement('script')
|
120 | ele.src = policy.createScriptURL(tmp.src)
|
121 | ele.crossOrigin = tmp.crossOrigin
|
122 | }
|
123 | ele.onload = function () {
|
124 | loadScript(idx + 1)
|
125 | }
|
126 | document.body.appendChild(ele)
|
127 | } else {
|
128 | window.__karma__.loaded()
|
129 | }
|
130 | }
|
131 | loadScript(0)
|
132 | }
|
133 |
|
134 | } else {
|
135 | iframe.src = policy.createURL(url)
|
136 | }
|
137 | }
|
138 |
|
139 | this.onbeforeunload = function () {
|
140 | if (!reloadingContext) {
|
141 |
|
142 | self.error('Some of your tests did a full page reload!')
|
143 | }
|
144 | reloadingContext = false
|
145 | }
|
146 |
|
147 | function clearContext () {
|
148 | reloadingContext = true
|
149 |
|
150 | navigateContextTo('about:blank')
|
151 | }
|
152 |
|
153 | this.log = function (type, args) {
|
154 | var values = []
|
155 |
|
156 | for (var i = 0; i < args.length; i++) {
|
157 | values.push(this.stringify(args[i], 3))
|
158 | }
|
159 |
|
160 | this.info({ log: values.join(', '), type: type })
|
161 | }
|
162 |
|
163 | this.stringify = stringify
|
164 |
|
165 | function getLocation (url, lineno, colno) {
|
166 | var location = ''
|
167 |
|
168 | if (url !== undefined) {
|
169 | location += url
|
170 | }
|
171 |
|
172 | if (lineno !== undefined) {
|
173 | location += ':' + lineno
|
174 | }
|
175 |
|
176 | if (colno !== undefined) {
|
177 | location += ':' + colno
|
178 | }
|
179 |
|
180 | return location
|
181 | }
|
182 |
|
183 |
|
184 |
|
185 | this.error = function (messageOrEvent, source, lineno, colno, error) {
|
186 | var message
|
187 | if (typeof messageOrEvent === 'string') {
|
188 | message = messageOrEvent
|
189 |
|
190 | var location = getLocation(source, lineno, colno)
|
191 | if (location !== '') {
|
192 | message += '\nat ' + location
|
193 | }
|
194 | if (error && error.stack) {
|
195 | message += '\n\n' + error.stack
|
196 | }
|
197 | } else {
|
198 |
|
199 |
|
200 | message = { message: messageOrEvent, str: messageOrEvent.toString() }
|
201 | }
|
202 |
|
203 | socket.emit('karma_error', message)
|
204 | this.complete()
|
205 | return false
|
206 | }
|
207 |
|
208 | this.result = function (originalResult) {
|
209 | var convertedResult = {}
|
210 |
|
211 |
|
212 | for (var propertyName in originalResult) {
|
213 | if (Object.prototype.hasOwnProperty.call(originalResult, propertyName)) {
|
214 | var propertyValue = originalResult[propertyName]
|
215 |
|
216 | if (Object.prototype.toString.call(propertyValue) === '[object Array]') {
|
217 | convertedResult[propertyName] = Array.prototype.slice.call(propertyValue)
|
218 | } else {
|
219 | convertedResult[propertyName] = propertyValue
|
220 | }
|
221 | }
|
222 | }
|
223 |
|
224 | if (!startEmitted) {
|
225 | socket.emit('start', { total: null })
|
226 | startEmitted = true
|
227 | }
|
228 |
|
229 | if (resultsBufferLimit === 1) {
|
230 | return socket.emit('result', convertedResult)
|
231 | }
|
232 |
|
233 | resultsBuffer.push(convertedResult)
|
234 |
|
235 | if (resultsBuffer.length === resultsBufferLimit) {
|
236 | socket.emit('result', resultsBuffer)
|
237 | resultsBuffer = []
|
238 | }
|
239 | }
|
240 |
|
241 | this.complete = function (result) {
|
242 | if (resultsBuffer.length) {
|
243 | socket.emit('result', resultsBuffer)
|
244 | resultsBuffer = []
|
245 | }
|
246 |
|
247 | if (self.config.clearContext) {
|
248 |
|
249 |
|
250 |
|
251 | setTimeout(clearContext)
|
252 | }
|
253 |
|
254 | socket.emit('complete', result || {}, function () {
|
255 | if (returnUrl) {
|
256 | location.href = returnUrl
|
257 | }
|
258 | })
|
259 | }
|
260 |
|
261 | this.info = function (info) {
|
262 |
|
263 | if (!startEmitted && util.isDefined(info.total)) {
|
264 | socket.emit('start', info)
|
265 | startEmitted = true
|
266 | } else {
|
267 | socket.emit('info', info)
|
268 | }
|
269 | }
|
270 |
|
271 | socket.on('execute', function (cfg) {
|
272 |
|
273 | setTimeout(function allowClearContextToComplete () {
|
274 |
|
275 | startEmitted = false
|
276 | self.config = cfg
|
277 |
|
278 | navigateContextTo(constant.CONTEXT_URL)
|
279 |
|
280 | if (self.config.clientDisplayNone) {
|
281 | [].forEach.call(document.querySelectorAll('#banner, #browsers'), function (el) {
|
282 | el.style.display = 'none'
|
283 | })
|
284 | }
|
285 |
|
286 |
|
287 |
|
288 | if (window.console && window.console.clear) {
|
289 | window.console.clear()
|
290 | }
|
291 | })
|
292 | })
|
293 | socket.on('stop', function () {
|
294 | this.complete()
|
295 | }.bind(this))
|
296 |
|
297 |
|
298 |
|
299 |
|
300 | socket.on('connect', function () {
|
301 | socket.io.engine.on('upgrade', function () {
|
302 | resultsBufferLimit = 1
|
303 |
|
304 | if (resultsBuffer.length > 0) {
|
305 | socket.emit('result', resultsBuffer)
|
306 | resultsBuffer = []
|
307 | }
|
308 | })
|
309 | var info = {
|
310 | name: navigator.userAgent,
|
311 | id: browserId,
|
312 | isSocketReconnect: socketReconnect
|
313 | }
|
314 | if (displayName) {
|
315 | info.displayName = displayName
|
316 | }
|
317 | socket.emit('register', info)
|
318 | })
|
319 |
|
320 | socket.on('reconnect', function () {
|
321 | socketReconnect = true
|
322 | })
|
323 | }
|
324 |
|
325 | module.exports = Karma
|
326 |
|
327 | },{"../common/stringify":5,"../common/util":6,"./constants":1}],3:[function(require,module,exports){
|
328 |
|
329 |
|
330 |
|
331 | var Karma = require('./karma')
|
332 | var StatusUpdater = require('./updater')
|
333 | var util = require('../common/util')
|
334 | var constants = require('./constants')
|
335 |
|
336 | var KARMA_URL_ROOT = constants.KARMA_URL_ROOT
|
337 | var KARMA_PROXY_PATH = constants.KARMA_PROXY_PATH
|
338 | var BROWSER_SOCKET_TIMEOUT = constants.BROWSER_SOCKET_TIMEOUT
|
339 |
|
340 |
|
341 | var socket = io(location.host, {
|
342 | reconnectionDelay: 500,
|
343 | reconnectionDelayMax: Infinity,
|
344 | timeout: BROWSER_SOCKET_TIMEOUT,
|
345 | path: KARMA_PROXY_PATH + KARMA_URL_ROOT.substr(1) + 'socket.io',
|
346 | 'sync disconnect on unload': true
|
347 | })
|
348 |
|
349 |
|
350 | new StatusUpdater(socket, util.elm('title'), util.elm('banner'), util.elm('browsers'))
|
351 | window.karma = new Karma(socket, util.elm('context'), window.open,
|
352 | window.navigator, window.location, window.document)
|
353 |
|
354 | },{"../common/util":6,"./constants":1,"./karma":2,"./updater":4}],4:[function(require,module,exports){
|
355 | var VERSION = require('./constants').VERSION
|
356 |
|
357 | function StatusUpdater (socket, titleElement, bannerElement, browsersElement) {
|
358 | function updateBrowsersInfo (browsers) {
|
359 | if (!browsersElement) {
|
360 | return
|
361 | }
|
362 | var status
|
363 |
|
364 |
|
365 | while (browsersElement.firstChild) {
|
366 | browsersElement.removeChild(browsersElement.firstChild)
|
367 | }
|
368 |
|
369 | for (var i = 0; i < browsers.length; i++) {
|
370 | status = browsers[i].isConnected ? 'idle' : 'executing'
|
371 | var li = document.createElement('li')
|
372 | li.setAttribute('class', status)
|
373 | li.textContent = browsers[i].name + ' is ' + status
|
374 | browsersElement.appendChild(li)
|
375 | }
|
376 | }
|
377 |
|
378 | function updateBanner (status) {
|
379 | return function (param) {
|
380 | if (!titleElement || !bannerElement) {
|
381 | return
|
382 | }
|
383 | var paramStatus = param ? status.replace('$', param) : status
|
384 | titleElement.textContent = 'Karma v' + VERSION + ' - ' + paramStatus
|
385 | bannerElement.className = status === 'connected' ? 'online' : 'offline'
|
386 | }
|
387 | }
|
388 |
|
389 | socket.on('connect', updateBanner('connected'))
|
390 | socket.on('disconnect', updateBanner('disconnected'))
|
391 | socket.on('reconnecting', updateBanner('reconnecting in $ seconds...'))
|
392 | socket.on('reconnect', updateBanner('connected'))
|
393 | socket.on('reconnect_failed', updateBanner('failed to reconnect'))
|
394 | socket.on('info', updateBrowsersInfo)
|
395 | socket.on('disconnect', function () {
|
396 | updateBrowsersInfo([])
|
397 | })
|
398 | }
|
399 |
|
400 | module.exports = StatusUpdater
|
401 |
|
402 | },{"./constants":1}],5:[function(require,module,exports){
|
403 | var serialize = null
|
404 | try {
|
405 | serialize = require('dom-serialize')
|
406 | } catch (e) {
|
407 |
|
408 | }
|
409 |
|
410 | var instanceOf = require('./util').instanceOf
|
411 |
|
412 | function isNode (obj) {
|
413 | return (obj.tagName || obj.nodeName) && obj.nodeType
|
414 | }
|
415 |
|
416 | function stringify (obj, depth) {
|
417 | if (depth === 0) {
|
418 | return '...'
|
419 | }
|
420 |
|
421 | if (obj === null) {
|
422 | return 'null'
|
423 | }
|
424 |
|
425 | switch (typeof obj) {
|
426 | case 'symbol':
|
427 | return obj.toString()
|
428 | case 'string':
|
429 | return "'" + obj + "'"
|
430 | case 'undefined':
|
431 | return 'undefined'
|
432 | case 'function':
|
433 | try {
|
434 |
|
435 |
|
436 | return obj.toString().replace(/\{[\s\S]*\}/, '{ ... }')
|
437 | } catch (err) {
|
438 | if (err instanceof TypeError) {
|
439 |
|
440 | return 'function ' + (obj.name || '') + '() { ... }'
|
441 | } else {
|
442 | throw err
|
443 | }
|
444 | }
|
445 | case 'boolean':
|
446 | return obj ? 'true' : 'false'
|
447 | case 'object':
|
448 | var strs = []
|
449 | if (instanceOf(obj, 'Array')) {
|
450 | strs.push('[')
|
451 | for (var i = 0, ii = obj.length; i < ii; i++) {
|
452 | if (i) {
|
453 | strs.push(', ')
|
454 | }
|
455 | strs.push(stringify(obj[i], depth - 1))
|
456 | }
|
457 | strs.push(']')
|
458 | } else if (instanceOf(obj, 'Date')) {
|
459 | return obj.toString()
|
460 | } else if (instanceOf(obj, 'Text')) {
|
461 | return obj.nodeValue
|
462 | } else if (instanceOf(obj, 'Comment')) {
|
463 | return '<!--' + obj.nodeValue + '-->'
|
464 | } else if (obj.outerHTML) {
|
465 | return obj.outerHTML
|
466 | } else if (isNode(obj)) {
|
467 | if (serialize) {
|
468 | return serialize(obj)
|
469 | } else {
|
470 | return 'Skipping stringify, no support for dom-serialize'
|
471 | }
|
472 | } else if (instanceOf(obj, 'Error')) {
|
473 | return obj.toString() + '\n' + obj.stack
|
474 | } else {
|
475 | var constructor = 'Object'
|
476 | if (obj.constructor && typeof obj.constructor === 'function') {
|
477 | constructor = obj.constructor.name
|
478 | }
|
479 |
|
480 | strs.push(constructor)
|
481 | strs.push('{')
|
482 | var first = true
|
483 | for (var key in obj) {
|
484 | if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
485 | if (first) {
|
486 | first = false
|
487 | } else {
|
488 | strs.push(', ')
|
489 | }
|
490 |
|
491 | strs.push(key + ': ' + stringify(obj[key], depth - 1))
|
492 | }
|
493 | }
|
494 | strs.push('}')
|
495 | }
|
496 | return strs.join('')
|
497 | default:
|
498 | return obj
|
499 | }
|
500 | }
|
501 |
|
502 | module.exports = stringify
|
503 |
|
504 | },{"./util":6,"dom-serialize":8}],6:[function(require,module,exports){
|
505 | exports.instanceOf = function (value, constructorName) {
|
506 | return Object.prototype.toString.apply(value) === '[object ' + constructorName + ']'
|
507 | }
|
508 |
|
509 | exports.elm = function (id) {
|
510 | return document.getElementById(id)
|
511 | }
|
512 |
|
513 | exports.generateId = function (prefix) {
|
514 | return prefix + Math.floor(Math.random() * 10000)
|
515 | }
|
516 |
|
517 | exports.isUndefined = function (value) {
|
518 | return typeof value === 'undefined'
|
519 | }
|
520 |
|
521 | exports.isDefined = function (value) {
|
522 | return !exports.isUndefined(value)
|
523 | }
|
524 |
|
525 | exports.parseQueryParams = function (locationSearch) {
|
526 | var params = {}
|
527 | var pairs = locationSearch.substr(1).split('&')
|
528 | var keyValue
|
529 |
|
530 | for (var i = 0; i < pairs.length; i++) {
|
531 | keyValue = pairs[i].split('=')
|
532 | params[decodeURIComponent(keyValue[0])] = decodeURIComponent(keyValue[1])
|
533 | }
|
534 |
|
535 | return params
|
536 | }
|
537 |
|
538 | },{}],7:[function(require,module,exports){
|
539 | (function (global){
|
540 |
|
541 | var NativeCustomEvent = global.CustomEvent;
|
542 |
|
543 | function useNative () {
|
544 | try {
|
545 | var p = new NativeCustomEvent('cat', { detail: { foo: 'bar' } });
|
546 | return 'cat' === p.type && 'bar' === p.detail.foo;
|
547 | } catch (e) {
|
548 | }
|
549 | return false;
|
550 | }
|
551 |
|
552 |
|
553 |
|
554 |
|
555 |
|
556 |
|
557 |
|
558 |
|
559 |
|
560 | module.exports = useNative() ? NativeCustomEvent :
|
561 |
|
562 |
|
563 | 'undefined' !== typeof document && 'function' === typeof document.createEvent ? function CustomEvent (type, params) {
|
564 | var e = document.createEvent('CustomEvent');
|
565 | if (params) {
|
566 | e.initCustomEvent(type, params.bubbles, params.cancelable, params.detail);
|
567 | } else {
|
568 | e.initCustomEvent(type, false, false, void 0);
|
569 | }
|
570 | return e;
|
571 | } :
|
572 |
|
573 |
|
574 | function CustomEvent (type, params) {
|
575 | var e = document.createEventObject();
|
576 | e.type = type;
|
577 | if (params) {
|
578 | e.bubbles = Boolean(params.bubbles);
|
579 | e.cancelable = Boolean(params.cancelable);
|
580 | e.detail = params.detail;
|
581 | } else {
|
582 | e.bubbles = false;
|
583 | e.cancelable = false;
|
584 | e.detail = void 0;
|
585 | }
|
586 | return e;
|
587 | }
|
588 |
|
589 | }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
590 | },{}],8:[function(require,module,exports){
|
591 |
|
592 |
|
593 |
|
594 |
|
595 |
|
596 | var extend = require('extend');
|
597 | var encode = require('ent/encode');
|
598 | var CustomEvent = require('custom-event');
|
599 | var voidElements = require('void-elements');
|
600 |
|
601 |
|
602 |
|
603 |
|
604 |
|
605 | exports = module.exports = serialize;
|
606 | exports.serializeElement = serializeElement;
|
607 | exports.serializeAttribute = serializeAttribute;
|
608 | exports.serializeText = serializeText;
|
609 | exports.serializeComment = serializeComment;
|
610 | exports.serializeDocument = serializeDocument;
|
611 | exports.serializeDoctype = serializeDoctype;
|
612 | exports.serializeDocumentFragment = serializeDocumentFragment;
|
613 | exports.serializeNodeList = serializeNodeList;
|
614 |
|
615 |
|
616 |
|
617 |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 |
|
623 |
|
624 |
|
625 |
|
626 | function serialize (node, context, fn, eventTarget) {
|
627 | if (!node) return '';
|
628 | if ('function' === typeof context) {
|
629 | fn = context;
|
630 | context = null;
|
631 | }
|
632 | if (!context) context = null;
|
633 |
|
634 | var rtn;
|
635 | var nodeType = node.nodeType;
|
636 |
|
637 | if (!nodeType && 'number' === typeof node.length) {
|
638 |
|
639 | rtn = exports.serializeNodeList(node, context, fn);
|
640 | } else {
|
641 |
|
642 | if ('function' === typeof fn) {
|
643 |
|
644 | node.addEventListener('serialize', fn, false);
|
645 | }
|
646 |
|
647 |
|
648 |
|
649 | var e = new CustomEvent('serialize', {
|
650 | bubbles: true,
|
651 | cancelable: true,
|
652 | detail: {
|
653 | serialize: null,
|
654 | context: context
|
655 | }
|
656 | });
|
657 |
|
658 | e.serializeTarget = node;
|
659 |
|
660 | var target = eventTarget || node;
|
661 | var cancelled = !target.dispatchEvent(e);
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 | var s = e.detail.serialize;
|
668 | if (s != null) {
|
669 | if ('string' === typeof s) {
|
670 | rtn = s;
|
671 | } else if ('number' === typeof s.nodeType) {
|
672 |
|
673 | rtn = serialize(s, context, null, target);
|
674 | } else {
|
675 | rtn = String(s);
|
676 | }
|
677 | } else if (!cancelled) {
|
678 |
|
679 | switch (nodeType) {
|
680 | case 1 :
|
681 | rtn = exports.serializeElement(node, context, eventTarget);
|
682 | break;
|
683 | case 2 :
|
684 | rtn = exports.serializeAttribute(node);
|
685 | break;
|
686 | case 3 :
|
687 | rtn = exports.serializeText(node);
|
688 | break;
|
689 | case 8 :
|
690 | rtn = exports.serializeComment(node);
|
691 | break;
|
692 | case 9 :
|
693 | rtn = exports.serializeDocument(node, context, eventTarget);
|
694 | break;
|
695 | case 10 :
|
696 | rtn = exports.serializeDoctype(node);
|
697 | break;
|
698 | case 11 :
|
699 | rtn = exports.serializeDocumentFragment(node, context, eventTarget);
|
700 | break;
|
701 | }
|
702 | }
|
703 |
|
704 | if ('function' === typeof fn) {
|
705 | node.removeEventListener('serialize', fn, false);
|
706 | }
|
707 | }
|
708 |
|
709 | return rtn || '';
|
710 | }
|
711 |
|
712 |
|
713 |
|
714 |
|
715 |
|
716 | function serializeAttribute (node, opts) {
|
717 | return node.name + '="' + encode(node.value, extend({
|
718 | named: true
|
719 | }, opts)) + '"';
|
720 | }
|
721 |
|
722 |
|
723 |
|
724 |
|
725 |
|
726 | function serializeElement (node, context, eventTarget) {
|
727 | var c, i, l;
|
728 | var name = node.nodeName.toLowerCase();
|
729 |
|
730 |
|
731 | var r = '<' + name;
|
732 |
|
733 |
|
734 | for (i = 0, c = node.attributes, l = c.length; i < l; i++) {
|
735 | r += ' ' + exports.serializeAttribute(c[i]);
|
736 | }
|
737 |
|
738 | r += '>';
|
739 |
|
740 |
|
741 | r += exports.serializeNodeList(node.childNodes, context, null, eventTarget);
|
742 |
|
743 |
|
744 | if (!voidElements[name]) {
|
745 | r += '</' + name + '>';
|
746 | }
|
747 |
|
748 | return r;
|
749 | }
|
750 |
|
751 |
|
752 |
|
753 |
|
754 |
|
755 | function serializeText (node, opts) {
|
756 | return encode(node.nodeValue, extend({
|
757 | named: true,
|
758 | special: { '<': true, '>': true, '&': true }
|
759 | }, opts));
|
760 | }
|
761 |
|
762 |
|
763 |
|
764 |
|
765 |
|
766 | function serializeComment (node) {
|
767 | return '<!--' + node.nodeValue + '-->';
|
768 | }
|
769 |
|
770 |
|
771 |
|
772 |
|
773 |
|
774 | function serializeDocument (node, context, eventTarget) {
|
775 | return exports.serializeNodeList(node.childNodes, context, null, eventTarget);
|
776 | }
|
777 |
|
778 |
|
779 |
|
780 |
|
781 |
|
782 |
|
783 | function serializeDoctype (node) {
|
784 | var r = '<!DOCTYPE ' + node.name;
|
785 |
|
786 | if (node.publicId) {
|
787 | r += ' PUBLIC "' + node.publicId + '"';
|
788 | }
|
789 |
|
790 | if (!node.publicId && node.systemId) {
|
791 | r += ' SYSTEM';
|
792 | }
|
793 |
|
794 | if (node.systemId) {
|
795 | r += ' "' + node.systemId + '"';
|
796 | }
|
797 |
|
798 | r += '>';
|
799 | return r;
|
800 | }
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 | function serializeDocumentFragment (node, context, eventTarget) {
|
807 | return exports.serializeNodeList(node.childNodes, context, null, eventTarget);
|
808 | }
|
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 | function serializeNodeList (list, context, fn, eventTarget) {
|
815 | var r = '';
|
816 | for (var i = 0, l = list.length; i < l; i++) {
|
817 | r += serialize(list[i], context, fn, eventTarget);
|
818 | }
|
819 | return r;
|
820 | }
|
821 |
|
822 | },{"custom-event":7,"ent/encode":9,"extend":11,"void-elements":13}],9:[function(require,module,exports){
|
823 | var punycode = require('punycode');
|
824 | var revEntities = require('./reversed.json');
|
825 |
|
826 | module.exports = encode;
|
827 |
|
828 | function encode (str, opts) {
|
829 | if (typeof str !== 'string') {
|
830 | throw new TypeError('Expected a String');
|
831 | }
|
832 | if (!opts) opts = {};
|
833 |
|
834 | var numeric = true;
|
835 | if (opts.named) numeric = false;
|
836 | if (opts.numeric !== undefined) numeric = opts.numeric;
|
837 |
|
838 | var special = opts.special || {
|
839 | '"': true, "'": true,
|
840 | '<': true, '>': true,
|
841 | '&': true
|
842 | };
|
843 |
|
844 | var codePoints = punycode.ucs2.decode(str);
|
845 | var chars = [];
|
846 | for (var i = 0; i < codePoints.length; i++) {
|
847 | var cc = codePoints[i];
|
848 | var c = punycode.ucs2.encode([ cc ]);
|
849 | var e = revEntities[cc];
|
850 | if (e && (cc >= 127 || special[c]) && !numeric) {
|
851 | chars.push('&' + (/;$/.test(e) ? e : e + ';'));
|
852 | }
|
853 | else if (cc < 32 || cc >= 127 || special[c]) {
|
854 | chars.push('&#' + cc + ';');
|
855 | }
|
856 | else {
|
857 | chars.push(c);
|
858 | }
|
859 | }
|
860 | return chars.join('');
|
861 | }
|
862 |
|
863 | },{"./reversed.json":10,"punycode":12}],10:[function(require,module,exports){
|
864 | module.exports={
|
865 | "9": "Tab;",
|
866 | "10": "NewLine;",
|
867 | "33": "excl;",
|
868 | "34": "quot;",
|
869 | "35": "num;",
|
870 | "36": "dollar;",
|
871 | "37": "percnt;",
|
872 | "38": "amp;",
|
873 | "39": "apos;",
|
874 | "40": "lpar;",
|
875 | "41": "rpar;",
|
876 | "42": "midast;",
|
877 | "43": "plus;",
|
878 | "44": "comma;",
|
879 | "46": "period;",
|
880 | "47": "sol;",
|
881 | "58": "colon;",
|
882 | "59": "semi;",
|
883 | "60": "lt;",
|
884 | "61": "equals;",
|
885 | "62": "gt;",
|
886 | "63": "quest;",
|
887 | "64": "commat;",
|
888 | "91": "lsqb;",
|
889 | "92": "bsol;",
|
890 | "93": "rsqb;",
|
891 | "94": "Hat;",
|
892 | "95": "UnderBar;",
|
893 | "96": "grave;",
|
894 | "123": "lcub;",
|
895 | "124": "VerticalLine;",
|
896 | "125": "rcub;",
|
897 | "160": "NonBreakingSpace;",
|
898 | "161": "iexcl;",
|
899 | "162": "cent;",
|
900 | "163": "pound;",
|
901 | "164": "curren;",
|
902 | "165": "yen;",
|
903 | "166": "brvbar;",
|
904 | "167": "sect;",
|
905 | "168": "uml;",
|
906 | "169": "copy;",
|
907 | "170": "ordf;",
|
908 | "171": "laquo;",
|
909 | "172": "not;",
|
910 | "173": "shy;",
|
911 | "174": "reg;",
|
912 | "175": "strns;",
|
913 | "176": "deg;",
|
914 | "177": "pm;",
|
915 | "178": "sup2;",
|
916 | "179": "sup3;",
|
917 | "180": "DiacriticalAcute;",
|
918 | "181": "micro;",
|
919 | "182": "para;",
|
920 | "183": "middot;",
|
921 | "184": "Cedilla;",
|
922 | "185": "sup1;",
|
923 | "186": "ordm;",
|
924 | "187": "raquo;",
|
925 | "188": "frac14;",
|
926 | "189": "half;",
|
927 | "190": "frac34;",
|
928 | "191": "iquest;",
|
929 | "192": "Agrave;",
|
930 | "193": "Aacute;",
|
931 | "194": "Acirc;",
|
932 | "195": "Atilde;",
|
933 | "196": "Auml;",
|
934 | "197": "Aring;",
|
935 | "198": "AElig;",
|
936 | "199": "Ccedil;",
|
937 | "200": "Egrave;",
|
938 | "201": "Eacute;",
|
939 | "202": "Ecirc;",
|
940 | "203": "Euml;",
|
941 | "204": "Igrave;",
|
942 | "205": "Iacute;",
|
943 | "206": "Icirc;",
|
944 | "207": "Iuml;",
|
945 | "208": "ETH;",
|
946 | "209": "Ntilde;",
|
947 | "210": "Ograve;",
|
948 | "211": "Oacute;",
|
949 | "212": "Ocirc;",
|
950 | "213": "Otilde;",
|
951 | "214": "Ouml;",
|
952 | "215": "times;",
|
953 | "216": "Oslash;",
|
954 | "217": "Ugrave;",
|
955 | "218": "Uacute;",
|
956 | "219": "Ucirc;",
|
957 | "220": "Uuml;",
|
958 | "221": "Yacute;",
|
959 | "222": "THORN;",
|
960 | "223": "szlig;",
|
961 | "224": "agrave;",
|
962 | "225": "aacute;",
|
963 | "226": "acirc;",
|
964 | "227": "atilde;",
|
965 | "228": "auml;",
|
966 | "229": "aring;",
|
967 | "230": "aelig;",
|
968 | "231": "ccedil;",
|
969 | "232": "egrave;",
|
970 | "233": "eacute;",
|
971 | "234": "ecirc;",
|
972 | "235": "euml;",
|
973 | "236": "igrave;",
|
974 | "237": "iacute;",
|
975 | "238": "icirc;",
|
976 | "239": "iuml;",
|
977 | "240": "eth;",
|
978 | "241": "ntilde;",
|
979 | "242": "ograve;",
|
980 | "243": "oacute;",
|
981 | "244": "ocirc;",
|
982 | "245": "otilde;",
|
983 | "246": "ouml;",
|
984 | "247": "divide;",
|
985 | "248": "oslash;",
|
986 | "249": "ugrave;",
|
987 | "250": "uacute;",
|
988 | "251": "ucirc;",
|
989 | "252": "uuml;",
|
990 | "253": "yacute;",
|
991 | "254": "thorn;",
|
992 | "255": "yuml;",
|
993 | "256": "Amacr;",
|
994 | "257": "amacr;",
|
995 | "258": "Abreve;",
|
996 | "259": "abreve;",
|
997 | "260": "Aogon;",
|
998 | "261": "aogon;",
|
999 | "262": "Cacute;",
|
1000 | "263": "cacute;",
|
1001 | "264": "Ccirc;",
|
1002 | "265": "ccirc;",
|
1003 | "266": "Cdot;",
|
1004 | "267": "cdot;",
|
1005 | "268": "Ccaron;",
|
1006 | "269": "ccaron;",
|
1007 | "270": "Dcaron;",
|
1008 | "271": "dcaron;",
|
1009 | "272": "Dstrok;",
|
1010 | "273": "dstrok;",
|
1011 | "274": "Emacr;",
|
1012 | "275": "emacr;",
|
1013 | "278": "Edot;",
|
1014 | "279": "edot;",
|
1015 | "280": "Eogon;",
|
1016 | "281": "eogon;",
|
1017 | "282": "Ecaron;",
|
1018 | "283": "ecaron;",
|
1019 | "284": "Gcirc;",
|
1020 | "285": "gcirc;",
|
1021 | "286": "Gbreve;",
|
1022 | "287": "gbreve;",
|
1023 | "288": "Gdot;",
|
1024 | "289": "gdot;",
|
1025 | "290": "Gcedil;",
|
1026 | "292": "Hcirc;",
|
1027 | "293": "hcirc;",
|
1028 | "294": "Hstrok;",
|
1029 | "295": "hstrok;",
|
1030 | "296": "Itilde;",
|
1031 | "297": "itilde;",
|
1032 | "298": "Imacr;",
|
1033 | "299": "imacr;",
|
1034 | "302": "Iogon;",
|
1035 | "303": "iogon;",
|
1036 | "304": "Idot;",
|
1037 | "305": "inodot;",
|
1038 | "306": "IJlig;",
|
1039 | "307": "ijlig;",
|
1040 | "308": "Jcirc;",
|
1041 | "309": "jcirc;",
|
1042 | "310": "Kcedil;",
|
1043 | "311": "kcedil;",
|
1044 | "312": "kgreen;",
|
1045 | "313": "Lacute;",
|
1046 | "314": "lacute;",
|
1047 | "315": "Lcedil;",
|
1048 | "316": "lcedil;",
|
1049 | "317": "Lcaron;",
|
1050 | "318": "lcaron;",
|
1051 | "319": "Lmidot;",
|
1052 | "320": "lmidot;",
|
1053 | "321": "Lstrok;",
|
1054 | "322": "lstrok;",
|
1055 | "323": "Nacute;",
|
1056 | "324": "nacute;",
|
1057 | "325": "Ncedil;",
|
1058 | "326": "ncedil;",
|
1059 | "327": "Ncaron;",
|
1060 | "328": "ncaron;",
|
1061 | "329": "napos;",
|
1062 | "330": "ENG;",
|
1063 | "331": "eng;",
|
1064 | "332": "Omacr;",
|
1065 | "333": "omacr;",
|
1066 | "336": "Odblac;",
|
1067 | "337": "odblac;",
|
1068 | "338": "OElig;",
|
1069 | "339": "oelig;",
|
1070 | "340": "Racute;",
|
1071 | "341": "racute;",
|
1072 | "342": "Rcedil;",
|
1073 | "343": "rcedil;",
|
1074 | "344": "Rcaron;",
|
1075 | "345": "rcaron;",
|
1076 | "346": "Sacute;",
|
1077 | "347": "sacute;",
|
1078 | "348": "Scirc;",
|
1079 | "349": "scirc;",
|
1080 | "350": "Scedil;",
|
1081 | "351": "scedil;",
|
1082 | "352": "Scaron;",
|
1083 | "353": "scaron;",
|
1084 | "354": "Tcedil;",
|
1085 | "355": "tcedil;",
|
1086 | "356": "Tcaron;",
|
1087 | "357": "tcaron;",
|
1088 | "358": "Tstrok;",
|
1089 | "359": "tstrok;",
|
1090 | "360": "Utilde;",
|
1091 | "361": "utilde;",
|
1092 | "362": "Umacr;",
|
1093 | "363": "umacr;",
|
1094 | "364": "Ubreve;",
|
1095 | "365": "ubreve;",
|
1096 | "366": "Uring;",
|
1097 | "367": "uring;",
|
1098 | "368": "Udblac;",
|
1099 | "369": "udblac;",
|
1100 | "370": "Uogon;",
|
1101 | "371": "uogon;",
|
1102 | "372": "Wcirc;",
|
1103 | "373": "wcirc;",
|
1104 | "374": "Ycirc;",
|
1105 | "375": "ycirc;",
|
1106 | "376": "Yuml;",
|
1107 | "377": "Zacute;",
|
1108 | "378": "zacute;",
|
1109 | "379": "Zdot;",
|
1110 | "380": "zdot;",
|
1111 | "381": "Zcaron;",
|
1112 | "382": "zcaron;",
|
1113 | "402": "fnof;",
|
1114 | "437": "imped;",
|
1115 | "501": "gacute;",
|
1116 | "567": "jmath;",
|
1117 | "710": "circ;",
|
1118 | "711": "Hacek;",
|
1119 | "728": "breve;",
|
1120 | "729": "dot;",
|
1121 | "730": "ring;",
|
1122 | "731": "ogon;",
|
1123 | "732": "tilde;",
|
1124 | "733": "DiacriticalDoubleAcute;",
|
1125 | "785": "DownBreve;",
|
1126 | "913": "Alpha;",
|
1127 | "914": "Beta;",
|
1128 | "915": "Gamma;",
|
1129 | "916": "Delta;",
|
1130 | "917": "Epsilon;",
|
1131 | "918": "Zeta;",
|
1132 | "919": "Eta;",
|
1133 | "920": "Theta;",
|
1134 | "921": "Iota;",
|
1135 | "922": "Kappa;",
|
1136 | "923": "Lambda;",
|
1137 | "924": "Mu;",
|
1138 | "925": "Nu;",
|
1139 | "926": "Xi;",
|
1140 | "927": "Omicron;",
|
1141 | "928": "Pi;",
|
1142 | "929": "Rho;",
|
1143 | "931": "Sigma;",
|
1144 | "932": "Tau;",
|
1145 | "933": "Upsilon;",
|
1146 | "934": "Phi;",
|
1147 | "935": "Chi;",
|
1148 | "936": "Psi;",
|
1149 | "937": "Omega;",
|
1150 | "945": "alpha;",
|
1151 | "946": "beta;",
|
1152 | "947": "gamma;",
|
1153 | "948": "delta;",
|
1154 | "949": "epsilon;",
|
1155 | "950": "zeta;",
|
1156 | "951": "eta;",
|
1157 | "952": "theta;",
|
1158 | "953": "iota;",
|
1159 | "954": "kappa;",
|
1160 | "955": "lambda;",
|
1161 | "956": "mu;",
|
1162 | "957": "nu;",
|
1163 | "958": "xi;",
|
1164 | "959": "omicron;",
|
1165 | "960": "pi;",
|
1166 | "961": "rho;",
|
1167 | "962": "varsigma;",
|
1168 | "963": "sigma;",
|
1169 | "964": "tau;",
|
1170 | "965": "upsilon;",
|
1171 | "966": "phi;",
|
1172 | "967": "chi;",
|
1173 | "968": "psi;",
|
1174 | "969": "omega;",
|
1175 | "977": "vartheta;",
|
1176 | "978": "upsih;",
|
1177 | "981": "varphi;",
|
1178 | "982": "varpi;",
|
1179 | "988": "Gammad;",
|
1180 | "989": "gammad;",
|
1181 | "1008": "varkappa;",
|
1182 | "1009": "varrho;",
|
1183 | "1013": "varepsilon;",
|
1184 | "1014": "bepsi;",
|
1185 | "1025": "IOcy;",
|
1186 | "1026": "DJcy;",
|
1187 | "1027": "GJcy;",
|
1188 | "1028": "Jukcy;",
|
1189 | "1029": "DScy;",
|
1190 | "1030": "Iukcy;",
|
1191 | "1031": "YIcy;",
|
1192 | "1032": "Jsercy;",
|
1193 | "1033": "LJcy;",
|
1194 | "1034": "NJcy;",
|
1195 | "1035": "TSHcy;",
|
1196 | "1036": "KJcy;",
|
1197 | "1038": "Ubrcy;",
|
1198 | "1039": "DZcy;",
|
1199 | "1040": "Acy;",
|
1200 | "1041": "Bcy;",
|
1201 | "1042": "Vcy;",
|
1202 | "1043": "Gcy;",
|
1203 | "1044": "Dcy;",
|
1204 | "1045": "IEcy;",
|
1205 | "1046": "ZHcy;",
|
1206 | "1047": "Zcy;",
|
1207 | "1048": "Icy;",
|
1208 | "1049": "Jcy;",
|
1209 | "1050": "Kcy;",
|
1210 | "1051": "Lcy;",
|
1211 | "1052": "Mcy;",
|
1212 | "1053": "Ncy;",
|
1213 | "1054": "Ocy;",
|
1214 | "1055": "Pcy;",
|
1215 | "1056": "Rcy;",
|
1216 | "1057": "Scy;",
|
1217 | "1058": "Tcy;",
|
1218 | "1059": "Ucy;",
|
1219 | "1060": "Fcy;",
|
1220 | "1061": "KHcy;",
|
1221 | "1062": "TScy;",
|
1222 | "1063": "CHcy;",
|
1223 | "1064": "SHcy;",
|
1224 | "1065": "SHCHcy;",
|
1225 | "1066": "HARDcy;",
|
1226 | "1067": "Ycy;",
|
1227 | "1068": "SOFTcy;",
|
1228 | "1069": "Ecy;",
|
1229 | "1070": "YUcy;",
|
1230 | "1071": "YAcy;",
|
1231 | "1072": "acy;",
|
1232 | "1073": "bcy;",
|
1233 | "1074": "vcy;",
|
1234 | "1075": "gcy;",
|
1235 | "1076": "dcy;",
|
1236 | "1077": "iecy;",
|
1237 | "1078": "zhcy;",
|
1238 | "1079": "zcy;",
|
1239 | "1080": "icy;",
|
1240 | "1081": "jcy;",
|
1241 | "1082": "kcy;",
|
1242 | "1083": "lcy;",
|
1243 | "1084": "mcy;",
|
1244 | "1085": "ncy;",
|
1245 | "1086": "ocy;",
|
1246 | "1087": "pcy;",
|
1247 | "1088": "rcy;",
|
1248 | "1089": "scy;",
|
1249 | "1090": "tcy;",
|
1250 | "1091": "ucy;",
|
1251 | "1092": "fcy;",
|
1252 | "1093": "khcy;",
|
1253 | "1094": "tscy;",
|
1254 | "1095": "chcy;",
|
1255 | "1096": "shcy;",
|
1256 | "1097": "shchcy;",
|
1257 | "1098": "hardcy;",
|
1258 | "1099": "ycy;",
|
1259 | "1100": "softcy;",
|
1260 | "1101": "ecy;",
|
1261 | "1102": "yucy;",
|
1262 | "1103": "yacy;",
|
1263 | "1105": "iocy;",
|
1264 | "1106": "djcy;",
|
1265 | "1107": "gjcy;",
|
1266 | "1108": "jukcy;",
|
1267 | "1109": "dscy;",
|
1268 | "1110": "iukcy;",
|
1269 | "1111": "yicy;",
|
1270 | "1112": "jsercy;",
|
1271 | "1113": "ljcy;",
|
1272 | "1114": "njcy;",
|
1273 | "1115": "tshcy;",
|
1274 | "1116": "kjcy;",
|
1275 | "1118": "ubrcy;",
|
1276 | "1119": "dzcy;",
|
1277 | "8194": "ensp;",
|
1278 | "8195": "emsp;",
|
1279 | "8196": "emsp13;",
|
1280 | "8197": "emsp14;",
|
1281 | "8199": "numsp;",
|
1282 | "8200": "puncsp;",
|
1283 | "8201": "ThinSpace;",
|
1284 | "8202": "VeryThinSpace;",
|
1285 | "8203": "ZeroWidthSpace;",
|
1286 | "8204": "zwnj;",
|
1287 | "8205": "zwj;",
|
1288 | "8206": "lrm;",
|
1289 | "8207": "rlm;",
|
1290 | "8208": "hyphen;",
|
1291 | "8211": "ndash;",
|
1292 | "8212": "mdash;",
|
1293 | "8213": "horbar;",
|
1294 | "8214": "Vert;",
|
1295 | "8216": "OpenCurlyQuote;",
|
1296 | "8217": "rsquor;",
|
1297 | "8218": "sbquo;",
|
1298 | "8220": "OpenCurlyDoubleQuote;",
|
1299 | "8221": "rdquor;",
|
1300 | "8222": "ldquor;",
|
1301 | "8224": "dagger;",
|
1302 | "8225": "ddagger;",
|
1303 | "8226": "bullet;",
|
1304 | "8229": "nldr;",
|
1305 | "8230": "mldr;",
|
1306 | "8240": "permil;",
|
1307 | "8241": "pertenk;",
|
1308 | "8242": "prime;",
|
1309 | "8243": "Prime;",
|
1310 | "8244": "tprime;",
|
1311 | "8245": "bprime;",
|
1312 | "8249": "lsaquo;",
|
1313 | "8250": "rsaquo;",
|
1314 | "8254": "OverBar;",
|
1315 | "8257": "caret;",
|
1316 | "8259": "hybull;",
|
1317 | "8260": "frasl;",
|
1318 | "8271": "bsemi;",
|
1319 | "8279": "qprime;",
|
1320 | "8287": "MediumSpace;",
|
1321 | "8288": "NoBreak;",
|
1322 | "8289": "ApplyFunction;",
|
1323 | "8290": "it;",
|
1324 | "8291": "InvisibleComma;",
|
1325 | "8364": "euro;",
|
1326 | "8411": "TripleDot;",
|
1327 | "8412": "DotDot;",
|
1328 | "8450": "Copf;",
|
1329 | "8453": "incare;",
|
1330 | "8458": "gscr;",
|
1331 | "8459": "Hscr;",
|
1332 | "8460": "Poincareplane;",
|
1333 | "8461": "quaternions;",
|
1334 | "8462": "planckh;",
|
1335 | "8463": "plankv;",
|
1336 | "8464": "Iscr;",
|
1337 | "8465": "imagpart;",
|
1338 | "8466": "Lscr;",
|
1339 | "8467": "ell;",
|
1340 | "8469": "Nopf;",
|
1341 | "8470": "numero;",
|
1342 | "8471": "copysr;",
|
1343 | "8472": "wp;",
|
1344 | "8473": "primes;",
|
1345 | "8474": "rationals;",
|
1346 | "8475": "Rscr;",
|
1347 | "8476": "Rfr;",
|
1348 | "8477": "Ropf;",
|
1349 | "8478": "rx;",
|
1350 | "8482": "trade;",
|
1351 | "8484": "Zopf;",
|
1352 | "8487": "mho;",
|
1353 | "8488": "Zfr;",
|
1354 | "8489": "iiota;",
|
1355 | "8492": "Bscr;",
|
1356 | "8493": "Cfr;",
|
1357 | "8495": "escr;",
|
1358 | "8496": "expectation;",
|
1359 | "8497": "Fscr;",
|
1360 | "8499": "phmmat;",
|
1361 | "8500": "oscr;",
|
1362 | "8501": "aleph;",
|
1363 | "8502": "beth;",
|
1364 | "8503": "gimel;",
|
1365 | "8504": "daleth;",
|
1366 | "8517": "DD;",
|
1367 | "8518": "DifferentialD;",
|
1368 | "8519": "exponentiale;",
|
1369 | "8520": "ImaginaryI;",
|
1370 | "8531": "frac13;",
|
1371 | "8532": "frac23;",
|
1372 | "8533": "frac15;",
|
1373 | "8534": "frac25;",
|
1374 | "8535": "frac35;",
|
1375 | "8536": "frac45;",
|
1376 | "8537": "frac16;",
|
1377 | "8538": "frac56;",
|
1378 | "8539": "frac18;",
|
1379 | "8540": "frac38;",
|
1380 | "8541": "frac58;",
|
1381 | "8542": "frac78;",
|
1382 | "8592": "slarr;",
|
1383 | "8593": "uparrow;",
|
1384 | "8594": "srarr;",
|
1385 | "8595": "ShortDownArrow;",
|
1386 | "8596": "leftrightarrow;",
|
1387 | "8597": "varr;",
|
1388 | "8598": "UpperLeftArrow;",
|
1389 | "8599": "UpperRightArrow;",
|
1390 | "8600": "searrow;",
|
1391 | "8601": "swarrow;",
|
1392 | "8602": "nleftarrow;",
|
1393 | "8603": "nrightarrow;",
|
1394 | "8605": "rightsquigarrow;",
|
1395 | "8606": "twoheadleftarrow;",
|
1396 | "8607": "Uarr;",
|
1397 | "8608": "twoheadrightarrow;",
|
1398 | "8609": "Darr;",
|
1399 | "8610": "leftarrowtail;",
|
1400 | "8611": "rightarrowtail;",
|
1401 | "8612": "mapstoleft;",
|
1402 | "8613": "UpTeeArrow;",
|
1403 | "8614": "RightTeeArrow;",
|
1404 | "8615": "mapstodown;",
|
1405 | "8617": "larrhk;",
|
1406 | "8618": "rarrhk;",
|
1407 | "8619": "looparrowleft;",
|
1408 | "8620": "rarrlp;",
|
1409 | "8621": "leftrightsquigarrow;",
|
1410 | "8622": "nleftrightarrow;",
|
1411 | "8624": "lsh;",
|
1412 | "8625": "rsh;",
|
1413 | "8626": "ldsh;",
|
1414 | "8627": "rdsh;",
|
1415 | "8629": "crarr;",
|
1416 | "8630": "curvearrowleft;",
|
1417 | "8631": "curvearrowright;",
|
1418 | "8634": "olarr;",
|
1419 | "8635": "orarr;",
|
1420 | "8636": "lharu;",
|
1421 | "8637": "lhard;",
|
1422 | "8638": "upharpoonright;",
|
1423 | "8639": "upharpoonleft;",
|
1424 | "8640": "RightVector;",
|
1425 | "8641": "rightharpoondown;",
|
1426 | "8642": "RightDownVector;",
|
1427 | "8643": "LeftDownVector;",
|
1428 | "8644": "rlarr;",
|
1429 | "8645": "UpArrowDownArrow;",
|
1430 | "8646": "lrarr;",
|
1431 | "8647": "llarr;",
|
1432 | "8648": "uuarr;",
|
1433 | "8649": "rrarr;",
|
1434 | "8650": "downdownarrows;",
|
1435 | "8651": "ReverseEquilibrium;",
|
1436 | "8652": "rlhar;",
|
1437 | "8653": "nLeftarrow;",
|
1438 | "8654": "nLeftrightarrow;",
|
1439 | "8655": "nRightarrow;",
|
1440 | "8656": "Leftarrow;",
|
1441 | "8657": "Uparrow;",
|
1442 | "8658": "Rightarrow;",
|
1443 | "8659": "Downarrow;",
|
1444 | "8660": "Leftrightarrow;",
|
1445 | "8661": "vArr;",
|
1446 | "8662": "nwArr;",
|
1447 | "8663": "neArr;",
|
1448 | "8664": "seArr;",
|
1449 | "8665": "swArr;",
|
1450 | "8666": "Lleftarrow;",
|
1451 | "8667": "Rrightarrow;",
|
1452 | "8669": "zigrarr;",
|
1453 | "8676": "LeftArrowBar;",
|
1454 | "8677": "RightArrowBar;",
|
1455 | "8693": "duarr;",
|
1456 | "8701": "loarr;",
|
1457 | "8702": "roarr;",
|
1458 | "8703": "hoarr;",
|
1459 | "8704": "forall;",
|
1460 | "8705": "complement;",
|
1461 | "8706": "PartialD;",
|
1462 | "8707": "Exists;",
|
1463 | "8708": "NotExists;",
|
1464 | "8709": "varnothing;",
|
1465 | "8711": "nabla;",
|
1466 | "8712": "isinv;",
|
1467 | "8713": "notinva;",
|
1468 | "8715": "SuchThat;",
|
1469 | "8716": "NotReverseElement;",
|
1470 | "8719": "Product;",
|
1471 | "8720": "Coproduct;",
|
1472 | "8721": "sum;",
|
1473 | "8722": "minus;",
|
1474 | "8723": "mp;",
|
1475 | "8724": "plusdo;",
|
1476 | "8726": "ssetmn;",
|
1477 | "8727": "lowast;",
|
1478 | "8728": "SmallCircle;",
|
1479 | "8730": "Sqrt;",
|
1480 | "8733": "vprop;",
|
1481 | "8734": "infin;",
|
1482 | "8735": "angrt;",
|
1483 | "8736": "angle;",
|
1484 | "8737": "measuredangle;",
|
1485 | "8738": "angsph;",
|
1486 | "8739": "VerticalBar;",
|
1487 | "8740": "nsmid;",
|
1488 | "8741": "spar;",
|
1489 | "8742": "nspar;",
|
1490 | "8743": "wedge;",
|
1491 | "8744": "vee;",
|
1492 | "8745": "cap;",
|
1493 | "8746": "cup;",
|
1494 | "8747": "Integral;",
|
1495 | "8748": "Int;",
|
1496 | "8749": "tint;",
|
1497 | "8750": "oint;",
|
1498 | "8751": "DoubleContourIntegral;",
|
1499 | "8752": "Cconint;",
|
1500 | "8753": "cwint;",
|
1501 | "8754": "cwconint;",
|
1502 | "8755": "CounterClockwiseContourIntegral;",
|
1503 | "8756": "therefore;",
|
1504 | "8757": "because;",
|
1505 | "8758": "ratio;",
|
1506 | "8759": "Proportion;",
|
1507 | "8760": "minusd;",
|
1508 | "8762": "mDDot;",
|
1509 | "8763": "homtht;",
|
1510 | "8764": "Tilde;",
|
1511 | "8765": "bsim;",
|
1512 | "8766": "mstpos;",
|
1513 | "8767": "acd;",
|
1514 | "8768": "wreath;",
|
1515 | "8769": "nsim;",
|
1516 | "8770": "esim;",
|
1517 | "8771": "TildeEqual;",
|
1518 | "8772": "nsimeq;",
|
1519 | "8773": "TildeFullEqual;",
|
1520 | "8774": "simne;",
|
1521 | "8775": "NotTildeFullEqual;",
|
1522 | "8776": "TildeTilde;",
|
1523 | "8777": "NotTildeTilde;",
|
1524 | "8778": "approxeq;",
|
1525 | "8779": "apid;",
|
1526 | "8780": "bcong;",
|
1527 | "8781": "CupCap;",
|
1528 | "8782": "HumpDownHump;",
|
1529 | "8783": "HumpEqual;",
|
1530 | "8784": "esdot;",
|
1531 | "8785": "eDot;",
|
1532 | "8786": "fallingdotseq;",
|
1533 | "8787": "risingdotseq;",
|
1534 | "8788": "coloneq;",
|
1535 | "8789": "eqcolon;",
|
1536 | "8790": "eqcirc;",
|
1537 | "8791": "cire;",
|
1538 | "8793": "wedgeq;",
|
1539 | "8794": "veeeq;",
|
1540 | "8796": "trie;",
|
1541 | "8799": "questeq;",
|
1542 | "8800": "NotEqual;",
|
1543 | "8801": "equiv;",
|
1544 | "8802": "NotCongruent;",
|
1545 | "8804": "leq;",
|
1546 | "8805": "GreaterEqual;",
|
1547 | "8806": "LessFullEqual;",
|
1548 | "8807": "GreaterFullEqual;",
|
1549 | "8808": "lneqq;",
|
1550 | "8809": "gneqq;",
|
1551 | "8810": "NestedLessLess;",
|
1552 | "8811": "NestedGreaterGreater;",
|
1553 | "8812": "twixt;",
|
1554 | "8813": "NotCupCap;",
|
1555 | "8814": "NotLess;",
|
1556 | "8815": "NotGreater;",
|
1557 | "8816": "NotLessEqual;",
|
1558 | "8817": "NotGreaterEqual;",
|
1559 | "8818": "lsim;",
|
1560 | "8819": "gtrsim;",
|
1561 | "8820": "NotLessTilde;",
|
1562 | "8821": "NotGreaterTilde;",
|
1563 | "8822": "lg;",
|
1564 | "8823": "gtrless;",
|
1565 | "8824": "ntlg;",
|
1566 | "8825": "ntgl;",
|
1567 | "8826": "Precedes;",
|
1568 | "8827": "Succeeds;",
|
1569 | "8828": "PrecedesSlantEqual;",
|
1570 | "8829": "SucceedsSlantEqual;",
|
1571 | "8830": "prsim;",
|
1572 | "8831": "succsim;",
|
1573 | "8832": "nprec;",
|
1574 | "8833": "nsucc;",
|
1575 | "8834": "subset;",
|
1576 | "8835": "supset;",
|
1577 | "8836": "nsub;",
|
1578 | "8837": "nsup;",
|
1579 | "8838": "SubsetEqual;",
|
1580 | "8839": "supseteq;",
|
1581 | "8840": "nsubseteq;",
|
1582 | "8841": "nsupseteq;",
|
1583 | "8842": "subsetneq;",
|
1584 | "8843": "supsetneq;",
|
1585 | "8845": "cupdot;",
|
1586 | "8846": "uplus;",
|
1587 | "8847": "SquareSubset;",
|
1588 | "8848": "SquareSuperset;",
|
1589 | "8849": "SquareSubsetEqual;",
|
1590 | "8850": "SquareSupersetEqual;",
|
1591 | "8851": "SquareIntersection;",
|
1592 | "8852": "SquareUnion;",
|
1593 | "8853": "oplus;",
|
1594 | "8854": "ominus;",
|
1595 | "8855": "otimes;",
|
1596 | "8856": "osol;",
|
1597 | "8857": "odot;",
|
1598 | "8858": "ocir;",
|
1599 | "8859": "oast;",
|
1600 | "8861": "odash;",
|
1601 | "8862": "plusb;",
|
1602 | "8863": "minusb;",
|
1603 | "8864": "timesb;",
|
1604 | "8865": "sdotb;",
|
1605 | "8866": "vdash;",
|
1606 | "8867": "LeftTee;",
|
1607 | "8868": "top;",
|
1608 | "8869": "UpTee;",
|
1609 | "8871": "models;",
|
1610 | "8872": "vDash;",
|
1611 | "8873": "Vdash;",
|
1612 | "8874": "Vvdash;",
|
1613 | "8875": "VDash;",
|
1614 | "8876": "nvdash;",
|
1615 | "8877": "nvDash;",
|
1616 | "8878": "nVdash;",
|
1617 | "8879": "nVDash;",
|
1618 | "8880": "prurel;",
|
1619 | "8882": "vltri;",
|
1620 | "8883": "vrtri;",
|
1621 | "8884": "trianglelefteq;",
|
1622 | "8885": "trianglerighteq;",
|
1623 | "8886": "origof;",
|
1624 | "8887": "imof;",
|
1625 | "8888": "mumap;",
|
1626 | "8889": "hercon;",
|
1627 | "8890": "intercal;",
|
1628 | "8891": "veebar;",
|
1629 | "8893": "barvee;",
|
1630 | "8894": "angrtvb;",
|
1631 | "8895": "lrtri;",
|
1632 | "8896": "xwedge;",
|
1633 | "8897": "xvee;",
|
1634 | "8898": "xcap;",
|
1635 | "8899": "xcup;",
|
1636 | "8900": "diamond;",
|
1637 | "8901": "sdot;",
|
1638 | "8902": "Star;",
|
1639 | "8903": "divonx;",
|
1640 | "8904": "bowtie;",
|
1641 | "8905": "ltimes;",
|
1642 | "8906": "rtimes;",
|
1643 | "8907": "lthree;",
|
1644 | "8908": "rthree;",
|
1645 | "8909": "bsime;",
|
1646 | "8910": "cuvee;",
|
1647 | "8911": "cuwed;",
|
1648 | "8912": "Subset;",
|
1649 | "8913": "Supset;",
|
1650 | "8914": "Cap;",
|
1651 | "8915": "Cup;",
|
1652 | "8916": "pitchfork;",
|
1653 | "8917": "epar;",
|
1654 | "8918": "ltdot;",
|
1655 | "8919": "gtrdot;",
|
1656 | "8920": "Ll;",
|
1657 | "8921": "ggg;",
|
1658 | "8922": "LessEqualGreater;",
|
1659 | "8923": "gtreqless;",
|
1660 | "8926": "curlyeqprec;",
|
1661 | "8927": "curlyeqsucc;",
|
1662 | "8928": "nprcue;",
|
1663 | "8929": "nsccue;",
|
1664 | "8930": "nsqsube;",
|
1665 | "8931": "nsqsupe;",
|
1666 | "8934": "lnsim;",
|
1667 | "8935": "gnsim;",
|
1668 | "8936": "prnsim;",
|
1669 | "8937": "succnsim;",
|
1670 | "8938": "ntriangleleft;",
|
1671 | "8939": "ntriangleright;",
|
1672 | "8940": "ntrianglelefteq;",
|
1673 | "8941": "ntrianglerighteq;",
|
1674 | "8942": "vellip;",
|
1675 | "8943": "ctdot;",
|
1676 | "8944": "utdot;",
|
1677 | "8945": "dtdot;",
|
1678 | "8946": "disin;",
|
1679 | "8947": "isinsv;",
|
1680 | "8948": "isins;",
|
1681 | "8949": "isindot;",
|
1682 | "8950": "notinvc;",
|
1683 | "8951": "notinvb;",
|
1684 | "8953": "isinE;",
|
1685 | "8954": "nisd;",
|
1686 | "8955": "xnis;",
|
1687 | "8956": "nis;",
|
1688 | "8957": "notnivc;",
|
1689 | "8958": "notnivb;",
|
1690 | "8965": "barwedge;",
|
1691 | "8966": "doublebarwedge;",
|
1692 | "8968": "LeftCeiling;",
|
1693 | "8969": "RightCeiling;",
|
1694 | "8970": "lfloor;",
|
1695 | "8971": "RightFloor;",
|
1696 | "8972": "drcrop;",
|
1697 | "8973": "dlcrop;",
|
1698 | "8974": "urcrop;",
|
1699 | "8975": "ulcrop;",
|
1700 | "8976": "bnot;",
|
1701 | "8978": "profline;",
|
1702 | "8979": "profsurf;",
|
1703 | "8981": "telrec;",
|
1704 | "8982": "target;",
|
1705 | "8988": "ulcorner;",
|
1706 | "8989": "urcorner;",
|
1707 | "8990": "llcorner;",
|
1708 | "8991": "lrcorner;",
|
1709 | "8994": "sfrown;",
|
1710 | "8995": "ssmile;",
|
1711 | "9005": "cylcty;",
|
1712 | "9006": "profalar;",
|
1713 | "9014": "topbot;",
|
1714 | "9021": "ovbar;",
|
1715 | "9023": "solbar;",
|
1716 | "9084": "angzarr;",
|
1717 | "9136": "lmoustache;",
|
1718 | "9137": "rmoustache;",
|
1719 | "9140": "tbrk;",
|
1720 | "9141": "UnderBracket;",
|
1721 | "9142": "bbrktbrk;",
|
1722 | "9180": "OverParenthesis;",
|
1723 | "9181": "UnderParenthesis;",
|
1724 | "9182": "OverBrace;",
|
1725 | "9183": "UnderBrace;",
|
1726 | "9186": "trpezium;",
|
1727 | "9191": "elinters;",
|
1728 | "9251": "blank;",
|
1729 | "9416": "oS;",
|
1730 | "9472": "HorizontalLine;",
|
1731 | "9474": "boxv;",
|
1732 | "9484": "boxdr;",
|
1733 | "9488": "boxdl;",
|
1734 | "9492": "boxur;",
|
1735 | "9496": "boxul;",
|
1736 | "9500": "boxvr;",
|
1737 | "9508": "boxvl;",
|
1738 | "9516": "boxhd;",
|
1739 | "9524": "boxhu;",
|
1740 | "9532": "boxvh;",
|
1741 | "9552": "boxH;",
|
1742 | "9553": "boxV;",
|
1743 | "9554": "boxdR;",
|
1744 | "9555": "boxDr;",
|
1745 | "9556": "boxDR;",
|
1746 | "9557": "boxdL;",
|
1747 | "9558": "boxDl;",
|
1748 | "9559": "boxDL;",
|
1749 | "9560": "boxuR;",
|
1750 | "9561": "boxUr;",
|
1751 | "9562": "boxUR;",
|
1752 | "9563": "boxuL;",
|
1753 | "9564": "boxUl;",
|
1754 | "9565": "boxUL;",
|
1755 | "9566": "boxvR;",
|
1756 | "9567": "boxVr;",
|
1757 | "9568": "boxVR;",
|
1758 | "9569": "boxvL;",
|
1759 | "9570": "boxVl;",
|
1760 | "9571": "boxVL;",
|
1761 | "9572": "boxHd;",
|
1762 | "9573": "boxhD;",
|
1763 | "9574": "boxHD;",
|
1764 | "9575": "boxHu;",
|
1765 | "9576": "boxhU;",
|
1766 | "9577": "boxHU;",
|
1767 | "9578": "boxvH;",
|
1768 | "9579": "boxVh;",
|
1769 | "9580": "boxVH;",
|
1770 | "9600": "uhblk;",
|
1771 | "9604": "lhblk;",
|
1772 | "9608": "block;",
|
1773 | "9617": "blk14;",
|
1774 | "9618": "blk12;",
|
1775 | "9619": "blk34;",
|
1776 | "9633": "square;",
|
1777 | "9642": "squf;",
|
1778 | "9643": "EmptyVerySmallSquare;",
|
1779 | "9645": "rect;",
|
1780 | "9646": "marker;",
|
1781 | "9649": "fltns;",
|
1782 | "9651": "xutri;",
|
1783 | "9652": "utrif;",
|
1784 | "9653": "utri;",
|
1785 | "9656": "rtrif;",
|
1786 | "9657": "triangleright;",
|
1787 | "9661": "xdtri;",
|
1788 | "9662": "dtrif;",
|
1789 | "9663": "triangledown;",
|
1790 | "9666": "ltrif;",
|
1791 | "9667": "triangleleft;",
|
1792 | "9674": "lozenge;",
|
1793 | "9675": "cir;",
|
1794 | "9708": "tridot;",
|
1795 | "9711": "xcirc;",
|
1796 | "9720": "ultri;",
|
1797 | "9721": "urtri;",
|
1798 | "9722": "lltri;",
|
1799 | "9723": "EmptySmallSquare;",
|
1800 | "9724": "FilledSmallSquare;",
|
1801 | "9733": "starf;",
|
1802 | "9734": "star;",
|
1803 | "9742": "phone;",
|
1804 | "9792": "female;",
|
1805 | "9794": "male;",
|
1806 | "9824": "spadesuit;",
|
1807 | "9827": "clubsuit;",
|
1808 | "9829": "heartsuit;",
|
1809 | "9830": "diams;",
|
1810 | "9834": "sung;",
|
1811 | "9837": "flat;",
|
1812 | "9838": "natural;",
|
1813 | "9839": "sharp;",
|
1814 | "10003": "checkmark;",
|
1815 | "10007": "cross;",
|
1816 | "10016": "maltese;",
|
1817 | "10038": "sext;",
|
1818 | "10072": "VerticalSeparator;",
|
1819 | "10098": "lbbrk;",
|
1820 | "10099": "rbbrk;",
|
1821 | "10184": "bsolhsub;",
|
1822 | "10185": "suphsol;",
|
1823 | "10214": "lobrk;",
|
1824 | "10215": "robrk;",
|
1825 | "10216": "LeftAngleBracket;",
|
1826 | "10217": "RightAngleBracket;",
|
1827 | "10218": "Lang;",
|
1828 | "10219": "Rang;",
|
1829 | "10220": "loang;",
|
1830 | "10221": "roang;",
|
1831 | "10229": "xlarr;",
|
1832 | "10230": "xrarr;",
|
1833 | "10231": "xharr;",
|
1834 | "10232": "xlArr;",
|
1835 | "10233": "xrArr;",
|
1836 | "10234": "xhArr;",
|
1837 | "10236": "xmap;",
|
1838 | "10239": "dzigrarr;",
|
1839 | "10498": "nvlArr;",
|
1840 | "10499": "nvrArr;",
|
1841 | "10500": "nvHarr;",
|
1842 | "10501": "Map;",
|
1843 | "10508": "lbarr;",
|
1844 | "10509": "rbarr;",
|
1845 | "10510": "lBarr;",
|
1846 | "10511": "rBarr;",
|
1847 | "10512": "RBarr;",
|
1848 | "10513": "DDotrahd;",
|
1849 | "10514": "UpArrowBar;",
|
1850 | "10515": "DownArrowBar;",
|
1851 | "10518": "Rarrtl;",
|
1852 | "10521": "latail;",
|
1853 | "10522": "ratail;",
|
1854 | "10523": "lAtail;",
|
1855 | "10524": "rAtail;",
|
1856 | "10525": "larrfs;",
|
1857 | "10526": "rarrfs;",
|
1858 | "10527": "larrbfs;",
|
1859 | "10528": "rarrbfs;",
|
1860 | "10531": "nwarhk;",
|
1861 | "10532": "nearhk;",
|
1862 | "10533": "searhk;",
|
1863 | "10534": "swarhk;",
|
1864 | "10535": "nwnear;",
|
1865 | "10536": "toea;",
|
1866 | "10537": "tosa;",
|
1867 | "10538": "swnwar;",
|
1868 | "10547": "rarrc;",
|
1869 | "10549": "cudarrr;",
|
1870 | "10550": "ldca;",
|
1871 | "10551": "rdca;",
|
1872 | "10552": "cudarrl;",
|
1873 | "10553": "larrpl;",
|
1874 | "10556": "curarrm;",
|
1875 | "10557": "cularrp;",
|
1876 | "10565": "rarrpl;",
|
1877 | "10568": "harrcir;",
|
1878 | "10569": "Uarrocir;",
|
1879 | "10570": "lurdshar;",
|
1880 | "10571": "ldrushar;",
|
1881 | "10574": "LeftRightVector;",
|
1882 | "10575": "RightUpDownVector;",
|
1883 | "10576": "DownLeftRightVector;",
|
1884 | "10577": "LeftUpDownVector;",
|
1885 | "10578": "LeftVectorBar;",
|
1886 | "10579": "RightVectorBar;",
|
1887 | "10580": "RightUpVectorBar;",
|
1888 | "10581": "RightDownVectorBar;",
|
1889 | "10582": "DownLeftVectorBar;",
|
1890 | "10583": "DownRightVectorBar;",
|
1891 | "10584": "LeftUpVectorBar;",
|
1892 | "10585": "LeftDownVectorBar;",
|
1893 | "10586": "LeftTeeVector;",
|
1894 | "10587": "RightTeeVector;",
|
1895 | "10588": "RightUpTeeVector;",
|
1896 | "10589": "RightDownTeeVector;",
|
1897 | "10590": "DownLeftTeeVector;",
|
1898 | "10591": "DownRightTeeVector;",
|
1899 | "10592": "LeftUpTeeVector;",
|
1900 | "10593": "LeftDownTeeVector;",
|
1901 | "10594": "lHar;",
|
1902 | "10595": "uHar;",
|
1903 | "10596": "rHar;",
|
1904 | "10597": "dHar;",
|
1905 | "10598": "luruhar;",
|
1906 | "10599": "ldrdhar;",
|
1907 | "10600": "ruluhar;",
|
1908 | "10601": "rdldhar;",
|
1909 | "10602": "lharul;",
|
1910 | "10603": "llhard;",
|
1911 | "10604": "rharul;",
|
1912 | "10605": "lrhard;",
|
1913 | "10606": "UpEquilibrium;",
|
1914 | "10607": "ReverseUpEquilibrium;",
|
1915 | "10608": "RoundImplies;",
|
1916 | "10609": "erarr;",
|
1917 | "10610": "simrarr;",
|
1918 | "10611": "larrsim;",
|
1919 | "10612": "rarrsim;",
|
1920 | "10613": "rarrap;",
|
1921 | "10614": "ltlarr;",
|
1922 | "10616": "gtrarr;",
|
1923 | "10617": "subrarr;",
|
1924 | "10619": "suplarr;",
|
1925 | "10620": "lfisht;",
|
1926 | "10621": "rfisht;",
|
1927 | "10622": "ufisht;",
|
1928 | "10623": "dfisht;",
|
1929 | "10629": "lopar;",
|
1930 | "10630": "ropar;",
|
1931 | "10635": "lbrke;",
|
1932 | "10636": "rbrke;",
|
1933 | "10637": "lbrkslu;",
|
1934 | "10638": "rbrksld;",
|
1935 | "10639": "lbrksld;",
|
1936 | "10640": "rbrkslu;",
|
1937 | "10641": "langd;",
|
1938 | "10642": "rangd;",
|
1939 | "10643": "lparlt;",
|
1940 | "10644": "rpargt;",
|
1941 | "10645": "gtlPar;",
|
1942 | "10646": "ltrPar;",
|
1943 | "10650": "vzigzag;",
|
1944 | "10652": "vangrt;",
|
1945 | "10653": "angrtvbd;",
|
1946 | "10660": "ange;",
|
1947 | "10661": "range;",
|
1948 | "10662": "dwangle;",
|
1949 | "10663": "uwangle;",
|
1950 | "10664": "angmsdaa;",
|
1951 | "10665": "angmsdab;",
|
1952 | "10666": "angmsdac;",
|
1953 | "10667": "angmsdad;",
|
1954 | "10668": "angmsdae;",
|
1955 | "10669": "angmsdaf;",
|
1956 | "10670": "angmsdag;",
|
1957 | "10671": "angmsdah;",
|
1958 | "10672": "bemptyv;",
|
1959 | "10673": "demptyv;",
|
1960 | "10674": "cemptyv;",
|
1961 | "10675": "raemptyv;",
|
1962 | "10676": "laemptyv;",
|
1963 | "10677": "ohbar;",
|
1964 | "10678": "omid;",
|
1965 | "10679": "opar;",
|
1966 | "10681": "operp;",
|
1967 | "10683": "olcross;",
|
1968 | "10684": "odsold;",
|
1969 | "10686": "olcir;",
|
1970 | "10687": "ofcir;",
|
1971 | "10688": "olt;",
|
1972 | "10689": "ogt;",
|
1973 | "10690": "cirscir;",
|
1974 | "10691": "cirE;",
|
1975 | "10692": "solb;",
|
1976 | "10693": "bsolb;",
|
1977 | "10697": "boxbox;",
|
1978 | "10701": "trisb;",
|
1979 | "10702": "rtriltri;",
|
1980 | "10703": "LeftTriangleBar;",
|
1981 | "10704": "RightTriangleBar;",
|
1982 | "10716": "iinfin;",
|
1983 | "10717": "infintie;",
|
1984 | "10718": "nvinfin;",
|
1985 | "10723": "eparsl;",
|
1986 | "10724": "smeparsl;",
|
1987 | "10725": "eqvparsl;",
|
1988 | "10731": "lozf;",
|
1989 | "10740": "RuleDelayed;",
|
1990 | "10742": "dsol;",
|
1991 | "10752": "xodot;",
|
1992 | "10753": "xoplus;",
|
1993 | "10754": "xotime;",
|
1994 | "10756": "xuplus;",
|
1995 | "10758": "xsqcup;",
|
1996 | "10764": "qint;",
|
1997 | "10765": "fpartint;",
|
1998 | "10768": "cirfnint;",
|
1999 | "10769": "awint;",
|
2000 | "10770": "rppolint;",
|
2001 | "10771": "scpolint;",
|
2002 | "10772": "npolint;",
|
2003 | "10773": "pointint;",
|
2004 | "10774": "quatint;",
|
2005 | "10775": "intlarhk;",
|
2006 | "10786": "pluscir;",
|
2007 | "10787": "plusacir;",
|
2008 | "10788": "simplus;",
|
2009 | "10789": "plusdu;",
|
2010 | "10790": "plussim;",
|
2011 | "10791": "plustwo;",
|
2012 | "10793": "mcomma;",
|
2013 | "10794": "minusdu;",
|
2014 | "10797": "loplus;",
|
2015 | "10798": "roplus;",
|
2016 | "10799": "Cross;",
|
2017 | "10800": "timesd;",
|
2018 | "10801": "timesbar;",
|
2019 | "10803": "smashp;",
|
2020 | "10804": "lotimes;",
|
2021 | "10805": "rotimes;",
|
2022 | "10806": "otimesas;",
|
2023 | "10807": "Otimes;",
|
2024 | "10808": "odiv;",
|
2025 | "10809": "triplus;",
|
2026 | "10810": "triminus;",
|
2027 | "10811": "tritime;",
|
2028 | "10812": "iprod;",
|
2029 | "10815": "amalg;",
|
2030 | "10816": "capdot;",
|
2031 | "10818": "ncup;",
|
2032 | "10819": "ncap;",
|
2033 | "10820": "capand;",
|
2034 | "10821": "cupor;",
|
2035 | "10822": "cupcap;",
|
2036 | "10823": "capcup;",
|
2037 | "10824": "cupbrcap;",
|
2038 | "10825": "capbrcup;",
|
2039 | "10826": "cupcup;",
|
2040 | "10827": "capcap;",
|
2041 | "10828": "ccups;",
|
2042 | "10829": "ccaps;",
|
2043 | "10832": "ccupssm;",
|
2044 | "10835": "And;",
|
2045 | "10836": "Or;",
|
2046 | "10837": "andand;",
|
2047 | "10838": "oror;",
|
2048 | "10839": "orslope;",
|
2049 | "10840": "andslope;",
|
2050 | "10842": "andv;",
|
2051 | "10843": "orv;",
|
2052 | "10844": "andd;",
|
2053 | "10845": "ord;",
|
2054 | "10847": "wedbar;",
|
2055 | "10854": "sdote;",
|
2056 | "10858": "simdot;",
|
2057 | "10861": "congdot;",
|
2058 | "10862": "easter;",
|
2059 | "10863": "apacir;",
|
2060 | "10864": "apE;",
|
2061 | "10865": "eplus;",
|
2062 | "10866": "pluse;",
|
2063 | "10867": "Esim;",
|
2064 | "10868": "Colone;",
|
2065 | "10869": "Equal;",
|
2066 | "10871": "eDDot;",
|
2067 | "10872": "equivDD;",
|
2068 | "10873": "ltcir;",
|
2069 | "10874": "gtcir;",
|
2070 | "10875": "ltquest;",
|
2071 | "10876": "gtquest;",
|
2072 | "10877": "LessSlantEqual;",
|
2073 | "10878": "GreaterSlantEqual;",
|
2074 | "10879": "lesdot;",
|
2075 | "10880": "gesdot;",
|
2076 | "10881": "lesdoto;",
|
2077 | "10882": "gesdoto;",
|
2078 | "10883": "lesdotor;",
|
2079 | "10884": "gesdotol;",
|
2080 | "10885": "lessapprox;",
|
2081 | "10886": "gtrapprox;",
|
2082 | "10887": "lneq;",
|
2083 | "10888": "gneq;",
|
2084 | "10889": "lnapprox;",
|
2085 | "10890": "gnapprox;",
|
2086 | "10891": "lesseqqgtr;",
|
2087 | "10892": "gtreqqless;",
|
2088 | "10893": "lsime;",
|
2089 | "10894": "gsime;",
|
2090 | "10895": "lsimg;",
|
2091 | "10896": "gsiml;",
|
2092 | "10897": "lgE;",
|
2093 | "10898": "glE;",
|
2094 | "10899": "lesges;",
|
2095 | "10900": "gesles;",
|
2096 | "10901": "eqslantless;",
|
2097 | "10902": "eqslantgtr;",
|
2098 | "10903": "elsdot;",
|
2099 | "10904": "egsdot;",
|
2100 | "10905": "el;",
|
2101 | "10906": "eg;",
|
2102 | "10909": "siml;",
|
2103 | "10910": "simg;",
|
2104 | "10911": "simlE;",
|
2105 | "10912": "simgE;",
|
2106 | "10913": "LessLess;",
|
2107 | "10914": "GreaterGreater;",
|
2108 | "10916": "glj;",
|
2109 | "10917": "gla;",
|
2110 | "10918": "ltcc;",
|
2111 | "10919": "gtcc;",
|
2112 | "10920": "lescc;",
|
2113 | "10921": "gescc;",
|
2114 | "10922": "smt;",
|
2115 | "10923": "lat;",
|
2116 | "10924": "smte;",
|
2117 | "10925": "late;",
|
2118 | "10926": "bumpE;",
|
2119 | "10927": "preceq;",
|
2120 | "10928": "succeq;",
|
2121 | "10931": "prE;",
|
2122 | "10932": "scE;",
|
2123 | "10933": "prnE;",
|
2124 | "10934": "succneqq;",
|
2125 | "10935": "precapprox;",
|
2126 | "10936": "succapprox;",
|
2127 | "10937": "prnap;",
|
2128 | "10938": "succnapprox;",
|
2129 | "10939": "Pr;",
|
2130 | "10940": "Sc;",
|
2131 | "10941": "subdot;",
|
2132 | "10942": "supdot;",
|
2133 | "10943": "subplus;",
|
2134 | "10944": "supplus;",
|
2135 | "10945": "submult;",
|
2136 | "10946": "supmult;",
|
2137 | "10947": "subedot;",
|
2138 | "10948": "supedot;",
|
2139 | "10949": "subseteqq;",
|
2140 | "10950": "supseteqq;",
|
2141 | "10951": "subsim;",
|
2142 | "10952": "supsim;",
|
2143 | "10955": "subsetneqq;",
|
2144 | "10956": "supsetneqq;",
|
2145 | "10959": "csub;",
|
2146 | "10960": "csup;",
|
2147 | "10961": "csube;",
|
2148 | "10962": "csupe;",
|
2149 | "10963": "subsup;",
|
2150 | "10964": "supsub;",
|
2151 | "10965": "subsub;",
|
2152 | "10966": "supsup;",
|
2153 | "10967": "suphsub;",
|
2154 | "10968": "supdsub;",
|
2155 | "10969": "forkv;",
|
2156 | "10970": "topfork;",
|
2157 | "10971": "mlcp;",
|
2158 | "10980": "DoubleLeftTee;",
|
2159 | "10982": "Vdashl;",
|
2160 | "10983": "Barv;",
|
2161 | "10984": "vBar;",
|
2162 | "10985": "vBarv;",
|
2163 | "10987": "Vbar;",
|
2164 | "10988": "Not;",
|
2165 | "10989": "bNot;",
|
2166 | "10990": "rnmid;",
|
2167 | "10991": "cirmid;",
|
2168 | "10992": "midcir;",
|
2169 | "10993": "topcir;",
|
2170 | "10994": "nhpar;",
|
2171 | "10995": "parsim;",
|
2172 | "11005": "parsl;",
|
2173 | "64256": "fflig;",
|
2174 | "64257": "filig;",
|
2175 | "64258": "fllig;",
|
2176 | "64259": "ffilig;",
|
2177 | "64260": "ffllig;"
|
2178 | }
|
2179 | },{}],11:[function(require,module,exports){
|
2180 | 'use strict';
|
2181 |
|
2182 | var hasOwn = Object.prototype.hasOwnProperty;
|
2183 | var toStr = Object.prototype.toString;
|
2184 | var defineProperty = Object.defineProperty;
|
2185 | var gOPD = Object.getOwnPropertyDescriptor;
|
2186 |
|
2187 | var isArray = function isArray(arr) {
|
2188 | if (typeof Array.isArray === 'function') {
|
2189 | return Array.isArray(arr);
|
2190 | }
|
2191 |
|
2192 | return toStr.call(arr) === '[object Array]';
|
2193 | };
|
2194 |
|
2195 | var isPlainObject = function isPlainObject(obj) {
|
2196 | if (!obj || toStr.call(obj) !== '[object Object]') {
|
2197 | return false;
|
2198 | }
|
2199 |
|
2200 | var hasOwnConstructor = hasOwn.call(obj, 'constructor');
|
2201 | var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');
|
2202 |
|
2203 | if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
|
2204 | return false;
|
2205 | }
|
2206 |
|
2207 |
|
2208 |
|
2209 | var key;
|
2210 | for (key in obj) { }
|
2211 |
|
2212 | return typeof key === 'undefined' || hasOwn.call(obj, key);
|
2213 | };
|
2214 |
|
2215 |
|
2216 | var setProperty = function setProperty(target, options) {
|
2217 | if (defineProperty && options.name === '__proto__') {
|
2218 | defineProperty(target, options.name, {
|
2219 | enumerable: true,
|
2220 | configurable: true,
|
2221 | value: options.newValue,
|
2222 | writable: true
|
2223 | });
|
2224 | } else {
|
2225 | target[options.name] = options.newValue;
|
2226 | }
|
2227 | };
|
2228 |
|
2229 |
|
2230 | var getProperty = function getProperty(obj, name) {
|
2231 | if (name === '__proto__') {
|
2232 | if (!hasOwn.call(obj, name)) {
|
2233 | return void 0;
|
2234 | } else if (gOPD) {
|
2235 |
|
2236 |
|
2237 | return gOPD(obj, name).value;
|
2238 | }
|
2239 | }
|
2240 |
|
2241 | return obj[name];
|
2242 | };
|
2243 |
|
2244 | module.exports = function extend() {
|
2245 | var options, name, src, copy, copyIsArray, clone;
|
2246 | var target = arguments[0];
|
2247 | var i = 1;
|
2248 | var length = arguments.length;
|
2249 | var deep = false;
|
2250 |
|
2251 |
|
2252 | if (typeof target === 'boolean') {
|
2253 | deep = target;
|
2254 | target = arguments[1] || {};
|
2255 |
|
2256 | i = 2;
|
2257 | }
|
2258 | if (target == null || (typeof target !== 'object' && typeof target !== 'function')) {
|
2259 | target = {};
|
2260 | }
|
2261 |
|
2262 | for (; i < length; ++i) {
|
2263 | options = arguments[i];
|
2264 |
|
2265 | if (options != null) {
|
2266 |
|
2267 | for (name in options) {
|
2268 | src = getProperty(target, name);
|
2269 | copy = getProperty(options, name);
|
2270 |
|
2271 |
|
2272 | if (target !== copy) {
|
2273 |
|
2274 | if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
|
2275 | if (copyIsArray) {
|
2276 | copyIsArray = false;
|
2277 | clone = src && isArray(src) ? src : [];
|
2278 | } else {
|
2279 | clone = src && isPlainObject(src) ? src : {};
|
2280 | }
|
2281 |
|
2282 |
|
2283 | setProperty(target, { name: name, newValue: extend(deep, clone, copy) });
|
2284 |
|
2285 |
|
2286 | } else if (typeof copy !== 'undefined') {
|
2287 | setProperty(target, { name: name, newValue: copy });
|
2288 | }
|
2289 | }
|
2290 | }
|
2291 | }
|
2292 | }
|
2293 |
|
2294 |
|
2295 | return target;
|
2296 | };
|
2297 |
|
2298 | },{}],12:[function(require,module,exports){
|
2299 | (function (global){
|
2300 |
|
2301 | ;(function(root) {
|
2302 |
|
2303 |
|
2304 | var freeExports = typeof exports == 'object' && exports &&
|
2305 | !exports.nodeType && exports;
|
2306 | var freeModule = typeof module == 'object' && module &&
|
2307 | !module.nodeType && module;
|
2308 | var freeGlobal = typeof global == 'object' && global;
|
2309 | if (
|
2310 | freeGlobal.global === freeGlobal ||
|
2311 | freeGlobal.window === freeGlobal ||
|
2312 | freeGlobal.self === freeGlobal
|
2313 | ) {
|
2314 | root = freeGlobal;
|
2315 | }
|
2316 |
|
2317 | |
2318 |
|
2319 |
|
2320 |
|
2321 |
|
2322 | var punycode,
|
2323 |
|
2324 |
|
2325 | maxInt = 2147483647,
|
2326 |
|
2327 |
|
2328 | base = 36,
|
2329 | tMin = 1,
|
2330 | tMax = 26,
|
2331 | skew = 38,
|
2332 | damp = 700,
|
2333 | initialBias = 72,
|
2334 | initialN = 128,
|
2335 | delimiter = '-',
|
2336 |
|
2337 |
|
2338 | regexPunycode = /^xn--/,
|
2339 | regexNonASCII = /[^\x20-\x7E]/,
|
2340 | regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g,
|
2341 |
|
2342 |
|
2343 | errors = {
|
2344 | 'overflow': 'Overflow: input needs wider integers to process',
|
2345 | 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
2346 | 'invalid-input': 'Invalid input'
|
2347 | },
|
2348 |
|
2349 |
|
2350 | baseMinusTMin = base - tMin,
|
2351 | floor = Math.floor,
|
2352 | stringFromCharCode = String.fromCharCode,
|
2353 |
|
2354 |
|
2355 | key;
|
2356 |
|
2357 |
|
2358 |
|
2359 | |
2360 |
|
2361 |
|
2362 |
|
2363 |
|
2364 |
|
2365 | function error(type) {
|
2366 | throw new RangeError(errors[type]);
|
2367 | }
|
2368 |
|
2369 | |
2370 |
|
2371 |
|
2372 |
|
2373 |
|
2374 |
|
2375 |
|
2376 |
|
2377 | function map(array, fn) {
|
2378 | var length = array.length;
|
2379 | var result = [];
|
2380 | while (length--) {
|
2381 | result[length] = fn(array[length]);
|
2382 | }
|
2383 | return result;
|
2384 | }
|
2385 |
|
2386 | |
2387 |
|
2388 |
|
2389 |
|
2390 |
|
2391 |
|
2392 |
|
2393 |
|
2394 |
|
2395 |
|
2396 | function mapDomain(string, fn) {
|
2397 | var parts = string.split('@');
|
2398 | var result = '';
|
2399 | if (parts.length > 1) {
|
2400 |
|
2401 |
|
2402 | result = parts[0] + '@';
|
2403 | string = parts[1];
|
2404 | }
|
2405 |
|
2406 | string = string.replace(regexSeparators, '\x2E');
|
2407 | var labels = string.split('.');
|
2408 | var encoded = map(labels, fn).join('.');
|
2409 | return result + encoded;
|
2410 | }
|
2411 |
|
2412 | |
2413 |
|
2414 |
|
2415 |
|
2416 |
|
2417 |
|
2418 |
|
2419 |
|
2420 |
|
2421 |
|
2422 |
|
2423 |
|
2424 |
|
2425 | function ucs2decode(string) {
|
2426 | var output = [],
|
2427 | counter = 0,
|
2428 | length = string.length,
|
2429 | value,
|
2430 | extra;
|
2431 | while (counter < length) {
|
2432 | value = string.charCodeAt(counter++);
|
2433 | if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
2434 |
|
2435 | extra = string.charCodeAt(counter++);
|
2436 | if ((extra & 0xFC00) == 0xDC00) {
|
2437 | output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
2438 | } else {
|
2439 |
|
2440 |
|
2441 | output.push(value);
|
2442 | counter--;
|
2443 | }
|
2444 | } else {
|
2445 | output.push(value);
|
2446 | }
|
2447 | }
|
2448 | return output;
|
2449 | }
|
2450 |
|
2451 | |
2452 |
|
2453 |
|
2454 |
|
2455 |
|
2456 |
|
2457 |
|
2458 |
|
2459 | function ucs2encode(array) {
|
2460 | return map(array, function(value) {
|
2461 | var output = '';
|
2462 | if (value > 0xFFFF) {
|
2463 | value -= 0x10000;
|
2464 | output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
|
2465 | value = 0xDC00 | value & 0x3FF;
|
2466 | }
|
2467 | output += stringFromCharCode(value);
|
2468 | return output;
|
2469 | }).join('');
|
2470 | }
|
2471 |
|
2472 | |
2473 |
|
2474 |
|
2475 |
|
2476 |
|
2477 |
|
2478 |
|
2479 |
|
2480 |
|
2481 | function basicToDigit(codePoint) {
|
2482 | if (codePoint - 48 < 10) {
|
2483 | return codePoint - 22;
|
2484 | }
|
2485 | if (codePoint - 65 < 26) {
|
2486 | return codePoint - 65;
|
2487 | }
|
2488 | if (codePoint - 97 < 26) {
|
2489 | return codePoint - 97;
|
2490 | }
|
2491 | return base;
|
2492 | }
|
2493 |
|
2494 | |
2495 |
|
2496 |
|
2497 |
|
2498 |
|
2499 |
|
2500 |
|
2501 |
|
2502 |
|
2503 |
|
2504 |
|
2505 | function digitToBasic(digit, flag) {
|
2506 |
|
2507 |
|
2508 | return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
2509 | }
|
2510 |
|
2511 | |
2512 |
|
2513 |
|
2514 |
|
2515 |
|
2516 | function adapt(delta, numPoints, firstTime) {
|
2517 | var k = 0;
|
2518 | delta = firstTime ? floor(delta / damp) : delta >> 1;
|
2519 | delta += floor(delta / numPoints);
|
2520 | for (; delta > baseMinusTMin * tMax >> 1; k += base) {
|
2521 | delta = floor(delta / baseMinusTMin);
|
2522 | }
|
2523 | return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
2524 | }
|
2525 |
|
2526 | |
2527 |
|
2528 |
|
2529 |
|
2530 |
|
2531 |
|
2532 |
|
2533 | function decode(input) {
|
2534 |
|
2535 | var output = [],
|
2536 | inputLength = input.length,
|
2537 | out,
|
2538 | i = 0,
|
2539 | n = initialN,
|
2540 | bias = initialBias,
|
2541 | basic,
|
2542 | j,
|
2543 | index,
|
2544 | oldi,
|
2545 | w,
|
2546 | k,
|
2547 | digit,
|
2548 | t,
|
2549 |
|
2550 | baseMinusT;
|
2551 |
|
2552 |
|
2553 |
|
2554 |
|
2555 |
|
2556 | basic = input.lastIndexOf(delimiter);
|
2557 | if (basic < 0) {
|
2558 | basic = 0;
|
2559 | }
|
2560 |
|
2561 | for (j = 0; j < basic; ++j) {
|
2562 |
|
2563 | if (input.charCodeAt(j) >= 0x80) {
|
2564 | error('not-basic');
|
2565 | }
|
2566 | output.push(input.charCodeAt(j));
|
2567 | }
|
2568 |
|
2569 |
|
2570 |
|
2571 |
|
2572 | for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
|
2573 |
|
2574 |
|
2575 |
|
2576 |
|
2577 |
|
2578 |
|
2579 | for (oldi = i, w = 1, k = base; ; k += base) {
|
2580 |
|
2581 | if (index >= inputLength) {
|
2582 | error('invalid-input');
|
2583 | }
|
2584 |
|
2585 | digit = basicToDigit(input.charCodeAt(index++));
|
2586 |
|
2587 | if (digit >= base || digit > floor((maxInt - i) / w)) {
|
2588 | error('overflow');
|
2589 | }
|
2590 |
|
2591 | i += digit * w;
|
2592 | t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
2593 |
|
2594 | if (digit < t) {
|
2595 | break;
|
2596 | }
|
2597 |
|
2598 | baseMinusT = base - t;
|
2599 | if (w > floor(maxInt / baseMinusT)) {
|
2600 | error('overflow');
|
2601 | }
|
2602 |
|
2603 | w *= baseMinusT;
|
2604 |
|
2605 | }
|
2606 |
|
2607 | out = output.length + 1;
|
2608 | bias = adapt(i - oldi, out, oldi == 0);
|
2609 |
|
2610 |
|
2611 |
|
2612 | if (floor(i / out) > maxInt - n) {
|
2613 | error('overflow');
|
2614 | }
|
2615 |
|
2616 | n += floor(i / out);
|
2617 | i %= out;
|
2618 |
|
2619 |
|
2620 | output.splice(i++, 0, n);
|
2621 |
|
2622 | }
|
2623 |
|
2624 | return ucs2encode(output);
|
2625 | }
|
2626 |
|
2627 | |
2628 |
|
2629 |
|
2630 |
|
2631 |
|
2632 |
|
2633 |
|
2634 | function encode(input) {
|
2635 | var n,
|
2636 | delta,
|
2637 | handledCPCount,
|
2638 | basicLength,
|
2639 | bias,
|
2640 | j,
|
2641 | m,
|
2642 | q,
|
2643 | k,
|
2644 | t,
|
2645 | currentValue,
|
2646 | output = [],
|
2647 |
|
2648 | inputLength,
|
2649 |
|
2650 | handledCPCountPlusOne,
|
2651 | baseMinusT,
|
2652 | qMinusT;
|
2653 |
|
2654 |
|
2655 | input = ucs2decode(input);
|
2656 |
|
2657 |
|
2658 | inputLength = input.length;
|
2659 |
|
2660 |
|
2661 | n = initialN;
|
2662 | delta = 0;
|
2663 | bias = initialBias;
|
2664 |
|
2665 |
|
2666 | for (j = 0; j < inputLength; ++j) {
|
2667 | currentValue = input[j];
|
2668 | if (currentValue < 0x80) {
|
2669 | output.push(stringFromCharCode(currentValue));
|
2670 | }
|
2671 | }
|
2672 |
|
2673 | handledCPCount = basicLength = output.length;
|
2674 |
|
2675 |
|
2676 |
|
2677 |
|
2678 |
|
2679 | if (basicLength) {
|
2680 | output.push(delimiter);
|
2681 | }
|
2682 |
|
2683 |
|
2684 | while (handledCPCount < inputLength) {
|
2685 |
|
2686 |
|
2687 |
|
2688 | for (m = maxInt, j = 0; j < inputLength; ++j) {
|
2689 | currentValue = input[j];
|
2690 | if (currentValue >= n && currentValue < m) {
|
2691 | m = currentValue;
|
2692 | }
|
2693 | }
|
2694 |
|
2695 |
|
2696 |
|
2697 | handledCPCountPlusOne = handledCPCount + 1;
|
2698 | if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
2699 | error('overflow');
|
2700 | }
|
2701 |
|
2702 | delta += (m - n) * handledCPCountPlusOne;
|
2703 | n = m;
|
2704 |
|
2705 | for (j = 0; j < inputLength; ++j) {
|
2706 | currentValue = input[j];
|
2707 |
|
2708 | if (currentValue < n && ++delta > maxInt) {
|
2709 | error('overflow');
|
2710 | }
|
2711 |
|
2712 | if (currentValue == n) {
|
2713 |
|
2714 | for (q = delta, k = base; ; k += base) {
|
2715 | t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
2716 | if (q < t) {
|
2717 | break;
|
2718 | }
|
2719 | qMinusT = q - t;
|
2720 | baseMinusT = base - t;
|
2721 | output.push(
|
2722 | stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
|
2723 | );
|
2724 | q = floor(qMinusT / baseMinusT);
|
2725 | }
|
2726 |
|
2727 | output.push(stringFromCharCode(digitToBasic(q, 0)));
|
2728 | bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
2729 | delta = 0;
|
2730 | ++handledCPCount;
|
2731 | }
|
2732 | }
|
2733 |
|
2734 | ++delta;
|
2735 | ++n;
|
2736 |
|
2737 | }
|
2738 | return output.join('');
|
2739 | }
|
2740 |
|
2741 | |
2742 |
|
2743 |
|
2744 |
|
2745 |
|
2746 |
|
2747 |
|
2748 |
|
2749 |
|
2750 |
|
2751 |
|
2752 | function toUnicode(input) {
|
2753 | return mapDomain(input, function(string) {
|
2754 | return regexPunycode.test(string)
|
2755 | ? decode(string.slice(4).toLowerCase())
|
2756 | : string;
|
2757 | });
|
2758 | }
|
2759 |
|
2760 | |
2761 |
|
2762 |
|
2763 |
|
2764 |
|
2765 |
|
2766 |
|
2767 |
|
2768 |
|
2769 |
|
2770 |
|
2771 | function toASCII(input) {
|
2772 | return mapDomain(input, function(string) {
|
2773 | return regexNonASCII.test(string)
|
2774 | ? 'xn--' + encode(string)
|
2775 | : string;
|
2776 | });
|
2777 | }
|
2778 |
|
2779 |
|
2780 |
|
2781 |
|
2782 | punycode = {
|
2783 | |
2784 |
|
2785 |
|
2786 |
|
2787 |
|
2788 | 'version': '1.4.1',
|
2789 | |
2790 |
|
2791 |
|
2792 |
|
2793 |
|
2794 |
|
2795 |
|
2796 | 'ucs2': {
|
2797 | 'decode': ucs2decode,
|
2798 | 'encode': ucs2encode
|
2799 | },
|
2800 | 'decode': decode,
|
2801 | 'encode': encode,
|
2802 | 'toASCII': toASCII,
|
2803 | 'toUnicode': toUnicode
|
2804 | };
|
2805 |
|
2806 |
|
2807 |
|
2808 |
|
2809 | if (
|
2810 | typeof define == 'function' &&
|
2811 | typeof define.amd == 'object' &&
|
2812 | define.amd
|
2813 | ) {
|
2814 | define('punycode', function() {
|
2815 | return punycode;
|
2816 | });
|
2817 | } else if (freeExports && freeModule) {
|
2818 | if (module.exports == freeExports) {
|
2819 |
|
2820 | freeModule.exports = punycode;
|
2821 | } else {
|
2822 |
|
2823 | for (key in punycode) {
|
2824 | punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
|
2825 | }
|
2826 | }
|
2827 | } else {
|
2828 |
|
2829 | root.punycode = punycode;
|
2830 | }
|
2831 |
|
2832 | }(this));
|
2833 |
|
2834 | }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
2835 | },{}],13:[function(require,module,exports){
|
2836 |
|
2837 |
|
2838 |
|
2839 |
|
2840 |
|
2841 | module.exports = {
|
2842 | "area": true,
|
2843 | "base": true,
|
2844 | "br": true,
|
2845 | "col": true,
|
2846 | "embed": true,
|
2847 | "hr": true,
|
2848 | "img": true,
|
2849 | "input": true,
|
2850 | "keygen": true,
|
2851 | "link": true,
|
2852 | "menuitem": true,
|
2853 | "meta": true,
|
2854 | "param": true,
|
2855 | "source": true,
|
2856 | "track": true,
|
2857 | "wbr": true
|
2858 | };
|
2859 |
|
2860 | },{}]},{},[3]);
|