if (!window.opera) { window.opera = { postError: function(a){console.log(a);}, stpVersion: true }; } /* (function() { var div = document.createElement('div') var setter = div.__lookupSetter__("scrollTop"); var getter = div.__lookupGetter__("scrollTop"); Element.prototype.__defineSetter__('scrollTop', function(scroll_top) { opera.postError('setter: '+this.nodeName + ', '+scroll_top); setter.call(this, scroll_top); }); Element.prototype.__defineGetter__('scrollTop', function() { var scroll_top = getter.call(this); return scroll_top; }); })(); */ /* testing in Chrome or FF if (document.createElementNS && document.createElement('div').namespaceURI != 'http://www.w3.org/1999/xhtml') { Document.prototype.createElement = document.createElement = function(name) { return this.createElementNS('http://www.w3.org/1999/xhtml', name); }; } */ if (!Element.prototype.contains) { Element.prototype.contains = function(ele) { if (ele == this) return true; var all = this.getElementsByTagName('*'), i = 0, cur = null; for (; (cur = all[i]) && cur != ele; i++); return Boolean(cur); } } if (!Element.prototype.insertAdjacentHTML) { Element.prototype.insertAdjacentHTML = function(position, markup) { if (position == 'beforeend') { var div = this.appendChild(document.createElement('div')); div.innerHTML = markup; var range = document.createRange(); range.selectNodeContents(div); this.replaceChild(range.extractContents(), div); return this.firstElementChild; } } } /** * @fileoverview * Helper function prototypes related to DOM objects and the DOM * <strong>fixme: Christian should document the template syntax</strong> * * TEMPLATE :: = * "[" [NODENAME | "null"] * {"," TEXT | "," TEMPLATE} * {"," KEY "," VALUE} * "]" * * where NODENAME, TEXT and KEY are DOM strings and VALUE can be everything except an array */ Element.prototype.render = Document.prototype.render = function(args, namespace) { if (typeof args == 'string' && this.nodeType == 1) { this.insertAdjacentHTML('beforeend', args); return this.firstElementChild; } var doc = this.nodeType == 9 ? this : this.ownerDocument, i = 0, ele = this, first_arg = args[0], arg = null, prefix_pos = -1; if (args.length) { if (first_arg) { if (typeof first_arg == 'string') { if ((prefix_pos = first_arg.indexOf(':')) != -1) { namespace = doc.lookupNamespaceURI(first_arg.slice(0, prefix_pos)); if (!namespace) { throw('namespace not defined in call Node.prototype.___add') } ele = doc.createElementNS(namespace, first_arg.slice(prefix_pos + 1)); } else if (namespace) ele = doc.createElementNS(namespace, first_arg.slice(prefix_pos + 1)); else { ele = first_arg in CustomElements ? CustomElements[first_arg].create() : doc.createElement(first_arg); } i++; } arg = args[i]; while (true) { if (arg instanceof Array) { ele.render(arg, namespace); arg = args[++i]; } else if (typeof arg == 'string' && ((args.length - i) % 2 || args[i + 1] instanceof Array)) { ele.appendChild(doc.createTextNode(arg)); arg = args[++i]; } else { break; } } for ( ; args[i]; i += 2) { if (typeof args[i] != 'string') { throw "TemplateSyntaxError, expected 'string', got " + (typeof args[i]) + " for TEXT or KEY"; } if (typeof args[i + 1] == 'string') { ele.setAttribute(args[i], args[i + 1]); } else { ele[args[i]] = args[i + 1]; } } if (this.nodeType == 1 && (this != ele)) { this.appendChild(ele); } return ele; } else { return this.appendChild(doc.createTextNode(args[1])); } } return null; }; Element.prototype.re_render = function(args) { var div = document.createElement('div'); var doc_frag = document.createDocumentFragment(); div.render(args); while (div.firstChild) doc_frag.appendChild(div.firstChild); this.parentNode.replaceChild(doc_frag, this); } /** * Clear the element and render the template into it */ Element.prototype.clearAndRender = function(template) { this.innerHTML = ''; return this.render(template); }; /** * Add the css class "name" to the element's list of classes * fixme: Does not work with dashes in the name! */ Element.prototype.addClass = function(name) { if (!(new RegExp('\\b' + name + '\\b')).test(this.className)) { this.className = (this.className ? this.className + ' ' : '') + name; } return this; }; /** * Remove the css class "name" from the elements list of classes */ Element.prototype.removeClass = function(name) { var re = new RegExp(name + ' ?| ?' + name); if (re.test(this.className)) { this.className = this.className.replace(re, ''); } return this; }; /** * Check if the element has the class "name" set */ Element.prototype.hasClass = function(name) { return (new RegExp('(?:^| +)' + name + '(?: +|$)')).test(this.className) }; /** * Swap class "from" with class "to" */ Element.prototype.swapClass = function(from, to) { if (this.hasClass(from)) { this.removeClass(from); this.addClass(to); } }; /** * Returns the next sibling of the element that is an element. Ignores * nodes that are not elements */ Element.prototype.getNextSiblingElement = function() { var next = this.nextSibling; while (next && next.nodeType != 1) { next = next.nextSibling; } return next; }; // deprecated, use getBoundingClientRect instead Element.prototype.getTop = function() { var c = this, o_p = null, top = c.offsetTop; while (o_p = c.offsetParent) { top += o_p.offsetTop; c = o_p; } return top; }; /** * Insert node after target in the tree. */ Element.prototype.insertAfter = function(node, target) { var nextElement = target.nextSibling; while (nextElement && nextElement.nodeType != 1) { nextElement = nextElement.nextSibling; } if (nextElement) { this.insertBefore(node, nextElement); } else { this.appendChild(node); } }; /** * Returns an array of all children on the element that are also elements */ Element.prototype.getChildElements = function() { var children = this.childNodes, ret = [], c = null, i = 0; for ( ; c = children[i]; i++) { if (c.nodeType == 1) { ret[ret.length] = c; } } return ret; }; /** * Dispatches an event on the element with the name "name" and and properties * that are set in the "custom_props" object */ Element.prototype.releaseEvent = function(name, custom_props) { var event = document.createEvent('Events'), prop = ''; event.initEvent(name, true, true); if (custom_props) { for (prop in custom_props) { event[prop] = custom_props[prop]; } } this.dispatchEvent(event); }; Element.prototype.dispatchMouseEvent = function(type, ctrl_key, alt_key, shift_key) { var event = document.createEvent('MouseEvents'); var box = this.getBoundingClientRect(); var client_x = box.left + box.width * .5; var client_y = box.top + box.height * .5; event.initMouseEvent(type, true, true, window, 1, window.screenLeft + client_x, window.screenTop + client_y, client_x, client_y, ctrl_key, alt_key, shift_key, false, 0, null); this.dispatchEvent(event); }; Element.prototype.get_scroll_container = function() { var scroll_container = this; while (scroll_container && scroll_container.scrollHeight <= scroll_container.offsetHeight) scroll_container = scroll_container.parentNode; return (scroll_container == document.documentElement || scroll_container == document) ? null : scroll_container; } /** * A class to store a scroll position and reset it later in an asynchronous * environment. * The class takes a target as initialisation argument. * The scroll position is stored for the first scroll container * in the parent node chain of that target. The root element is * disregarded as scroll container (this is a bit too Dragonfly specific. * Better would be to check the overflow property of the computed style to * find a real scroll container). * Resetting the scroll position can be done with or without argument. * Without argument. it resets the scrollTop and scrollLeft properties * of the scroll container to the stored values. With a target argument, * it scroll the target in the exact same position as the target of * the initialisation. */ Element.ScrollPosition = function(target) { this._scroll_container = target.get_scroll_container(); this._scroll_top = 0; this._scroll_left = 0; this._delta_top = 0; this._delta_left = 0; if (this._scroll_container) { this._scroll_top = this._scroll_container.scrollTop; this._scroll_left = this._scroll_container.scrollLeft; var target_box = target.getBoundingClientRect(); var scroll_box = this._scroll_container.getBoundingClientRect(); this._container_top = scroll_box.top; this._container_left = scroll_box.left; this._delta_top = target_box.top - scroll_box.top; this._delta_left = target_box.left - scroll_box.left; } } /** * To reset the scroll position. * Without target, scrollTop and scrollleft are restored to * the initialisation values. * If target is set, the target is scrolled in the exact same position * as the target of the initialisation. */ Element.ScrollPosition.prototype.reset = function(target) { if (this._scroll_container) { if (target) { var target_box = target.getBoundingClientRect(); this._scroll_container.scrollTop -= this._delta_top - (target_box.top - this._container_top); this._scroll_container.scrollTop -= this._delta_left - (target_box.left - this._container_left); } else { this._scroll_container.scrollTop = this._scroll_top; this._scroll_container.scrollLeft = this._scroll_left; } } } /* currently broken in Opera */ Element.prototype.getWidth = function(e) { var style = window.getComputedStyle(this, null); return this.offsetWidth - parseInt(style['paddingLeft']) - parseInt(style['paddingRight']) - parseInt(style['borderLeftWidth']) - parseInt(style['borderRightWidth']); }; Element.prototype.spliceInnerHTML = function(str) { this.insertAdjacentHTML('afterEnd', str); /* var temp = this.ownerDocument.createElement('div-parser'), range = this.ownerDocument.createRange(); temp.innerHTML = str; if(this.nextSibling) { range.selectNodeContents(this.parentNode.insertBefore(temp, this.nextSibling)); } else { range.selectNodeContents(this.parentNode.appendChild(temp)); } this.parentNode.replaceChild(range.extractContents(), temp); */ }; /** * Get the first contained element with name nodeName */ Element.prototype.getFirst = function(nodeName) { return this.getElementsByTagName(nodeName)[0]; }; /** * Get the last contained element with name nodeName */ Element.prototype.getLast = function(nodeName) { var all = this.getElementsByTagName(nodeName); return all[all.length - 1]; }; /** * Get the previous element of the same name as "current" that is a * child of the element. Return null if there is no such element. */ Element.prototype.getPreviousSameNamed = function(current) { var nodeName = current && current.nodeName, all = this.getElementsByTagName(nodeName), cur = null, i = 0; for ( ; (cur = all[i]) && cur != current; i++); return cur && all[i-1] || null; }; /** * Same as getPreviousSameNamed but finds the next element */ Element.prototype.getNextSameNamed = function(current) { var nodeName = current && current.nodeName, all = this.getElementsByTagName(nodeName), cur = null, i = 0; for ( ; (cur = all[i]) && cur != current; i++); return cur && all[i+1] || null; }; /** * Get the next element of the same name as "target" that is a * sibling of the element. Return null if there is no such element. */ Element.prototype.getNextSameNamedSibling = function(target) { var next = this.nextSibling, name = this.nodeName; while (next && next.nodeName != name) { next = next.nextSibling; } return next; }; /** * Same as getNextSameNamedSibling but finds previous sibling */ Element.prototype.getPreviousSameNamedSibling = function(target) { var previous = this.previousSibling, name = this.nodeName; while (previous && previous.nodeName != name) { previous = previous.previousSibling; } return previous; }; /** * Returns the next element for which the function "filter" returns true. * The filter functions is passed two arguments, the current candidate element * and the element on which the method was called */ Element.prototype.getNextWithFilter = function(root_context, filter) { var cursor = this; while ((cursor = cursor.getNextInFlow(root_context)) && !filter(cursor, this)); return cursor; }; /** * Same as getNextWithFilter but finds previous element */ Element.prototype.getPreviousWithFilter = function(root_context, filter) { var cursor = this; while ((cursor = cursor.getPreviousInFlow(root_context)) && !filter(cursor, this)); return cursor; }; Element.prototype.getNextInFlow = function(root_context) { var next = this.firstElementChild || this.nextElementSibling, cursor = this; while (!next && (cursor = cursor.parentNode) && cursor != root_context) { next = cursor.nextElementSibling; } return next; }; Element.prototype.getPreviousInFlow = function(root_context) { var previous = this.previousElementSibling, parent = this.parentNode, cursor = previous; while (cursor && cursor.lastElementChild && (cursor = cursor.lastElementChild)); return cursor || previous || parent != root_context && parent || null; }; /* Check elements of a DOM traversal for an attribute. */ Element.prototype.has_attr = function(traverse_type, name) { switch (traverse_type) { case "parent-node-chain": { var ele = this; while (ele && ele.nodeType == 1 && !ele.hasAttribute(name)) ele = ele.parentNode; return ele && ele.nodeType == 1 && ele || null; break; } } return null; }; /* Get an attribute of the first hit of a DOM traversal. */ Element.prototype.get_attr = function(traverse_type, name) { switch (traverse_type) { case "parent-node-chain": { var ele = this; while (ele && ele.nodeType == 1 && !ele.hasAttribute(name)) ele = ele.parentNode; return ele && ele.nodeType == 1 && ele.hasAttribute(name) ? ele.getAttribute(name) : null; break; } } return null; }; /** * Make sure the element is visible in its scoll context. * @see Element.prototype.scrollSoftIntoContainerView */ Element.prototype.scrollSoftIntoView = function() { // just checking the first offsetParent to keep it simple var scrollContainer = this.offsetParent; var min_top = 20; if (scrollContainer && scrollContainer.offsetHeight < scrollContainer.scrollHeight) { if (this.offsetTop < scrollContainer.scrollTop + min_top) { scrollContainer.scrollTop = this.offsetTop - min_top; } else if (this.offsetTop + this.offsetHeight > scrollContainer.scrollTop + scrollContainer.offsetHeight - min_top) { scrollContainer.scrollTop = this.offsetTop + this.offsetHeight - scrollContainer.offsetHeight + min_top; } } }; /** * Make sure the element is visible in the container. The container is the * first <container> element found in the offsetParent chain, or body if no * container element is found. */ Element.prototype.scrollSoftIntoContainerView = function() { var scrollContainer = this.offsetParent; while (scrollContainer && scrollContainer != document.body && scrollContainer.nodeName.toLowerCase() != "container") { scrollContainer = scrollContainer.offsetParent; } var min_top = 20; if (scrollContainer && scrollContainer.offsetHeight < scrollContainer.scrollHeight) { if (this.offsetTop < scrollContainer.scrollTop + min_top) { scrollContainer.scrollTop = this.offsetTop - min_top; } else if (this.offsetTop + this.offsetHeight > scrollContainer.scrollTop + scrollContainer.offsetHeight - min_top) { scrollContainer.scrollTop = this.offsetTop + this.offsetHeight - scrollContainer.offsetHeight + min_top; } } }; /** * Get the text content of the first node in Node with the name nodeName * Escapes opening angle brackets into less than entities. If node is not * found, returns null * @argument nodeName {string} node name * @returns {Element} */ Node.prototype.getNodeData = function(nodeName) { var node = this.getElementsByTagName(nodeName)[0]; if (node) { return node.textContent.replace(/</g, '&lt;'); } return null; }; /** * Get the value of an attribute called attr from the first child node called * nodeName. If node is not found, returns null * @argument nodeName {string} node name * @argument attr {string} attribute name * @returns {string} */ Node.prototype.getAttributeFromNode = function(nodeName, attr) { var node = this.getElementsByTagName(nodeName)[0]; if (node) { return node.getAttribute(attr); } return null; }; /** * Returns the index of item in the nodelist * (The same behaviour as js1.6 array.indexOf) * @argument item {Element} */ NodeList.prototype.indexOf = function(item) { for (var cursor = null, i = 0; cursor = this[i]; i++) { if (cursor == item) { return i; } } return -1; }; StyleSheetList.prototype.getDeclaration = function(selector) { var sheet = null, i = 0, j = 0, rules = null, rule = null; for ( ; sheet = this[i]; i++) { rules = sheet.cssRules; // does not take into account import rules for (j = 0; (rule = rules[j]) && !(rule.type == 1 && rule.selectorText == selector); j++); if (rule) { return rule.style; } } return null; }; StyleSheetList.prototype.getPropertyValue = function(selector, property) { var style = this.getDeclaration(selector); return style && style.getPropertyValue(property) || ''; }; /** * Make sure there is a getElementsByClassName method if there is no native * implementation of it * @deprecated All verison of opera in which the dragonfly client runs should have this by now */ (function() { if (!document.getElementsByClassName) { Document.prototype.getElementsByClassName = Element.prototype.getElementsByClassName = function() { var eles = this.getElementsByTagName("*"), ele = null, ret =[], c_n = '', cursor = null, i = 0, j = 0; for ( ; c_n = arguments[i]; i++) { arguments[i] = new RegExp('(?:^| +)' + c_n + '(?: +|$)'); } for (i = 0; ele = eles[i]; i++) { c_n = ele.className; for (j = 0; (cursor = arguments[j]) && cursor.test(c_n); j++); if (!cursor) { ret[ret.length] = ele; } } return ret; } } })(); if (!(function(){}).bind) { Function.prototype.bind = function (context) { var method = this, args = Array.prototype.slice.call(arguments, 1); return function() { return method.apply(context, args.concat(Array.prototype.slice.call(arguments))); } }; }; if (!"".trim) { String.prototype.trim = function() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); } } /** * Check if a string appears to be a number, that is, all letters in the * string are numbers. Does not take in to account decimals. Clones the * behaviour of str.isdigit in python */ String.prototype.isdigit = function() { return this.length && !(/\D/.test(this)); }; String.prototype.contains = function(str) { return this.indexOf(str) != -1; }; Array.prototype.extend = function(list) { this.push.apply(this, list); return this; } /** * Convenience function for loading a resource with XHR using the get method. * Will automatically append a "time" guery argument to avoid caching. * When the load is finished, callback will be invoced with context as its * "this" value */ XMLHttpRequest.prototype.loadResource = function(url, callback, context) { this.onload = function() { callback(this, context); } this.open('GET', url); this.send(null); }; window.CustomElements = new function() { this._init_queue = []; this._init_listener = function(event) { var queue = CustomElements._init_queue, wait_list = [], item = null, i = 0, target = event.target; for ( ; item = queue[i]; i++) { if (target.contains(item.ele)) { CustomElements[item.type].init(item.ele); } else { wait_list.push(item); } } CustomElements._init_queue = wait_list; if (!wait_list.length) { document.removeEventListener('DOMNodeInserted', CustomElements._init_listener, false); } } this.add = function(CustomElementClass) { CustomElementClass.prototype = this.Base; var custom_element = new CustomElementClass(), feature = '', i = 1; if (custom_element.type) { for ( ; feature = arguments[i]; i++) { if (feature in this) { this[feature].apply(custom_element); } } this[custom_element.type] = custom_element; } } }; window.CustomElements.Base = new function() { this.create = function() { var ele = document.createElement(this.html_name); if (!CustomElements._init_queue.length) { document.addEventListener('DOMNodeInserted', CustomElements._init_listener, false); } CustomElements._init_queue.push( { ele: ele, type: this.type }); return ele; } this.init = function(ele) { if (this._inits) { for (var init = null, i = 0; init = this._inits[i]; i++) { init.call(this, ele); } } } }; window.CustomElements.PlaceholderFeature = function() { this.set_placeholder = function() { var placeholder = this.getAttribute('data-placeholder'); if (!this.value && placeholder) { this.value = placeholder; this.addClass('placeholder'); } } this.clear_placeholder = function() { if (this.hasClass('placeholder')) { this.removeClass('placeholder'); this.value = ''; } } this.get_value = function() { return this.hasClass('placeholder') ? '' : this._get_value(); }; (this._inits || (this._inits = [])).push(function(ele) { if (!ele._get_value) { var _interface = ele.toString().slice(8).replace(']', ''); window[_interface].prototype._get_value = ele.__lookupGetter__('value'); window[_interface].prototype._set_value = ele.__lookupSetter__('value'); } ele.__defineSetter__('value', ele._set_value); ele.__defineGetter__('value', this.get_value); this.set_placeholder.call(ele); ele.addEventListener('focus', this.clear_placeholder, false); ele.addEventListener('blur', this.set_placeholder, false); }); }; window.CustomElements.AutoScrollHeightFeature = function() { this.adjust_height = function() { if (this.scrollHeight != this.offsetHeight) { // TODO values should not be hardcoded this.style.height = (4 + (this.scrollHeight > 16 ? this.scrollHeight : 16)) + 'px'; } }; this._get_adjust_height = function(count_lines, line_height, border_padding) { var lines = -1; return function() { var new_count = count_lines(this.value); if (new_count != lines) { lines = new_count; this.style.height = (border_padding + (lines) * line_height) + 'px'; } } } this._count_lines = (function(re) { return function(str) { for (var count = 1; re.exec(str); count++); return count; }; })(/\r\n/g); this._get_line_height = function(textarea) { // computed style returns by default just "normal" var CRLF = "\r\n", offset_height = textarea.offsetHeight, textarea_value = textarea._get_value(), line_height = 0, test_value = "\r\n\r\n\r\n\r\n\r\n\r\n"; textarea.value = test_value; while (textarea.scrollHeight < offset_height) { textarea.value = (test_value += CRLF); } line_height = textarea.scrollHeight; textarea.value = (test_value += CRLF); line_height = textarea.scrollHeight - line_height; textarea.value = textarea_value; return line_height; }; this._get_border_padding = function(ele) { var border_padding = 0, style_dec = window.getComputedStyle(ele, null); if (style_dec.getPropertyValue('box-sizing') == 'border-box') { ['padding-top', 'padding-bottom', 'border-top', 'border-bottom'].forEach(function(prop) { border_padding += parseInt(style_dec.getPropertyValue(prop)) || 0; }) }; return border_padding; }; (this._inits || (this._inits = [])).push(function(ele) { var adjust_height = this._get_adjust_height(this._count_lines, this._get_line_height(ele), this._get_border_padding(ele)); adjust_height.call(ele); ele.addEventListener('input', adjust_height, false); }); }; CustomElements.add(function() { this.type = '_html5_input'; this.html_name = 'input'; }, 'PlaceholderFeature'); CustomElements.add(function() { this.type = '_html5_textarea'; this.html_name = 'textarea'; }, 'PlaceholderFeature'); CustomElements.add(function() { this.type = '_auto_height_textarea'; this.html_name = 'textarea'; }, 'PlaceholderFeature', 'AutoScrollHeightFeature');
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035