summaryrefslogtreecommitdiff
path: root/chromium/third_party/webdriver
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
commit679147eead574d186ebf3069647b4c23e8ccace6 (patch)
treefc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/third_party/webdriver
downloadqtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz
Initial import.
Diffstat (limited to 'chromium/third_party/webdriver')
-rw-r--r--chromium/third_party/webdriver/COPYING204
-rw-r--r--chromium/third_party/webdriver/LICENSE4
-rw-r--r--chromium/third_party/webdriver/OWNERS4
-rw-r--r--chromium/third_party/webdriver/README.chromium40
-rw-r--r--chromium/third_party/webdriver/atoms.cc5436
-rw-r--r--chromium/third_party/webdriver/atoms.h76
-rw-r--r--chromium/third_party/webdriver/patch.diff24
-rw-r--r--chromium/third_party/webdriver/pylib/CHANGES172
-rw-r--r--chromium/third_party/webdriver/pylib/README64
-rw-r--r--chromium/third_party/webdriver/pylib/__init__.py14
-rw-r--r--chromium/third_party/webdriver/pylib/build.desc71
-rw-r--r--chromium/third_party/webdriver/pylib/docs/Makefile131
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/api.rst108
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/common/selenium.common.exceptions.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/conf.py268
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/index.rst64
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/selenium/selenium.selenium.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.action_chains.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.alert.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.by.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.keys.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.utils.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.select.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.wait.rst4
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/__init__.py19
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/common/__init__.py16
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/common/exceptions.py122
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/selenium.py2111
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/__init__.py31
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/__init__.py14
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/options.py132
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/service.py104
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/webdriver.py98
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/__init__.py14
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/action_chains.py253
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/alert.py39
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/by.py25
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/desired_capabilities.py93
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/__init__.py0
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/application_cache.py17
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/keys.py84
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/proxy.py136
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/touch_actions.py165
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/common/utils.py46
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/__init__.py14
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/extension_connection.py79
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_binary.py166
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_profile.py374
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/webdriver.py98
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/ie/__init__.py16
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/ie/service.py106
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/ie/webdriver.py72
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/opera/__init__.py14
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/opera/service.py80
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/opera/webdriver.py85
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/__init__.py13
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/service.py93
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/webdriver.py74
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/__init__.py14
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/command.py144
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/errorhandler.py152
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/remote_connection.py402
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/utils.py112
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webdriver.py805
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webelement.py284
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/__init__.py16
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/abstract_event_listener.py59
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/color.py303
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/event_firing_webdriver.py326
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/events.py18
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/expected_conditions.py283
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/select.py223
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/ui.py19
-rw-r--r--chromium/third_party/webdriver/pylib/selenium/webdriver/support/wait.py87
-rwxr-xr-xchromium/third_party/webdriver/test_data/Bin/Intelligencia.UrlRewriter.dllbin0 -> 57344 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/ClickTest_testClicksASurroundingStrongTag.html11
-rw-r--r--chromium/third_party/webdriver/test_data/Page.aspx17
-rw-r--r--chromium/third_party/webdriver/test_data/Page.aspx.cs22
-rw-r--r--chromium/third_party/webdriver/test_data/Redirect.aspx11
-rw-r--r--chromium/third_party/webdriver/test_data/Redirect.aspx.cs9
-rw-r--r--chromium/third_party/webdriver/test_data/Settings.StyleCop759
-rw-r--r--chromium/third_party/webdriver/test_data/Web.Config59
-rw-r--r--chromium/third_party/webdriver/test_data/actualXhtmlPage.xhtml14
-rw-r--r--chromium/third_party/webdriver/test_data/ajaxy_page.html81
-rw-r--r--chromium/third_party/webdriver/test_data/alerts.html73
-rw-r--r--chromium/third_party/webdriver/test_data/banner.gifbin0 -> 2109 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/blank.html1
-rw-r--r--chromium/third_party/webdriver/test_data/bodyTypingTest.html41
-rw-r--r--chromium/third_party/webdriver/test_data/booleanAttributes.html19
-rw-r--r--chromium/third_party/webdriver/test_data/child/childPage.html8
-rw-r--r--chromium/third_party/webdriver/test_data/child/grandchild/grandchildPage.html8
-rw-r--r--chromium/third_party/webdriver/test_data/clickEventPage.html26
-rw-r--r--chromium/third_party/webdriver/test_data/click_frames.html20
-rw-r--r--chromium/third_party/webdriver/test_data/click_jacker.html37
-rw-r--r--chromium/third_party/webdriver/test_data/click_out_of_bounds.html23
-rw-r--r--chromium/third_party/webdriver/test_data/click_out_of_bounds_overflow.html85
-rw-r--r--chromium/third_party/webdriver/test_data/click_source.html18
-rw-r--r--chromium/third_party/webdriver/test_data/clicks.html28
-rw-r--r--chromium/third_party/webdriver/test_data/closeable_window.html8
-rw-r--r--chromium/third_party/webdriver/test_data/cn-test.html156
-rw-r--r--chromium/third_party/webdriver/test_data/cookies.html30
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.pngbin0 -> 260 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.pngbin0 -> 251 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.pngbin0 -> 178 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.pngbin0 -> 104 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.pngbin0 -> 125 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.pngbin0 -> 105 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.pngbin0 -> 3762 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.pngbin0 -> 90 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.pngbin0 -> 129 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_222222_256x240.pngbin0 -> 4369 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_228ef1_256x240.pngbin0 -> 4369 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ef8c08_256x240.pngbin0 -> 4369 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffd27a_256x240.pngbin0 -> 4369 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffffff_256x240.pngbin0 -> 4369 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/css/ui-lightness/jquery-ui-1.8.10.custom.css573
-rw-r--r--chromium/third_party/webdriver/test_data/deletingFrame.htm29
-rw-r--r--chromium/third_party/webdriver/test_data/document_write_in_onload.html13
-rw-r--r--chromium/third_party/webdriver/test_data/dragAndDropTest.html69
-rw-r--r--chromium/third_party/webdriver/test_data/draggableLists.html67
-rw-r--r--chromium/third_party/webdriver/test_data/droppableItems.html65
-rw-r--r--chromium/third_party/webdriver/test_data/dynamic.html39
-rw-r--r--chromium/third_party/webdriver/test_data/dynamicallyModifiedPage.html42
-rw-r--r--chromium/third_party/webdriver/test_data/errors.html15
-rw-r--r--chromium/third_party/webdriver/test_data/formPage.html173
-rw-r--r--chromium/third_party/webdriver/test_data/formSelectionPage.html46
-rw-r--r--chromium/third_party/webdriver/test_data/frameset.html14
-rw-r--r--chromium/third_party/webdriver/test_data/framesetPage2.html7
-rw-r--r--chromium/third_party/webdriver/test_data/globalscope.html15
-rw-r--r--chromium/third_party/webdriver/test_data/html5/blue.jpgbin0 -> 92 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/html5/database.js84
-rw-r--r--chromium/third_party/webdriver/test_data/html5/geolocation.js18
-rw-r--r--chromium/third_party/webdriver/test_data/html5/green.jpgbin0 -> 92 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/html5/offline.html1
-rw-r--r--chromium/third_party/webdriver/test_data/html5/red.jpgbin0 -> 92 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/html5/status.html1
-rw-r--r--chromium/third_party/webdriver/test_data/html5/test.appcache11
-rw-r--r--chromium/third_party/webdriver/test_data/html5/yellow.jpgbin0 -> 92 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/html5Page.html32
-rw-r--r--chromium/third_party/webdriver/test_data/icon.gifbin0 -> 127 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/iframeWithAlert.html1
-rw-r--r--chromium/third_party/webdriver/test_data/iframeWithIframe.html1
-rw-r--r--chromium/third_party/webdriver/test_data/iframes.html11
-rw-r--r--chromium/third_party/webdriver/test_data/javascriptEnhancedForm.html30
-rw-r--r--chromium/third_party/webdriver/test_data/javascriptPage.html270
-rw-r--r--chromium/third_party/webdriver/test_data/jquery-1.3.2.js4376
-rw-r--r--chromium/third_party/webdriver/test_data/js/jquery-1.4.4.min.js167
-rw-r--r--chromium/third_party/webdriver/test_data/js/jquery-ui-1.8.10.custom.min.js782
-rw-r--r--chromium/third_party/webdriver/test_data/linked_image.html16
-rw-r--r--chromium/third_party/webdriver/test_data/longContentPage.html55
-rw-r--r--chromium/third_party/webdriver/test_data/macbeth.html5255
-rw-r--r--chromium/third_party/webdriver/test_data/map.pngbin0 -> 26209 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/map_visibility.html8
-rw-r--r--chromium/third_party/webdriver/test_data/markerTransparent.pngbin0 -> 260 bytes
-rw-r--r--chromium/third_party/webdriver/test_data/meta-redirect.html11
-rw-r--r--chromium/third_party/webdriver/test_data/missedJsReference.html11
-rw-r--r--chromium/third_party/webdriver/test_data/mousePositionTracker.html33
-rw-r--r--chromium/third_party/webdriver/test_data/nestedElements.html155
-rw-r--r--chromium/third_party/webdriver/test_data/pageWithOnLoad.html6
-rw-r--r--chromium/third_party/webdriver/test_data/pageWithOnUnload.html6
-rw-r--r--chromium/third_party/webdriver/test_data/plain.txt1
-rw-r--r--chromium/third_party/webdriver/test_data/readOnlyPage.html22
-rw-r--r--chromium/third_party/webdriver/test_data/rectangles.html40
-rw-r--r--chromium/third_party/webdriver/test_data/resultPage.html25
-rw-r--r--chromium/third_party/webdriver/test_data/rich_text.html160
-rw-r--r--chromium/third_party/webdriver/test_data/scroll.html26
-rw-r--r--chromium/third_party/webdriver/test_data/scroll2.html21
-rw-r--r--chromium/third_party/webdriver/test_data/scroll3.html8
-rw-r--r--chromium/third_party/webdriver/test_data/scroll4.html7
-rw-r--r--chromium/third_party/webdriver/test_data/scroll5.html18
-rw-r--r--chromium/third_party/webdriver/test_data/selectPage.html42
-rw-r--r--chromium/third_party/webdriver/test_data/selectableItems.html65
-rw-r--r--chromium/third_party/webdriver/test_data/sessionCookie.html21
-rw-r--r--chromium/third_party/webdriver/test_data/sessionCookieDest.html34
-rw-r--r--chromium/third_party/webdriver/test_data/simple.xml5
-rw-r--r--chromium/third_party/webdriver/test_data/simpleTest.html95
-rw-r--r--chromium/third_party/webdriver/test_data/slowLoadingAlert.html10
-rw-r--r--chromium/third_party/webdriver/test_data/slowLoadingResourcePage.html12
-rw-r--r--chromium/third_party/webdriver/test_data/slow_loading_iframes.html14
-rw-r--r--chromium/third_party/webdriver/test_data/styledPage.html28
-rw-r--r--chromium/third_party/webdriver/test_data/svgPiechart.xhtml84
-rw-r--r--chromium/third_party/webdriver/test_data/tables.html36
-rw-r--r--chromium/third_party/webdriver/test_data/transformable.xml11
-rw-r--r--chromium/third_party/webdriver/test_data/transformable.xsl37
-rw-r--r--chromium/third_party/webdriver/test_data/underscore.html9
-rw-r--r--chromium/third_party/webdriver/test_data/upload.html45
-rw-r--r--chromium/third_party/webdriver/test_data/veryLargeCanvas.html81
-rw-r--r--chromium/third_party/webdriver/test_data/visibility-css.html21
-rw-r--r--chromium/third_party/webdriver/test_data/win32frameset.html8
-rw-r--r--chromium/third_party/webdriver/test_data/xhtmlFormPage.xhtml17
-rw-r--r--chromium/third_party/webdriver/test_data/xhtmlTest.html76
208 files changed, 29985 insertions, 0 deletions
diff --git a/chromium/third_party/webdriver/COPYING b/chromium/third_party/webdriver/COPYING
new file mode 100644
index 00000000000..80a4762430a
--- /dev/null
+++ b/chromium/third_party/webdriver/COPYING
@@ -0,0 +1,204 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2007-2009 Google Inc.
+ Copyright 2007-2009 WebDriver committers
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/chromium/third_party/webdriver/LICENSE b/chromium/third_party/webdriver/LICENSE
new file mode 100644
index 00000000000..86c317afab2
--- /dev/null
+++ b/chromium/third_party/webdriver/LICENSE
@@ -0,0 +1,4 @@
+NAME: WebDriver
+URL: http://selenium.googlecode.com/svn/trunk/py
+ http://selenium.googlecode.com/svn/trunk/common/src/web
+LICENSE: Apache 2
diff --git a/chromium/third_party/webdriver/OWNERS b/chromium/third_party/webdriver/OWNERS
new file mode 100644
index 00000000000..3c04aef4857
--- /dev/null
+++ b/chromium/third_party/webdriver/OWNERS
@@ -0,0 +1,4 @@
+chrisgao@chromium.org
+craigdh@chromium.org
+frankf@chromium.org
+kkania@chromium.org
diff --git a/chromium/third_party/webdriver/README.chromium b/chromium/third_party/webdriver/README.chromium
new file mode 100644
index 00000000000..c09e84fa9f5
--- /dev/null
+++ b/chromium/third_party/webdriver/README.chromium
@@ -0,0 +1,40 @@
+Name: Webdriver
+Short Name: selenium
+URL: http://selenium.googlecode.com/svn/trunk/py
+ http://selenium.googlecode.com/svn/trunk/common/src/web
+Version: unknown
+Revision: 16922
+Security Critical: no
+License: Apache 2, MIT and GPL
+
+
+Description:
+ WebDriver is a clean, fast framework for automated testing of webapps.
+
+Contents:
+ python/
+ Python bindings and tests for WebDriver pulled in via DEPS.
+
+ test_data/
+ Select files from http://selenium.googlecode.com/svn/trunk/common/src/web.
+ At revision 17149. Necessary data for running the python webdriver tests.
+
+ atoms.h, atoms.cc
+ These atoms are generated by the webdriver team and are to be checked in
+ manually. The current version was generated from revision
+ 749d7ba2b1f402868f215b7bcc4b80e4e1b975a3.
+
+ To generate the atoms using the code found in selenium tree:
+ $ svn checkout http://selenium.googlecode.com/svn/trunk/ selenium-read-only
+ $ cd selenium-read-only
+ $ go //javascript/chrome-driver:atoms
+ $ cp build/javascript/chrome-driver/atoms.h \
+ <chromium_dir>/src/third_party/webdriver/atoms.h
+ $ cp build/javascript/chrome-driver/atoms.cc \
+ <chromium_dir>/src/third_party/webdriver/atoms.cc
+
+ The atoms.h/cc files are only used directly in the chrome version of
+ webdriver found under the path src/chrome/test/webdriver.
+
+Local Modifications:
+- Applied changes in patch.diff to the selenium tree prior to building the atoms.
diff --git a/chromium/third_party/webdriver/atoms.cc b/chromium/third_party/webdriver/atoms.cc
new file mode 100644
index 00000000000..d7bafafcd0c
--- /dev/null
+++ b/chromium/third_party/webdriver/atoms.cc
@@ -0,0 +1,5436 @@
+/*
+ * Copyright 2011-2012 WebDriver committers
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* AUTO GENERATED - DO NOT EDIT BY HAND */
+
+#include <stddef.h> // For NULL.
+
+#include "atoms.h"
+
+namespace webdriver {
+namespace atoms {
+
+const char* const GET_FIRST_CLIENT_RECT[] = {
+ "function(){return function(){var g=this;\nfunction h(a){var b=typeof a;",
+ "if(\"object\"==b)if(a){if(a instanceof Array)return\"array\";if(a insta",
+ "nceof Object)return b;var e=Object.prototype.toString.call(a);if(\"[obj",
+ "ect Window]\"==e)return\"object\";if(\"[object Array]\"==e||\"number\"=",
+ "=typeof a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof",
+ " a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"splice\"))return\"ar",
+ "ray\";if(\"[object Function]\"==e||\"undefined\"!=typeof a.call&&\"unde",
+ "fined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call",
+ "\"))return\"function\"}else return\"null\";else if(\"function\"==\nb&&",
+ "\"undefined\"==typeof a.call)return\"object\";return b};var k;function ",
+ "l(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}l.prototype.toString",
+ "=function(){return\"(\"+this.x+\", \"+this.y+\")\"};function m(a){retur",
+ "n 9==a.nodeType?a:a.ownerDocument||a.document}function n(a){this.b=a||g",
+ ".document||document}function p(a){var b=a.b;a=b.body;b=b.parentWindow||",
+ "b.defaultView;return new l(b.pageXOffset||a.scrollLeft,b.pageYOffset||a",
+ ".scrollTop)};function q(a,b,e,d){this.left=a;this.top=b;this.width=e;th",
+ "is.height=d}q.prototype.toString=function(){return\"(\"+this.left+\", ",
+ "\"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};function s(",
+ "a){var b;a:{b=m(a);if(b.defaultView&&b.defaultView.getComputedStyle&&(b",
+ "=b.defaultView.getComputedStyle(a,null))){b=b.position||b.getPropertyVa",
+ "lue(\"position\")||\"\";break a}b=\"\"}return b||(a.currentStyle?a.curr",
+ "entStyle.position:null)||a.style&&a.style.position}function t(a){var b;",
+ "try{b=a.getBoundingClientRect()}catch(e){return{left:0,top:0,right:0,bo",
+ "ttom:0}}return b}\nfunction u(a){var b=m(a),e=s(a),d=\"fixed\"==e||\"ab",
+ "solute\"==e;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(e=s(a),d=d&&\"",
+ "static\"==e&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clien",
+ "tWidth||a.scrollHeight>a.clientHeight||\"fixed\"==e||\"absolute\"==e||",
+ "\"relative\"==e))return a;return null};function v(a){var b=a.getClientR",
+ "ects();if(0==b.length)throw Error(\"Element does not have any client re",
+ "cts\");b=b[0];if(1==a.nodeType)if(a.getBoundingClientRect)a=t(a),a=new ",
+ "l(a.left,a.top);else{var e=p(a?new n(m(a)):k||(k=new n));var d=m(a),z=s",
+ "(a),c=new l(0,0),r=(d?m(d):document).documentElement;if(a!=r)if(a.getBo",
+ "undingClientRect)a=t(a),d=p(d?new n(m(d)):k||(k=new n)),c.x=a.left+d.x,",
+ "c.y=a.top+d.y;else if(d.getBoxObjectFor)a=d.getBoxObjectFor(a),d=d.getB",
+ "oxObjectFor(r),c.x=a.screenX-d.screenX,c.y=a.screenY-\nd.screenY;else{v",
+ "ar f=a;do{c.x+=f.offsetLeft;c.y+=f.offsetTop;f!=a&&(c.x+=f.clientLeft||",
+ "0,c.y+=f.clientTop||0);if(\"fixed\"==s(f)){c.x+=d.body.scrollLeft;c.y+=",
+ "d.body.scrollTop;break}f=f.offsetParent}while(f&&f!=a);\"absolute\"==z&",
+ "&(c.y-=d.body.offsetTop);for(f=a;(f=u(f))&&f!=d.body&&f!=r;)c.x-=f.scro",
+ "llLeft,c.y-=f.scrollTop}a=new l(c.x-e.x,c.y-e.y)}else e=\"function\"==h",
+ "(a.a),c=a,a.targetTouches?c=a.targetTouches[0]:e&&a.a().targetTouches&&",
+ "(c=a.a().targetTouches[0]),a=new l(c.clientX,c.clientY);return new q(b.",
+ "left-\na.x,b.top-a.y,b.right-b.left,b.bottom-b.top)}var w=[\"_\"],x=g;w",
+ "[0]in x||!x.execScript||x.execScript(\"var \"+w[0]);for(var y;w.length&",
+ "&(y=w.shift());)w.length||void 0===v?x=x[y]?x[y]:x[y]={}:x[y]=v;; retur",
+ "n this._.apply(null,arguments);}.apply({navigator:typeof window!=undefi",
+ "ned?window.navigator:null,document:typeof window!=undefined?window.docu",
+ "ment:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_LOCATION_IN_VIEW[] = {
+ "function(){return function(){var k=this;\nfunction l(a){var b=typeof a;",
+ "if(\"object\"==b)if(a){if(a instanceof Array)return\"array\";if(a insta",
+ "nceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[obj",
+ "ect Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"=",
+ "=typeof a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof",
+ " a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"splice\"))return\"ar",
+ "ray\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&\"unde",
+ "fined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call",
+ "\"))return\"function\"}else return\"null\";else if(\"function\"==\nb&&",
+ "\"undefined\"==typeof a.call)return\"object\";return b};var m;function ",
+ "n(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}n.prototype.toString",
+ "=function(){return\"(\"+this.x+\", \"+this.y+\")\"};function p(a,b){thi",
+ "s.width=a;this.height=b}p.prototype.toString=function(){return\"(\"+thi",
+ "s.width+\" x \"+this.height+\")\"};function q(a){return a?new r(s(a)):m",
+ "||(m=new r)}function s(a){return 9==a.nodeType?a:a.ownerDocument||a.doc",
+ "ument}function r(a){this.a=a||k.document||document}function t(a){a=(a.a",
+ ".parentWindow||a.a.defaultView||window).document;a=\"CSS1Compat\"==a.co",
+ "mpatMode?a.documentElement:a.body;return new p(a.clientWidth,a.clientHe",
+ "ight)}function u(a){var b=a.a;a=b.body;b=b.parentWindow||b.defaultView;",
+ "return new n(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};f",
+ "unction v(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}v.",
+ "prototype.toString=function(){return\"(\"+this.top+\"t, \"+this.right+",
+ "\"r, \"+this.bottom+\"b, \"+this.left+\"l)\"};function w(a,b,c,d){this.",
+ "left=a;this.top=b;this.width=c;this.height=d}w.prototype.toString=funct",
+ "ion(){return\"(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"",
+ "+this.height+\"h)\"};function x(a,b){var c=s(a);return c.defaultView&&c",
+ ".defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null",
+ "))?c[b]||c.getPropertyValue(b)||\"\":\"\"}function y(a){return x(a,\"po",
+ "sition\")||(a.currentStyle?a.currentStyle.position:null)||a.style&&a.st",
+ "yle.position}function z(a){var b;try{b=a.getBoundingClientRect()}catch(",
+ "c){return{left:0,top:0,right:0,bottom:0}}return b}\nfunction A(a){var b",
+ "=s(a),c=y(a),d=\"fixed\"==c||\"absolute\"==c;for(a=a.parentNode;a&&a!=b",
+ ";a=a.parentNode)if(c=y(a),d=d&&\"static\"==c&&a!=b.documentElement&&a!=",
+ "b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight|",
+ "|\"fixed\"==c||\"absolute\"==c||\"relative\"==c))return a;return null}",
+ "\nfunction B(a){var b=s(a),c=y(a),d=new n(0,0),f=(b?s(b):document).docu",
+ "mentElement;if(a==f)return d;if(a.getBoundingClientRect)a=z(a),b=u(q(b)",
+ "),d.x=a.left+b.x,d.y=a.top+b.y;else if(b.getBoxObjectFor)a=b.getBoxObje",
+ "ctFor(a),b=b.getBoxObjectFor(f),d.x=a.screenX-b.screenX,d.y=a.screenY-b",
+ ".screenY;else{var e=a;do{d.x+=e.offsetLeft;d.y+=e.offsetTop;e!=a&&(d.x+",
+ "=e.clientLeft||0,d.y+=e.clientTop||0);if(\"fixed\"==y(e)){d.x+=b.body.s",
+ "crollLeft;d.y+=b.body.scrollTop;break}e=e.offsetParent}while(e&&e!=a);",
+ "\"absolute\"==\nc&&(d.y-=b.body.offsetTop);for(e=a;(e=A(e))&&e!=b.body&",
+ "&e!=f;)d.x-=e.scrollLeft,d.y-=e.scrollTop}return d}function C(a){if(1==",
+ "a.nodeType){if(a.getBoundingClientRect)a=z(a),a=new n(a.left,a.top);els",
+ "e{var b=u(q(a));a=B(a);a=new n(a.x-b.x,a.y-b.y)}return a}var b=\"functi",
+ "on\"==l(a.b),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.b().targetTo",
+ "uches&&(c=a.b().targetTouches[0]);return new n(c.clientX,c.clientY)};fu",
+ "nction D(a,b){var c;c=B(b);var d=B(a);c=new n(c.x-d.x,c.y-d.y);var f,e,",
+ "h;h=x(a,\"borderLeftWidth\");e=x(a,\"borderRightWidth\");f=x(a,\"border",
+ "TopWidth\");d=x(a,\"borderBottomWidth\");d=new v(parseFloat(f),parseFlo",
+ "at(e),parseFloat(d),parseFloat(h));c.x-=d.left;c.y-=d.top;return c}\nfu",
+ "nction E(a,b,c){function d(a,b,c,d,e){d=new w(c.x+d.left,c.y+d.top,d.wi",
+ "dth,d.height);c=[0,0];b=[b.width,b.height];var f=[d.left,d.top];d=[d.wi",
+ "dth,d.height];for(var g=0;2>g;g++)if(d[g]>b[g])c[g]=e?f[g]+d[g]/2-b[g]/",
+ "2:f[g];else{var h=f[g]-b[g]+d[g];0<h?c[g]=h:0>f[g]&&(c[g]=f[g])}e=new n",
+ "(c[0],c[1]);a.scrollLeft+=e.x;a.scrollTop+=e.y}for(var f=s(a),e=a.paren",
+ "tNode,h;e&&e!=f.documentElement&&e!=f.body;)h=D(e,a),d(e,new p(e.client",
+ "Width,e.clientHeight),h,b,c),e=e.parentNode;h=C(a);a=t(q(a));d(f.body,a",
+ ",h,\nb,c)};function F(a,b,c){c||(c=new w(0,0,a.offsetWidth,a.offsetHeig",
+ "ht));E(a,c,b);a=C(a);return new n(a.x+c.left,a.y+c.top)}var G=[\"_\"],H",
+ "=k;G[0]in H||!H.execScript||H.execScript(\"var \"+G[0]);for(var I;G.len",
+ "gth&&(I=G.shift());)G.length||void 0===F?H=H[I]?H[I]:H[I]={}:H[I]=F;; r",
+ "eturn this._.apply(null,arguments);}.apply({navigator:typeof window!=un",
+ "defined?window.navigator:null,document:typeof window!=undefined?window.",
+ "document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_PAGE_ZOOM[] = {
+ "function(){return function(){function a(b){b=9==b.nodeType?b:b.ownerDoc",
+ "ument||b.document;var c=b.documentElement,c=Math.max(c.clientWidth,c.of",
+ "fsetWidth,c.scrollWidth);return b.width/c}var d=[\"_\"],e=this;d[0]in e",
+ "||!e.execScript||e.execScript(\"var \"+d[0]);for(var f;d.length&&(f=d.s",
+ "hift());)d.length||void 0===a?e=e[f]?e[f]:e[f]={}:e[f]=a;; return this.",
+ "_.apply(null,arguments);}.apply({navigator:typeof window!=undefined?win",
+ "dow.navigator:null,document:typeof window!=undefined?window.document:nu",
+ "ll}, arguments);}",
+ NULL
+};
+
+const char* const IS_ELEMENT_CLICKABLE[] = {
+ "function(){return function(){function c(h,d){function g(a,b){var d={cli",
+ "ckable:a};b&&(d.message=b);return d}var a=h.ownerDocument.elementFromPo",
+ "int(d.x,d.y);if(a==h)return g(!0);var l=\"(\"+d.x+\", \"+d.y+\")\";if(n",
+ "ull==a)return g(!1,\"Element is not clickable at point \"+l);var b=a.ou",
+ "terHTML;if(a.hasChildNodes())var m=a.innerHTML,n=b.length-m.length-(\"<",
+ "/\"+a.tagName+\">\").length,b=b.substring(0,n)+\"...\"+b.substring(n+m.",
+ "length);for(a=a.parentNode;a;){if(a==h)return g(!0,\"Element's descenda",
+ "nt would receive the click. Consider clicking the descendant instead. D",
+ "escendant: \"+\nb);a=a.parentNode}return g(!1,\"Element is not clickabl",
+ "e at point \"+l+\". Other element would receive the click: \"+b)}var e=",
+ "[\"_\"],f=this;e[0]in f||!f.execScript||f.execScript(\"var \"+e[0]);for",
+ "(var k;e.length&&(k=e.shift());)e.length||void 0===c?f=f[k]?f[k]:f[k]={",
+ "}:f[k]=c;; return this._.apply(null,arguments);}.apply({navigator:typeo",
+ "f window!=undefined?window.navigator:null,document:typeof window!=undef",
+ "ined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const TOUCH_SINGLE_TAP[] = {
+ "function(){return function(){function aa(a){return function(){return th",
+ "is[a]}}function ba(a){return function(){return a}}var g,ca=this;\nfunct",
+ "ion da(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)r",
+ "eturn\"array\";if(a instanceof Object)return b;var c=Object.prototype.t",
+ "oString.call(a);if(\"[object Window]\"==c)return\"object\";if(\"[object",
+ " Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.spli",
+ "ce&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerab",
+ "le(\"splice\"))return\"array\";if(\"[object Function]\"==c||\"undefined",
+ "\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.pro",
+ "pertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nel",
+ "se if(\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";re",
+ "turn b}function k(a){return void 0!==a}function l(a){return\"string\"==",
+ "typeof a}function ea(a){return\"number\"==typeof a}function m(a){return",
+ "\"function\"==da(a)}function n(a,b){function c(){}c.prototype=b.prototy",
+ "pe;a.ha=b.prototype;a.prototype=new c};var fa=window;function ga(a){ret",
+ "urn String(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase(",
+ ")})};var ha=Array.prototype;function p(a,b){for(var c=a.length,d=l(a)?a",
+ ".split(\"\"):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function ia(",
+ "a,b){for(var c=a.length,d=Array(c),e=l(a)?a.split(\"\"):a,f=0;f<c;f++)f",
+ " in e&&(d[f]=b.call(void 0,e[f],f,a));return d}function ja(a,b){if(a.re",
+ "duce)return a.reduce(b,\"\");var c=\"\";p(a,function(d,e){c=b.call(void",
+ " 0,c,d,e,a)});return c}function ka(a,b){for(var c=a.length,d=l(a)?a.spl",
+ "it(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;retu",
+ "rn!1}\nfunction la(a,b){var c;a:if(l(a))c=l(b)&&1==b.length?a.indexOf(b",
+ ",0):-1;else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c=-1}ret",
+ "urn 0<=c}function ma(a,b,c){return 2>=arguments.length?ha.slice.call(a,",
+ "b):ha.slice.call(a,b,c)};var na={aliceblue:\"#f0f8ff\",antiquewhite:\"#",
+ "faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beig",
+ "e:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmond:\"#ff",
+ "ebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlyw",
+ "ood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:",
+ "\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsilk:\"#ff",
+ "f8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcy",
+ "an:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen",
+ ":\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:",
+ "\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",darkorchi",
+ "d:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseagreen:",
+ "\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",darksla",
+ "tegrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3\",dee",
+ "ppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dimgrey:",
+ "\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhite:\"",
+ "#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdc",
+ "dc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520\",gr",
+ "ay:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#808080",
+ "\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",indig",
+ "o:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",",
+ "lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#fffacd",
+ "\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff\",l",
+ "ightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"#90e",
+ "e90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a",
+ "\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslategray:",
+ "\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",light",
+ "yellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#faf0",
+ "e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66cdaa",
+ "\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9370",
+ "db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumsprin",
+ "ggreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c7158",
+ "5\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1",
+ "\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",oldl",
+ "ace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa50",
+ "0\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa\",",
+ "palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7093",
+ "\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pink:",
+ "\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080\",",
+ "red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebrown",
+ ":\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2e8b",
+ "57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",skybl",
+ "ue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey:\"",
+ "#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682b4",
+ "\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff634",
+ "7\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:\"",
+ "#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9acd",
+ "32\"};var oa=\"background-color border-top-color border-right-color bor",
+ "der-bottom-color border-left-color color outline-color\".split(\" \"),p",
+ "a=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function qa(a){if(!ra.test",
+ "(a))throw Error(\"'\"+a+\"' is not a valid hex color\");4==a.length&&(a",
+ "=a.replace(pa,\"#$1$1$2$2$3$3\"));return a.toLowerCase()}var ra=/^#(?:[",
+ "0-9a-f]{3}){1,2}$/i,sa=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d",
+ "{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i;\nfunction ta(a){var b=a.match(sa);if(b",
+ "){a=Number(b[1]);var c=Number(b[2]),d=Number(b[3]),b=Number(b[4]);if(0<",
+ "=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}retu",
+ "rn[]}var va=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0",
+ "|[1-9]\\d{0,2})\\)$/i;function wa(a){var b=a.match(va);if(b){a=Number(b",
+ "[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0",
+ "<=b&&255>=b)return[a,c,b]}return[]};function r(a,b){this.code=a;this.st",
+ "ate=xa[a]||ya;this.message=b||\"\";var c=this.state.replace(/((?:^|\\s+",
+ ")[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"",
+ "\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";this.",
+ "name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}",
+ "n(r,Error);\nvar ya=\"unknown error\",xa={15:\"element not selectable\"",
+ ",11:\"element not visible\",31:\"ime engine activation failed\",30:\"im",
+ "e not available\",24:\"invalid cookie domain\",29:\"invalid element coo",
+ "rdinates\",12:\"invalid element state\",32:\"invalid selector\",51:\"in",
+ "valid selector\",52:\"invalid selector\",17:\"javascript error\",405:\"",
+ "unsupported operation\",34:\"move target out of bounds\",27:\"no such a",
+ "lert\",7:\"no such element\",8:\"no such frame\",23:\"no such window\",",
+ "28:\"script timeout\",33:\"session not created\",10:\"stale element ref",
+ "erence\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:",
+ "\"unexpected alert open\"};xa[13]=ya;xa[9]=\"unknown command\";r.protot",
+ "ype.toString=function(){return this.name+\": \"+this.message};var za,Aa",
+ ",Ba,Ca=ca.navigator;Ba=Ca&&Ca.platform||\"\";za=-1!=Ba.indexOf(\"Mac\")",
+ ";Aa=-1!=Ba.indexOf(\"Win\");var s=-1!=Ba.indexOf(\"Linux\");var Da;func",
+ "tion t(a,b){this.x=k(a)?a:0;this.y=k(b)?b:0}g=t.prototype;g.toString=fu",
+ "nction(){return\"(\"+this.x+\", \"+this.y+\")\"};g.ceil=function(){this",
+ ".x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=func",
+ "tion(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}",
+ ";g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y)",
+ ";return this};g.scale=function(a,b){var c=ea(b)?b:a;this.x*=a;this.y*=c",
+ ";return this};function Ea(a,b){this.width=a;this.height=b}g=Ea.prototyp",
+ "e;g.toString=function(){return\"(\"+this.width+\" x \"+this.height+\")",
+ "\"};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math",
+ ".ceil(this.height);return this};g.floor=function(){this.width=Math.floo",
+ "r(this.width);this.height=Math.floor(this.height);return this};g.round=",
+ "function(){this.width=Math.round(this.width);this.height=Math.round(thi",
+ "s.height);return this};g.scale=function(a,b){var c=ea(b)?b:a;this.width",
+ "*=a;this.height*=c;return this};var Fa=3;function Ga(a){for(;a&&1!=a.no",
+ "deType;)a=a.previousSibling;return a}function Ha(a,b){if(a.contains&&1=",
+ "=b.nodeType)return a==b||a.contains(b);if(\"undefined\"!=typeof a.compa",
+ "reDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16",
+ ");for(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction Ia(a,b){if(a==b)r",
+ "eturn 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b",
+ ")&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&&\"sourceIndex\"in a.pare",
+ "ntNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceInde",
+ "x-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?Ja(a,b):!",
+ "c&&Ha(e,b)?-1*Ka(a,b):!d&&Ha(f,a)?Ka(b,a):(c?a.sourceIndex:e.sourceInde",
+ "x)-(d?b.sourceIndex:f.sourceIndex)}d=v(a);c=d.createRange();c.selectNod",
+ "e(a);c.collapse(!0);d=d.createRange();d.selectNode(b);\nd.collapse(!0);",
+ "return c.compareBoundaryPoints(ca.Range.START_TO_END,d)}function Ka(a,b",
+ "){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.",
+ "parentNode;return Ja(d,a)}function Ja(a,b){for(var c=b;c=c.previousSibl",
+ "ing;)if(c==a)return-1;return 1}function v(a){return 9==a.nodeType?a:a.o",
+ "wnerDocument||a.document}function La(a,b,c){c||(a=a.parentNode);for(c=0",
+ ";a;){if(b(a))return a;a=a.parentNode;c++}return null}function Ma(a){try",
+ "{return a&&a.activeElement}catch(b){}return null}\nfunction w(a){this.P",
+ "=a||ca.document||document}function Na(a){var b=a.P;a=b.body;b=b.parentW",
+ "indow||b.defaultView;return new t(b.pageXOffset||a.scrollLeft,b.pageYOf",
+ "fset||a.scrollTop)}w.prototype.contains=Ha;function x(a){var b=null,c=a",
+ ".nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=v",
+ "oid 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==c){a=9==c",
+ "?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nod",
+ "eType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--",
+ "c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction y(a,b,c)",
+ "{if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1",
+ "}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Oa(",
+ "a,b,c,d,e){return Pa.call(null,a,b,l(c)?c:null,l(d)?d:null,e||new z)}\n",
+ "function Pa(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b.getElem",
+ "entsByName(d),p(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsBy",
+ "ClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),p(b,function(",
+ "b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagName&&(b",
+ "=b.getElementsByTagName(a.getName()),p(b,function(a){y(a,c,d)&&e.add(a)",
+ "}));return e}function Qa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSiblin",
+ "g)y(b,c,d)&&a.matches(b)&&e.add(b);return e}\nfunction Ra(a,b,c,d,e){fo",
+ "r(b=b.firstChild;b;b=b.nextSibling)y(b,c,d)&&a.matches(b)&&e.add(b),Ra(",
+ "a,b,c,d,e)};function z(){this.h=this.g=null;this.p=0}function Sa(a){thi",
+ "s.J=a;this.next=this.B=null}z.prototype.unshift=function(a){a=new Sa(a)",
+ ";a.next=this.g;this.h?this.g.B=a:this.g=this.h=a;this.g=a;this.p++};z.p",
+ "rototype.add=function(a){a=new Sa(a);a.B=this.h;this.g?this.h.next=a:th",
+ "is.g=this.h=a;this.h=a;this.p++};function Ta(a){return(a=a.g)?a.J:null}",
+ "function Ua(a){return(a=Ta(a))?x(a):\"\"}function A(a,b){this.ca=a;this",
+ ".F=(this.K=b)?a.h:a.g;this.Q=null}\nA.prototype.next=function(){var a=t",
+ "his.F;if(null==a)return null;var b=this.Q=a;this.F=this.K?a.B:a.next;re",
+ "turn b.J};function B(a,b){var c=a.evaluate(b);return c instanceof z?+Ua",
+ "(c):+c}function C(a,b){var c=a.evaluate(b);return c instanceof z?Ua(c):",
+ "\"\"+c}function D(a,b){var c=a.evaluate(b);return c instanceof z?!!c.p:",
+ "!!c};function F(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var f;if(b i",
+ "nstanceof z&&c instanceof z){e=new A(b,!1);for(d=e.next();d;d=e.next())",
+ "for(b=new A(c,!1),f=b.next();f;f=b.next())if(a(x(d),x(f)))return!0;retu",
+ "rn!1}if(b instanceof z||c instanceof z){b instanceof z?e=b:(e=c,c=b);e=",
+ "new A(e,!1);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case \"nu",
+ "mber\":d=+x(d);break;case \"boolean\":d=!!x(d);break;case \"string\":d=",
+ "x(d);break;default:throw Error(\"Illegal primitive type for comparison.",
+ "\");}if(a(d,c))return!0}return!1}return e?\n\"boolean\"==typeof b||\"bo",
+ "olean\"==typeof c?a(!!b,!!c):\"number\"==typeof b||\"number\"==typeof c",
+ "?a(+b,+c):a(b,c):a(+b,+c)}function Va(a,b,c,d){this.R=a;this.fa=b;this.",
+ "O=c;this.o=d}Va.prototype.toString=aa(\"R\");var Wa={};function G(a,b,c",
+ ",d){if(a in Wa)throw Error(\"Binary operator already created: \"+a);a=n",
+ "ew Va(a,b,c,d);Wa[a.toString()]=a}G(\"div\",6,1,function(a,b,c){return ",
+ "B(a,c)/B(b,c)});G(\"mod\",6,1,function(a,b,c){return B(a,c)%B(b,c)});G(",
+ "\"*\",6,1,function(a,b,c){return B(a,c)*B(b,c)});\nG(\"+\",5,1,function",
+ "(a,b,c){return B(a,c)+B(b,c)});G(\"-\",5,1,function(a,b,c){return B(a,c",
+ ")-B(b,c)});G(\"<\",4,2,function(a,b,c){return F(function(a,b){return a<",
+ "b},a,b,c)});G(\">\",4,2,function(a,b,c){return F(function(a,b){return a",
+ ">b},a,b,c)});G(\"<=\",4,2,function(a,b,c){return F(function(a,b){return",
+ " a<=b},a,b,c)});G(\">=\",4,2,function(a,b,c){return F(function(a,b){ret",
+ "urn a>=b},a,b,c)});G(\"=\",3,2,function(a,b,c){return F(function(a,b){r",
+ "eturn a==b},a,b,c,!0)});\nG(\"!=\",3,2,function(a,b,c){return F(functio",
+ "n(a,b){return a!=b},a,b,c,!0)});G(\"and\",2,2,function(a,b,c){return D(",
+ "a,c)&&D(b,c)});G(\"or\",1,2,function(a,b,c){return D(a,c)||D(b,c)});fun",
+ "ction Xa(a,b,c,d,e,f,h,u,q){this.A=a;this.O=b;this.ba=c;this.aa=d;this.",
+ "$=e;this.o=f;this.Z=h;this.Y=k(u)?u:h;this.da=!!q}Xa.prototype.toString",
+ "=aa(\"A\");var Ya={};function H(a,b,c,d,e,f,h,u){if(a in Ya)throw Error",
+ "(\"Function already created: \"+a+\".\");Ya[a]=new Xa(a,b,c,d,!1,e,f,h,",
+ "u)}H(\"boolean\",2,!1,!1,function(a,b){return D(b,a)},1);H(\"ceiling\",",
+ "1,!1,!1,function(a,b){return Math.ceil(B(b,a))},1);\nH(\"concat\",3,!1,",
+ "!1,function(a,b){var c=ma(arguments,1);return ja(c,function(b,c){return",
+ " b+C(c,a)})},2,null);H(\"contains\",2,!1,!1,function(a,b,c){b=C(b,a);a=",
+ "C(c,a);return-1!=b.indexOf(a)},2);H(\"count\",1,!1,!1,function(a,b){ret",
+ "urn b.evaluate(a).p},1,1,!0);H(\"false\",2,!1,!1,ba(!1),0);H(\"floor\",",
+ "1,!1,!1,function(a,b){return Math.floor(B(b,a))},1);\nH(\"id\",4,!1,!1,",
+ "function(a,b){var c=a.m,d=9==c.nodeType?c:c.ownerDocument,c=C(b,a).spli",
+ "t(/\\s+/),e=[];p(c,function(a){(a=d.getElementById(a))&&!la(e,a)&&e.pus",
+ "h(a)});e.sort(Ia);var f=new z;p(e,function(a){f.add(a)});return f},1);H",
+ "(\"lang\",2,!1,!1,ba(!1),1);H(\"last\",1,!0,!1,function(a){if(1!=argume",
+ "nts.length)throw Error(\"Function last expects ()\");return a.h},0);H(",
+ "\"local-name\",3,!1,!0,function(a,b){var c=b?Ta(b.evaluate(a)):a.m;retu",
+ "rn c?c.nodeName.toLowerCase():\"\"},0,1,!0);\nH(\"name\",3,!1,!0,functi",
+ "on(a,b){var c=b?Ta(b.evaluate(a)):a.m;return c?c.nodeName.toLowerCase()",
+ ":\"\"},0,1,!0);H(\"namespace-uri\",3,!0,!1,ba(\"\"),0,1,!0);H(\"normali",
+ "ze-space\",3,!1,!0,function(a,b){return(b?C(b,a):x(a.m)).replace(/[\\s",
+ "\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);H(\"not\",2,!1,!1,f",
+ "unction(a,b){return!D(b,a)},1);H(\"number\",1,!1,!0,function(a,b){retur",
+ "n b?B(b,a):+x(a.m)},0,1);H(\"position\",1,!0,!1,function(a){return a.ea",
+ "},0);H(\"round\",1,!1,!1,function(a,b){return Math.round(B(b,a))},1);\n",
+ "H(\"starts-with\",2,!1,!1,function(a,b,c){b=C(b,a);a=C(c,a);return 0==b",
+ ".lastIndexOf(a,0)},2);H(\"string\",3,!1,!0,function(a,b){return b?C(b,a",
+ "):x(a.m)},0,1);H(\"string-length\",1,!1,!0,function(a,b){return(b?C(b,a",
+ "):x(a.m)).length},0,1);\nH(\"substring\",3,!1,!1,function(a,b,c,d){c=B(",
+ "c,a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?B(d,a):Infin",
+ "ity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.",
+ "max(c,0);a=C(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);",
+ "return a.substring(e,c+b)},2,3);H(\"substring-after\",3,!1,!1,function(",
+ "a,b,c){b=C(b,a);a=C(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+",
+ "a.length)},2);\nH(\"substring-before\",3,!1,!1,function(a,b,c){b=C(b,a)",
+ ";a=C(c,a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);H(\"sum",
+ "\",1,!1,!1,function(a,b){var c;c=b.evaluate(a);c=new A(c,!1);for(var d=",
+ "0,e=c.next();e;e=c.next())d+=+x(e);return d},1,1,!0);H(\"translate\",3,",
+ "!1,!1,function(a,b,c,d){b=C(b,a);c=C(c,a);var e=C(d,a);a=[];for(d=0;d<c",
+ ".length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c=\"\";for(d=",
+ "0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);H(\"true\"",
+ ",2,!1,!1,ba(!0),0);function Za(a,b,c,d){this.A=a;this.W=b;this.K=c;this",
+ ".ia=d}Za.prototype.toString=aa(\"A\");var $a={};function I(a,b,c,d){if(",
+ "a in $a)throw Error(\"Axis already created: \"+a);$a[a]=new Za(a,b,c,!!",
+ "d)}I(\"ancestor\",function(a,b){for(var c=new z,d=b;d=d.parentNode;)a.m",
+ "atches(d)&&c.unshift(d);return c},!0);I(\"ancestor-or-self\",function(a",
+ ",b){var c=new z,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode)",
+ ";return c},!0);\nI(\"attribute\",function(a,b){var c=new z,d=a.getName(",
+ "),e=b.attributes;if(e)if(\"*\"==d)for(var d=0,f;f=e[d];d++)c.add(f);els",
+ "e(f=e.getNamedItem(d))&&c.add(f);return c},!1);I(\"child\",function(a,b",
+ ",c,d,e){return Qa.call(null,a,b,l(c)?c:null,l(d)?d:null,e||new z)},!1,!",
+ "0);I(\"descendant\",Oa,!1,!0);I(\"descendant-or-self\",function(a,b,c,d",
+ "){var e=new z;y(b,c,d)&&a.matches(b)&&e.add(b);return Oa(a,b,c,d,e)},!1",
+ ",!0);\nI(\"following\",function(a,b,c,d){var e=new z;do for(var f=b;f=f",
+ ".nextSibling;)y(f,c,d)&&a.matches(f)&&e.add(f),e=Oa(a,f,c,d,e);while(b=",
+ "b.parentNode);return e},!1,!0);I(\"following-sibling\",function(a,b){fo",
+ "r(var c=new z,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1)",
+ ";I(\"namespace\",function(){return new z},!1);I(\"parent\",function(a,b",
+ "){var c=new z;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b",
+ ".ownerElement),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1",
+ ");\nI(\"preceding\",function(a,b,c,d){var e=new z,f=[];do f.unshift(b);",
+ "while(b=b.parentNode);for(var h=1,u=f.length;h<u;h++){var q=[];for(b=f[",
+ "h];b=b.previousSibling;)q.unshift(b);for(var E=0,ua=q.length;E<ua;E++)b",
+ "=q[E],y(b,c,d)&&a.matches(b)&&e.add(b),e=Oa(a,b,c,d,e)}return e},!0,!0)",
+ ";I(\"preceding-sibling\",function(a,b){for(var c=new z,d=b;d=d.previous",
+ "Sibling;)a.matches(d)&&c.unshift(d);return c},!0);I(\"self\",function(a",
+ ",b){var c=new z;a.matches(b)&&c.add(b);return c},!1);var J={};J.L=funct",
+ "ion(){var a={ja:\"http://www.w3.org/2000/svg\"};return function(b){retu",
+ "rn a[b]||null}}();J.o=function(a,b,c){var d=v(a);try{var e=d.createNSRe",
+ "solver?d.createNSResolver(d.documentElement):J.L;return d.evaluate(b,a,",
+ "e,c,null)}catch(f){throw new r(32,\"Unable to locate an element with th",
+ "e xpath expression \"+b+\" because of the following error:\\n\"+f);}};",
+ "\nJ.D=function(a,b){if(!a||1!=a.nodeType)throw new r(32,'The result of ",
+ "the xpath expression \"'+b+'\" is: '+a+\". It should be an element.\");",
+ "};J.T=function(a,b){var c=function(){var c=J.o(b,a,9);return c?c.single",
+ "NodeValue||null:b.selectSingleNode?(c=v(b),c.setProperty&&c.setProperty",
+ "(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}();null==",
+ "=c||J.D(c,a);return c};\nJ.X=function(a,b){var c=function(){var c=J.o(b",
+ ",a,7);if(c){for(var e=c.snapshotLength,f=[],h=0;h<e;++h)f.push(c.snapsh",
+ "otItem(h));return f}return b.selectNodes?(c=v(b),c.setProperty&&c.setPr",
+ "operty(\"SelectionLanguage\",\"XPath\"),b.selectNodes(a)):[]}();p(c,fun",
+ "ction(b){J.D(b,a)});return c};function ab(a,b,c,d){this.top=a;this.righ",
+ "t=b;this.bottom=c;this.left=d}g=ab.prototype;g.toString=function(){retu",
+ "rn\"(\"+this.top+\"t, \"+this.right+\"r, \"+this.bottom+\"b, \"+this.le",
+ "ft+\"l)\"};g.contains=function(a){return this&&a?a instanceof ab?a.left",
+ ">=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.botto",
+ "m:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};",
+ "\ng.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(t",
+ "his.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.",
+ "left);return this};g.floor=function(){this.top=Math.floor(this.top);thi",
+ "s.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this",
+ ".left=Math.floor(this.left);return this};g.round=function(){this.top=Ma",
+ "th.round(this.top);this.right=Math.round(this.right);this.bottom=Math.r",
+ "ound(this.bottom);this.left=Math.round(this.left);return this};\ng.scal",
+ "e=function(a,b){var c=ea(b)?b:a;this.left*=a;this.right*=a;this.top*=c;",
+ "this.bottom*=c;return this};function K(a,b,c,d){this.left=a;this.top=b;",
+ "this.width=c;this.height=d}g=K.prototype;g.toString=function(){return\"",
+ "(\"+this.left+\", \"+this.top+\" - \"+this.width+\"w x \"+this.height+",
+ "\"h)\"};g.contains=function(a){return a instanceof K?this.left<=a.left&",
+ "&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.h",
+ "eight>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=t",
+ "his.top&&a.y<=this.top+this.height};\ng.ceil=function(){this.left=Math.",
+ "ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.",
+ "width);this.height=Math.ceil(this.height);return this};g.floor=function",
+ "(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.w",
+ "idth=Math.floor(this.width);this.height=Math.floor(this.height);return ",
+ "this};g.round=function(){this.left=Math.round(this.left);this.top=Math.",
+ "round(this.top);this.width=Math.round(this.width);this.height=Math.roun",
+ "d(this.height);return this};\ng.scale=function(a,b){var c=ea(b)?b:a;thi",
+ "s.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};functio",
+ "n L(a,b){var c=v(a);return c.defaultView&&c.defaultView.getComputedStyl",
+ "e&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(",
+ "b)||\"\":\"\"}function M(a,b){return L(a,b)||(a.currentStyle?a.currentS",
+ "tyle[b]:null)||a.style&&a.style[b]}function bb(a){var b;try{b=a.getBoun",
+ "dingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}return ",
+ "b}\nfunction cb(a){var b=v(a),c=M(a,\"position\"),d=\"fixed\"==c||\"abs",
+ "olute\"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=M(a,\"positio",
+ "n\"),d=d&&\"static\"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollW",
+ "idth>a.clientWidth||a.scrollHeight>a.clientHeight||\"fixed\"==c||\"abso",
+ "lute\"==c||\"relative\"==c))return a;return null}\nfunction db(a){var b",
+ "=v(a),c=M(a,\"position\"),d=new t(0,0),e=(b?v(b):document).documentElem",
+ "ent;if(a==e)return d;if(a.getBoundingClientRect)a=bb(a),b=Na(b?new w(v(",
+ "b)):Da||(Da=new w)),d.x=a.left+b.x,d.y=a.top+b.y;else if(b.getBoxObject",
+ "For)a=b.getBoxObjectFor(a),b=b.getBoxObjectFor(e),d.x=a.screenX-b.scree",
+ "nX,d.y=a.screenY-b.screenY;else{var f=a;do{d.x+=f.offsetLeft;d.y+=f.off",
+ "setTop;f!=a&&(d.x+=f.clientLeft||0,d.y+=f.clientTop||0);if(\"fixed\"==M",
+ "(f,\"position\")){d.x+=b.body.scrollLeft;d.y+=b.body.scrollTop;\nbreak}",
+ "f=f.offsetParent}while(f&&f!=a);\"absolute\"==c&&(d.y-=b.body.offsetTop",
+ ");for(f=a;(f=cb(f))&&f!=b.body&&f!=e;)d.x-=f.scrollLeft,d.y-=f.scrollTo",
+ "p}return d}function eb(a){if(1==a.nodeType){if(a.getBoundingClientRect)",
+ "a=bb(a),a=new t(a.left,a.top);else{var b=Na(a?new w(v(a)):Da||(Da=new w",
+ "));a=db(a);a=new t(a.x-b.x,a.y-b.y)}return a}var b=m(a.H),c=a;a.targetT",
+ "ouches?c=a.targetTouches[0]:b&&a.H().targetTouches&&(c=a.H().targetTouc",
+ "hes[0]);return new t(c.clientX,c.clientY)}\nfunction fb(a){var b=a.offs",
+ "etWidth,c=a.offsetHeight;return k(b)&&(b||c)||!a.getBoundingClientRect?",
+ "new Ea(b,c):(a=bb(a),new Ea(a.right-a.left,a.bottom-a.top))};function N",
+ "(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}functi",
+ "on gb(a){return hb(a,!0)&&ib(a)&&\"none\"!=O(a,\"pointer-events\")}func",
+ "tion jb(a){return N(a,\"OPTION\")?!0:N(a,\"INPUT\")?(a=a.type.toLowerCa",
+ "se(),\"checkbox\"==a||\"radio\"==a):!1}function kb(a){if(!jb(a))throw n",
+ "ew r(15,\"Element is not selectable\");var b=\"selected\",c=a.type&&a.t",
+ "ype.toLowerCase();if(\"checkbox\"==c||\"radio\"==c)b=\"checked\";return",
+ "!!a[b]}var lb=\"BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA\".split(\"",
+ " \");\nfunction ib(a){var b=a.tagName.toUpperCase();return la(lb,b)?a.d",
+ "isabled?!1:a.parentNode&&1==a.parentNode.nodeType&&\"OPTGROUP\"==b||\"O",
+ "PTION\"==b?ib(a.parentNode):!La(a,function(a){var b=a.parentNode;if(b&&",
+ "N(b,\"FIELDSET\")&&b.disabled){if(!N(a,\"LEGEND\"))return!0;for(;a=void",
+ " 0!=a.previousElementSibling?a.previousElementSibling:Ga(a.previousSibl",
+ "ing);)if(N(a,\"LEGEND\"))return!0}return!1},!0):!0}\nfunction P(a){for(",
+ "a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.par",
+ "entNode;return N(a)?a:null}\nfunction O(a,b){var c=ga(b);if(\"float\"==",
+ "c||\"cssFloat\"==c||\"styleFloat\"==c)c=\"cssFloat\";c=L(a,c)||mb(a,c);",
+ "if(null===c)c=null;else if(la(oa,b)&&(ra.test(\"#\"==c.charAt(0)?c:\"#",
+ "\"+c)||wa(c).length||na&&na[c.toLowerCase()]||ta(c).length)){var d=ta(c",
+ ");if(!d.length){a:if(d=wa(c),!d.length){d=(d=na[c.toLowerCase()])?d:\"#",
+ "\"==c.charAt(0)?c:\"#\"+c;if(ra.test(d)&&(d=qa(d),d=qa(d),d=[parseInt(d",
+ ".substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16)]",
+ ",d.length))break a;d=[]}3==d.length&&d.push(1)}c=4!=\nd.length?c:\"rgba",
+ "(\"+d.join(\", \")+\")\"}return c}function mb(a,b){var c=a.currentStyle",
+ "||a.style,d=c[b];!k(d)&&m(c.getPropertyValue)&&(d=c.getPropertyValue(b)",
+ ");return\"inherit\"!=d?k(d)?d:null:(c=P(a))?mb(c,b):null}\nfunction hb(",
+ "a,b){function c(a){if(\"none\"==O(a,\"display\"))return!1;a=P(a);return",
+ "!a||c(a)}function d(a){var b=Q(a);return 0<b.height&&0<b.width?!0:N(a,",
+ "\"PATH\")&&(0<b.height||0<b.width)?(a=O(a,\"stroke-width\"),!!a&&0<pars",
+ "eInt(a,10)):\"hidden\"!=O(a,\"overflow\")&&ka(a.childNodes,function(a){",
+ "return a.nodeType==Fa||N(a)&&d(a)})}function e(a){var b=O(a,\"-o-transf",
+ "orm\")||O(a,\"-webkit-transform\")||O(a,\"-ms-transform\")||O(a,\"-moz-",
+ "transform\")||O(a,\"transform\");if(b&&\"none\"!==b)return b=eb(a),a=Q(",
+ "a),0<=b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=P(a);return!a||e(a)}if(!N(",
+ "a))throw Error(\"Argument to isShown must be of type Element\");if(N(a,",
+ "\"OPTION\")||N(a,\"OPTGROUP\")){var f=La(a,function(a){return N(a,\"SEL",
+ "ECT\")});return!!f&&hb(f,!0)}return(f=nb(a))?!!f.I&&0<f.rect.width&&0<f",
+ ".rect.height&&hb(f.I,b):N(a,\"INPUT\")&&\"hidden\"==a.type.toLowerCase(",
+ ")||N(a,\"NOSCRIPT\")||\"hidden\"==O(a,\"visibility\")||!c(a)||!b&&0==ob",
+ "(a)||!d(a)||pb(a)==qb?!1:e(a)}var qb=\"hidden\";\nfunction pb(a){functi",
+ "on b(a){var b=a;if(\"visible\"==u)if(a==f)b=h;else if(a==h)return{x:\"v",
+ "isible\",y:\"visible\"};b={x:O(b,\"overflow-x\"),y:O(b,\"overflow-y\")}",
+ ";a==f&&(b.x=\"hidden\"==b.x?\"hidden\":\"auto\",b.y=\"hidden\"==b.y?\"h",
+ "idden\":\"auto\");return b}function c(a){var b=O(a,\"position\");if(\"f",
+ "ixed\"==b)return f;for(a=P(a);a&&a!=f&&(0==O(a,\"display\").lastIndexOf",
+ "(\"inline\",0)||\"absolute\"==b&&\"static\"==O(a,\"position\"));)a=P(a)",
+ ";return a}var d=Q(a),e=v(a),f=e.documentElement,h=e.body,u=O(f,\"overfl",
+ "ow\");for(a=c(a);a;a=\nc(a)){var q=Q(a),e=b(a),E=d.left>=q.left+q.width",
+ ",q=d.top>=q.top+q.height;if(E&&\"hidden\"==e.x||q&&\"hidden\"==e.y)retu",
+ "rn qb;if(E&&\"visible\"!=e.x||q&&\"visible\"!=e.y)return pb(a)==qb?qb:",
+ "\"scroll\"}return\"none\"}\nfunction Q(a){var b=nb(a);if(b)return b.rec",
+ "t;if(m(a.getBBox))try{var c=a.getBBox();return new K(c.x,c.y,c.width,c.",
+ "height)}catch(d){throw d;}else{if(N(a,\"HTML\"))return a=((v(a)?v(a).pa",
+ "rentWindow||v(a).defaultView:window)||window).document,a=\"CSS1Compat\"",
+ "==a.compatMode?a.documentElement:a.body,a=new Ea(a.clientWidth,a.client",
+ "Height),new K(0,0,a.width,a.height);var b=eb(a),c=a.offsetWidth,e=a.off",
+ "setHeight;c||(e||!a.getBoundingClientRect)||(a=a.getBoundingClientRect(",
+ "),c=a.right-a.left,e=a.bottom-a.top);\nreturn new K(b.x,b.y,c,e)}}funct",
+ "ion nb(a){var b=N(a,\"MAP\");if(!b&&!N(a,\"AREA\"))return null;var c=b?",
+ "a:N(a.parentNode,\"MAP\")?a.parentNode:null,d=null,e=null;if(c&&c.name&",
+ "&(d=J.T('/descendant::*[@usemap = \"#'+c.name+'\"]',v(c)))&&(e=Q(d),!b&",
+ "&\"default\"!=a.shape.toLowerCase())){var f=rb(a);a=Math.min(Math.max(f",
+ ".left,0),e.width);b=Math.min(Math.max(f.top,0),e.height);c=Math.min(f.w",
+ "idth,e.width-a);f=Math.min(f.height,e.height-b);e=new K(a+e.left,b+e.to",
+ "p,c,f)}return{I:d,rect:e||new K(0,0,0,0)}}\nfunction rb(a){var b=a.shap",
+ "e.toLowerCase();a=a.coords.split(\",\");if(\"rect\"==b&&4==a.length){va",
+ "r b=a[0],c=a[1];return new K(b,c,a[2]-b,a[3]-c)}if(\"circle\"==b&&3==a.",
+ "length)return b=a[2],new K(a[0]-b,a[1]-b,2*b,2*b);if(\"poly\"==b&&2<a.l",
+ "ength){for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b",
+ ",a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);ret",
+ "urn new K(b,c,d-b,e-c)}return new K(0,0,0,0)}\nfunction ob(a){var b=1,c",
+ "=O(a,\"opacity\");c&&(b=Number(c));(a=P(a))&&(b*=ob(a));return b};funct",
+ "ion sb(a,b){this.c=fa.document.documentElement;this.f=null;var c=Ma(v(t",
+ "his.c));c&&tb(this,c);this.i=a||new ub;this.G=b||new vb}function tb(a,b",
+ "){a.c=b;a.f=N(b,\"OPTION\")?La(b,function(a){return N(a,\"SELECT\")}):n",
+ "ull}\nsb.prototype.k=function(a,b,c,d,e,f,h){if(!f&&!gb(this.c))return!",
+ "1;if(d&&wb!=a&&xb!=a)throw new r(12,\"Event type does not allow related",
+ " target: \"+a);b={clientX:b.x,clientY:b.y,button:c,altKey:this.i.d(4),c",
+ "trlKey:this.i.d(2),shiftKey:this.i.d(1),metaKey:this.i.d(8),wheelDelta:",
+ "e||0,relatedTarget:d||null};h=h||1;c=this.c;if(a!=yb&&a!=zb&&h in Ab)c=",
+ "Ab[h];else if(this.f)a:switch(a){case yb:case Bb:c=this.f.multiple?this",
+ ".c:this.f;break a;default:c=this.f.multiple?this.c:null}return c?this.G",
+ ".k(c,a,b):!0};\nsb.prototype.v=function(a,b,c,d,e){function f(b,c){var ",
+ "d={identifier:b,screenX:c.x,screenY:c.y,clientX:c.x,clientY:c.y,pageX:c",
+ ".x,pageY:c.y};h.changedTouches.push(d);if(a==Cb||a==Db)h.touches.push(d",
+ "),h.targetTouches.push(d)}var h={touches:[],targetTouches:[],changedTou",
+ "ches:[],altKey:this.i.d(4),ctrlKey:this.i.d(2),shiftKey:this.i.d(1),met",
+ "aKey:this.i.d(8),relatedTarget:null,scale:0,rotation:0};f(b,c);k(d)&&f(",
+ "d,e);return this.G.v(this.c,a,h)};function ub(){this.S=0}\nub.prototype",
+ ".d=function(a){return 0!=(this.S&a)};var Ab={};function vb(){}vb.protot",
+ "ype.k=function(a,b,c){return Eb(a,b,c)};vb.prototype.v=function(a,b,c){",
+ "return Eb(a,b,c)};function R(a,b,c){this.n=a;this.r=b;this.s=c}R.protot",
+ "ype.create=function(a){a=v(a).createEvent(\"HTMLEvents\");a.initEvent(t",
+ "his.n,this.r,this.s);return a};R.prototype.toString=aa(\"n\");function ",
+ "S(a,b,c){R.call(this,a,b,c)}n(S,R);\nS.prototype.create=function(a,b){i",
+ "f(this==Fb)throw new r(9,\"Browser does not support a mouse pixel scrol",
+ "l event.\");var c=v(a),d=c?c.parentWindow||c.defaultView:window,c=c.cre",
+ "ateEvent(\"MouseEvents\");this==Gb&&(c.wheelDelta=b.wheelDelta);c.initM",
+ "ouseEvent(this.n,this.r,this.s,d,1,0,0,b.clientX,b.clientY,b.ctrlKey,b.",
+ "altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};functio",
+ "n T(a,b,c){R.call(this,a,b,c)}n(T,R);\nT.prototype.create=function(a,b)",
+ "{function c(b){var c=ia(b,function(b){return{identifier:b.identifier,sc",
+ "reenX:b.screenX,screenY:b.screenY,clientX:b.clientX,clientY:b.clientY,p",
+ "ageX:b.pageX,pageY:b.pageY,target:a}});c.item=function(a){return c[a]};",
+ "return c}var d=v(a),e=d?d.parentWindow||d.defaultView:window,f=c(b.chan",
+ "gedTouches),h=b.touches==b.changedTouches?f:c(b.touches),u=b.targetTouc",
+ "hes==b.changedTouches?f:c(b.targetTouches),d=d.createEvent(\"MouseEvent",
+ "s\");d.initMouseEvent(this.n,this.r,this.s,e,\n1,0,0,b.clientX,b.client",
+ "Y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,b.relatedTarget);d.touches=",
+ "h;d.targetTouches=u;d.changedTouches=f;d.scale=b.scale;d.rotation=b.rot",
+ "ation;return d};\nvar Hb=new R(\"change\",!0,!1),yb=new S(\"click\",!0,",
+ "!0),zb=new S(\"mousedown\",!0,!0),Ib=new S(\"mousemove\",!0,!1),xb=new ",
+ "S(\"mouseout\",!0,!0),wb=new S(\"mouseover\",!0,!0),Bb=new S(\"mouseup",
+ "\",!0,!0),Gb=new S(\"mousewheel\",!0,!0),Fb=new S(\"MozMousePixelScroll",
+ "\",!0,!0),Jb=new T(\"touchend\",!0,!0),Db=new T(\"touchmove\",!0,!0),Cb",
+ "=new T(\"touchstart\",!0,!0);function Eb(a,b,c){b=b.create(a,c);\"isTru",
+ "sted\"in b||(b.isTrusted=!1);return a.dispatchEvent(b)};function U(a,b)",
+ "{this.l={};this.e=[];var c=arguments.length;if(1<c){if(c%2)throw Error(",
+ "\"Uneven number of arguments\");for(var d=0;d<c;d+=2)this.set(arguments",
+ "[d],arguments[d+1])}else if(a){var e;if(a instanceof U)for(d=Kb(a),Lb(a",
+ "),e=[],c=0;c<a.e.length;c++)e.push(a.l[a.e[c]]);else{var c=[],f=0;for(d",
+ " in a)c[f++]=d;d=c;c=[];f=0;for(e in a)c[f++]=a[e];e=c}for(c=0;c<d.leng",
+ "th;c++)this.set(d[c],e[c])}}U.prototype.u=0;U.prototype.V=0;function Kb",
+ "(a){Lb(a);return a.e.concat()}\nfunction Lb(a){if(a.u!=a.e.length){for(",
+ "var b=0,c=0;b<a.e.length;){var d=a.e[b];Object.prototype.hasOwnProperty",
+ ".call(a.l,d)&&(a.e[c++]=d);b++}a.e.length=c}if(a.u!=a.e.length){for(var",
+ " e={},c=b=0;b<a.e.length;)d=a.e[b],Object.prototype.hasOwnProperty.call",
+ "(e,d)||(a.e[c++]=d,e[d]=1),b++;a.e.length=c}}U.prototype.get=function(a",
+ ",b){return Object.prototype.hasOwnProperty.call(this.l,a)?this.l[a]:b};",
+ "\nU.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(th",
+ "is.l,a)||(this.u++,this.e.push(a),this.V++);this.l[a]=b};var Mb={};func",
+ "tion V(a,b,c){var d=typeof a;(\"object\"==d&&null!=a||\"function\"==d)&",
+ "&(a=a.a);a=new Nb(a,b,c);!b||b in Mb&&!c||(Mb[b]={key:a,shift:!1},c&&(M",
+ "b[c]={key:a,shift:!0}));return a}function Nb(a,b,c){this.code=a;this.N=",
+ "b||null;this.ga=c||this.N}V(8);V(9);V(13);var Ob=V(16),Pb=V(17),Qb=V(18",
+ ");V(19);V(20);V(27);V(32,\" \");V(33);V(34);V(35);V(36);V(37);V(38);V(3",
+ "9);V(40);V(44);V(45);V(46);V(48,\"0\",\")\");V(49,\"1\",\"!\");V(50,\"2",
+ "\",\"@\");V(51,\"3\",\"#\");V(52,\"4\",\"$\");V(53,\"5\",\"%\");V(54,\"",
+ "6\",\"^\");V(55,\"7\",\"&\");\nV(56,\"8\",\"*\");V(57,\"9\",\"(\");V(65",
+ ",\"a\",\"A\");V(66,\"b\",\"B\");V(67,\"c\",\"C\");V(68,\"d\",\"D\");V(6",
+ "9,\"e\",\"E\");V(70,\"f\",\"F\");V(71,\"g\",\"G\");V(72,\"h\",\"H\");V(",
+ "73,\"i\",\"I\");V(74,\"j\",\"J\");V(75,\"k\",\"K\");V(76,\"l\",\"L\");V",
+ "(77,\"m\",\"M\");V(78,\"n\",\"N\");V(79,\"o\",\"O\");V(80,\"p\",\"P\");",
+ "V(81,\"q\",\"Q\");V(82,\"r\",\"R\");V(83,\"s\",\"S\");V(84,\"t\",\"T\")",
+ ";V(85,\"u\",\"U\");V(86,\"v\",\"V\");V(87,\"w\",\"W\");V(88,\"x\",\"X\"",
+ ");V(89,\"y\",\"Y\");V(90,\"z\",\"Z\");var Rb=V(Aa?{b:91,a:91,opera:219}",
+ ":za?{b:224,a:91,opera:17}:{b:0,a:91,opera:null});\nV(Aa?{b:92,a:92,oper",
+ "a:220}:za?{b:224,a:93,opera:17}:{b:0,a:92,opera:null});V(Aa?{b:93,a:93,",
+ "opera:0}:za?{b:0,a:0,opera:16}:{b:93,a:null,opera:0});V({b:96,a:96,oper",
+ "a:48},\"0\");V({b:97,a:97,opera:49},\"1\");V({b:98,a:98,opera:50},\"2\"",
+ ");V({b:99,a:99,opera:51},\"3\");V({b:100,a:100,opera:52},\"4\");V({b:10",
+ "1,a:101,opera:53},\"5\");V({b:102,a:102,opera:54},\"6\");V({b:103,a:103",
+ ",opera:55},\"7\");V({b:104,a:104,opera:56},\"8\");V({b:105,a:105,opera:",
+ "57},\"9\");V({b:106,a:106,opera:s?56:42},\"*\");\nV({b:107,a:107,opera:",
+ "s?61:43},\"+\");V({b:109,a:109,opera:s?109:45},\"-\");V({b:110,a:110,op",
+ "era:s?190:78},\".\");V({b:111,a:111,opera:s?191:47},\"/\");V(144);V(112",
+ ");V(113);V(114);V(115);V(116);V(117);V(118);V(119);V(120);V(121);V(122)",
+ ";V(123);V({b:107,a:187,opera:61},\"=\",\"+\");V(108,\",\");V({b:109,a:1",
+ "89,opera:109},\"-\",\"_\");V(188,\",\",\"<\");V(190,\".\",\">\");V(191,",
+ "\"/\",\"?\");V(192,\"`\",\"~\");V(219,\"[\",\"{\");V(220,\"\\\\\",\"|\"",
+ ");V(221,\"]\",\"}\");V({b:59,a:186,opera:59},\";\",\":\");V(222,\"'\",'",
+ "\"');var W=new U;W.set(1,Ob);W.set(2,Pb);\nW.set(4,Qb);W.set(8,Rb);(fun",
+ "ction(a){var b=new U;p(Kb(a),function(c){b.set(a.get(c).code,c)});retur",
+ "n b})(W);function Sb(){sb.call(this);this.j=new t(0,0);this.t=new t(0,0",
+ ")}n(Sb,sb);g=Sb.prototype;g.w=!1;g.M=!1;g.q=0;g.C=0;g.U=2;g.move=functi",
+ "on(a,b,c){this.d()||tb(this,a);a=Q(a);this.j.x=b.x+a.left;this.j.y=b.y+",
+ "a.top;k(c)&&(this.t.x=c.x+a.left,this.t.y=c.y+a.top);this.d()&&(this.w=",
+ "!0,Tb(this,Db))};g.d=function(){return!!this.q};function Tb(a,b){if(!a.",
+ "d())throw new r(13,\"Should never fire event when touchscreen is not pr",
+ "essed.\");var c,d;a.C&&(c=a.C,d=a.t);a.v(b,a.q,a.j,c,d)};function X(a,b",
+ "){this.x=a;this.y=b}n(X,t);X.prototype.scale=t.prototype.scale;X.protot",
+ "ype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Ub(a)",
+ "{var b;if(\"none\"!=M(a,\"display\"))b=fb(a);else{b=a.style;var c=b.dis",
+ "play,d=b.visibility,e=b.position;b.visibility=\"hidden\";b.position=\"a",
+ "bsolute\";b.display=\"inline\";var f=fb(a);b.display=c;b.position=e;b.v",
+ "isibility=d;b=f}return 0<b.width&&0<b.height||!a.offsetParent?b:Ub(a.of",
+ "fsetParent)};function Vb(a,b,c){if(!hb(a,!0))throw new r(11,\"Element i",
+ "s not currently visible and may not be manipulated\");var d=v(a).body,e",
+ ";e=db(a);var f=db(d),h,u,q,E;E=L(d,\"borderLeftWidth\");q=L(d,\"borderR",
+ "ightWidth\");h=L(d,\"borderTopWidth\");u=L(d,\"borderBottomWidth\");h=n",
+ "ew ab(parseFloat(h),parseFloat(q),parseFloat(u),parseFloat(E));u=e.x-f.",
+ "x-h.left;e=e.y-f.y-h.top;f=d.clientHeight-a.offsetHeight;h=d.scrollLeft",
+ ";q=d.scrollTop;h+=Math.min(u,Math.max(u-(d.clientWidth-a.offsetWidth),0",
+ "));q+=Math.min(e,Math.max(e-\nf,0));e=new t(h,q);d.scrollLeft=e.x;d.scr",
+ "ollTop=e.y;b?b=new X(b.x,b.y):(b=Ub(a),b=new X(b.width/2,b.height/2));c",
+ "=c||new Sb;c.move(a,b);if(c.d())throw new r(13,\"Cannot press touchscre",
+ "en when already pressed.\");c.w=!1;c.q=c.U++;Tb(c,Cb);if(!c.d())throw n",
+ "ew r(13,\"Cannot release touchscreen when not already pressed.\");Tb(c,",
+ "Jb);if(!c.w){c.k(Ib,c.j,0);if(c.k(zb,c.j,0)&&(a=c.f||c.c,b=Ma(v(a)),a!=",
+ "b)){if(b&&m(b.blur)&&!N(b,\"BODY\"))try{b.blur()}catch(ua){throw ua;}m(",
+ "a.focus)&&a.focus()}c.f&&gb(c.c)&&(a=c.f,\nb=kb(c.c),!b||a.multiple)&&(",
+ "c.c.selected=!b,!a.multiple&&Eb(a,Hb));c.k(Bb,c.j,0);a=c.j;gb(c.c)&&(!c",
+ ".f&&jb(c.c)&&kb(c.c),c.k(yb,a,0,null,0,!1,void 0))}Ab={};c.q=0;c.C=0;c.",
+ "M=!1}var Y=[\"_\"],Z=ca;Y[0]in Z||!Z.execScript||Z.execScript(\"var \"+",
+ "Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===Vb?Z=Z[$]?Z",
+ "[$]:Z[$]={}:Z[$]=Vb;; return this._.apply(null,arguments);}.apply({navi",
+ "gator:typeof window!=undefined?window.navigator:null,document:typeof wi",
+ "ndow!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const CLEAR[] = {
+ "function(){return function(){function f(a){return function(){return thi",
+ "s[a]}}function k(a){return function(){return a}}var l=this;\nfunction a",
+ "a(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return",
+ "\"array\";if(a instanceof Object)return b;var c=Object.prototype.toStri",
+ "ng.call(a);if(\"[object Window]\"==c)return\"object\";if(\"[object Arra",
+ "y]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.splice&&",
+ "\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(",
+ "\"splice\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!",
+ "=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.proper",
+ "tyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse ",
+ "if(\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";retur",
+ "n b}function m(a){return\"string\"==typeof a}function n(a){return\"func",
+ "tion\"==aa(a)}function ba(a,b){function c(){}c.prototype=b.prototype;a.",
+ "da=b.prototype;a.prototype=new c};var ca=window;function da(a){return S",
+ "tring(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};",
+ "var ea=Array.prototype;function p(a,b){for(var c=a.length,d=m(a)?a.spli",
+ "t(\"\"):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function fa(a,b){",
+ "if(a.reduce)return a.reduce(b,\"\");var c=\"\";p(a,function(d,e){c=b.ca",
+ "ll(void 0,c,d,e,a)});return c}function ga(a,b){for(var c=a.length,d=m(a",
+ ")?a.split(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return",
+ "!0;return!1}\nfunction q(a,b){var c;a:if(m(a))c=m(b)&&1==b.length?a.ind",
+ "exOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c=",
+ "-1}return 0<=c}function ha(a,b,c){return 2>=arguments.length?ea.slice.c",
+ "all(a,b):ea.slice.call(a,b,c)};var ia={aliceblue:\"#f0f8ff\",antiquewhi",
+ "te:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff",
+ "\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmon",
+ "d:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\"",
+ ",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho",
+ "colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsil",
+ "k:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\"",
+ ",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",da",
+ "rkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkma",
+ "genta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",dar",
+ "korchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseag",
+ "reen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",da",
+ "rkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3",
+ "\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dim",
+ "grey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhi",
+ "te:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"",
+ "#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520",
+ "\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#8",
+ "08080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",",
+ "indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6",
+ "fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#ff",
+ "facd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff",
+ "\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"",
+ "#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ff",
+ "a07a\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslateg",
+ "ray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",l",
+ "ightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#",
+ "faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66c",
+ "daa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9",
+ "370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumsp",
+ "ringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c7",
+ "1585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4",
+ "e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",ol",
+ "dlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa",
+ "500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa",
+ "\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7",
+ "093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pin",
+ "k:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080",
+ "\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebr",
+ "own:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2",
+ "e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",sk",
+ "yblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey",
+ ":\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682",
+ "b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6",
+ "347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:",
+ "\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9a",
+ "cd32\"};var ja=\"background-color border-top-color border-right-color b",
+ "order-bottom-color border-left-color color outline-color\".split(\" \")",
+ ",ka=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function la(a){if(!ma.te",
+ "st(a))throw Error(\"'\"+a+\"' is not a valid hex color\");4==a.length&&",
+ "(a=a.replace(ka,\"#$1$1$2$2$3$3\"));return a.toLowerCase()}var ma=/^#(?",
+ ":[0-9a-f]{3}){1,2}$/i,na=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(",
+ "\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i;\nfunction oa(a){var b=a.match(na);i",
+ "f(b){a=Number(b[1]);var c=Number(b[2]),d=Number(b[3]),b=Number(b[4]);if",
+ "(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}r",
+ "eturn[]}var pa=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s",
+ "?(0|[1-9]\\d{0,2})\\)$/i;function qa(a){var b=a.match(pa);if(b){a=Numbe",
+ "r(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c",
+ "&&0<=b&&255>=b)return[a,c,b]}return[]};function r(a,b){this.code=a;this",
+ ".state=ra[a]||sa;this.message=b||\"\";var c=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";t",
+ "his.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||",
+ "\"\"}ba(r,Error);\nvar sa=\"unknown error\",ra={15:\"element not select",
+ "able\",11:\"element not visible\",31:\"ime engine activation failed\",3",
+ "0:\"ime not available\",24:\"invalid cookie domain\",29:\"invalid eleme",
+ "nt coordinates\",12:\"invalid element state\",32:\"invalid selector\",5",
+ "1:\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",",
+ "405:\"unsupported operation\",34:\"move target out of bounds\",27:\"no ",
+ "such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such win",
+ "dow\",28:\"script timeout\",33:\"session not created\",10:\"stale eleme",
+ "nt reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie",
+ "\",26:\"unexpected alert open\"};ra[13]=sa;ra[9]=\"unknown command\";r.",
+ "prototype.toString=function(){return this.name+\": \"+this.message};var",
+ " t,u,v,ta=l.navigator;v=ta&&ta.platform||\"\";t=-1!=v.indexOf(\"Mac\");",
+ "u=-1!=v.indexOf(\"Win\");var w=-1!=v.indexOf(\"Linux\");var x;function ",
+ "y(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}y.prototype.toString",
+ "=function(){return\"(\"+this.x+\", \"+this.y+\")\"};y.prototype.ceil=fu",
+ "nction(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}",
+ ";y.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.flo",
+ "or(this.y);return this};y.prototype.round=function(){this.x=Math.round(",
+ "this.x);this.y=Math.round(this.y);return this};function A(a,b){this.wid",
+ "th=a;this.height=b}A.prototype.toString=function(){return\"(\"+this.wid",
+ "th+\" x \"+this.height+\")\"};A.prototype.ceil=function(){this.width=Ma",
+ "th.ceil(this.width);this.height=Math.ceil(this.height);return this};A.p",
+ "rototype.floor=function(){this.width=Math.floor(this.width);this.height",
+ "=Math.floor(this.height);return this};A.prototype.round=function(){this",
+ ".width=Math.round(this.width);this.height=Math.round(this.height);retur",
+ "n this};var ua=3;function va(a){for(;a&&1!=a.nodeType;)a=a.previousSibl",
+ "ing;return a}function wa(a,b){if(a.contains&&1==b.nodeType)return a==b|",
+ "|a.contains(b);if(\"undefined\"!=typeof a.compareDocumentPosition)retur",
+ "n a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.pare",
+ "ntNode;return b==a}\nfunction xa(a,b){if(a==b)return 0;if(a.compareDocu",
+ "mentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(\"sourceInde",
+ "x\"in a||a.parentNode&&\"sourceIndex\"in a.parentNode){var c=1==a.nodeT",
+ "ype,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.",
+ "parentNode,g=b.parentNode;return e==g?ya(a,b):!c&&wa(e,b)?-1*za(a,b):!d",
+ "&&wa(g,a)?za(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:g.so",
+ "urceIndex)}d=B(a);c=d.createRange();c.selectNode(a);c.collapse(!0);d=d.",
+ "createRange();d.selectNode(b);\nd.collapse(!0);return c.compareBoundary",
+ "Points(l.Range.START_TO_END,d)}function za(a,b){var c=a.parentNode;if(c",
+ "==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return ya(d,a)",
+ "}function ya(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;ret",
+ "urn 1}function B(a){return 9==a.nodeType?a:a.ownerDocument||a.document}",
+ "function Aa(a,b,c){c||(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a",
+ ".parentNode;c++}return null}function Ba(a){try{return a&&a.activeElemen",
+ "t}catch(b){}return null}\nfunction C(a){this.I=a||l.document||document}",
+ "function Ca(a){var b=a.I;a=b.body;b=b.parentWindow||b.defaultView;retur",
+ "n new y(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}C.proto",
+ "type.contains=wa;function D(a){var b=null,c=a.nodeType;1==c&&(b=a.textC",
+ "ontent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?\"\":b);",
+ "if(\"string\"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.first",
+ "Child;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[",
+ "c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b",
+ "=a.nodeValue;return\"\"+b}\nfunction E(a,b,c){if(null===b)return!0;try{",
+ "if(!a.getAttribute)return!1}catch(d){return!1}return null==c?!!a.getAtt",
+ "ribute(b):a.getAttribute(b,2)==c}function F(a,b,c,d,e){return Da.call(n",
+ "ull,a,b,m(c)?c:null,m(d)?d:null,e||new H)}\nfunction Da(a,b,c,d,e){b.ge",
+ "tElementsByName&&d&&\"name\"==c?(b=b.getElementsByName(d),p(b,function(",
+ "b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?",
+ "(b=b.getElementsByClassName(d),p(b,function(b){b.className==d&&a.matche",
+ "s(b)&&e.add(b)})):b.getElementsByTagName&&(b=b.getElementsByTagName(a.g",
+ "etName()),p(b,function(a){E(a,c,d)&&e.add(a)}));return e}function Ea(a,",
+ "b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)E(b,c,d)&&a.matches(b)&&e",
+ ".add(b);return e};function H(){this.g=this.f=null;this.n=0}function Fa(",
+ "a){this.v=a;this.next=this.p=null}H.prototype.unshift=function(a){a=new",
+ " Fa(a);a.next=this.f;this.g?this.f.p=a:this.f=this.g=a;this.f=a;this.n+",
+ "+};H.prototype.add=function(a){a=new Fa(a);a.p=this.g;this.f?this.g.nex",
+ "t=a:this.f=this.g=a;this.g=a;this.n++};function Ga(a){return(a=a.f)?a.v",
+ ":null}function I(a){return new Ha(a,!1)}function Ha(a,b){this.Z=a;this.",
+ "r=(this.w=b)?a.g:a.f;this.K=null}\nHa.prototype.next=function(){var a=t",
+ "his.r;if(null==a)return null;var b=this.K=a;this.r=this.w?a.p:a.next;re",
+ "turn b.v};function J(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var g;i",
+ "f(b instanceof H&&c instanceof H){e=I(b);for(d=e.next();d;d=e.next())fo",
+ "r(b=I(c),g=b.next();g;g=b.next())if(a(D(d),D(g)))return!0;return!1}if(b",
+ " instanceof H||c instanceof H){b instanceof H?e=b:(e=c,c=b);e=I(e);b=ty",
+ "peof c;for(d=e.next();d;d=e.next()){switch(b){case \"number\":d=+D(d);b",
+ "reak;case \"boolean\":d=!!D(d);break;case \"string\":d=D(d);break;defau",
+ "lt:throw Error(\"Illegal primitive type for comparison.\");}if(a(d,c))r",
+ "eturn!0}return!1}return e?\n\"boolean\"==typeof b||\"boolean\"==typeof ",
+ "c?a(!!b,!!c):\"number\"==typeof b||\"number\"==typeof c?a(+b,+c):a(b,c)",
+ ":a(+b,+c)}function Ia(a,b,c,d){this.L=a;this.aa=b;this.H=c;this.k=d}Ia.",
+ "prototype.toString=f(\"L\");var Ja={};function K(a,b,c,d){if(a in Ja)th",
+ "row Error(\"Binary operator already created: \"+a);a=new Ia(a,b,c,d);Ja",
+ "[a.toString()]=a}K(\"div\",6,1,function(a,b,c){return a.d(c)/b.d(c)});K",
+ "(\"mod\",6,1,function(a,b,c){return a.d(c)%b.d(c)});K(\"*\",6,1,functio",
+ "n(a,b,c){return a.d(c)*b.d(c)});\nK(\"+\",5,1,function(a,b,c){return a.",
+ "d(c)+b.d(c)});K(\"-\",5,1,function(a,b,c){return a.d(c)-b.d(c)});K(\"<",
+ "\",4,2,function(a,b,c){return J(function(a,b){return a<b},a,b,c)});K(\"",
+ ">\",4,2,function(a,b,c){return J(function(a,b){return a>b},a,b,c)});K(",
+ "\"<=\",4,2,function(a,b,c){return J(function(a,b){return a<=b},a,b,c)})",
+ ";K(\">=\",4,2,function(a,b,c){return J(function(a,b){return a>=b},a,b,c",
+ ")});K(\"=\",3,2,function(a,b,c){return J(function(a,b){return a==b},a,b",
+ ",c,!0)});\nK(\"!=\",3,2,function(a,b,c){return J(function(a,b){return a",
+ "!=b},a,b,c,!0)});K(\"and\",2,2,function(a,b,c){return a.j(c)&&b.j(c)});",
+ "K(\"or\",1,2,function(a,b,c){return a.j(c)||b.j(c)});function Ka(a,b,c,",
+ "d,e,g,h,z,s){this.o=a;this.H=b;this.Y=c;this.X=d;this.W=e;this.k=g;this",
+ ".U=h;this.T=void 0!==z?z:h;this.$=!!s}Ka.prototype.toString=f(\"o\");va",
+ "r La={};function L(a,b,c,d,e,g,h,z){if(a in La)throw Error(\"Function a",
+ "lready created: \"+a+\".\");La[a]=new Ka(a,b,c,d,!1,e,g,h,z)}L(\"boolea",
+ "n\",2,!1,!1,function(a,b){return b.j(a)},1);L(\"ceiling\",1,!1,!1,funct",
+ "ion(a,b){return Math.ceil(b.d(a))},1);\nL(\"concat\",3,!1,!1,function(a",
+ ",b){var c=ha(arguments,1);return fa(c,function(b,c){return b+c.c(a)})},",
+ "2,null);L(\"contains\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return",
+ "-1!=b.indexOf(a)},2);L(\"count\",1,!1,!1,function(a,b){return b.evaluat",
+ "e(a).n},1,1,!0);L(\"false\",2,!1,!1,k(!1),0);L(\"floor\",1,!1,!1,functi",
+ "on(a,b){return Math.floor(b.d(a))},1);\nL(\"id\",4,!1,!1,function(a,b){",
+ "var c=a.h(),d=9==c.nodeType?c:c.ownerDocument,c=b.c(a).split(/\\s+/),e=",
+ "[];p(c,function(a){(a=d.getElementById(a))&&!q(e,a)&&e.push(a)});e.sort",
+ "(xa);var g=new H;p(e,function(a){g.add(a)});return g},1);L(\"lang\",2,!",
+ "1,!1,k(!1),1);L(\"last\",1,!0,!1,function(a){if(1!=arguments.length)thr",
+ "ow Error(\"Function last expects ()\");return a.Q()},0);L(\"local-name",
+ "\",3,!1,!0,function(a,b){var c=b?Ga(b.evaluate(a)):a.h();return c?c.nod",
+ "eName.toLowerCase():\"\"},0,1,!0);\nL(\"name\",3,!1,!0,function(a,b){va",
+ "r c=b?Ga(b.evaluate(a)):a.h();return c?c.nodeName.toLowerCase():\"\"},0",
+ ",1,!0);L(\"namespace-uri\",3,!0,!1,k(\"\"),0,1,!0);L(\"normalize-space",
+ "\",3,!1,!0,function(a,b){return(b?b.c(a):D(a.h())).replace(/[\\s\\xa0]+",
+ "/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);L(\"not\",2,!1,!1,function",
+ "(a,b){return!b.j(a)},1);L(\"number\",1,!1,!0,function(a,b){return b?b.d",
+ "(a):+D(a.h())},0,1);L(\"position\",1,!0,!1,function(a){return a.R()},0)",
+ ";L(\"round\",1,!1,!1,function(a,b){return Math.round(b.d(a))},1);\nL(\"",
+ "starts-with\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return 0==b.las",
+ "tIndexOf(a,0)},2);L(\"string\",3,!1,!0,function(a,b){return b?b.c(a):D(",
+ "a.h())},0,1);L(\"string-length\",1,!1,!0,function(a,b){return(b?b.c(a):",
+ "D(a.h())).length},0,1);\nL(\"substring\",3,!1,!1,function(a,b,c,d){c=c.",
+ "d(a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.d(a):Infin",
+ "ity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.",
+ "max(c,0);a=b.c(a);if(Infinity==d)return a.substring(e);b=Math.round(d);",
+ "return a.substring(e,c+b)},2,3);L(\"substring-after\",3,!1,!1,function(",
+ "a,b,c){b=b.c(a);a=c.c(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+",
+ "a.length)},2);\nL(\"substring-before\",3,!1,!1,function(a,b,c){b=b.c(a)",
+ ";a=c.c(a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);L(\"sum",
+ "\",1,!1,!1,function(a,b){for(var c=I(b.evaluate(a)),d=0,e=c.next();e;e=",
+ "c.next())d+=+D(e);return d},1,1,!0);L(\"translate\",3,!1,!1,function(a,",
+ "b,c,d){b=b.c(a);c=c.c(a);var e=d.c(a);a=[];for(d=0;d<c.length;d++){var ",
+ "g=c.charAt(d);g in a||(a[g]=e.charAt(d))}c=\"\";for(d=0;d<b.length;d++)",
+ "g=b.charAt(d),c+=g in a?a[g]:g;return c},3);L(\"true\",2,!1,!1,k(!0),0)",
+ ";function Ma(a,b,c,d){this.o=a;this.P=b;this.w=c;this.ea=d}Ma.prototype",
+ ".toString=f(\"o\");var Na={};function M(a,b,c,d){if(a in Na)throw Error",
+ "(\"Axis already created: \"+a);Na[a]=new Ma(a,b,c,!!d)}M(\"ancestor\",f",
+ "unction(a,b){for(var c=new H,d=b;d=d.parentNode;)a.matches(d)&&c.unshif",
+ "t(d);return c},!0);M(\"ancestor-or-self\",function(a,b){var c=new H,d=b",
+ ";do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},!0);\nM(",
+ "\"attribute\",function(a,b){var c=new H,d=a.getName(),e=b.attributes;if",
+ "(e)if(\"*\"==d)for(var d=0,g;g=e[d];d++)c.add(g);else(g=e.getNamedItem(",
+ "d))&&c.add(g);return c},!1);M(\"child\",function(a,b,c,d,e){return Ea.c",
+ "all(null,a,b,m(c)?c:null,m(d)?d:null,e||new H)},!1,!0);M(\"descendant\"",
+ ",F,!1,!0);M(\"descendant-or-self\",function(a,b,c,d){var e=new H;E(b,c,",
+ "d)&&a.matches(b)&&e.add(b);return F(a,b,c,d,e)},!1,!0);\nM(\"following",
+ "\",function(a,b,c,d){var e=new H;do for(var g=b;g=g.nextSibling;)E(g,c,",
+ "d)&&a.matches(g)&&e.add(g),e=F(a,g,c,d,e);while(b=b.parentNode);return ",
+ "e},!1,!0);M(\"following-sibling\",function(a,b){for(var c=new H,d=b;d=d",
+ ".nextSibling;)a.matches(d)&&c.add(d);return c},!1);M(\"namespace\",func",
+ "tion(){return new H},!1);M(\"parent\",function(a,b){var c=new H;if(9==b",
+ ".nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;var ",
+ "d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nM(\"preceding\",f",
+ "unction(a,b,c,d){var e=new H,g=[];do g.unshift(b);while(b=b.parentNode)",
+ ";for(var h=1,z=g.length;h<z;h++){var s=[];for(b=g[h];b=b.previousSiblin",
+ "g;)s.unshift(b);for(var G=0,fb=s.length;G<fb;G++)b=s[G],E(b,c,d)&&a.mat",
+ "ches(b)&&e.add(b),e=F(a,b,c,d,e)}return e},!0,!0);M(\"preceding-sibling",
+ "\",function(a,b){for(var c=new H,d=b;d=d.previousSibling;)a.matches(d)&",
+ "&c.unshift(d);return c},!0);M(\"self\",function(a,b){var c=new H;a.matc",
+ "hes(b)&&c.add(b);return c},!1);var N={};N.C=function(){var a={fa:\"http",
+ "://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();N.k=",
+ "function(a,b,c){var d=B(a);try{var e=d.createNSResolver?d.createNSResol",
+ "ver(d.documentElement):N.C;return d.evaluate(b,a,e,c,null)}catch(g){thr",
+ "ow new r(32,\"Unable to locate an element with the xpath expression \"+",
+ "b+\" because of the following error:\\n\"+g);}};\nN.q=function(a,b){if(",
+ "!a||1!=a.nodeType)throw new r(32,'The result of the xpath expression \"",
+ "'+b+'\" is: '+a+\". It should be an element.\");};N.M=function(a,b){var",
+ " c=function(){var c=N.k(b,a,9);return c?c.singleNodeValue||null:b.selec",
+ "tSingleNode?(c=B(b),c.setProperty&&c.setProperty(\"SelectionLanguage\",",
+ "\"XPath\"),b.selectSingleNode(a)):null}();null===c||N.q(c,a);return c};",
+ "\nN.S=function(a,b){var c=function(){var c=N.k(b,a,7);if(c){for(var e=c",
+ ".snapshotLength,g=[],h=0;h<e;++h)g.push(c.snapshotItem(h));return g}ret",
+ "urn b.selectNodes?(c=B(b),c.setProperty&&c.setProperty(\"SelectionLangu",
+ "age\",\"XPath\"),b.selectNodes(a)):[]}();p(c,function(b){N.q(b,a)});ret",
+ "urn c};function O(a,b,c,d){this.left=a;this.top=b;this.width=c;this.hei",
+ "ght=d}O.prototype.toString=function(){return\"(\"+this.left+\", \"+this",
+ ".top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};O.prototype.contai",
+ "ns=function(a){return a instanceof O?this.left<=a.left&&this.left+this.",
+ "width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.h",
+ "eight:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=th",
+ "is.top+this.height};\nO.prototype.ceil=function(){this.left=Math.ceil(t",
+ "his.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width)",
+ ";this.height=Math.ceil(this.height);return this};O.prototype.floor=func",
+ "tion(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);th",
+ "is.width=Math.floor(this.width);this.height=Math.floor(this.height);ret",
+ "urn this};\nO.prototype.round=function(){this.left=Math.round(this.left",
+ ");this.top=Math.round(this.top);this.width=Math.round(this.width);this.",
+ "height=Math.round(this.height);return this};function Oa(a,b){var c=B(a)",
+ ";return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView",
+ ".getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"\"}funct",
+ "ion P(a){return Oa(a,\"position\")||(a.currentStyle?a.currentStyle.posi",
+ "tion:null)||a.style&&a.style.position}function Pa(a){var b;try{b=a.getB",
+ "oundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}retu",
+ "rn b}\nfunction Qa(a){var b=B(a),c=P(a),d=\"fixed\"==c||\"absolute\"==c",
+ ";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=P(a),d=d&&\"static\"==c",
+ "&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.s",
+ "crollHeight>a.clientHeight||\"fixed\"==c||\"absolute\"==c||\"relative\"",
+ "==c))return a;return null}\nfunction Ra(a){if(1==a.nodeType){var b;if(a",
+ ".getBoundingClientRect)b=Pa(a),b=new y(b.left,b.top);else{b=Ca(a?new C(",
+ "B(a)):x||(x=new C));var c=B(a),d=P(a),e=new y(0,0),g=(c?B(c):document).",
+ "documentElement;if(a!=g)if(a.getBoundingClientRect)a=Pa(a),c=Ca(c?new C",
+ "(B(c)):x||(x=new C)),e.x=a.left+c.x,e.y=a.top+c.y;else if(c.getBoxObjec",
+ "tFor)a=c.getBoxObjectFor(a),c=c.getBoxObjectFor(g),e.x=a.screenX-c.scre",
+ "enX,e.y=a.screenY-c.screenY;else{var h=a;do{e.x+=h.offsetLeft;e.y+=h.of",
+ "fsetTop;h!=a&&(e.x+=h.clientLeft||\n0,e.y+=h.clientTop||0);if(\"fixed\"",
+ "==P(h)){e.x+=c.body.scrollLeft;e.y+=c.body.scrollTop;break}h=h.offsetPa",
+ "rent}while(h&&h!=a);\"absolute\"==d&&(e.y-=c.body.offsetTop);for(h=a;(h",
+ "=Qa(h))&&h!=c.body&&h!=g;)e.x-=h.scrollLeft,e.y-=h.scrollTop}b=new y(e.",
+ "x-b.x,e.y-b.y)}return b}b=n(a.s);e=a;a.targetTouches?e=a.targetTouches[",
+ "0]:b&&a.s().targetTouches&&(e=a.s().targetTouches[0]);return new y(e.cl",
+ "ientX,e.clientY)};function Q(a,b){return!!a&&1==a.nodeType&&(!b||a.tagN",
+ "ame.toUpperCase()==b)}var Sa=\"BUTTON INPUT OPTGROUP OPTION SELECT TEXT",
+ "AREA\".split(\" \");\nfunction Ta(a){var b=a.tagName.toUpperCase();retu",
+ "rn q(Sa,b)?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&\"OPTG",
+ "ROUP\"==b||\"OPTION\"==b?Ta(a.parentNode):!Aa(a,function(a){var b=a.par",
+ "entNode;if(b&&Q(b,\"FIELDSET\")&&b.disabled){if(!Q(a,\"LEGEND\"))return",
+ "!0;for(;a=void 0!=a.previousElementSibling?a.previousElementSibling:va(",
+ "a.previousSibling);)if(Q(a,\"LEGEND\"))return!0}return!1},!0):!0}var Ua",
+ "=\"text search tel url email password number\".split(\" \");\nfunction ",
+ "Va(a){function b(a){return\"inherit\"==a.contentEditable?(a=R(a))?b(a):",
+ "!1:\"true\"==a.contentEditable}return void 0!==a.contentEditable?void 0",
+ "!==a.isContentEditable?a.isContentEditable:b(a):!1}function R(a){for(a=",
+ "a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.paren",
+ "tNode;return Q(a)?a:null}\nfunction S(a,b){var c=da(b);if(\"float\"==c|",
+ "|\"cssFloat\"==c||\"styleFloat\"==c)c=\"cssFloat\";c=Oa(a,c)||Wa(a,c);i",
+ "f(null===c)c=null;else if(q(ja,b)&&(ma.test(\"#\"==c.charAt(0)?c:\"#\"+",
+ "c)||qa(c).length||ia&&ia[c.toLowerCase()]||oa(c).length)){var d=oa(c);i",
+ "f(!d.length){a:if(d=qa(c),!d.length){d=(d=ia[c.toLowerCase()])?d:\"#\"=",
+ "=c.charAt(0)?c:\"#\"+c;if(ma.test(d)&&(d=la(d),d=la(d),d=[parseInt(d.su",
+ "bstr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16)],d.",
+ "length))break a;d=[]}3==d.length&&d.push(1)}c=4!=\nd.length?c:\"rgba(\"",
+ "+d.join(\", \")+\")\"}return c}function Wa(a,b){var c=a.currentStyle||a",
+ ".style,d=c[b];void 0===d&&n(c.getPropertyValue)&&(d=c.getPropertyValue(",
+ "b));return\"inherit\"!=d?void 0!==d?d:null:(c=R(a))?Wa(c,b):null}\nfunc",
+ "tion Xa(a,b){function c(a){if(\"none\"==S(a,\"display\"))return!1;a=R(a",
+ ");return!a||c(a)}function d(a){var b=T(a);return 0<b.height&&0<b.width?",
+ "!0:Q(a,\"PATH\")&&(0<b.height||0<b.width)?(a=S(a,\"stroke-width\"),!!a&",
+ "&0<parseInt(a,10)):\"hidden\"!=S(a,\"overflow\")&&ga(a.childNodes,funct",
+ "ion(a){return a.nodeType==ua||Q(a)&&d(a)})}function e(a){var b=S(a,\"-o",
+ "-transform\")||S(a,\"-webkit-transform\")||S(a,\"-ms-transform\")||S(a,",
+ "\"-moz-transform\")||S(a,\"transform\");if(b&&\"none\"!==b)return b=Ra(",
+ "a),a=T(a),0<=b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=R(a);return!a||e(a)",
+ "}if(!Q(a))throw Error(\"Argument to isShown must be of type Element\");",
+ "if(Q(a,\"OPTION\")||Q(a,\"OPTGROUP\")){var g=Aa(a,function(a){return Q(",
+ "a,\"SELECT\")});return!!g&&Xa(g,!0)}return(g=Ya(a))?!!g.t&&0<g.rect.wid",
+ "th&&0<g.rect.height&&Xa(g.t,b):Q(a,\"INPUT\")&&\"hidden\"==a.type.toLow",
+ "erCase()||Q(a,\"NOSCRIPT\")||\"hidden\"==S(a,\"visibility\")||!c(a)||!b",
+ "&&0==Za(a)||!d(a)||$a(a)==ab?!1:e(a)}var ab=\"hidden\";\nfunction $a(a)",
+ "{function b(a){var b=a;if(\"visible\"==z)if(a==g)b=h;else if(a==h)retur",
+ "n{x:\"visible\",y:\"visible\"};b={x:S(b,\"overflow-x\"),y:S(b,\"overflo",
+ "w-y\")};a==g&&(b.x=\"hidden\"==b.x?\"hidden\":\"auto\",b.y=\"hidden\"==",
+ "b.y?\"hidden\":\"auto\");return b}function c(a){var b=S(a,\"position\")",
+ ";if(\"fixed\"==b)return g;for(a=R(a);a&&a!=g&&(0==S(a,\"display\").last",
+ "IndexOf(\"inline\",0)||\"absolute\"==b&&\"static\"==S(a,\"position\"));",
+ ")a=R(a);return a}var d=T(a),e=B(a),g=e.documentElement,h=e.body,z=S(g,",
+ "\"overflow\");for(a=c(a);a;a=\nc(a)){var s=T(a),e=b(a),G=d.left>=s.left",
+ "+s.width,s=d.top>=s.top+s.height;if(G&&\"hidden\"==e.x||s&&\"hidden\"==",
+ "e.y)return ab;if(G&&\"visible\"!=e.x||s&&\"visible\"!=e.y)return $a(a)=",
+ "=ab?ab:\"scroll\"}return\"none\"}\nfunction T(a){var b=Ya(a);if(b)retur",
+ "n b.rect;if(n(a.getBBox))try{var c=a.getBBox();return new O(c.x,c.y,c.w",
+ "idth,c.height)}catch(d){throw d;}else{if(Q(a,\"HTML\"))return a=((B(a)?",
+ "B(a).parentWindow||B(a).defaultView:window)||window).document,a=\"CSS1C",
+ "ompat\"==a.compatMode?a.documentElement:a.body,a=new A(a.clientWidth,a.",
+ "clientHeight),new O(0,0,a.width,a.height);var b=Ra(a),c=a.offsetWidth,e",
+ "=a.offsetHeight;c||(e||!a.getBoundingClientRect)||(a=a.getBoundingClien",
+ "tRect(),c=a.right-a.left,e=a.bottom-a.top);\nreturn new O(b.x,b.y,c,e)}",
+ "}function Ya(a){var b=Q(a,\"MAP\");if(!b&&!Q(a,\"AREA\"))return null;va",
+ "r c=b?a:Q(a.parentNode,\"MAP\")?a.parentNode:null,d=null,e=null;if(c&&c",
+ ".name&&(d=N.M('/descendant::*[@usemap = \"#'+c.name+'\"]',B(c)))&&(e=T(",
+ "d),!b&&\"default\"!=a.shape.toLowerCase())){var g=bb(a);a=Math.min(Math",
+ ".max(g.left,0),e.width);b=Math.min(Math.max(g.top,0),e.height);c=Math.m",
+ "in(g.width,e.width-a);g=Math.min(g.height,e.height-b);e=new O(a+e.left,",
+ "b+e.top,c,g)}return{t:d,rect:e||new O(0,0,0,0)}}\nfunction bb(a){var b=",
+ "a.shape.toLowerCase();a=a.coords.split(\",\");if(\"rect\"==b&&4==a.leng",
+ "th){var b=a[0],c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if(\"circle\"==b&",
+ "&3==a.length)return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if(\"poly\"==b&",
+ "&2<a.length){for(var b=a[0],c=a[1],d=b,e=c,g=2;g+1<a.length;g+=2)b=Math",
+ ".min(b,a[g]),d=Math.max(d,a[g]),c=Math.min(c,a[g+1]),e=Math.max(e,a[g+1",
+ "]);return new O(b,c,d-b,e-c)}return new O(0,0,0,0)}\nfunction Za(a){var",
+ " b=1,c=S(a,\"opacity\");c&&(b=Number(c));(a=R(a))&&(b*=Za(a));return b}",
+ ";function cb(a,b){this.m=ca.document.documentElement;this.A=null;var c=",
+ "Ba(B(this.m));c&&db(this,c);this.V=a||new eb;this.O=b||new gb}function ",
+ "db(a,b){a.m=b;a.A=Q(b,\"OPTION\")?Aa(b,function(a){return Q(a,\"SELECT",
+ "\")}):null}function eb(){this.ba=0}function gb(){};function hb(a,b,c){t",
+ "his.B=a;this.D=b;this.F=c}hb.prototype.create=function(a){a=B(a).create",
+ "Event(\"HTMLEvents\");a.initEvent(this.B,this.D,this.F);return a};hb.pr",
+ "ototype.toString=f(\"B\");var ib=new hb(\"change\",!0,!1);function U(a,",
+ "b){this.i={};this.e=[];var c=arguments.length;if(1<c){if(c%2)throw Erro",
+ "r(\"Uneven number of arguments\");for(var d=0;d<c;d+=2)this.set(argumen",
+ "ts[d],arguments[d+1])}else if(a){var e;if(a instanceof U)for(d=jb(a),kb",
+ "(a),e=[],c=0;c<a.e.length;c++)e.push(a.i[a.e[c]]);else{var c=[],g=0;for",
+ "(d in a)c[g++]=d;d=c;c=[];g=0;for(e in a)c[g++]=a[e];e=c}for(c=0;c<d.le",
+ "ngth;c++)this.set(d[c],e[c])}}U.prototype.l=0;U.prototype.N=0;function ",
+ "jb(a){kb(a);return a.e.concat()}\nfunction kb(a){if(a.l!=a.e.length){fo",
+ "r(var b=0,c=0;b<a.e.length;){var d=a.e[b];Object.prototype.hasOwnProper",
+ "ty.call(a.i,d)&&(a.e[c++]=d);b++}a.e.length=c}if(a.l!=a.e.length){for(v",
+ "ar e={},c=b=0;b<a.e.length;)d=a.e[b],Object.prototype.hasOwnProperty.ca",
+ "ll(e,d)||(a.e[c++]=d,e[d]=1),b++;a.e.length=c}}U.prototype.get=function",
+ "(a,b){return Object.prototype.hasOwnProperty.call(this.i,a)?this.i[a]:b",
+ "};\nU.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(",
+ "this.i,a)||(this.l++,this.e.push(a),this.N++);this.i[a]=b};var lb={};fu",
+ "nction V(a,b,c){var d=typeof a;(\"object\"==d&&null!=a||\"function\"==d",
+ ")&&(a=a.a);a=new mb(a,b,c);!b||b in lb&&!c||(lb[b]={key:a,shift:!1},c&&",
+ "(lb[c]={key:a,shift:!0}));return a}function mb(a,b,c){this.code=a;this.",
+ "G=b||null;this.ca=c||this.G}V(8);V(9);V(13);var nb=V(16),ob=V(17),pb=V(",
+ "18);V(19);V(20);V(27);V(32,\" \");V(33);V(34);V(35);V(36);V(37);V(38);V",
+ "(39);V(40);V(44);V(45);V(46);V(48,\"0\",\")\");V(49,\"1\",\"!\");V(50,",
+ "\"2\",\"@\");V(51,\"3\",\"#\");V(52,\"4\",\"$\");V(53,\"5\",\"%\");V(54",
+ ",\"6\",\"^\");V(55,\"7\",\"&\");\nV(56,\"8\",\"*\");V(57,\"9\",\"(\");V",
+ "(65,\"a\",\"A\");V(66,\"b\",\"B\");V(67,\"c\",\"C\");V(68,\"d\",\"D\");",
+ "V(69,\"e\",\"E\");V(70,\"f\",\"F\");V(71,\"g\",\"G\");V(72,\"h\",\"H\")",
+ ";V(73,\"i\",\"I\");V(74,\"j\",\"J\");V(75,\"k\",\"K\");V(76,\"l\",\"L\"",
+ ");V(77,\"m\",\"M\");V(78,\"n\",\"N\");V(79,\"o\",\"O\");V(80,\"p\",\"P",
+ "\");V(81,\"q\",\"Q\");V(82,\"r\",\"R\");V(83,\"s\",\"S\");V(84,\"t\",\"",
+ "T\");V(85,\"u\",\"U\");V(86,\"v\",\"V\");V(87,\"w\",\"W\");V(88,\"x\",",
+ "\"X\");V(89,\"y\",\"Y\");V(90,\"z\",\"Z\");var qb=V(u?{b:91,a:91,opera:",
+ "219}:t?{b:224,a:91,opera:17}:{b:0,a:91,opera:null});\nV(u?{b:92,a:92,op",
+ "era:220}:t?{b:224,a:93,opera:17}:{b:0,a:92,opera:null});V(u?{b:93,a:93,",
+ "opera:0}:t?{b:0,a:0,opera:16}:{b:93,a:null,opera:0});V({b:96,a:96,opera",
+ ":48},\"0\");V({b:97,a:97,opera:49},\"1\");V({b:98,a:98,opera:50},\"2\")",
+ ";V({b:99,a:99,opera:51},\"3\");V({b:100,a:100,opera:52},\"4\");V({b:101",
+ ",a:101,opera:53},\"5\");V({b:102,a:102,opera:54},\"6\");V({b:103,a:103,",
+ "opera:55},\"7\");V({b:104,a:104,opera:56},\"8\");V({b:105,a:105,opera:5",
+ "7},\"9\");V({b:106,a:106,opera:w?56:42},\"*\");V({b:107,a:107,opera:w?6",
+ "1:43},\"+\");\nV({b:109,a:109,opera:w?109:45},\"-\");V({b:110,a:110,ope",
+ "ra:w?190:78},\".\");V({b:111,a:111,opera:w?191:47},\"/\");V(144);V(112)",
+ ";V(113);V(114);V(115);V(116);V(117);V(118);V(119);V(120);V(121);V(122);",
+ "V(123);V({b:107,a:187,opera:61},\"=\",\"+\");V(108,\",\");V({b:109,a:18",
+ "9,opera:109},\"-\",\"_\");V(188,\",\",\"<\");V(190,\".\",\">\");V(191,",
+ "\"/\",\"?\");V(192,\"`\",\"~\");V(219,\"[\",\"{\");V(220,\"\\\\\",\"|\"",
+ ");V(221,\"]\",\"}\");V({b:59,a:186,opera:59},\";\",\":\");V(222,\"'\",'",
+ "\"');var W=new U;W.set(1,nb);W.set(2,ob);W.set(4,pb);W.set(8,qb);\n(fun",
+ "ction(a){var b=new U;p(jb(a),function(c){b.set(a.get(c).code,c)});retur",
+ "n b})(W);function X(){cb.call(this)}ba(X,cb);X.J=function(){return X.u?",
+ "X.u:X.u=new X};function rb(a){if(!Xa(a,!0)||!Ta(a)||\"none\"==S(a,\"poi",
+ "nter-events\"))throw new r(12,\"Element is not currently interactable a",
+ "nd may not be manipulated\");var b;(b=!(Q(a,\"TEXTAREA\")||(Q(a,\"INPUT",
+ "\")?q(Ua,a.type.toLowerCase()):Va(a))))||(b=a.readOnly);if(b)throw new ",
+ "r(12,\"Element must be user-editable in order to clear it.\");b=X.J();d",
+ "b(b,a);b=b.A||b.m;var c=Ba(B(b));if(b!=c){if(c&&n(c.blur)&&!Q(c,\"BODY",
+ "\"))try{c.blur()}catch(d){throw d;}n(b.focus)&&b.focus()}a.value&&(a.va",
+ "lue=\"\",b=ib.create(a,void 0),\"isTrusted\"in\nb||(b.isTrusted=!1),a.d",
+ "ispatchEvent(b));Va(a)&&(a.innerHTML=\" \")}var Y=[\"_\"],Z=l;Y[0]in Z|",
+ "|!Z.execScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.sh",
+ "ift());)Y.length||void 0===rb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=rb;; return this",
+ "._.apply(null,arguments);}.apply({navigator:typeof window!=undefined?wi",
+ "ndow.navigator:null,document:typeof window!=undefined?window.document:n",
+ "ull}, arguments);}",
+ NULL
+};
+
+const char* const CLEAR_LOCAL_STORAGE[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.b=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};function p(){if(!m())throw new d",
+ "(13,\"Local storage undefined\");(new n(c.localStorage)).clear()}var q=",
+ "[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(\"var \"+q[0]);for",
+ "(var s;q.length&&(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]={",
+ "}:r[s]=p;; return this._.apply(null,arguments);}.apply({navigator:typeo",
+ "f window!=undefined?window.navigator:null,document:typeof window!=undef",
+ "ined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const CLEAR_SESSION_STORAGE[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.b=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};function p(){var a;if(m())a=new ",
+ "n(c.sessionStorage);else throw new d(13,\"Session storage undefined\");",
+ "a.clear()}var q=[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(\"",
+ "var \"+q[0]);for(var s;q.length&&(s=q.shift());)q.length||void 0===p?r=",
+ "r[s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(null,arguments);}.apply(",
+ "{navigator:typeof window!=undefined?window.navigator:null,document:type",
+ "of window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const CLICK[] = {
+ "function(){return function(){function g(a){return function(){return thi",
+ "s[a]}}function aa(a){return function(){return a}}var ba=this;\nfunction",
+ " ca(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)retu",
+ "rn\"array\";if(a instanceof Object)return b;var c=Object.prototype.toSt",
+ "ring.call(a);if(\"[object Window]\"==c)return\"object\";if(\"[object Ar",
+ "ray]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.splice&",
+ "&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(",
+ "\"splice\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!",
+ "=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.proper",
+ "tyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse ",
+ "if(\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";retur",
+ "n b}function k(a){return\"string\"==typeof a}function l(a){return\"func",
+ "tion\"==ca(a)}function da(a,b){function c(){}c.prototype=b.prototype;a.",
+ "ja=b.prototype;a.prototype=new c};var ea=window;function fa(a){return S",
+ "tring(a).replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};",
+ "var ga=Array.prototype;function m(a,b){for(var c=a.length,d=k(a)?a.spli",
+ "t(\"\"):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function ha(a,b){",
+ "if(a.reduce)return a.reduce(b,\"\");var c=\"\";m(a,function(d,e){c=b.ca",
+ "ll(void 0,c,d,e,a)});return c}function ia(a,b){for(var c=a.length,d=k(a",
+ ")?a.split(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return",
+ "!0;return!1}\nfunction ja(a,b){var c;a:if(k(a))c=k(b)&&1==b.length?a.in",
+ "dexOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c in a&&a[c]===b)break a;c",
+ "=-1}return 0<=c}function ka(a,b,c){return 2>=arguments.length?ga.slice.",
+ "call(a,b):ga.slice.call(a,b,c)};var la={aliceblue:\"#f0f8ff\",antiquewh",
+ "ite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",azure:\"#f0ffff",
+ "\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",blanchedalmon",
+ "d:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brown:\"#a52a2a\"",
+ ",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"#7fff00\",cho",
+ "colate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6495ed\",cornsil",
+ "k:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblue:\"#00008b\"",
+ ",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:\"#a9a9a9\",da",
+ "rkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#bdb76b\",darkma",
+ "genta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:\"#ff8c00\",dar",
+ "korchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9967a\",darkseag",
+ "reen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray:\"#2f4f4f\",da",
+ "rkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkviolet:\"#9400d3",
+ "\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:\"#696969\",dim",
+ "grey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22222\",floralwhi",
+ "te:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff\",gainsboro:\"",
+ "#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",goldenrod:\"#daa520",
+ "\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adff2f\",grey:\"#8",
+ "08080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianred:\"#cd5c5c\",",
+ "indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",lavender:\"#e6e6",
+ "fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lemonchiffon:\"#ff",
+ "facd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",lightcyan:\"#e0ffff",
+ "\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3\",lightgreen:\"",
+ "#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",lightsalmon:\"#ff",
+ "a07a\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#87cefa\",lightslateg",
+ "ray:\"#778899\",lightslategrey:\"#778899\",lightsteelblue:\"#b0c4de\",l",
+ "ightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32cd32\",linen:\"#",
+ "faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediumaquamarine:\"#66c",
+ "daa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",mediumpurple:\"#9",
+ "370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7b68ee\",mediumsp",
+ "ringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediumvioletred:\"#c7",
+ "1585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",mistyrose:\"#ffe4",
+ "e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",navy:\"#000080\",ol",
+ "dlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23\",orange:\"#ffa",
+ "500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegoldenrod:\"#eee8aa",
+ "\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palevioletred:\"#db7",
+ "093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:\"#cd853f\",pin",
+ "k:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",purple:\"#800080",
+ "\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#4169e1\",saddlebr",
+ "own:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\",seagreen:\"#2",
+ "e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:\"#c0c0c0\",sk",
+ "yblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#708090\",slategrey",
+ ":\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",steelblue:\"#4682",
+ "b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\",tomato:\"#ff6",
+ "347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f5deb3\",white:",
+ "\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yellowgreen:\"#9a",
+ "cd32\"};var ma=\"background-color border-top-color border-right-color b",
+ "order-bottom-color border-left-color color outline-color\".split(\" \")",
+ ",na=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function oa(a){if(!pa.te",
+ "st(a))throw Error(\"'\"+a+\"' is not a valid hex color\");4==a.length&&",
+ "(a=a.replace(na,\"#$1$1$2$2$3$3\"));return a.toLowerCase()}var pa=/^#(?",
+ ":[0-9a-f]{3}){1,2}$/i,qa=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(",
+ "\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i;\nfunction ra(a){var b=a.match(qa);i",
+ "f(b){a=Number(b[1]);var c=Number(b[2]),d=Number(b[3]),b=Number(b[4]);if",
+ "(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}r",
+ "eturn[]}var sa=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s",
+ "?(0|[1-9]\\d{0,2})\\)$/i;function ta(a){var b=a.match(sa);if(b){a=Numbe",
+ "r(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c",
+ "&&0<=b&&255>=b)return[a,c,b]}return[]};function n(a,b){this.code=a;this",
+ ".state=ua[a]||va;this.message=b||\"\";var c=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";t",
+ "his.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||",
+ "\"\"}da(n,Error);\nvar va=\"unknown error\",ua={15:\"element not select",
+ "able\",11:\"element not visible\",31:\"ime engine activation failed\",3",
+ "0:\"ime not available\",24:\"invalid cookie domain\",29:\"invalid eleme",
+ "nt coordinates\",12:\"invalid element state\",32:\"invalid selector\",5",
+ "1:\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",",
+ "405:\"unsupported operation\",34:\"move target out of bounds\",27:\"no ",
+ "such alert\",7:\"no such element\",8:\"no such frame\",23:\"no such win",
+ "dow\",28:\"script timeout\",33:\"session not created\",10:\"stale eleme",
+ "nt reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie",
+ "\",26:\"unexpected alert open\"};ua[13]=va;ua[9]=\"unknown command\";n.",
+ "prototype.toString=function(){return this.name+\": \"+this.message};var",
+ " wa,xa,za,Aa=ba.navigator;za=Aa&&Aa.platform||\"\";wa=-1!=za.indexOf(\"",
+ "Mac\");xa=-1!=za.indexOf(\"Win\");var q=-1!=za.indexOf(\"Linux\");var B",
+ "a;function r(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}r.prototy",
+ "pe.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"};r.protot",
+ "ype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);r",
+ "eturn this};r.prototype.floor=function(){this.x=Math.floor(this.x);this",
+ ".y=Math.floor(this.y);return this};r.prototype.round=function(){this.x=",
+ "Math.round(this.x);this.y=Math.round(this.y);return this};function s(a,",
+ "b){this.width=a;this.height=b}s.prototype.toString=function(){return\"(",
+ "\"+this.width+\" x \"+this.height+\")\"};s.prototype.ceil=function(){th",
+ "is.width=Math.ceil(this.width);this.height=Math.ceil(this.height);retur",
+ "n this};s.prototype.floor=function(){this.width=Math.floor(this.width);",
+ "this.height=Math.floor(this.height);return this};s.prototype.round=func",
+ "tion(){this.width=Math.round(this.width);this.height=Math.round(this.he",
+ "ight);return this};var Ca=3;function Da(a){for(;a&&1!=a.nodeType;)a=a.p",
+ "reviousSibling;return a}function Ea(a,b){if(a.contains&&1==b.nodeType)r",
+ "eturn a==b||a.contains(b);if(\"undefined\"!=typeof a.compareDocumentPos",
+ "ition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=",
+ "b;)b=b.parentNode;return b==a}\nfunction Fa(a,b){if(a==b)return 0;if(a.",
+ "compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(",
+ "\"sourceIndex\"in a||a.parentNode&&\"sourceIndex\"in a.parentNode){var ",
+ "c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIn",
+ "dex;var e=a.parentNode,f=b.parentNode;return e==f?Ga(a,b):!c&&Ea(e,b)?-",
+ "1*Ha(a,b):!d&&Ea(f,a)?Ha(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sour",
+ "ceIndex:f.sourceIndex)}d=t(a);c=d.createRange();c.selectNode(a);c.colla",
+ "pse(!0);d=d.createRange();d.selectNode(b);\nd.collapse(!0);return c.com",
+ "pareBoundaryPoints(ba.Range.START_TO_END,d)}function Ha(a,b){var c=a.pa",
+ "rentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;r",
+ "eturn Ga(d,a)}function Ga(a,b){for(var c=b;c=c.previousSibling;)if(c==a",
+ ")return-1;return 1}function t(a){return 9==a.nodeType?a:a.ownerDocument",
+ "||a.document}function Ia(a,b,c){c||(a=a.parentNode);for(c=0;a;){if(b(a)",
+ ")return a;a=a.parentNode;c++}return null}function v(a){this.G=a||ba.doc",
+ "ument||document}\nv.prototype.i=function(a){return k(a)?this.G.getEleme",
+ "ntById(a):a};function Ja(a){var b=a.G;a=b.body;b=b.parentWindow||b.defa",
+ "ultView;return new r(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrol",
+ "lTop)}v.prototype.contains=Ea;function w(a){var b=null,c=a.nodeType;1==",
+ "c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void 0==b||nul",
+ "l==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==c){a=9==c?a.documentEl",
+ "ement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.",
+ "nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].nextSiblin",
+ "g););}}else b=a.nodeValue;return\"\"+b}\nfunction x(a,b,c){if(null===b)",
+ "return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}return null=",
+ "=c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function Ka(a,b,c,d,e){re",
+ "turn La.call(null,a,b,k(c)?c:null,k(d)?d:null,e||new y)}\nfunction La(a",
+ ",b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b.getElementsByName(d)",
+ ",m(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassName&&d&",
+ "&\"class\"==c?(b=b.getElementsByClassName(d),m(b,function(b){b.classNam",
+ "e==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagName&&(b=b.getElement",
+ "sByTagName(a.getName()),m(b,function(a){x(a,c,d)&&e.add(a)}));return e}",
+ "function Ma(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)x(b,c,d)&&a",
+ ".matches(b)&&e.add(b);return e}\nfunction Na(a,b,c,d,e){for(b=b.firstCh",
+ "ild;b;b=b.nextSibling)x(b,c,d)&&a.matches(b)&&e.add(b),Na(a,b,c,d,e)};f",
+ "unction y(){this.h=this.g=null;this.q=0}function Oa(a){this.J=a;this.ne",
+ "xt=this.A=null}y.prototype.unshift=function(a){a=new Oa(a);a.next=this.",
+ "g;this.h?this.g.A=a:this.g=this.h=a;this.g=a;this.q++};y.prototype.add=",
+ "function(a){a=new Oa(a);a.A=this.h;this.g?this.h.next=a:this.g=this.h=a",
+ ";this.h=a;this.q++};function Pa(a){return(a=a.g)?a.J:null}function Qa(a",
+ "){return(a=Pa(a))?w(a):\"\"}function z(a,b){this.ea=a;this.F=(this.K=b)",
+ "?a.h:a.g;this.Q=null}\nz.prototype.next=function(){var a=this.F;if(null",
+ "==a)return null;var b=this.Q=a;this.F=this.K?a.A:a.next;return b.J};fun",
+ "ction A(a,b){var c=a.evaluate(b);return c instanceof y?+Qa(c):+c}functi",
+ "on B(a,b){var c=a.evaluate(b);return c instanceof y?Qa(c):\"\"+c}functi",
+ "on C(a,b){var c=a.evaluate(b);return c instanceof y?!!c.q:!!c};function",
+ " D(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var f;if(b instanceof y&&",
+ "c instanceof y){e=new z(b,!1);for(d=e.next();d;d=e.next())for(b=new z(c",
+ ",!1),f=b.next();f;f=b.next())if(a(w(d),w(f)))return!0;return!1}if(b ins",
+ "tanceof y||c instanceof y){b instanceof y?e=b:(e=c,c=b);e=new z(e,!1);b",
+ "=typeof c;for(d=e.next();d;d=e.next()){switch(b){case \"number\":d=+w(d",
+ ");break;case \"boolean\":d=!!w(d);break;case \"string\":d=w(d);break;de",
+ "fault:throw Error(\"Illegal primitive type for comparison.\");}if(a(d,c",
+ "))return!0}return!1}return e?\n\"boolean\"==typeof b||\"boolean\"==type",
+ "of c?a(!!b,!!c):\"number\"==typeof b||\"number\"==typeof c?a(+b,+c):a(b",
+ ",c):a(+b,+c)}function Ra(a,b,c,d){this.R=a;this.ha=b;this.N=c;this.o=d}",
+ "Ra.prototype.toString=g(\"R\");var Sa={};function F(a,b,c,d){if(a in Sa",
+ ")throw Error(\"Binary operator already created: \"+a);a=new Ra(a,b,c,d)",
+ ";Sa[a.toString()]=a}F(\"div\",6,1,function(a,b,c){return A(a,c)/A(b,c)}",
+ ");F(\"mod\",6,1,function(a,b,c){return A(a,c)%A(b,c)});F(\"*\",6,1,func",
+ "tion(a,b,c){return A(a,c)*A(b,c)});\nF(\"+\",5,1,function(a,b,c){return",
+ " A(a,c)+A(b,c)});F(\"-\",5,1,function(a,b,c){return A(a,c)-A(b,c)});F(",
+ "\"<\",4,2,function(a,b,c){return D(function(a,b){return a<b},a,b,c)});F",
+ "(\">\",4,2,function(a,b,c){return D(function(a,b){return a>b},a,b,c)});",
+ "F(\"<=\",4,2,function(a,b,c){return D(function(a,b){return a<=b},a,b,c)",
+ "});F(\">=\",4,2,function(a,b,c){return D(function(a,b){return a>=b},a,b",
+ ",c)});F(\"=\",3,2,function(a,b,c){return D(function(a,b){return a==b},a",
+ ",b,c,!0)});\nF(\"!=\",3,2,function(a,b,c){return D(function(a,b){return",
+ " a!=b},a,b,c,!0)});F(\"and\",2,2,function(a,b,c){return C(a,c)&&C(b,c)}",
+ ");F(\"or\",1,2,function(a,b,c){return C(a,c)||C(b,c)});function Ta(a,b,",
+ "c,d,e,f,h,u,p){this.w=a;this.N=b;this.ca=c;this.ba=d;this.aa=e;this.o=f",
+ ";this.$=h;this.Z=void 0!==u?u:h;this.fa=!!p}Ta.prototype.toString=g(\"w",
+ "\");var Ua={};function G(a,b,c,d,e,f,h,u){if(a in Ua)throw Error(\"Func",
+ "tion already created: \"+a+\".\");Ua[a]=new Ta(a,b,c,d,!1,e,f,h,u)}G(\"",
+ "boolean\",2,!1,!1,function(a,b){return C(b,a)},1);G(\"ceiling\",1,!1,!1",
+ ",function(a,b){return Math.ceil(A(b,a))},1);\nG(\"concat\",3,!1,!1,func",
+ "tion(a,b){var c=ka(arguments,1);return ha(c,function(b,c){return b+B(c,",
+ "a)})},2,null);G(\"contains\",2,!1,!1,function(a,b,c){b=B(b,a);a=B(c,a);",
+ "return-1!=b.indexOf(a)},2);G(\"count\",1,!1,!1,function(a,b){return b.e",
+ "valuate(a).q},1,1,!0);G(\"false\",2,!1,!1,aa(!1),0);G(\"floor\",1,!1,!1",
+ ",function(a,b){return Math.floor(A(b,a))},1);\nG(\"id\",4,!1,!1,functio",
+ "n(a,b){var c=a.k,d=9==c.nodeType?c:c.ownerDocument,c=B(b,a).split(/\\s+",
+ "/),e=[];m(c,function(a){(a=d.getElementById(a))&&!ja(e,a)&&e.push(a)});",
+ "e.sort(Fa);var f=new y;m(e,function(a){f.add(a)});return f},1);G(\"lang",
+ "\",2,!1,!1,aa(!1),1);G(\"last\",1,!0,!1,function(a){if(1!=arguments.len",
+ "gth)throw Error(\"Function last expects ()\");return a.h},0);G(\"local-",
+ "name\",3,!1,!0,function(a,b){var c=b?Pa(b.evaluate(a)):a.k;return c?c.n",
+ "odeName.toLowerCase():\"\"},0,1,!0);\nG(\"name\",3,!1,!0,function(a,b){",
+ "var c=b?Pa(b.evaluate(a)):a.k;return c?c.nodeName.toLowerCase():\"\"},0",
+ ",1,!0);G(\"namespace-uri\",3,!0,!1,aa(\"\"),0,1,!0);G(\"normalize-space",
+ "\",3,!1,!0,function(a,b){return(b?B(b,a):w(a.k)).replace(/[\\s\\xa0]+/g",
+ ",\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);G(\"not\",2,!1,!1,function(a",
+ ",b){return!C(b,a)},1);G(\"number\",1,!1,!0,function(a,b){return b?A(b,a",
+ "):+w(a.k)},0,1);G(\"position\",1,!0,!1,function(a){return a.ga},0);G(\"",
+ "round\",1,!1,!1,function(a,b){return Math.round(A(b,a))},1);\nG(\"start",
+ "s-with\",2,!1,!1,function(a,b,c){b=B(b,a);a=B(c,a);return 0==b.lastInde",
+ "xOf(a,0)},2);G(\"string\",3,!1,!0,function(a,b){return b?B(b,a):w(a.k)}",
+ ",0,1);G(\"string-length\",1,!1,!0,function(a,b){return(b?B(b,a):w(a.k))",
+ ".length},0,1);\nG(\"substring\",3,!1,!1,function(a,b,c,d){c=A(c,a);if(i",
+ "sNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?A(d,a):Infinity;if(is",
+ "NaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,0);",
+ "a=B(b,a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.",
+ "substring(e,c+b)},2,3);G(\"substring-after\",3,!1,!1,function(a,b,c){b=",
+ "B(b,a);a=B(c,a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)",
+ "},2);\nG(\"substring-before\",3,!1,!1,function(a,b,c){b=B(b,a);a=B(c,a)",
+ ";a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);G(\"sum\",1,!1,!1",
+ ",function(a,b){var c;c=b.evaluate(a);c=new z(c,!1);for(var d=0,e=c.next",
+ "();e;e=c.next())d+=+w(e);return d},1,1,!0);G(\"translate\",3,!1,!1,func",
+ "tion(a,b,c,d){b=B(b,a);c=B(c,a);var e=B(d,a);a=[];for(d=0;d<c.length;d+",
+ "+){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c=\"\";for(d=0;d<b.leng",
+ "th;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);G(\"true\",2,!1,!1,a",
+ "a(!0),0);function Va(a,b,c,d){this.w=a;this.W=b;this.K=c;this.ka=d}Va.p",
+ "rototype.toString=g(\"w\");var Wa={};function H(a,b,c,d){if(a in Wa)thr",
+ "ow Error(\"Axis already created: \"+a);Wa[a]=new Va(a,b,c,!!d)}H(\"ance",
+ "stor\",function(a,b){for(var c=new y,d=b;d=d.parentNode;)a.matches(d)&&",
+ "c.unshift(d);return c},!0);H(\"ancestor-or-self\",function(a,b){var c=n",
+ "ew y,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},",
+ "!0);\nH(\"attribute\",function(a,b){var c=new y,d=a.getName(),e=b.attri",
+ "butes;if(e)if(\"*\"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e.getNa",
+ "medItem(d))&&c.add(f);return c},!1);H(\"child\",function(a,b,c,d,e){ret",
+ "urn Ma.call(null,a,b,k(c)?c:null,k(d)?d:null,e||new y)},!1,!0);H(\"desc",
+ "endant\",Ka,!1,!0);H(\"descendant-or-self\",function(a,b,c,d){var e=new",
+ " y;x(b,c,d)&&a.matches(b)&&e.add(b);return Ka(a,b,c,d,e)},!1,!0);\nH(\"",
+ "following\",function(a,b,c,d){var e=new y;do for(var f=b;f=f.nextSiblin",
+ "g;)x(f,c,d)&&a.matches(f)&&e.add(f),e=Ka(a,f,c,d,e);while(b=b.parentNod",
+ "e);return e},!1,!0);H(\"following-sibling\",function(a,b){for(var c=new",
+ " y,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);H(\"namesp",
+ "ace\",function(){return new y},!1);H(\"parent\",function(a,b){var c=new",
+ " y;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerEleme",
+ "nt),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nH(\"pre",
+ "ceding\",function(a,b,c,d){var e=new y,f=[];do f.unshift(b);while(b=b.p",
+ "arentNode);for(var h=1,u=f.length;h<u;h++){var p=[];for(b=f[h];b=b.prev",
+ "iousSibling;)p.unshift(b);for(var E=0,ya=p.length;E<ya;E++)b=p[E],x(b,c",
+ ",d)&&a.matches(b)&&e.add(b),e=Ka(a,b,c,d,e)}return e},!0,!0);H(\"preced",
+ "ing-sibling\",function(a,b){for(var c=new y,d=b;d=d.previousSibling;)a.",
+ "matches(d)&&c.unshift(d);return c},!0);H(\"self\",function(a,b){var c=n",
+ "ew y;a.matches(b)&&c.add(b);return c},!1);var I={};I.L=function(){var a",
+ "={la:\"http://www.w3.org/2000/svg\"};return function(b){return a[b]||nu",
+ "ll}}();I.o=function(a,b,c){var d=t(a);try{var e=d.createNSResolver?d.cr",
+ "eateNSResolver(d.documentElement):I.L;return d.evaluate(b,a,e,c,null)}c",
+ "atch(f){throw new n(32,\"Unable to locate an element with the xpath exp",
+ "ression \"+b+\" because of the following error:\\n\"+f);}};\nI.D=functi",
+ "on(a,b){if(!a||1!=a.nodeType)throw new n(32,'The result of the xpath ex",
+ "pression \"'+b+'\" is: '+a+\". It should be an element.\");};I.S=functi",
+ "on(a,b){var c=function(){var c=I.o(b,a,9);return c?c.singleNodeValue||n",
+ "ull:b.selectSingleNode?(c=t(b),c.setProperty&&c.setProperty(\"Selection",
+ "Language\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||I.D(c,a)",
+ ";return c};\nI.Y=function(a,b){var c=function(){var c=I.o(b,a,7);if(c){",
+ "for(var e=c.snapshotLength,f=[],h=0;h<e;++h)f.push(c.snapshotItem(h));r",
+ "eturn f}return b.selectNodes?(c=t(b),c.setProperty&&c.setProperty(\"Sel",
+ "ectionLanguage\",\"XPath\"),b.selectNodes(a)):[]}();m(c,function(b){I.D",
+ "(b,a)});return c};function J(a,b,c,d){this.top=a;this.right=b;this.bott",
+ "om=c;this.left=d}J.prototype.toString=function(){return\"(\"+this.top+",
+ "\"t, \"+this.right+\"r, \"+this.bottom+\"b, \"+this.left+\"l)\"};J.prot",
+ "otype.contains=function(a){return this&&a?a instanceof J?a.left>=this.l",
+ "eft&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=t",
+ "his.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};\nJ.prot",
+ "otype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil",
+ "(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(thi",
+ "s.left);return this};J.prototype.floor=function(){this.top=Math.floor(t",
+ "his.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.",
+ "bottom);this.left=Math.floor(this.left);return this};\nJ.prototype.roun",
+ "d=function(){this.top=Math.round(this.top);this.right=Math.round(this.r",
+ "ight);this.bottom=Math.round(this.bottom);this.left=Math.round(this.lef",
+ "t);return this};function K(a,b,c,d){this.left=a;this.top=b;this.width=c",
+ ";this.height=d}K.prototype.toString=function(){return\"(\"+this.left+\"",
+ ", \"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};K.prototy",
+ "pe.contains=function(a){return a instanceof K?this.left<=a.left&&this.l",
+ "eft+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=",
+ "a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top",
+ "&&a.y<=this.top+this.height};\nK.prototype.ceil=function(){this.left=Ma",
+ "th.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(th",
+ "is.width);this.height=Math.ceil(this.height);return this};K.prototype.f",
+ "loor=function(){this.left=Math.floor(this.left);this.top=Math.floor(thi",
+ "s.top);this.width=Math.floor(this.width);this.height=Math.floor(this.he",
+ "ight);return this};\nK.prototype.round=function(){this.left=Math.round(",
+ "this.left);this.top=Math.round(this.top);this.width=Math.round(this.wid",
+ "th);this.height=Math.round(this.height);return this};function L(a,b){va",
+ "r c=t(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.def",
+ "aultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"",
+ "\"}function M(a,b){return L(a,b)||(a.currentStyle?a.currentStyle[b]:nul",
+ "l)||a.style&&a.style[b]}function Xa(a){var b;try{b=a.getBoundingClientR",
+ "ect()}catch(c){return{left:0,top:0,right:0,bottom:0}}return b}\nfunctio",
+ "n Ya(a){var b=t(a),c=M(a,\"position\"),d=\"fixed\"==c||\"absolute\"==c;",
+ "for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=M(a,\"position\"),d=d&&",
+ "\"static\"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.cli",
+ "entWidth||a.scrollHeight>a.clientHeight||\"fixed\"==c||\"absolute\"==c|",
+ "|\"relative\"==c))return a;return null}\nfunction Za(a){var b=t(a),c=M(",
+ "a,\"position\"),d=new r(0,0),e=(b?t(b):document).documentElement;if(a==",
+ "e)return d;if(a.getBoundingClientRect)a=Xa(a),b=Ja(b?new v(t(b)):Ba||(B",
+ "a=new v)),d.x=a.left+b.x,d.y=a.top+b.y;else if(b.getBoxObjectFor)a=b.ge",
+ "tBoxObjectFor(a),b=b.getBoxObjectFor(e),d.x=a.screenX-b.screenX,d.y=a.s",
+ "creenY-b.screenY;else{var f=a;do{d.x+=f.offsetLeft;d.y+=f.offsetTop;f!=",
+ "a&&(d.x+=f.clientLeft||0,d.y+=f.clientTop||0);if(\"fixed\"==M(f,\"posit",
+ "ion\")){d.x+=b.body.scrollLeft;d.y+=b.body.scrollTop;\nbreak}f=f.offset",
+ "Parent}while(f&&f!=a);\"absolute\"==c&&(d.y-=b.body.offsetTop);for(f=a;",
+ "(f=Ya(f))&&f!=b.body&&f!=e;)d.x-=f.scrollLeft,d.y-=f.scrollTop}return d",
+ "}function $a(a){if(1==a.nodeType){if(a.getBoundingClientRect)a=Xa(a),a=",
+ "new r(a.left,a.top);else{var b=Ja(a?new v(t(a)):Ba||(Ba=new v));a=Za(a)",
+ ";a=new r(a.x-b.x,a.y-b.y)}return a}var b=l(a.H),c=a;a.targetTouches?c=a",
+ ".targetTouches[0]:b&&a.H().targetTouches&&(c=a.H().targetTouches[0]);re",
+ "turn new r(c.clientX,c.clientY)}\nfunction ab(a){var b=a.offsetWidth,c=",
+ "a.offsetHeight;return void 0!==b&&(b||c)||!a.getBoundingClientRect?new ",
+ "s(b,c):(a=Xa(a),new s(a.right-a.left,a.bottom-a.top))};function bb(a){v",
+ "ar b;a:{a=t(a);try{b=a&&a.activeElement;break a}catch(c){}b=null}return",
+ " b}function N(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase",
+ "()==b)}function cb(a){return db(a,!0)&&eb(a)&&\"none\"!=O(a,\"pointer-e",
+ "vents\")}function fb(a){return N(a,\"OPTION\")?!0:N(a,\"INPUT\")?(a=a.t",
+ "ype.toLowerCase(),\"checkbox\"==a||\"radio\"==a):!1}\nfunction gb(a){if",
+ "(!fb(a))throw new n(15,\"Element is not selectable\");var b=\"selected",
+ "\",c=a.type&&a.type.toLowerCase();if(\"checkbox\"==c||\"radio\"==c)b=\"",
+ "checked\";return!!a[b]}var hb=\"BUTTON INPUT OPTGROUP OPTION SELECT TEX",
+ "TAREA\".split(\" \");\nfunction eb(a){var b=a.tagName.toUpperCase();ret",
+ "urn ja(hb,b)?a.disabled?!1:a.parentNode&&1==a.parentNode.nodeType&&\"OP",
+ "TGROUP\"==b||\"OPTION\"==b?eb(a.parentNode):!Ia(a,function(a){var b=a.p",
+ "arentNode;if(b&&N(b,\"FIELDSET\")&&b.disabled){if(!N(a,\"LEGEND\"))retu",
+ "rn!0;for(;a=void 0!=a.previousElementSibling?a.previousElementSibling:D",
+ "a(a.previousSibling);)if(N(a,\"LEGEND\"))return!0}return!1},!0):!0}\nfu",
+ "nction P(a){for(a=a.parentNode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.n",
+ "odeType;)a=a.parentNode;return N(a)?a:null}\nfunction O(a,b){var c=fa(b",
+ ");if(\"float\"==c||\"cssFloat\"==c||\"styleFloat\"==c)c=\"cssFloat\";c=",
+ "L(a,c)||ib(a,c);if(null===c)c=null;else if(ja(ma,b)&&(pa.test(\"#\"==c.",
+ "charAt(0)?c:\"#\"+c)||ta(c).length||la&&la[c.toLowerCase()]||ra(c).leng",
+ "th)){var d=ra(c);if(!d.length){a:if(d=ta(c),!d.length){d=(d=la[c.toLowe",
+ "rCase()])?d:\"#\"==c.charAt(0)?c:\"#\"+c;if(pa.test(d)&&(d=oa(d),d=oa(d",
+ "),d=[parseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.s",
+ "ubstr(5,2),16)],d.length))break a;d=[]}3==d.length&&d.push(1)}c=4!=\nd.",
+ "length?c:\"rgba(\"+d.join(\", \")+\")\"}return c}function ib(a,b){var c",
+ "=a.currentStyle||a.style,d=c[b];void 0===d&&l(c.getPropertyValue)&&(d=c",
+ ".getPropertyValue(b));return\"inherit\"!=d?void 0!==d?d:null:(c=P(a))?i",
+ "b(c,b):null}\nfunction db(a,b){function c(a){if(\"none\"==O(a,\"display",
+ "\"))return!1;a=P(a);return!a||c(a)}function d(a){var b=Q(a);return 0<b.",
+ "height&&0<b.width?!0:N(a,\"PATH\")&&(0<b.height||0<b.width)?(a=O(a,\"st",
+ "roke-width\"),!!a&&0<parseInt(a,10)):\"hidden\"!=O(a,\"overflow\")&&ia(",
+ "a.childNodes,function(a){return a.nodeType==Ca||N(a)&&d(a)})}function e",
+ "(a){var b=O(a,\"-o-transform\")||O(a,\"-webkit-transform\")||O(a,\"-ms-",
+ "transform\")||O(a,\"-moz-transform\")||O(a,\"transform\");if(b&&\"none",
+ "\"!==b)return b=$a(a),a=Q(a),0<=b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=",
+ "P(a);return!a||e(a)}if(!N(a))throw Error(\"Argument to isShown must be ",
+ "of type Element\");if(N(a,\"OPTION\")||N(a,\"OPTGROUP\")){var f=Ia(a,fu",
+ "nction(a){return N(a,\"SELECT\")});return!!f&&db(f,!0)}return(f=jb(a))?",
+ "!!f.I&&0<f.rect.width&&0<f.rect.height&&db(f.I,b):N(a,\"INPUT\")&&\"hid",
+ "den\"==a.type.toLowerCase()||N(a,\"NOSCRIPT\")||\"hidden\"==O(a,\"visib",
+ "ility\")||!c(a)||!b&&0==kb(a)||!d(a)||lb(a)==mb?!1:e(a)}var mb=\"hidden",
+ "\";\nfunction lb(a){function b(a){var b=a;if(\"visible\"==u)if(a==f)b=h",
+ ";else if(a==h)return{x:\"visible\",y:\"visible\"};b={x:O(b,\"overflow-x",
+ "\"),y:O(b,\"overflow-y\")};a==f&&(b.x=\"hidden\"==b.x?\"hidden\":\"auto",
+ "\",b.y=\"hidden\"==b.y?\"hidden\":\"auto\");return b}function c(a){var ",
+ "b=O(a,\"position\");if(\"fixed\"==b)return f;for(a=P(a);a&&a!=f&&(0==O(",
+ "a,\"display\").lastIndexOf(\"inline\",0)||\"absolute\"==b&&\"static\"==",
+ "O(a,\"position\"));)a=P(a);return a}var d=Q(a),e=t(a),f=e.documentEleme",
+ "nt,h=e.body,u=O(f,\"overflow\");for(a=c(a);a;a=\nc(a)){var p=Q(a),e=b(a",
+ "),E=d.left>=p.left+p.width,p=d.top>=p.top+p.height;if(E&&\"hidden\"==e.",
+ "x||p&&\"hidden\"==e.y)return mb;if(E&&\"visible\"!=e.x||p&&\"visible\"!",
+ "=e.y)return lb(a)==mb?mb:\"scroll\"}return\"none\"}\nfunction Q(a){var ",
+ "b=jb(a);if(b)return b.rect;if(l(a.getBBox))try{var c=a.getBBox();return",
+ " new K(c.x,c.y,c.width,c.height)}catch(d){throw d;}else{if(N(a,\"HTML\"",
+ "))return a=((t(a)?t(a).parentWindow||t(a).defaultView:window)||window).",
+ "document,a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body,a=new ",
+ "s(a.clientWidth,a.clientHeight),new K(0,0,a.width,a.height);var b=$a(a)",
+ ",c=a.offsetWidth,e=a.offsetHeight;c||(e||!a.getBoundingClientRect)||(a=",
+ "a.getBoundingClientRect(),c=a.right-a.left,e=a.bottom-a.top);\nreturn n",
+ "ew K(b.x,b.y,c,e)}}function jb(a){var b=N(a,\"MAP\");if(!b&&!N(a,\"AREA",
+ "\"))return null;var c=b?a:N(a.parentNode,\"MAP\")?a.parentNode:null,d=n",
+ "ull,e=null;if(c&&c.name&&(d=I.S('/descendant::*[@usemap = \"#'+c.name+'",
+ "\"]',t(c)))&&(e=Q(d),!b&&\"default\"!=a.shape.toLowerCase())){var f=nb(",
+ "a);a=Math.min(Math.max(f.left,0),e.width);b=Math.min(Math.max(f.top,0),",
+ "e.height);c=Math.min(f.width,e.width-a);f=Math.min(f.height,e.height-b)",
+ ";e=new K(a+e.left,b+e.top,c,f)}return{I:d,rect:e||new K(0,0,0,0)}}\nfun",
+ "ction nb(a){var b=a.shape.toLowerCase();a=a.coords.split(\",\");if(\"re",
+ "ct\"==b&&4==a.length){var b=a[0],c=a[1];return new K(b,c,a[2]-b,a[3]-c)",
+ "}if(\"circle\"==b&&3==a.length)return b=a[2],new K(a[0]-b,a[1]-b,2*b,2*",
+ "b);if(\"poly\"==b&&2<a.length){for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.",
+ "length;f+=2)b=Math.min(b,a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),",
+ "e=Math.max(e,a[f+1]);return new K(b,c,d-b,e-c)}return new K(0,0,0,0)}\n",
+ "function kb(a){var b=1,c=O(a,\"opacity\");c&&(b=Number(c));(a=P(a))&&(b",
+ "*=kb(a));return b};function ob(a,b){this.c=ea.document.documentElement;",
+ "this.f=null;var c=bb(this.c);c&&pb(this,c);this.r=a||new qb;this.P=b||n",
+ "ew rb}ob.prototype.i=g(\"c\");function pb(a,b){a.c=b;a.f=N(b,\"OPTION\"",
+ ")?Ia(b,function(a){return N(a,\"SELECT\")}):null}\nob.prototype.p=funct",
+ "ion(a,b,c,d,e,f,h){if(!f&&!cb(this.c))return!1;if(d&&sb!=a&&tb!=a)throw",
+ " new n(12,\"Event type does not allow related target: \"+a);b={clientX:",
+ "b.x,clientY:b.y,button:c,altKey:0!=(this.r.s&4),ctrlKey:0!=(this.r.s&2)",
+ ",shiftKey:0!=(this.r.s&1),metaKey:0!=(this.r.s&8),wheelDelta:e||0,relat",
+ "edTarget:d||null};h=h||1;c=this.c;if(a!=R&&a!=ub&&h in vb)c=vb[h];else ",
+ "if(this.f)a:switch(a){case R:case wb:c=this.f.multiple?this.c:this.f;br",
+ "eak a;default:c=this.f.multiple?this.c:null}return c?this.P.p(c,\na,b):",
+ "!0};function qb(){this.s=0}var vb={};function rb(){}rb.prototype.p=func",
+ "tion(a,b,c){return xb(a,b,c)};function S(a,b,c){this.t=a;this.B=b;this.",
+ "C=c}S.prototype.create=function(a){a=t(a).createEvent(\"HTMLEvents\");a",
+ ".initEvent(this.t,this.B,this.C);return a};S.prototype.toString=g(\"t\"",
+ ");function T(a,b,c){S.call(this,a,b,c)}da(T,S);\nT.prototype.create=fun",
+ "ction(a,b){if(this==yb)throw new n(9,\"Browser does not support a mouse",
+ " pixel scroll event.\");var c=t(a),d=c?c.parentWindow||c.defaultView:wi",
+ "ndow,c=c.createEvent(\"MouseEvents\");this==zb&&(c.wheelDelta=b.wheelDe",
+ "lta);c.initMouseEvent(this.t,this.B,this.C,d,1,0,0,b.clientX,b.clientY,",
+ "b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);retur",
+ "n c};\nvar Ab=new S(\"change\",!0,!1),R=new T(\"click\",!0,!0),Bb=new T",
+ "(\"contextmenu\",!0,!0),Cb=new T(\"dblclick\",!0,!0),ub=new T(\"mousedo",
+ "wn\",!0,!0),Db=new T(\"mousemove\",!0,!1),tb=new T(\"mouseout\",!0,!0),",
+ "sb=new T(\"mouseover\",!0,!0),wb=new T(\"mouseup\",!0,!0),zb=new T(\"mo",
+ "usewheel\",!0,!0),yb=new T(\"MozMousePixelScroll\",!0,!0);function xb(a",
+ ",b,c){b=b.create(a,c);\"isTrusted\"in b||(b.isTrusted=!1);return a.disp",
+ "atchEvent(b)};function U(a,b){this.j={};this.d=[];var c=arguments.lengt",
+ "h;if(1<c){if(c%2)throw Error(\"Uneven number of arguments\");for(var d=",
+ "0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){var e;if(a ",
+ "instanceof U)for(d=Eb(a),Fb(a),e=[],c=0;c<a.d.length;c++)e.push(a.j[a.d",
+ "[c]]);else{var c=[],f=0;for(d in a)c[f++]=d;d=c;c=[];f=0;for(e in a)c[f",
+ "++]=a[e];e=c}for(c=0;c<d.length;c++)this.set(d[c],e[c])}}U.prototype.u=",
+ "0;U.prototype.T=0;function Eb(a){Fb(a);return a.d.concat()}\nfunction F",
+ "b(a){if(a.u!=a.d.length){for(var b=0,c=0;b<a.d.length;){var d=a.d[b];Ob",
+ "ject.prototype.hasOwnProperty.call(a.j,d)&&(a.d[c++]=d);b++}a.d.length=",
+ "c}if(a.u!=a.d.length){for(var e={},c=b=0;b<a.d.length;)d=a.d[b],Object.",
+ "prototype.hasOwnProperty.call(e,d)||(a.d[c++]=d,e[d]=1),b++;a.d.length=",
+ "c}}U.prototype.get=function(a,b){return Object.prototype.hasOwnProperty",
+ ".call(this.j,a)?this.j[a]:b};\nU.prototype.set=function(a,b){Object.pro",
+ "totype.hasOwnProperty.call(this.j,a)||(this.u++,this.d.push(a),this.T++",
+ ");this.j[a]=b};var Gb={};function V(a,b,c){var d=typeof a;(\"object\"==",
+ "d&&null!=a||\"function\"==d)&&(a=a.a);a=new Hb(a,b,c);!b||b in Gb&&!c||",
+ "(Gb[b]={key:a,shift:!1},c&&(Gb[c]={key:a,shift:!0}));return a}function ",
+ "Hb(a,b,c){this.code=a;this.M=b||null;this.ia=c||this.M}V(8);V(9);V(13);",
+ "var Ib=V(16),Jb=V(17),Kb=V(18);V(19);V(20);V(27);V(32,\" \");V(33);V(34",
+ ");V(35);V(36);V(37);V(38);V(39);V(40);V(44);V(45);V(46);V(48,\"0\",\")",
+ "\");V(49,\"1\",\"!\");V(50,\"2\",\"@\");V(51,\"3\",\"#\");V(52,\"4\",\"",
+ "$\");V(53,\"5\",\"%\");V(54,\"6\",\"^\");V(55,\"7\",\"&\");\nV(56,\"8\"",
+ ",\"*\");V(57,\"9\",\"(\");V(65,\"a\",\"A\");V(66,\"b\",\"B\");V(67,\"c",
+ "\",\"C\");V(68,\"d\",\"D\");V(69,\"e\",\"E\");V(70,\"f\",\"F\");V(71,\"",
+ "g\",\"G\");V(72,\"h\",\"H\");V(73,\"i\",\"I\");V(74,\"j\",\"J\");V(75,",
+ "\"k\",\"K\");V(76,\"l\",\"L\");V(77,\"m\",\"M\");V(78,\"n\",\"N\");V(79",
+ ",\"o\",\"O\");V(80,\"p\",\"P\");V(81,\"q\",\"Q\");V(82,\"r\",\"R\");V(8",
+ "3,\"s\",\"S\");V(84,\"t\",\"T\");V(85,\"u\",\"U\");V(86,\"v\",\"V\");V(",
+ "87,\"w\",\"W\");V(88,\"x\",\"X\");V(89,\"y\",\"Y\");V(90,\"z\",\"Z\");v",
+ "ar Lb=V(xa?{b:91,a:91,opera:219}:wa?{b:224,a:91,opera:17}:{b:0,a:91,ope",
+ "ra:null});\nV(xa?{b:92,a:92,opera:220}:wa?{b:224,a:93,opera:17}:{b:0,a:",
+ "92,opera:null});V(xa?{b:93,a:93,opera:0}:wa?{b:0,a:0,opera:16}:{b:93,a:",
+ "null,opera:0});V({b:96,a:96,opera:48},\"0\");V({b:97,a:97,opera:49},\"1",
+ "\");V({b:98,a:98,opera:50},\"2\");V({b:99,a:99,opera:51},\"3\");V({b:10",
+ "0,a:100,opera:52},\"4\");V({b:101,a:101,opera:53},\"5\");V({b:102,a:102",
+ ",opera:54},\"6\");V({b:103,a:103,opera:55},\"7\");V({b:104,a:104,opera:",
+ "56},\"8\");V({b:105,a:105,opera:57},\"9\");V({b:106,a:106,opera:q?56:42",
+ "},\"*\");\nV({b:107,a:107,opera:q?61:43},\"+\");V({b:109,a:109,opera:q?",
+ "109:45},\"-\");V({b:110,a:110,opera:q?190:78},\".\");V({b:111,a:111,ope",
+ "ra:q?191:47},\"/\");V(144);V(112);V(113);V(114);V(115);V(116);V(117);V(",
+ "118);V(119);V(120);V(121);V(122);V(123);V({b:107,a:187,opera:61},\"=\",",
+ "\"+\");V(108,\",\");V({b:109,a:189,opera:109},\"-\",\"_\");V(188,\",\",",
+ "\"<\");V(190,\".\",\">\");V(191,\"/\",\"?\");V(192,\"`\",\"~\");V(219,",
+ "\"[\",\"{\");V(220,\"\\\\\",\"|\");V(221,\"]\",\"}\");V({b:59,a:186,ope",
+ "ra:59},\";\",\":\");V(222,\"'\",'\"');var W=new U;W.set(1,Ib);W.set(2,J",
+ "b);\nW.set(4,Kb);W.set(8,Lb);(function(a){var b=new U;m(Eb(a),function(",
+ "c){b.set(a.get(c).code,c)});return b})(W);function Mb(a,b,c){ob.call(th",
+ "is,b,c);this.n=this.e=null;this.l=new r(0,0);this.v=this.m=!1;if(a){thi",
+ "s.e=a.U;try{N(a.O)&&(this.n=a.O)}catch(d){this.e=null}this.l=a.V;this.m",
+ "=a.da;this.v=a.X;try{N(a.element)&&pb(this,a.element)}catch(e){this.e=n",
+ "ull}}}da(Mb,ob);var X={};X[R]=[0,1,2,null];X[Bb]=[null,null,2,null];X[w",
+ "b]=[0,1,2,null];X[tb]=[0,1,2,0];X[Db]=[0,1,2,0];X[Cb]=X[R];X[ub]=X[wb];",
+ "X[sb]=X[tb];\nMb.prototype.move=function(a,b){var c=cb(a),d=Q(a);this.l",
+ ".x=b.x+d.left;this.l.y=b.y+d.top;d=this.i();if(a!=d){try{(t(d)?t(d).par",
+ "entWindow||t(d).defaultView:window).closed&&(d=null)}catch(e){d=null}if",
+ "(d){var f=d===ea.document.documentElement||d===ea.document.body,d=!this",
+ ".v&&f?null:d;Y(this,tb,a)}pb(this,a);Y(this,sb,d,null,c)}Y(this,Db,null",
+ ",null,c);this.m=!1};function Y(a,b,c,d,e){a.v=!0;return a.p(b,a.l,Nb(a,",
+ "b),c,d,e)}\nfunction Nb(a,b){if(!(b in X))return 0;var c=X[b][null===a.",
+ "e?3:a.e];if(null===c)throw new n(13,\"Event does not permit the specifi",
+ "ed mouse button.\");return c};function Ob(a,b){this.x=a;this.y=b}da(Ob,",
+ "r);Ob.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};fu",
+ "nction Pb(a){var b;if(\"none\"!=M(a,\"display\"))b=ab(a);else{b=a.style",
+ ";var c=b.display,d=b.visibility,e=b.position;b.visibility=\"hidden\";b.",
+ "position=\"absolute\";b.display=\"inline\";var f=ab(a);b.display=c;b.po",
+ "sition=e;b.visibility=d;b=f}return 0<b.width&&0<b.height||!a.offsetPare",
+ "nt?b:Pb(a.offsetParent)};function Qb(a,b,c){if(!db(a,!0))throw new n(11",
+ ",\"Element is not currently visible and may not be manipulated\");var d",
+ "=t(a).body,e;e=Za(a);var f=Za(d),h,u,p,E;E=L(d,\"borderLeftWidth\");p=L",
+ "(d,\"borderRightWidth\");h=L(d,\"borderTopWidth\");u=L(d,\"borderBottom",
+ "Width\");h=new J(parseFloat(h),parseFloat(p),parseFloat(u),parseFloat(E",
+ "));u=e.x-f.x-h.left;e=e.y-f.y-h.top;f=d.clientHeight-a.offsetHeight;h=d",
+ ".scrollLeft;p=d.scrollTop;h+=Math.min(u,Math.max(u-(d.clientWidth-a.off",
+ "setWidth),0));p+=Math.min(e,Math.max(e-\nf,0));e=new r(h,p);d.scrollLef",
+ "t=e.x;d.scrollTop=e.y;b?b=new Ob(b.x,b.y):(b=Pb(a),b=new Ob(b.width/2,b",
+ ".height/2));c=c||new Mb;c.move(a,b);if(null!==c.e)throw new n(13,\"Cann",
+ "ot press more then one button or an already pressed button.\");c.e=0;c.",
+ "n=c.i();if(N(c.i(),\"OPTION\")||N(c.i(),\"SELECT\")||Y(c,ub))if(a=c.f||",
+ "c.c,b=bb(a),a!=b){if(b&&l(b.blur)&&!N(b,\"BODY\"))try{b.blur()}catch(ya",
+ "){throw ya;}l(a.focus)&&a.focus()}if(null===c.e)throw new n(13,\"Cannot",
+ " release a button when no button is pressed.\");c.f&&cb(c.c)&&\n(a=c.f,",
+ "b=gb(c.c),!b||a.multiple)&&(c.c.selected=!b,!a.multiple&&xb(a,Ab));Y(c,",
+ "wb);0==c.e&&c.i()==c.n?(a=c.l,b=Nb(c,R),cb(c.c)&&(!c.f&&fb(c.c)&&gb(c.c",
+ "),c.p(R,a,b,null,0,!1,void 0)),c.m&&Y(c,Cb),c.m=!c.m):2==c.e&&Y(c,Bb);v",
+ "b={};c.e=null;c.n=null}var Z=[\"_\"],$=ba;Z[0]in $||!$.execScript||$.ex",
+ "ecScript(\"var \"+Z[0]);for(var Rb;Z.length&&(Rb=Z.shift());)Z.length||",
+ "void 0===Qb?$=$[Rb]?$[Rb]:$[Rb]={}:$[Rb]=Qb;; return this._.apply(null,",
+ "arguments);}.apply({navigator:typeof window!=undefined?window.navigator",
+ ":null,document:typeof window!=undefined?window.document:null}, argument",
+ "s);}",
+ NULL
+};
+
+const char* const EXECUTE_ASYNC_SCRIPT[] = {
+ "function(){return function(){function h(a){var b=typeof a;if(\"object\"",
+ "==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)",
+ "return b;var c=Object.prototype.toString.call(a);if(\"[object Window]\"",
+ "==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a.len",
+ "gth&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[o",
+ "bject Function]\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=type",
+ "of a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))return\"fu",
+ "nction\"}else return\"null\";\nelse if(\"function\"==b&&\"undefined\"==",
+ "typeof a.call)return\"object\";return b}function k(a){var b=h(a);return",
+ "\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}function l(a){",
+ "var b=typeof a;return\"object\"==b&&null!=a||\"function\"==b}function m",
+ "(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){v",
+ "ar b=Array.prototype.slice.call(arguments);b.unshift.apply(b,c);return ",
+ "a.apply(this,b)}}var p=Date.now||function(){return+new Date};var q=0,r=",
+ "13;function s(a,b){this.code=a;this.state=t[a]||u;this.message=b||\"\";",
+ "var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUp",
+ "perCase().replace(/^[\\s\\xa0]+/g,\"\")}),e=c.length-5;if(0>e||c.indexO",
+ "f(\"Error\",e)!=e)c+=\"Error\";this.name=c;c=Error(this.message);c.name",
+ "=this.name;this.stack=c.stack||\"\"}(function(){var a=s,b=Error;functio",
+ "n c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c})();\n",
+ "var u=\"unknown error\",t={15:\"element not selectable\",11:\"element n",
+ "ot visible\",31:\"ime engine activation failed\",30:\"ime not available",
+ "\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",12:",
+ "\"invalid element state\",32:\"invalid selector\",51:\"invalid selector",
+ "\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupported op",
+ "eration\",34:\"move target out of bounds\",27:\"no such alert\",7:\"no ",
+ "such element\",8:\"no such frame\",23:\"no such window\",28:\"script ti",
+ "meout\",33:\"session not created\",10:\"stale element reference\"};\nt[",
+ "q]=\"success\";t[21]=\"timeout\";t[25]=\"unable to set cookie\";t[26]=",
+ "\"unexpected alert open\";t[r]=u;t[9]=\"unknown command\";s.prototype.t",
+ "oString=function(){return this.name+\": \"+this.message};function w(){t",
+ "his.a=void 0}\nfunction x(a,b,c){switch(typeof b){case \"string\":y(b,c",
+ ");break;case \"number\":c.push(isFinite(b)&&!isNaN(b)?b:\"null\");break",
+ ";case \"boolean\":c.push(b);break;case \"undefined\":c.push(\"null\");b",
+ "reak;case \"object\":if(null==b){c.push(\"null\");break}if(\"array\"==h",
+ "(b)){var e=b.length;c.push(\"[\");for(var f=\"\",d=0;d<e;d++)c.push(f),",
+ "f=b[d],x(a,a.a?a.a.call(b,String(d),f):f,c),f=\",\";c.push(\"]\");break",
+ "}c.push(\"{\");e=\"\";for(d in b)Object.prototype.hasOwnProperty.call(b",
+ ",d)&&(f=b[d],\"function\"!=typeof f&&(c.push(e),y(d,\nc),c.push(\":\"),",
+ "x(a,a.a?a.a.call(b,d,f):f,c),e=\",\"));c.push(\"}\");break;case \"funct",
+ "ion\":break;default:throw Error(\"Unknown type: \"+typeof b);}}var z={'",
+ "\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"/\":\"\\\\/\",\"\\b\":\"\\\\b\",\"",
+ "\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"\\r\":\"\\\\r\",\"\\t\":\"\\\\t\",",
+ "\"\\x0B\":\"\\\\u000b\"},A=/\\uffff/.test(\"\\uffff\")?/[\\\\\\\"\\x00-",
+ "\\x1f\\x7f-\\uffff]/g:/[\\\\\\\"\\x00-\\x1f\\x7f-\\xff]/g;\nfunction y(",
+ "a,b){b.push('\"',a.replace(A,function(a){if(a in z)return z[a];var b=a.",
+ "charCodeAt(0),f=\"\\\\u\";16>b?f+=\"000\":256>b?f+=\"00\":4096>b&&(f+=",
+ "\"0\");return z[a]=f+b.toString(16)}),'\"')};function B(a,b){for(var c=",
+ "a.length,e=Array(c),f=\"string\"==typeof a?a.split(\"\"):a,d=0;d<c;d++)",
+ "d in f&&(e[d]=b.call(void 0,f[d],d,a));return e};function C(a,b){var c=",
+ "{},e;for(e in a)b.call(void 0,a[e],e,a)&&(c[e]=a[e]);return c}function ",
+ "D(a,b){var c={},e;for(e in a)c[e]=b.call(void 0,a[e],e,a);return c}func",
+ "tion E(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};functio",
+ "n F(a){switch(h(a)){case \"string\":case \"number\":case \"boolean\":re",
+ "turn a;case \"function\":return a.toString();case \"array\":return B(a,",
+ "F);case \"object\":if(\"nodeType\"in a&&(1==a.nodeType||9==a.nodeType))",
+ "{var b={};b.ELEMENT=G(a);return b}if(\"document\"in a)return b={},b.WIN",
+ "DOW=G(a),b;if(k(a))return B(a,F);a=C(a,function(a,b){return\"number\"==",
+ "typeof b||\"string\"==typeof b});return D(a,F);default:return null}}\nf",
+ "unction H(a,b){return\"array\"==h(a)?B(a,function(a){return H(a,b)}):l(",
+ "a)?\"function\"==typeof a?a:\"ELEMENT\"in a?L(a.ELEMENT,b):\"WINDOW\"in",
+ " a?L(a.WINDOW,b):D(a,function(a){return H(a,b)}):a}function M(a){a=a||d",
+ "ocument;var b=a.$wdc_;b||(b=a.$wdc_={},b.b=p());b.b||(b.b=p());return b",
+ "}function G(a){var b=M(a.ownerDocument),c=E(b,function(b){return b==a})",
+ ";c||(c=\":wdc:\"+b.b++,b[c]=a);return c}\nfunction L(a,b){a=decodeURICo",
+ "mponent(a);var c=b||document,e=M(c);if(!(a in e))throw new s(10,\"Eleme",
+ "nt does not exist in cache\");var f=e[a];if(\"setInterval\"in f){if(f.c",
+ "losed)throw delete e[a],new s(23,\"Window has been closed.\");return f}",
+ "for(var d=f;d;){if(d==c.documentElement)return f;d=d.parentNode}delete ",
+ "e[a];throw new s(10,\"Element is no longer attached to the DOM\");};fun",
+ "ction N(a,b,c,e,f,d){function n(a,b){if(!I){g.removeEventListener?g.rem",
+ "oveEventListener(\"unload\",v,!0):g.detachEvent(\"onunload\",v);g.clear",
+ "Timeout(J);if(a!=q){var c=new s(a,b.message||b+\"\");c.stack=b.stack;b=",
+ "{status:\"code\"in c?c.code:r,value:{message:c.message}}}else b={status",
+ ":q,value:F(b)};var c=e,d;f?(d=[],x(new w,b,d),d=d.join(\"\")):d=b;c(d);",
+ "I=!0}}function v(){n(r,Error(\"Detected a page unload event; asynchrono",
+ "us script execution does not work across page loads.\"))}var g=d||windo",
+ "w,J,I=!1;d=m(n,\nr);if(g.closed)d(\"Unable to execute script; the targe",
+ "t window is closed.\");else{a=\"string\"==typeof a?new g.Function(a):g=",
+ "=window?a:new g.Function(\"return (\"+a+\").apply(null,arguments);\");b",
+ "=H(b,g.document);b.push(m(n,q));g.addEventListener?g.addEventListener(",
+ "\"unload\",v,!0):g.attachEvent(\"onunload\",v);var R=p();try{a.apply(g,",
+ "b),J=g.setTimeout(function(){n(28,Error(\"Timed out waiting for asyncrh",
+ "onous script result after \"+(p()-R)+\" ms\"))},Math.max(0,c))}catch(K)",
+ "{n(K.code||r,K)}}}var O=[\"_\"],P=this;\nO[0]in P||!P.execScript||P.exe",
+ "cScript(\"var \"+O[0]);for(var Q;O.length&&(Q=O.shift());)O.length||voi",
+ "d 0===N?P=P[Q]?P[Q]:P[Q]={}:P[Q]=N;; return this._.apply(null,arguments",
+ ");}.apply({navigator:typeof window!=undefined?window.navigator:null,doc",
+ "ument:typeof window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const EXECUTE_SCRIPT[] = {
+ "function(){return function(){function g(a){var b=typeof a;if(\"object\"",
+ "==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)",
+ "return b;var c=Object.prototype.toString.call(a);if(\"[object Window]\"",
+ "==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a.len",
+ "gth&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[o",
+ "bject Function]\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=type",
+ "of a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))return\"fu",
+ "nction\"}else return\"null\";\nelse if(\"function\"==b&&\"undefined\"==",
+ "typeof a.call)return\"object\";return b}function h(a){var b=g(a);return",
+ "\"array\"==b||\"object\"==b&&\"number\"==typeof a.length}function k(a){",
+ "var b=typeof a;return\"object\"==b&&null!=a||\"function\"==b}var l=Date",
+ ".now||function(){return+new Date};var m=window;function n(a,b){this.cod",
+ "e=a;this.state=p[a]||q;this.message=b||\"\";var c=this.state.replace(/(",
+ "(?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\x",
+ "a0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Erro",
+ "r\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.sta",
+ "ck||\"\"}(function(){var a=Error;function b(){}b.prototype=a.prototype;",
+ "n.c=a.prototype;n.prototype=new b})();\nvar q=\"unknown error\",p={15:",
+ "\"element not selectable\",11:\"element not visible\",31:\"ime engine a",
+ "ctivation failed\",30:\"ime not available\",24:\"invalid cookie domain",
+ "\",29:\"invalid element coordinates\",12:\"invalid element state\",32:",
+ "\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",17",
+ ":\"javascript error\",405:\"unsupported operation\",34:\"move target ou",
+ "t of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such fr",
+ "ame\",23:\"no such window\",28:\"script timeout\",33:\"session not crea",
+ "ted\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:",
+ "\"unable to set cookie\",26:\"unexpected alert open\"};p[13]=q;p[9]=\"u",
+ "nknown command\";n.prototype.toString=function(){return this.name+\": ",
+ "\"+this.message};function r(){this.a=void 0}\nfunction s(a,b,c){switch(",
+ "typeof b){case \"string\":t(b,c);break;case \"number\":c.push(isFinite(",
+ "b)&&!isNaN(b)?b:\"null\");break;case \"boolean\":c.push(b);break;case ",
+ "\"undefined\":c.push(\"null\");break;case \"object\":if(null==b){c.push",
+ "(\"null\");break}if(\"array\"==g(b)){var d=b.length;c.push(\"[\");for(v",
+ "ar e=\"\",f=0;f<d;f++)c.push(e),e=b[f],s(a,a.a?a.a.call(b,String(f),e):",
+ "e,c),e=\",\";c.push(\"]\");break}c.push(\"{\");d=\"\";for(f in b)Object",
+ ".prototype.hasOwnProperty.call(b,f)&&(e=b[f],\"function\"!=typeof e&&(c",
+ ".push(d),t(f,\nc),c.push(\":\"),s(a,a.a?a.a.call(b,f,e):e,c),d=\",\"));",
+ "c.push(\"}\");break;case \"function\":break;default:throw Error(\"Unkno",
+ "wn type: \"+typeof b);}}var v={'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\",\"/",
+ "\":\"\\\\/\",\"\\b\":\"\\\\b\",\"\\f\":\"\\\\f\",\"\\n\":\"\\\\n\",\"",
+ "\\r\":\"\\\\r\",\"\\t\":\"\\\\t\",\"\\x0B\":\"\\\\u000b\"},w=/\\uffff/.",
+ "test(\"\\uffff\")?/[\\\\\\\"\\x00-\\x1f\\x7f-\\uffff]/g:/[\\\\\\\"\\x00",
+ "-\\x1f\\x7f-\\xff]/g;\nfunction t(a,b){b.push('\"',a.replace(w,function",
+ "(a){if(a in v)return v[a];var b=a.charCodeAt(0),e=\"\\\\u\";16>b?e+=\"0",
+ "00\":256>b?e+=\"00\":4096>b&&(e+=\"0\");return v[a]=e+b.toString(16)}),",
+ "'\"')};function x(a,b){for(var c=a.length,d=Array(c),e=\"string\"==type",
+ "of a?a.split(\"\"):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a))",
+ ";return d};function y(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a",
+ ")&&(c[d]=a[d]);return c}function z(a,b){var c={},d;for(d in a)c[d]=b.ca",
+ "ll(void 0,a[d],d,a);return c}function A(a,b){for(var c in a)if(b.call(v",
+ "oid 0,a[c],c,a))return c};function B(a){switch(g(a)){case \"string\":ca",
+ "se \"number\":case \"boolean\":return a;case \"function\":return a.toSt",
+ "ring();case \"array\":return x(a,B);case \"object\":if(\"nodeType\"in a",
+ "&&(1==a.nodeType||9==a.nodeType)){var b={};b.ELEMENT=C(a);return b}if(",
+ "\"document\"in a)return b={},b.WINDOW=C(a),b;if(h(a))return x(a,B);a=y(",
+ "a,function(a,b){return\"number\"==typeof b||\"string\"==typeof b});retu",
+ "rn z(a,B);default:return null}}\nfunction D(a,b){return\"array\"==g(a)?",
+ "x(a,function(a){return D(a,b)}):k(a)?\"function\"==typeof a?a:\"ELEMENT",
+ "\"in a?E(a.ELEMENT,b):\"WINDOW\"in a?E(a.WINDOW,b):z(a,function(a){retu",
+ "rn D(a,b)}):a}function F(a){a=a||document;var b=a.$wdc_;b||(b=a.$wdc_={",
+ "},b.b=l());b.b||(b.b=l());return b}function C(a){var b=F(a.ownerDocumen",
+ "t),c=A(b,function(b){return b==a});c||(c=\":wdc:\"+b.b++,b[c]=a);return",
+ " c}\nfunction E(a,b){a=decodeURIComponent(a);var c=b||document,d=F(c);i",
+ "f(!(a in d))throw new n(10,\"Element does not exist in cache\");var e=d",
+ "[a];if(\"setInterval\"in e){if(e.closed)throw delete d[a],new n(23,\"Wi",
+ "ndow has been closed.\");return e}for(var f=e;f;){if(f==c.documentEleme",
+ "nt)return e;f=f.parentNode}delete d[a];throw new n(10,\"Element is no l",
+ "onger attached to the DOM\");};function G(a,b,c,d){d=d||m;var e;try{a=",
+ "\"string\"==typeof a?new d.Function(a):d==window?a:new d.Function(\"ret",
+ "urn (\"+a+\").apply(null,arguments);\");var f=D(b,d.document),K=a.apply",
+ "(null,f);e={status:0,value:B(K)}}catch(u){e={status:\"code\"in u?u.code",
+ ":13,value:{message:u.message}}}c&&(a=[],s(new r,e,a),e=a.join(\"\"));re",
+ "turn e}var H=[\"_\"],I=this;H[0]in I||!I.execScript||I.execScript(\"var",
+ " \"+H[0]);for(var J;H.length&&(J=H.shift());)H.length||void 0===G?I=I[J",
+ "]?I[J]:I[J]={}:I[J]=G;; return this._.apply(null,arguments);}.apply({na",
+ "vigator:typeof window!=undefined?window.navigator:null,document:typeof ",
+ "window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const EXECUTE_SQL[] = {
+ "function(){return function(){var d=window;function f(a,b){this.code=a;t",
+ "his.state=g[a]||h;this.message=b||\"\";var c=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),e=c.length-5;if(0>e||c.indexOf(\"Error\",e)!=e)c+=\"Error\";t",
+ "his.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||",
+ "\"\"}(function(){var a=Error;function b(){}b.prototype=a.prototype;f.a=",
+ "a.prototype;f.prototype=new b})();\nvar h=\"unknown error\",g={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};g[13]=h;g[9]=\"unknown ",
+ "command\";f.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};function k(a){this.rows=[];for(var b=0;b<a.rows.length;b++)thi",
+ "s.rows[b]=a.rows.item(b);this.rowsAffected=a.rowsAffected;this.insertId",
+ "=-1;try{this.insertId=a.insertId}catch(c){}};function l(a,b,c,e,q,s,t){",
+ "function u(a,b){var c=new k(b);e(a,c)}var n;try{n=d.openDatabase(a,\"\"",
+ ",a+\"name\",5242880)}catch(v){throw new f(13,v.message);}n.transaction(",
+ "function(a){a.executeSql(b,c,u,t)},q,s)}var m=[\"_\"],p=this;m[0]in p||",
+ "!p.execScript||p.execScript(\"var \"+m[0]);for(var r;m.length&&(r=m.shi",
+ "ft());)m.length||void 0===l?p=p[r]?p[r]:p[r]={}:p[r]=l;; return this._.",
+ "apply(null,arguments);}.apply({navigator:typeof window!=undefined?windo",
+ "w.navigator:null,document:typeof window!=undefined?window.document:null",
+ "}, arguments);}",
+ NULL
+};
+
+const char* const FIND_ELEMENT[] = {
+ "function(){return function(){function h(a){return function(){return a}}",
+ "var k=this;\nfunction aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a ",
+ "instanceof Array)return\"array\";if(a instanceof Object)return b;var c=",
+ "Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"obj",
+ "ect\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefine",
+ "d\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.",
+ "propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]",
+ "\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"call\"))return\"function\"}else r",
+ "eturn\"null\";\nelse if(\"function\"==b&&\"undefined\"==typeof a.call)r",
+ "eturn\"object\";return b}function l(a){return\"string\"==typeof a}funct",
+ "ion n(a){return\"function\"==aa(a)};var ba=window;function ca(a){var b=",
+ "a.length-1;return 0<=b&&a.indexOf(\" \",b)==b}function p(a){return a.re",
+ "place(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")}function da(a){return String(a",
+ ").replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};var ea=",
+ "Array.prototype;function r(a,b){for(var c=a.length,d=l(a)?a.split(\"\")",
+ ":a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function s(a,b){for(var ",
+ "c=a.length,d=[],e=0,f=l(a)?a.split(\"\"):a,g=0;g<c;g++)if(g in f){var q",
+ "=f[g];b.call(void 0,q,g,a)&&(d[e++]=q)}return d}function fa(a,b){if(a.r",
+ "educe)return a.reduce(b,\"\");var c=\"\";r(a,function(d,e){c=b.call(voi",
+ "d 0,c,d,e,a)});return c}function ga(a,b){for(var c=a.length,d=l(a)?a.sp",
+ "lit(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;ret",
+ "urn!1}\nfunction ha(a,b){var c;a:{c=a.length;for(var d=l(a)?a.split(\"",
+ "\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}",
+ "return 0>c?null:l(a)?a.charAt(c):a[c]}function t(a,b){var c;a:if(l(a))c",
+ "=l(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c i",
+ "n a&&a[c]===b)break a;c=-1}return 0<=c}function ia(a,b,c){return 2>=arg",
+ "uments.length?ea.slice.call(a,b):ea.slice.call(a,b,c)};var ja;function ",
+ "u(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}u.prototype.toString",
+ "=function(){return\"(\"+this.x+\", \"+this.y+\")\"};u.prototype.ceil=fu",
+ "nction(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}",
+ ";u.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.flo",
+ "or(this.y);return this};u.prototype.round=function(){this.x=Math.round(",
+ "this.x);this.y=Math.round(this.y);return this};function v(a,b){this.wid",
+ "th=a;this.height=b}v.prototype.toString=function(){return\"(\"+this.wid",
+ "th+\" x \"+this.height+\")\"};v.prototype.ceil=function(){this.width=Ma",
+ "th.ceil(this.width);this.height=Math.ceil(this.height);return this};v.p",
+ "rototype.floor=function(){this.width=Math.floor(this.width);this.height",
+ "=Math.floor(this.height);return this};v.prototype.round=function(){this",
+ ".width=Math.round(this.width);this.height=Math.round(this.height);retur",
+ "n this};var ka=3;function w(a){return a?new la(x(a)):ja||(ja=new la)}fu",
+ "nction ma(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}functi",
+ "on y(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if(\"",
+ "undefined\"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.co",
+ "mpareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}",
+ "\nfunction na(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return",
+ " a.compareDocumentPosition(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNo",
+ "de&&\"sourceIndex\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType",
+ ";if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.pare",
+ "ntNode;return e==f?oa(a,b):!c&&y(e,b)?-1*pa(a,b):!d&&y(f,a)?pa(b,a):(c?",
+ "a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=x(a);c=d",
+ ".createRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selec",
+ "tNode(b);d.collapse(!0);\nreturn c.compareBoundaryPoints(k.Range.START_",
+ "TO_END,d)}function pa(a,b){var c=a.parentNode;if(c==b)return-1;for(var ",
+ "d=b;d.parentNode!=c;)d=d.parentNode;return oa(d,a)}function oa(a,b){for",
+ "(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function x(a){r",
+ "eturn 9==a.nodeType?a:a.ownerDocument||a.document}function qa(a,b){a=a.",
+ "parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return n",
+ "ull}function la(a){this.j=a||k.document||document}\nfunction z(a,b,c,d)",
+ "{a=d||a.j;b=b&&\"*\"!=b?b.toUpperCase():\"\";if(a.querySelectorAll&&a.q",
+ "uerySelector&&(b||c))c=a.querySelectorAll(b+(c?\".\"+c:\"\"));else if(c",
+ "&&a.getElementsByClassName)if(a=a.getElementsByClassName(c),b){d={};for",
+ "(var e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;c=d}else",
+ " c=a;else if(a=a.getElementsByTagName(b||\"*\"),c){d={};for(f=e=0;g=a[f",
+ "];f++)b=g.className,\"function\"==typeof b.split&&t(b.split(/\\s+/),c)&",
+ "&(d[e++]=g);d.length=e;c=d}else c=a;return c}\nfunction ra(a){var b=a.j",
+ ";a=b.body;b=b.parentWindow||b.defaultView;return new u(b.pageXOffset||a",
+ ".scrollLeft,b.pageYOffset||a.scrollTop)}la.prototype.contains=y;var A={",
+ "n:function(a){return!(!a.querySelectorAll||!a.querySelector)},c:functio",
+ "n(a,b){if(!a)throw Error(\"No class name specified\");a=p(a);if(1<a.spl",
+ "it(/\\s+/).length)throw Error(\"Compound class names not permitted\");i",
+ "f(A.n(b))return b.querySelector(\".\"+a.replace(/\\./g,\"\\\\.\"))||nul",
+ "l;var c=z(w(b),\"*\",a,b);return c.length?c[0]:null},d:function(a,b){if",
+ "(!a)throw Error(\"No class name specified\");a=p(a);if(1<a.split(/\\s+/",
+ ").length)throw Error(\"Compound class names not permitted\");return A.n",
+ "(b)?b.querySelectorAll(\".\"+\na.replace(/\\./g,\"\\\\.\")):z(w(b),\"*",
+ "\",a,b)}};var C={c:function(a,b){n(b.querySelector);if(!a)throw Error(",
+ "\"No selector specified\");a=p(a);var c=b.querySelector(a);return c&&1=",
+ "=c.nodeType?c:null},d:function(a,b){n(b.querySelectorAll);if(!a)throw E",
+ "rror(\"No selector specified\");a=p(a);return b.querySelectorAll(a)}};v",
+ "ar sa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",",
+ "aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ff",
+ "e4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",bl",
+ "ueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:",
+ "\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f5",
+ "0\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\"",
+ ",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenr",
+ "od:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\"",
+ "#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:",
+ "\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b",
+ "0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"",
+ "#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturqu",
+ "oise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblu",
+ "e:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e9",
+ "0ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b",
+ "22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\"",
+ ",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#00800",
+ "0\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpi",
+ "nk:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0",
+ "\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",law",
+ "ngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",light",
+ "coral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2",
+ "\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",l",
+ "ightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa",
+ "\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:",
+ "\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#",
+ "00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",ma",
+ "roon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",me",
+ "diumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb37",
+ "1\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumtur",
+ "quoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\"",
+ ",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",nav",
+ "ajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#8080",
+ "00\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orc",
+ "hid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paletur",
+ "quoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",pea",
+ "chpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",p",
+ "owderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#b",
+ "c8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072",
+ "\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",s",
+ "ienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6",
+ "a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",sp",
+ "ringgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008",
+ "080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",viol",
+ "et:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5",
+ "\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var ta=\"background-colo",
+ "r border-top-color border-right-color border-bottom-color border-left-c",
+ "olor color outline-color\".split(\" \"),ua=/#([0-9a-fA-F])([0-9a-fA-F])",
+ "([0-9a-fA-F])/;function va(a){if(!wa.test(a))throw Error(\"'\"+a+\"' is",
+ " not a valid hex color\");4==a.length&&(a=a.replace(ua,\"#$1$1$2$2$3$3",
+ "\"));return a.toLowerCase()}var wa=/^#(?:[0-9a-f]{3}){1,2}$/i,xa=/^(?:r",
+ "gba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$",
+ "/i;\nfunction ya(a){var b=a.match(xa);if(b){a=Number(b[1]);var c=Number",
+ "(b[2]),d=Number(b[3]),b=Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=",
+ "d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}return[]}var za=/^(?:rgb)?\\((0|[",
+ "1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;functio",
+ "n Aa(a){var b=a.match(za);if(b){a=Number(b[1]);var c=Number(b[2]),b=Num",
+ "ber(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}ret",
+ "urn[]};function D(a,b){this.code=a;this.state=Ba[a]||Ca;this.message=b|",
+ "|\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return ",
+ "a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.",
+ "indexOf(\"Error\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);",
+ "c.name=this.name;this.stack=c.stack||\"\"}(function(){var a=Error;funct",
+ "ion b(){}b.prototype=a.prototype;D.P=a.prototype;D.prototype=new b})();",
+ "\nvar Ca=\"unknown error\",Ba={15:\"element not selectable\",11:\"eleme",
+ "nt not visible\",31:\"ime engine activation failed\",30:\"ime not avail",
+ "able\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",",
+ "12:\"invalid element state\",32:\"invalid selector\",51:\"invalid selec",
+ "tor\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupported",
+ " operation\",34:\"move target out of bounds\",27:\"no such alert\",7:\"",
+ "no such element\",8:\"no such frame\",23:\"no such window\",28:\"script",
+ " timeout\",33:\"session not created\",10:\"stale element reference\",\n",
+ "0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpecte",
+ "d alert open\"};Ba[13]=Ca;Ba[9]=\"unknown command\";D.prototype.toStrin",
+ "g=function(){return this.name+\": \"+this.message};function E(a){var b=",
+ "null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerTe",
+ "xt:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==c",
+ "){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do ",
+ "1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&",
+ "!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction ",
+ "F(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){",
+ "return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}func",
+ "tion G(a,b,c,d,e){return Da.call(null,a,b,l(c)?c:null,l(d)?d:null,e||ne",
+ "w H)}\nfunction Da(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b.",
+ "getElementsByName(d),r(b,function(b){a.matches(b)&&e.add(b)})):b.getEle",
+ "mentsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),r(b,fu",
+ "nction(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagN",
+ "ame&&(b=b.getElementsByTagName(a.getName()),r(b,function(a){F(a,c,d)&&e",
+ ".add(a)}));return e}function Ea(a,b,c,d,e){for(b=b.firstChild;b;b=b.nex",
+ "tSibling)F(b,c,d)&&a.matches(b)&&e.add(b);return e};function H(){this.f",
+ "=this.e=null;this.k=0}function Fa(a){this.t=a;this.next=this.m=null}H.p",
+ "rototype.unshift=function(a){a=new Fa(a);a.next=this.e;this.f?this.e.m=",
+ "a:this.e=this.f=a;this.e=a;this.k++};H.prototype.add=function(a){a=new ",
+ "Fa(a);a.m=this.f;this.e?this.f.next=a:this.e=this.f=a;this.f=a;this.k++",
+ "};function Ga(a){return(a=a.e)?a.t:null}function I(a){return new Ha(a,!",
+ "1)}function Ha(a,b){this.M=a;this.p=(this.u=b)?a.f:a.e;this.B=null}\nHa",
+ ".prototype.next=function(){var a=this.p;if(null==a)return null;var b=th",
+ "is.B=a;this.p=this.u?a.m:a.next;return b.t};function J(a,b,c,d,e){b=b.e",
+ "valuate(d);c=c.evaluate(d);var f;if(b instanceof H&&c instanceof H){e=I",
+ "(b);for(d=e.next();d;d=e.next())for(b=I(c),f=b.next();f;f=b.next())if(a",
+ "(E(d),E(f)))return!0;return!1}if(b instanceof H||c instanceof H){b inst",
+ "anceof H?e=b:(e=c,c=b);e=I(e);b=typeof c;for(d=e.next();d;d=e.next()){s",
+ "witch(b){case \"number\":d=+E(d);break;case \"boolean\":d=!!E(d);break;",
+ "case \"string\":d=E(d);break;default:throw Error(\"Illegal primitive ty",
+ "pe for comparison.\");}if(a(d,c))return!0}return!1}return e?\n\"boolean",
+ "\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number\"==typeof b||\"",
+ "number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function Ia(a,b,c,d){this.C",
+ "=a;this.O=b;this.A=c;this.i=d}Ia.prototype.toString=function(){return t",
+ "his.C};var Ja={};function K(a,b,c,d){if(a in Ja)throw Error(\"Binary op",
+ "erator already created: \"+a);a=new Ia(a,b,c,d);Ja[a.toString()]=a}K(\"",
+ "div\",6,1,function(a,b,c){return a.b(c)/b.b(c)});K(\"mod\",6,1,function",
+ "(a,b,c){return a.b(c)%b.b(c)});K(\"*\",6,1,function(a,b,c){return a.b(c",
+ ")*b.b(c)});\nK(\"+\",5,1,function(a,b,c){return a.b(c)+b.b(c)});K(\"-\"",
+ ",5,1,function(a,b,c){return a.b(c)-b.b(c)});K(\"<\",4,2,function(a,b,c)",
+ "{return J(function(a,b){return a<b},a,b,c)});K(\">\",4,2,function(a,b,c",
+ "){return J(function(a,b){return a>b},a,b,c)});K(\"<=\",4,2,function(a,b",
+ ",c){return J(function(a,b){return a<=b},a,b,c)});K(\">=\",4,2,function(",
+ "a,b,c){return J(function(a,b){return a>=b},a,b,c)});K(\"=\",3,2,functio",
+ "n(a,b,c){return J(function(a,b){return a==b},a,b,c,!0)});\nK(\"!=\",3,2",
+ ",function(a,b,c){return J(function(a,b){return a!=b},a,b,c,!0)});K(\"an",
+ "d\",2,2,function(a,b,c){return a.h(c)&&b.h(c)});K(\"or\",1,2,function(a",
+ ",b,c){return a.h(c)||b.h(c)});function Ka(a,b,c,d,e,f,g,q,m){this.l=a;t",
+ "his.A=b;this.L=c;this.K=d;this.J=e;this.i=f;this.I=g;this.H=void 0!==q?",
+ "q:g;this.N=!!m}Ka.prototype.toString=function(){return this.l};var La={",
+ "};function L(a,b,c,d,e,f,g,q){if(a in La)throw Error(\"Function already",
+ " created: \"+a+\".\");La[a]=new Ka(a,b,c,d,!1,e,f,g,q)}L(\"boolean\",2,",
+ "!1,!1,function(a,b){return b.h(a)},1);L(\"ceiling\",1,!1,!1,function(a,",
+ "b){return Math.ceil(b.b(a))},1);\nL(\"concat\",3,!1,!1,function(a,b){va",
+ "r c=ia(arguments,1);return fa(c,function(b,c){return b+c.a(a)})},2,null",
+ ");L(\"contains\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return-1!=b.",
+ "indexOf(a)},2);L(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).k",
+ "},1,1,!0);L(\"false\",2,!1,!1,h(!1),0);L(\"floor\",1,!1,!1,function(a,b",
+ "){return Math.floor(b.b(a))},1);\nL(\"id\",4,!1,!1,function(a,b){var c=",
+ "a.g(),d=9==c.nodeType?c:c.ownerDocument,c=b.a(a).split(/\\s+/),e=[];r(c",
+ ",function(a){(a=d.getElementById(a))&&!t(e,a)&&e.push(a)});e.sort(na);v",
+ "ar f=new H;r(e,function(a){f.add(a)});return f},1);L(\"lang\",2,!1,!1,h",
+ "(!1),1);L(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw Err",
+ "or(\"Function last expects ()\");return a.F()},0);L(\"local-name\",3,!1",
+ ",!0,function(a,b){var c=b?Ga(b.evaluate(a)):a.g();return c?c.nodeName.t",
+ "oLowerCase():\"\"},0,1,!0);\nL(\"name\",3,!1,!0,function(a,b){var c=b?G",
+ "a(b.evaluate(a)):a.g();return c?c.nodeName.toLowerCase():\"\"},0,1,!0);",
+ "L(\"namespace-uri\",3,!0,!1,h(\"\"),0,1,!0);L(\"normalize-space\",3,!1,",
+ "!0,function(a,b){return(b?b.a(a):E(a.g())).replace(/[\\s\\xa0]+/g,\" \"",
+ ").replace(/^\\s+|\\s+$/g,\"\")},0,1);L(\"not\",2,!1,!1,function(a,b){re",
+ "turn!b.h(a)},1);L(\"number\",1,!1,!0,function(a,b){return b?b.b(a):+E(a",
+ ".g())},0,1);L(\"position\",1,!0,!1,function(a){return a.G()},0);L(\"rou",
+ "nd\",1,!1,!1,function(a,b){return Math.round(b.b(a))},1);\nL(\"starts-w",
+ "ith\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return 0==b.lastIndexOf",
+ "(a,0)},2);L(\"string\",3,!1,!0,function(a,b){return b?b.a(a):E(a.g())},",
+ "0,1);L(\"string-length\",1,!1,!0,function(a,b){return(b?b.a(a):E(a.g())",
+ ").length},0,1);\nL(\"substring\",3,!1,!1,function(a,b,c,d){c=c.b(a);if(",
+ "isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.b(a):Infinity;if(i",
+ "sNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,0)",
+ ";a=b.a(a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a",
+ ".substring(e,c+b)},2,3);L(\"substring-after\",3,!1,!1,function(a,b,c){b",
+ "=b.a(a);a=c.a(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length",
+ ")},2);\nL(\"substring-before\",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a",
+ ");a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);L(\"sum\",1,!1,!",
+ "1,function(a,b){for(var c=I(b.evaluate(a)),d=0,e=c.next();e;e=c.next())",
+ "d+=+E(e);return d},1,1,!0);L(\"translate\",3,!1,!1,function(a,b,c,d){b=",
+ "b.a(a);c=c.a(a);var e=d.a(a);a=[];for(d=0;d<c.length;d++){var f=c.charA",
+ "t(d);f in a||(a[f]=e.charAt(d))}c=\"\";for(d=0;d<b.length;d++)f=b.charA",
+ "t(d),c+=f in a?a[f]:f;return c},3);L(\"true\",2,!1,!1,h(!0),0);function",
+ " Ma(a,b,c,d){this.l=a;this.D=b;this.u=c;this.Q=d}Ma.prototype.toString=",
+ "function(){return this.l};var Na={};function M(a,b,c,d){if(a in Na)thro",
+ "w Error(\"Axis already created: \"+a);Na[a]=new Ma(a,b,c,!!d)}M(\"ances",
+ "tor\",function(a,b){for(var c=new H,d=b;d=d.parentNode;)a.matches(d)&&c",
+ ".unshift(d);return c},!0);M(\"ancestor-or-self\",function(a,b){var c=ne",
+ "w H,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},!",
+ "0);\nM(\"attribute\",function(a,b){var c=new H,d=a.getName(),e=b.attrib",
+ "utes;if(e)if(\"*\"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e.getNam",
+ "edItem(d))&&c.add(f);return c},!1);M(\"child\",function(a,b,c,d,e){retu",
+ "rn Ea.call(null,a,b,l(c)?c:null,l(d)?d:null,e||new H)},!1,!0);M(\"desce",
+ "ndant\",G,!1,!0);M(\"descendant-or-self\",function(a,b,c,d){var e=new H",
+ ";F(b,c,d)&&a.matches(b)&&e.add(b);return G(a,b,c,d,e)},!1,!0);\nM(\"fol",
+ "lowing\",function(a,b,c,d){var e=new H;do for(var f=b;f=f.nextSibling;)",
+ "F(f,c,d)&&a.matches(f)&&e.add(f),e=G(a,f,c,d,e);while(b=b.parentNode);r",
+ "eturn e},!1,!0);M(\"following-sibling\",function(a,b){for(var c=new H,d",
+ "=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);M(\"namespace",
+ "\",function(){return new H},!1);M(\"parent\",function(a,b){var c=new H;",
+ "if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement)",
+ ",c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nM(\"preced",
+ "ing\",function(a,b,c,d){var e=new H,f=[];do f.unshift(b);while(b=b.pare",
+ "ntNode);for(var g=1,q=f.length;g<q;g++){var m=[];for(b=f[g];b=b.previou",
+ "sSibling;)m.unshift(b);for(var B=0,ab=m.length;B<ab;B++)b=m[B],F(b,c,d)",
+ "&&a.matches(b)&&e.add(b),e=G(a,b,c,d,e)}return e},!0,!0);M(\"preceding-",
+ "sibling\",function(a,b){for(var c=new H,d=b;d=d.previousSibling;)a.matc",
+ "hes(d)&&c.unshift(d);return c},!0);M(\"self\",function(a,b){var c=new H",
+ ";a.matches(b)&&c.add(b);return c},!1);var N={};N.w=function(){var a={R:",
+ "\"http://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}(",
+ ");N.i=function(a,b,c){var d=x(a);try{var e=d.createNSResolver?d.createN",
+ "SResolver(d.documentElement):N.w;return d.evaluate(b,a,e,c,null)}catch(",
+ "f){throw new D(32,\"Unable to locate an element with the xpath expressi",
+ "on \"+b+\" because of the following error:\\n\"+f);}};N.o=function(a,b)",
+ "{if(!a||1!=a.nodeType)throw new D(32,'The result of the xpath expressio",
+ "n \"'+b+'\" is: '+a+\". It should be an element.\");};\nN.c=function(a,",
+ "b){var c=function(){var c=N.i(b,a,9);return c?c.singleNodeValue||null:b",
+ ".selectSingleNode?(c=x(b),c.setProperty&&c.setProperty(\"SelectionLangu",
+ "age\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||N.o(c,a);retu",
+ "rn c};\nN.d=function(a,b){var c=function(){var c=N.i(b,a,7);if(c){for(v",
+ "ar e=c.snapshotLength,f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return",
+ " f}return b.selectNodes?(c=x(b),c.setProperty&&c.setProperty(\"Selectio",
+ "nLanguage\",\"XPath\"),b.selectNodes(a)):[]}();r(c,function(b){N.o(b,a)",
+ "});return c};function O(a,b,c,d){this.left=a;this.top=b;this.width=c;th",
+ "is.height=d}O.prototype.toString=function(){return\"(\"+this.left+\", ",
+ "\"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};O.prototype",
+ ".contains=function(a){return a instanceof O?this.left<=a.left&&this.lef",
+ "t+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.",
+ "top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&",
+ "a.y<=this.top+this.height};\nO.prototype.ceil=function(){this.left=Math",
+ ".ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this",
+ ".width);this.height=Math.ceil(this.height);return this};O.prototype.flo",
+ "or=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.",
+ "top);this.width=Math.floor(this.width);this.height=Math.floor(this.heig",
+ "ht);return this};\nO.prototype.round=function(){this.left=Math.round(th",
+ "is.left);this.top=Math.round(this.top);this.width=Math.round(this.width",
+ ");this.height=Math.round(this.height);return this};function Oa(a,b){var",
+ " c=x(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defa",
+ "ultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"",
+ "\"}function P(a){return Oa(a,\"position\")||(a.currentStyle?a.currentSt",
+ "yle.position:null)||a.style&&a.style.position}function Pa(a){var b;try{",
+ "b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom",
+ ":0}}return b}\nfunction Qa(a){var b=x(a),c=P(a),d=\"fixed\"==c||\"absol",
+ "ute\"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=P(a),d=d&&\"sta",
+ "tic\"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWi",
+ "dth||a.scrollHeight>a.clientHeight||\"fixed\"==c||\"absolute\"==c||\"re",
+ "lative\"==c))return a;return null}\nfunction Ra(a){if(1==a.nodeType){va",
+ "r b;if(a.getBoundingClientRect)b=Pa(a),b=new u(b.left,b.top);else{b=ra(",
+ "w(a));var c=x(a),d=P(a),e=new u(0,0),f=(c?x(c):document).documentElemen",
+ "t;if(a!=f)if(a.getBoundingClientRect)a=Pa(a),c=ra(w(c)),e.x=a.left+c.x,",
+ "e.y=a.top+c.y;else if(c.getBoxObjectFor)a=c.getBoxObjectFor(a),c=c.getB",
+ "oxObjectFor(f),e.x=a.screenX-c.screenX,e.y=a.screenY-c.screenY;else{var",
+ " g=a;do{e.x+=g.offsetLeft;e.y+=g.offsetTop;g!=a&&(e.x+=g.clientLeft||0,",
+ "e.y+=g.clientTop||0);if(\"fixed\"==P(g)){e.x+=\nc.body.scrollLeft;e.y+=",
+ "c.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);\"absolute\"==d&",
+ "&(e.y-=c.body.offsetTop);for(g=a;(g=Qa(g))&&g!=c.body&&g!=f;)e.x-=g.scr",
+ "ollLeft,e.y-=g.scrollTop}b=new u(e.x-b.x,e.y-b.y)}return b}b=n(a.q);e=a",
+ ";a.targetTouches?e=a.targetTouches[0]:b&&a.q().targetTouches&&(e=a.q().",
+ "targetTouches[0]);return new u(e.clientX,e.clientY)};function Q(a,b){re",
+ "turn!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var Sa=/[;]+(?",
+ "=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*",
+ "\\([^()]*\\))*[^()]*$)/;function Ta(a){var b=[];r(a.split(Sa),function(",
+ "a){var d=a.indexOf(\":\");0<d&&(a=[a.slice(0,d),a.slice(d+1)],2==a.leng",
+ "th&&b.push(a[0].toLowerCase(),\":\",a[1],\";\"))});b=b.join(\"\");retur",
+ "n b=\";\"==b.charAt(b.length-1)?b:b+\";\"}\nfunction R(a,b){b=b.toLower",
+ "Case();if(\"style\"==b)return Ta(a.style.cssText);var c=a.getAttributeN",
+ "ode(b);return c&&c.specified?c.value:null}function S(a){for(a=a.parentN",
+ "ode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;ret",
+ "urn Q(a)?a:null}\nfunction T(a,b){var c=da(b);if(\"float\"==c||\"cssFlo",
+ "at\"==c||\"styleFloat\"==c)c=\"cssFloat\";c=Oa(a,c)||Ua(a,c);if(null===",
+ "c)c=null;else if(t(ta,b)&&(wa.test(\"#\"==c.charAt(0)?c:\"#\"+c)||Aa(c)",
+ ".length||sa&&sa[c.toLowerCase()]||ya(c).length)){var d=ya(c);if(!d.leng",
+ "th){a:if(d=Aa(c),!d.length){d=(d=sa[c.toLowerCase()])?d:\"#\"==c.charAt",
+ "(0)?c:\"#\"+c;if(wa.test(d)&&(d=va(d),d=va(d),d=[parseInt(d.substr(1,2)",
+ ",16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16)],d.length))b",
+ "reak a;d=[]}3==d.length&&d.push(1)}c=4!=\nd.length?c:\"rgba(\"+d.join(",
+ "\", \")+\")\"}return c}function Ua(a,b){var c=a.currentStyle||a.style,d",
+ "=c[b];void 0===d&&n(c.getPropertyValue)&&(d=c.getPropertyValue(b));retu",
+ "rn\"inherit\"!=d?void 0!==d?d:null:(c=S(a))?Ua(c,b):null}\nfunction Va(",
+ "a,b){function c(a){if(\"none\"==T(a,\"display\"))return!1;a=S(a);return",
+ "!a||c(a)}function d(a){var b=U(a);return 0<b.height&&0<b.width?!0:Q(a,",
+ "\"PATH\")&&(0<b.height||0<b.width)?(a=T(a,\"stroke-width\"),!!a&&0<pars",
+ "eInt(a,10)):\"hidden\"!=T(a,\"overflow\")&&ga(a.childNodes,function(a){",
+ "return a.nodeType==ka||Q(a)&&d(a)})}function e(a){var b=T(a,\"-o-transf",
+ "orm\")||T(a,\"-webkit-transform\")||T(a,\"-ms-transform\")||T(a,\"-moz-",
+ "transform\")||T(a,\"transform\");if(b&&\"none\"!==b)return b=Ra(a),a=U(",
+ "a),0<=b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=S(a);return!a||e(a)}if(!Q(",
+ "a))throw Error(\"Argument to isShown must be of type Element\");if(Q(a,",
+ "\"OPTION\")||Q(a,\"OPTGROUP\")){var f=qa(a,function(a){return Q(a,\"SEL",
+ "ECT\")});return!!f&&Va(f,!0)}return(f=Wa(a))?!!f.r&&0<f.rect.width&&0<f",
+ ".rect.height&&Va(f.r,b):Q(a,\"INPUT\")&&\"hidden\"==a.type.toLowerCase(",
+ ")||Q(a,\"NOSCRIPT\")||\"hidden\"==T(a,\"visibility\")||!c(a)||!b&&0==Xa",
+ "(a)||!d(a)||Ya(a)==V?!1:e(a)}var V=\"hidden\";\nfunction Ya(a){function",
+ " b(a){var b=a;if(\"visible\"==q)if(a==f)b=g;else if(a==g)return{x:\"vis",
+ "ible\",y:\"visible\"};b={x:T(b,\"overflow-x\"),y:T(b,\"overflow-y\")};a",
+ "==f&&(b.x=\"hidden\"==b.x?\"hidden\":\"auto\",b.y=\"hidden\"==b.y?\"hid",
+ "den\":\"auto\");return b}function c(a){var b=T(a,\"position\");if(\"fix",
+ "ed\"==b)return f;for(a=S(a);a&&a!=f&&(0==T(a,\"display\").lastIndexOf(",
+ "\"inline\",0)||\"absolute\"==b&&\"static\"==T(a,\"position\"));)a=S(a);",
+ "return a}var d=U(a),e=x(a),f=e.documentElement,g=e.body,q=T(f,\"overflo",
+ "w\");for(a=c(a);a;a=\nc(a)){var m=U(a),e=b(a),B=d.left>=m.left+m.width,",
+ "m=d.top>=m.top+m.height;if(B&&\"hidden\"==e.x||m&&\"hidden\"==e.y)retur",
+ "n V;if(B&&\"visible\"!=e.x||m&&\"visible\"!=e.y)return Ya(a)==V?V:\"scr",
+ "oll\"}return\"none\"}\nfunction U(a){var b=Wa(a);if(b)return b.rect;if(",
+ "n(a.getBBox))try{var c=a.getBBox();return new O(c.x,c.y,c.width,c.heigh",
+ "t)}catch(d){throw d;}else{if(Q(a,\"HTML\"))return a=((x(a)?x(a).parentW",
+ "indow||x(a).defaultView:window)||window).document,a=\"CSS1Compat\"==a.c",
+ "ompatMode?a.documentElement:a.body,a=new v(a.clientWidth,a.clientHeight",
+ "),new O(0,0,a.width,a.height);var b=Ra(a),c=a.offsetWidth,e=a.offsetHei",
+ "ght;c||(e||!a.getBoundingClientRect)||(a=a.getBoundingClientRect(),c=a.",
+ "right-a.left,e=a.bottom-a.top);\nreturn new O(b.x,b.y,c,e)}}function Wa",
+ "(a){var b=Q(a,\"MAP\");if(!b&&!Q(a,\"AREA\"))return null;var c=b?a:Q(a.",
+ "parentNode,\"MAP\")?a.parentNode:null,d=null,e=null;if(c&&c.name&&(d=N.",
+ "c('/descendant::*[@usemap = \"#'+c.name+'\"]',x(c)))&&(e=U(d),!b&&\"def",
+ "ault\"!=a.shape.toLowerCase())){var f=Za(a);a=Math.min(Math.max(f.left,",
+ "0),e.width);b=Math.min(Math.max(f.top,0),e.height);c=Math.min(f.width,e",
+ ".width-a);f=Math.min(f.height,e.height-b);e=new O(a+e.left,b+e.top,c,f)",
+ "}return{r:d,rect:e||new O(0,0,0,0)}}\nfunction Za(a){var b=a.shape.toLo",
+ "werCase();a=a.coords.split(\",\");if(\"rect\"==b&&4==a.length){var b=a[",
+ "0],c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if(\"circle\"==b&&3==a.length",
+ ")return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if(\"poly\"==b&&2<a.length)",
+ "{for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f])",
+ ",d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return ne",
+ "w O(b,c,d-b,e-c)}return new O(0,0,0,0)}function $a(a){return a.replace(",
+ "/^[^\\S\\xa0]+|[^\\S\\xa0]+$/g,\"\")}\nfunction bb(a){var b=[];cb(a,b);",
+ "var c=b;a=c.length;for(var b=Array(a),c=l(c)?c.split(\"\"):c,d=0;d<a;d+",
+ "+)d in c&&(b[d]=$a.call(void 0,c[d]));return $a(b.join(\"\\n\")).replac",
+ "e(/\\xa0/g,\" \")}\nfunction cb(a,b){if(Q(a,\"BR\"))b.push(\"\");else{v",
+ "ar c=Q(a,\"TD\"),d=T(a,\"display\"),e=!c&&!t(db,d),f=void 0!=a.previous",
+ "ElementSibling?a.previousElementSibling:ma(a.previousSibling),f=f?T(f,",
+ "\"display\"):\"\",g=T(a,\"float\")||T(a,\"cssFloat\")||T(a,\"styleFloat",
+ "\");!e||(\"run-in\"==f&&\"none\"==g||/^[\\s\\xa0]*$/.test(b[b.length-1]",
+ "||\"\"))||b.push(\"\");var q=Va(a),m=null,B=null;q&&(m=T(a,\"white-spac",
+ "e\"),B=T(a,\"text-transform\"));r(a.childNodes,function(a){a.nodeType==",
+ "ka&&q?eb(a,b,m,B):Q(a)&&cb(a,b)});f=b[b.length-1]||\"\";!c&&\n\"table-c",
+ "ell\"!=d||(!f||ca(f))||(b[b.length-1]+=\" \");e&&(\"run-in\"!=d&&!/^[",
+ "\\s\\xa0]*$/.test(f))&&b.push(\"\")}}var db=\"inline inline-block inlin",
+ "e-table none table-cell table-column table-column-group\".split(\" \");",
+ "\nfunction eb(a,b,c,d){a=a.nodeValue.replace(/\\u200b/g,\"\");a=a.repla",
+ "ce(/(\\r\\n|\\r|\\n)/g,\"\\n\");if(\"normal\"==c||\"nowrap\"==c)a=a.rep",
+ "lace(/\\n/g,\" \");a=\"pre\"==c||\"pre-wrap\"==c?a.replace(/[ \\f\\t\\v",
+ "\\u2028\\u2029]/g,\"\\u00a0\"):a.replace(/[\\ \\f\\t\\v\\u2028\\u2029]+",
+ "/g,\" \");\"capitalize\"==d?a=a.replace(/(^|\\s)(\\S)/g,function(a,b,c)",
+ "{return b+c.toUpperCase()}):\"uppercase\"==d?a=a.toUpperCase():\"lowerc",
+ "ase\"==d&&(a=a.toLowerCase());c=b.pop()||\"\";ca(c)&&0==a.lastIndexOf(",
+ "\" \",0)&&(a=a.substr(1));b.push(c+a)}\nfunction Xa(a){var b=1,c=T(a,\"",
+ "opacity\");c&&(b=Number(c));(a=S(a))&&(b*=Xa(a));return b};var W={},X={",
+ "};W.v=function(a,b,c){var d;try{d=C.d(\"a\",b)}catch(e){d=z(w(b),\"A\",",
+ "null,b)}return ha(d,function(b){b=bb(b);return c&&-1!=b.indexOf(a)||b==",
+ "a})};W.s=function(a,b,c){var d;try{d=C.d(\"a\",b)}catch(e){d=z(w(b),\"A",
+ "\",null,b)}return s(d,function(b){b=bb(b);return c&&-1!=b.indexOf(a)||b",
+ "==a})};W.c=function(a,b){return W.v(a,b,!1)};W.d=function(a,b){return W",
+ ".s(a,b,!1)};X.c=function(a,b){return W.v(a,b,!0)};X.d=function(a,b){ret",
+ "urn W.s(a,b,!0)};var fb={c:function(a,b){return b.getElementsByTagName(",
+ "a)[0]||null},d:function(a,b){return b.getElementsByTagName(a)}};var gb=",
+ "{className:A,\"class name\":A,css:C,\"css selector\":C,id:{c:function(a",
+ ",b){var c=w(b),d=l(a)?c.j.getElementById(a):a;if(!d)return null;if(R(d,",
+ "\"id\")==a&&y(b,d))return d;c=z(c,\"*\");return ha(c,function(c){return",
+ " R(c,\"id\")==a&&y(b,c)})},d:function(a,b){var c=z(w(b),\"*\",null,b);r",
+ "eturn s(c,function(b){return R(b,\"id\")==a})}},linkText:W,\"link text",
+ "\":W,name:{c:function(a,b){var c=z(w(b),\"*\",null,b);return ha(c,funct",
+ "ion(b){return R(b,\"name\")==a})},d:function(a,b){var c=z(w(b),\"*\",nu",
+ "ll,b);return s(c,function(b){return R(b,\n\"name\")==a})}},partialLinkT",
+ "ext:X,\"partial link text\":X,tagName:fb,\"tag name\":fb,xpath:N};funct",
+ "ion hb(a,b){var c;a:{for(c in a)if(a.hasOwnProperty(c))break a;c=null}i",
+ "f(c){var d=gb[c];if(d&&n(d.c))return d.c(a[c],b||ba.document)}throw Err",
+ "or(\"Unsupported locator strategy: \"+c);}var Y=[\"_\"],Z=k;Y[0]in Z||!",
+ "Z.execScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shif",
+ "t());)Y.length||void 0===hb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=hb;; return this._",
+ ".apply(null,arguments);}.apply({navigator:typeof window!=undefined?wind",
+ "ow.navigator:null,document:typeof window!=undefined?window.document:nul",
+ "l}, arguments);}",
+ NULL
+};
+
+const char* const FIND_ELEMENTS[] = {
+ "function(){return function(){function h(a){return function(){return a}}",
+ "var k=this;\nfunction aa(a){var b=typeof a;if(\"object\"==b)if(a){if(a ",
+ "instanceof Array)return\"array\";if(a instanceof Object)return b;var c=",
+ "Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"obj",
+ "ect\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefine",
+ "d\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.",
+ "propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]",
+ "\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"call\"))return\"function\"}else r",
+ "eturn\"null\";\nelse if(\"function\"==b&&\"undefined\"==typeof a.call)r",
+ "eturn\"object\";return b}function l(a){return\"string\"==typeof a}funct",
+ "ion n(a){return\"function\"==aa(a)};var ba=window;function ca(a){var b=",
+ "a.length-1;return 0<=b&&a.indexOf(\" \",b)==b}function p(a){return a.re",
+ "place(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")}function da(a){return String(a",
+ ").replace(/\\-([a-z])/g,function(a,c){return c.toUpperCase()})};var ea=",
+ "Array.prototype;function r(a,b){for(var c=a.length,d=l(a)?a.split(\"\")",
+ ":a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function s(a,b){for(var ",
+ "c=a.length,d=[],e=0,f=l(a)?a.split(\"\"):a,g=0;g<c;g++)if(g in f){var q",
+ "=f[g];b.call(void 0,q,g,a)&&(d[e++]=q)}return d}function fa(a,b){if(a.r",
+ "educe)return a.reduce(b,\"\");var c=\"\";r(a,function(d,e){c=b.call(voi",
+ "d 0,c,d,e,a)});return c}function ga(a,b){for(var c=a.length,d=l(a)?a.sp",
+ "lit(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;ret",
+ "urn!1}\nfunction ha(a,b){var c;a:{c=a.length;for(var d=l(a)?a.split(\"",
+ "\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}",
+ "return 0>c?null:l(a)?a.charAt(c):a[c]}function t(a,b){var c;a:if(l(a))c",
+ "=l(b)&&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c i",
+ "n a&&a[c]===b)break a;c=-1}return 0<=c}function ia(a,b,c){return 2>=arg",
+ "uments.length?ea.slice.call(a,b):ea.slice.call(a,b,c)};var ja;function ",
+ "u(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}u.prototype.toString",
+ "=function(){return\"(\"+this.x+\", \"+this.y+\")\"};u.prototype.ceil=fu",
+ "nction(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}",
+ ";u.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.flo",
+ "or(this.y);return this};u.prototype.round=function(){this.x=Math.round(",
+ "this.x);this.y=Math.round(this.y);return this};function v(a,b){this.wid",
+ "th=a;this.height=b}v.prototype.toString=function(){return\"(\"+this.wid",
+ "th+\" x \"+this.height+\")\"};v.prototype.ceil=function(){this.width=Ma",
+ "th.ceil(this.width);this.height=Math.ceil(this.height);return this};v.p",
+ "rototype.floor=function(){this.width=Math.floor(this.width);this.height",
+ "=Math.floor(this.height);return this};v.prototype.round=function(){this",
+ ".width=Math.round(this.width);this.height=Math.round(this.height);retur",
+ "n this};var ka=3;function w(a){return a?new la(x(a)):ja||(ja=new la)}fu",
+ "nction ma(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;return a}functi",
+ "on y(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if(\"",
+ "undefined\"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.co",
+ "mpareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}",
+ "\nfunction na(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return",
+ " a.compareDocumentPosition(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNo",
+ "de&&\"sourceIndex\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType",
+ ";if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.pare",
+ "ntNode;return e==f?oa(a,b):!c&&y(e,b)?-1*pa(a,b):!d&&y(f,a)?pa(b,a):(c?",
+ "a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=x(a);c=d",
+ ".createRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selec",
+ "tNode(b);d.collapse(!0);\nreturn c.compareBoundaryPoints(k.Range.START_",
+ "TO_END,d)}function pa(a,b){var c=a.parentNode;if(c==b)return-1;for(var ",
+ "d=b;d.parentNode!=c;)d=d.parentNode;return oa(d,a)}function oa(a,b){for",
+ "(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}function x(a){r",
+ "eturn 9==a.nodeType?a:a.ownerDocument||a.document}function qa(a,b){a=a.",
+ "parentNode;for(var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return n",
+ "ull}function la(a){this.j=a||k.document||document}\nfunction z(a,b,c,d)",
+ "{a=d||a.j;b=b&&\"*\"!=b?b.toUpperCase():\"\";if(a.querySelectorAll&&a.q",
+ "uerySelector&&(b||c))c=a.querySelectorAll(b+(c?\".\"+c:\"\"));else if(c",
+ "&&a.getElementsByClassName)if(a=a.getElementsByClassName(c),b){d={};for",
+ "(var e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;c=d}else",
+ " c=a;else if(a=a.getElementsByTagName(b||\"*\"),c){d={};for(f=e=0;g=a[f",
+ "];f++)b=g.className,\"function\"==typeof b.split&&t(b.split(/\\s+/),c)&",
+ "&(d[e++]=g);d.length=e;c=d}else c=a;return c}\nfunction ra(a){var b=a.j",
+ ";a=b.body;b=b.parentWindow||b.defaultView;return new u(b.pageXOffset||a",
+ ".scrollLeft,b.pageYOffset||a.scrollTop)}la.prototype.contains=y;var A={",
+ "n:function(a){return!(!a.querySelectorAll||!a.querySelector)},e:functio",
+ "n(a,b){if(!a)throw Error(\"No class name specified\");a=p(a);if(1<a.spl",
+ "it(/\\s+/).length)throw Error(\"Compound class names not permitted\");i",
+ "f(A.n(b))return b.querySelector(\".\"+a.replace(/\\./g,\"\\\\.\"))||nul",
+ "l;var c=z(w(b),\"*\",a,b);return c.length?c[0]:null},c:function(a,b){if",
+ "(!a)throw Error(\"No class name specified\");a=p(a);if(1<a.split(/\\s+/",
+ ").length)throw Error(\"Compound class names not permitted\");return A.n",
+ "(b)?b.querySelectorAll(\".\"+\na.replace(/\\./g,\"\\\\.\")):z(w(b),\"*",
+ "\",a,b)}};var C={e:function(a,b){n(b.querySelector);if(!a)throw Error(",
+ "\"No selector specified\");a=p(a);var c=b.querySelector(a);return c&&1=",
+ "=c.nodeType?c:null},c:function(a,b){n(b.querySelectorAll);if(!a)throw E",
+ "rror(\"No selector specified\");a=p(a);return b.querySelectorAll(a)}};v",
+ "ar sa={aliceblue:\"#f0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",",
+ "aquamarine:\"#7fffd4\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ff",
+ "e4c4\",black:\"#000000\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",bl",
+ "ueviolet:\"#8a2be2\",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:",
+ "\"#5f9ea0\",chartreuse:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f5",
+ "0\",cornflowerblue:\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\"",
+ ",cyan:\"#00ffff\",darkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenr",
+ "od:\"#b8860b\",darkgray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\"",
+ "#a9a9a9\",darkkhaki:\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:",
+ "\"#556b2f\",darkorange:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b",
+ "0000\",darksalmon:\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"",
+ "#483d8b\",darkslategray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturqu",
+ "oise:\"#00ced1\",darkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblu",
+ "e:\"#00bfff\",dimgray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e9",
+ "0ff\",firebrick:\"#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b",
+ "22\",fuchsia:\"#ff00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\"",
+ ",gold:\"#ffd700\",goldenrod:\"#daa520\",gray:\"#808080\",green:\"#00800",
+ "0\",greenyellow:\"#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpi",
+ "nk:\"#ff69b4\",indianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0",
+ "\",khaki:\"#f0e68c\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",law",
+ "ngreen:\"#7cfc00\",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",light",
+ "coral:\"#f08080\",lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2",
+ "\",lightgray:\"#d3d3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",l",
+ "ightpink:\"#ffb6c1\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa",
+ "\",lightskyblue:\"#87cefa\",lightslategray:\"#778899\",lightslategrey:",
+ "\"#778899\",lightsteelblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#",
+ "00ff00\",limegreen:\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",ma",
+ "roon:\"#800000\",mediumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",me",
+ "diumorchid:\"#ba55d3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb37",
+ "1\",mediumslateblue:\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumtur",
+ "quoise:\"#48d1cc\",mediumvioletred:\"#c71585\",midnightblue:\"#191970\"",
+ ",mintcream:\"#f5fffa\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",nav",
+ "ajowhite:\"#ffdead\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#8080",
+ "00\",olivedrab:\"#6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orc",
+ "hid:\"#da70d6\",palegoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paletur",
+ "quoise:\"#afeeee\",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",pea",
+ "chpuff:\"#ffdab9\",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",p",
+ "owderblue:\"#b0e0e6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#b",
+ "c8f8f\",royalblue:\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072",
+ "\",sandybrown:\"#f4a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",s",
+ "ienna:\"#a0522d\",silver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6",
+ "a5acd\",slategray:\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",sp",
+ "ringgreen:\"#00ff7f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008",
+ "080\",thistle:\"#d8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",viol",
+ "et:\"#ee82ee\",wheat:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5",
+ "\",yellow:\"#ffff00\",yellowgreen:\"#9acd32\"};var ta=\"background-colo",
+ "r border-top-color border-right-color border-bottom-color border-left-c",
+ "olor color outline-color\".split(\" \"),ua=/#([0-9a-fA-F])([0-9a-fA-F])",
+ "([0-9a-fA-F])/;function va(a){if(!wa.test(a))throw Error(\"'\"+a+\"' is",
+ " not a valid hex color\");4==a.length&&(a=a.replace(ua,\"#$1$1$2$2$3$3",
+ "\"));return a.toLowerCase()}var wa=/^#(?:[0-9a-f]{3}){1,2}$/i,xa=/^(?:r",
+ "gba)?\\((\\d{1,3}),\\s?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$",
+ "/i;\nfunction ya(a){var b=a.match(xa);if(b){a=Number(b[1]);var c=Number",
+ "(b[2]),d=Number(b[3]),b=Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=",
+ "d&&255>=d&&0<=b&&1>=b)return[a,c,d,b]}return[]}var za=/^(?:rgb)?\\((0|[",
+ "1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;functio",
+ "n Aa(a){var b=a.match(za);if(b){a=Number(b[1]);var c=Number(b[2]),b=Num",
+ "ber(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}ret",
+ "urn[]};function D(a,b){this.code=a;this.state=Ba[a]||Ca;this.message=b|",
+ "|\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(a){return ",
+ "a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.",
+ "indexOf(\"Error\",d)!=d)c+=\"Error\";this.name=c;c=Error(this.message);",
+ "c.name=this.name;this.stack=c.stack||\"\"}(function(){var a=Error;funct",
+ "ion b(){}b.prototype=a.prototype;D.P=a.prototype;D.prototype=new b})();",
+ "\nvar Ca=\"unknown error\",Ba={15:\"element not selectable\",11:\"eleme",
+ "nt not visible\",31:\"ime engine activation failed\",30:\"ime not avail",
+ "able\",24:\"invalid cookie domain\",29:\"invalid element coordinates\",",
+ "12:\"invalid element state\",32:\"invalid selector\",51:\"invalid selec",
+ "tor\",52:\"invalid selector\",17:\"javascript error\",405:\"unsupported",
+ " operation\",34:\"move target out of bounds\",27:\"no such alert\",7:\"",
+ "no such element\",8:\"no such frame\",23:\"no such window\",28:\"script",
+ " timeout\",33:\"session not created\",10:\"stale element reference\",\n",
+ "0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"unexpecte",
+ "d alert open\"};Ba[13]=Ca;Ba[9]=\"unknown command\";D.prototype.toStrin",
+ "g=function(){return this.name+\": \"+this.message};function E(a){var b=",
+ "null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerTe",
+ "xt:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==c",
+ "){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do ",
+ "1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&",
+ "!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction ",
+ "F(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){",
+ "return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}func",
+ "tion G(a,b,c,d,e){return Da.call(null,a,b,l(c)?c:null,l(d)?d:null,e||ne",
+ "w H)}\nfunction Da(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b.",
+ "getElementsByName(d),r(b,function(b){a.matches(b)&&e.add(b)})):b.getEle",
+ "mentsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),r(b,fu",
+ "nction(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagN",
+ "ame&&(b=b.getElementsByTagName(a.getName()),r(b,function(a){F(a,c,d)&&e",
+ ".add(a)}));return e}function Ea(a,b,c,d,e){for(b=b.firstChild;b;b=b.nex",
+ "tSibling)F(b,c,d)&&a.matches(b)&&e.add(b);return e};function H(){this.f",
+ "=this.d=null;this.k=0}function Fa(a){this.t=a;this.next=this.m=null}H.p",
+ "rototype.unshift=function(a){a=new Fa(a);a.next=this.d;this.f?this.d.m=",
+ "a:this.d=this.f=a;this.d=a;this.k++};H.prototype.add=function(a){a=new ",
+ "Fa(a);a.m=this.f;this.d?this.f.next=a:this.d=this.f=a;this.f=a;this.k++",
+ "};function Ga(a){return(a=a.d)?a.t:null}function I(a){return new Ha(a,!",
+ "1)}function Ha(a,b){this.M=a;this.p=(this.u=b)?a.f:a.d;this.B=null}\nHa",
+ ".prototype.next=function(){var a=this.p;if(null==a)return null;var b=th",
+ "is.B=a;this.p=this.u?a.m:a.next;return b.t};function J(a,b,c,d,e){b=b.e",
+ "valuate(d);c=c.evaluate(d);var f;if(b instanceof H&&c instanceof H){e=I",
+ "(b);for(d=e.next();d;d=e.next())for(b=I(c),f=b.next();f;f=b.next())if(a",
+ "(E(d),E(f)))return!0;return!1}if(b instanceof H||c instanceof H){b inst",
+ "anceof H?e=b:(e=c,c=b);e=I(e);b=typeof c;for(d=e.next();d;d=e.next()){s",
+ "witch(b){case \"number\":d=+E(d);break;case \"boolean\":d=!!E(d);break;",
+ "case \"string\":d=E(d);break;default:throw Error(\"Illegal primitive ty",
+ "pe for comparison.\");}if(a(d,c))return!0}return!1}return e?\n\"boolean",
+ "\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number\"==typeof b||\"",
+ "number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function Ia(a,b,c,d){this.C",
+ "=a;this.O=b;this.A=c;this.i=d}Ia.prototype.toString=function(){return t",
+ "his.C};var Ja={};function K(a,b,c,d){if(a in Ja)throw Error(\"Binary op",
+ "erator already created: \"+a);a=new Ia(a,b,c,d);Ja[a.toString()]=a}K(\"",
+ "div\",6,1,function(a,b,c){return a.b(c)/b.b(c)});K(\"mod\",6,1,function",
+ "(a,b,c){return a.b(c)%b.b(c)});K(\"*\",6,1,function(a,b,c){return a.b(c",
+ ")*b.b(c)});\nK(\"+\",5,1,function(a,b,c){return a.b(c)+b.b(c)});K(\"-\"",
+ ",5,1,function(a,b,c){return a.b(c)-b.b(c)});K(\"<\",4,2,function(a,b,c)",
+ "{return J(function(a,b){return a<b},a,b,c)});K(\">\",4,2,function(a,b,c",
+ "){return J(function(a,b){return a>b},a,b,c)});K(\"<=\",4,2,function(a,b",
+ ",c){return J(function(a,b){return a<=b},a,b,c)});K(\">=\",4,2,function(",
+ "a,b,c){return J(function(a,b){return a>=b},a,b,c)});K(\"=\",3,2,functio",
+ "n(a,b,c){return J(function(a,b){return a==b},a,b,c,!0)});\nK(\"!=\",3,2",
+ ",function(a,b,c){return J(function(a,b){return a!=b},a,b,c,!0)});K(\"an",
+ "d\",2,2,function(a,b,c){return a.h(c)&&b.h(c)});K(\"or\",1,2,function(a",
+ ",b,c){return a.h(c)||b.h(c)});function Ka(a,b,c,d,e,f,g,q,m){this.l=a;t",
+ "his.A=b;this.L=c;this.K=d;this.J=e;this.i=f;this.I=g;this.H=void 0!==q?",
+ "q:g;this.N=!!m}Ka.prototype.toString=function(){return this.l};var La={",
+ "};function L(a,b,c,d,e,f,g,q){if(a in La)throw Error(\"Function already",
+ " created: \"+a+\".\");La[a]=new Ka(a,b,c,d,!1,e,f,g,q)}L(\"boolean\",2,",
+ "!1,!1,function(a,b){return b.h(a)},1);L(\"ceiling\",1,!1,!1,function(a,",
+ "b){return Math.ceil(b.b(a))},1);\nL(\"concat\",3,!1,!1,function(a,b){va",
+ "r c=ia(arguments,1);return fa(c,function(b,c){return b+c.a(a)})},2,null",
+ ");L(\"contains\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return-1!=b.",
+ "indexOf(a)},2);L(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).k",
+ "},1,1,!0);L(\"false\",2,!1,!1,h(!1),0);L(\"floor\",1,!1,!1,function(a,b",
+ "){return Math.floor(b.b(a))},1);\nL(\"id\",4,!1,!1,function(a,b){var c=",
+ "a.g(),d=9==c.nodeType?c:c.ownerDocument,c=b.a(a).split(/\\s+/),e=[];r(c",
+ ",function(a){(a=d.getElementById(a))&&!t(e,a)&&e.push(a)});e.sort(na);v",
+ "ar f=new H;r(e,function(a){f.add(a)});return f},1);L(\"lang\",2,!1,!1,h",
+ "(!1),1);L(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw Err",
+ "or(\"Function last expects ()\");return a.F()},0);L(\"local-name\",3,!1",
+ ",!0,function(a,b){var c=b?Ga(b.evaluate(a)):a.g();return c?c.nodeName.t",
+ "oLowerCase():\"\"},0,1,!0);\nL(\"name\",3,!1,!0,function(a,b){var c=b?G",
+ "a(b.evaluate(a)):a.g();return c?c.nodeName.toLowerCase():\"\"},0,1,!0);",
+ "L(\"namespace-uri\",3,!0,!1,h(\"\"),0,1,!0);L(\"normalize-space\",3,!1,",
+ "!0,function(a,b){return(b?b.a(a):E(a.g())).replace(/[\\s\\xa0]+/g,\" \"",
+ ").replace(/^\\s+|\\s+$/g,\"\")},0,1);L(\"not\",2,!1,!1,function(a,b){re",
+ "turn!b.h(a)},1);L(\"number\",1,!1,!0,function(a,b){return b?b.b(a):+E(a",
+ ".g())},0,1);L(\"position\",1,!0,!1,function(a){return a.G()},0);L(\"rou",
+ "nd\",1,!1,!1,function(a,b){return Math.round(b.b(a))},1);\nL(\"starts-w",
+ "ith\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return 0==b.lastIndexOf",
+ "(a,0)},2);L(\"string\",3,!1,!0,function(a,b){return b?b.a(a):E(a.g())},",
+ "0,1);L(\"string-length\",1,!1,!0,function(a,b){return(b?b.a(a):E(a.g())",
+ ").length},0,1);\nL(\"substring\",3,!1,!1,function(a,b,c,d){c=c.b(a);if(",
+ "isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.b(a):Infinity;if(i",
+ "sNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,0)",
+ ";a=b.a(a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a",
+ ".substring(e,c+b)},2,3);L(\"substring-after\",3,!1,!1,function(a,b,c){b",
+ "=b.a(a);a=c.a(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length",
+ ")},2);\nL(\"substring-before\",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a",
+ ");a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);L(\"sum\",1,!1,!",
+ "1,function(a,b){for(var c=I(b.evaluate(a)),d=0,e=c.next();e;e=c.next())",
+ "d+=+E(e);return d},1,1,!0);L(\"translate\",3,!1,!1,function(a,b,c,d){b=",
+ "b.a(a);c=c.a(a);var e=d.a(a);a=[];for(d=0;d<c.length;d++){var f=c.charA",
+ "t(d);f in a||(a[f]=e.charAt(d))}c=\"\";for(d=0;d<b.length;d++)f=b.charA",
+ "t(d),c+=f in a?a[f]:f;return c},3);L(\"true\",2,!1,!1,h(!0),0);function",
+ " Ma(a,b,c,d){this.l=a;this.D=b;this.u=c;this.Q=d}Ma.prototype.toString=",
+ "function(){return this.l};var Na={};function M(a,b,c,d){if(a in Na)thro",
+ "w Error(\"Axis already created: \"+a);Na[a]=new Ma(a,b,c,!!d)}M(\"ances",
+ "tor\",function(a,b){for(var c=new H,d=b;d=d.parentNode;)a.matches(d)&&c",
+ ".unshift(d);return c},!0);M(\"ancestor-or-self\",function(a,b){var c=ne",
+ "w H,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},!",
+ "0);\nM(\"attribute\",function(a,b){var c=new H,d=a.getName(),e=b.attrib",
+ "utes;if(e)if(\"*\"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e.getNam",
+ "edItem(d))&&c.add(f);return c},!1);M(\"child\",function(a,b,c,d,e){retu",
+ "rn Ea.call(null,a,b,l(c)?c:null,l(d)?d:null,e||new H)},!1,!0);M(\"desce",
+ "ndant\",G,!1,!0);M(\"descendant-or-self\",function(a,b,c,d){var e=new H",
+ ";F(b,c,d)&&a.matches(b)&&e.add(b);return G(a,b,c,d,e)},!1,!0);\nM(\"fol",
+ "lowing\",function(a,b,c,d){var e=new H;do for(var f=b;f=f.nextSibling;)",
+ "F(f,c,d)&&a.matches(f)&&e.add(f),e=G(a,f,c,d,e);while(b=b.parentNode);r",
+ "eturn e},!1,!0);M(\"following-sibling\",function(a,b){for(var c=new H,d",
+ "=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);M(\"namespace",
+ "\",function(){return new H},!1);M(\"parent\",function(a,b){var c=new H;",
+ "if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement)",
+ ",c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nM(\"preced",
+ "ing\",function(a,b,c,d){var e=new H,f=[];do f.unshift(b);while(b=b.pare",
+ "ntNode);for(var g=1,q=f.length;g<q;g++){var m=[];for(b=f[g];b=b.previou",
+ "sSibling;)m.unshift(b);for(var B=0,ab=m.length;B<ab;B++)b=m[B],F(b,c,d)",
+ "&&a.matches(b)&&e.add(b),e=G(a,b,c,d,e)}return e},!0,!0);M(\"preceding-",
+ "sibling\",function(a,b){for(var c=new H,d=b;d=d.previousSibling;)a.matc",
+ "hes(d)&&c.unshift(d);return c},!0);M(\"self\",function(a,b){var c=new H",
+ ";a.matches(b)&&c.add(b);return c},!1);var N={};N.w=function(){var a={R:",
+ "\"http://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}(",
+ ");N.i=function(a,b,c){var d=x(a);try{var e=d.createNSResolver?d.createN",
+ "SResolver(d.documentElement):N.w;return d.evaluate(b,a,e,c,null)}catch(",
+ "f){throw new D(32,\"Unable to locate an element with the xpath expressi",
+ "on \"+b+\" because of the following error:\\n\"+f);}};N.o=function(a,b)",
+ "{if(!a||1!=a.nodeType)throw new D(32,'The result of the xpath expressio",
+ "n \"'+b+'\" is: '+a+\". It should be an element.\");};\nN.e=function(a,",
+ "b){var c=function(){var c=N.i(b,a,9);return c?c.singleNodeValue||null:b",
+ ".selectSingleNode?(c=x(b),c.setProperty&&c.setProperty(\"SelectionLangu",
+ "age\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||N.o(c,a);retu",
+ "rn c};\nN.c=function(a,b){var c=function(){var c=N.i(b,a,7);if(c){for(v",
+ "ar e=c.snapshotLength,f=[],g=0;g<e;++g)f.push(c.snapshotItem(g));return",
+ " f}return b.selectNodes?(c=x(b),c.setProperty&&c.setProperty(\"Selectio",
+ "nLanguage\",\"XPath\"),b.selectNodes(a)):[]}();r(c,function(b){N.o(b,a)",
+ "});return c};function O(a,b,c,d){this.left=a;this.top=b;this.width=c;th",
+ "is.height=d}O.prototype.toString=function(){return\"(\"+this.left+\", ",
+ "\"+this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};O.prototype",
+ ".contains=function(a){return a instanceof O?this.left<=a.left&&this.lef",
+ "t+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.",
+ "top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&",
+ "a.y<=this.top+this.height};\nO.prototype.ceil=function(){this.left=Math",
+ ".ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this",
+ ".width);this.height=Math.ceil(this.height);return this};O.prototype.flo",
+ "or=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.",
+ "top);this.width=Math.floor(this.width);this.height=Math.floor(this.heig",
+ "ht);return this};\nO.prototype.round=function(){this.left=Math.round(th",
+ "is.left);this.top=Math.round(this.top);this.width=Math.round(this.width",
+ ");this.height=Math.round(this.height);return this};function Oa(a,b){var",
+ " c=x(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defa",
+ "ultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"",
+ "\"}function P(a){return Oa(a,\"position\")||(a.currentStyle?a.currentSt",
+ "yle.position:null)||a.style&&a.style.position}function Pa(a){var b;try{",
+ "b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom",
+ ":0}}return b}\nfunction Qa(a){var b=x(a),c=P(a),d=\"fixed\"==c||\"absol",
+ "ute\"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=P(a),d=d&&\"sta",
+ "tic\"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWi",
+ "dth||a.scrollHeight>a.clientHeight||\"fixed\"==c||\"absolute\"==c||\"re",
+ "lative\"==c))return a;return null}\nfunction Ra(a){if(1==a.nodeType){va",
+ "r b;if(a.getBoundingClientRect)b=Pa(a),b=new u(b.left,b.top);else{b=ra(",
+ "w(a));var c=x(a),d=P(a),e=new u(0,0),f=(c?x(c):document).documentElemen",
+ "t;if(a!=f)if(a.getBoundingClientRect)a=Pa(a),c=ra(w(c)),e.x=a.left+c.x,",
+ "e.y=a.top+c.y;else if(c.getBoxObjectFor)a=c.getBoxObjectFor(a),c=c.getB",
+ "oxObjectFor(f),e.x=a.screenX-c.screenX,e.y=a.screenY-c.screenY;else{var",
+ " g=a;do{e.x+=g.offsetLeft;e.y+=g.offsetTop;g!=a&&(e.x+=g.clientLeft||0,",
+ "e.y+=g.clientTop||0);if(\"fixed\"==P(g)){e.x+=\nc.body.scrollLeft;e.y+=",
+ "c.body.scrollTop;break}g=g.offsetParent}while(g&&g!=a);\"absolute\"==d&",
+ "&(e.y-=c.body.offsetTop);for(g=a;(g=Qa(g))&&g!=c.body&&g!=f;)e.x-=g.scr",
+ "ollLeft,e.y-=g.scrollTop}b=new u(e.x-b.x,e.y-b.y)}return b}b=n(a.q);e=a",
+ ";a.targetTouches?e=a.targetTouches[0]:b&&a.q().targetTouches&&(e=a.q().",
+ "targetTouches[0]);return new u(e.clientX,e.clientY)};function Q(a,b){re",
+ "turn!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}var Sa=/[;]+(?",
+ "=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:(?:[^']*'){2})*[^']*$)(?=(?:[^()]*",
+ "\\([^()]*\\))*[^()]*$)/;function Ta(a){var b=[];r(a.split(Sa),function(",
+ "a){var d=a.indexOf(\":\");0<d&&(a=[a.slice(0,d),a.slice(d+1)],2==a.leng",
+ "th&&b.push(a[0].toLowerCase(),\":\",a[1],\";\"))});b=b.join(\"\");retur",
+ "n b=\";\"==b.charAt(b.length-1)?b:b+\";\"}\nfunction R(a,b){b=b.toLower",
+ "Case();if(\"style\"==b)return Ta(a.style.cssText);var c=a.getAttributeN",
+ "ode(b);return c&&c.specified?c.value:null}function S(a){for(a=a.parentN",
+ "ode;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;ret",
+ "urn Q(a)?a:null}\nfunction T(a,b){var c=da(b);if(\"float\"==c||\"cssFlo",
+ "at\"==c||\"styleFloat\"==c)c=\"cssFloat\";c=Oa(a,c)||Ua(a,c);if(null===",
+ "c)c=null;else if(t(ta,b)&&(wa.test(\"#\"==c.charAt(0)?c:\"#\"+c)||Aa(c)",
+ ".length||sa&&sa[c.toLowerCase()]||ya(c).length)){var d=ya(c);if(!d.leng",
+ "th){a:if(d=Aa(c),!d.length){d=(d=sa[c.toLowerCase()])?d:\"#\"==c.charAt",
+ "(0)?c:\"#\"+c;if(wa.test(d)&&(d=va(d),d=va(d),d=[parseInt(d.substr(1,2)",
+ ",16),parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16)],d.length))b",
+ "reak a;d=[]}3==d.length&&d.push(1)}c=4!=\nd.length?c:\"rgba(\"+d.join(",
+ "\", \")+\")\"}return c}function Ua(a,b){var c=a.currentStyle||a.style,d",
+ "=c[b];void 0===d&&n(c.getPropertyValue)&&(d=c.getPropertyValue(b));retu",
+ "rn\"inherit\"!=d?void 0!==d?d:null:(c=S(a))?Ua(c,b):null}\nfunction Va(",
+ "a,b){function c(a){if(\"none\"==T(a,\"display\"))return!1;a=S(a);return",
+ "!a||c(a)}function d(a){var b=U(a);return 0<b.height&&0<b.width?!0:Q(a,",
+ "\"PATH\")&&(0<b.height||0<b.width)?(a=T(a,\"stroke-width\"),!!a&&0<pars",
+ "eInt(a,10)):\"hidden\"!=T(a,\"overflow\")&&ga(a.childNodes,function(a){",
+ "return a.nodeType==ka||Q(a)&&d(a)})}function e(a){var b=T(a,\"-o-transf",
+ "orm\")||T(a,\"-webkit-transform\")||T(a,\"-ms-transform\")||T(a,\"-moz-",
+ "transform\")||T(a,\"transform\");if(b&&\"none\"!==b)return b=Ra(a),a=U(",
+ "a),0<=b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=S(a);return!a||e(a)}if(!Q(",
+ "a))throw Error(\"Argument to isShown must be of type Element\");if(Q(a,",
+ "\"OPTION\")||Q(a,\"OPTGROUP\")){var f=qa(a,function(a){return Q(a,\"SEL",
+ "ECT\")});return!!f&&Va(f,!0)}return(f=Wa(a))?!!f.r&&0<f.rect.width&&0<f",
+ ".rect.height&&Va(f.r,b):Q(a,\"INPUT\")&&\"hidden\"==a.type.toLowerCase(",
+ ")||Q(a,\"NOSCRIPT\")||\"hidden\"==T(a,\"visibility\")||!c(a)||!b&&0==Xa",
+ "(a)||!d(a)||Ya(a)==V?!1:e(a)}var V=\"hidden\";\nfunction Ya(a){function",
+ " b(a){var b=a;if(\"visible\"==q)if(a==f)b=g;else if(a==g)return{x:\"vis",
+ "ible\",y:\"visible\"};b={x:T(b,\"overflow-x\"),y:T(b,\"overflow-y\")};a",
+ "==f&&(b.x=\"hidden\"==b.x?\"hidden\":\"auto\",b.y=\"hidden\"==b.y?\"hid",
+ "den\":\"auto\");return b}function c(a){var b=T(a,\"position\");if(\"fix",
+ "ed\"==b)return f;for(a=S(a);a&&a!=f&&(0==T(a,\"display\").lastIndexOf(",
+ "\"inline\",0)||\"absolute\"==b&&\"static\"==T(a,\"position\"));)a=S(a);",
+ "return a}var d=U(a),e=x(a),f=e.documentElement,g=e.body,q=T(f,\"overflo",
+ "w\");for(a=c(a);a;a=\nc(a)){var m=U(a),e=b(a),B=d.left>=m.left+m.width,",
+ "m=d.top>=m.top+m.height;if(B&&\"hidden\"==e.x||m&&\"hidden\"==e.y)retur",
+ "n V;if(B&&\"visible\"!=e.x||m&&\"visible\"!=e.y)return Ya(a)==V?V:\"scr",
+ "oll\"}return\"none\"}\nfunction U(a){var b=Wa(a);if(b)return b.rect;if(",
+ "n(a.getBBox))try{var c=a.getBBox();return new O(c.x,c.y,c.width,c.heigh",
+ "t)}catch(d){throw d;}else{if(Q(a,\"HTML\"))return a=((x(a)?x(a).parentW",
+ "indow||x(a).defaultView:window)||window).document,a=\"CSS1Compat\"==a.c",
+ "ompatMode?a.documentElement:a.body,a=new v(a.clientWidth,a.clientHeight",
+ "),new O(0,0,a.width,a.height);var b=Ra(a),c=a.offsetWidth,e=a.offsetHei",
+ "ght;c||(e||!a.getBoundingClientRect)||(a=a.getBoundingClientRect(),c=a.",
+ "right-a.left,e=a.bottom-a.top);\nreturn new O(b.x,b.y,c,e)}}function Wa",
+ "(a){var b=Q(a,\"MAP\");if(!b&&!Q(a,\"AREA\"))return null;var c=b?a:Q(a.",
+ "parentNode,\"MAP\")?a.parentNode:null,d=null,e=null;if(c&&c.name&&(d=N.",
+ "e('/descendant::*[@usemap = \"#'+c.name+'\"]',x(c)))&&(e=U(d),!b&&\"def",
+ "ault\"!=a.shape.toLowerCase())){var f=Za(a);a=Math.min(Math.max(f.left,",
+ "0),e.width);b=Math.min(Math.max(f.top,0),e.height);c=Math.min(f.width,e",
+ ".width-a);f=Math.min(f.height,e.height-b);e=new O(a+e.left,b+e.top,c,f)",
+ "}return{r:d,rect:e||new O(0,0,0,0)}}\nfunction Za(a){var b=a.shape.toLo",
+ "werCase();a=a.coords.split(\",\");if(\"rect\"==b&&4==a.length){var b=a[",
+ "0],c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if(\"circle\"==b&&3==a.length",
+ ")return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if(\"poly\"==b&&2<a.length)",
+ "{for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b,a[f])",
+ ",d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);return ne",
+ "w O(b,c,d-b,e-c)}return new O(0,0,0,0)}function $a(a){return a.replace(",
+ "/^[^\\S\\xa0]+|[^\\S\\xa0]+$/g,\"\")}\nfunction bb(a){var b=[];cb(a,b);",
+ "var c=b;a=c.length;for(var b=Array(a),c=l(c)?c.split(\"\"):c,d=0;d<a;d+",
+ "+)d in c&&(b[d]=$a.call(void 0,c[d]));return $a(b.join(\"\\n\")).replac",
+ "e(/\\xa0/g,\" \")}\nfunction cb(a,b){if(Q(a,\"BR\"))b.push(\"\");else{v",
+ "ar c=Q(a,\"TD\"),d=T(a,\"display\"),e=!c&&!t(db,d),f=void 0!=a.previous",
+ "ElementSibling?a.previousElementSibling:ma(a.previousSibling),f=f?T(f,",
+ "\"display\"):\"\",g=T(a,\"float\")||T(a,\"cssFloat\")||T(a,\"styleFloat",
+ "\");!e||(\"run-in\"==f&&\"none\"==g||/^[\\s\\xa0]*$/.test(b[b.length-1]",
+ "||\"\"))||b.push(\"\");var q=Va(a),m=null,B=null;q&&(m=T(a,\"white-spac",
+ "e\"),B=T(a,\"text-transform\"));r(a.childNodes,function(a){a.nodeType==",
+ "ka&&q?eb(a,b,m,B):Q(a)&&cb(a,b)});f=b[b.length-1]||\"\";!c&&\n\"table-c",
+ "ell\"!=d||(!f||ca(f))||(b[b.length-1]+=\" \");e&&(\"run-in\"!=d&&!/^[",
+ "\\s\\xa0]*$/.test(f))&&b.push(\"\")}}var db=\"inline inline-block inlin",
+ "e-table none table-cell table-column table-column-group\".split(\" \");",
+ "\nfunction eb(a,b,c,d){a=a.nodeValue.replace(/\\u200b/g,\"\");a=a.repla",
+ "ce(/(\\r\\n|\\r|\\n)/g,\"\\n\");if(\"normal\"==c||\"nowrap\"==c)a=a.rep",
+ "lace(/\\n/g,\" \");a=\"pre\"==c||\"pre-wrap\"==c?a.replace(/[ \\f\\t\\v",
+ "\\u2028\\u2029]/g,\"\\u00a0\"):a.replace(/[\\ \\f\\t\\v\\u2028\\u2029]+",
+ "/g,\" \");\"capitalize\"==d?a=a.replace(/(^|\\s)(\\S)/g,function(a,b,c)",
+ "{return b+c.toUpperCase()}):\"uppercase\"==d?a=a.toUpperCase():\"lowerc",
+ "ase\"==d&&(a=a.toLowerCase());c=b.pop()||\"\";ca(c)&&0==a.lastIndexOf(",
+ "\" \",0)&&(a=a.substr(1));b.push(c+a)}\nfunction Xa(a){var b=1,c=T(a,\"",
+ "opacity\");c&&(b=Number(c));(a=S(a))&&(b*=Xa(a));return b};var W={},X={",
+ "};W.v=function(a,b,c){var d;try{d=C.c(\"a\",b)}catch(e){d=z(w(b),\"A\",",
+ "null,b)}return ha(d,function(b){b=bb(b);return c&&-1!=b.indexOf(a)||b==",
+ "a})};W.s=function(a,b,c){var d;try{d=C.c(\"a\",b)}catch(e){d=z(w(b),\"A",
+ "\",null,b)}return s(d,function(b){b=bb(b);return c&&-1!=b.indexOf(a)||b",
+ "==a})};W.e=function(a,b){return W.v(a,b,!1)};W.c=function(a,b){return W",
+ ".s(a,b,!1)};X.e=function(a,b){return W.v(a,b,!0)};X.c=function(a,b){ret",
+ "urn W.s(a,b,!0)};var fb={e:function(a,b){return b.getElementsByTagName(",
+ "a)[0]||null},c:function(a,b){return b.getElementsByTagName(a)}};var gb=",
+ "{className:A,\"class name\":A,css:C,\"css selector\":C,id:{e:function(a",
+ ",b){var c=w(b),d=l(a)?c.j.getElementById(a):a;if(!d)return null;if(R(d,",
+ "\"id\")==a&&y(b,d))return d;c=z(c,\"*\");return ha(c,function(c){return",
+ " R(c,\"id\")==a&&y(b,c)})},c:function(a,b){var c=z(w(b),\"*\",null,b);r",
+ "eturn s(c,function(b){return R(b,\"id\")==a})}},linkText:W,\"link text",
+ "\":W,name:{e:function(a,b){var c=z(w(b),\"*\",null,b);return ha(c,funct",
+ "ion(b){return R(b,\"name\")==a})},c:function(a,b){var c=z(w(b),\"*\",nu",
+ "ll,b);return s(c,function(b){return R(b,\n\"name\")==a})}},partialLinkT",
+ "ext:X,\"partial link text\":X,tagName:fb,\"tag name\":fb,xpath:N};funct",
+ "ion hb(a,b){var c;a:{for(c in a)if(a.hasOwnProperty(c))break a;c=null}i",
+ "f(c){var d=gb[c];if(d&&n(d.c))return d.c(a[c],b||ba.document)}throw Err",
+ "or(\"Unsupported locator strategy: \"+c);}var Y=[\"_\"],Z=k;Y[0]in Z||!",
+ "Z.execScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shif",
+ "t());)Y.length||void 0===hb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=hb;; return this._",
+ ".apply(null,arguments);}.apply({navigator:typeof window!=undefined?wind",
+ "ow.navigator:null,document:typeof window!=undefined?window.document:nul",
+ "l}, arguments);}",
+ NULL
+};
+
+const char* const GET_APPCACHE_STATUS[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.a=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"appcache\"){case \"appc",
+ "ache\":return null!=a.applicationCache;case \"browser_connection\":retu",
+ "rn null!=a.navigator&&null!=a.navigator.onLine;case \"database\":return",
+ " null!=a.openDatabase;case \"location\":return k?!1:null!=a.navigator&&",
+ "null!=a.navigator.geolocation;case \"local_storage\":return null!=a.loc",
+ "alStorage;case \"session_storage\":return null!=a.sessionStorage&&null!",
+ "=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API identi",
+ "fier provided as parameter\");}};function n(){var a;if(m())a=c.applicat",
+ "ionCache.status;else throw new d(13,\"Undefined application cache\");re",
+ "turn a}var p=[\"_\"],q=this;p[0]in q||!q.execScript||q.execScript(\"var",
+ " \"+p[0]);for(var r;p.length&&(r=p.shift());)p.length||void 0===n?q=q[r",
+ "]?q[r]:q[r]={}:q[r]=n;; return this._.apply(null,arguments);}.apply({na",
+ "vigator:typeof window!=undefined?window.navigator:null,document:typeof ",
+ "window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_ATTRIBUTE[] = {
+ "function(){return function(){function e(a){return function(){return a}}",
+ "var h=this;function k(a){return\"string\"==typeof a}function l(a){var b",
+ "=typeof a;return\"object\"==b&&null!=a||\"function\"==b};var m=Array.pr",
+ "ototype;function n(a,b){if(k(a))return k(b)&&1==b.length?a.indexOf(b,0)",
+ ":-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1}fu",
+ "nction p(a,b){for(var c=a.length,d=k(a)?a.split(\"\"):a,f=0;f<c;f++)f i",
+ "n d&&b.call(void 0,d[f],f,a)}function aa(a,b){if(a.reduce)return a.redu",
+ "ce(b,\"\");var c=\"\";p(a,function(d,f){c=b.call(void 0,c,d,f,a)});retu",
+ "rn c}function ba(a,b,c){return 2>=arguments.length?m.slice.call(a,b):m.",
+ "slice.call(a,b,c)};function q(a,b){this.code=a;this.state=s[a]||t;this.",
+ "message=b||\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,function(",
+ "a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;",
+ "if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";this.name=c;c=Error(this",
+ ".message);c.name=this.name;this.stack=c.stack||\"\"}(function(){var a=E",
+ "rror;function b(){}b.prototype=a.prototype;q.N=a.prototype;q.prototype=",
+ "new b})();\nvar t=\"unknown error\",s={15:\"element not selectable\",11",
+ ":\"element not visible\",31:\"ime engine activation failed\",30:\"ime n",
+ "ot available\",24:\"invalid cookie domain\",29:\"invalid element coordi",
+ "nates\",12:\"invalid element state\",32:\"invalid selector\",51:\"inval",
+ "id selector\",52:\"invalid selector\",17:\"javascript error\",405:\"uns",
+ "upported operation\",34:\"move target out of bounds\",27:\"no such aler",
+ "t\",7:\"no such element\",8:\"no such frame\",23:\"no such window\",28:",
+ "\"script timeout\",33:\"session not created\",10:\"stale element refere",
+ "nce\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\",26:\"u",
+ "nexpected alert open\"};s[13]=t;s[9]=\"unknown command\";q.prototype.to",
+ "String=function(){return this.name+\": \"+this.message};var u,w,x,z=h.n",
+ "avigator;x=z&&z.platform||\"\";u=-1!=x.indexOf(\"Mac\");w=-1!=x.indexOf",
+ "(\"Win\");var A=-1!=x.indexOf(\"Linux\");function B(a,b){if(a.contains&",
+ "&1==b.nodeType)return a==b||a.contains(b);if(\"undefined\"!=typeof a.co",
+ "mpareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)",
+ "&16);for(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction ca(a,b){if(a==",
+ "b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPositio",
+ "n(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&&\"sourceIndex\"in a.p",
+ "arentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sourceI",
+ "ndex-b.sourceIndex;var f=a.parentNode,g=b.parentNode;return f==g?C(a,b)",
+ ":!c&&B(f,b)?-1*D(a,b):!d&&B(g,a)?D(b,a):(c?a.sourceIndex:f.sourceIndex)",
+ "-(d?b.sourceIndex:g.sourceIndex)}d=9==a.nodeType?a:a.ownerDocument||a.d",
+ "ocument;c=d.createRange();c.selectNode(a);c.collapse(!0);\nd=d.createRa",
+ "nge();d.selectNode(b);d.collapse(!0);return c.compareBoundaryPoints(h.R",
+ "ange.START_TO_END,d)}function D(a,b){var c=a.parentNode;if(c==b)return-",
+ "1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return C(d,a)}function C(",
+ "a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1};functi",
+ "on E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||nul",
+ "l==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b",
+ ")if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],",
+ "b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstC",
+ "hild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"",
+ "+b}\nfunction F(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)retu",
+ "rn!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribut",
+ "e(b,2)==c}function G(a,b,c,d,f){return da.call(null,a,b,k(c)?c:null,k(d",
+ ")?d:null,f||new H)}\nfunction da(a,b,c,d,f){b.getElementsByName&&d&&\"n",
+ "ame\"==c?(b=b.getElementsByName(d),p(b,function(b){a.matches(b)&&f.add(",
+ "b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClass",
+ "Name(d),p(b,function(b){b.className==d&&a.matches(b)&&f.add(b)})):b.get",
+ "ElementsByTagName&&(b=b.getElementsByTagName(a.getName()),p(b,function(",
+ "a){F(a,c,d)&&f.add(a)}));return f}function ea(a,b,c,d,f){for(b=b.firstC",
+ "hild;b;b=b.nextSibling)F(b,c,d)&&a.matches(b)&&f.add(b);return f};funct",
+ "ion H(){this.g=this.f=null;this.l=0}function I(a){this.p=a;this.next=th",
+ "is.n=null}H.prototype.unshift=function(a){a=new I(a);a.next=this.f;this",
+ ".g?this.f.n=a:this.f=this.g=a;this.f=a;this.l++};H.prototype.add=functi",
+ "on(a){a=new I(a);a.n=this.g;this.f?this.g.next=a:this.f=this.g=a;this.g",
+ "=a;this.l++};function J(a){return(a=a.f)?a.p:null}function K(a){return ",
+ "new L(a,!1)}function L(a,b){this.J=a;this.o=(this.q=b)?a.g:a.f;this.u=n",
+ "ull}\nL.prototype.next=function(){var a=this.o;if(null==a)return null;v",
+ "ar b=this.u=a;this.o=this.q?a.n:a.next;return b.p};function N(a,b,c,d,f",
+ "){b=b.evaluate(d);c=c.evaluate(d);var g;if(b instanceof H&&c instanceof",
+ " H){f=K(b);for(d=f.next();d;d=f.next())for(b=K(c),g=b.next();g;g=b.next",
+ "())if(a(E(d),E(g)))return!0;return!1}if(b instanceof H||c instanceof H)",
+ "{b instanceof H?f=b:(f=c,c=b);f=K(f);b=typeof c;for(d=f.next();d;d=f.ne",
+ "xt()){switch(b){case \"number\":d=+E(d);break;case \"boolean\":d=!!E(d)",
+ ";break;case \"string\":d=E(d);break;default:throw Error(\"Illegal primi",
+ "tive type for comparison.\");}if(a(d,c))return!0}return!1}return f?\n\"",
+ "boolean\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number\"==typeo",
+ "f b||\"number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function O(a,b,c,d){",
+ "this.v=a;this.L=b;this.s=c;this.t=d}O.prototype.toString=function(){ret",
+ "urn this.v};var fa={};function P(a,b,c,d){if(a in fa)throw Error(\"Bina",
+ "ry operator already created: \"+a);a=new O(a,b,c,d);fa[a.toString()]=a}",
+ "P(\"div\",6,1,function(a,b,c){return a.d(c)/b.d(c)});P(\"mod\",6,1,func",
+ "tion(a,b,c){return a.d(c)%b.d(c)});P(\"*\",6,1,function(a,b,c){return a",
+ ".d(c)*b.d(c)});\nP(\"+\",5,1,function(a,b,c){return a.d(c)+b.d(c)});P(",
+ "\"-\",5,1,function(a,b,c){return a.d(c)-b.d(c)});P(\"<\",4,2,function(a",
+ ",b,c){return N(function(a,b){return a<b},a,b,c)});P(\">\",4,2,function(",
+ "a,b,c){return N(function(a,b){return a>b},a,b,c)});P(\"<=\",4,2,functio",
+ "n(a,b,c){return N(function(a,b){return a<=b},a,b,c)});P(\">=\",4,2,func",
+ "tion(a,b,c){return N(function(a,b){return a>=b},a,b,c)});P(\"=\",3,2,fu",
+ "nction(a,b,c){return N(function(a,b){return a==b},a,b,c,!0)});\nP(\"!=",
+ "\",3,2,function(a,b,c){return N(function(a,b){return a!=b},a,b,c,!0)});",
+ "P(\"and\",2,2,function(a,b,c){return a.j(c)&&b.j(c)});P(\"or\",1,2,func",
+ "tion(a,b,c){return a.j(c)||b.j(c)});function ga(a,b,c,d,f,g,r,v,y){this",
+ ".m=a;this.s=b;this.I=c;this.H=d;this.G=f;this.t=g;this.F=r;this.D=void ",
+ "0!==v?v:r;this.K=!!y}ga.prototype.toString=function(){return this.m};va",
+ "r ha={};function Q(a,b,c,d,f,g,r,v){if(a in ha)throw Error(\"Function a",
+ "lready created: \"+a+\".\");ha[a]=new ga(a,b,c,d,!1,f,g,r,v)}Q(\"boolea",
+ "n\",2,!1,!1,function(a,b){return b.j(a)},1);Q(\"ceiling\",1,!1,!1,funct",
+ "ion(a,b){return Math.ceil(b.d(a))},1);\nQ(\"concat\",3,!1,!1,function(a",
+ ",b){var c=ba(arguments,1);return aa(c,function(b,c){return b+c.c(a)})},",
+ "2,null);Q(\"contains\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return",
+ "-1!=b.indexOf(a)},2);Q(\"count\",1,!1,!1,function(a,b){return b.evaluat",
+ "e(a).l},1,1,!0);Q(\"false\",2,!1,!1,e(!1),0);Q(\"floor\",1,!1,!1,functi",
+ "on(a,b){return Math.floor(b.d(a))},1);\nQ(\"id\",4,!1,!1,function(a,b){",
+ "var c=a.h(),d=9==c.nodeType?c:c.ownerDocument,c=b.c(a).split(/\\s+/),f=",
+ "[];p(c,function(a){a=d.getElementById(a);!a||0<=n(f,a)||f.push(a)});f.s",
+ "ort(ca);var g=new H;p(f,function(a){g.add(a)});return g},1);Q(\"lang\",",
+ "2,!1,!1,e(!1),1);Q(\"last\",1,!0,!1,function(a){if(1!=arguments.length)",
+ "throw Error(\"Function last expects ()\");return a.B()},0);Q(\"local-na",
+ "me\",3,!1,!0,function(a,b){var c=b?J(b.evaluate(a)):a.h();return c?c.no",
+ "deName.toLowerCase():\"\"},0,1,!0);\nQ(\"name\",3,!1,!0,function(a,b){v",
+ "ar c=b?J(b.evaluate(a)):a.h();return c?c.nodeName.toLowerCase():\"\"},0",
+ ",1,!0);Q(\"namespace-uri\",3,!0,!1,e(\"\"),0,1,!0);Q(\"normalize-space",
+ "\",3,!1,!0,function(a,b){return(b?b.c(a):E(a.h())).replace(/[\\s\\xa0]+",
+ "/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);Q(\"not\",2,!1,!1,function",
+ "(a,b){return!b.j(a)},1);Q(\"number\",1,!1,!0,function(a,b){return b?b.d",
+ "(a):+E(a.h())},0,1);Q(\"position\",1,!0,!1,function(a){return a.C()},0)",
+ ";Q(\"round\",1,!1,!1,function(a,b){return Math.round(b.d(a))},1);\nQ(\"",
+ "starts-with\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return 0==b.las",
+ "tIndexOf(a,0)},2);Q(\"string\",3,!1,!0,function(a,b){return b?b.c(a):E(",
+ "a.h())},0,1);Q(\"string-length\",1,!1,!0,function(a,b){return(b?b.c(a):",
+ "E(a.h())).length},0,1);\nQ(\"substring\",3,!1,!1,function(a,b,c,d){c=c.",
+ "d(a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.d(a):Infin",
+ "ity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var f=Math.",
+ "max(c,0);a=b.c(a);if(Infinity==d)return a.substring(f);b=Math.round(d);",
+ "return a.substring(f,c+b)},2,3);Q(\"substring-after\",3,!1,!1,function(",
+ "a,b,c){b=b.c(a);a=c.c(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+",
+ "a.length)},2);\nQ(\"substring-before\",3,!1,!1,function(a,b,c){b=b.c(a)",
+ ";a=c.c(a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);Q(\"sum",
+ "\",1,!1,!1,function(a,b){for(var c=K(b.evaluate(a)),d=0,f=c.next();f;f=",
+ "c.next())d+=+E(f);return d},1,1,!0);Q(\"translate\",3,!1,!1,function(a,",
+ "b,c,d){b=b.c(a);c=c.c(a);var f=d.c(a);a=[];for(d=0;d<c.length;d++){var ",
+ "g=c.charAt(d);g in a||(a[g]=f.charAt(d))}c=\"\";for(d=0;d<b.length;d++)",
+ "g=b.charAt(d),c+=g in a?a[g]:g;return c},3);Q(\"true\",2,!1,!1,e(!0),0)",
+ ";function ia(a,b,c,d){this.m=a;this.A=b;this.q=c;this.O=d}ia.prototype.",
+ "toString=function(){return this.m};var ja={};function R(a,b,c,d){if(a i",
+ "n ja)throw Error(\"Axis already created: \"+a);ja[a]=new ia(a,b,c,!!d)}",
+ "R(\"ancestor\",function(a,b){for(var c=new H,d=b;d=d.parentNode;)a.matc",
+ "hes(d)&&c.unshift(d);return c},!0);R(\"ancestor-or-self\",function(a,b)",
+ "{var c=new H,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);re",
+ "turn c},!0);\nR(\"attribute\",function(a,b){var c=new H,d=a.getName(),f",
+ "=b.attributes;if(f)if(\"*\"==d)for(var d=0,g;g=f[d];d++)c.add(g);else(g",
+ "=f.getNamedItem(d))&&c.add(g);return c},!1);R(\"child\",function(a,b,c,",
+ "d,f){return ea.call(null,a,b,k(c)?c:null,k(d)?d:null,f||new H)},!1,!0);",
+ "R(\"descendant\",G,!1,!0);R(\"descendant-or-self\",function(a,b,c,d){va",
+ "r f=new H;F(b,c,d)&&a.matches(b)&&f.add(b);return G(a,b,c,d,f)},!1,!0);",
+ "\nR(\"following\",function(a,b,c,d){var f=new H;do for(var g=b;g=g.next",
+ "Sibling;)F(g,c,d)&&a.matches(g)&&f.add(g),f=G(a,g,c,d,f);while(b=b.pare",
+ "ntNode);return f},!1,!0);R(\"following-sibling\",function(a,b){for(var ",
+ "c=new H,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);R(\"n",
+ "amespace\",function(){return new H},!1);R(\"parent\",function(a,b){var ",
+ "c=new H;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.owner",
+ "Element),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nR(",
+ "\"preceding\",function(a,b,c,d){var f=new H,g=[];do g.unshift(b);while(",
+ "b=b.parentNode);for(var r=1,v=g.length;r<v;r++){var y=[];for(b=g[r];b=b",
+ ".previousSibling;)y.unshift(b);for(var M=0,oa=y.length;M<oa;M++)b=y[M],",
+ "F(b,c,d)&&a.matches(b)&&f.add(b),f=G(a,b,c,d,f)}return f},!0,!0);R(\"pr",
+ "eceding-sibling\",function(a,b){for(var c=new H,d=b;d=d.previousSibling",
+ ";)a.matches(d)&&c.unshift(d);return c},!0);R(\"self\",function(a,b){var",
+ " c=new H;a.matches(b)&&c.add(b);return c},!1);function S(a,b){return!!a",
+ "&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}function ka(a){return",
+ " S(a,\"OPTION\")?!0:S(a,\"INPUT\")?(a=a.type.toLowerCase(),\"checkbox\"",
+ "==a||\"radio\"==a):!1}var la=/[;]+(?=(?:(?:[^\"]*\"){2})*[^\"]*$)(?=(?:",
+ "(?:[^']*'){2})*[^']*$)(?=(?:[^()]*\\([^()]*\\))*[^()]*$)/;\nfunction ma",
+ "(a){var b=[];p(a.split(la),function(a){var d=a.indexOf(\":\");0<d&&(a=[",
+ "a.slice(0,d),a.slice(d+1)],2==a.length&&b.push(a[0].toLowerCase(),\":\"",
+ ",a[1],\";\"))});b=b.join(\"\");return b=\";\"==b.charAt(b.length-1)?b:b",
+ "+\";\"}function T(a,b){b=b.toLowerCase();if(\"style\"==b)return ma(a.st",
+ "yle.cssText);var c=a.getAttributeNode(b);return c&&c.specified?c.value:",
+ "null};function U(a,b){this.i={};this.e=[];var c=arguments.length;if(1<c",
+ "){if(c%2)throw Error(\"Uneven number of arguments\");for(var d=0;d<c;d+",
+ "=2)this.set(arguments[d],arguments[d+1])}else if(a){var f;if(a instance",
+ "of U)for(d=na(a),pa(a),f=[],c=0;c<a.e.length;c++)f.push(a.i[a.e[c]]);el",
+ "se{var c=[],g=0;for(d in a)c[g++]=d;d=c;c=[];g=0;for(f in a)c[g++]=a[f]",
+ ";f=c}for(c=0;c<d.length;c++)this.set(d[c],f[c])}}U.prototype.k=0;U.prot",
+ "otype.w=0;function na(a){pa(a);return a.e.concat()}\nfunction pa(a){if(",
+ "a.k!=a.e.length){for(var b=0,c=0;b<a.e.length;){var d=a.e[b];Object.pro",
+ "totype.hasOwnProperty.call(a.i,d)&&(a.e[c++]=d);b++}a.e.length=c}if(a.k",
+ "!=a.e.length){for(var f={},c=b=0;b<a.e.length;)d=a.e[b],Object.prototyp",
+ "e.hasOwnProperty.call(f,d)||(a.e[c++]=d,f[d]=1),b++;a.e.length=c}}U.pro",
+ "totype.get=function(a,b){return Object.prototype.hasOwnProperty.call(th",
+ "is.i,a)?this.i[a]:b};\nU.prototype.set=function(a,b){Object.prototype.h",
+ "asOwnProperty.call(this.i,a)||(this.k++,this.e.push(a),this.w++);this.i",
+ "[a]=b};var V={};function W(a,b,c){l(a)&&(a=a.a);a=new qa(a,b,c);!b||b i",
+ "n V&&!c||(V[b]={key:a,shift:!1},c&&(V[c]={key:a,shift:!0}));return a}fu",
+ "nction qa(a,b,c){this.code=a;this.r=b||null;this.M=c||this.r}W(8);W(9);",
+ "W(13);var ra=W(16),sa=W(17),ta=W(18);W(19);W(20);W(27);W(32,\" \");W(33",
+ ");W(34);W(35);W(36);W(37);W(38);W(39);W(40);W(44);W(45);W(46);W(48,\"0",
+ "\",\")\");W(49,\"1\",\"!\");W(50,\"2\",\"@\");W(51,\"3\",\"#\");W(52,\"",
+ "4\",\"$\");W(53,\"5\",\"%\");W(54,\"6\",\"^\");W(55,\"7\",\"&\");W(56,",
+ "\"8\",\"*\");W(57,\"9\",\"(\");W(65,\"a\",\"A\");W(66,\"b\",\"B\");\nW(",
+ "67,\"c\",\"C\");W(68,\"d\",\"D\");W(69,\"e\",\"E\");W(70,\"f\",\"F\");W",
+ "(71,\"g\",\"G\");W(72,\"h\",\"H\");W(73,\"i\",\"I\");W(74,\"j\",\"J\");",
+ "W(75,\"k\",\"K\");W(76,\"l\",\"L\");W(77,\"m\",\"M\");W(78,\"n\",\"N\")",
+ ";W(79,\"o\",\"O\");W(80,\"p\",\"P\");W(81,\"q\",\"Q\");W(82,\"r\",\"R\"",
+ ");W(83,\"s\",\"S\");W(84,\"t\",\"T\");W(85,\"u\",\"U\");W(86,\"v\",\"V",
+ "\");W(87,\"w\",\"W\");W(88,\"x\",\"X\");W(89,\"y\",\"Y\");W(90,\"z\",\"",
+ "Z\");var ua=W(w?{b:91,a:91,opera:219}:u?{b:224,a:91,opera:17}:{b:0,a:91",
+ ",opera:null});W(w?{b:92,a:92,opera:220}:u?{b:224,a:93,opera:17}:{b:0,a:",
+ "92,opera:null});\nW(w?{b:93,a:93,opera:0}:u?{b:0,a:0,opera:16}:{b:93,a:",
+ "null,opera:0});W({b:96,a:96,opera:48},\"0\");W({b:97,a:97,opera:49},\"1",
+ "\");W({b:98,a:98,opera:50},\"2\");W({b:99,a:99,opera:51},\"3\");W({b:10",
+ "0,a:100,opera:52},\"4\");W({b:101,a:101,opera:53},\"5\");W({b:102,a:102",
+ ",opera:54},\"6\");W({b:103,a:103,opera:55},\"7\");W({b:104,a:104,opera:",
+ "56},\"8\");W({b:105,a:105,opera:57},\"9\");W({b:106,a:106,opera:A?56:42",
+ "},\"*\");W({b:107,a:107,opera:A?61:43},\"+\");W({b:109,a:109,opera:A?10",
+ "9:45},\"-\");W({b:110,a:110,opera:A?190:78},\".\");\nW({b:111,a:111,ope",
+ "ra:A?191:47},\"/\");W(144);W(112);W(113);W(114);W(115);W(116);W(117);W(",
+ "118);W(119);W(120);W(121);W(122);W(123);W({b:107,a:187,opera:61},\"=\",",
+ "\"+\");W(108,\",\");W({b:109,a:189,opera:109},\"-\",\"_\");W(188,\",\",",
+ "\"<\");W(190,\".\",\">\");W(191,\"/\",\"?\");W(192,\"`\",\"~\");W(219,",
+ "\"[\",\"{\");W(220,\"\\\\\",\"|\");W(221,\"]\",\"}\");W({b:59,a:186,ope",
+ "ra:59},\";\",\":\");W(222,\"'\",'\"');var X=new U;X.set(1,ra);X.set(2,s",
+ "a);X.set(4,ta);X.set(8,ua);(function(a){var b=new U;p(na(a),function(c)",
+ "{b.set(a.get(c).code,c)});return b})(X);var va={\"class\":\"className\"",
+ ",readonly:\"readOnly\"},wa=\"async autofocus autoplay checked compact c",
+ "omplete controls declare defaultchecked defaultselected defer disabled ",
+ "draggable ended formnovalidate hidden indeterminate iscontenteditable i",
+ "smap itemscope loop multiple muted nohref noresize noshade novalidate n",
+ "owrap open paused pubdate readonly required reversed scoped seamless se",
+ "eking selected spellcheck truespeed willvalidate\".split(\" \");functio",
+ "n xa(a,b){var c=null,d=b.toLowerCase();if(\"style\"==d)return(c=a.style",
+ ")&&!k(c)&&(c=c.cssText),c;if((\"selected\"==d||\"checked\"==d)&&ka(a)){",
+ "if(!ka(a))throw new q(15,\"Element is not selectable\");var d=\"selecte",
+ "d\",f=a.type&&a.type.toLowerCase();if(\"checkbox\"==f||\"radio\"==f)d=",
+ "\"checked\";return a[d]?\"true\":null}c=S(a,\"A\");if(S(a,\"IMG\")&&\"s",
+ "rc\"==d||c&&\"href\"==d)return(c=T(a,d))&&(c=a[d]),c;c=va[b]||b;if(0<=n",
+ "(wa,d))return(c=null!==T(a,b)||a[c])?\"true\":null;try{f=a[c]}catch(g){",
+ "}c=null==f||l(f)?T(a,b):f;\nreturn null!=c?c.toString():null}var Y=[\"_",
+ "\"],Z=h;Y[0]in Z||!Z.execScript||Z.execScript(\"var \"+Y[0]);for(var $;",
+ "Y.length&&($=Y.shift());)Y.length||void 0===xa?Z=Z[$]?Z[$]:Z[$]={}:Z[$]",
+ "=xa;; return this._.apply(null,arguments);}.apply({navigator:typeof win",
+ "dow!=undefined?window.navigator:null,document:typeof window!=undefined?",
+ "window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_EFFECTIVE_STYLE[] = {
+ "function(){return function(){function g(a){return function(){return a}}",
+ "var h=this;\nfunction k(a){var b=typeof a;if(\"object\"==b)if(a){if(a i",
+ "nstanceof Array)return\"array\";if(a instanceof Object)return b;var c=O",
+ "bject.prototype.toString.call(a);if(\"[object Window]\"==c)return\"obje",
+ "ct\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined",
+ "\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.p",
+ "ropertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]",
+ "\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"call\"))return\"function\"}else r",
+ "eturn\"null\";\nelse if(\"function\"==b&&\"undefined\"==typeof a.call)r",
+ "eturn\"object\";return b}function l(a){return\"string\"==typeof a};func",
+ "tion m(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return c",
+ ".toUpperCase()})};var p=Array.prototype;function q(a,b){if(l(a))return ",
+ "l(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in ",
+ "a&&a[c]===b)return c;return-1}function r(a,b){for(var c=a.length,d=l(a)",
+ "?a.split(\"\"):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function s",
+ "(a,b){if(a.reduce)return a.reduce(b,\"\");var c=\"\";r(a,function(d,e){",
+ "c=b.call(void 0,c,d,e,a)});return c}function aa(a,b,c){return 2>=argume",
+ "nts.length?p.slice.call(a,b):p.slice.call(a,b,c)};var u={aliceblue:\"#f",
+ "0f8ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4",
+ "\",azure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#0000",
+ "00\",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\"",
+ ",brown:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreu",
+ "se:\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:",
+ "\"#6495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",d",
+ "arkblue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",dark",
+ "gray:\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki",
+ ":\"#bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkora",
+ "nge:\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:",
+ "\"#e9967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslat",
+ "egray:\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",d",
+ "arkviolet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimg",
+ "ray:\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"",
+ "#b22222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff",
+ "00ff\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",",
+ "goldenrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"",
+ "#adff2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",ind",
+ "ianred:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c",
+ "\",lavender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\"",
+ ",lemonchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",",
+ "lightcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d",
+ "3d3\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1",
+ "\",lightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#",
+ "87cefa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightste",
+ "elblue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:",
+ "\"#32cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",me",
+ "diumaquamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d",
+ "3\",mediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue",
+ ":\"#7b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",",
+ "mediumvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fff",
+ "a\",mistyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead",
+ "\",navy:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#",
+ "6b8e23\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",pa",
+ "legoldenrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\"",
+ ",palevioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\"",
+ ",peru:\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e",
+ "6\",purple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:",
+ "\"#4169e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4",
+ "a460\",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",s",
+ "ilver:\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:",
+ "\"#708090\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7",
+ "f\",steelblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d",
+ "8bfd8\",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",whe",
+ "at:\"#f5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff0",
+ "0\",yellowgreen:\"#9acd32\"};var ba=\"background-color border-top-color",
+ " border-right-color border-bottom-color border-left-color color outline",
+ "-color\".split(\" \"),ca=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;fun",
+ "ction w(a){if(!x.test(a))throw Error(\"'\"+a+\"' is not a valid hex col",
+ "or\");4==a.length&&(a=a.replace(ca,\"#$1$1$2$2$3$3\"));return a.toLower",
+ "Case()}var x=/^#(?:[0-9a-f]{3}){1,2}$/i,da=/^(?:rgba)?\\((\\d{1,3}),\\s",
+ "?(\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i;\nfunction y(a){var",
+ " b=a.match(da);if(b){a=Number(b[1]);var c=Number(b[2]),d=Number(b[3]),b",
+ "=Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)r",
+ "eturn[a,c,d,b]}return[]}var ea=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1",
+ "-9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;function z(a){var b=a.match(ea",
+ ");if(b){a=Number(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=",
+ "a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};function A(a,b){i",
+ "f(a.contains&&1==b.nodeType)return a==b||a.contains(b);if(\"undefined\"",
+ "!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocume",
+ "ntPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction f",
+ "a(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDo",
+ "cumentPosition(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&&\"source",
+ "Index\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)ret",
+ "urn a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;retur",
+ "n e==f?B(a,b):!c&&A(e,b)?-1*C(a,b):!d&&A(f,a)?C(b,a):(c?a.sourceIndex:e",
+ ".sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=9==a.nodeType?a:a.owner",
+ "Document||a.document;c=d.createRange();c.selectNode(a);c.collapse(!0);",
+ "\nd=d.createRange();d.selectNode(b);d.collapse(!0);return c.compareBoun",
+ "daryPoints(h.Range.START_TO_END,d)}function C(a,b){var c=a.parentNode;i",
+ "f(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return B(d,",
+ "a)}function B(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;re",
+ "turn 1};function E(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=",
+ "void 0==b||null==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"stri",
+ "ng\"!=typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for",
+ "(var c=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;wh",
+ "ile(a=a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeVa",
+ "lue;return\"\"+b}\nfunction F(a,b,c){if(null===b)return!0;try{if(!a.get",
+ "Attribute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b)",
+ ":a.getAttribute(b,2)==c}function G(a,b,c,d,e){return ga.call(null,a,b,l",
+ "(c)?c:null,l(d)?d:null,e||new H)}\nfunction ga(a,b,c,d,e){b.getElements",
+ "ByName&&d&&\"name\"==c?(b=b.getElementsByName(d),r(b,function(b){a.matc",
+ "hes(b)&&e.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getE",
+ "lementsByClassName(d),r(b,function(b){b.className==d&&a.matches(b)&&e.a",
+ "dd(b)})):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName())",
+ ",r(b,function(a){F(a,c,d)&&e.add(a)}));return e}function ha(a,b,c,d,e){",
+ "for(b=b.firstChild;b;b=b.nextSibling)F(b,c,d)&&a.matches(b)&&e.add(b);r",
+ "eturn e};function H(){this.d=this.c=null;this.g=0}function I(a){this.k=",
+ "a;this.next=this.i=null}H.prototype.unshift=function(a){a=new I(a);a.ne",
+ "xt=this.c;this.d?this.c.i=a:this.c=this.d=a;this.c=a;this.g++};H.protot",
+ "ype.add=function(a){a=new I(a);a.i=this.d;this.c?this.d.next=a:this.c=t",
+ "his.d=a;this.d=a;this.g++};function J(a){return(a=a.c)?a.k:null}functio",
+ "n K(a){return new L(a,!1)}function L(a,b){this.B=a;this.j=(this.l=b)?a.",
+ "d:a.c;this.o=null}\nL.prototype.next=function(){var a=this.j;if(null==a",
+ ")return null;var b=this.o=a;this.j=this.l?a.i:a.next;return b.k};functi",
+ "on M(a,b,c,d,e){b=b.evaluate(d);c=c.evaluate(d);var f;if(b instanceof H",
+ "&&c instanceof H){e=K(b);for(d=e.next();d;d=e.next())for(b=K(c),f=b.nex",
+ "t();f;f=b.next())if(a(E(d),E(f)))return!0;return!1}if(b instanceof H||c",
+ " instanceof H){b instanceof H?e=b:(e=c,c=b);e=K(e);b=typeof c;for(d=e.n",
+ "ext();d;d=e.next()){switch(b){case \"number\":d=+E(d);break;case \"bool",
+ "ean\":d=!!E(d);break;case \"string\":d=E(d);break;default:throw Error(",
+ "\"Illegal primitive type for comparison.\");}if(a(d,c))return!0}return!",
+ "1}return e?\n\"boolean\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"",
+ "number\"==typeof b||\"number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}funct",
+ "ion N(a,b,c,d){this.p=a;this.D=b;this.m=c;this.n=d}N.prototype.toString",
+ "=function(){return this.p};var O={};function P(a,b,c,d){if(a in O)throw",
+ " Error(\"Binary operator already created: \"+a);a=new N(a,b,c,d);O[a.to",
+ "String()]=a}P(\"div\",6,1,function(a,b,c){return a.b(c)/b.b(c)});P(\"mo",
+ "d\",6,1,function(a,b,c){return a.b(c)%b.b(c)});P(\"*\",6,1,function(a,b",
+ ",c){return a.b(c)*b.b(c)});\nP(\"+\",5,1,function(a,b,c){return a.b(c)+",
+ "b.b(c)});P(\"-\",5,1,function(a,b,c){return a.b(c)-b.b(c)});P(\"<\",4,2",
+ ",function(a,b,c){return M(function(a,b){return a<b},a,b,c)});P(\">\",4,",
+ "2,function(a,b,c){return M(function(a,b){return a>b},a,b,c)});P(\"<=\",",
+ "4,2,function(a,b,c){return M(function(a,b){return a<=b},a,b,c)});P(\">=",
+ "\",4,2,function(a,b,c){return M(function(a,b){return a>=b},a,b,c)});P(",
+ "\"=\",3,2,function(a,b,c){return M(function(a,b){return a==b},a,b,c,!0)",
+ "});\nP(\"!=\",3,2,function(a,b,c){return M(function(a,b){return a!=b},a",
+ ",b,c,!0)});P(\"and\",2,2,function(a,b,c){return a.f(c)&&b.f(c)});P(\"or",
+ "\",1,2,function(a,b,c){return a.f(c)||b.f(c)});function Q(a,b,c,d,e,f,n",
+ ",t,v){this.h=a;this.m=b;this.A=c;this.w=d;this.v=e;this.n=f;this.u=n;th",
+ "is.t=void 0!==t?t:n;this.C=!!v}Q.prototype.toString=function(){return t",
+ "his.h};var R={};function S(a,b,c,d,e,f,n,t){if(a in R)throw Error(\"Fun",
+ "ction already created: \"+a+\".\");R[a]=new Q(a,b,c,d,!1,e,f,n,t)}S(\"b",
+ "oolean\",2,!1,!1,function(a,b){return b.f(a)},1);S(\"ceiling\",1,!1,!1,",
+ "function(a,b){return Math.ceil(b.b(a))},1);\nS(\"concat\",3,!1,!1,funct",
+ "ion(a,b){var c=aa(arguments,1);return s(c,function(b,c){return b+c.a(a)",
+ "})},2,null);S(\"contains\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);re",
+ "turn-1!=b.indexOf(a)},2);S(\"count\",1,!1,!1,function(a,b){return b.eva",
+ "luate(a).g},1,1,!0);S(\"false\",2,!1,!1,g(!1),0);S(\"floor\",1,!1,!1,fu",
+ "nction(a,b){return Math.floor(b.b(a))},1);\nS(\"id\",4,!1,!1,function(a",
+ ",b){var c=a.e(),d=9==c.nodeType?c:c.ownerDocument,c=b.a(a).split(/\\s+/",
+ "),e=[];r(c,function(a){a=d.getElementById(a);!a||0<=q(e,a)||e.push(a)})",
+ ";e.sort(fa);var f=new H;r(e,function(a){f.add(a)});return f},1);S(\"lan",
+ "g\",2,!1,!1,g(!1),1);S(\"last\",1,!0,!1,function(a){if(1!=arguments.len",
+ "gth)throw Error(\"Function last expects ()\");return a.r()},0);S(\"loca",
+ "l-name\",3,!1,!0,function(a,b){var c=b?J(b.evaluate(a)):a.e();return c?",
+ "c.nodeName.toLowerCase():\"\"},0,1,!0);\nS(\"name\",3,!1,!0,function(a,",
+ "b){var c=b?J(b.evaluate(a)):a.e();return c?c.nodeName.toLowerCase():\"",
+ "\"},0,1,!0);S(\"namespace-uri\",3,!0,!1,g(\"\"),0,1,!0);S(\"normalize-s",
+ "pace\",3,!1,!0,function(a,b){return(b?b.a(a):E(a.e())).replace(/[\\s\\x",
+ "a0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,1);S(\"not\",2,!1,!1,func",
+ "tion(a,b){return!b.f(a)},1);S(\"number\",1,!1,!0,function(a,b){return b",
+ "?b.b(a):+E(a.e())},0,1);S(\"position\",1,!0,!1,function(a){return a.s()",
+ "},0);S(\"round\",1,!1,!1,function(a,b){return Math.round(b.b(a))},1);\n",
+ "S(\"starts-with\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return 0==b",
+ ".lastIndexOf(a,0)},2);S(\"string\",3,!1,!0,function(a,b){return b?b.a(a",
+ "):E(a.e())},0,1);S(\"string-length\",1,!1,!0,function(a,b){return(b?b.a",
+ "(a):E(a.e())).length},0,1);\nS(\"substring\",3,!1,!1,function(a,b,c,d){",
+ "c=c.b(a);if(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.b(a):I",
+ "nfinity;if(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=M",
+ "ath.max(c,0);a=b.a(a);if(Infinity==d)return a.substring(e);b=Math.round",
+ "(d);return a.substring(e,c+b)},2,3);S(\"substring-after\",3,!1,!1,funct",
+ "ion(a,b,c){b=b.a(a);a=c.a(a);c=b.indexOf(a);return-1==c?\"\":b.substrin",
+ "g(c+a.length)},2);\nS(\"substring-before\",3,!1,!1,function(a,b,c){b=b.",
+ "a(a);a=c.a(a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);S(\"",
+ "sum\",1,!1,!1,function(a,b){for(var c=K(b.evaluate(a)),d=0,e=c.next();e",
+ ";e=c.next())d+=+E(e);return d},1,1,!0);S(\"translate\",3,!1,!1,function",
+ "(a,b,c,d){b=b.a(a);c=c.a(a);var e=d.a(a);a=[];for(d=0;d<c.length;d++){v",
+ "ar f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c=\"\";for(d=0;d<b.length;d",
+ "++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3);S(\"true\",2,!1,!1,g(!0)",
+ ",0);function T(a,b,c,d){this.h=a;this.q=b;this.l=c;this.F=d}T.prototype",
+ ".toString=function(){return this.h};var U={};function V(a,b,c,d){if(a i",
+ "n U)throw Error(\"Axis already created: \"+a);U[a]=new T(a,b,c,!!d)}V(",
+ "\"ancestor\",function(a,b){for(var c=new H,d=b;d=d.parentNode;)a.matche",
+ "s(d)&&c.unshift(d);return c},!0);V(\"ancestor-or-self\",function(a,b){v",
+ "ar c=new H,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);retu",
+ "rn c},!0);\nV(\"attribute\",function(a,b){var c=new H,d=a.getName(),e=b",
+ ".attributes;if(e)if(\"*\"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e",
+ ".getNamedItem(d))&&c.add(f);return c},!1);V(\"child\",function(a,b,c,d,",
+ "e){return ha.call(null,a,b,l(c)?c:null,l(d)?d:null,e||new H)},!1,!0);V(",
+ "\"descendant\",G,!1,!0);V(\"descendant-or-self\",function(a,b,c,d){var ",
+ "e=new H;F(b,c,d)&&a.matches(b)&&e.add(b);return G(a,b,c,d,e)},!1,!0);\n",
+ "V(\"following\",function(a,b,c,d){var e=new H;do for(var f=b;f=f.nextSi",
+ "bling;)F(f,c,d)&&a.matches(f)&&e.add(f),e=G(a,f,c,d,e);while(b=b.parent",
+ "Node);return e},!1,!0);V(\"following-sibling\",function(a,b){for(var c=",
+ "new H,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);V(\"nam",
+ "espace\",function(){return new H},!1);V(\"parent\",function(a,b){var c=",
+ "new H;if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerEl",
+ "ement),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nV(\"",
+ "preceding\",function(a,b,c,d){var e=new H,f=[];do f.unshift(b);while(b=",
+ "b.parentNode);for(var n=1,t=f.length;n<t;n++){var v=[];for(b=f[n];b=b.p",
+ "reviousSibling;)v.unshift(b);for(var D=0,ia=v.length;D<ia;D++)b=v[D],F(",
+ "b,c,d)&&a.matches(b)&&e.add(b),e=G(a,b,c,d,e)}return e},!0,!0);V(\"prec",
+ "eding-sibling\",function(a,b){for(var c=new H,d=b;d=d.previousSibling;)",
+ "a.matches(d)&&c.unshift(d);return c},!0);V(\"self\",function(a,b){var c",
+ "=new H;a.matches(b)&&c.add(b);return c},!1);function W(a,b){var c=a.cur",
+ "rentStyle||a.style,d=c[b];void 0===d&&\"function\"==k(c.getPropertyValu",
+ "e)&&(d=c.getPropertyValue(b));if(\"inherit\"!=d)return void 0!==d?d:nul",
+ "l;for(c=a.parentNode;c&&1!=c.nodeType&&9!=c.nodeType&&11!=c.nodeType;)c",
+ "=c.parentNode;return(c=c&&1==c.nodeType?c:null)?W(c,b):null};function X",
+ "(a,b){var c=m(b);if(\"float\"==c||\"cssFloat\"==c||\"styleFloat\"==c)c=",
+ "\"cssFloat\";var d;a:{d=c;var e=9==a.nodeType?a:a.ownerDocument||a.docu",
+ "ment;if(e.defaultView&&e.defaultView.getComputedStyle&&(e=e.defaultView",
+ ".getComputedStyle(a,null))){d=e[d]||e.getPropertyValue(d)||\"\";break a",
+ "}d=\"\"}c=d||W(a,c);if(null===c)c=null;else if(0<=q(ba,b)&&(x.test(\"#",
+ "\"==c.charAt(0)?c:\"#\"+c)||z(c).length||u&&u[c.toLowerCase()]||y(c).le",
+ "ngth)){d=y(c);if(!d.length){a:if(d=z(c),!d.length){d=(d=u[c.toLowerCase",
+ "()])?d:\"#\"==\nc.charAt(0)?c:\"#\"+c;if(x.test(d)&&(d=w(d),d=w(d),d=[p",
+ "arseInt(d.substr(1,2),16),parseInt(d.substr(3,2),16),parseInt(d.substr(",
+ "5,2),16)],d.length))break a;d=[]}3==d.length&&d.push(1)}c=4!=d.length?c",
+ ":\"rgba(\"+d.join(\", \")+\")\"}return c}var Y=[\"_\"],Z=h;Y[0]in Z||!Z",
+ ".execScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift",
+ "());)Y.length||void 0===X?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=X;; return this._.ap",
+ "ply(null,arguments);}.apply({navigator:typeof window!=undefined?window.",
+ "navigator:null,document:typeof window!=undefined?window.document:null},",
+ " arguments);}",
+ NULL
+};
+
+const char* const GET_IN_VIEW_LOCATION[] = {
+ "function(){return function(){function g(a){return function(){return a}}",
+ "var h=this;function l(a){return\"string\"==typeof a};var m=window;var n",
+ "=Array.prototype;function p(a,b){for(var c=a.length,d=l(a)?a.split(\"\"",
+ "):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}function aa(a,b){if(a.r",
+ "educe)return a.reduce(b,\"\");var c=\"\";p(a,function(d,e){c=b.call(voi",
+ "d 0,c,d,e,a)});return c}function ba(a,b,c){return 2>=arguments.length?n",
+ ".slice.call(a,b):n.slice.call(a,b,c)};function q(a,b){this.code=a;this.",
+ "state=r[a]||s;this.message=b||\"\";var c=this.state.replace(/((?:^|\\s+",
+ ")[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"",
+ "\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";this.",
+ "name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||\"\"}",
+ "(function(){var a=Error;function b(){}b.prototype=a.prototype;q.G=a.pro",
+ "totype;q.prototype=new b})();\nvar s=\"unknown error\",r={15:\"element ",
+ "not selectable\",11:\"element not visible\",31:\"ime engine activation ",
+ "failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"inv",
+ "alid element coordinates\",12:\"invalid element state\",32:\"invalid se",
+ "lector\",51:\"invalid selector\",52:\"invalid selector\",17:\"javascrip",
+ "t error\",405:\"unsupported operation\",34:\"move target out of bounds",
+ "\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:\"",
+ "no such window\",28:\"script timeout\",33:\"session not created\",10:\"",
+ "stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unable to",
+ " set cookie\",26:\"unexpected alert open\"};r[13]=s;r[9]=\"unknown comm",
+ "and\";q.prototype.toString=function(){return this.name+\": \"+this.mess",
+ "age};var t;function u(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}",
+ "u.prototype.toString=function(){return\"(\"+this.x+\", \"+this.y+\")\"}",
+ ";u.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(",
+ "this.y);return this};u.prototype.floor=function(){this.x=Math.floor(thi",
+ "s.x);this.y=Math.floor(this.y);return this};u.prototype.round=function(",
+ "){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};func",
+ "tion w(a,b){this.width=a;this.height=b}w.prototype.toString=function(){",
+ "return\"(\"+this.width+\" x \"+this.height+\")\"};w.prototype.ceil=func",
+ "tion(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.heig",
+ "ht);return this};w.prototype.floor=function(){this.width=Math.floor(thi",
+ "s.width);this.height=Math.floor(this.height);return this};w.prototype.r",
+ "ound=function(){this.width=Math.round(this.width);this.height=Math.roun",
+ "d(this.height);return this};function x(a){var b=a.body;a=a.parentWindow",
+ "||a.defaultView;return new u(a.pageXOffset||b.scrollLeft,a.pageYOffset|",
+ "|b.scrollTop)}function y(a,b){if(a.contains&&1==b.nodeType)return a==b|",
+ "|a.contains(b);if(\"undefined\"!=typeof a.compareDocumentPosition)retur",
+ "n a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.pare",
+ "ntNode;return b==a}\nfunction ca(a,b){if(a==b)return 0;if(a.compareDocu",
+ "mentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(\"sourceInde",
+ "x\"in a||a.parentNode&&\"sourceIndex\"in a.parentNode){var c=1==a.nodeT",
+ "ype,d=1==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.",
+ "parentNode,f=b.parentNode;return e==f?A(a,b):!c&&y(e,b)?-1*B(a,b):!d&&y",
+ "(f,a)?B(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceI",
+ "ndex)}d=C(a);c=d.createRange();c.selectNode(a);c.collapse(!0);d=d.creat",
+ "eRange();d.selectNode(b);d.collapse(!0);\nreturn c.compareBoundaryPoint",
+ "s(h.Range.START_TO_END,d)}function B(a,b){var c=a.parentNode;if(c==b)re",
+ "turn-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return A(d,a)}functi",
+ "on A(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1}fu",
+ "nction C(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function",
+ " D(a){this.k=a||h.document||document}D.prototype.contains=y;function E(",
+ "a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?",
+ "a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9",
+ "==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"",
+ "\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild",
+ ");for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}",
+ "\nfunction F(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!",
+ "1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b",
+ ",2)==c}function G(a,b,c,d,e){return da.call(null,a,b,l(c)?c:null,l(d)?d",
+ ":null,e||new H)}\nfunction da(a,b,c,d,e){b.getElementsByName&&d&&\"name",
+ "\"==c?(b=b.getElementsByName(d),p(b,function(b){a.matches(b)&&e.add(b)}",
+ ")):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassNam",
+ "e(d),p(b,function(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getEle",
+ "mentsByTagName&&(b=b.getElementsByTagName(a.getName()),p(b,function(a){",
+ "F(a,c,d)&&e.add(a)}));return e}function ea(a,b,c,d,e){for(b=b.firstChil",
+ "d;b;b=b.nextSibling)F(b,c,d)&&a.matches(b)&&e.add(b);return e};function",
+ " H(){this.d=this.c=null;this.g=0}function I(a){this.l=a;this.next=this.",
+ "i=null}H.prototype.unshift=function(a){a=new I(a);a.next=this.c;this.d?",
+ "this.c.i=a:this.c=this.d=a;this.c=a;this.g++};H.prototype.add=function(",
+ "a){a=new I(a);a.i=this.d;this.c?this.d.next=a:this.c=this.d=a;this.d=a;",
+ "this.g++};function J(a){return(a=a.c)?a.l:null}function L(a){return new",
+ " M(a,!1)}function M(a,b){this.C=a;this.j=(this.m=b)?a.d:a.c;this.p=null",
+ "}\nM.prototype.next=function(){var a=this.j;if(null==a)return null;var ",
+ "b=this.p=a;this.j=this.m?a.i:a.next;return b.l};function N(a,b,c,d,e){b",
+ "=b.evaluate(d);c=c.evaluate(d);var f;if(b instanceof H&&c instanceof H)",
+ "{e=L(b);for(d=e.next();d;d=e.next())for(b=L(c),f=b.next();f;f=b.next())",
+ "if(a(E(d),E(f)))return!0;return!1}if(b instanceof H||c instanceof H){b ",
+ "instanceof H?e=b:(e=c,c=b);e=L(e);b=typeof c;for(d=e.next();d;d=e.next(",
+ ")){switch(b){case \"number\":d=+E(d);break;case \"boolean\":d=!!E(d);br",
+ "eak;case \"string\":d=E(d);break;default:throw Error(\"Illegal primitiv",
+ "e type for comparison.\");}if(a(d,c))return!0}return!1}return e?\n\"boo",
+ "lean\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number\"==typeof b",
+ "||\"number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function O(a,b,c,d){thi",
+ "s.q=a;this.F=b;this.n=c;this.o=d}O.prototype.toString=function(){return",
+ " this.q};var P={};function Q(a,b,c,d){if(a in P)throw Error(\"Binary op",
+ "erator already created: \"+a);a=new O(a,b,c,d);P[a.toString()]=a}Q(\"di",
+ "v\",6,1,function(a,b,c){return a.b(c)/b.b(c)});Q(\"mod\",6,1,function(a",
+ ",b,c){return a.b(c)%b.b(c)});Q(\"*\",6,1,function(a,b,c){return a.b(c)*",
+ "b.b(c)});\nQ(\"+\",5,1,function(a,b,c){return a.b(c)+b.b(c)});Q(\"-\",5",
+ ",1,function(a,b,c){return a.b(c)-b.b(c)});Q(\"<\",4,2,function(a,b,c){r",
+ "eturn N(function(a,b){return a<b},a,b,c)});Q(\">\",4,2,function(a,b,c){",
+ "return N(function(a,b){return a>b},a,b,c)});Q(\"<=\",4,2,function(a,b,c",
+ "){return N(function(a,b){return a<=b},a,b,c)});Q(\">=\",4,2,function(a,",
+ "b,c){return N(function(a,b){return a>=b},a,b,c)});Q(\"=\",3,2,function(",
+ "a,b,c){return N(function(a,b){return a==b},a,b,c,!0)});\nQ(\"!=\",3,2,f",
+ "unction(a,b,c){return N(function(a,b){return a!=b},a,b,c,!0)});Q(\"and",
+ "\",2,2,function(a,b,c){return a.f(c)&&b.f(c)});Q(\"or\",1,2,function(a,",
+ "b,c){return a.f(c)||b.f(c)});function R(a,b,c,d,e,f,k,v,z){this.h=a;thi",
+ "s.n=b;this.B=c;this.A=d;this.w=e;this.o=f;this.v=k;this.u=void 0!==v?v:",
+ "k;this.D=!!z}R.prototype.toString=function(){return this.h};var S={};fu",
+ "nction T(a,b,c,d,e,f,k,v){if(a in S)throw Error(\"Function already crea",
+ "ted: \"+a+\".\");S[a]=new R(a,b,c,d,!1,e,f,k,v)}T(\"boolean\",2,!1,!1,f",
+ "unction(a,b){return b.f(a)},1);T(\"ceiling\",1,!1,!1,function(a,b){retu",
+ "rn Math.ceil(b.b(a))},1);\nT(\"concat\",3,!1,!1,function(a,b){var c=ba(",
+ "arguments,1);return aa(c,function(b,c){return b+c.a(a)})},2,null);T(\"c",
+ "ontains\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return-1!=b.indexOf",
+ "(a)},2);T(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).g},1,1,!",
+ "0);T(\"false\",2,!1,!1,g(!1),0);T(\"floor\",1,!1,!1,function(a,b){retur",
+ "n Math.floor(b.b(a))},1);\nT(\"id\",4,!1,!1,function(a,b){var c=a.e(),d",
+ "=9==c.nodeType?c:c.ownerDocument,c=b.a(a).split(/\\s+/),e=[];p(c,functi",
+ "on(a){a=d.getElementById(a);var b;if(!(b=!a)){a:if(l(e))b=l(a)&&1==a.le",
+ "ngth?e.indexOf(a,0):-1;else{for(b=0;b<e.length;b++)if(b in e&&e[b]===a)",
+ "break a;b=-1}b=0<=b}b||e.push(a)});e.sort(ca);var f=new H;p(e,function(",
+ "a){f.add(a)});return f},1);T(\"lang\",2,!1,!1,g(!1),1);T(\"last\",1,!0,",
+ "!1,function(a){if(1!=arguments.length)throw Error(\"Function last expec",
+ "ts ()\");return a.s()},0);\nT(\"local-name\",3,!1,!0,function(a,b){var ",
+ "c=b?J(b.evaluate(a)):a.e();return c?c.nodeName.toLowerCase():\"\"},0,1,",
+ "!0);T(\"name\",3,!1,!0,function(a,b){var c=b?J(b.evaluate(a)):a.e();ret",
+ "urn c?c.nodeName.toLowerCase():\"\"},0,1,!0);T(\"namespace-uri\",3,!0,!",
+ "1,g(\"\"),0,1,!0);T(\"normalize-space\",3,!1,!0,function(a,b){return(b?",
+ "b.a(a):E(a.e())).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,",
+ "\"\")},0,1);T(\"not\",2,!1,!1,function(a,b){return!b.f(a)},1);T(\"numbe",
+ "r\",1,!1,!0,function(a,b){return b?b.b(a):+E(a.e())},0,1);\nT(\"positio",
+ "n\",1,!0,!1,function(a){return a.t()},0);T(\"round\",1,!1,!1,function(a",
+ ",b){return Math.round(b.b(a))},1);T(\"starts-with\",2,!1,!1,function(a,",
+ "b,c){b=b.a(a);a=c.a(a);return 0==b.lastIndexOf(a,0)},2);T(\"string\",3,",
+ "!1,!0,function(a,b){return b?b.a(a):E(a.e())},0,1);T(\"string-length\",",
+ "1,!1,!0,function(a,b){return(b?b.a(a):E(a.e())).length},0,1);\nT(\"subs",
+ "tring\",3,!1,!1,function(a,b,c,d){c=c.b(a);if(isNaN(c)||Infinity==c||-I",
+ "nfinity==c)return\"\";d=d?d.b(a):Infinity;if(isNaN(d)||-Infinity===d)re",
+ "turn\"\";c=Math.round(c)-1;var e=Math.max(c,0);a=b.a(a);if(Infinity==d)",
+ "return a.substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);T",
+ "(\"substring-after\",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);c=b.inde",
+ "xOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nT(\"substring-bef",
+ "ore\",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);a=b.indexOf(a);return-1",
+ "==a?\"\":b.substring(0,a)},2);T(\"sum\",1,!1,!1,function(a,b){for(var c",
+ "=L(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+=+E(e);return d},1,1,!0",
+ ");T(\"translate\",3,!1,!1,function(a,b,c,d){b=b.a(a);c=c.a(a);var e=d.a",
+ "(a);a=[];for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.char",
+ "At(d))}c=\"\";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;ret",
+ "urn c},3);T(\"true\",2,!1,!1,g(!0),0);function U(a,b,c,d){this.h=a;this",
+ ".r=b;this.m=c;this.H=d}U.prototype.toString=function(){return this.h};v",
+ "ar V={};function W(a,b,c,d){if(a in V)throw Error(\"Axis already create",
+ "d: \"+a);V[a]=new U(a,b,c,!!d)}W(\"ancestor\",function(a,b){for(var c=n",
+ "ew H,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},!0);W(\"a",
+ "ncestor-or-self\",function(a,b){var c=new H,d=b;do a.matches(d)&&c.unsh",
+ "ift(d);while(d=d.parentNode);return c},!0);\nW(\"attribute\",function(a",
+ ",b){var c=new H,d=a.getName(),e=b.attributes;if(e)if(\"*\"==d)for(var d",
+ "=0,f;f=e[d];d++)c.add(f);else(f=e.getNamedItem(d))&&c.add(f);return c},",
+ "!1);W(\"child\",function(a,b,c,d,e){return ea.call(null,a,b,l(c)?c:null",
+ ",l(d)?d:null,e||new H)},!1,!0);W(\"descendant\",G,!1,!0);W(\"descendant",
+ "-or-self\",function(a,b,c,d){var e=new H;F(b,c,d)&&a.matches(b)&&e.add(",
+ "b);return G(a,b,c,d,e)},!1,!0);\nW(\"following\",function(a,b,c,d){var ",
+ "e=new H;do for(var f=b;f=f.nextSibling;)F(f,c,d)&&a.matches(f)&&e.add(f",
+ "),e=G(a,f,c,d,e);while(b=b.parentNode);return e},!1,!0);W(\"following-s",
+ "ibling\",function(a,b){for(var c=new H,d=b;d=d.nextSibling;)a.matches(d",
+ ")&&c.add(d);return c},!1);W(\"namespace\",function(){return new H},!1);",
+ "W(\"parent\",function(a,b){var c=new H;if(9==b.nodeType)return c;if(2==",
+ "b.nodeType)return c.add(b.ownerElement),c;var d=b.parentNode;a.matches(",
+ "d)&&c.add(d);return c},!1);\nW(\"preceding\",function(a,b,c,d){var e=ne",
+ "w H,f=[];do f.unshift(b);while(b=b.parentNode);for(var k=1,v=f.length;k",
+ "<v;k++){var z=[];for(b=f[k];b=b.previousSibling;)z.unshift(b);for(var K",
+ "=0,fa=z.length;K<fa;K++)b=z[K],F(b,c,d)&&a.matches(b)&&e.add(b),e=G(a,b",
+ ",c,d,e)}return e},!0,!0);W(\"preceding-sibling\",function(a,b){for(var ",
+ "c=new H,d=b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},!",
+ "0);W(\"self\",function(a,b){var c=new H;a.matches(b)&&c.add(b);return c",
+ "},!1);function X(a,b){var c=b||m,d;d=(c||window).document;d=\"CSS1Compa",
+ "t\"==d.compatMode?d.documentElement:d.body;d=new w(d.clientWidth,d.clie",
+ "ntHeight);var e=a.x>=d.width?a.x-(d.width-1):0>a.x?a.x:0,f=a.y>=d.heigh",
+ "t?a.y-(d.height-1):0>a.y?a.y:0,k;k=c.document?new D(C(c.document)):t||(",
+ "t=new D);k=x(k.k);0==e&&0==f||c.scrollBy(e,f);c=c.document?new D(C(c.do",
+ "cument)):t||(t=new D);c=x(c.k);if(k.x+e!=c.x||k.y+f!=c.y)throw new q(34",
+ ",\"The target location (\"+(a.x+k.x)+\", \"+(a.y+k.y)+\") is not on the",
+ " webpage.\");c=new u(a.x-\ne,a.y-f);if(0>c.x||c.x>=d.width)throw new q(",
+ "34,\"The target location (\"+c.x+\", \"+c.y+\") should be within the vi",
+ "ewport (\"+d.width+\":\"+d.height+\") after scrolling.\");if(0>c.y||c.y",
+ ">=d.height)throw new q(34,\"The target location (\"+c.x+\", \"+c.y+\") ",
+ "should be within the viewport (\"+d.width+\":\"+d.height+\") after scro",
+ "lling.\");return c}var Y=[\"_\"],Z=h;Y[0]in Z||!Z.execScript||Z.execScr",
+ "ipt(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0=",
+ "==X?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=X;; return this._.apply(null,arguments);}.",
+ "apply({navigator:typeof window!=undefined?window.navigator:null,documen",
+ "t:typeof window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_LOCAL_STORAGE_ITEM[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.b=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.getItem=function(a){return this.a.getItem(a)};n.prototype.clear=f",
+ "unction(){this.a.clear()};function p(a){if(!m())throw new d(13,\"Local ",
+ "storage undefined\");return(new n(c.localStorage)).getItem(a)}var q=[\"",
+ "_\"],r=this;q[0]in r||!r.execScript||r.execScript(\"var \"+q[0]);for(va",
+ "r s;q.length&&(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]={}:r",
+ "[s]=p;; return this._.apply(null,arguments);}.apply({navigator:typeof w",
+ "indow!=undefined?window.navigator:null,document:typeof window!=undefine",
+ "d?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_LOCAL_STORAGE_KEY[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.b=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};n.prototype.key=function(a){retu",
+ "rn this.a.key(a)};function p(a){if(!m())throw new d(13,\"Local storage ",
+ "undefined\");return(new n(c.localStorage)).key(a)}var q=[\"_\"],r=this;",
+ "q[0]in r||!r.execScript||r.execScript(\"var \"+q[0]);for(var s;q.length",
+ "&&(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]={}:r[s]=p;; retu",
+ "rn this._.apply(null,arguments);}.apply({navigator:typeof window!=undef",
+ "ined?window.navigator:null,document:typeof window!=undefined?window.doc",
+ "ument:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_LOCAL_STORAGE_KEYS[] = {
+ "function(){return function(){var d=window;function f(a,e){this.code=a;t",
+ "his.state=g[a]||h;this.message=e||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),c=b.length-5;if(0>c||b.indexOf(\"Error\",c)!=c)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function e(){}e.prototype=a.prototype;f.b=",
+ "a.prototype;f.prototype=new e})();\nvar h=\"unknown error\",g={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};g[13]=h;g[9]=\"unknown ",
+ "command\";f.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var k=this.navigator;var l=-1!=(k&&k.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=d||d;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return l?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new f(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};n.prototype.size=function(){retu",
+ "rn this.a.length};n.prototype.key=function(a){return this.a.key(a)};fun",
+ "ction p(){var a;if(!m())throw new f(13,\"Local storage undefined\");a=n",
+ "ew n(d.localStorage);for(var e=[],b=a.size(),c=0;c<b;c++)e[c]=a.a.key(c",
+ ");return e}var q=[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(",
+ "\"var \"+q[0]);for(var s;q.length&&(s=q.shift());)q.length||void 0===p?",
+ "r=r[s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(null,arguments);}.appl",
+ "y({navigator:typeof window!=undefined?window.navigator:null,document:ty",
+ "peof window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_LOCAL_STORAGE_SIZE[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.b=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};n.prototype.size=function(){retu",
+ "rn this.a.length};function p(){if(!m())throw new d(13,\"Local storage u",
+ "ndefined\");return(new n(c.localStorage)).size()}var q=[\"_\"],r=this;q",
+ "[0]in r||!r.execScript||r.execScript(\"var \"+q[0]);for(var s;q.length&",
+ "&(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]={}:r[s]=p;; retur",
+ "n this._.apply(null,arguments);}.apply({navigator:typeof window!=undefi",
+ "ned?window.navigator:null,document:typeof window!=undefined?window.docu",
+ "ment:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_SESSION_STORAGE_ITEM[] = {
+ "function(){return function(){var c=window;function e(a,d){this.code=a;t",
+ "his.state=f[a]||g;this.message=d||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function d(){}d.prototype=a.prototype;e.b=",
+ "a.prototype;e.prototype=new d})();\nvar g=\"unknown error\",f={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};f[13]=g;f[9]=\"unknown ",
+ "command\";e.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new e(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.getItem=function(a){return this.a.getItem(a)};n.prototype.clear=f",
+ "unction(){this.a.clear()};function p(a){var d;if(m())d=new n(c.sessionS",
+ "torage);else throw new e(13,\"Session storage undefined\");return d.get",
+ "Item(a)}var q=[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(\"va",
+ "r \"+q[0]);for(var s;q.length&&(s=q.shift());)q.length||void 0===p?r=r[",
+ "s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(null,arguments);}.apply({n",
+ "avigator:typeof window!=undefined?window.navigator:null,document:typeof",
+ " window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_SESSION_STORAGE_KEY[] = {
+ "function(){return function(){var c=window;function e(a,d){this.code=a;t",
+ "his.state=f[a]||g;this.message=d||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function d(){}d.prototype=a.prototype;e.b=",
+ "a.prototype;e.prototype=new d})();\nvar g=\"unknown error\",f={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};f[13]=g;f[9]=\"unknown ",
+ "command\";e.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new e(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};n.prototype.key=function(a){retu",
+ "rn this.a.key(a)};function p(a){var d;if(m())d=new n(c.sessionStorage);",
+ "else throw new e(13,\"Session storage undefined\");return d.key(a)}var ",
+ "q=[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(\"var \"+q[0]);f",
+ "or(var s;q.length&&(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]",
+ "={}:r[s]=p;; return this._.apply(null,arguments);}.apply({navigator:typ",
+ "eof window!=undefined?window.navigator:null,document:typeof window!=und",
+ "efined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_SESSION_STORAGE_KEYS[] = {
+ "function(){return function(){var d=window;function f(a,e){this.code=a;t",
+ "his.state=g[a]||h;this.message=e||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),c=b.length-5;if(0>c||b.indexOf(\"Error\",c)!=c)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function e(){}e.prototype=a.prototype;f.b=",
+ "a.prototype;f.prototype=new e})();\nvar h=\"unknown error\",g={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};g[13]=h;g[9]=\"unknown ",
+ "command\";f.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var k=this.navigator;var l=-1!=(k&&k.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=d||d;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return l?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new f(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};n.prototype.size=function(){retu",
+ "rn this.a.length};n.prototype.key=function(a){return this.a.key(a)};fun",
+ "ction p(){var a;if(m())a=new n(d.sessionStorage);else throw new f(13,\"",
+ "Session storage undefined\");for(var e=[],b=a.size(),c=0;c<b;c++)e[c]=a",
+ ".a.key(c);return e}var q=[\"_\"],r=this;q[0]in r||!r.execScript||r.exec",
+ "Script(\"var \"+q[0]);for(var s;q.length&&(s=q.shift());)q.length||void",
+ " 0===p?r=r[s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(null,arguments)",
+ ";}.apply({navigator:typeof window!=undefined?window.navigator:null,docu",
+ "ment:typeof window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_SESSION_STORAGE_SIZE[] = {
+ "function(){return function(){var c=window;function d(a,g){this.code=a;t",
+ "his.state=e[a]||f;this.message=g||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function g(){}g.prototype=a.prototype;d.b=",
+ "a.prototype;d.prototype=new g})();\nvar f=\"unknown error\",e={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};e[13]=f;e[9]=\"unknown ",
+ "command\";d.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=c||c;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new d(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.clear=function(){this.a.clear()};n.prototype.size=function(){retu",
+ "rn this.a.length};function p(){var a;if(m())a=new n(c.sessionStorage);e",
+ "lse throw new d(13,\"Session storage undefined\");return a.size()}var q",
+ "=[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(\"var \"+q[0]);fo",
+ "r(var s;q.length&&(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]=",
+ "{}:r[s]=p;; return this._.apply(null,arguments);}.apply({navigator:type",
+ "of window!=undefined?window.navigator:null,document:typeof window!=unde",
+ "fined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_LOCATION[] = {
+ "function(){return function(){var g=this;var h;function k(a,b){this.x=vo",
+ "id 0!==a?a:0;this.y=void 0!==b?b:0}k.prototype.toString=function(){retu",
+ "rn\"(\"+this.x+\", \"+this.y+\")\"};function l(a){return 9==a.nodeType?",
+ "a:a.ownerDocument||a.document}function m(a){this.a=a||g.document||docum",
+ "ent};function n(a){var b;a:{b=l(a);if(b.defaultView&&b.defaultView.getC",
+ "omputedStyle&&(b=b.defaultView.getComputedStyle(a,null))){b=b.position|",
+ "|b.getPropertyValue(\"position\")||\"\";break a}b=\"\"}return b||(a.cur",
+ "rentStyle?a.currentStyle.position:null)||a.style&&a.style.position}\nfu",
+ "nction p(a){var b=l(a),f=n(a),c=\"fixed\"==f||\"absolute\"==f;for(a=a.p",
+ "arentNode;a&&a!=b;a=a.parentNode)if(f=n(a),c=c&&\"static\"==f&&a!=b.doc",
+ "umentElement&&a!=b.body,!c&&(a.scrollWidth>a.clientWidth||a.scrollHeigh",
+ "t>a.clientHeight||\"fixed\"==f||\"absolute\"==f||\"relative\"==f))retur",
+ "n a;return null};function q(a){var b=l(a),f=n(a),c=new k(0,0),e=(b?l(b)",
+ ":document).documentElement;if(a==e)return c;if(a.getBoundingClientRect)",
+ "{a:{var d;try{d=a.getBoundingClientRect()}catch(u){a={left:0,top:0,righ",
+ "t:0,bottom:0};break a}a=d}e=(b?new m(l(b)):h||(h=new m)).a;b=e.body;e=e",
+ ".parentWindow||e.defaultView;b=new k(e.pageXOffset||b.scrollLeft,e.page",
+ "YOffset||b.scrollTop);c.x=a.left+b.x;c.y=a.top+b.y}else if(b.getBoxObje",
+ "ctFor)a=b.getBoxObjectFor(a),b=b.getBoxObjectFor(e),c.x=a.screenX-b.scr",
+ "eenX,c.y=a.screenY-b.screenY;\nelse{d=a;do{c.x+=d.offsetLeft;c.y+=d.off",
+ "setTop;d!=a&&(c.x+=d.clientLeft||0,c.y+=d.clientTop||0);if(\"fixed\"==n",
+ "(d)){c.x+=b.body.scrollLeft;c.y+=b.body.scrollTop;break}d=d.offsetParen",
+ "t}while(d&&d!=a);\"absolute\"==f&&(c.y-=b.body.offsetTop);for(d=a;(d=p(",
+ "d))&&d!=b.body&&d!=e;)c.x-=d.scrollLeft,c.y-=d.scrollTop}return c}var r",
+ "=[\"_\"],s=g;r[0]in s||!s.execScript||s.execScript(\"var \"+r[0]);for(v",
+ "ar t;r.length&&(t=r.shift());)r.length||void 0===q?s=s[t]?s[t]:s[t]={}:",
+ "s[t]=q;; return this._.apply(null,arguments);}.apply({navigator:typeof ",
+ "window!=undefined?window.navigator:null,document:typeof window!=undefin",
+ "ed?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_SIZE[] = {
+ "function(){return function(){function c(a,b){this.width=a;this.height=b",
+ "}c.prototype.toString=function(){return\"(\"+this.width+\" x \"+this.he",
+ "ight+\")\"};function d(a){var b=a.offsetWidth,f=a.offsetHeight;if((void",
+ " 0===b||!b&&!f)&&a.getBoundingClientRect){a:{var g;try{g=a.getBoundingC",
+ "lientRect()}catch(l){a={left:0,top:0,right:0,bottom:0};break a}a=g}retu",
+ "rn new c(a.right-a.left,a.bottom-a.top)}return new c(b,f)};function e(a",
+ "){var b;a:{b=9==a.nodeType?a:a.ownerDocument||a.document;if(b.defaultVi",
+ "ew&&b.defaultView.getComputedStyle&&(b=b.defaultView.getComputedStyle(a",
+ ",null))){b=b.display||b.getPropertyValue(\"display\")||\"\";break a}b=",
+ "\"\"}if(\"none\"!=(b||(a.currentStyle?a.currentStyle.display:null)||a.s",
+ "tyle&&a.style.display))return d(a);b=a.style;var f=b.display,g=b.visibi",
+ "lity,l=b.position;b.visibility=\"hidden\";b.position=\"absolute\";b.dis",
+ "play=\"inline\";a=d(a);b.display=f;b.position=l;b.visibility=g;return a",
+ "}\nvar h=[\"_\"],k=this;h[0]in k||!k.execScript||k.execScript(\"var \"+",
+ "h[0]);for(var m;h.length&&(m=h.shift());)h.length||void 0===e?k=k[m]?k[",
+ "m]:k[m]={}:k[m]=e;; return this._.apply(null,arguments);}.apply({naviga",
+ "tor:typeof window!=undefined?window.navigator:null,document:typeof wind",
+ "ow!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const GET_TEXT[] = {
+ "function(){return function(){function f(a){return function(){return a}}",
+ "var k=this;\nfunction l(a){var b=typeof a;if(\"object\"==b)if(a){if(a i",
+ "nstanceof Array)return\"array\";if(a instanceof Object)return b;var c=O",
+ "bject.prototype.toString.call(a);if(\"[object Window]\"==c)return\"obje",
+ "ct\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined",
+ "\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.p",
+ "ropertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]",
+ "\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"call\"))return\"function\"}else r",
+ "eturn\"null\";\nelse if(\"function\"==b&&\"undefined\"==typeof a.call)r",
+ "eturn\"object\";return b}function m(a){return\"string\"==typeof a};func",
+ "tion aa(a){var b=a.length-1;return 0<=b&&a.indexOf(\" \",b)==b}function",
+ " ba(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return c.to",
+ "UpperCase()})};var ca=Array.prototype;function p(a,b){for(var c=a.lengt",
+ "h,d=m(a)?a.split(\"\"):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)}fu",
+ "nction da(a,b){if(a.reduce)return a.reduce(b,\"\");var c=\"\";p(a,funct",
+ "ion(d,e){c=b.call(void 0,c,d,e,a)});return c}function ea(a,b){for(var c",
+ "=a.length,d=m(a)?a.split(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d",
+ "[e],e,a))return!0;return!1}\nfunction q(a,b){var c;a:if(m(a))c=m(b)&&1=",
+ "=b.length?a.indexOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c in a&&a[c]",
+ "===b)break a;c=-1}return 0<=c}function fa(a,b,c){return 2>=arguments.le",
+ "ngth?ca.slice.call(a,b):ca.slice.call(a,b,c)};var r={aliceblue:\"#f0f8f",
+ "f\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",az",
+ "ure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\",",
+ "blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",brow",
+ "n:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:\"",
+ "#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#649",
+ "5ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkblu",
+ "e:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray:",
+ "\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#b",
+ "db76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:",
+ "\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9",
+ "967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray",
+ ":\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkvi",
+ "olet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:",
+ "\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22",
+ "222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff",
+ "\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",gold",
+ "enrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adf",
+ "f2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianr",
+ "ed:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",l",
+ "avender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lem",
+ "onchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",ligh",
+ "tcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3",
+ "\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",l",
+ "ightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#87ce",
+ "fa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelbl",
+ "ue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32",
+ "cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediuma",
+ "quamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",m",
+ "ediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7",
+ "b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediu",
+ "mvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",m",
+ "istyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",nav",
+ "y:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23",
+ "\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegold",
+ "enrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palev",
+ "ioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:",
+ "\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",pu",
+ "rple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#416",
+ "9e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\"",
+ ",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:",
+ "\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#7080",
+ "90\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",ste",
+ "elblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\"",
+ ",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f",
+ "5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yel",
+ "lowgreen:\"#9acd32\"};var ga=\"background-color border-top-color border",
+ "-right-color border-bottom-color border-left-color color outline-color",
+ "\".split(\" \"),ha=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function ",
+ "ia(a){if(!ja.test(a))throw Error(\"'\"+a+\"' is not a valid hex color\"",
+ ");4==a.length&&(a=a.replace(ha,\"#$1$1$2$2$3$3\"));return a.toLowerCase",
+ "()}var ja=/^#(?:[0-9a-f]{3}){1,2}$/i,ka=/^(?:rgba)?\\((\\d{1,3}),\\s?(",
+ "\\d{1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i;\nfunction la(a){var ",
+ "b=a.match(ka);if(b){a=Number(b[1]);var c=Number(b[2]),d=Number(b[3]),b=",
+ "Number(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)re",
+ "turn[a,c,d,b]}return[]}var ma=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-",
+ "9]\\d{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;function na(a){var b=a.match(ma",
+ ");if(b){a=Number(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=",
+ "a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};function s(a,b){t",
+ "his.code=a;this.state=oa[a]||pa;this.message=b||\"\";var c=this.state.r",
+ "eplace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(",
+ "/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)",
+ "c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this.st",
+ "ack=c.stack||\"\"}(function(){var a=Error;function b(){}b.prototype=a.p",
+ "rototype;s.U=a.prototype;s.prototype=new b})();\nvar pa=\"unknown error",
+ "\",oa={15:\"element not selectable\",11:\"element not visible\",31:\"im",
+ "e engine activation failed\",30:\"ime not available\",24:\"invalid cook",
+ "ie domain\",29:\"invalid element coordinates\",12:\"invalid element sta",
+ "te\",32:\"invalid selector\",51:\"invalid selector\",52:\"invalid selec",
+ "tor\",17:\"javascript error\",405:\"unsupported operation\",34:\"move t",
+ "arget out of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no",
+ " such frame\",23:\"no such window\",28:\"script timeout\",33:\"session ",
+ "not created\",10:\"stale element reference\",\n0:\"success\",21:\"timeo",
+ "ut\",25:\"unable to set cookie\",26:\"unexpected alert open\"};oa[13]=p",
+ "a;oa[9]=\"unknown command\";s.prototype.toString=function(){return this",
+ ".name+\": \"+this.message};var t,v,w,qa=k.navigator;w=qa&&qa.platform||",
+ "\"\";t=-1!=w.indexOf(\"Mac\");v=-1!=w.indexOf(\"Win\");var x=-1!=w.inde",
+ "xOf(\"Linux\");var y;function z(a,b){this.x=void 0!==a?a:0;this.y=void ",
+ "0!==b?b:0}z.prototype.toString=function(){return\"(\"+this.x+\", \"+thi",
+ "s.y+\")\"};z.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=",
+ "Math.ceil(this.y);return this};z.prototype.floor=function(){this.x=Math",
+ ".floor(this.x);this.y=Math.floor(this.y);return this};z.prototype.round",
+ "=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return ",
+ "this};function B(a,b){this.width=a;this.height=b}B.prototype.toString=f",
+ "unction(){return\"(\"+this.width+\" x \"+this.height+\")\"};B.prototype",
+ ".ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil",
+ "(this.height);return this};B.prototype.floor=function(){this.width=Math",
+ ".floor(this.width);this.height=Math.floor(this.height);return this};B.p",
+ "rototype.round=function(){this.width=Math.round(this.width);this.height",
+ "=Math.round(this.height);return this};var ra=3;function sa(a){for(;a&&1",
+ "!=a.nodeType;)a=a.previousSibling;return a}function ta(a,b){if(a.contai",
+ "ns&&1==b.nodeType)return a==b||a.contains(b);if(\"undefined\"!=typeof a",
+ ".compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition",
+ "(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction ua(a,b){if(",
+ "a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosi",
+ "tion(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&&\"sourceIndex\"in ",
+ "a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a.sour",
+ "ceIndex-b.sourceIndex;var e=a.parentNode,g=b.parentNode;return e==g?va(",
+ "a,b):!c&&ta(e,b)?-1*wa(a,b):!d&&ta(g,a)?wa(b,a):(c?a.sourceIndex:e.sour",
+ "ceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=C(a);c=d.createRange();c.sel",
+ "ectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);\nd.collaps",
+ "e(!0);return c.compareBoundaryPoints(k.Range.START_TO_END,d)}function w",
+ "a(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;",
+ ")d=d.parentNode;return va(d,a)}function va(a,b){for(var c=b;c=c.previou",
+ "sSibling;)if(c==a)return-1;return 1}function C(a){return 9==a.nodeType?",
+ "a:a.ownerDocument||a.document}function xa(a,b){a=a.parentNode;for(var c",
+ "=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function D(a){th",
+ "is.B=a||k.document||document}\nfunction ya(a){var b=a.B;a=b.body;b=b.pa",
+ "rentWindow||b.defaultView;return new z(b.pageXOffset||a.scrollLeft,b.pa",
+ "geYOffset||a.scrollTop)}D.prototype.contains=ta;function E(a){var b=nul",
+ "l,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:",
+ "b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==c){a",
+ "=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=",
+ "a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a",
+ "=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction F(a",
+ ",b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){ret",
+ "urn!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}functio",
+ "n G(a,b,c,d,e){return za.call(null,a,b,m(c)?c:null,m(d)?d:null,e||new H",
+ ")}\nfunction za(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b.get",
+ "ElementsByName(d),p(b,function(b){a.matches(b)&&e.add(b)})):b.getElemen",
+ "tsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),p(b,funct",
+ "ion(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagName",
+ "&&(b=b.getElementsByTagName(a.getName()),p(b,function(a){F(a,c,d)&&e.ad",
+ "d(a)}));return e}function Aa(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSi",
+ "bling)F(b,c,d)&&a.matches(b)&&e.add(b);return e};function H(){this.g=th",
+ "is.f=null;this.m=0}function Ba(a){this.t=a;this.next=this.o=null}H.prot",
+ "otype.unshift=function(a){a=new Ba(a);a.next=this.f;this.g?this.f.o=a:t",
+ "his.f=this.g=a;this.f=a;this.m++};H.prototype.add=function(a){a=new Ba(",
+ "a);a.o=this.g;this.f?this.g.next=a:this.f=this.g=a;this.g=a;this.m++};f",
+ "unction Ca(a){return(a=a.f)?a.t:null}function I(a){return new Da(a,!1)}",
+ "function Da(a,b){this.Q=a;this.q=(this.u=b)?a.g:a.f;this.C=null}\nDa.pr",
+ "ototype.next=function(){var a=this.q;if(null==a)return null;var b=this.",
+ "C=a;this.q=this.u?a.o:a.next;return b.t};function J(a,b,c,d,e){b=b.eval",
+ "uate(d);c=c.evaluate(d);var g;if(b instanceof H&&c instanceof H){e=I(b)",
+ ";for(d=e.next();d;d=e.next())for(b=I(c),g=b.next();g;g=b.next())if(a(E(",
+ "d),E(g)))return!0;return!1}if(b instanceof H||c instanceof H){b instanc",
+ "eof H?e=b:(e=c,c=b);e=I(e);b=typeof c;for(d=e.next();d;d=e.next()){swit",
+ "ch(b){case \"number\":d=+E(d);break;case \"boolean\":d=!!E(d);break;cas",
+ "e \"string\":d=E(d);break;default:throw Error(\"Illegal primitive type ",
+ "for comparison.\");}if(a(d,c))return!0}return!1}return e?\n\"boolean\"=",
+ "=typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number\"==typeof b||\"num",
+ "ber\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function Ea(a,b,c,d){this.D=a;",
+ "this.S=b;this.A=c;this.k=d}Ea.prototype.toString=function(){return this",
+ ".D};var Fa={};function K(a,b,c,d){if(a in Fa)throw Error(\"Binary opera",
+ "tor already created: \"+a);a=new Ea(a,b,c,d);Fa[a.toString()]=a}K(\"div",
+ "\",6,1,function(a,b,c){return a.d(c)/b.d(c)});K(\"mod\",6,1,function(a,",
+ "b,c){return a.d(c)%b.d(c)});K(\"*\",6,1,function(a,b,c){return a.d(c)*b",
+ ".d(c)});\nK(\"+\",5,1,function(a,b,c){return a.d(c)+b.d(c)});K(\"-\",5,",
+ "1,function(a,b,c){return a.d(c)-b.d(c)});K(\"<\",4,2,function(a,b,c){re",
+ "turn J(function(a,b){return a<b},a,b,c)});K(\">\",4,2,function(a,b,c){r",
+ "eturn J(function(a,b){return a>b},a,b,c)});K(\"<=\",4,2,function(a,b,c)",
+ "{return J(function(a,b){return a<=b},a,b,c)});K(\">=\",4,2,function(a,b",
+ ",c){return J(function(a,b){return a>=b},a,b,c)});K(\"=\",3,2,function(a",
+ ",b,c){return J(function(a,b){return a==b},a,b,c,!0)});\nK(\"!=\",3,2,fu",
+ "nction(a,b,c){return J(function(a,b){return a!=b},a,b,c,!0)});K(\"and\"",
+ ",2,2,function(a,b,c){return a.j(c)&&b.j(c)});K(\"or\",1,2,function(a,b,",
+ "c){return a.j(c)||b.j(c)});function Ga(a,b,c,d,e,g,h,u,n){this.n=a;this",
+ ".A=b;this.P=c;this.O=d;this.N=e;this.k=g;this.M=h;this.L=void 0!==u?u:h",
+ ";this.R=!!n}Ga.prototype.toString=function(){return this.n};var Ha={};f",
+ "unction L(a,b,c,d,e,g,h,u){if(a in Ha)throw Error(\"Function already cr",
+ "eated: \"+a+\".\");Ha[a]=new Ga(a,b,c,d,!1,e,g,h,u)}L(\"boolean\",2,!1,",
+ "!1,function(a,b){return b.j(a)},1);L(\"ceiling\",1,!1,!1,function(a,b){",
+ "return Math.ceil(b.d(a))},1);\nL(\"concat\",3,!1,!1,function(a,b){var c",
+ "=fa(arguments,1);return da(c,function(b,c){return b+c.c(a)})},2,null);L",
+ "(\"contains\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return-1!=b.ind",
+ "exOf(a)},2);L(\"count\",1,!1,!1,function(a,b){return b.evaluate(a).m},1",
+ ",1,!0);L(\"false\",2,!1,!1,f(!1),0);L(\"floor\",1,!1,!1,function(a,b){r",
+ "eturn Math.floor(b.d(a))},1);\nL(\"id\",4,!1,!1,function(a,b){var c=a.h",
+ "(),d=9==c.nodeType?c:c.ownerDocument,c=b.c(a).split(/\\s+/),e=[];p(c,fu",
+ "nction(a){(a=d.getElementById(a))&&!q(e,a)&&e.push(a)});e.sort(ua);var ",
+ "g=new H;p(e,function(a){g.add(a)});return g},1);L(\"lang\",2,!1,!1,f(!1",
+ "),1);L(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw Error(",
+ "\"Function last expects ()\");return a.I()},0);L(\"local-name\",3,!1,!0",
+ ",function(a,b){var c=b?Ca(b.evaluate(a)):a.h();return c?c.nodeName.toLo",
+ "werCase():\"\"},0,1,!0);\nL(\"name\",3,!1,!0,function(a,b){var c=b?Ca(b",
+ ".evaluate(a)):a.h();return c?c.nodeName.toLowerCase():\"\"},0,1,!0);L(",
+ "\"namespace-uri\",3,!0,!1,f(\"\"),0,1,!0);L(\"normalize-space\",3,!1,!0",
+ ",function(a,b){return(b?b.c(a):E(a.h())).replace(/[\\s\\xa0]+/g,\" \").",
+ "replace(/^\\s+|\\s+$/g,\"\")},0,1);L(\"not\",2,!1,!1,function(a,b){retu",
+ "rn!b.j(a)},1);L(\"number\",1,!1,!0,function(a,b){return b?b.d(a):+E(a.h",
+ "())},0,1);L(\"position\",1,!0,!1,function(a){return a.J()},0);L(\"round",
+ "\",1,!1,!1,function(a,b){return Math.round(b.d(a))},1);\nL(\"starts-wit",
+ "h\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return 0==b.lastIndexOf(a",
+ ",0)},2);L(\"string\",3,!1,!0,function(a,b){return b?b.c(a):E(a.h())},0,",
+ "1);L(\"string-length\",1,!1,!0,function(a,b){return(b?b.c(a):E(a.h())).",
+ "length},0,1);\nL(\"substring\",3,!1,!1,function(a,b,c,d){c=c.d(a);if(is",
+ "NaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.d(a):Infinity;if(isN",
+ "aN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,0);a",
+ "=b.c(a);if(Infinity==d)return a.substring(e);b=Math.round(d);return a.s",
+ "ubstring(e,c+b)},2,3);L(\"substring-after\",3,!1,!1,function(a,b,c){b=b",
+ ".c(a);a=c.c(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)}",
+ ",2);\nL(\"substring-before\",3,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);",
+ "a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);L(\"sum\",1,!1,!1,",
+ "function(a,b){for(var c=I(b.evaluate(a)),d=0,e=c.next();e;e=c.next())d+",
+ "=+E(e);return d},1,1,!0);L(\"translate\",3,!1,!1,function(a,b,c,d){b=b.",
+ "c(a);c=c.c(a);var e=d.c(a);a=[];for(d=0;d<c.length;d++){var g=c.charAt(",
+ "d);g in a||(a[g]=e.charAt(d))}c=\"\";for(d=0;d<b.length;d++)g=b.charAt(",
+ "d),c+=g in a?a[g]:g;return c},3);L(\"true\",2,!1,!1,f(!0),0);function I",
+ "a(a,b,c,d){this.n=a;this.H=b;this.u=c;this.V=d}Ia.prototype.toString=fu",
+ "nction(){return this.n};var Ja={};function M(a,b,c,d){if(a in Ja)throw ",
+ "Error(\"Axis already created: \"+a);Ja[a]=new Ia(a,b,c,!!d)}M(\"ancesto",
+ "r\",function(a,b){for(var c=new H,d=b;d=d.parentNode;)a.matches(d)&&c.u",
+ "nshift(d);return c},!0);M(\"ancestor-or-self\",function(a,b){var c=new ",
+ "H,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c},!0)",
+ ";\nM(\"attribute\",function(a,b){var c=new H,d=a.getName(),e=b.attribut",
+ "es;if(e)if(\"*\"==d)for(var d=0,g;g=e[d];d++)c.add(g);else(g=e.getNamed",
+ "Item(d))&&c.add(g);return c},!1);M(\"child\",function(a,b,c,d,e){return",
+ " Aa.call(null,a,b,m(c)?c:null,m(d)?d:null,e||new H)},!1,!0);M(\"descend",
+ "ant\",G,!1,!0);M(\"descendant-or-self\",function(a,b,c,d){var e=new H;F",
+ "(b,c,d)&&a.matches(b)&&e.add(b);return G(a,b,c,d,e)},!1,!0);\nM(\"follo",
+ "wing\",function(a,b,c,d){var e=new H;do for(var g=b;g=g.nextSibling;)F(",
+ "g,c,d)&&a.matches(g)&&e.add(g),e=G(a,g,c,d,e);while(b=b.parentNode);ret",
+ "urn e},!1,!0);M(\"following-sibling\",function(a,b){for(var c=new H,d=b",
+ ";d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);M(\"namespace\",",
+ "function(){return new H},!1);M(\"parent\",function(a,b){var c=new H;if(",
+ "9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement),c;",
+ "var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nM(\"preceding",
+ "\",function(a,b,c,d){var e=new H,g=[];do g.unshift(b);while(b=b.parentN",
+ "ode);for(var h=1,u=g.length;h<u;h++){var n=[];for(b=g[h];b=b.previousSi",
+ "bling;)n.unshift(b);for(var A=0,Ya=n.length;A<Ya;A++)b=n[A],F(b,c,d)&&a",
+ ".matches(b)&&e.add(b),e=G(a,b,c,d,e)}return e},!0,!0);M(\"preceding-sib",
+ "ling\",function(a,b){for(var c=new H,d=b;d=d.previousSibling;)a.matches",
+ "(d)&&c.unshift(d);return c},!0);M(\"self\",function(a,b){var c=new H;a.",
+ "matches(b)&&c.add(b);return c},!1);var N={};N.v=function(){var a={W:\"h",
+ "ttp://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();N",
+ ".k=function(a,b,c){var d=C(a);try{var e=d.createNSResolver?d.createNSRe",
+ "solver(d.documentElement):N.v;return d.evaluate(b,a,e,c,null)}catch(g){",
+ "throw new s(32,\"Unable to locate an element with the xpath expression ",
+ "\"+b+\" because of the following error:\\n\"+g);}};N.p=function(a,b){if",
+ "(!a||1!=a.nodeType)throw new s(32,'The result of the xpath expression ",
+ "\"'+b+'\" is: '+a+\". It should be an element.\");};\nN.F=function(a,b)",
+ "{var c=function(){var c=N.k(b,a,9);return c?c.singleNodeValue||null:b.s",
+ "electSingleNode?(c=C(b),c.setProperty&&c.setProperty(\"SelectionLanguag",
+ "e\",\"XPath\"),b.selectSingleNode(a)):null}();null===c||N.p(c,a);return",
+ " c};\nN.K=function(a,b){var c=function(){var c=N.k(b,a,7);if(c){for(var",
+ " e=c.snapshotLength,g=[],h=0;h<e;++h)g.push(c.snapshotItem(h));return g",
+ "}return b.selectNodes?(c=C(b),c.setProperty&&c.setProperty(\"SelectionL",
+ "anguage\",\"XPath\"),b.selectNodes(a)):[]}();p(c,function(b){N.p(b,a)})",
+ ";return c};function O(a,b,c,d){this.left=a;this.top=b;this.width=c;this",
+ ".height=d}O.prototype.toString=function(){return\"(\"+this.left+\", \"+",
+ "this.top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};O.prototype.co",
+ "ntains=function(a){return a instanceof O?this.left<=a.left&&this.left+t",
+ "his.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top",
+ "+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y",
+ "<=this.top+this.height};\nO.prototype.ceil=function(){this.left=Math.ce",
+ "il(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.wi",
+ "dth);this.height=Math.ceil(this.height);return this};O.prototype.floor=",
+ "function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top",
+ ");this.width=Math.floor(this.width);this.height=Math.floor(this.height)",
+ ";return this};\nO.prototype.round=function(){this.left=Math.round(this.",
+ "left);this.top=Math.round(this.top);this.width=Math.round(this.width);t",
+ "his.height=Math.round(this.height);return this};function Ka(a,b){var c=",
+ "C(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.default",
+ "View.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"\"}f",
+ "unction P(a){return Ka(a,\"position\")||(a.currentStyle?a.currentStyle.",
+ "position:null)||a.style&&a.style.position}function La(a){var b;try{b=a.",
+ "getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}",
+ "return b}\nfunction Ma(a){var b=C(a),c=P(a),d=\"fixed\"==c||\"absolute",
+ "\"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=P(a),d=d&&\"static",
+ "\"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth",
+ "||a.scrollHeight>a.clientHeight||\"fixed\"==c||\"absolute\"==c||\"relat",
+ "ive\"==c))return a;return null}\nfunction Na(a){if(1==a.nodeType){var b",
+ ";if(a.getBoundingClientRect)b=La(a),b=new z(b.left,b.top);else{b=ya(a?n",
+ "ew D(C(a)):y||(y=new D));var c=C(a),d=P(a),e=new z(0,0),g=(c?C(c):docum",
+ "ent).documentElement;if(a!=g)if(a.getBoundingClientRect)a=La(a),c=ya(c?",
+ "new D(C(c)):y||(y=new D)),e.x=a.left+c.x,e.y=a.top+c.y;else if(c.getBox",
+ "ObjectFor)a=c.getBoxObjectFor(a),c=c.getBoxObjectFor(g),e.x=a.screenX-c",
+ ".screenX,e.y=a.screenY-c.screenY;else{var h=a;do{e.x+=h.offsetLeft;e.y+",
+ "=h.offsetTop;h!=a&&(e.x+=h.clientLeft||\n0,e.y+=h.clientTop||0);if(\"fi",
+ "xed\"==P(h)){e.x+=c.body.scrollLeft;e.y+=c.body.scrollTop;break}h=h.off",
+ "setParent}while(h&&h!=a);\"absolute\"==d&&(e.y-=c.body.offsetTop);for(h",
+ "=a;(h=Ma(h))&&h!=c.body&&h!=g;)e.x-=h.scrollLeft,e.y-=h.scrollTop}b=new",
+ " z(e.x-b.x,e.y-b.y)}return b}b=\"function\"==l(a.r);e=a;a.targetTouches",
+ "?e=a.targetTouches[0]:b&&a.r().targetTouches&&(e=a.r().targetTouches[0]",
+ ");return new z(e.clientX,e.clientY)};function Q(a,b){return!!a&&1==a.no",
+ "deType&&(!b||a.tagName.toUpperCase()==b)}function R(a){for(a=a.parentNo",
+ "de;a&&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;retu",
+ "rn Q(a)?a:null}\nfunction S(a,b){var c=ba(b);if(\"float\"==c||\"cssFloa",
+ "t\"==c||\"styleFloat\"==c)c=\"cssFloat\";c=Ka(a,c)||Oa(a,c);if(null===c",
+ ")c=null;else if(q(ga,b)&&(ja.test(\"#\"==c.charAt(0)?c:\"#\"+c)||na(c).",
+ "length||r&&r[c.toLowerCase()]||la(c).length)){var d=la(c);if(!d.length)",
+ "{a:if(d=na(c),!d.length){d=(d=r[c.toLowerCase()])?d:\"#\"==c.charAt(0)?",
+ "c:\"#\"+c;if(ja.test(d)&&(d=ia(d),d=ia(d),d=[parseInt(d.substr(1,2),16)",
+ ",parseInt(d.substr(3,2),16),parseInt(d.substr(5,2),16)],d.length))break",
+ " a;d=[]}3==d.length&&d.push(1)}c=4!=d.length?\nc:\"rgba(\"+d.join(\", ",
+ "\")+\")\"}return c}function Oa(a,b){var c=a.currentStyle||a.style,d=c[b",
+ "];void 0===d&&\"function\"==l(c.getPropertyValue)&&(d=c.getPropertyValu",
+ "e(b));return\"inherit\"!=d?void 0!==d?d:null:(c=R(a))?Oa(c,b):null}\nfu",
+ "nction Pa(a,b){function c(a){if(\"none\"==S(a,\"display\"))return!1;a=R",
+ "(a);return!a||c(a)}function d(a){var b=T(a);return 0<b.height&&0<b.widt",
+ "h?!0:Q(a,\"PATH\")&&(0<b.height||0<b.width)?(a=S(a,\"stroke-width\"),!!",
+ "a&&0<parseInt(a,10)):\"hidden\"!=S(a,\"overflow\")&&ea(a.childNodes,fun",
+ "ction(a){return a.nodeType==ra||Q(a)&&d(a)})}function e(a){var b=S(a,\"",
+ "-o-transform\")||S(a,\"-webkit-transform\")||S(a,\"-ms-transform\")||S(",
+ "a,\"-moz-transform\")||S(a,\"transform\");if(b&&\"none\"!==b)return b=N",
+ "a(a),a=T(a),0<=b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=R(a);return!a||e(",
+ "a)}if(!Q(a))throw Error(\"Argument to isShown must be of type Element\"",
+ ");if(Q(a,\"OPTION\")||Q(a,\"OPTGROUP\")){var g=xa(a,function(a){return ",
+ "Q(a,\"SELECT\")});return!!g&&Pa(g,!0)}return(g=Qa(a))?!!g.s&&0<g.rect.w",
+ "idth&&0<g.rect.height&&Pa(g.s,b):Q(a,\"INPUT\")&&\"hidden\"==a.type.toL",
+ "owerCase()||Q(a,\"NOSCRIPT\")||\"hidden\"==S(a,\"visibility\")||!c(a)||",
+ "!b&&0==Ra(a)||!d(a)||Sa(a)==U?!1:e(a)}var U=\"hidden\";\nfunction Sa(a)",
+ "{function b(a){var b=a;if(\"visible\"==u)if(a==g)b=h;else if(a==h)retur",
+ "n{x:\"visible\",y:\"visible\"};b={x:S(b,\"overflow-x\"),y:S(b,\"overflo",
+ "w-y\")};a==g&&(b.x=\"hidden\"==b.x?\"hidden\":\"auto\",b.y=\"hidden\"==",
+ "b.y?\"hidden\":\"auto\");return b}function c(a){var b=S(a,\"position\")",
+ ";if(\"fixed\"==b)return g;for(a=R(a);a&&a!=g&&(0==S(a,\"display\").last",
+ "IndexOf(\"inline\",0)||\"absolute\"==b&&\"static\"==S(a,\"position\"));",
+ ")a=R(a);return a}var d=T(a),e=C(a),g=e.documentElement,h=e.body,u=S(g,",
+ "\"overflow\");for(a=c(a);a;a=\nc(a)){var n=T(a),e=b(a),A=d.left>=n.left",
+ "+n.width,n=d.top>=n.top+n.height;if(A&&\"hidden\"==e.x||n&&\"hidden\"==",
+ "e.y)return U;if(A&&\"visible\"!=e.x||n&&\"visible\"!=e.y)return Sa(a)==",
+ "U?U:\"scroll\"}return\"none\"}\nfunction T(a){var b=Qa(a);if(b)return b",
+ ".rect;if(\"function\"==l(a.getBBox))try{var c=a.getBBox();return new O(",
+ "c.x,c.y,c.width,c.height)}catch(d){throw d;}else{if(Q(a,\"HTML\"))retur",
+ "n a=((C(a)?C(a).parentWindow||C(a).defaultView:window)||window).documen",
+ "t,a=\"CSS1Compat\"==a.compatMode?a.documentElement:a.body,a=new B(a.cli",
+ "entWidth,a.clientHeight),new O(0,0,a.width,a.height);var b=Na(a),c=a.of",
+ "fsetWidth,e=a.offsetHeight;c||(e||!a.getBoundingClientRect)||(a=a.getBo",
+ "undingClientRect(),c=a.right-a.left,e=a.bottom-\na.top);return new O(b.",
+ "x,b.y,c,e)}}function Qa(a){var b=Q(a,\"MAP\");if(!b&&!Q(a,\"AREA\"))ret",
+ "urn null;var c=b?a:Q(a.parentNode,\"MAP\")?a.parentNode:null,d=null,e=n",
+ "ull;if(c&&c.name&&(d=N.F('/descendant::*[@usemap = \"#'+c.name+'\"]',C(",
+ "c)))&&(e=T(d),!b&&\"default\"!=a.shape.toLowerCase())){var g=Ta(a);a=Ma",
+ "th.min(Math.max(g.left,0),e.width);b=Math.min(Math.max(g.top,0),e.heigh",
+ "t);c=Math.min(g.width,e.width-a);g=Math.min(g.height,e.height-b);e=new ",
+ "O(a+e.left,b+e.top,c,g)}return{s:d,rect:e||new O(0,0,0,0)}}\nfunction T",
+ "a(a){var b=a.shape.toLowerCase();a=a.coords.split(\",\");if(\"rect\"==b",
+ "&&4==a.length){var b=a[0],c=a[1];return new O(b,c,a[2]-b,a[3]-c)}if(\"c",
+ "ircle\"==b&&3==a.length)return b=a[2],new O(a[0]-b,a[1]-b,2*b,2*b);if(",
+ "\"poly\"==b&&2<a.length){for(var b=a[0],c=a[1],d=b,e=c,g=2;g+1<a.length",
+ ";g+=2)b=Math.min(b,a[g]),d=Math.max(d,a[g]),c=Math.min(c,a[g+1]),e=Math",
+ ".max(e,a[g+1]);return new O(b,c,d-b,e-c)}return new O(0,0,0,0)}function",
+ " Ua(a){return a.replace(/^[^\\S\\xa0]+|[^\\S\\xa0]+$/g,\"\")}\nfunction",
+ " Va(a,b){if(Q(a,\"BR\"))b.push(\"\");else{var c=Q(a,\"TD\"),d=S(a,\"dis",
+ "play\"),e=!c&&!q(Wa,d),g=void 0!=a.previousElementSibling?a.previousEle",
+ "mentSibling:sa(a.previousSibling),g=g?S(g,\"display\"):\"\",h=S(a,\"flo",
+ "at\")||S(a,\"cssFloat\")||S(a,\"styleFloat\");!e||(\"run-in\"==g&&\"non",
+ "e\"==h||/^[\\s\\xa0]*$/.test(b[b.length-1]||\"\"))||b.push(\"\");var u=",
+ "Pa(a),n=null,A=null;u&&(n=S(a,\"white-space\"),A=S(a,\"text-transform\"",
+ "));p(a.childNodes,function(a){a.nodeType==ra&&u?Xa(a,b,n,A):Q(a)&&Va(a,",
+ "b)});g=b[b.length-1]||\"\";!c&&\n\"table-cell\"!=d||(!g||aa(g))||(b[b.l",
+ "ength-1]+=\" \");e&&(\"run-in\"!=d&&!/^[\\s\\xa0]*$/.test(g))&&b.push(",
+ "\"\")}}var Wa=\"inline inline-block inline-table none table-cell table-",
+ "column table-column-group\".split(\" \");\nfunction Xa(a,b,c,d){a=a.nod",
+ "eValue.replace(/\\u200b/g,\"\");a=a.replace(/(\\r\\n|\\r|\\n)/g,\"\\n\"",
+ ");if(\"normal\"==c||\"nowrap\"==c)a=a.replace(/\\n/g,\" \");a=\"pre\"==",
+ "c||\"pre-wrap\"==c?a.replace(/[ \\f\\t\\v\\u2028\\u2029]/g,\"\\u00a0\")",
+ ":a.replace(/[\\ \\f\\t\\v\\u2028\\u2029]+/g,\" \");\"capitalize\"==d?a=",
+ "a.replace(/(^|\\s)(\\S)/g,function(a,b,c){return b+c.toUpperCase()}):\"",
+ "uppercase\"==d?a=a.toUpperCase():\"lowercase\"==d&&(a=a.toLowerCase());",
+ "c=b.pop()||\"\";aa(c)&&0==a.lastIndexOf(\" \",0)&&(a=a.substr(1));b.pus",
+ "h(c+a)}\nfunction Ra(a){var b=1,c=S(a,\"opacity\");c&&(b=Number(c));(a=",
+ "R(a))&&(b*=Ra(a));return b};function V(a,b){this.i={};this.e=[];var c=a",
+ "rguments.length;if(1<c){if(c%2)throw Error(\"Uneven number of arguments",
+ "\");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(",
+ "a){var e;if(a instanceof V)for(d=Za(a),$a(a),e=[],c=0;c<a.e.length;c++)",
+ "e.push(a.i[a.e[c]]);else{var c=[],g=0;for(d in a)c[g++]=d;d=c;c=[];g=0;",
+ "for(e in a)c[g++]=a[e];e=c}for(c=0;c<d.length;c++)this.set(d[c],e[c])}}",
+ "V.prototype.l=0;V.prototype.G=0;function Za(a){$a(a);return a.e.concat(",
+ ")}\nfunction $a(a){if(a.l!=a.e.length){for(var b=0,c=0;b<a.e.length;){v",
+ "ar d=a.e[b];Object.prototype.hasOwnProperty.call(a.i,d)&&(a.e[c++]=d);b",
+ "++}a.e.length=c}if(a.l!=a.e.length){for(var e={},c=b=0;b<a.e.length;)d=",
+ "a.e[b],Object.prototype.hasOwnProperty.call(e,d)||(a.e[c++]=d,e[d]=1),b",
+ "++;a.e.length=c}}V.prototype.get=function(a,b){return Object.prototype.",
+ "hasOwnProperty.call(this.i,a)?this.i[a]:b};\nV.prototype.set=function(a",
+ ",b){Object.prototype.hasOwnProperty.call(this.i,a)||(this.l++,this.e.pu",
+ "sh(a),this.G++);this.i[a]=b};var ab={};function W(a,b,c){var d=typeof a",
+ ";(\"object\"==d&&null!=a||\"function\"==d)&&(a=a.a);a=new bb(a,b,c);!b|",
+ "|b in ab&&!c||(ab[b]={key:a,shift:!1},c&&(ab[c]={key:a,shift:!0}));retu",
+ "rn a}function bb(a,b,c){this.code=a;this.w=b||null;this.T=c||this.w}W(8",
+ ");W(9);W(13);var cb=W(16),db=W(17),eb=W(18);W(19);W(20);W(27);W(32,\" ",
+ "\");W(33);W(34);W(35);W(36);W(37);W(38);W(39);W(40);W(44);W(45);W(46);W",
+ "(48,\"0\",\")\");W(49,\"1\",\"!\");W(50,\"2\",\"@\");W(51,\"3\",\"#\");",
+ "W(52,\"4\",\"$\");W(53,\"5\",\"%\");W(54,\"6\",\"^\");W(55,\"7\",\"&\")",
+ ";\nW(56,\"8\",\"*\");W(57,\"9\",\"(\");W(65,\"a\",\"A\");W(66,\"b\",\"B",
+ "\");W(67,\"c\",\"C\");W(68,\"d\",\"D\");W(69,\"e\",\"E\");W(70,\"f\",\"",
+ "F\");W(71,\"g\",\"G\");W(72,\"h\",\"H\");W(73,\"i\",\"I\");W(74,\"j\",",
+ "\"J\");W(75,\"k\",\"K\");W(76,\"l\",\"L\");W(77,\"m\",\"M\");W(78,\"n\"",
+ ",\"N\");W(79,\"o\",\"O\");W(80,\"p\",\"P\");W(81,\"q\",\"Q\");W(82,\"r",
+ "\",\"R\");W(83,\"s\",\"S\");W(84,\"t\",\"T\");W(85,\"u\",\"U\");W(86,\"",
+ "v\",\"V\");W(87,\"w\",\"W\");W(88,\"x\",\"X\");W(89,\"y\",\"Y\");W(90,",
+ "\"z\",\"Z\");var fb=W(v?{b:91,a:91,opera:219}:t?{b:224,a:91,opera:17}:{",
+ "b:0,a:91,opera:null});\nW(v?{b:92,a:92,opera:220}:t?{b:224,a:93,opera:1",
+ "7}:{b:0,a:92,opera:null});W(v?{b:93,a:93,opera:0}:t?{b:0,a:0,opera:16}:",
+ "{b:93,a:null,opera:0});W({b:96,a:96,opera:48},\"0\");W({b:97,a:97,opera",
+ ":49},\"1\");W({b:98,a:98,opera:50},\"2\");W({b:99,a:99,opera:51},\"3\")",
+ ";W({b:100,a:100,opera:52},\"4\");W({b:101,a:101,opera:53},\"5\");W({b:1",
+ "02,a:102,opera:54},\"6\");W({b:103,a:103,opera:55},\"7\");W({b:104,a:10",
+ "4,opera:56},\"8\");W({b:105,a:105,opera:57},\"9\");W({b:106,a:106,opera",
+ ":x?56:42},\"*\");W({b:107,a:107,opera:x?61:43},\"+\");\nW({b:109,a:109,",
+ "opera:x?109:45},\"-\");W({b:110,a:110,opera:x?190:78},\".\");W({b:111,a",
+ ":111,opera:x?191:47},\"/\");W(144);W(112);W(113);W(114);W(115);W(116);W",
+ "(117);W(118);W(119);W(120);W(121);W(122);W(123);W({b:107,a:187,opera:61",
+ "},\"=\",\"+\");W(108,\",\");W({b:109,a:189,opera:109},\"-\",\"_\");W(18",
+ "8,\",\",\"<\");W(190,\".\",\">\");W(191,\"/\",\"?\");W(192,\"`\",\"~\")",
+ ";W(219,\"[\",\"{\");W(220,\"\\\\\",\"|\");W(221,\"]\",\"}\");W({b:59,a:",
+ "186,opera:59},\";\",\":\");W(222,\"'\",'\"');var X=new V;X.set(1,cb);X.",
+ "set(2,db);X.set(4,eb);X.set(8,fb);\n(function(a){var b=new V;p(Za(a),fu",
+ "nction(c){b.set(a.get(c).code,c)});return b})(X);function gb(a){var b=[",
+ "];Va(a,b);var c=b;a=c.length;for(var b=Array(a),c=m(c)?c.split(\"\"):c,",
+ "d=0;d<a;d++)d in c&&(b[d]=Ua.call(void 0,c[d]));return Ua(b.join(\"\\n",
+ "\")).replace(/\\xa0/g,\" \")}var Y=[\"_\"],Z=k;Y[0]in Z||!Z.execScript|",
+ "|Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.lengt",
+ "h||void 0===gb?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=gb;; return this._.apply(null,a",
+ "rguments);}.apply({navigator:typeof window!=undefined?window.navigator:",
+ "null,document:typeof window!=undefined?window.document:null}, arguments",
+ ");}",
+ NULL
+};
+
+const char* const IS_DISPLAYED[] = {
+ "function(){return function(){function h(a){return function(){return a}}",
+ "var k=this;\nfunction l(a){var b=typeof a;if(\"object\"==b)if(a){if(a i",
+ "nstanceof Array)return\"array\";if(a instanceof Object)return b;var c=O",
+ "bject.prototype.toString.call(a);if(\"[object Window]\"==c)return\"obje",
+ "ct\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined",
+ "\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.p",
+ "ropertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]",
+ "\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIs",
+ "Enumerable&&!a.propertyIsEnumerable(\"call\"))return\"function\"}else r",
+ "eturn\"null\";\nelse if(\"function\"==b&&\"undefined\"==typeof a.call)r",
+ "eturn\"object\";return b}function m(a){return\"string\"==typeof a};func",
+ "tion aa(a){return String(a).replace(/\\-([a-z])/g,function(a,c){return ",
+ "c.toUpperCase()})};var n=Array.prototype;function p(a,b){for(var c=a.le",
+ "ngth,d=m(a)?a.split(\"\"):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)",
+ "}function ba(a,b){if(a.reduce)return a.reduce(b,\"\");var c=\"\";p(a,fu",
+ "nction(d,e){c=b.call(void 0,c,d,e,a)});return c}function ca(a,b){for(va",
+ "r c=a.length,d=m(a)?a.split(\"\"):a,e=0;e<c;e++)if(e in d&&b.call(void ",
+ "0,d[e],e,a))return!0;return!1}\nfunction r(a,b){var c;a:if(m(a))c=m(b)&",
+ "&1==b.length?a.indexOf(b,0):-1;else{for(c=0;c<a.length;c++)if(c in a&&a",
+ "[c]===b)break a;c=-1}return 0<=c}function da(a,b,c){return 2>=arguments",
+ ".length?n.slice.call(a,b):n.slice.call(a,b,c)};var s={aliceblue:\"#f0f8",
+ "ff\",antiquewhite:\"#faebd7\",aqua:\"#00ffff\",aquamarine:\"#7fffd4\",a",
+ "zure:\"#f0ffff\",beige:\"#f5f5dc\",bisque:\"#ffe4c4\",black:\"#000000\"",
+ ",blanchedalmond:\"#ffebcd\",blue:\"#0000ff\",blueviolet:\"#8a2be2\",bro",
+ "wn:\"#a52a2a\",burlywood:\"#deb887\",cadetblue:\"#5f9ea0\",chartreuse:",
+ "\"#7fff00\",chocolate:\"#d2691e\",coral:\"#ff7f50\",cornflowerblue:\"#6",
+ "495ed\",cornsilk:\"#fff8dc\",crimson:\"#dc143c\",cyan:\"#00ffff\",darkb",
+ "lue:\"#00008b\",darkcyan:\"#008b8b\",darkgoldenrod:\"#b8860b\",darkgray",
+ ":\"#a9a9a9\",darkgreen:\"#006400\",\ndarkgrey:\"#a9a9a9\",darkkhaki:\"#",
+ "bdb76b\",darkmagenta:\"#8b008b\",darkolivegreen:\"#556b2f\",darkorange:",
+ "\"#ff8c00\",darkorchid:\"#9932cc\",darkred:\"#8b0000\",darksalmon:\"#e9",
+ "967a\",darkseagreen:\"#8fbc8f\",darkslateblue:\"#483d8b\",darkslategray",
+ ":\"#2f4f4f\",darkslategrey:\"#2f4f4f\",darkturquoise:\"#00ced1\",darkvi",
+ "olet:\"#9400d3\",deeppink:\"#ff1493\",deepskyblue:\"#00bfff\",dimgray:",
+ "\"#696969\",dimgrey:\"#696969\",dodgerblue:\"#1e90ff\",firebrick:\"#b22",
+ "222\",floralwhite:\"#fffaf0\",forestgreen:\"#228b22\",fuchsia:\"#ff00ff",
+ "\",gainsboro:\"#dcdcdc\",\nghostwhite:\"#f8f8ff\",gold:\"#ffd700\",gold",
+ "enrod:\"#daa520\",gray:\"#808080\",green:\"#008000\",greenyellow:\"#adf",
+ "f2f\",grey:\"#808080\",honeydew:\"#f0fff0\",hotpink:\"#ff69b4\",indianr",
+ "ed:\"#cd5c5c\",indigo:\"#4b0082\",ivory:\"#fffff0\",khaki:\"#f0e68c\",l",
+ "avender:\"#e6e6fa\",lavenderblush:\"#fff0f5\",lawngreen:\"#7cfc00\",lem",
+ "onchiffon:\"#fffacd\",lightblue:\"#add8e6\",lightcoral:\"#f08080\",ligh",
+ "tcyan:\"#e0ffff\",lightgoldenrodyellow:\"#fafad2\",lightgray:\"#d3d3d3",
+ "\",lightgreen:\"#90ee90\",lightgrey:\"#d3d3d3\",lightpink:\"#ffb6c1\",l",
+ "ightsalmon:\"#ffa07a\",\nlightseagreen:\"#20b2aa\",lightskyblue:\"#87ce",
+ "fa\",lightslategray:\"#778899\",lightslategrey:\"#778899\",lightsteelbl",
+ "ue:\"#b0c4de\",lightyellow:\"#ffffe0\",lime:\"#00ff00\",limegreen:\"#32",
+ "cd32\",linen:\"#faf0e6\",magenta:\"#ff00ff\",maroon:\"#800000\",mediuma",
+ "quamarine:\"#66cdaa\",mediumblue:\"#0000cd\",mediumorchid:\"#ba55d3\",m",
+ "ediumpurple:\"#9370db\",mediumseagreen:\"#3cb371\",mediumslateblue:\"#7",
+ "b68ee\",mediumspringgreen:\"#00fa9a\",mediumturquoise:\"#48d1cc\",mediu",
+ "mvioletred:\"#c71585\",midnightblue:\"#191970\",mintcream:\"#f5fffa\",m",
+ "istyrose:\"#ffe4e1\",\nmoccasin:\"#ffe4b5\",navajowhite:\"#ffdead\",nav",
+ "y:\"#000080\",oldlace:\"#fdf5e6\",olive:\"#808000\",olivedrab:\"#6b8e23",
+ "\",orange:\"#ffa500\",orangered:\"#ff4500\",orchid:\"#da70d6\",palegold",
+ "enrod:\"#eee8aa\",palegreen:\"#98fb98\",paleturquoise:\"#afeeee\",palev",
+ "ioletred:\"#db7093\",papayawhip:\"#ffefd5\",peachpuff:\"#ffdab9\",peru:",
+ "\"#cd853f\",pink:\"#ffc0cb\",plum:\"#dda0dd\",powderblue:\"#b0e0e6\",pu",
+ "rple:\"#800080\",red:\"#ff0000\",rosybrown:\"#bc8f8f\",royalblue:\"#416",
+ "9e1\",saddlebrown:\"#8b4513\",salmon:\"#fa8072\",sandybrown:\"#f4a460\"",
+ ",seagreen:\"#2e8b57\",\nseashell:\"#fff5ee\",sienna:\"#a0522d\",silver:",
+ "\"#c0c0c0\",skyblue:\"#87ceeb\",slateblue:\"#6a5acd\",slategray:\"#7080",
+ "90\",slategrey:\"#708090\",snow:\"#fffafa\",springgreen:\"#00ff7f\",ste",
+ "elblue:\"#4682b4\",tan:\"#d2b48c\",teal:\"#008080\",thistle:\"#d8bfd8\"",
+ ",tomato:\"#ff6347\",turquoise:\"#40e0d0\",violet:\"#ee82ee\",wheat:\"#f",
+ "5deb3\",white:\"#ffffff\",whitesmoke:\"#f5f5f5\",yellow:\"#ffff00\",yel",
+ "lowgreen:\"#9acd32\"};var ea=\"background-color border-top-color border",
+ "-right-color border-bottom-color border-left-color color outline-color",
+ "\".split(\" \"),fa=/#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])/;function ",
+ "t(a){if(!u.test(a))throw Error(\"'\"+a+\"' is not a valid hex color\");",
+ "4==a.length&&(a=a.replace(fa,\"#$1$1$2$2$3$3\"));return a.toLowerCase()",
+ "}var u=/^#(?:[0-9a-f]{3}){1,2}$/i,ga=/^(?:rgba)?\\((\\d{1,3}),\\s?(\\d{",
+ "1,3}),\\s?(\\d{1,3}),\\s?(0|1|0\\.\\d*)\\)$/i;\nfunction v(a){var b=a.m",
+ "atch(ga);if(b){a=Number(b[1]);var c=Number(b[2]),d=Number(b[3]),b=Numbe",
+ "r(b[4]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=d&&255>=d&&0<=b&&1>=b)return[",
+ "a,c,d,b]}return[]}var ha=/^(?:rgb)?\\((0|[1-9]\\d{0,2}),\\s?(0|[1-9]\\d",
+ "{0,2}),\\s?(0|[1-9]\\d{0,2})\\)$/i;function x(a){var b=a.match(ha);if(b",
+ "){a=Number(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=",
+ "c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};function y(a,b){this.co",
+ "de=a;this.state=z[a]||ia;this.message=b||\"\";var c=this.state.replace(",
+ "/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s",
+ "\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"E",
+ "rror\";this.name=c;c=Error(this.message);c.name=this.name;this.stack=c.",
+ "stack||\"\"}(function(){var a=Error;function b(){}b.prototype=a.prototy",
+ "pe;y.I=a.prototype;y.prototype=new b})();\nvar ia=\"unknown error\",z={",
+ "15:\"element not selectable\",11:\"element not visible\",31:\"ime engin",
+ "e activation failed\",30:\"ime not available\",24:\"invalid cookie doma",
+ "in\",29:\"invalid element coordinates\",12:\"invalid element state\",32",
+ ":\"invalid selector\",51:\"invalid selector\",52:\"invalid selector\",1",
+ "7:\"javascript error\",405:\"unsupported operation\",34:\"move target o",
+ "ut of bounds\",27:\"no such alert\",7:\"no such element\",8:\"no such f",
+ "rame\",23:\"no such window\",28:\"script timeout\",33:\"session not cre",
+ "ated\",10:\"stale element reference\",\n0:\"success\",21:\"timeout\",25",
+ ":\"unable to set cookie\",26:\"unexpected alert open\"};z[13]=ia;z[9]=",
+ "\"unknown command\";y.prototype.toString=function(){return this.name+\"",
+ ": \"+this.message};var B;function C(a,b){this.x=void 0!==a?a:0;this.y=v",
+ "oid 0!==b?b:0}C.prototype.toString=function(){return\"(\"+this.x+\", \"",
+ "+this.y+\")\"};C.prototype.ceil=function(){this.x=Math.ceil(this.x);thi",
+ "s.y=Math.ceil(this.y);return this};C.prototype.floor=function(){this.x=",
+ "Math.floor(this.x);this.y=Math.floor(this.y);return this};C.prototype.r",
+ "ound=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);ret",
+ "urn this};function D(a,b){this.width=a;this.height=b}D.prototype.toStri",
+ "ng=function(){return\"(\"+this.width+\" x \"+this.height+\")\"};D.proto",
+ "type.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.",
+ "ceil(this.height);return this};D.prototype.floor=function(){this.width=",
+ "Math.floor(this.width);this.height=Math.floor(this.height);return this}",
+ ";D.prototype.round=function(){this.width=Math.round(this.width);this.he",
+ "ight=Math.round(this.height);return this};var ja=3;function E(a,b){if(a",
+ ".contains&&1==b.nodeType)return a==b||a.contains(b);if(\"undefined\"!=t",
+ "ypeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentP",
+ "osition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction ka(a",
+ ",b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocum",
+ "entPosition(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&&\"sourceInd",
+ "ex\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return",
+ " a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e",
+ "==f?la(a,b):!c&&E(e,b)?-1*ma(a,b):!d&&E(f,a)?ma(b,a):(c?a.sourceIndex:e",
+ ".sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=F(a);c=d.createRange();",
+ "c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);d.coll",
+ "apse(!0);\nreturn c.compareBoundaryPoints(k.Range.START_TO_END,d)}funct",
+ "ion ma(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNod",
+ "e!=c;)d=d.parentNode;return la(d,a)}function la(a,b){for(var c=b;c=c.pr",
+ "eviousSibling;)if(c==a)return-1;return 1}function F(a){return 9==a.node",
+ "Type?a:a.ownerDocument||a.document}function na(a,b){a=a.parentNode;for(",
+ "var c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}function G(",
+ "a){this.p=a||k.document||document}\nfunction oa(a){var b=a.p;a=b.body;b",
+ "=b.parentWindow||b.defaultView;return new C(b.pageXOffset||a.scrollLeft",
+ ",b.pageYOffset||a.scrollTop)}G.prototype.contains=E;function H(a){var b",
+ "=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerT",
+ "ext:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==",
+ "c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do",
+ " 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&",
+ "&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction",
+ " I(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d)",
+ "{return!1}return null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}fun",
+ "ction J(a,b,c,d,e){return pa.call(null,a,b,m(c)?c:null,m(d)?d:null,e||n",
+ "ew K)}\nfunction pa(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b",
+ ".getElementsByName(d),p(b,function(b){a.matches(b)&&e.add(b)})):b.getEl",
+ "ementsByClassName&&d&&\"class\"==c?(b=b.getElementsByClassName(d),p(b,f",
+ "unction(b){b.className==d&&a.matches(b)&&e.add(b)})):b.getElementsByTag",
+ "Name&&(b=b.getElementsByTagName(a.getName()),p(b,function(a){I(a,c,d)&&",
+ "e.add(a)}));return e}function qa(a,b,c,d,e){for(b=b.firstChild;b;b=b.ne",
+ "xtSibling)I(b,c,d)&&a.matches(b)&&e.add(b);return e};function K(){this.",
+ "d=this.c=null;this.g=0}function ra(a){this.m=a;this.next=this.i=null}K.",
+ "prototype.unshift=function(a){a=new ra(a);a.next=this.c;this.d?this.c.i",
+ "=a:this.c=this.d=a;this.c=a;this.g++};K.prototype.add=function(a){a=new",
+ " ra(a);a.i=this.d;this.c?this.d.next=a:this.c=this.d=a;this.d=a;this.g+",
+ "+};function sa(a){return(a=a.c)?a.m:null}function L(a){return new ta(a,",
+ "!1)}function ta(a,b){this.F=a;this.j=(this.n=b)?a.d:a.c;this.r=null}\nt",
+ "a.prototype.next=function(){var a=this.j;if(null==a)return null;var b=t",
+ "his.r=a;this.j=this.n?a.i:a.next;return b.m};function M(a,b,c,d,e){b=b.",
+ "evaluate(d);c=c.evaluate(d);var f;if(b instanceof K&&c instanceof K){e=",
+ "L(b);for(d=e.next();d;d=e.next())for(b=L(c),f=b.next();f;f=b.next())if(",
+ "a(H(d),H(f)))return!0;return!1}if(b instanceof K||c instanceof K){b ins",
+ "tanceof K?e=b:(e=c,c=b);e=L(e);b=typeof c;for(d=e.next();d;d=e.next()){",
+ "switch(b){case \"number\":d=+H(d);break;case \"boolean\":d=!!H(d);break",
+ ";case \"string\":d=H(d);break;default:throw Error(\"Illegal primitive t",
+ "ype for comparison.\");}if(a(d,c))return!0}return!1}return e?\n\"boolea",
+ "n\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number\"==typeof b||",
+ "\"number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function ua(a,b,c,d){this",
+ ".s=a;this.H=b;this.o=c;this.q=d}ua.prototype.toString=function(){return",
+ " this.s};var va={};function N(a,b,c,d){if(a in va)throw Error(\"Binary ",
+ "operator already created: \"+a);a=new ua(a,b,c,d);va[a.toString()]=a}N(",
+ "\"div\",6,1,function(a,b,c){return a.b(c)/b.b(c)});N(\"mod\",6,1,functi",
+ "on(a,b,c){return a.b(c)%b.b(c)});N(\"*\",6,1,function(a,b,c){return a.b",
+ "(c)*b.b(c)});\nN(\"+\",5,1,function(a,b,c){return a.b(c)+b.b(c)});N(\"-",
+ "\",5,1,function(a,b,c){return a.b(c)-b.b(c)});N(\"<\",4,2,function(a,b,",
+ "c){return M(function(a,b){return a<b},a,b,c)});N(\">\",4,2,function(a,b",
+ ",c){return M(function(a,b){return a>b},a,b,c)});N(\"<=\",4,2,function(a",
+ ",b,c){return M(function(a,b){return a<=b},a,b,c)});N(\">=\",4,2,functio",
+ "n(a,b,c){return M(function(a,b){return a>=b},a,b,c)});N(\"=\",3,2,funct",
+ "ion(a,b,c){return M(function(a,b){return a==b},a,b,c,!0)});\nN(\"!=\",3",
+ ",2,function(a,b,c){return M(function(a,b){return a!=b},a,b,c,!0)});N(\"",
+ "and\",2,2,function(a,b,c){return a.f(c)&&b.f(c)});N(\"or\",1,2,function",
+ "(a,b,c){return a.f(c)||b.f(c)});function wa(a,b,c,d,e,f,g,w,q){this.h=a",
+ ";this.o=b;this.D=c;this.C=d;this.B=e;this.q=f;this.A=g;this.w=void 0!==",
+ "w?w:g;this.G=!!q}wa.prototype.toString=function(){return this.h};var xa",
+ "={};function O(a,b,c,d,e,f,g,w){if(a in xa)throw Error(\"Function alrea",
+ "dy created: \"+a+\".\");xa[a]=new wa(a,b,c,d,!1,e,f,g,w)}O(\"boolean\",",
+ "2,!1,!1,function(a,b){return b.f(a)},1);O(\"ceiling\",1,!1,!1,function(",
+ "a,b){return Math.ceil(b.b(a))},1);\nO(\"concat\",3,!1,!1,function(a,b){",
+ "var c=da(arguments,1);return ba(c,function(b,c){return b+c.a(a)})},2,nu",
+ "ll);O(\"contains\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return-1!=",
+ "b.indexOf(a)},2);O(\"count\",1,!1,!1,function(a,b){return b.evaluate(a)",
+ ".g},1,1,!0);O(\"false\",2,!1,!1,h(!1),0);O(\"floor\",1,!1,!1,function(a",
+ ",b){return Math.floor(b.b(a))},1);\nO(\"id\",4,!1,!1,function(a,b){var ",
+ "c=a.e(),d=9==c.nodeType?c:c.ownerDocument,c=b.a(a).split(/\\s+/),e=[];p",
+ "(c,function(a){(a=d.getElementById(a))&&!r(e,a)&&e.push(a)});e.sort(ka)",
+ ";var f=new K;p(e,function(a){f.add(a)});return f},1);O(\"lang\",2,!1,!1",
+ ",h(!1),1);O(\"last\",1,!0,!1,function(a){if(1!=arguments.length)throw E",
+ "rror(\"Function last expects ()\");return a.u()},0);O(\"local-name\",3,",
+ "!1,!0,function(a,b){var c=b?sa(b.evaluate(a)):a.e();return c?c.nodeName",
+ ".toLowerCase():\"\"},0,1,!0);\nO(\"name\",3,!1,!0,function(a,b){var c=b",
+ "?sa(b.evaluate(a)):a.e();return c?c.nodeName.toLowerCase():\"\"},0,1,!0",
+ ");O(\"namespace-uri\",3,!0,!1,h(\"\"),0,1,!0);O(\"normalize-space\",3,!",
+ "1,!0,function(a,b){return(b?b.a(a):H(a.e())).replace(/[\\s\\xa0]+/g,\" ",
+ "\").replace(/^\\s+|\\s+$/g,\"\")},0,1);O(\"not\",2,!1,!1,function(a,b){",
+ "return!b.f(a)},1);O(\"number\",1,!1,!0,function(a,b){return b?b.b(a):+H",
+ "(a.e())},0,1);O(\"position\",1,!0,!1,function(a){return a.v()},0);O(\"r",
+ "ound\",1,!1,!1,function(a,b){return Math.round(b.b(a))},1);\nO(\"starts",
+ "-with\",2,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);return 0==b.lastIndex",
+ "Of(a,0)},2);O(\"string\",3,!1,!0,function(a,b){return b?b.a(a):H(a.e())",
+ "},0,1);O(\"string-length\",1,!1,!0,function(a,b){return(b?b.a(a):H(a.e(",
+ "))).length},0,1);\nO(\"substring\",3,!1,!1,function(a,b,c,d){c=c.b(a);i",
+ "f(isNaN(c)||Infinity==c||-Infinity==c)return\"\";d=d?d.b(a):Infinity;if",
+ "(isNaN(d)||-Infinity===d)return\"\";c=Math.round(c)-1;var e=Math.max(c,",
+ "0);a=b.a(a);if(Infinity==d)return a.substring(e);b=Math.round(d);return",
+ " a.substring(e,c+b)},2,3);O(\"substring-after\",3,!1,!1,function(a,b,c)",
+ "{b=b.a(a);a=c.a(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.leng",
+ "th)},2);\nO(\"substring-before\",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a",
+ "(a);a=b.indexOf(a);return-1==a?\"\":b.substring(0,a)},2);O(\"sum\",1,!1",
+ ",!1,function(a,b){for(var c=L(b.evaluate(a)),d=0,e=c.next();e;e=c.next(",
+ "))d+=+H(e);return d},1,1,!0);O(\"translate\",3,!1,!1,function(a,b,c,d){",
+ "b=b.a(a);c=c.a(a);var e=d.a(a);a=[];for(d=0;d<c.length;d++){var f=c.cha",
+ "rAt(d);f in a||(a[f]=e.charAt(d))}c=\"\";for(d=0;d<b.length;d++)f=b.cha",
+ "rAt(d),c+=f in a?a[f]:f;return c},3);O(\"true\",2,!1,!1,h(!0),0);functi",
+ "on ya(a,b,c,d){this.h=a;this.t=b;this.n=c;this.J=d}ya.prototype.toStrin",
+ "g=function(){return this.h};var za={};function P(a,b,c,d){if(a in za)th",
+ "row Error(\"Axis already created: \"+a);za[a]=new ya(a,b,c,!!d)}P(\"anc",
+ "estor\",function(a,b){for(var c=new K,d=b;d=d.parentNode;)a.matches(d)&",
+ "&c.unshift(d);return c},!0);P(\"ancestor-or-self\",function(a,b){var c=",
+ "new K,d=b;do a.matches(d)&&c.unshift(d);while(d=d.parentNode);return c}",
+ ",!0);\nP(\"attribute\",function(a,b){var c=new K,d=a.getName(),e=b.attr",
+ "ibutes;if(e)if(\"*\"==d)for(var d=0,f;f=e[d];d++)c.add(f);else(f=e.getN",
+ "amedItem(d))&&c.add(f);return c},!1);P(\"child\",function(a,b,c,d,e){re",
+ "turn qa.call(null,a,b,m(c)?c:null,m(d)?d:null,e||new K)},!1,!0);P(\"des",
+ "cendant\",J,!1,!0);P(\"descendant-or-self\",function(a,b,c,d){var e=new",
+ " K;I(b,c,d)&&a.matches(b)&&e.add(b);return J(a,b,c,d,e)},!1,!0);\nP(\"f",
+ "ollowing\",function(a,b,c,d){var e=new K;do for(var f=b;f=f.nextSibling",
+ ";)I(f,c,d)&&a.matches(f)&&e.add(f),e=J(a,f,c,d,e);while(b=b.parentNode)",
+ ";return e},!1,!0);P(\"following-sibling\",function(a,b){for(var c=new K",
+ ",d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c},!1);P(\"namespac",
+ "e\",function(){return new K},!1);P(\"parent\",function(a,b){var c=new K",
+ ";if(9==b.nodeType)return c;if(2==b.nodeType)return c.add(b.ownerElement",
+ "),c;var d=b.parentNode;a.matches(d)&&c.add(d);return c},!1);\nP(\"prece",
+ "ding\",function(a,b,c,d){var e=new K,f=[];do f.unshift(b);while(b=b.par",
+ "entNode);for(var g=1,w=f.length;g<w;g++){var q=[];for(b=f[g];b=b.previo",
+ "usSibling;)q.unshift(b);for(var A=0,Ia=q.length;A<Ia;A++)b=q[A],I(b,c,d",
+ ")&&a.matches(b)&&e.add(b),e=J(a,b,c,d,e)}return e},!0,!0);P(\"preceding",
+ "-sibling\",function(a,b){for(var c=new K,d=b;d=d.previousSibling;)a.mat",
+ "ches(d)&&c.unshift(d);return c},!0);P(\"self\",function(a,b){var c=new ",
+ "K;a.matches(b)&&c.add(b);return c},!1);var Aa=function(){var a={K:\"htt",
+ "p://www.w3.org/2000/svg\"};return function(b){return a[b]||null}}();\nf",
+ "unction Ba(a,b){var c=function(){var c;var e=F(b);try{var f=e.createNSR",
+ "esolver?e.createNSResolver(e.documentElement):Aa;c=e.evaluate(a,b,f,9,n",
+ "ull)}catch(g){throw new y(32,\"Unable to locate an element with the xpa",
+ "th expression \"+a+\" because of the following error:\\n\"+g);}return c",
+ "?c.singleNodeValue||null:b.selectSingleNode?(c=F(b),c.setProperty&&c.se",
+ "tProperty(\"SelectionLanguage\",\"XPath\"),b.selectSingleNode(a)):null}",
+ "();if(null!==c&&(!c||1!=c.nodeType))throw new y(32,'The result of the x",
+ "path expression \"'+\na+'\" is: '+c+\". It should be an element.\");ret",
+ "urn c};function Q(a,b,c,d){this.left=a;this.top=b;this.width=c;this.hei",
+ "ght=d}Q.prototype.toString=function(){return\"(\"+this.left+\", \"+this",
+ ".top+\" - \"+this.width+\"w x \"+this.height+\"h)\"};Q.prototype.contai",
+ "ns=function(a){return a instanceof Q?this.left<=a.left&&this.left+this.",
+ "width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.h",
+ "eight:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=th",
+ "is.top+this.height};\nQ.prototype.ceil=function(){this.left=Math.ceil(t",
+ "his.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width)",
+ ";this.height=Math.ceil(this.height);return this};Q.prototype.floor=func",
+ "tion(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);th",
+ "is.width=Math.floor(this.width);this.height=Math.floor(this.height);ret",
+ "urn this};\nQ.prototype.round=function(){this.left=Math.round(this.left",
+ ");this.top=Math.round(this.top);this.width=Math.round(this.width);this.",
+ "height=Math.round(this.height);return this};function Ca(a,b){var c=F(a)",
+ ";return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView",
+ ".getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||\"\":\"\"}funct",
+ "ion R(a){return Ca(a,\"position\")||(a.currentStyle?a.currentStyle.posi",
+ "tion:null)||a.style&&a.style.position}function Da(a){var b;try{b=a.getB",
+ "oundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}retu",
+ "rn b}\nfunction Ea(a){var b=F(a),c=R(a),d=\"fixed\"==c||\"absolute\"==c",
+ ";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=R(a),d=d&&\"static\"==c",
+ "&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.s",
+ "crollHeight>a.clientHeight||\"fixed\"==c||\"absolute\"==c||\"relative\"",
+ "==c))return a;return null}\nfunction Fa(a){if(1==a.nodeType){var b;if(a",
+ ".getBoundingClientRect)b=Da(a),b=new C(b.left,b.top);else{b=oa(a?new G(",
+ "F(a)):B||(B=new G));var c=F(a),d=R(a),e=new C(0,0),f=(c?F(c):document).",
+ "documentElement;if(a!=f)if(a.getBoundingClientRect)a=Da(a),c=oa(c?new G",
+ "(F(c)):B||(B=new G)),e.x=a.left+c.x,e.y=a.top+c.y;else if(c.getBoxObjec",
+ "tFor)a=c.getBoxObjectFor(a),c=c.getBoxObjectFor(f),e.x=a.screenX-c.scre",
+ "enX,e.y=a.screenY-c.screenY;else{var g=a;do{e.x+=g.offsetLeft;e.y+=g.of",
+ "fsetTop;g!=a&&(e.x+=g.clientLeft||\n0,e.y+=g.clientTop||0);if(\"fixed\"",
+ "==R(g)){e.x+=c.body.scrollLeft;e.y+=c.body.scrollTop;break}g=g.offsetPa",
+ "rent}while(g&&g!=a);\"absolute\"==d&&(e.y-=c.body.offsetTop);for(g=a;(g",
+ "=Ea(g))&&g!=c.body&&g!=f;)e.x-=g.scrollLeft,e.y-=g.scrollTop}b=new C(e.",
+ "x-b.x,e.y-b.y)}return b}b=\"function\"==l(a.k);e=a;a.targetTouches?e=a.",
+ "targetTouches[0]:b&&a.k().targetTouches&&(e=a.k().targetTouches[0]);ret",
+ "urn new C(e.clientX,e.clientY)};function S(a,b){return!!a&&1==a.nodeTyp",
+ "e&&(!b||a.tagName.toUpperCase()==b)}function T(a){for(a=a.parentNode;a&",
+ "&1!=a.nodeType&&9!=a.nodeType&&11!=a.nodeType;)a=a.parentNode;return S(",
+ "a)?a:null}\nfunction U(a,b){var c=aa(b);if(\"float\"==c||\"cssFloat\"==",
+ "c||\"styleFloat\"==c)c=\"cssFloat\";c=Ca(a,c)||Ga(a,c);if(null===c)c=nu",
+ "ll;else if(r(ea,b)&&(u.test(\"#\"==c.charAt(0)?c:\"#\"+c)||x(c).length|",
+ "|s&&s[c.toLowerCase()]||v(c).length)){var d=v(c);if(!d.length){a:if(d=x",
+ "(c),!d.length){d=(d=s[c.toLowerCase()])?d:\"#\"==c.charAt(0)?c:\"#\"+c;",
+ "if(u.test(d)&&(d=t(d),d=t(d),d=[parseInt(d.substr(1,2),16),parseInt(d.s",
+ "ubstr(3,2),16),parseInt(d.substr(5,2),16)],d.length))break a;d=[]}3==d.",
+ "length&&d.push(1)}c=4!=d.length?\nc:\"rgba(\"+d.join(\", \")+\")\"}retu",
+ "rn c}function Ga(a,b){var c=a.currentStyle||a.style,d=c[b];void 0===d&&",
+ "\"function\"==l(c.getPropertyValue)&&(d=c.getPropertyValue(b));return\"",
+ "inherit\"!=d?void 0!==d?d:null:(c=T(a))?Ga(c,b):null}\nfunction V(a,b){",
+ "function c(a){if(\"none\"==U(a,\"display\"))return!1;a=T(a);return!a||c",
+ "(a)}function d(a){var b=W(a);return 0<b.height&&0<b.width?!0:S(a,\"PATH",
+ "\")&&(0<b.height||0<b.width)?(a=U(a,\"stroke-width\"),!!a&&0<parseInt(a",
+ ",10)):\"hidden\"!=U(a,\"overflow\")&&ca(a.childNodes,function(a){return",
+ " a.nodeType==ja||S(a)&&d(a)})}function e(a){var b=U(a,\"-o-transform\")",
+ "||U(a,\"-webkit-transform\")||U(a,\"-ms-transform\")||U(a,\"-moz-transf",
+ "orm\")||U(a,\"transform\");if(b&&\"none\"!==b)return b=Fa(a),a=W(a),0<=",
+ "b.x+a.width&&\n0<=b.y+a.height?!0:!1;a=T(a);return!a||e(a)}if(!S(a))thr",
+ "ow Error(\"Argument to isShown must be of type Element\");if(S(a,\"OPTI",
+ "ON\")||S(a,\"OPTGROUP\")){var f=na(a,function(a){return S(a,\"SELECT\")",
+ "});return!!f&&V(f,!0)}return(f=Ha(a))?!!f.l&&0<f.rect.width&&0<f.rect.h",
+ "eight&&V(f.l,b):S(a,\"INPUT\")&&\"hidden\"==a.type.toLowerCase()||S(a,",
+ "\"NOSCRIPT\")||\"hidden\"==U(a,\"visibility\")||!c(a)||!b&&0==Ja(a)||!d",
+ "(a)||Ka(a)==X?!1:e(a)}var X=\"hidden\";\nfunction Ka(a){function b(a){v",
+ "ar b=a;if(\"visible\"==w)if(a==f)b=g;else if(a==g)return{x:\"visible\",",
+ "y:\"visible\"};b={x:U(b,\"overflow-x\"),y:U(b,\"overflow-y\")};a==f&&(b",
+ ".x=\"hidden\"==b.x?\"hidden\":\"auto\",b.y=\"hidden\"==b.y?\"hidden\":",
+ "\"auto\");return b}function c(a){var b=U(a,\"position\");if(\"fixed\"==",
+ "b)return f;for(a=T(a);a&&a!=f&&(0==U(a,\"display\").lastIndexOf(\"inlin",
+ "e\",0)||\"absolute\"==b&&\"static\"==U(a,\"position\"));)a=T(a);return ",
+ "a}var d=W(a),e=F(a),f=e.documentElement,g=e.body,w=U(f,\"overflow\");fo",
+ "r(a=c(a);a;a=\nc(a)){var q=W(a),e=b(a),A=d.left>=q.left+q.width,q=d.top",
+ ">=q.top+q.height;if(A&&\"hidden\"==e.x||q&&\"hidden\"==e.y)return X;if(",
+ "A&&\"visible\"!=e.x||q&&\"visible\"!=e.y)return Ka(a)==X?X:\"scroll\"}r",
+ "eturn\"none\"}\nfunction W(a){var b=Ha(a);if(b)return b.rect;if(\"funct",
+ "ion\"==l(a.getBBox))try{var c=a.getBBox();return new Q(c.x,c.y,c.width,",
+ "c.height)}catch(d){throw d;}else{if(S(a,\"HTML\"))return a=((F(a)?F(a).",
+ "parentWindow||F(a).defaultView:window)||window).document,a=\"CSS1Compat",
+ "\"==a.compatMode?a.documentElement:a.body,a=new D(a.clientWidth,a.clien",
+ "tHeight),new Q(0,0,a.width,a.height);var b=Fa(a),c=a.offsetWidth,e=a.of",
+ "fsetHeight;c||(e||!a.getBoundingClientRect)||(a=a.getBoundingClientRect",
+ "(),c=a.right-a.left,e=a.bottom-\na.top);return new Q(b.x,b.y,c,e)}}func",
+ "tion Ha(a){var b=S(a,\"MAP\");if(!b&&!S(a,\"AREA\"))return null;var c=b",
+ "?a:S(a.parentNode,\"MAP\")?a.parentNode:null,d=null,e=null;if(c&&c.name",
+ "&&(d=Ba('/descendant::*[@usemap = \"#'+c.name+'\"]',F(c)))&&(e=W(d),!b&",
+ "&\"default\"!=a.shape.toLowerCase())){var f=La(a);a=Math.min(Math.max(f",
+ ".left,0),e.width);b=Math.min(Math.max(f.top,0),e.height);c=Math.min(f.w",
+ "idth,e.width-a);f=Math.min(f.height,e.height-b);e=new Q(a+e.left,b+e.to",
+ "p,c,f)}return{l:d,rect:e||new Q(0,0,0,0)}}\nfunction La(a){var b=a.shap",
+ "e.toLowerCase();a=a.coords.split(\",\");if(\"rect\"==b&&4==a.length){va",
+ "r b=a[0],c=a[1];return new Q(b,c,a[2]-b,a[3]-c)}if(\"circle\"==b&&3==a.",
+ "length)return b=a[2],new Q(a[0]-b,a[1]-b,2*b,2*b);if(\"poly\"==b&&2<a.l",
+ "ength){for(var b=a[0],c=a[1],d=b,e=c,f=2;f+1<a.length;f+=2)b=Math.min(b",
+ ",a[f]),d=Math.max(d,a[f]),c=Math.min(c,a[f+1]),e=Math.max(e,a[f+1]);ret",
+ "urn new Q(b,c,d-b,e-c)}return new Q(0,0,0,0)}\nfunction Ja(a){var b=1,c",
+ "=U(a,\"opacity\");c&&(b=Number(c));(a=T(a))&&(b*=Ja(a));return b};var M",
+ "a=V,Y=[\"_\"],Z=k;Y[0]in Z||!Z.execScript||Z.execScript(\"var \"+Y[0]);",
+ "for(var $;Y.length&&($=Y.shift());)Y.length||void 0===Ma?Z=Z[$]?Z[$]:Z[",
+ "$]={}:Z[$]=Ma;; return this._.apply(null,arguments);}.apply({navigator:",
+ "typeof window!=undefined?window.navigator:null,document:typeof window!=",
+ "undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const IS_ENABLED[] = {
+ "function(){return function(){function g(a){return function(){return a}}",
+ "var h=this;function k(a){return\"string\"==typeof a};var l=Array.protot",
+ "ype;function m(a,b){if(k(a))return k(b)&&1==b.length?a.indexOf(b,0):-1;",
+ "for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1}functi",
+ "on p(a,b){for(var c=a.length,d=k(a)?a.split(\"\"):a,e=0;e<c;e++)e in d&",
+ "&b.call(void 0,d[e],e,a)}function q(a,b){if(a.reduce)return a.reduce(b,",
+ "\"\");var c=\"\";p(a,function(d,e){c=b.call(void 0,c,d,e,a)});return c}",
+ "function r(a,b,c){return 2>=arguments.length?l.slice.call(a,b):l.slice.",
+ "call(a,b,c)};function s(a){for(;a&&1!=a.nodeType;)a=a.previousSibling;r",
+ "eturn a}function u(a,b){if(a.contains&&1==b.nodeType)return a==b||a.con",
+ "tains(b);if(\"undefined\"!=typeof a.compareDocumentPosition)return a==b",
+ "||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode",
+ ";return b==a}\nfunction w(a,b){if(a==b)return 0;if(a.compareDocumentPos",
+ "ition)return a.compareDocumentPosition(b)&2?1:-1;if(\"sourceIndex\"in a",
+ "||a.parentNode&&\"sourceIndex\"in a.parentNode){var c=1==a.nodeType,d=1",
+ "==b.nodeType;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentN",
+ "ode,f=b.parentNode;return e==f?x(a,b):!c&&u(e,b)?-1*y(a,b):!d&&u(f,a)?y",
+ "(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d",
+ "=9==a.nodeType?a:a.ownerDocument||a.document;c=d.createRange();c.select",
+ "Node(a);c.collapse(!0);\nd=d.createRange();d.selectNode(b);d.collapse(!",
+ "0);return c.compareBoundaryPoints(h.Range.START_TO_END,d)}function y(a,",
+ "b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d",
+ ".parentNode;return x(d,a)}function x(a,b){for(var c=b;c=c.previousSibli",
+ "ng;)if(c==a)return-1;return 1}function z(a,b){for(var c=0;a;){if(b(a))r",
+ "eturn a;a=a.parentNode;c++}return null};function A(a){var b=null,c=a.no",
+ "deType;1==c&&(b=a.textContent,b=void 0==b||null==b?a.innerText:b,b=void",
+ " 0==b||null==b?\"\":b);if(\"string\"!=typeof b)if(9==c||1==c){a=9==c?a.",
+ "documentElement:a.firstChild;for(var c=0,d=[],b=\"\";a;){do 1!=a.nodeTy",
+ "pe&&(b+=a.nodeValue),d[c++]=a;while(a=a.firstChild);for(;c&&!(a=d[--c].",
+ "nextSibling););}}else b=a.nodeValue;return\"\"+b}\nfunction C(a,b,c){if",
+ "(null===b)return!0;try{if(!a.getAttribute)return!1}catch(d){return!1}re",
+ "turn null==c?!!a.getAttribute(b):a.getAttribute(b,2)==c}function D(a,b,",
+ "c,d,e){return E.call(null,a,b,k(c)?c:null,k(d)?d:null,e||new F)}\nfunct",
+ "ion E(a,b,c,d,e){b.getElementsByName&&d&&\"name\"==c?(b=b.getElementsBy",
+ "Name(d),p(b,function(b){a.matches(b)&&e.add(b)})):b.getElementsByClassN",
+ "ame&&d&&\"class\"==c?(b=b.getElementsByClassName(d),p(b,function(b){b.c",
+ "lassName==d&&a.matches(b)&&e.add(b)})):b.getElementsByTagName&&(b=b.get",
+ "ElementsByTagName(a.getName()),p(b,function(a){C(a,c,d)&&e.add(a)}));re",
+ "turn e}function G(a,b,c,d,e){for(b=b.firstChild;b;b=b.nextSibling)C(b,c",
+ ",d)&&a.matches(b)&&e.add(b);return e};function F(){this.d=this.c=null;t",
+ "his.g=0}function H(a){this.k=a;this.next=this.i=null}F.prototype.unshif",
+ "t=function(a){a=new H(a);a.next=this.c;this.d?this.c.i=a:this.c=this.d=",
+ "a;this.c=a;this.g++};F.prototype.add=function(a){a=new H(a);a.i=this.d;",
+ "this.c?this.d.next=a:this.c=this.d=a;this.d=a;this.g++};function I(a){r",
+ "eturn(a=a.c)?a.k:null}function J(a){return new K(a,!1)}function K(a,b){",
+ "this.B=a;this.j=(this.l=b)?a.d:a.c;this.o=null}\nK.prototype.next=funct",
+ "ion(){var a=this.j;if(null==a)return null;var b=this.o=a;this.j=this.l?",
+ "a.i:a.next;return b.k};function L(a,b,c,d,e){b=b.evaluate(d);c=c.evalua",
+ "te(d);var f;if(b instanceof F&&c instanceof F){e=J(b);for(d=e.next();d;",
+ "d=e.next())for(b=J(c),f=b.next();f;f=b.next())if(a(A(d),A(f)))return!0;",
+ "return!1}if(b instanceof F||c instanceof F){b instanceof F?e=b:(e=c,c=b",
+ ");e=J(e);b=typeof c;for(d=e.next();d;d=e.next()){switch(b){case \"numbe",
+ "r\":d=+A(d);break;case \"boolean\":d=!!A(d);break;case \"string\":d=A(d",
+ ");break;default:throw Error(\"Illegal primitive type for comparison.\")",
+ ";}if(a(d,c))return!0}return!1}return e?\n\"boolean\"==typeof b||\"boole",
+ "an\"==typeof c?a(!!b,!!c):\"number\"==typeof b||\"number\"==typeof c?a(",
+ "+b,+c):a(b,c):a(+b,+c)}function M(a,b,c,d){this.p=a;this.D=b;this.m=c;t",
+ "his.n=d}M.prototype.toString=function(){return this.p};var N={};functio",
+ "n O(a,b,c,d){if(a in N)throw Error(\"Binary operator already created: ",
+ "\"+a);a=new M(a,b,c,d);N[a.toString()]=a}O(\"div\",6,1,function(a,b,c){",
+ "return a.b(c)/b.b(c)});O(\"mod\",6,1,function(a,b,c){return a.b(c)%b.b(",
+ "c)});O(\"*\",6,1,function(a,b,c){return a.b(c)*b.b(c)});\nO(\"+\",5,1,f",
+ "unction(a,b,c){return a.b(c)+b.b(c)});O(\"-\",5,1,function(a,b,c){retur",
+ "n a.b(c)-b.b(c)});O(\"<\",4,2,function(a,b,c){return L(function(a,b){re",
+ "turn a<b},a,b,c)});O(\">\",4,2,function(a,b,c){return L(function(a,b){r",
+ "eturn a>b},a,b,c)});O(\"<=\",4,2,function(a,b,c){return L(function(a,b)",
+ "{return a<=b},a,b,c)});O(\">=\",4,2,function(a,b,c){return L(function(a",
+ ",b){return a>=b},a,b,c)});O(\"=\",3,2,function(a,b,c){return L(function",
+ "(a,b){return a==b},a,b,c,!0)});\nO(\"!=\",3,2,function(a,b,c){return L(",
+ "function(a,b){return a!=b},a,b,c,!0)});O(\"and\",2,2,function(a,b,c){re",
+ "turn a.f(c)&&b.f(c)});O(\"or\",1,2,function(a,b,c){return a.f(c)||b.f(c",
+ ")});function P(a,b,c,d,e,f,n,t,v){this.h=a;this.m=b;this.A=c;this.w=d;t",
+ "his.v=e;this.n=f;this.u=n;this.t=void 0!==t?t:n;this.C=!!v}P.prototype.",
+ "toString=function(){return this.h};var Q={};function R(a,b,c,d,e,f,n,t)",
+ "{if(a in Q)throw Error(\"Function already created: \"+a+\".\");Q[a]=new",
+ " P(a,b,c,d,!1,e,f,n,t)}R(\"boolean\",2,!1,!1,function(a,b){return b.f(a",
+ ")},1);R(\"ceiling\",1,!1,!1,function(a,b){return Math.ceil(b.b(a))},1);",
+ "\nR(\"concat\",3,!1,!1,function(a,b){var c=r(arguments,1);return q(c,fu",
+ "nction(b,c){return b+c.a(a)})},2,null);R(\"contains\",2,!1,!1,function(",
+ "a,b,c){b=b.a(a);a=c.a(a);return-1!=b.indexOf(a)},2);R(\"count\",1,!1,!1",
+ ",function(a,b){return b.evaluate(a).g},1,1,!0);R(\"false\",2,!1,!1,g(!1",
+ "),0);R(\"floor\",1,!1,!1,function(a,b){return Math.floor(b.b(a))},1);\n",
+ "R(\"id\",4,!1,!1,function(a,b){var c=a.e(),d=9==c.nodeType?c:c.ownerDoc",
+ "ument,c=b.a(a).split(/\\s+/),e=[];p(c,function(a){a=d.getElementById(a)",
+ ";!a||0<=m(e,a)||e.push(a)});e.sort(w);var f=new F;p(e,function(a){f.add",
+ "(a)});return f},1);R(\"lang\",2,!1,!1,g(!1),1);R(\"last\",1,!0,!1,funct",
+ "ion(a){if(1!=arguments.length)throw Error(\"Function last expects ()\")",
+ ";return a.r()},0);R(\"local-name\",3,!1,!0,function(a,b){var c=b?I(b.ev",
+ "aluate(a)):a.e();return c?c.nodeName.toLowerCase():\"\"},0,1,!0);\nR(\"",
+ "name\",3,!1,!0,function(a,b){var c=b?I(b.evaluate(a)):a.e();return c?c.",
+ "nodeName.toLowerCase():\"\"},0,1,!0);R(\"namespace-uri\",3,!0,!1,g(\"\"",
+ "),0,1,!0);R(\"normalize-space\",3,!1,!0,function(a,b){return(b?b.a(a):A",
+ "(a.e())).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,",
+ "1);R(\"not\",2,!1,!1,function(a,b){return!b.f(a)},1);R(\"number\",1,!1,",
+ "!0,function(a,b){return b?b.b(a):+A(a.e())},0,1);R(\"position\",1,!0,!1",
+ ",function(a){return a.s()},0);R(\"round\",1,!1,!1,function(a,b){return ",
+ "Math.round(b.b(a))},1);\nR(\"starts-with\",2,!1,!1,function(a,b,c){b=b.",
+ "a(a);a=c.a(a);return 0==b.lastIndexOf(a,0)},2);R(\"string\",3,!1,!0,fun",
+ "ction(a,b){return b?b.a(a):A(a.e())},0,1);R(\"string-length\",1,!1,!0,f",
+ "unction(a,b){return(b?b.a(a):A(a.e())).length},0,1);\nR(\"substring\",3",
+ ",!1,!1,function(a,b,c,d){c=c.b(a);if(isNaN(c)||Infinity==c||-Infinity==",
+ "c)return\"\";d=d?d.b(a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";",
+ "c=Math.round(c)-1;var e=Math.max(c,0);a=b.a(a);if(Infinity==d)return a.",
+ "substring(e);b=Math.round(d);return a.substring(e,c+b)},2,3);R(\"substr",
+ "ing-after\",3,!1,!1,function(a,b,c){b=b.a(a);a=c.a(a);c=b.indexOf(a);re",
+ "turn-1==c?\"\":b.substring(c+a.length)},2);\nR(\"substring-before\",3,!",
+ "1,!1,function(a,b,c){b=b.a(a);a=c.a(a);a=b.indexOf(a);return-1==a?\"\":",
+ "b.substring(0,a)},2);R(\"sum\",1,!1,!1,function(a,b){for(var c=J(b.eval",
+ "uate(a)),d=0,e=c.next();e;e=c.next())d+=+A(e);return d},1,1,!0);R(\"tra",
+ "nslate\",3,!1,!1,function(a,b,c,d){b=b.a(a);c=c.a(a);var e=d.a(a);a=[];",
+ "for(d=0;d<c.length;d++){var f=c.charAt(d);f in a||(a[f]=e.charAt(d))}c=",
+ "\"\";for(d=0;d<b.length;d++)f=b.charAt(d),c+=f in a?a[f]:f;return c},3)",
+ ";R(\"true\",2,!1,!1,g(!0),0);function S(a,b,c,d){this.h=a;this.q=b;this",
+ ".l=c;this.F=d}S.prototype.toString=function(){return this.h};var T={};f",
+ "unction U(a,b,c,d){if(a in T)throw Error(\"Axis already created: \"+a);",
+ "T[a]=new S(a,b,c,!!d)}U(\"ancestor\",function(a,b){for(var c=new F,d=b;",
+ "d=d.parentNode;)a.matches(d)&&c.unshift(d);return c},!0);U(\"ancestor-o",
+ "r-self\",function(a,b){var c=new F,d=b;do a.matches(d)&&c.unshift(d);wh",
+ "ile(d=d.parentNode);return c},!0);\nU(\"attribute\",function(a,b){var c",
+ "=new F,d=a.getName(),e=b.attributes;if(e)if(\"*\"==d)for(var d=0,f;f=e[",
+ "d];d++)c.add(f);else(f=e.getNamedItem(d))&&c.add(f);return c},!1);U(\"c",
+ "hild\",function(a,b,c,d,e){return G.call(null,a,b,k(c)?c:null,k(d)?d:nu",
+ "ll,e||new F)},!1,!0);U(\"descendant\",D,!1,!0);U(\"descendant-or-self\"",
+ ",function(a,b,c,d){var e=new F;C(b,c,d)&&a.matches(b)&&e.add(b);return ",
+ "D(a,b,c,d,e)},!1,!0);\nU(\"following\",function(a,b,c,d){var e=new F;do",
+ " for(var f=b;f=f.nextSibling;)C(f,c,d)&&a.matches(f)&&e.add(f),e=D(a,f,",
+ "c,d,e);while(b=b.parentNode);return e},!1,!0);U(\"following-sibling\",f",
+ "unction(a,b){for(var c=new F,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d",
+ ");return c},!1);U(\"namespace\",function(){return new F},!1);U(\"parent",
+ "\",function(a,b){var c=new F;if(9==b.nodeType)return c;if(2==b.nodeType",
+ ")return c.add(b.ownerElement),c;var d=b.parentNode;a.matches(d)&&c.add(",
+ "d);return c},!1);\nU(\"preceding\",function(a,b,c,d){var e=new F,f=[];d",
+ "o f.unshift(b);while(b=b.parentNode);for(var n=1,t=f.length;n<t;n++){va",
+ "r v=[];for(b=f[n];b=b.previousSibling;)v.unshift(b);for(var B=0,aa=v.le",
+ "ngth;B<aa;B++)b=v[B],C(b,c,d)&&a.matches(b)&&e.add(b),e=D(a,b,c,d,e)}re",
+ "turn e},!0,!0);U(\"preceding-sibling\",function(a,b){for(var c=new F,d=",
+ "b;d=d.previousSibling;)a.matches(d)&&c.unshift(d);return c},!0);U(\"sel",
+ "f\",function(a,b){var c=new F;a.matches(b)&&c.add(b);return c},!1);func",
+ "tion V(a,b){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)}",
+ "var ba=\"BUTTON INPUT OPTGROUP OPTION SELECT TEXTAREA\".split(\" \");\n",
+ "function W(a){var b=a.tagName.toUpperCase();return 0<=m(ba,b)?a.disable",
+ "d?!1:a.parentNode&&1==a.parentNode.nodeType&&\"OPTGROUP\"==b||\"OPTION",
+ "\"==b?W(a.parentNode):!z(a,function(a){var b=a.parentNode;if(b&&V(b,\"F",
+ "IELDSET\")&&b.disabled){if(!V(a,\"LEGEND\"))return!0;for(;a=void 0!=a.p",
+ "reviousElementSibling?a.previousElementSibling:s(a.previousSibling);)if",
+ "(V(a,\"LEGEND\"))return!0}return!1}):!0};var X=W,Y=[\"_\"],Z=h;Y[0]in Z",
+ "||!Z.execScript||Z.execScript(\"var \"+Y[0]);for(var $;Y.length&&($=Y.s",
+ "hift());)Y.length||void 0===X?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=X;; return this.",
+ "_.apply(null,arguments);}.apply({navigator:typeof window!=undefined?win",
+ "dow.navigator:null,document:typeof window!=undefined?window.document:nu",
+ "ll}, arguments);}",
+ NULL
+};
+
+const char* const IS_ONLINE[] = {
+ "function(){return function(){var a=window;function c(e,h){this.code=e;t",
+ "his.state=d[e]||f;this.message=h||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(b){return b.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var e=Error;function h(){}h.prototype=e.prototype;c.a=",
+ "e.prototype;c.prototype=new h})();\nvar f=\"unknown error\",d={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};d[13]=f;d[9]=\"unknown ",
+ "command\";c.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var g=this.navigator;var k=-1!=(g&&g.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){switch(\"browser_connection\"){case \"appca",
+ "che\":return null!=a.applicationCache;case \"browser_connection\":retur",
+ "n null!=a.navigator&&null!=a.navigator.onLine;case \"database\":return ",
+ "null!=a.openDatabase;case \"location\":return k?!1:null!=a.navigator&&n",
+ "ull!=a.navigator.geolocation;case \"local_storage\":return null!=a.loca",
+ "lStorage;case \"session_storage\":return null!=a.sessionStorage&&null!=",
+ "a.sessionStorage.clear;default:throw new c(13,\"Unsupported API identif",
+ "ier provided as parameter\");}};function n(){if(m())return a.navigator.",
+ "onLine;throw new c(13,\"Undefined browser connection state\");}var p=[",
+ "\"_\"],q=this;p[0]in q||!q.execScript||q.execScript(\"var \"+p[0]);for(",
+ "var r;p.length&&(r=p.shift());)p.length||void 0===n?q=q[r]?q[r]:q[r]={}",
+ ":q[r]=n;; return this._.apply(null,arguments);}.apply({navigator:typeof",
+ " window!=undefined?window.navigator:null,document:typeof window!=undefi",
+ "ned?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const IS_SELECTED[] = {
+ "function(){return function(){function e(a){return function(){return a}}",
+ "var h=this;function k(a){return\"string\"==typeof a};var l=Array.protot",
+ "ype;function m(a,b){for(var c=a.length,d=k(a)?a.split(\"\"):a,f=0;f<c;f",
+ "++)f in d&&b.call(void 0,d[f],f,a)}function aa(a,b){if(a.reduce)return ",
+ "a.reduce(b,\"\");var c=\"\";m(a,function(d,f){c=b.call(void 0,c,d,f,a)}",
+ ");return c}function ba(a,b,c){return 2>=arguments.length?l.slice.call(a",
+ ",b):l.slice.call(a,b,c)};function n(a,b){this.code=a;this.state=q[a]||r",
+ ";this.message=b||\"\";var c=this.state.replace(/((?:^|\\s+)[a-z])/g,fun",
+ "ction(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/g,\"\")}),d=c.len",
+ "gth-5;if(0>d||c.indexOf(\"Error\",d)!=d)c+=\"Error\";this.name=c;c=Erro",
+ "r(this.message);c.name=this.name;this.stack=c.stack||\"\"}(function(){v",
+ "ar a=Error;function b(){}b.prototype=a.prototype;n.N=a.prototype;n.prot",
+ "otype=new b})();\nvar r=\"unknown error\",q={15:\"element not selectabl",
+ "e\",11:\"element not visible\",31:\"ime engine activation failed\",30:",
+ "\"ime not available\",24:\"invalid cookie domain\",29:\"invalid element",
+ " coordinates\",12:\"invalid element state\",32:\"invalid selector\",51:",
+ "\"invalid selector\",52:\"invalid selector\",17:\"javascript error\",40",
+ "5:\"unsupported operation\",34:\"move target out of bounds\",27:\"no su",
+ "ch alert\",7:\"no such element\",8:\"no such frame\",23:\"no such windo",
+ "w\",28:\"script timeout\",33:\"session not created\",10:\"stale element",
+ " reference\",\n0:\"success\",21:\"timeout\",25:\"unable to set cookie\"",
+ ",26:\"unexpected alert open\"};q[13]=r;q[9]=\"unknown command\";n.proto",
+ "type.toString=function(){return this.name+\": \"+this.message};var s,t,",
+ "u,w=h.navigator;u=w&&w.platform||\"\";s=-1!=u.indexOf(\"Mac\");t=-1!=u.",
+ "indexOf(\"Win\");var x=-1!=u.indexOf(\"Linux\");function z(a,b){if(a.co",
+ "ntains&&1==b.nodeType)return a==b||a.contains(b);if(\"undefined\"!=type",
+ "of a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosi",
+ "tion(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}\nfunction ca(a,b)",
+ "{if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocument",
+ "Position(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&&\"sourceIndex",
+ "\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if(c&&d)return a",
+ ".sourceIndex-b.sourceIndex;var f=a.parentNode,g=b.parentNode;return f==",
+ "g?A(a,b):!c&&z(f,b)?-1*B(a,b):!d&&z(g,a)?B(b,a):(c?a.sourceIndex:f.sour",
+ "ceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=9==a.nodeType?a:a.ownerDocum",
+ "ent||a.document;c=d.createRange();c.selectNode(a);c.collapse(!0);\nd=d.",
+ "createRange();d.selectNode(b);d.collapse(!0);return c.compareBoundaryPo",
+ "ints(h.Range.START_TO_END,d)}function B(a,b){var c=a.parentNode;if(c==b",
+ ")return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return A(d,a)}fun",
+ "ction A(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1",
+ "};function C(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0",
+ "==b||null==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=",
+ "typeof b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c",
+ "=0,d=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=",
+ "a.firstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;re",
+ "turn\"\"+b}\nfunction D(a,b,c){if(null===b)return!0;try{if(!a.getAttrib",
+ "ute)return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.get",
+ "Attribute(b,2)==c}function E(a,b,c,d,f){return da.call(null,a,b,k(c)?c:",
+ "null,k(d)?d:null,f||new F)}\nfunction da(a,b,c,d,f){b.getElementsByName",
+ "&&d&&\"name\"==c?(b=b.getElementsByName(d),m(b,function(b){a.matches(b)",
+ "&&f.add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElement",
+ "sByClassName(d),m(b,function(b){b.className==d&&a.matches(b)&&f.add(b)}",
+ ")):b.getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),m(b,f",
+ "unction(a){D(a,c,d)&&f.add(a)}));return f}function ea(a,b,c,d,f){for(b=",
+ "b.firstChild;b;b=b.nextSibling)D(b,c,d)&&a.matches(b)&&f.add(b);return ",
+ "f};function F(){this.g=this.f=null;this.l=0}function G(a){this.p=a;this",
+ ".next=this.n=null}F.prototype.unshift=function(a){a=new G(a);a.next=thi",
+ "s.f;this.g?this.f.n=a:this.f=this.g=a;this.f=a;this.l++};F.prototype.ad",
+ "d=function(a){a=new G(a);a.n=this.g;this.f?this.g.next=a:this.f=this.g=",
+ "a;this.g=a;this.l++};function H(a){return(a=a.f)?a.p:null}function I(a)",
+ "{return new J(a,!1)}function J(a,b){this.J=a;this.o=(this.q=b)?a.g:a.f;",
+ "this.u=null}\nJ.prototype.next=function(){var a=this.o;if(null==a)retur",
+ "n null;var b=this.u=a;this.o=this.q?a.n:a.next;return b.p};function K(a",
+ ",b,c,d,f){b=b.evaluate(d);c=c.evaluate(d);var g;if(b instanceof F&&c in",
+ "stanceof F){f=I(b);for(d=f.next();d;d=f.next())for(b=I(c),g=b.next();g;",
+ "g=b.next())if(a(C(d),C(g)))return!0;return!1}if(b instanceof F||c insta",
+ "nceof F){b instanceof F?f=b:(f=c,c=b);f=I(f);b=typeof c;for(d=f.next();",
+ "d;d=f.next()){switch(b){case \"number\":d=+C(d);break;case \"boolean\":",
+ "d=!!C(d);break;case \"string\":d=C(d);break;default:throw Error(\"Illeg",
+ "al primitive type for comparison.\");}if(a(d,c))return!0}return!1}retur",
+ "n f?\n\"boolean\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number",
+ "\"==typeof b||\"number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function M(",
+ "a,b,c,d){this.v=a;this.L=b;this.s=c;this.t=d}M.prototype.toString=funct",
+ "ion(){return this.v};var N={};function O(a,b,c,d){if(a in N)throw Error",
+ "(\"Binary operator already created: \"+a);a=new M(a,b,c,d);N[a.toString",
+ "()]=a}O(\"div\",6,1,function(a,b,c){return a.d(c)/b.d(c)});O(\"mod\",6,",
+ "1,function(a,b,c){return a.d(c)%b.d(c)});O(\"*\",6,1,function(a,b,c){re",
+ "turn a.d(c)*b.d(c)});\nO(\"+\",5,1,function(a,b,c){return a.d(c)+b.d(c)",
+ "});O(\"-\",5,1,function(a,b,c){return a.d(c)-b.d(c)});O(\"<\",4,2,funct",
+ "ion(a,b,c){return K(function(a,b){return a<b},a,b,c)});O(\">\",4,2,func",
+ "tion(a,b,c){return K(function(a,b){return a>b},a,b,c)});O(\"<=\",4,2,fu",
+ "nction(a,b,c){return K(function(a,b){return a<=b},a,b,c)});O(\">=\",4,2",
+ ",function(a,b,c){return K(function(a,b){return a>=b},a,b,c)});O(\"=\",3",
+ ",2,function(a,b,c){return K(function(a,b){return a==b},a,b,c,!0)});\nO(",
+ "\"!=\",3,2,function(a,b,c){return K(function(a,b){return a!=b},a,b,c,!0",
+ ")});O(\"and\",2,2,function(a,b,c){return a.j(c)&&b.j(c)});O(\"or\",1,2,",
+ "function(a,b,c){return a.j(c)||b.j(c)});function P(a,b,c,d,f,g,p,v,y){t",
+ "his.m=a;this.s=b;this.I=c;this.H=d;this.G=f;this.t=g;this.F=p;this.D=vo",
+ "id 0!==v?v:p;this.K=!!y}P.prototype.toString=function(){return this.m};",
+ "var Q={};function R(a,b,c,d,f,g,p,v){if(a in Q)throw Error(\"Function a",
+ "lready created: \"+a+\".\");Q[a]=new P(a,b,c,d,!1,f,g,p,v)}R(\"boolean",
+ "\",2,!1,!1,function(a,b){return b.j(a)},1);R(\"ceiling\",1,!1,!1,functi",
+ "on(a,b){return Math.ceil(b.d(a))},1);\nR(\"concat\",3,!1,!1,function(a,",
+ "b){var c=ba(arguments,1);return aa(c,function(b,c){return b+c.c(a)})},2",
+ ",null);R(\"contains\",2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return-",
+ "1!=b.indexOf(a)},2);R(\"count\",1,!1,!1,function(a,b){return b.evaluate",
+ "(a).l},1,1,!0);R(\"false\",2,!1,!1,e(!1),0);R(\"floor\",1,!1,!1,functio",
+ "n(a,b){return Math.floor(b.d(a))},1);\nR(\"id\",4,!1,!1,function(a,b){v",
+ "ar c=a.h(),d=9==c.nodeType?c:c.ownerDocument,c=b.c(a).split(/\\s+/),f=[",
+ "];m(c,function(a){a=d.getElementById(a);var b;if(!(b=!a)){a:if(k(f))b=k",
+ "(a)&&1==a.length?f.indexOf(a,0):-1;else{for(b=0;b<f.length;b++)if(b in ",
+ "f&&f[b]===a)break a;b=-1}b=0<=b}b||f.push(a)});f.sort(ca);var g=new F;m",
+ "(f,function(a){g.add(a)});return g},1);R(\"lang\",2,!1,!1,e(!1),1);R(\"",
+ "last\",1,!0,!1,function(a){if(1!=arguments.length)throw Error(\"Functio",
+ "n last expects ()\");return a.B()},0);\nR(\"local-name\",3,!1,!0,functi",
+ "on(a,b){var c=b?H(b.evaluate(a)):a.h();return c?c.nodeName.toLowerCase(",
+ "):\"\"},0,1,!0);R(\"name\",3,!1,!0,function(a,b){var c=b?H(b.evaluate(a",
+ ")):a.h();return c?c.nodeName.toLowerCase():\"\"},0,1,!0);R(\"namespace-",
+ "uri\",3,!0,!1,e(\"\"),0,1,!0);R(\"normalize-space\",3,!1,!0,function(a,",
+ "b){return(b?b.c(a):C(a.h())).replace(/[\\s\\xa0]+/g,\" \").replace(/^",
+ "\\s+|\\s+$/g,\"\")},0,1);R(\"not\",2,!1,!1,function(a,b){return!b.j(a)}",
+ ",1);R(\"number\",1,!1,!0,function(a,b){return b?b.d(a):+C(a.h())},0,1);",
+ "\nR(\"position\",1,!0,!1,function(a){return a.C()},0);R(\"round\",1,!1,",
+ "!1,function(a,b){return Math.round(b.d(a))},1);R(\"starts-with\",2,!1,!",
+ "1,function(a,b,c){b=b.c(a);a=c.c(a);return 0==b.lastIndexOf(a,0)},2);R(",
+ "\"string\",3,!1,!0,function(a,b){return b?b.c(a):C(a.h())},0,1);R(\"str",
+ "ing-length\",1,!1,!0,function(a,b){return(b?b.c(a):C(a.h())).length},0,",
+ "1);\nR(\"substring\",3,!1,!1,function(a,b,c,d){c=c.d(a);if(isNaN(c)||In",
+ "finity==c||-Infinity==c)return\"\";d=d?d.d(a):Infinity;if(isNaN(d)||-In",
+ "finity===d)return\"\";c=Math.round(c)-1;var f=Math.max(c,0);a=b.c(a);if",
+ "(Infinity==d)return a.substring(f);b=Math.round(d);return a.substring(f",
+ ",c+b)},2,3);R(\"substring-after\",3,!1,!1,function(a,b,c){b=b.c(a);a=c.",
+ "c(a);c=b.indexOf(a);return-1==c?\"\":b.substring(c+a.length)},2);\nR(\"",
+ "substring-before\",3,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);a=b.indexO",
+ "f(a);return-1==a?\"\":b.substring(0,a)},2);R(\"sum\",1,!1,!1,function(a",
+ ",b){for(var c=I(b.evaluate(a)),d=0,f=c.next();f;f=c.next())d+=+C(f);ret",
+ "urn d},1,1,!0);R(\"translate\",3,!1,!1,function(a,b,c,d){b=b.c(a);c=c.c",
+ "(a);var f=d.c(a);a=[];for(d=0;d<c.length;d++){var g=c.charAt(d);g in a|",
+ "|(a[g]=f.charAt(d))}c=\"\";for(d=0;d<b.length;d++)g=b.charAt(d),c+=g in",
+ " a?a[g]:g;return c},3);R(\"true\",2,!1,!1,e(!0),0);function S(a,b,c,d){",
+ "this.m=a;this.A=b;this.q=c;this.O=d}S.prototype.toString=function(){ret",
+ "urn this.m};var fa={};function T(a,b,c,d){if(a in fa)throw Error(\"Axis",
+ " already created: \"+a);fa[a]=new S(a,b,c,!!d)}T(\"ancestor\",function(",
+ "a,b){for(var c=new F,d=b;d=d.parentNode;)a.matches(d)&&c.unshift(d);ret",
+ "urn c},!0);T(\"ancestor-or-self\",function(a,b){var c=new F,d=b;do a.ma",
+ "tches(d)&&c.unshift(d);while(d=d.parentNode);return c},!0);\nT(\"attrib",
+ "ute\",function(a,b){var c=new F,d=a.getName(),f=b.attributes;if(f)if(\"",
+ "*\"==d)for(var d=0,g;g=f[d];d++)c.add(g);else(g=f.getNamedItem(d))&&c.a",
+ "dd(g);return c},!1);T(\"child\",function(a,b,c,d,f){return ea.call(null",
+ ",a,b,k(c)?c:null,k(d)?d:null,f||new F)},!1,!0);T(\"descendant\",E,!1,!0",
+ ");T(\"descendant-or-self\",function(a,b,c,d){var f=new F;D(b,c,d)&&a.ma",
+ "tches(b)&&f.add(b);return E(a,b,c,d,f)},!1,!0);\nT(\"following\",functi",
+ "on(a,b,c,d){var f=new F;do for(var g=b;g=g.nextSibling;)D(g,c,d)&&a.mat",
+ "ches(g)&&f.add(g),f=E(a,g,c,d,f);while(b=b.parentNode);return f},!1,!0)",
+ ";T(\"following-sibling\",function(a,b){for(var c=new F,d=b;d=d.nextSibl",
+ "ing;)a.matches(d)&&c.add(d);return c},!1);T(\"namespace\",function(){re",
+ "turn new F},!1);T(\"parent\",function(a,b){var c=new F;if(9==b.nodeType",
+ ")return c;if(2==b.nodeType)return c.add(b.ownerElement),c;var d=b.paren",
+ "tNode;a.matches(d)&&c.add(d);return c},!1);\nT(\"preceding\",function(a",
+ ",b,c,d){var f=new F,g=[];do g.unshift(b);while(b=b.parentNode);for(var ",
+ "p=1,v=g.length;p<v;p++){var y=[];for(b=g[p];b=b.previousSibling;)y.unsh",
+ "ift(b);for(var L=0,ka=y.length;L<ka;L++)b=y[L],D(b,c,d)&&a.matches(b)&&",
+ "f.add(b),f=E(a,b,c,d,f)}return f},!0,!0);T(\"preceding-sibling\",functi",
+ "on(a,b){for(var c=new F,d=b;d=d.previousSibling;)a.matches(d)&&c.unshif",
+ "t(d);return c},!0);T(\"self\",function(a,b){var c=new F;a.matches(b)&&c",
+ ".add(b);return c},!1);function ga(a){return a&&1==a.nodeType&&\"OPTION",
+ "\"==a.tagName.toUpperCase()?!0:a&&1==a.nodeType&&\"INPUT\"==a.tagName.t",
+ "oUpperCase()?(a=a.type.toLowerCase(),\"checkbox\"==a||\"radio\"==a):!1}",
+ ";function U(a,b){this.i={};this.e=[];var c=arguments.length;if(1<c){if(",
+ "c%2)throw Error(\"Uneven number of arguments\");for(var d=0;d<c;d+=2)th",
+ "is.set(arguments[d],arguments[d+1])}else if(a){var f;if(a instanceof U)",
+ "for(d=ha(a),ia(a),f=[],c=0;c<a.e.length;c++)f.push(a.i[a.e[c]]);else{va",
+ "r c=[],g=0;for(d in a)c[g++]=d;d=c;c=[];g=0;for(f in a)c[g++]=a[f];f=c}",
+ "for(c=0;c<d.length;c++)this.set(d[c],f[c])}}U.prototype.k=0;U.prototype",
+ ".w=0;function ha(a){ia(a);return a.e.concat()}\nfunction ia(a){if(a.k!=",
+ "a.e.length){for(var b=0,c=0;b<a.e.length;){var d=a.e[b];Object.prototyp",
+ "e.hasOwnProperty.call(a.i,d)&&(a.e[c++]=d);b++}a.e.length=c}if(a.k!=a.e",
+ ".length){for(var f={},c=b=0;b<a.e.length;)d=a.e[b],Object.prototype.has",
+ "OwnProperty.call(f,d)||(a.e[c++]=d,f[d]=1),b++;a.e.length=c}}U.prototyp",
+ "e.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.i,",
+ "a)?this.i[a]:b};\nU.prototype.set=function(a,b){Object.prototype.hasOwn",
+ "Property.call(this.i,a)||(this.k++,this.e.push(a),this.w++);this.i[a]=b",
+ "};var V={};function W(a,b,c){var d=typeof a;(\"object\"==d&&null!=a||\"",
+ "function\"==d)&&(a=a.a);a=new ja(a,b,c);!b||b in V&&!c||(V[b]={key:a,sh",
+ "ift:!1},c&&(V[c]={key:a,shift:!0}));return a}function ja(a,b,c){this.co",
+ "de=a;this.r=b||null;this.M=c||this.r}W(8);W(9);W(13);var la=W(16),ma=W(",
+ "17),na=W(18);W(19);W(20);W(27);W(32,\" \");W(33);W(34);W(35);W(36);W(37",
+ ");W(38);W(39);W(40);W(44);W(45);W(46);W(48,\"0\",\")\");W(49,\"1\",\"!",
+ "\");W(50,\"2\",\"@\");W(51,\"3\",\"#\");W(52,\"4\",\"$\");W(53,\"5\",\"",
+ "%\");W(54,\"6\",\"^\");W(55,\"7\",\"&\");\nW(56,\"8\",\"*\");W(57,\"9\"",
+ ",\"(\");W(65,\"a\",\"A\");W(66,\"b\",\"B\");W(67,\"c\",\"C\");W(68,\"d",
+ "\",\"D\");W(69,\"e\",\"E\");W(70,\"f\",\"F\");W(71,\"g\",\"G\");W(72,\"",
+ "h\",\"H\");W(73,\"i\",\"I\");W(74,\"j\",\"J\");W(75,\"k\",\"K\");W(76,",
+ "\"l\",\"L\");W(77,\"m\",\"M\");W(78,\"n\",\"N\");W(79,\"o\",\"O\");W(80",
+ ",\"p\",\"P\");W(81,\"q\",\"Q\");W(82,\"r\",\"R\");W(83,\"s\",\"S\");W(8",
+ "4,\"t\",\"T\");W(85,\"u\",\"U\");W(86,\"v\",\"V\");W(87,\"w\",\"W\");W(",
+ "88,\"x\",\"X\");W(89,\"y\",\"Y\");W(90,\"z\",\"Z\");var oa=W(t?{b:91,a:",
+ "91,opera:219}:s?{b:224,a:91,opera:17}:{b:0,a:91,opera:null});\nW(t?{b:9",
+ "2,a:92,opera:220}:s?{b:224,a:93,opera:17}:{b:0,a:92,opera:null});W(t?{b",
+ ":93,a:93,opera:0}:s?{b:0,a:0,opera:16}:{b:93,a:null,opera:0});W({b:96,a",
+ ":96,opera:48},\"0\");W({b:97,a:97,opera:49},\"1\");W({b:98,a:98,opera:5",
+ "0},\"2\");W({b:99,a:99,opera:51},\"3\");W({b:100,a:100,opera:52},\"4\")",
+ ";W({b:101,a:101,opera:53},\"5\");W({b:102,a:102,opera:54},\"6\");W({b:1",
+ "03,a:103,opera:55},\"7\");W({b:104,a:104,opera:56},\"8\");W({b:105,a:10",
+ "5,opera:57},\"9\");W({b:106,a:106,opera:x?56:42},\"*\");W({b:107,a:107,",
+ "opera:x?61:43},\"+\");\nW({b:109,a:109,opera:x?109:45},\"-\");W({b:110,",
+ "a:110,opera:x?190:78},\".\");W({b:111,a:111,opera:x?191:47},\"/\");W(14",
+ "4);W(112);W(113);W(114);W(115);W(116);W(117);W(118);W(119);W(120);W(121",
+ ");W(122);W(123);W({b:107,a:187,opera:61},\"=\",\"+\");W(108,\",\");W({b",
+ ":109,a:189,opera:109},\"-\",\"_\");W(188,\",\",\"<\");W(190,\".\",\">\"",
+ ");W(191,\"/\",\"?\");W(192,\"`\",\"~\");W(219,\"[\",\"{\");W(220,\"",
+ "\\\\\",\"|\");W(221,\"]\",\"}\");W({b:59,a:186,opera:59},\";\",\":\");W",
+ "(222,\"'\",'\"');var X=new U;X.set(1,la);X.set(2,ma);X.set(4,na);X.set(",
+ "8,oa);\n(function(a){var b=new U;m(ha(a),function(c){b.set(a.get(c).cod",
+ "e,c)});return b})(X);function pa(a){if(ga(a)){if(!ga(a))throw new n(15,",
+ "\"Element is not selectable\");var b=\"selected\",c=a.type&&a.type.toLo",
+ "werCase();if(\"checkbox\"==c||\"radio\"==c)b=\"checked\";a=!!a[b]}else ",
+ "a=!1;return a}var Y=[\"_\"],Z=h;Y[0]in Z||!Z.execScript||Z.execScript(",
+ "\"var \"+Y[0]);for(var $;Y.length&&($=Y.shift());)Y.length||void 0===pa",
+ "?Z=Z[$]?Z[$]:Z[$]={}:Z[$]=pa;; return this._.apply(null,arguments);}.ap",
+ "ply({navigator:typeof window!=undefined?window.navigator:null,document:",
+ "typeof window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const REMOVE_LOCAL_STORAGE_ITEM[] = {
+ "function(){return function(){var c=window;function e(a,d){this.code=a;t",
+ "his.state=f[a]||g;this.message=d||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),m=b.length-5;if(0>m||b.indexOf(\"Error\",m)!=m)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function d(){}d.prototype=a.prototype;e.b=",
+ "a.prototype;e.prototype=new d})();\nvar g=\"unknown error\",f={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};f[13]=g;f[9]=\"unknown ",
+ "command\";e.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction l(){var a=c||c;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new e(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.getItem=function(a){return this.a.getItem(a)};n.prototype.removeI",
+ "tem=function(a){var d=this.getItem(a);this.a.removeItem(a);return d};n.",
+ "prototype.clear=function(){this.a.clear()};function p(a){if(!l())throw ",
+ "new e(13,\"Local storage undefined\");return(new n(c.localStorage)).rem",
+ "oveItem(a)}var q=[\"_\"],r=this;q[0]in r||!r.execScript||r.execScript(",
+ "\"var \"+q[0]);for(var s;q.length&&(s=q.shift());)q.length||void 0===p?",
+ "r=r[s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(null,arguments);}.appl",
+ "y({navigator:typeof window!=undefined?window.navigator:null,document:ty",
+ "peof window!=undefined?window.document:null}, arguments);}",
+ NULL
+};
+
+const char* const REMOVE_SESSION_STORAGE_ITEM[] = {
+ "function(){return function(){var d=window;function e(a,b){this.code=a;t",
+ "his.state=f[a]||g;this.message=b||\"\";var c=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),m=c.length-5;if(0>m||c.indexOf(\"Error\",m)!=m)c+=\"Error\";t",
+ "his.name=c;c=Error(this.message);c.name=this.name;this.stack=c.stack||",
+ "\"\"}(function(){var a=Error;function b(){}b.prototype=a.prototype;e.b=",
+ "a.prototype;e.prototype=new b})();\nvar g=\"unknown error\",f={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};f[13]=g;f[9]=\"unknown ",
+ "command\";e.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction l(){var a=d||d;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new e(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.getItem=function(a){return this.a.getItem(a)};n.prototype.removeI",
+ "tem=function(a){var b=this.getItem(a);this.a.removeItem(a);return b};n.",
+ "prototype.clear=function(){this.a.clear()};function p(a){var b;if(l())b",
+ "=new n(d.sessionStorage);else throw new e(13,\"Session storage undefine",
+ "d\");return b.removeItem(a)}var q=[\"_\"],r=this;q[0]in r||!r.execScrip",
+ "t||r.execScript(\"var \"+q[0]);for(var s;q.length&&(s=q.shift());)q.len",
+ "gth||void 0===p?r=r[s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(null,a",
+ "rguments);}.apply({navigator:typeof window!=undefined?window.navigator:",
+ "null,document:typeof window!=undefined?window.document:null}, arguments",
+ ");}",
+ NULL
+};
+
+const char* const SET_LOCAL_STORAGE_ITEM[] = {
+ "function(){return function(){var d=window;function e(a,c){this.code=a;t",
+ "his.state=f[a]||g;this.message=c||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function c(){}c.prototype=a.prototype;e.b=",
+ "a.prototype;e.prototype=new c})();\nvar g=\"unknown error\",f={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};f[13]=g;f[9]=\"unknown ",
+ "command\";e.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=d||d;switch(\"local_storage\"){case ",
+ "\"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new e(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.setItem=function(a,c){try{this.a.setItem(a,c+\"\")}catch(b){throw",
+ " new e(13,b.message);}};n.prototype.clear=function(){this.a.clear()};fu",
+ "nction p(a,c){if(!m())throw new e(13,\"Local storage undefined\");(new ",
+ "n(d.localStorage)).setItem(a,c)}var q=[\"_\"],r=this;q[0]in r||!r.execS",
+ "cript||r.execScript(\"var \"+q[0]);for(var s;q.length&&(s=q.shift());)q",
+ ".length||void 0===p?r=r[s]?r[s]:r[s]={}:r[s]=p;; return this._.apply(nu",
+ "ll,arguments);}.apply({navigator:typeof window!=undefined?window.naviga",
+ "tor:null,document:typeof window!=undefined?window.document:null}, argum",
+ "ents);}",
+ NULL
+};
+
+const char* const SET_SESSION_STORAGE_ITEM[] = {
+ "function(){return function(){var d=window;function e(a,c){this.code=a;t",
+ "his.state=f[a]||g;this.message=c||\"\";var b=this.state.replace(/((?:^|",
+ "\\s+)[a-z])/g,function(a){return a.toUpperCase().replace(/^[\\s\\xa0]+/",
+ "g,\"\")}),l=b.length-5;if(0>l||b.indexOf(\"Error\",l)!=l)b+=\"Error\";t",
+ "his.name=b;b=Error(this.message);b.name=this.name;this.stack=b.stack||",
+ "\"\"}(function(){var a=Error;function c(){}c.prototype=a.prototype;e.b=",
+ "a.prototype;e.prototype=new c})();\nvar g=\"unknown error\",f={15:\"ele",
+ "ment not selectable\",11:\"element not visible\",31:\"ime engine activa",
+ "tion failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:",
+ "\"invalid element coordinates\",12:\"invalid element state\",32:\"inval",
+ "id selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"java",
+ "script error\",405:\"unsupported operation\",34:\"move target out of bo",
+ "unds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",2",
+ "3:\"no such window\",28:\"script timeout\",33:\"session not created\",1",
+ "0:\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unabl",
+ "e to set cookie\",26:\"unexpected alert open\"};f[13]=g;f[9]=\"unknown ",
+ "command\";e.prototype.toString=function(){return this.name+\": \"+this.",
+ "message};var h=this.navigator;var k=-1!=(h&&h.platform||\"\").indexOf(",
+ "\"Win\")&&!1;\nfunction m(){var a=d||d;switch(\"session_storage\"){case",
+ " \"appcache\":return null!=a.applicationCache;case \"browser_connection",
+ "\":return null!=a.navigator&&null!=a.navigator.onLine;case \"database\"",
+ ":return null!=a.openDatabase;case \"location\":return k?!1:null!=a.navi",
+ "gator&&null!=a.navigator.geolocation;case \"local_storage\":return null",
+ "!=a.localStorage;case \"session_storage\":return null!=a.sessionStorage",
+ "&&null!=a.sessionStorage.clear;default:throw new e(13,\"Unsupported API",
+ " identifier provided as parameter\");}}\n;function n(a){this.a=a}n.prot",
+ "otype.setItem=function(a,c){try{this.a.setItem(a,c+\"\")}catch(b){throw",
+ " new e(13,b.message);}};n.prototype.clear=function(){this.a.clear()};fu",
+ "nction p(a,c){var b;if(m())b=new n(d.sessionStorage);else throw new e(1",
+ "3,\"Session storage undefined\");b.setItem(a,c)}var q=[\"_\"],r=this;q[",
+ "0]in r||!r.execScript||r.execScript(\"var \"+q[0]);for(var s;q.length&&",
+ "(s=q.shift());)q.length||void 0===p?r=r[s]?r[s]:r[s]={}:r[s]=p;; return",
+ " this._.apply(null,arguments);}.apply({navigator:typeof window!=undefin",
+ "ed?window.navigator:null,document:typeof window!=undefined?window.docum",
+ "ent:null}, arguments);}",
+ NULL
+};
+
+const char* const SUBMIT[] = {
+ "function(){return function(){function e(a){return function(){return thi",
+ "s[a]}}function h(a){return function(){return a}}var k=this;function l(a",
+ "){return\"string\"==typeof a}function m(a,b){function c(){}c.prototype=",
+ "b.prototype;a.X=b.prototype;a.prototype=new c;a.prototype.constructor=a",
+ "};var aa=window;var n=Array.prototype;function q(a,b){for(var c=a.lengt",
+ "h,d=l(a)?a.split(\"\"):a,f=0;f<c;f++)f in d&&b.call(void 0,d[f],f,a)}fu",
+ "nction ba(a,b){if(a.reduce)return a.reduce(b,\"\");var c=\"\";q(a,funct",
+ "ion(d,f){c=b.call(void 0,c,d,f,a)});return c}function ca(a,b,c){return ",
+ "2>=arguments.length?n.slice.call(a,b):n.slice.call(a,b,c)};function r(a",
+ ",b){this.code=a;this.state=s[a]||t;this.message=b||\"\";var c=this.stat",
+ "e.replace(/((?:^|\\s+)[a-z])/g,function(a){return a.toUpperCase().repla",
+ "ce(/^[\\s\\xa0]+/g,\"\")}),d=c.length-5;if(0>d||c.indexOf(\"Error\",d)!",
+ "=d)c+=\"Error\";this.name=c;c=Error(this.message);c.name=this.name;this",
+ ".stack=c.stack||\"\"}m(r,Error);\nvar t=\"unknown error\",s={15:\"eleme",
+ "nt not selectable\",11:\"element not visible\",31:\"ime engine activati",
+ "on failed\",30:\"ime not available\",24:\"invalid cookie domain\",29:\"",
+ "invalid element coordinates\",12:\"invalid element state\",32:\"invalid",
+ " selector\",51:\"invalid selector\",52:\"invalid selector\",17:\"javasc",
+ "ript error\",405:\"unsupported operation\",34:\"move target out of boun",
+ "ds\",27:\"no such alert\",7:\"no such element\",8:\"no such frame\",23:",
+ "\"no such window\",28:\"script timeout\",33:\"session not created\",10:",
+ "\"stale element reference\",\n0:\"success\",21:\"timeout\",25:\"unable ",
+ "to set cookie\",26:\"unexpected alert open\"};s[13]=t;s[9]=\"unknown co",
+ "mmand\";r.prototype.toString=function(){return this.name+\": \"+this.me",
+ "ssage};var u,v,x,y=k.navigator;x=y&&y.platform||\"\";u=-1!=x.indexOf(\"",
+ "Mac\");v=-1!=x.indexOf(\"Win\");var A=-1!=x.indexOf(\"Linux\");function",
+ " B(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if(\"un",
+ "defined\"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.comp",
+ "areDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}\nf",
+ "unction da(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.",
+ "compareDocumentPosition(b)&2?1:-1;if(\"sourceIndex\"in a||a.parentNode&",
+ "&\"sourceIndex\"in a.parentNode){var c=1==a.nodeType,d=1==b.nodeType;if",
+ "(c&&d)return a.sourceIndex-b.sourceIndex;var f=a.parentNode,g=b.parentN",
+ "ode;return f==g?C(a,b):!c&&B(f,b)?-1*D(a,b):!d&&B(g,a)?D(b,a):(c?a.sour",
+ "ceIndex:f.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=E(a);c=d.creat",
+ "eRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(",
+ "b);d.collapse(!0);\nreturn c.compareBoundaryPoints(k.Range.START_TO_END",
+ ",d)}function D(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.p",
+ "arentNode!=c;)d=d.parentNode;return C(d,a)}function C(a,b){for(var c=b;",
+ "c=c.previousSibling;)if(c==a)return-1;return 1}function E(a){return 9==",
+ "a.nodeType?a:a.ownerDocument||a.document}function F(a,b,c){c||(a=a.pare",
+ "ntNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};fu",
+ "nction G(a){var b=null,c=a.nodeType;1==c&&(b=a.textContent,b=void 0==b|",
+ "|null==b?a.innerText:b,b=void 0==b||null==b?\"\":b);if(\"string\"!=type",
+ "of b)if(9==c||1==c){a=9==c?a.documentElement:a.firstChild;for(var c=0,d",
+ "=[],b=\"\";a;){do 1!=a.nodeType&&(b+=a.nodeValue),d[c++]=a;while(a=a.fi",
+ "rstChild);for(;c&&!(a=d[--c].nextSibling););}}else b=a.nodeValue;return",
+ "\"\"+b}\nfunction H(a,b,c){if(null===b)return!0;try{if(!a.getAttribute)",
+ "return!1}catch(d){return!1}return null==c?!!a.getAttribute(b):a.getAttr",
+ "ibute(b,2)==c}function I(a,b,c,d,f){return ea.call(null,a,b,l(c)?c:null",
+ ",l(d)?d:null,f||new J)}\nfunction ea(a,b,c,d,f){b.getElementsByName&&d&",
+ "&\"name\"==c?(b=b.getElementsByName(d),q(b,function(b){a.matches(b)&&f.",
+ "add(b)})):b.getElementsByClassName&&d&&\"class\"==c?(b=b.getElementsByC",
+ "lassName(d),q(b,function(b){b.className==d&&a.matches(b)&&f.add(b)})):b",
+ ".getElementsByTagName&&(b=b.getElementsByTagName(a.getName()),q(b,funct",
+ "ion(a){H(a,c,d)&&f.add(a)}));return f}function fa(a,b,c,d,f){for(b=b.fi",
+ "rstChild;b;b=b.nextSibling)H(b,c,d)&&a.matches(b)&&f.add(b);return f};f",
+ "unction J(){this.g=this.f=null;this.l=0}function K(a){this.r=a;this.nex",
+ "t=this.n=null}J.prototype.unshift=function(a){a=new K(a);a.next=this.f;",
+ "this.g?this.f.n=a:this.f=this.g=a;this.f=a;this.l++};J.prototype.add=fu",
+ "nction(a){a=new K(a);a.n=this.g;this.f?this.g.next=a:this.f=this.g=a;th",
+ "is.g=a;this.l++};function ga(a){return(a=a.f)?a.r:null}function L(a){re",
+ "turn new ha(a,!1)}function ha(a,b){this.S=a;this.o=(this.s=b)?a.g:a.f;t",
+ "his.D=null}\nha.prototype.next=function(){var a=this.o;if(null==a)retur",
+ "n null;var b=this.D=a;this.o=this.s?a.n:a.next;return b.r};function M(a",
+ ",b,c,d,f){b=b.evaluate(d);c=c.evaluate(d);var g;if(b instanceof J&&c in",
+ "stanceof J){f=L(b);for(d=f.next();d;d=f.next())for(b=L(c),g=b.next();g;",
+ "g=b.next())if(a(G(d),G(g)))return!0;return!1}if(b instanceof J||c insta",
+ "nceof J){b instanceof J?f=b:(f=c,c=b);f=L(f);b=typeof c;for(d=f.next();",
+ "d;d=f.next()){switch(b){case \"number\":d=+G(d);break;case \"boolean\":",
+ "d=!!G(d);break;case \"string\":d=G(d);break;default:throw Error(\"Illeg",
+ "al primitive type for comparison.\");}if(a(d,c))return!0}return!1}retur",
+ "n f?\n\"boolean\"==typeof b||\"boolean\"==typeof c?a(!!b,!!c):\"number",
+ "\"==typeof b||\"number\"==typeof c?a(+b,+c):a(b,c):a(+b,+c)}function ia",
+ "(a,b,c,d){this.F=a;this.U=b;this.A=c;this.B=d}ia.prototype.toString=e(",
+ "\"F\");var ja={};function N(a,b,c,d){if(a in ja)throw Error(\"Binary op",
+ "erator already created: \"+a);a=new ia(a,b,c,d);ja[a.toString()]=a}N(\"",
+ "div\",6,1,function(a,b,c){return a.d(c)/b.d(c)});N(\"mod\",6,1,function",
+ "(a,b,c){return a.d(c)%b.d(c)});N(\"*\",6,1,function(a,b,c){return a.d(c",
+ ")*b.d(c)});\nN(\"+\",5,1,function(a,b,c){return a.d(c)+b.d(c)});N(\"-\"",
+ ",5,1,function(a,b,c){return a.d(c)-b.d(c)});N(\"<\",4,2,function(a,b,c)",
+ "{return M(function(a,b){return a<b},a,b,c)});N(\">\",4,2,function(a,b,c",
+ "){return M(function(a,b){return a>b},a,b,c)});N(\"<=\",4,2,function(a,b",
+ ",c){return M(function(a,b){return a<=b},a,b,c)});N(\">=\",4,2,function(",
+ "a,b,c){return M(function(a,b){return a>=b},a,b,c)});N(\"=\",3,2,functio",
+ "n(a,b,c){return M(function(a,b){return a==b},a,b,c,!0)});\nN(\"!=\",3,2",
+ ",function(a,b,c){return M(function(a,b){return a!=b},a,b,c,!0)});N(\"an",
+ "d\",2,2,function(a,b,c){return a.j(c)&&b.j(c)});N(\"or\",1,2,function(a",
+ ",b,c){return a.j(c)||b.j(c)});function ka(a,b,c,d,f,g,p,w,z){this.m=a;t",
+ "his.A=b;this.R=c;this.Q=d;this.P=f;this.B=g;this.N=p;this.M=void 0!==w?",
+ "w:p;this.T=!!z}ka.prototype.toString=e(\"m\");var la={};function O(a,b,",
+ "c,d,f,g,p,w){if(a in la)throw Error(\"Function already created: \"+a+\"",
+ ".\");la[a]=new ka(a,b,c,d,!1,f,g,p,w)}O(\"boolean\",2,!1,!1,function(a,",
+ "b){return b.j(a)},1);O(\"ceiling\",1,!1,!1,function(a,b){return Math.ce",
+ "il(b.d(a))},1);\nO(\"concat\",3,!1,!1,function(a,b){var c=ca(arguments,",
+ "1);return ba(c,function(b,c){return b+c.c(a)})},2,null);O(\"contains\",",
+ "2,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);return-1!=b.indexOf(a)},2);O(",
+ "\"count\",1,!1,!1,function(a,b){return b.evaluate(a).l},1,1,!0);O(\"fal",
+ "se\",2,!1,!1,h(!1),0);O(\"floor\",1,!1,!1,function(a,b){return Math.flo",
+ "or(b.d(a))},1);\nO(\"id\",4,!1,!1,function(a,b){var c=a.h(),d=9==c.node",
+ "Type?c:c.ownerDocument,c=b.c(a).split(/\\s+/),f=[];q(c,function(a){a=d.",
+ "getElementById(a);var b;if(!(b=!a)){a:if(l(f))b=l(a)&&1==a.length?f.ind",
+ "exOf(a,0):-1;else{for(b=0;b<f.length;b++)if(b in f&&f[b]===a)break a;b=",
+ "-1}b=0<=b}b||f.push(a)});f.sort(da);var g=new J;q(f,function(a){g.add(a",
+ ")});return g},1);O(\"lang\",2,!1,!1,h(!1),1);O(\"last\",1,!0,!1,functio",
+ "n(a){if(1!=arguments.length)throw Error(\"Function last expects ()\");r",
+ "eturn a.K()},0);\nO(\"local-name\",3,!1,!0,function(a,b){var c=b?ga(b.e",
+ "valuate(a)):a.h();return c?c.nodeName.toLowerCase():\"\"},0,1,!0);O(\"n",
+ "ame\",3,!1,!0,function(a,b){var c=b?ga(b.evaluate(a)):a.h();return c?c.",
+ "nodeName.toLowerCase():\"\"},0,1,!0);O(\"namespace-uri\",3,!0,!1,h(\"\"",
+ "),0,1,!0);O(\"normalize-space\",3,!1,!0,function(a,b){return(b?b.c(a):G",
+ "(a.h())).replace(/[\\s\\xa0]+/g,\" \").replace(/^\\s+|\\s+$/g,\"\")},0,",
+ "1);O(\"not\",2,!1,!1,function(a,b){return!b.j(a)},1);O(\"number\",1,!1,",
+ "!0,function(a,b){return b?b.d(a):+G(a.h())},0,1);\nO(\"position\",1,!0,",
+ "!1,function(a){return a.L()},0);O(\"round\",1,!1,!1,function(a,b){retur",
+ "n Math.round(b.d(a))},1);O(\"starts-with\",2,!1,!1,function(a,b,c){b=b.",
+ "c(a);a=c.c(a);return 0==b.lastIndexOf(a,0)},2);O(\"string\",3,!1,!0,fun",
+ "ction(a,b){return b?b.c(a):G(a.h())},0,1);O(\"string-length\",1,!1,!0,f",
+ "unction(a,b){return(b?b.c(a):G(a.h())).length},0,1);\nO(\"substring\",3",
+ ",!1,!1,function(a,b,c,d){c=c.d(a);if(isNaN(c)||Infinity==c||-Infinity==",
+ "c)return\"\";d=d?d.d(a):Infinity;if(isNaN(d)||-Infinity===d)return\"\";",
+ "c=Math.round(c)-1;var f=Math.max(c,0);a=b.c(a);if(Infinity==d)return a.",
+ "substring(f);b=Math.round(d);return a.substring(f,c+b)},2,3);O(\"substr",
+ "ing-after\",3,!1,!1,function(a,b,c){b=b.c(a);a=c.c(a);c=b.indexOf(a);re",
+ "turn-1==c?\"\":b.substring(c+a.length)},2);\nO(\"substring-before\",3,!",
+ "1,!1,function(a,b,c){b=b.c(a);a=c.c(a);a=b.indexOf(a);return-1==a?\"\":",
+ "b.substring(0,a)},2);O(\"sum\",1,!1,!1,function(a,b){for(var c=L(b.eval",
+ "uate(a)),d=0,f=c.next();f;f=c.next())d+=+G(f);return d},1,1,!0);O(\"tra",
+ "nslate\",3,!1,!1,function(a,b,c,d){b=b.c(a);c=c.c(a);var f=d.c(a);a=[];",
+ "for(d=0;d<c.length;d++){var g=c.charAt(d);g in a||(a[g]=f.charAt(d))}c=",
+ "\"\";for(d=0;d<b.length;d++)g=b.charAt(d),c+=g in a?a[g]:g;return c},3)",
+ ";O(\"true\",2,!1,!1,h(!0),0);function ma(a,b,c,d){this.m=a;this.J=b;thi",
+ "s.s=c;this.Y=d}ma.prototype.toString=e(\"m\");var na={};function Q(a,b,",
+ "c,d){if(a in na)throw Error(\"Axis already created: \"+a);na[a]=new ma(",
+ "a,b,c,!!d)}Q(\"ancestor\",function(a,b){for(var c=new J,d=b;d=d.parentN",
+ "ode;)a.matches(d)&&c.unshift(d);return c},!0);Q(\"ancestor-or-self\",fu",
+ "nction(a,b){var c=new J,d=b;do a.matches(d)&&c.unshift(d);while(d=d.par",
+ "entNode);return c},!0);\nQ(\"attribute\",function(a,b){var c=new J,d=a.",
+ "getName(),f=b.attributes;if(f)if(\"*\"==d)for(var d=0,g;g=f[d];d++)c.ad",
+ "d(g);else(g=f.getNamedItem(d))&&c.add(g);return c},!1);Q(\"child\",func",
+ "tion(a,b,c,d,f){return fa.call(null,a,b,l(c)?c:null,l(d)?d:null,f||new ",
+ "J)},!1,!0);Q(\"descendant\",I,!1,!0);Q(\"descendant-or-self\",function(",
+ "a,b,c,d){var f=new J;H(b,c,d)&&a.matches(b)&&f.add(b);return I(a,b,c,d,",
+ "f)},!1,!0);\nQ(\"following\",function(a,b,c,d){var f=new J;do for(var g",
+ "=b;g=g.nextSibling;)H(g,c,d)&&a.matches(g)&&f.add(g),f=I(a,g,c,d,f);whi",
+ "le(b=b.parentNode);return f},!1,!0);Q(\"following-sibling\",function(a,",
+ "b){for(var c=new J,d=b;d=d.nextSibling;)a.matches(d)&&c.add(d);return c",
+ "},!1);Q(\"namespace\",function(){return new J},!1);Q(\"parent\",functio",
+ "n(a,b){var c=new J;if(9==b.nodeType)return c;if(2==b.nodeType)return c.",
+ "add(b.ownerElement),c;var d=b.parentNode;a.matches(d)&&c.add(d);return ",
+ "c},!1);\nQ(\"preceding\",function(a,b,c,d){var f=new J,g=[];do g.unshif",
+ "t(b);while(b=b.parentNode);for(var p=1,w=g.length;p<w;p++){var z=[];for",
+ "(b=g[p];b=b.previousSibling;)z.unshift(b);for(var P=0,ua=z.length;P<ua;",
+ "P++)b=z[P],H(b,c,d)&&a.matches(b)&&f.add(b),f=I(a,b,c,d,f)}return f},!0",
+ ",!0);Q(\"preceding-sibling\",function(a,b){for(var c=new J,d=b;d=d.prev",
+ "iousSibling;)a.matches(d)&&c.unshift(d);return c},!0);Q(\"self\",functi",
+ "on(a,b){var c=new J;a.matches(b)&&c.add(b);return c},!1);function R(a,b",
+ "){return!!a&&1==a.nodeType&&(!b||a.tagName.toUpperCase()==b)};function ",
+ "oa(a,b){this.p=aa.document.documentElement;this.G=null;var c;a:{var d=E",
+ "(this.p);try{c=d&&d.activeElement;break a}catch(f){}c=null}c&&pa(this,c",
+ ");this.O=a||new qa;this.I=b||new ra}function pa(a,b){a.p=b;a.G=R(b,\"OP",
+ "TION\")?F(b,function(a){return R(a,\"SELECT\")}):null}function sa(a){re",
+ "turn R(a,\"FORM\")}function qa(){this.V=0}function ra(){};function S(a,",
+ "b,c){this.t=a;this.u=b;this.v=c}S.prototype.create=function(a){a=E(a).c",
+ "reateEvent(\"HTMLEvents\");a.initEvent(this.t,this.u,this.v);return a};",
+ "S.prototype.toString=e(\"t\");var ta=new S(\"submit\",!0,!0);function T",
+ "(a,b){this.i={};this.e=[];var c=arguments.length;if(1<c){if(c%2)throw E",
+ "rror(\"Uneven number of arguments\");for(var d=0;d<c;d+=2)this.set(argu",
+ "ments[d],arguments[d+1])}else if(a){var f;if(a instanceof T)for(d=va(a)",
+ ",wa(a),f=[],c=0;c<a.e.length;c++)f.push(a.i[a.e[c]]);else{var c=[],g=0;",
+ "for(d in a)c[g++]=d;d=c;c=[];g=0;for(f in a)c[g++]=a[f];f=c}for(c=0;c<d",
+ ".length;c++)this.set(d[c],f[c])}}T.prototype.k=0;T.prototype.H=0;functi",
+ "on va(a){wa(a);return a.e.concat()}\nfunction wa(a){if(a.k!=a.e.length)",
+ "{for(var b=0,c=0;b<a.e.length;){var d=a.e[b];Object.prototype.hasOwnPro",
+ "perty.call(a.i,d)&&(a.e[c++]=d);b++}a.e.length=c}if(a.k!=a.e.length){fo",
+ "r(var f={},c=b=0;b<a.e.length;)d=a.e[b],Object.prototype.hasOwnProperty",
+ ".call(f,d)||(a.e[c++]=d,f[d]=1),b++;a.e.length=c}}T.prototype.get=funct",
+ "ion(a,b){return Object.prototype.hasOwnProperty.call(this.i,a)?this.i[a",
+ "]:b};\nT.prototype.set=function(a,b){Object.prototype.hasOwnProperty.ca",
+ "ll(this.i,a)||(this.k++,this.e.push(a),this.H++);this.i[a]=b};var U={};",
+ "function V(a,b,c){var d=typeof a;(\"object\"==d&&null!=a||\"function\"=",
+ "=d)&&(a=a.a);a=new xa(a,b,c);!b||b in U&&!c||(U[b]={key:a,shift:!1},c&&",
+ "(U[c]={key:a,shift:!0}));return a}function xa(a,b,c){this.code=a;this.w",
+ "=b||null;this.W=c||this.w}V(8);V(9);V(13);var ya=V(16),za=V(17),Aa=V(18",
+ ");V(19);V(20);V(27);V(32,\" \");V(33);V(34);V(35);V(36);V(37);V(38);V(3",
+ "9);V(40);V(44);V(45);V(46);V(48,\"0\",\")\");V(49,\"1\",\"!\");V(50,\"2",
+ "\",\"@\");V(51,\"3\",\"#\");V(52,\"4\",\"$\");V(53,\"5\",\"%\");V(54,\"",
+ "6\",\"^\");V(55,\"7\",\"&\");\nV(56,\"8\",\"*\");V(57,\"9\",\"(\");V(65",
+ ",\"a\",\"A\");V(66,\"b\",\"B\");V(67,\"c\",\"C\");V(68,\"d\",\"D\");V(6",
+ "9,\"e\",\"E\");V(70,\"f\",\"F\");V(71,\"g\",\"G\");V(72,\"h\",\"H\");V(",
+ "73,\"i\",\"I\");V(74,\"j\",\"J\");V(75,\"k\",\"K\");V(76,\"l\",\"L\");V",
+ "(77,\"m\",\"M\");V(78,\"n\",\"N\");V(79,\"o\",\"O\");V(80,\"p\",\"P\");",
+ "V(81,\"q\",\"Q\");V(82,\"r\",\"R\");V(83,\"s\",\"S\");V(84,\"t\",\"T\")",
+ ";V(85,\"u\",\"U\");V(86,\"v\",\"V\");V(87,\"w\",\"W\");V(88,\"x\",\"X\"",
+ ");V(89,\"y\",\"Y\");V(90,\"z\",\"Z\");var Ba=V(v?{b:91,a:91,opera:219}:",
+ "u?{b:224,a:91,opera:17}:{b:0,a:91,opera:null});\nV(v?{b:92,a:92,opera:2",
+ "20}:u?{b:224,a:93,opera:17}:{b:0,a:92,opera:null});V(v?{b:93,a:93,opera",
+ ":0}:u?{b:0,a:0,opera:16}:{b:93,a:null,opera:0});V({b:96,a:96,opera:48},",
+ "\"0\");V({b:97,a:97,opera:49},\"1\");V({b:98,a:98,opera:50},\"2\");V({b",
+ ":99,a:99,opera:51},\"3\");V({b:100,a:100,opera:52},\"4\");V({b:101,a:10",
+ "1,opera:53},\"5\");V({b:102,a:102,opera:54},\"6\");V({b:103,a:103,opera",
+ ":55},\"7\");V({b:104,a:104,opera:56},\"8\");V({b:105,a:105,opera:57},\"",
+ "9\");V({b:106,a:106,opera:A?56:42},\"*\");V({b:107,a:107,opera:A?61:43}",
+ ",\"+\");\nV({b:109,a:109,opera:A?109:45},\"-\");V({b:110,a:110,opera:A?",
+ "190:78},\".\");V({b:111,a:111,opera:A?191:47},\"/\");V(144);V(112);V(11",
+ "3);V(114);V(115);V(116);V(117);V(118);V(119);V(120);V(121);V(122);V(123",
+ ");V({b:107,a:187,opera:61},\"=\",\"+\");V(108,\",\");V({b:109,a:189,ope",
+ "ra:109},\"-\",\"_\");V(188,\",\",\"<\");V(190,\".\",\">\");V(191,\"/\",",
+ "\"?\");V(192,\"`\",\"~\");V(219,\"[\",\"{\");V(220,\"\\\\\",\"|\");V(22",
+ "1,\"]\",\"}\");V({b:59,a:186,opera:59},\";\",\":\");V(222,\"'\",'\"');v",
+ "ar W=new T;W.set(1,ya);W.set(2,za);W.set(4,Aa);W.set(8,Ba);\n(function(",
+ "a){var b=new T;q(va(a),function(c){b.set(a.get(c).code,c)});return b})(",
+ "W);function X(){oa.call(this)}m(X,oa);X.C=function(){return X.q?X.q:X.q",
+ "=new X};function Ca(a){var b=F(a,sa,!0);if(!b)throw new r(7,\"Element w",
+ "as not in a form, so could not submit.\");var c=X.C();pa(c,a);if(!sa(b)",
+ ")throw new r(12,\"Element is not a form, so could not submit.\");a=ta.c",
+ "reate(b,void 0);\"isTrusted\"in a||(a.isTrusted=!1);b.dispatchEvent(a)&",
+ "&(R(b.submit)?b.constructor.prototype.submit.call(b):b.submit())}var Y=",
+ "[\"_\"],Z=k;Y[0]in Z||!Z.execScript||Z.execScript(\"var \"+Y[0]);for(va",
+ "r $;Y.length&&($=Y.shift());)Y.length||void 0===Ca?Z=Z[$]?Z[$]:Z[$]={}:",
+ "Z[$]=Ca;; return this._.apply(null,arguments);}.apply({navigator:typeof",
+ " window!=undefined?window.navigator:null,document:typeof window!=undefi",
+ "ned?window.document:null}, arguments);}",
+ NULL
+};
+
+} // namespace atoms
+} // namespace webdriver
+
diff --git a/chromium/third_party/webdriver/atoms.h b/chromium/third_party/webdriver/atoms.h
new file mode 100644
index 00000000000..2e26dca42c6
--- /dev/null
+++ b/chromium/third_party/webdriver/atoms.h
@@ -0,0 +1,76 @@
+/*
+ * Copyright 2011-2012 WebDriver committers
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/* AUTO GENERATED - DO NOT EDIT BY HAND */
+#ifndef WEBDRIVER_ATOMS_H_
+#define WEBDRIVER_ATOMS_H_
+
+#include <string> // For std::(w)string.
+
+namespace webdriver {
+namespace atoms {
+
+extern const char* const GET_FIRST_CLIENT_RECT[];
+extern const char* const GET_LOCATION_IN_VIEW[];
+extern const char* const GET_PAGE_ZOOM[];
+extern const char* const IS_ELEMENT_CLICKABLE[];
+extern const char* const TOUCH_SINGLE_TAP[];
+extern const char* const CLEAR[];
+extern const char* const CLEAR_LOCAL_STORAGE[];
+extern const char* const CLEAR_SESSION_STORAGE[];
+extern const char* const CLICK[];
+extern const char* const EXECUTE_ASYNC_SCRIPT[];
+extern const char* const EXECUTE_SCRIPT[];
+extern const char* const EXECUTE_SQL[];
+extern const char* const FIND_ELEMENT[];
+extern const char* const FIND_ELEMENTS[];
+extern const char* const GET_APPCACHE_STATUS[];
+extern const char* const GET_ATTRIBUTE[];
+extern const char* const GET_EFFECTIVE_STYLE[];
+extern const char* const GET_IN_VIEW_LOCATION[];
+extern const char* const GET_LOCAL_STORAGE_ITEM[];
+extern const char* const GET_LOCAL_STORAGE_KEY[];
+extern const char* const GET_LOCAL_STORAGE_KEYS[];
+extern const char* const GET_LOCAL_STORAGE_SIZE[];
+extern const char* const GET_SESSION_STORAGE_ITEM[];
+extern const char* const GET_SESSION_STORAGE_KEY[];
+extern const char* const GET_SESSION_STORAGE_KEYS[];
+extern const char* const GET_SESSION_STORAGE_SIZE[];
+extern const char* const GET_LOCATION[];
+extern const char* const GET_SIZE[];
+extern const char* const GET_TEXT[];
+extern const char* const IS_DISPLAYED[];
+extern const char* const IS_ENABLED[];
+extern const char* const IS_ONLINE[];
+extern const char* const IS_SELECTED[];
+extern const char* const REMOVE_LOCAL_STORAGE_ITEM[];
+extern const char* const REMOVE_SESSION_STORAGE_ITEM[];
+extern const char* const SET_LOCAL_STORAGE_ITEM[];
+extern const char* const SET_SESSION_STORAGE_ITEM[];
+extern const char* const SUBMIT[];
+
+static inline std::string asString(const char* const atom[]) {
+ std::string source;
+ for (int i = 0; atom[i] != NULL; i++) {
+ source += atom[i];
+ }
+ return source;
+}
+
+} // namespace atoms
+} // namespace webdriver
+
+#endif // WEBDRIVER_ATOMS_H_
diff --git a/chromium/third_party/webdriver/patch.diff b/chromium/third_party/webdriver/patch.diff
new file mode 100644
index 00000000000..8acc9317678
--- /dev/null
+++ b/chromium/third_party/webdriver/patch.diff
@@ -0,0 +1,24 @@
+Index: javascript/chrome-driver/build.desc
+===================================================================
+--- javascript/chrome-driver/build.desc (revision 18456)
++++ javascript/chrome-driver/build.desc (working copy)
+@@ -24,6 +24,11 @@
+ function = "webdriver.chrome.getPageZoom",
+ deps = [ ":deps" ])
+
++js_fragment(name = "touch_single_tap",
++ module = "bot.action",
++ function = "bot.action.tap",
++ deps = [ "//javascript/atoms:deps" ])
++
+ js_test(name = "test",
+ srcs = [ "test/*_test.html" ],
+ deps = [
+@@ -39,6 +44,7 @@
+ "//javascript/chrome-driver:get_location_in_view:chrome",
+ "//javascript/chrome-driver:get_page_zoom:chrome",
+ "//javascript/chrome-driver:is_element_clickable:chrome",
++ "//javascript/chrome-driver:touch_single_tap:chrome",
+ "//javascript/webdriver/atoms:clear:chrome",
+ "//javascript/webdriver/atoms:clear_local_storage:chrome",
+ "//javascript/webdriver/atoms:clear_session_storage:chrome",
diff --git a/chromium/third_party/webdriver/pylib/CHANGES b/chromium/third_party/webdriver/pylib/CHANGES
new file mode 100644
index 00000000000..0effbbcdadb
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/CHANGES
@@ -0,0 +1,172 @@
+Selenium 2.28
+* "null" can now be passed to executeScript
+* Add transparent and extended colour keywords to color support module. Fixes issue 4866
+
+Selenium 2.27
+* Added support for phantomjs / ghostdriver
+* Fix python client, avoid duplicate chrome option items after reusing options class. Fixes Issue 4744.
+* adding colour support to Python. fixes issue 4623
+* Adding log_path/service_log_path as named kwargs for chrome
+
+Selenium 2.26
+* Added location_when_scrolled_into_view - Bug 4357
+* Added new expected_conditions support module to be used with WebDriverWait
+
+Selenium 2.25
+* Jython 2.7 Support - Bug 3988
+* EventFiringWebDriver added to Support module - Bug 2267
+* Added IEDriverServer logging that can be accessed via desired capabilities
+* Fixed by data being passed into find_elements - bug 3735
+* Removed deprecated ChromeDriver items around desiredcapabilites in favour of chrome options
+* Added default values for a number of action_chains calls
+
+Selenium 2.24
+* Removing the ctypes approach of invoking IEDriver, you will need to download the IEDriverServer from
+ https://code.google.com/p/selenium/downloads/list
+
+Selenium 2.23
+* Support for FF13 native events
+
+Selenium 2.22
+* Moving IEDriver to be able to use IEDriverServer
+
+Selenium 2.21.3
+* Fix for File Upload to remote servers
+* Better handling of typing in input=file. Bug 3831, 3736
+* Better handling of unicode URLS Bug 3740
+
+Selenium 2.21.2
+* Fix typing to file input when not using Selenium Server. Bug 3736
+
+Selenium 2.21.1
+* focusmanager.testmode messes with native events, removing it.
+
+Selenium 2.21
+* Local File upload capabilities for non-remote browser
+* Adding maximize_window api call
+* Updating default firefox profile to set focusmanager.testmode to true
+ see https://bugzilla.mozilla.org/show_bug.cgi?id=704583
+* bugs fixed: 3506, 3528, 3607
+
+Selenium 2.20
+* disable native events for FF on Mac by default
+* fix webdriverwait to execute at least once when using 0 timeout
+* Fixed Issue 3438
+
+Selenium 2.19
+* WebDriverBackedSelenium is now avalaible to all languages
+* Addon installation fixes
+
+Selenium 2.18
+* Proxy capabilities passing
+
+Selenium 2.17
+* OperaDriver can now be invoked by webdriver.Opera()
+* Support has been added for ChomeOptions. This deprecates support passing in DesiredCapabilities
+* Proxy class to tell the browser a proxy is in use. Currently only for Firefox
+
+Selenium 2.16
+* bug fixes
+
+Selenium 2.15
+* bug fixes
+
+Selenium 2.14
+* Fix for LD_PRELOAD being polluted by WebDriver
+* Added Orientation API
+* A fix for Error Handling
+
+Selenium 2.13
+* Fixed switch_to_window so that it didnt crash Firefox Bug 2633
+* Fixed Screenshot handling to work in all browsers. Bug 2829
+* Force Firefox to the Foreground
+
+Selenium 2.12
+* Added Select as a support pacakge
+* Added Beta window size / position api's
+* Bug Fixes
+
+Selenium 2.11.0 2.11.1
+* no changes just packaging
+
+Selenum 2.10
+* "Choose which apps" dialog has been disabled
+* Bug Fixes
+
+Selenium 2.9
+* Bug Fixes
+* Documentation
+
+Selenium 2.8
+* Actions updates
+* Bug Fixes
+
+Selenium 2.6
+* Documentation fixes
+
+Selenium 2.5
+* Fixed x64 IE Support
+* Bug Fixes
+
+Selenium 2.4
+* Bug Fixes
+* x64 IE Support
+* Added WebDriverWait as a support package
+
+Selenium 2.3
+* Bug Fixes
+
+Selenium 2.2
+* Ability to get screenshots from Exceptions if they are given
+* Access to Remote StackTrace on error
+
+Selenium 2.1
+* Bug Fixes
+
+Selenium 2
+* Removed toggle() and select()
+
+Selenium 2 RC 3
+* Added Opera to Desired Capabilities
+* Removed deprecrated methods
+* Deprecated toggle() and select() methods. This will be removed in the next release
+
+Selenium 2 Beta 4
+* Fix for using existing Firefox Profiles
+* Alerts Support in IE
+* Fix to dictionary returned from size
+* Deprecated value property. Use the get_attribute("value") method
+* Deprecated get_page_source method. Use page_source property
+* Deprecated get_current_window_handle. Use current_window_handle property
+* Deprecated get_window_handles. Use window_handles property
+* Ability to install extensions into profiles
+* Added Location to the WebElement
+* ChromeDriver rewritten to use new built in mechanism
+* Added Advanced User Interaction API. Only Available for HTMLUnit at the moment
+* Profiles now delete their temp folders when driver.quit() is called
+
+Selenium 2 Beta 3
+* Accept Untrusted Certificates in Firefox
+* Fixed Screenshots
+* Added DesiredCapabilities to simplify choosing Drivers
+* Fixed Firefox Profile creation
+* Added Firefox 4 support
+* DocStrings Improvements
+
+Selenium 2 Beta 2
+
+* New bindings landed. Change webdriver namespace to "selenium.webdriver"
+* Ability to move to default content
+* Implicit Waits
+* Change the API to use properties instead of get_x
+* Changed the Element Finding to match other languages
+* Added ability to execute asynchronous scripts from the driver
+* Ability to get rendered element size
+* Ability to get CSS Value on a webelement
+* Corrected Element finding from the element
+* Alert and Prompt handling
+* Improved IEDriver
+* Basic Authentication support for Selenium 2
+* Ability to have multiple Firefox instances
+
+
diff --git a/chromium/third_party/webdriver/pylib/README b/chromium/third_party/webdriver/pylib/README
new file mode 100644
index 00000000000..20df6a2aa71
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/README
@@ -0,0 +1,64 @@
+============
+Introduction
+============
+
+:Author: David Burns
+
+Selenium Python Client Driver is a Python language binding for Selenium Remote
+Control (version 1.0 and 2.0).
+
+Currently the remote protocol, Firefox and Chrome for Selenium 2.0 are
+supported, as well as the Selenium 1.0 bindings. As work will progresses we'll
+add more "native" drivers.
+
+See here_ for more information.
+
+.. _here: http://code.google.com/p/selenium/
+
+Installing
+==========
+
+Python Client
+-------------
+::
+
+ pip install -U selenium
+
+Java Server
+-----------
+
+Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.28.0.jar
+::
+
+ java -jar selenium-server-standalone-2.28.0.jar
+
+Example
+=======
+::
+
+ from selenium import webdriver
+ from selenium.common.exceptions import NoSuchElementException
+ from selenium.webdriver.common.keys import Keys
+ import time
+
+ browser = webdriver.Firefox() # Get local session of firefox
+ browser.get("http://www.yahoo.com") # Load page
+ assert "Yahoo!" in browser.title
+ elem = browser.find_element_by_name("p") # Find the query box
+ elem.send_keys("seleniumhq" + Keys.RETURN)
+ time.sleep(0.2) # Let the page load, will be added to the API
+ try:
+ browser.find_element_by_xpath("//a[contains(@href,'http://seleniumhq.org')]")
+ except NoSuchElementException:
+ assert 0, "can't find seleniumhq"
+ browser.close()
+
+Documentation
+=============
+
+`Auto Generated API <http://selenium.googlecode.com/svn/trunk/docs/api/py/api.html>`_
+
+Use The Source Luke!
+====================
+
+http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
diff --git a/chromium/third_party/webdriver/pylib/__init__.py b/chromium/third_party/webdriver/pylib/__init__.py
new file mode 100644
index 00000000000..a8bb36bb9b4
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/__init__.py
@@ -0,0 +1,14 @@
+# Copyright 2010 WebDriver committers
+# Copyright 2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/build.desc b/chromium/third_party/webdriver/pylib/build.desc
new file mode 100644
index 00000000000..4475e1f080e
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/build.desc
@@ -0,0 +1,71 @@
+# py_test targets implicitly get the following extra targets added:
+# for each browser in browsers:
+# :name_B to gather the sources of the tests for browser B
+# :name_B:run to run the tests for browser B
+# Also, if only one browser, B, is listed in browsers:
+# :name:run is created as a synonym for :name_B:run
+#
+# Currently, pulling in other tests through deps is limited to deps declared in the same build.desc file
+
+py_test(
+ name = "firefox_test",
+ ff_specific_tests = [ "test/selenium/webdriver/firefox/*_tests.py" ],
+ deps = [ ":test_ff" ],
+ resources = [
+ { "//javascript/firefox-driver:webdriver" : "selenium/webdriver/firefox/" }
+ ],
+ browsers = [ "ff" ])
+
+py_test(
+ name = "phantomjs_test",
+ gd_specific_tests = [ "test/selenium/webdriver/phantomjs/*_tests.py" ],
+ deps = [ ":test_phantomjs" ],
+ browsers = [ "phantomjs" ])
+
+
+py_test(
+ name = "chrome_test",
+ chrome_specific_tests = [ "test/selenium/webdriver/chrome/*_tests.py" ],
+ deps = [ ":test_chrome" ],
+ browsers = [ "chrome" ])
+
+py_test(
+ name = "opera_test",
+ opera_specific_tests = [ "test/selenium/webdriver/opera/*_tests.py" ],
+ deps = [ ":test_opera" ],
+ browsers = [ "opera" ])
+
+py_test(
+ name = "ie_test",
+ deps = [ ":test_ie" ],
+ browsers = [ "ie" ])
+
+py_test(
+ name = "remote_firefox_test",
+ remote_firefox_specific_tests = [ "test/selenium/webdriver/remote/*_tests.py" ],
+ deps = [ ":test_remote_firefox" ],
+ browsers = [ "remote_firefox" ])
+
+py_env(
+ name = "test_env",
+ packages = [
+ "third_party/py/simplejson-2.2.1.tar.gz",
+ "third_party/py/py-1.4.5.zip",
+ "third_party/py/pytest-2.0.3.zip",
+ ],
+ dest = "build/python")
+
+py_test(
+ name = "test",
+ common_tests = [
+ "test/selenium/webdriver/common/*_tests.py",
+ "test/selenium/webdriver/support/*_tests.py"
+ ],
+ browsers = [
+ "chrome",
+ "ff",
+ "ie",
+ "phantomjs",
+ "remote_firefox",
+ "opera"
+ ])
diff --git a/chromium/third_party/webdriver/pylib/docs/Makefile b/chromium/third_party/webdriver/pylib/docs/Makefile
new file mode 100644
index 00000000000..2d483706c21
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/Makefile
@@ -0,0 +1,131 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+PAPER =
+BUILDDIR = build
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+HTML_DESTINATION = ../../docs/api/py
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " devhelp to make HTML files and a Devhelp project"
+ @echo " epub to make an epub"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " text to make text files"
+ @echo " man to make manual pages"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+ -rm -rf $(BUILDDIR)/*
+
+html: clean
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(HTML_DESTINATION)
+ @echo
+ @echo "Build finished. The HTML pages are in $(HTML_DESTINATION)."
+
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Selenium.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Selenium.qhc"
+
+devhelp:
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+ @echo "To view the help file:"
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/Selenium"
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Selenium"
+ @echo "# devhelp"
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ make -C $(BUILDDIR)/latex all-pdf
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/chromium/third_party/webdriver/pylib/docs/source/api.rst b/chromium/third_party/webdriver/pylib/docs/source/api.rst
new file mode 100644
index 00000000000..b41be5aa0bb
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/api.rst
@@ -0,0 +1,108 @@
+======================
+Selenium Documentation
+======================
+
+Selenium
+--------
+
+.. currentmodule:: selenium
+.. autosummary::
+ :toctree: selenium
+
+ selenium
+
+Common
+------
+
+.. currentmodule:: selenium.common
+.. autosummary::
+ :toctree: common
+
+ selenium.common.exceptions
+
+Webdriver.common
+----------------
+
+.. currentmodule:: selenium.webdriver.common
+.. autosummary::
+ :toctree: webdriver
+
+ selenium.webdriver.common.action_chains
+ selenium.webdriver.common.alert
+ selenium.webdriver.common.by
+ selenium.webdriver.common.desired_capabilities
+ selenium.webdriver.common.keys
+ selenium.webdriver.common.utils
+
+Webdriver.support
+-----------------
+
+.. currentmodule:: selenium.webdriver.support
+.. autosummary::
+ :toctree: webdriver_support
+
+ selenium.webdriver.support.expected_conditions
+ selenium.webdriver.support.select
+ selenium.webdriver.support.wait
+
+Webdriver.chrome
+----------------
+
+.. currentmodule:: selenium.webdriver.chrome
+.. autosummary::
+ :toctree: webdriver_chrome
+
+ selenium.webdriver.chrome.service
+ selenium.webdriver.chrome.webdriver
+
+Webdriver.firefox
+-----------------
+
+.. currentmodule:: selenium.webdriver.firefox
+.. autosummary::
+ :toctree: webdriver_firefox
+
+ selenium.webdriver.firefox.extension_connection
+ selenium.webdriver.firefox.firefox_binary
+ selenium.webdriver.firefox.firefox_profile
+ selenium.webdriver.firefox.webdriver
+
+Webdriver.ie
+------------
+
+.. currentmodule:: selenium.webdriver.ie
+.. autosummary::
+ :toctree: webdriver_ie
+
+ selenium.webdriver.ie.webdriver
+
+Webdriver.phantomjs
+-------------------
+
+.. currentmodule:: selenium.webdriver.phantomjs
+.. autosummary::
+ :toctree: webdriver_phantomjs
+
+ selenium.webdriver.phantomjs.service
+ selenium.webdriver.phantomjs.webdriver
+
+Webdriver.remote
+----------------
+
+.. currentmodule:: selenium.webdriver.remote
+.. autosummary::
+ :toctree: webdriver_remote
+
+ selenium.webdriver.remote.command
+ selenium.webdriver.remote.errorhandler
+ selenium.webdriver.remote.remote_connection
+ selenium.webdriver.remote.utils
+ selenium.webdriver.remote.webdriver
+ selenium.webdriver.remote.webelement
+
+Indices and tables
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
diff --git a/chromium/third_party/webdriver/pylib/docs/source/common/selenium.common.exceptions.rst b/chromium/third_party/webdriver/pylib/docs/source/common/selenium.common.exceptions.rst
new file mode 100644
index 00000000000..356d256c20b
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/common/selenium.common.exceptions.rst
@@ -0,0 +1,4 @@
+selenium.common.exceptions
+==========================
+
+.. automodule:: selenium.common.exceptions
diff --git a/chromium/third_party/webdriver/pylib/docs/source/conf.py b/chromium/third_party/webdriver/pylib/docs/source/conf.py
new file mode 100644
index 00000000000..1e52150965f
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/conf.py
@@ -0,0 +1,268 @@
+# -*- coding: utf-8 -*-
+#
+# Selenium documentation build configuration file, created by
+# sphinx-quickstart on Thu May 12 10:57:00 2011.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os, os.path
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+# sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.join(os.getcwd(), "..", ".."))
+
+# -- General configuration -----------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.doctest', 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.viewcode']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8-sig'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'Selenium'
+copyright = u'2011, plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '2.0'
+# The full version, including alpha/beta/rc tags.
+release = version
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+exclude_patterns = []
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+# A list of ignored prefixes for module index sorting.
+#modindex_common_prefix = []
+
+
+# -- Options for HTML output ---------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages. See the documentation for
+# a list of builtin themes.
+html_theme = 'default'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further. For a list of options available for each theme, see the
+# documentation.
+#html_theme_options = {}
+
+# Add any paths that contain custom themes here, relative to this directory.
+#html_theme_path = []
+
+# The name for this set of Sphinx documents. If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar. Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_domain_indices = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, links to the reST sources are added to the pages.
+html_show_sourcelink = True
+
+# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
+html_show_sphinx = False
+
+# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
+#html_show_copyright = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it. The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# This is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = None
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'Seleniumdoc'
+
+
+# -- Options for LaTeX output --------------------------------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, documentclass [howto/manual]).
+latex_documents = [
+ ('index', 'Selenium.tex', u'Selenium Documentation',
+ u'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# If true, show page references after internal links.
+#latex_show_pagerefs = False
+
+# If true, show URL addresses after external links.
+#latex_show_urls = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_domain_indices = True
+
+
+# -- Options for manual page output --------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+ ('index', 'selenium', u'Selenium Documentation',
+ [u'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'], 1)
+]
+
+
+# -- Options for Epub output ---------------------------------------------------
+
+# Bibliographic Dublin Core info.
+epub_title = u'Selenium'
+epub_author = u'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+epub_publisher = u'plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+epub_copyright = u'2011, plightbo, simon.m.stewart, hbchai, jrhuggins, et al.'
+
+# The language of the text. It defaults to the language option
+# or en if the language is not set.
+#epub_language = ''
+
+# The scheme of the identifier. Typical schemes are ISBN or URL.
+#epub_scheme = ''
+
+# The unique identifier of the text. This can be a ISBN number
+# or the project homepage.
+#epub_identifier = ''
+
+# A unique identification for the text.
+#epub_uid = ''
+
+# HTML files that should be inserted before the pages created by sphinx.
+# The format is a list of tuples containing the path and title.
+#epub_pre_files = []
+
+# HTML files shat should be inserted after the pages created by sphinx.
+# The format is a list of tuples containing the path and title.
+#epub_post_files = []
+
+# A list of files that should not be packed into the epub file.
+#epub_exclude_files = []
+
+# The depth of the table of contents in toc.ncx.
+#epub_tocdepth = 3
+
+# Allow duplicate toc entries.
+#epub_tocdup = True
+
+
+# Example configuration for intersphinx: refer to the Python standard library.
+intersphinx_mapping = {'http://docs.python.org/': None}
+
+# 'members' includes anything that has a docstring, 'undoc-members' includes
+# functions without docstrings.
+autodoc_default_flags = ['members', 'undoc-members']
+
+# Include __init__ comments
+autoclass_content = "both"
diff --git a/chromium/third_party/webdriver/pylib/docs/source/index.rst b/chromium/third_party/webdriver/pylib/docs/source/index.rst
new file mode 100644
index 00000000000..2aa55daf131
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/index.rst
@@ -0,0 +1,64 @@
+============
+Introduction
+============
+:Author: David Burns
+
+Selenium Python Client Driver is a Python language binding for Selenium Remote
+Control (version 1.0 and 2.0).
+
+Currently the remote protocol, Firefox and Chrome for Selenium 2.0 are
+supported, as well as the Selenium 1.0 bindings. As work will progresses we'll
+add more "native" drivers.
+
+See here_ for more information.
+
+.. _here: http://code.google.com/p/selenium/
+
+Installing
+==========
+
+Python Client
+-------------
+::
+
+ pip install -U selenium
+
+Java Server
+-----------
+
+Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.28.0.jar
+::
+
+ java -jar selenium-server-standalone-2.28.0.jar
+
+Example
+=======
+::
+
+ from selenium import webdriver
+ from selenium.common.exceptions import NoSuchElementException
+ from selenium.webdriver.common.keys import Keys
+ import time
+
+ browser = webdriver.Firefox() # Get local session of firefox
+ browser.get("http://www.yahoo.com") # Load page
+ assert "Yahoo!" in browser.title
+ elem = browser.find_element_by_name("p") # Find the query box
+ elem.send_keys("seleniumhq" + Keys.RETURN)
+ time.sleep(0.2) # Let the page load, will be added to the API
+ try:
+ browser.find_element_by_xpath("//a[contains(@href,'http://seleniumhq.org')]")
+ except NoSuchElementException:
+ assert 0, "can't find seleniumhq"
+ browser.close()
+
+Documentation
+=============
+
+.. toctree::
+
+ Auto Generated API <api>
+
+Use The Source Luke!
+====================
+http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
diff --git a/chromium/third_party/webdriver/pylib/docs/source/selenium/selenium.selenium.rst b/chromium/third_party/webdriver/pylib/docs/source/selenium/selenium.selenium.rst
new file mode 100644
index 00000000000..25e8f9ae1de
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/selenium/selenium.selenium.rst
@@ -0,0 +1,4 @@
+selenium.selenium
+=================
+
+.. automodule:: selenium.selenium
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.action_chains.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.action_chains.rst
new file mode 100644
index 00000000000..07fff7b0559
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.action_chains.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.action_chains
+=======================================
+
+.. automodule:: selenium.webdriver.common.action_chains
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.alert.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.alert.rst
new file mode 100644
index 00000000000..ac884381095
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.alert.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.alert
+===============================
+
+.. automodule:: selenium.webdriver.common.alert
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.by.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.by.rst
new file mode 100644
index 00000000000..cdf69417e83
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.by.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.by
+============================
+
+.. automodule:: selenium.webdriver.common.by
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst
new file mode 100644
index 00000000000..30fdf17ceba
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.desired_capabilities.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.desired_capabilities
+==============================================
+
+.. automodule:: selenium.webdriver.common.desired_capabilities
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.keys.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.keys.rst
new file mode 100644
index 00000000000..1704a17c5de
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.keys.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.keys
+==============================
+
+.. automodule:: selenium.webdriver.common.keys
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.utils.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.utils.rst
new file mode 100644
index 00000000000..f30250a6455
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver/selenium.webdriver.common.utils.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.common.utils
+===============================
+
+.. automodule:: selenium.webdriver.common.utils
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst
new file mode 100644
index 00000000000..ffe8b20f10e
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.chrome.service
+=================================
+
+.. automodule:: selenium.webdriver.chrome.service
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst
new file mode 100644
index 00000000000..7f542536af5
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_chrome/selenium.webdriver.chrome.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.chrome.webdriver
+===================================
+
+.. automodule:: selenium.webdriver.chrome.webdriver
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst
new file mode 100644
index 00000000000..413badacb52
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.extension_connection.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.extension_connection
+===============================================
+
+.. automodule:: selenium.webdriver.firefox.extension_connection
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst
new file mode 100644
index 00000000000..e0b04b185e9
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_binary.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.firefox_binary
+=========================================
+
+.. automodule:: selenium.webdriver.firefox.firefox_binary
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst
new file mode 100644
index 00000000000..78ba9499d3a
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.firefox_profile.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.firefox_profile
+==========================================
+
+.. automodule:: selenium.webdriver.firefox.firefox_profile
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst
new file mode 100644
index 00000000000..e9bfe53e9dd
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_firefox/selenium.webdriver.firefox.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.firefox.webdriver
+====================================
+
+.. automodule:: selenium.webdriver.firefox.webdriver
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst
new file mode 100644
index 00000000000..3623813c356
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_ie/selenium.webdriver.ie.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.ie.webdriver
+===============================
+
+.. automodule:: selenium.webdriver.ie.webdriver
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst
new file mode 100644
index 00000000000..8d6e5ff7328
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.service.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.phantomjs.service
+====================================
+
+.. automodule:: selenium.webdriver.phantomjs.service
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst
new file mode 100644
index 00000000000..5b3ab482f6f
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_phantomjs/selenium.webdriver.phantomjs.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.phantomjs.webdriver
+======================================
+
+.. automodule:: selenium.webdriver.phantomjs.webdriver
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst
new file mode 100644
index 00000000000..ff977b74576
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.command.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.command
+=================================
+
+.. automodule:: selenium.webdriver.remote.command
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst
new file mode 100644
index 00000000000..50028874a40
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.errorhandler.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.errorhandler
+======================================
+
+.. automodule:: selenium.webdriver.remote.errorhandler
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst
new file mode 100644
index 00000000000..88d13894762
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.remote_connection.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.remote_connection
+===========================================
+
+.. automodule:: selenium.webdriver.remote.remote_connection
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst
new file mode 100644
index 00000000000..e035f43a5b6
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.utils.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.utils
+===============================
+
+.. automodule:: selenium.webdriver.remote.utils
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst
new file mode 100644
index 00000000000..b390c196cca
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webdriver.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.webdriver
+===================================
+
+.. automodule:: selenium.webdriver.remote.webdriver
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst
new file mode 100644
index 00000000000..7b6ab4de8f1
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_remote/selenium.webdriver.remote.webelement.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.remote.webelement
+====================================
+
+.. automodule:: selenium.webdriver.remote.webelement
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst
new file mode 100644
index 00000000000..46417a9b1af
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.expected_conditions.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.expected_conditions
+==============================================
+
+.. automodule:: selenium.webdriver.support.expected_conditions
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.select.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.select.rst
new file mode 100644
index 00000000000..02b0eb0b37b
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.select.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.select
+=================================
+
+.. automodule:: selenium.webdriver.support.select
diff --git a/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.wait.rst b/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.wait.rst
new file mode 100644
index 00000000000..f42089be80c
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/docs/source/webdriver_support/selenium.webdriver.support.wait.rst
@@ -0,0 +1,4 @@
+selenium.webdriver.support.wait
+===============================
+
+.. automodule:: selenium.webdriver.support.wait
diff --git a/chromium/third_party/webdriver/pylib/selenium/__init__.py b/chromium/third_party/webdriver/pylib/selenium/__init__.py
new file mode 100644
index 00000000000..55d62ee27e7
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/__init__.py
@@ -0,0 +1,19 @@
+# Copyright 2008-2010 WebDriver committers
+# Copyright 2008-2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from selenium import selenium
+
+
+__version__ = "2.28.0"
diff --git a/chromium/third_party/webdriver/pylib/selenium/common/__init__.py b/chromium/third_party/webdriver/pylib/selenium/common/__init__.py
new file mode 100644
index 00000000000..af960273057
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/common/__init__.py
@@ -0,0 +1,16 @@
+# Copyright 2008-2010 WebDriver committers
+# Copyright 2008-2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import exceptions \ No newline at end of file
diff --git a/chromium/third_party/webdriver/pylib/selenium/common/exceptions.py b/chromium/third_party/webdriver/pylib/selenium/common/exceptions.py
new file mode 100644
index 00000000000..61a0740cc42
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/common/exceptions.py
@@ -0,0 +1,122 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Exceptions that may happen in all the webdriver code."""
+class WebDriverException(Exception):
+ def __init__(self, msg=None, screen=None, stacktrace=None):
+ self.msg = msg
+ self.screen = screen
+ self.stacktrace = stacktrace
+
+ def __str__(self):
+ exception_msg = "Message: %s " % repr(self.msg)
+ if self.screen is not None:
+ exception_msg = "%s; Screenshot: available via screen " \
+ % exception_msg
+ if self.stacktrace is not None:
+ exception_msg = "%s; Stacktrace: %s " \
+ % (exception_msg, str(self.stacktrace))
+ return exception_msg
+
+class ErrorInResponseException(WebDriverException):
+ """An error has occurred on the server side.
+
+ This may happen when communicating with the firefox extension
+ or the remote driver server."""
+ def __init__(self, response, msg):
+ WebDriverException.__init__(self, msg)
+ self.response = response
+
+class InvalidSwitchToTargetException(WebDriverException):
+ """The frame or window target to be switched doesn't exist."""
+ pass
+
+class NoSuchFrameException(InvalidSwitchToTargetException):
+ pass
+
+class NoSuchWindowException(InvalidSwitchToTargetException):
+ pass
+
+class NoSuchElementException(WebDriverException):
+ """find_element_by_* can't find the element."""
+ pass
+
+class NoSuchAttributeException(WebDriverException):
+ """find_element_by_* can't find the element."""
+ pass
+
+class StaleElementReferenceException(WebDriverException):
+ """Indicates that a reference to an element is now "stale" --- the
+ element no longer appears on the DOM of the page."""
+ pass
+
+class InvalidElementStateException(WebDriverException):
+ pass
+
+class NoAlertPresentException(WebDriverException):
+ pass
+
+class ElementNotVisibleException(InvalidElementStateException):
+ """Thrown to indicate that although an element is present on the
+ DOM, it is not visible, and so is not able to be interacted
+ with."""
+ pass
+
+class ElementNotSelectableException(InvalidElementStateException):
+ pass
+
+class InvalidCookieDomainException(WebDriverException):
+ """Thrown when attempting to add a cookie under a different domain
+ than the current URL."""
+ pass
+
+class UnableToSetCookieException(WebDriverException):
+ """Thrown when a driver fails to set a cookie."""
+ pass
+
+class RemoteDriverServerException(WebDriverException):
+ pass
+
+class TimeoutException(WebDriverException):
+ """Thrown when a command does not complete in enough time."""
+ pass
+
+class MoveTargetOutOfBoundsException(WebDriverException):
+ """Indicates that the target provided to the actions move() method is invalid"""
+ pass
+
+class UnexpectedTagNameException(WebDriverException):
+ """Thrown when a support class did not get an expected web element"""
+ pass
+
+class InvalidSelectorException(NoSuchElementException):
+ """ Thrown when the selector which is used to find an element does not return
+ a WebElement. Currently this only happens when the selector is an xpath
+ expression is used which is either syntactically invalid (i.e. it is not a
+ xpath expression) or the expression does not select WebElements
+ (e.g. "count(//input)").
+ """
+ pass
+
+class ImeNotAvailableException(WebDriverException):
+ """
+ Indicates that IME support is not available. This exception is thrown for every IME-related
+ method call if IME support is not available on the machine.
+ """
+ pass
+
+class ImeActivationFailedException(WebDriverException):
+ """ Indicates that activating an IME engine has failed. """
+ pass
diff --git a/chromium/third_party/webdriver/pylib/selenium/selenium.py b/chromium/third_party/webdriver/pylib/selenium/selenium.py
new file mode 100644
index 00000000000..9b12a036d48
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/selenium.py
@@ -0,0 +1,2111 @@
+
+"""
+Copyright 2011 Software Freedom Conservancy.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+__docformat__ = "restructuredtext en"
+
+import httplib
+import urllib
+
+class selenium(object):
+ """
+ Defines an object that runs Selenium commands.
+
+ **Element Locators**
+
+ Element Locators tell Selenium which HTML element a command refers to.
+ The format of a locator is:
+
+ \ *locatorType*\ **=**\ \ *argument*
+
+
+ We support the following strategies for locating elements:
+
+
+ * \ **identifier**\ =\ *id*:
+ Select the element with the specified @id attribute. If no match is
+ found, select the first element whose @name attribute is \ *id*.
+ (This is normally the default; see below.)
+ * \ **id**\ =\ *id*:
+ Select the element with the specified @id attribute.
+ * \ **name**\ =\ *name*:
+ Select the first element with the specified @name attribute.
+
+ * username
+ * name=username
+
+
+ The name may optionally be followed by one or more \ *element-filters*, separated from the name by whitespace. If the \ *filterType* is not specified, \ **value**\ is assumed.
+
+ * name=flavour value=chocolate
+
+
+ * \ **dom**\ =\ *javascriptExpression*:
+
+ Find an element by evaluating the specified string. This allows you to traverse the HTML Document Object
+ Model using JavaScript. Note that you must not return a value in this string; simply make it the last expression in the block.
+
+ * dom=document.forms['myForm'].myDropdown
+ * dom=document.images[56]
+ * dom=function foo() { return document.links[1]; }; foo();
+
+
+ * \ **xpath**\ =\ *xpathExpression*:
+ Locate an element using an XPath expression.
+
+ * xpath=//img[@alt='The image alt text']
+ * xpath=//table[@id='table1']//tr[4]/td[2]
+ * xpath=//a[contains(@href,'#id1')]
+ * xpath=//a[contains(@href,'#id1')]/@class
+ * xpath=(//table[@class='stylee'])//th[text()='theHeaderText']/../td
+ * xpath=//input[@name='name2' and @value='yes']
+ * xpath=//\*[text()="right"]
+
+
+ * \ **link**\ =\ *textPattern*:
+ Select the link (anchor) element which contains text matching the
+ specified \ *pattern*.
+
+ * link=The link text
+
+
+ * \ **css**\ =\ *cssSelectorSyntax*:
+ Select the element using css selectors. Please refer to CSS2 selectors, CSS3 selectors for more information. You can also check the TestCssLocators test in the selenium test suite for an example of usage, which is included in the downloaded selenium core package.
+
+ * css=a[href="#id3"]
+ * css=span#firstChild + span
+
+
+ Currently the css selector locator supports all css1, css2 and css3 selectors except namespace in css3, some pseudo classes(:nth-of-type, :nth-last-of-type, :first-of-type, :last-of-type, :only-of-type, :visited, :hover, :active, :focus, :indeterminate) and pseudo elements(::first-line, ::first-letter, ::selection, ::before, ::after).
+
+ * \ **ui**\ =\ *uiSpecifierString*:
+ Locate an element by resolving the UI specifier string to another locator, and evaluating it. See the Selenium UI-Element Reference for more details.
+
+ * ui=loginPages::loginButton()
+ * ui=settingsPages::toggle(label=Hide Email)
+ * ui=forumPages::postBody(index=2)//a[2]
+
+
+
+
+
+ Without an explicit locator prefix, Selenium uses the following default
+ strategies:
+
+
+ * \ **dom**\ , for locators starting with "document."
+ * \ **xpath**\ , for locators starting with "//"
+ * \ **identifier**\ , otherwise
+
+ **Element Filters**
+
+ Element filters can be used with a locator to refine a list of candidate elements. They are currently used only in the 'name' element-locator.
+
+ Filters look much like locators, ie.
+
+ \ *filterType*\ **=**\ \ *argument*
+
+ Supported element-filters are:
+
+ \ **value=**\ \ *valuePattern*
+
+
+ Matches elements based on their values. This is particularly useful for refining a list of similarly-named toggle-buttons.
+
+ \ **index=**\ \ *index*
+
+
+ Selects a single element based on its position in the list (offset from zero).
+
+ **String-match Patterns**
+
+ Various Pattern syntaxes are available for matching string values:
+
+
+ * \ **glob:**\ \ *pattern*:
+ Match a string against a "glob" (aka "wildmat") pattern. "Glob" is a
+ kind of limited regular-expression syntax typically used in command-line
+ shells. In a glob pattern, "\*" represents any sequence of characters, and "?"
+ represents any single character. Glob patterns match against the entire
+ string.
+ * \ **regexp:**\ \ *regexp*:
+ Match a string using a regular-expression. The full power of JavaScript
+ regular-expressions is available.
+ * \ **regexpi:**\ \ *regexpi*:
+ Match a string using a case-insensitive regular-expression.
+ * \ **exact:**\ \ *string*:
+
+ Match a string exactly, verbatim, without any of that fancy wildcard
+ stuff.
+
+
+
+ If no pattern prefix is specified, Selenium assumes that it's a "glob"
+ pattern.
+
+
+
+ For commands that return multiple values (such as verifySelectOptions),
+ the string being matched is a comma-separated list of the return values,
+ where both commas and backslashes in the values are backslash-escaped.
+ When providing a pattern, the optional matching syntax (i.e. glob,
+ regexp, etc.) is specified once, as usual, at the beginning of the
+ pattern.
+
+
+ """
+
+ ### This part is hard-coded in the XSL
+ def __init__(self, host, port, browserStartCommand, browserURL):
+ self.host = host
+ self.port = port
+ self.browserStartCommand = browserStartCommand
+ self.browserURL = browserURL
+ self.sessionId = None
+ self.extensionJs = ""
+
+ def setExtensionJs(self, extensionJs):
+ self.extensionJs = extensionJs
+
+ def start(self, browserConfigurationOptions=None, driver=None):
+ start_args = [self.browserStartCommand, self.browserURL, self.extensionJs]
+ if browserConfigurationOptions:
+ start_args.append(browserConfigurationOptions)
+ if driver:
+ id = driver.desired_capabilities['webdriver.remote.sessionid']
+ start_args.append('webdriver.remote.sessionid=%s' % id)
+ result = self.get_string("getNewBrowserSession", start_args)
+ try:
+ self.sessionId = result
+ except ValueError:
+ raise Exception, result
+
+ def stop(self):
+ self.do_command("testComplete", [])
+ self.sessionId = None
+
+ def do_command(self, verb, args):
+ conn = httplib.HTTPConnection(self.host, self.port)
+ try:
+ body = u'cmd=' + urllib.quote_plus(unicode(verb).encode('utf-8'))
+ for i in range(len(args)):
+ body += '&' + unicode(i+1) + '=' + \
+ urllib.quote_plus(unicode(args[i]).encode('utf-8'))
+ if (None != self.sessionId):
+ body += "&sessionId=" + unicode(self.sessionId)
+ headers = {
+ "Content-Type":
+ "application/x-www-form-urlencoded; charset=utf-8"
+ }
+ conn.request("POST", "/selenium-server/driver/", body, headers)
+
+ response = conn.getresponse()
+ data = unicode(response.read(), "UTF-8")
+ if (not data.startswith('OK')):
+ raise Exception, data
+ return data
+ finally:
+ conn.close()
+
+ def get_string(self, verb, args):
+ result = self.do_command(verb, args)
+ return result[3:]
+
+ def get_string_array(self, verb, args):
+ csv = self.get_string(verb, args)
+ if not csv:
+ return []
+ token = ""
+ tokens = []
+ escape = False
+ for i in range(len(csv)):
+ letter = csv[i]
+ if (escape):
+ token = token + letter
+ escape = False
+ continue
+ if (letter == '\\'):
+ escape = True
+ elif (letter == ','):
+ tokens.append(token)
+ token = ""
+ else:
+ token = token + letter
+ tokens.append(token)
+ return tokens
+
+ def get_number(self, verb, args):
+ return int(self.get_string(verb, args))
+
+ def get_number_array(self, verb, args):
+ string_array = self.get_string_array(verb, args)
+ num_array = []
+ for i in string_array:
+ num_array.append(int(i))
+
+ return num_array
+
+ def get_boolean(self, verb, args):
+ boolstr = self.get_string(verb, args)
+ if ("true" == boolstr):
+ return True
+ if ("false" == boolstr):
+ return False
+ raise ValueError, "result is neither 'true' nor 'false': " + boolstr
+
+ def get_boolean_array(self, verb, args):
+ boolarr = self.get_string_array(verb, args)
+ for i, boolstr in enumerate(boolarr):
+ if ("true" == boolstr):
+ boolarr[i] = True
+ continue
+ if ("false" == boolstr):
+ boolarr[i] = False
+ continue
+ raise ValueError, "result is neither 'true' nor 'false': " + boolarr[i]
+ return boolarr
+
+
+
+ def click(self,locator):
+ """
+ Clicks on a link, button, checkbox or radio button. If the click action
+ causes a new page to load (like a link usually does), call
+ waitForPageToLoad.
+
+ 'locator' is an element locator
+ """
+ self.do_command("click", [locator,])
+
+
+ def double_click(self,locator):
+ """
+ Double clicks on a link, button, checkbox or radio button. If the double click action
+ causes a new page to load (like a link usually does), call
+ waitForPageToLoad.
+
+ 'locator' is an element locator
+ """
+ self.do_command("doubleClick", [locator,])
+
+
+ def context_menu(self,locator):
+ """
+ Simulates opening the context menu for the specified element (as might happen if the user "right-clicked" on the element).
+
+ 'locator' is an element locator
+ """
+ self.do_command("contextMenu", [locator,])
+
+
+ def click_at(self,locator,coordString):
+ """
+ Clicks on a link, button, checkbox or radio button. If the click action
+ causes a new page to load (like a link usually does), call
+ waitForPageToLoad.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("clickAt", [locator,coordString,])
+
+
+ def double_click_at(self,locator,coordString):
+ """
+ Doubleclicks on a link, button, checkbox or radio button. If the action
+ causes a new page to load (like a link usually does), call
+ waitForPageToLoad.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("doubleClickAt", [locator,coordString,])
+
+
+ def context_menu_at(self,locator,coordString):
+ """
+ Simulates opening the context menu for the specified element (as might happen if the user "right-clicked" on the element).
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("contextMenuAt", [locator,coordString,])
+
+
+ def fire_event(self,locator,eventName):
+ """
+ Explicitly simulate an event, to trigger the corresponding "on\ *event*"
+ handler.
+
+ 'locator' is an element locator
+ 'eventName' is the event name, e.g. "focus" or "blur"
+ """
+ self.do_command("fireEvent", [locator,eventName,])
+
+
+ def focus(self,locator):
+ """
+ Move the focus to the specified element; for example, if the element is an input field, move the cursor to that field.
+
+ 'locator' is an element locator
+ """
+ self.do_command("focus", [locator,])
+
+
+ def key_press(self,locator,keySequence):
+ """
+ Simulates a user pressing and releasing a key.
+
+ 'locator' is an element locator
+ 'keySequence' is Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
+ """
+ self.do_command("keyPress", [locator,keySequence,])
+
+
+ def shift_key_down(self):
+ """
+ Press the shift key and hold it down until doShiftUp() is called or a new page is loaded.
+
+ """
+ self.do_command("shiftKeyDown", [])
+
+
+ def shift_key_up(self):
+ """
+ Release the shift key.
+
+ """
+ self.do_command("shiftKeyUp", [])
+
+
+ def meta_key_down(self):
+ """
+ Press the meta key and hold it down until doMetaUp() is called or a new page is loaded.
+
+ """
+ self.do_command("metaKeyDown", [])
+
+
+ def meta_key_up(self):
+ """
+ Release the meta key.
+
+ """
+ self.do_command("metaKeyUp", [])
+
+
+ def alt_key_down(self):
+ """
+ Press the alt key and hold it down until doAltUp() is called or a new page is loaded.
+
+ """
+ self.do_command("altKeyDown", [])
+
+
+ def alt_key_up(self):
+ """
+ Release the alt key.
+
+ """
+ self.do_command("altKeyUp", [])
+
+
+ def control_key_down(self):
+ """
+ Press the control key and hold it down until doControlUp() is called or a new page is loaded.
+
+ """
+ self.do_command("controlKeyDown", [])
+
+
+ def control_key_up(self):
+ """
+ Release the control key.
+
+ """
+ self.do_command("controlKeyUp", [])
+
+
+ def key_down(self,locator,keySequence):
+ """
+ Simulates a user pressing a key (without releasing it yet).
+
+ 'locator' is an element locator
+ 'keySequence' is Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
+ """
+ self.do_command("keyDown", [locator,keySequence,])
+
+
+ def key_up(self,locator,keySequence):
+ """
+ Simulates a user releasing a key.
+
+ 'locator' is an element locator
+ 'keySequence' is Either be a string("\" followed by the numeric keycode of the key to be pressed, normally the ASCII value of that key), or a single character. For example: "w", "\119".
+ """
+ self.do_command("keyUp", [locator,keySequence,])
+
+
+ def mouse_over(self,locator):
+ """
+ Simulates a user hovering a mouse over the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseOver", [locator,])
+
+
+ def mouse_out(self,locator):
+ """
+ Simulates a user moving the mouse pointer away from the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseOut", [locator,])
+
+
+ def mouse_down(self,locator):
+ """
+ Simulates a user pressing the left mouse button (without releasing it yet) on
+ the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseDown", [locator,])
+
+
+ def mouse_down_right(self,locator):
+ """
+ Simulates a user pressing the right mouse button (without releasing it yet) on
+ the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseDownRight", [locator,])
+
+
+ def mouse_down_at(self,locator,coordString):
+ """
+ Simulates a user pressing the left mouse button (without releasing it yet) at
+ the specified location.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("mouseDownAt", [locator,coordString,])
+
+
+ def mouse_down_right_at(self,locator,coordString):
+ """
+ Simulates a user pressing the right mouse button (without releasing it yet) at
+ the specified location.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("mouseDownRightAt", [locator,coordString,])
+
+
+ def mouse_up(self,locator):
+ """
+ Simulates the event that occurs when the user releases the mouse button (i.e., stops
+ holding the button down) on the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseUp", [locator,])
+
+
+ def mouse_up_right(self,locator):
+ """
+ Simulates the event that occurs when the user releases the right mouse button (i.e., stops
+ holding the button down) on the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseUpRight", [locator,])
+
+
+ def mouse_up_at(self,locator,coordString):
+ """
+ Simulates the event that occurs when the user releases the mouse button (i.e., stops
+ holding the button down) at the specified location.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("mouseUpAt", [locator,coordString,])
+
+
+ def mouse_up_right_at(self,locator,coordString):
+ """
+ Simulates the event that occurs when the user releases the right mouse button (i.e., stops
+ holding the button down) at the specified location.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("mouseUpRightAt", [locator,coordString,])
+
+
+ def mouse_move(self,locator):
+ """
+ Simulates a user pressing the mouse button (without releasing it yet) on
+ the specified element.
+
+ 'locator' is an element locator
+ """
+ self.do_command("mouseMove", [locator,])
+
+
+ def mouse_move_at(self,locator,coordString):
+ """
+ Simulates a user pressing the mouse button (without releasing it yet) on
+ the specified element.
+
+ 'locator' is an element locator
+ 'coordString' is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
+ """
+ self.do_command("mouseMoveAt", [locator,coordString,])
+
+
+ def type(self,locator,value):
+ """
+ Sets the value of an input field, as though you typed it in.
+
+
+ Can also be used to set the value of combo boxes, check boxes, etc. In these cases,
+ value should be the value of the option selected, not the visible text.
+
+
+ 'locator' is an element locator
+ 'value' is the value to type
+ """
+ self.do_command("type", [locator,value,])
+
+
+ def type_keys(self,locator,value):
+ """
+ Simulates keystroke events on the specified element, as though you typed the value key-by-key.
+
+
+ This is a convenience method for calling keyDown, keyUp, keyPress for every character in the specified string;
+ this is useful for dynamic UI widgets (like auto-completing combo boxes) that require explicit key events.
+
+ Unlike the simple "type" command, which forces the specified value into the page directly, this command
+ may or may not have any visible effect, even in cases where typing keys would normally have a visible effect.
+ For example, if you use "typeKeys" on a form element, you may or may not see the results of what you typed in
+ the field.
+
+ In some cases, you may need to use the simple "type" command to set the value of the field and then the "typeKeys" command to
+ send the keystroke events corresponding to what you just typed.
+
+
+ 'locator' is an element locator
+ 'value' is the value to type
+ """
+ self.do_command("typeKeys", [locator,value,])
+
+
+ def set_speed(self,value):
+ """
+ Set execution speed (i.e., set the millisecond length of a delay which will follow each selenium operation). By default, there is no such delay, i.e.,
+ the delay is 0 milliseconds.
+
+ 'value' is the number of milliseconds to pause after operation
+ """
+ self.do_command("setSpeed", [value,])
+
+
+ def get_speed(self):
+ """
+ Get execution speed (i.e., get the millisecond length of the delay following each selenium operation). By default, there is no such delay, i.e.,
+ the delay is 0 milliseconds.
+
+ See also setSpeed.
+
+ """
+ return self.get_string("getSpeed", [])
+
+ def get_log(self):
+ """
+ Get RC logs associated with current session.
+
+ """
+ return self.get_string("getLog", [])
+
+
+ def check(self,locator):
+ """
+ Check a toggle-button (checkbox/radio)
+
+ 'locator' is an element locator
+ """
+ self.do_command("check", [locator,])
+
+
+ def uncheck(self,locator):
+ """
+ Uncheck a toggle-button (checkbox/radio)
+
+ 'locator' is an element locator
+ """
+ self.do_command("uncheck", [locator,])
+
+
+ def select(self,selectLocator,optionLocator):
+ """
+ Select an option from a drop-down using an option locator.
+
+
+
+ Option locators provide different ways of specifying options of an HTML
+ Select element (e.g. for selecting a specific option, or for asserting
+ that the selected option satisfies a specification). There are several
+ forms of Select Option Locator.
+
+
+ * \ **label**\ =\ *labelPattern*:
+ matches options based on their labels, i.e. the visible text. (This
+ is the default.)
+
+ * label=regexp:^[Oo]ther
+
+
+ * \ **value**\ =\ *valuePattern*:
+ matches options based on their values.
+
+ * value=other
+
+
+ * \ **id**\ =\ *id*:
+
+ matches options based on their ids.
+
+ * id=option1
+
+
+ * \ **index**\ =\ *index*:
+ matches an option based on its index (offset from zero).
+
+ * index=2
+
+
+
+
+
+ If no option locator prefix is provided, the default behaviour is to match on \ **label**\ .
+
+
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ 'optionLocator' is an option locator (a label by default)
+ """
+ self.do_command("select", [selectLocator,optionLocator,])
+
+
+ def add_selection(self,locator,optionLocator):
+ """
+ Add a selection to the set of selected options in a multi-select element using an option locator.
+
+ @see #doSelect for details of option locators
+
+ 'locator' is an element locator identifying a multi-select box
+ 'optionLocator' is an option locator (a label by default)
+ """
+ self.do_command("addSelection", [locator,optionLocator,])
+
+
+ def remove_selection(self,locator,optionLocator):
+ """
+ Remove a selection from the set of selected options in a multi-select element using an option locator.
+
+ @see #doSelect for details of option locators
+
+ 'locator' is an element locator identifying a multi-select box
+ 'optionLocator' is an option locator (a label by default)
+ """
+ self.do_command("removeSelection", [locator,optionLocator,])
+
+
+ def remove_all_selections(self,locator):
+ """
+ Unselects all of the selected options in a multi-select element.
+
+ 'locator' is an element locator identifying a multi-select box
+ """
+ self.do_command("removeAllSelections", [locator,])
+
+
+ def submit(self,formLocator):
+ """
+ Submit the specified form. This is particularly useful for forms without
+ submit buttons, e.g. single-input "Search" forms.
+
+ 'formLocator' is an element locator for the form you want to submit
+ """
+ self.do_command("submit", [formLocator,])
+
+ def open(self,url,ignoreResponseCode=True):
+ """
+ Opens an URL in the test frame. This accepts both relative and absolute
+ URLs.
+
+ The "open" command waits for the page to load before proceeding,
+ ie. the "AndWait" suffix is implicit.
+
+ \ *Note*: The URL must be on the same domain as the runner HTML
+ due to security restrictions in the browser (Same Origin Policy). If you
+ need to open an URL on another domain, use the Selenium Server to start a
+ new browser session on that domain.
+
+ 'url' is the URL to open; may be relative or absolute
+ 'ignoreResponseCode' if set to true: doesnt send ajax HEAD/GET request; if set to false: sends ajax HEAD/GET request to the url and reports error code if any as response to open.
+ """
+ self.do_command("open", [url,ignoreResponseCode])
+
+
+ def open_window(self,url,windowID):
+ """
+ Opens a popup window (if a window with that ID isn't already open).
+ After opening the window, you'll need to select it using the selectWindow
+ command.
+
+
+ This command can also be a useful workaround for bug SEL-339. In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example).
+ In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using
+ an empty (blank) url, like this: openWindow("", "myFunnyWindow").
+
+
+ 'url' is the URL to open, which can be blank
+ 'windowID' is the JavaScript window ID of the window to select
+ """
+ self.do_command("openWindow", [url,windowID,])
+
+
+ def select_window(self,windowID):
+ """
+ Selects a popup window using a window locator; once a popup window has been selected, all
+ commands go to that window. To select the main window again, use null
+ as the target.
+
+
+
+
+ Window locators provide different ways of specifying the window object:
+ by title, by internal JavaScript "name," or by JavaScript variable.
+
+
+ * \ **title**\ =\ *My Special Window*:
+ Finds the window using the text that appears in the title bar. Be careful;
+ two windows can share the same title. If that happens, this locator will
+ just pick one.
+
+ * \ **name**\ =\ *myWindow*:
+ Finds the window using its internal JavaScript "name" property. This is the second
+ parameter "windowName" passed to the JavaScript method window.open(url, windowName, windowFeatures, replaceFlag)
+ (which Selenium intercepts).
+
+ * \ **var**\ =\ *variableName*:
+ Some pop-up windows are unnamed (anonymous), but are associated with a JavaScript variable name in the current
+ application window, e.g. "window.foo = window.open(url);". In those cases, you can open the window using
+ "var=foo".
+
+
+
+
+ If no window locator prefix is provided, we'll try to guess what you mean like this:
+
+ 1.) if windowID is null, (or the string "null") then it is assumed the user is referring to the original window instantiated by the browser).
+
+ 2.) if the value of the "windowID" parameter is a JavaScript variable name in the current application window, then it is assumed
+ that this variable contains the return value from a call to the JavaScript window.open() method.
+
+ 3.) Otherwise, selenium looks in a hash it maintains that maps string names to window "names".
+
+ 4.) If \ *that* fails, we'll try looping over all of the known windows to try to find the appropriate "title".
+ Since "title" is not necessarily unique, this may have unexpected behavior.
+
+ If you're having trouble figuring out the name of a window that you want to manipulate, look at the Selenium log messages
+ which identify the names of windows created via window.open (and therefore intercepted by Selenium). You will see messages
+ like the following for each window as it is opened:
+
+ ``debug: window.open call intercepted; window ID (which you can use with selectWindow()) is "myNewWindow"``
+
+ In some cases, Selenium will be unable to intercept a call to window.open (if the call occurs during or before the "onLoad" event, for example).
+ (This is bug SEL-339.) In those cases, you can force Selenium to notice the open window's name by using the Selenium openWindow command, using
+ an empty (blank) url, like this: openWindow("", "myFunnyWindow").
+
+
+ 'windowID' is the JavaScript window ID of the window to select
+ """
+ self.do_command("selectWindow", [windowID,])
+
+
+ def select_pop_up(self,windowID):
+ """
+ Simplifies the process of selecting a popup window (and does not offer
+ functionality beyond what ``selectWindow()`` already provides).
+
+ * If ``windowID`` is either not specified, or specified as
+ "null", the first non-top window is selected. The top window is the one
+ that would be selected by ``selectWindow()`` without providing a
+ ``windowID`` . This should not be used when more than one popup
+ window is in play.
+ * Otherwise, the window will be looked up considering
+ ``windowID`` as the following in order: 1) the "name" of the
+ window, as specified to ``window.open()``; 2) a javascript
+ variable which is a reference to a window; and 3) the title of the
+ window. This is the same ordered lookup performed by
+ ``selectWindow`` .
+
+
+
+ 'windowID' is an identifier for the popup window, which can take on a number of different meanings
+ """
+ self.do_command("selectPopUp", [windowID,])
+
+
+ def deselect_pop_up(self):
+ """
+ Selects the main window. Functionally equivalent to using
+ ``selectWindow()`` and specifying no value for
+ ``windowID``.
+
+ """
+ self.do_command("deselectPopUp", [])
+
+
+ def select_frame(self,locator):
+ """
+ Selects a frame within the current window. (You may invoke this command
+ multiple times to select nested frames.) To select the parent frame, use
+ "relative=parent" as a locator; to select the top frame, use "relative=top".
+ You can also select a frame by its 0-based index number; select the first frame with
+ "index=0", or the third frame with "index=2".
+
+
+ You may also use a DOM expression to identify the frame you want directly,
+ like this: ``dom=frames["main"].frames["subframe"]``
+
+
+ 'locator' is an element locator identifying a frame or iframe
+ """
+ self.do_command("selectFrame", [locator,])
+
+
+ def get_whether_this_frame_match_frame_expression(self,currentFrameString,target):
+ """
+ Determine whether current/locator identify the frame containing this running code.
+
+
+ This is useful in proxy injection mode, where this code runs in every
+ browser frame and window, and sometimes the selenium server needs to identify
+ the "current" frame. In this case, when the test calls selectFrame, this
+ routine is called for each frame to figure out which one has been selected.
+ The selected frame will return true, while all others will return false.
+
+
+ 'currentFrameString' is starting frame
+ 'target' is new frame (which might be relative to the current one)
+ """
+ return self.get_boolean("getWhetherThisFrameMatchFrameExpression", [currentFrameString,target,])
+
+
+ def get_whether_this_window_match_window_expression(self,currentWindowString,target):
+ """
+ Determine whether currentWindowString plus target identify the window containing this running code.
+
+
+ This is useful in proxy injection mode, where this code runs in every
+ browser frame and window, and sometimes the selenium server needs to identify
+ the "current" window. In this case, when the test calls selectWindow, this
+ routine is called for each window to figure out which one has been selected.
+ The selected window will return true, while all others will return false.
+
+
+ 'currentWindowString' is starting window
+ 'target' is new window (which might be relative to the current one, e.g., "_parent")
+ """
+ return self.get_boolean("getWhetherThisWindowMatchWindowExpression", [currentWindowString,target,])
+
+
+ def wait_for_pop_up(self,windowID,timeout):
+ """
+ Waits for a popup window to appear and load up.
+
+ 'windowID' is the JavaScript window "name" of the window that will appear (not the text of the title bar) If unspecified, or specified as "null", this command will wait for the first non-top window to appear (don't rely on this if you are working with multiple popups simultaneously).
+ 'timeout' is a timeout in milliseconds, after which the action will return with an error. If this value is not specified, the default Selenium timeout will be used. See the setTimeout() command.
+ """
+ self.do_command("waitForPopUp", [windowID,timeout,])
+
+
+ def choose_cancel_on_next_confirmation(self):
+ """
+
+
+ By default, Selenium's overridden window.confirm() function will
+ return true, as if the user had manually clicked OK; after running
+ this command, the next call to confirm() will return false, as if
+ the user had clicked Cancel. Selenium will then resume using the
+ default behavior for future confirmations, automatically returning
+ true (OK) unless/until you explicitly call this command for each
+ confirmation.
+
+
+
+ Take note - every time a confirmation comes up, you must
+ consume it with a corresponding getConfirmation, or else
+ the next selenium operation will fail.
+
+
+
+ """
+ self.do_command("chooseCancelOnNextConfirmation", [])
+
+
+ def choose_ok_on_next_confirmation(self):
+ """
+
+
+ Undo the effect of calling chooseCancelOnNextConfirmation. Note
+ that Selenium's overridden window.confirm() function will normally automatically
+ return true, as if the user had manually clicked OK, so you shouldn't
+ need to use this command unless for some reason you need to change
+ your mind prior to the next confirmation. After any confirmation, Selenium will resume using the
+ default behavior for future confirmations, automatically returning
+ true (OK) unless/until you explicitly call chooseCancelOnNextConfirmation for each
+ confirmation.
+
+
+
+ Take note - every time a confirmation comes up, you must
+ consume it with a corresponding getConfirmation, or else
+ the next selenium operation will fail.
+
+
+
+ """
+ self.do_command("chooseOkOnNextConfirmation", [])
+
+
+ def answer_on_next_prompt(self,answer):
+ """
+ Instructs Selenium to return the specified answer string in response to
+ the next JavaScript prompt [window.prompt()].
+
+ 'answer' is the answer to give in response to the prompt pop-up
+ """
+ self.do_command("answerOnNextPrompt", [answer,])
+
+
+ def go_back(self):
+ """
+ Simulates the user clicking the "back" button on their browser.
+
+ """
+ self.do_command("goBack", [])
+
+
+ def refresh(self):
+ """
+ Simulates the user clicking the "Refresh" button on their browser.
+
+ """
+ self.do_command("refresh", [])
+
+
+ def close(self):
+ """
+ Simulates the user clicking the "close" button in the titlebar of a popup
+ window or tab.
+
+ """
+ self.do_command("close", [])
+
+
+ def is_alert_present(self):
+ """
+ Has an alert occurred?
+
+
+
+ This function never throws an exception
+
+
+
+ """
+ return self.get_boolean("isAlertPresent", [])
+
+
+ def is_prompt_present(self):
+ """
+ Has a prompt occurred?
+
+
+
+ This function never throws an exception
+
+
+
+ """
+ return self.get_boolean("isPromptPresent", [])
+
+
+ def is_confirmation_present(self):
+ """
+ Has confirm() been called?
+
+
+
+ This function never throws an exception
+
+
+
+ """
+ return self.get_boolean("isConfirmationPresent", [])
+
+
+ def get_alert(self):
+ """
+ Retrieves the message of a JavaScript alert generated during the previous action, or fail if there were no alerts.
+
+
+ Getting an alert has the same effect as manually clicking OK. If an
+ alert is generated but you do not consume it with getAlert, the next Selenium action
+ will fail.
+
+ Under Selenium, JavaScript alerts will NOT pop up a visible alert
+ dialog.
+
+ Selenium does NOT support JavaScript alerts that are generated in a
+ page's onload() event handler. In this case a visible dialog WILL be
+ generated and Selenium will hang until someone manually clicks OK.
+
+
+ """
+ return self.get_string("getAlert", [])
+
+
+ def get_confirmation(self):
+ """
+ Retrieves the message of a JavaScript confirmation dialog generated during
+ the previous action.
+
+
+
+ By default, the confirm function will return true, having the same effect
+ as manually clicking OK. This can be changed by prior execution of the
+ chooseCancelOnNextConfirmation command.
+
+
+
+ If an confirmation is generated but you do not consume it with getConfirmation,
+ the next Selenium action will fail.
+
+
+
+ NOTE: under Selenium, JavaScript confirmations will NOT pop up a visible
+ dialog.
+
+
+
+ NOTE: Selenium does NOT support JavaScript confirmations that are
+ generated in a page's onload() event handler. In this case a visible
+ dialog WILL be generated and Selenium will hang until you manually click
+ OK.
+
+
+
+ """
+ return self.get_string("getConfirmation", [])
+
+
+ def get_prompt(self):
+ """
+ Retrieves the message of a JavaScript question prompt dialog generated during
+ the previous action.
+
+
+ Successful handling of the prompt requires prior execution of the
+ answerOnNextPrompt command. If a prompt is generated but you
+ do not get/verify it, the next Selenium action will fail.
+
+ NOTE: under Selenium, JavaScript prompts will NOT pop up a visible
+ dialog.
+
+ NOTE: Selenium does NOT support JavaScript prompts that are generated in a
+ page's onload() event handler. In this case a visible dialog WILL be
+ generated and Selenium will hang until someone manually clicks OK.
+
+
+ """
+ return self.get_string("getPrompt", [])
+
+
+ def get_location(self):
+ """
+ Gets the absolute URL of the current page.
+
+ """
+ return self.get_string("getLocation", [])
+
+
+ def get_title(self):
+ """
+ Gets the title of the current page.
+
+ """
+ return self.get_string("getTitle", [])
+
+
+ def get_body_text(self):
+ """
+ Gets the entire text of the page.
+
+ """
+ return self.get_string("getBodyText", [])
+
+
+ def get_value(self,locator):
+ """
+ Gets the (whitespace-trimmed) value of an input field (or anything else with a value parameter).
+ For checkbox/radio elements, the value will be "on" or "off" depending on
+ whether the element is checked or not.
+
+ 'locator' is an element locator
+ """
+ return self.get_string("getValue", [locator,])
+
+
+ def get_text(self,locator):
+ """
+ Gets the text of an element. This works for any element that contains
+ text. This command uses either the textContent (Mozilla-like browsers) or
+ the innerText (IE-like browsers) of the element, which is the rendered
+ text shown to the user.
+
+ 'locator' is an element locator
+ """
+ return self.get_string("getText", [locator,])
+
+
+ def highlight(self,locator):
+ """
+ Briefly changes the backgroundColor of the specified element yellow. Useful for debugging.
+
+ 'locator' is an element locator
+ """
+ self.do_command("highlight", [locator,])
+
+
+ def get_eval(self,script):
+ """
+ Gets the result of evaluating the specified JavaScript snippet. The snippet may
+ have multiple lines, but only the result of the last line will be returned.
+
+
+ Note that, by default, the snippet will run in the context of the "selenium"
+ object itself, so ``this`` will refer to the Selenium object. Use ``window`` to
+ refer to the window of your application, e.g. ``window.document.getElementById('foo')``
+
+ If you need to use
+ a locator to refer to a single element in your application page, you can
+ use ``this.browserbot.findElement("id=foo")`` where "id=foo" is your locator.
+
+
+ 'script' is the JavaScript snippet to run
+ """
+ return self.get_string("getEval", [script,])
+
+
+ def is_checked(self,locator):
+ """
+ Gets whether a toggle-button (checkbox/radio) is checked. Fails if the specified element doesn't exist or isn't a toggle-button.
+
+ 'locator' is an element locator pointing to a checkbox or radio button
+ """
+ return self.get_boolean("isChecked", [locator,])
+
+
+ def get_table(self,tableCellAddress):
+ """
+ Gets the text from a cell of a table. The cellAddress syntax
+ tableLocator.row.column, where row and column start at 0.
+
+ 'tableCellAddress' is a cell address, e.g. "foo.1.4"
+ """
+ return self.get_string("getTable", [tableCellAddress,])
+
+
+ def get_selected_labels(self,selectLocator):
+ """
+ Gets all option labels (visible text) for selected options in the specified select or multi-select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string_array("getSelectedLabels", [selectLocator,])
+
+
+ def get_selected_label(self,selectLocator):
+ """
+ Gets option label (visible text) for selected option in the specified select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string("getSelectedLabel", [selectLocator,])
+
+
+ def get_selected_values(self,selectLocator):
+ """
+ Gets all option values (value attributes) for selected options in the specified select or multi-select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string_array("getSelectedValues", [selectLocator,])
+
+
+ def get_selected_value(self,selectLocator):
+ """
+ Gets option value (value attribute) for selected option in the specified select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string("getSelectedValue", [selectLocator,])
+
+
+ def get_selected_indexes(self,selectLocator):
+ """
+ Gets all option indexes (option number, starting at 0) for selected options in the specified select or multi-select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string_array("getSelectedIndexes", [selectLocator,])
+
+
+ def get_selected_index(self,selectLocator):
+ """
+ Gets option index (option number, starting at 0) for selected option in the specified select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string("getSelectedIndex", [selectLocator,])
+
+
+ def get_selected_ids(self,selectLocator):
+ """
+ Gets all option element IDs for selected options in the specified select or multi-select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string_array("getSelectedIds", [selectLocator,])
+
+
+ def get_selected_id(self,selectLocator):
+ """
+ Gets option element ID for selected option in the specified select element.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string("getSelectedId", [selectLocator,])
+
+
+ def is_something_selected(self,selectLocator):
+ """
+ Determines whether some option in a drop-down menu is selected.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_boolean("isSomethingSelected", [selectLocator,])
+
+
+ def get_select_options(self,selectLocator):
+ """
+ Gets all option labels in the specified select drop-down.
+
+ 'selectLocator' is an element locator identifying a drop-down menu
+ """
+ return self.get_string_array("getSelectOptions", [selectLocator,])
+
+
+ def get_attribute(self,attributeLocator):
+ """
+ Gets the value of an element attribute. The value of the attribute may
+ differ across browsers (this is the case for the "style" attribute, for
+ example).
+
+ 'attributeLocator' is an element locator followed by an @ sign and then the name of the attribute, e.g. "foo@bar"
+ """
+ return self.get_string("getAttribute", [attributeLocator,])
+
+
+ def is_text_present(self,pattern):
+ """
+ Verifies that the specified text pattern appears somewhere on the rendered page shown to the user.
+
+ 'pattern' is a pattern to match with the text of the page
+ """
+ return self.get_boolean("isTextPresent", [pattern,])
+
+
+ def is_element_present(self,locator):
+ """
+ Verifies that the specified element is somewhere on the page.
+
+ 'locator' is an element locator
+ """
+ return self.get_boolean("isElementPresent", [locator,])
+
+
+ def is_visible(self,locator):
+ """
+ Determines if the specified element is visible. An
+ element can be rendered invisible by setting the CSS "visibility"
+ property to "hidden", or the "display" property to "none", either for the
+ element itself or one if its ancestors. This method will fail if
+ the element is not present.
+
+ 'locator' is an element locator
+ """
+ return self.get_boolean("isVisible", [locator,])
+
+
+ def is_editable(self,locator):
+ """
+ Determines whether the specified input element is editable, ie hasn't been disabled.
+ This method will fail if the specified element isn't an input element.
+
+ 'locator' is an element locator
+ """
+ return self.get_boolean("isEditable", [locator,])
+
+
+ def get_all_buttons(self):
+ """
+ Returns the IDs of all buttons on the page.
+
+
+ If a given button has no ID, it will appear as "" in this array.
+
+
+ """
+ return self.get_string_array("getAllButtons", [])
+
+
+ def get_all_links(self):
+ """
+ Returns the IDs of all links on the page.
+
+
+ If a given link has no ID, it will appear as "" in this array.
+
+
+ """
+ return self.get_string_array("getAllLinks", [])
+
+
+ def get_all_fields(self):
+ """
+ Returns the IDs of all input fields on the page.
+
+
+ If a given field has no ID, it will appear as "" in this array.
+
+
+ """
+ return self.get_string_array("getAllFields", [])
+
+
+ def get_attribute_from_all_windows(self,attributeName):
+ """
+ Returns every instance of some attribute from all known windows.
+
+ 'attributeName' is name of an attribute on the windows
+ """
+ return self.get_string_array("getAttributeFromAllWindows", [attributeName,])
+
+
+ def dragdrop(self,locator,movementsString):
+ """
+ deprecated - use dragAndDrop instead
+
+ 'locator' is an element locator
+ 'movementsString' is offset in pixels from the current location to which the element should be moved, e.g., "+70,-300"
+ """
+ self.do_command("dragdrop", [locator,movementsString,])
+
+
+ def set_mouse_speed(self,pixels):
+ """
+ Configure the number of pixels between "mousemove" events during dragAndDrop commands (default=10).
+
+ Setting this value to 0 means that we'll send a "mousemove" event to every single pixel
+ in between the start location and the end location; that can be very slow, and may
+ cause some browsers to force the JavaScript to timeout.
+
+ If the mouse speed is greater than the distance between the two dragged objects, we'll
+ just send one "mousemove" at the start location and then one final one at the end location.
+
+
+ 'pixels' is the number of pixels between "mousemove" events
+ """
+ self.do_command("setMouseSpeed", [pixels,])
+
+
+ def get_mouse_speed(self):
+ """
+ Returns the number of pixels between "mousemove" events during dragAndDrop commands (default=10).
+
+ """
+ return self.get_number("getMouseSpeed", [])
+
+
+ def drag_and_drop(self,locator,movementsString):
+ """
+ Drags an element a certain distance and then drops it
+
+ 'locator' is an element locator
+ 'movementsString' is offset in pixels from the current location to which the element should be moved, e.g., "+70,-300"
+ """
+ self.do_command("dragAndDrop", [locator,movementsString,])
+
+
+ def drag_and_drop_to_object(self,locatorOfObjectToBeDragged,locatorOfDragDestinationObject):
+ """
+ Drags an element and drops it on another element
+
+ 'locatorOfObjectToBeDragged' is an element to be dragged
+ 'locatorOfDragDestinationObject' is an element whose location (i.e., whose center-most pixel) will be the point where locatorOfObjectToBeDragged is dropped
+ """
+ self.do_command("dragAndDropToObject", [locatorOfObjectToBeDragged,locatorOfDragDestinationObject,])
+
+
+ def window_focus(self):
+ """
+ Gives focus to the currently selected window
+
+ """
+ self.do_command("windowFocus", [])
+
+
+ def window_maximize(self):
+ """
+ Resize currently selected window to take up the entire screen
+
+ """
+ self.do_command("windowMaximize", [])
+
+
+ def get_all_window_ids(self):
+ """
+ Returns the IDs of all windows that the browser knows about.
+
+ """
+ return self.get_string_array("getAllWindowIds", [])
+
+
+ def get_all_window_names(self):
+ """
+ Returns the names of all windows that the browser knows about.
+
+ """
+ return self.get_string_array("getAllWindowNames", [])
+
+
+ def get_all_window_titles(self):
+ """
+ Returns the titles of all windows that the browser knows about.
+
+ """
+ return self.get_string_array("getAllWindowTitles", [])
+
+
+ def get_html_source(self):
+ """
+ Returns the entire HTML source between the opening and
+ closing "html" tags.
+
+ """
+ return self.get_string("getHtmlSource", [])
+
+
+ def set_cursor_position(self,locator,position):
+ """
+ Moves the text cursor to the specified position in the given input element or textarea.
+ This method will fail if the specified element isn't an input element or textarea.
+
+ 'locator' is an element locator pointing to an input element or textarea
+ 'position' is the numerical position of the cursor in the field; position should be 0 to move the position to the beginning of the field. You can also set the cursor to -1 to move it to the end of the field.
+ """
+ self.do_command("setCursorPosition", [locator,position,])
+
+
+ def get_element_index(self,locator):
+ """
+ Get the relative index of an element to its parent (starting from 0). The comment node and empty text node
+ will be ignored.
+
+ 'locator' is an element locator pointing to an element
+ """
+ return self.get_number("getElementIndex", [locator,])
+
+
+ def is_ordered(self,locator1,locator2):
+ """
+ Check if these two elements have same parent and are ordered siblings in the DOM. Two same elements will
+ not be considered ordered.
+
+ 'locator1' is an element locator pointing to the first element
+ 'locator2' is an element locator pointing to the second element
+ """
+ return self.get_boolean("isOrdered", [locator1,locator2,])
+
+
+ def get_element_position_left(self,locator):
+ """
+ Retrieves the horizontal position of an element
+
+ 'locator' is an element locator pointing to an element OR an element itself
+ """
+ return self.get_number("getElementPositionLeft", [locator,])
+
+
+ def get_element_position_top(self,locator):
+ """
+ Retrieves the vertical position of an element
+
+ 'locator' is an element locator pointing to an element OR an element itself
+ """
+ return self.get_number("getElementPositionTop", [locator,])
+
+
+ def get_element_width(self,locator):
+ """
+ Retrieves the width of an element
+
+ 'locator' is an element locator pointing to an element
+ """
+ return self.get_number("getElementWidth", [locator,])
+
+
+ def get_element_height(self,locator):
+ """
+ Retrieves the height of an element
+
+ 'locator' is an element locator pointing to an element
+ """
+ return self.get_number("getElementHeight", [locator,])
+
+
+ def get_cursor_position(self,locator):
+ """
+ Retrieves the text cursor position in the given input element or textarea; beware, this may not work perfectly on all browsers.
+
+
+ Specifically, if the cursor/selection has been cleared by JavaScript, this command will tend to
+ return the position of the last location of the cursor, even though the cursor is now gone from the page. This is filed as SEL-243.
+
+ This method will fail if the specified element isn't an input element or textarea, or there is no cursor in the element.
+
+ 'locator' is an element locator pointing to an input element or textarea
+ """
+ return self.get_number("getCursorPosition", [locator,])
+
+
+ def get_expression(self,expression):
+ """
+ Returns the specified expression.
+
+
+ This is useful because of JavaScript preprocessing.
+ It is used to generate commands like assertExpression and waitForExpression.
+
+
+ 'expression' is the value to return
+ """
+ return self.get_string("getExpression", [expression,])
+
+
+ def get_xpath_count(self,xpath):
+ """
+ Returns the number of nodes that match the specified xpath, eg. "//table" would give
+ the number of tables.
+
+ 'xpath' is the xpath expression to evaluate. do NOT wrap this expression in a 'count()' function; we will do that for you.
+ """
+ return self.get_number("getXpathCount", [xpath,])
+
+ def get_css_count(self,css):
+ """
+ Returns the number of nodes that match the specified css selector, eg. "css=table" would give
+ the number of tables.
+
+ 'css' is the css selector to evaluate. do NOT wrap this expression in a 'count()' function; we will do that for you.
+ """
+ return self.get_number("getCssCount", [css,])
+
+ def assign_id(self,locator,identifier):
+ """
+ Temporarily sets the "id" attribute of the specified element, so you can locate it in the future
+ using its ID rather than a slow/complicated XPath. This ID will disappear once the page is
+ reloaded.
+
+ 'locator' is an element locator pointing to an element
+ 'identifier' is a string to be used as the ID of the specified element
+ """
+ self.do_command("assignId", [locator,identifier,])
+
+
+ def allow_native_xpath(self,allow):
+ """
+ Specifies whether Selenium should use the native in-browser implementation
+ of XPath (if any native version is available); if you pass "false" to
+ this function, we will always use our pure-JavaScript xpath library.
+ Using the pure-JS xpath library can improve the consistency of xpath
+ element locators between different browser vendors, but the pure-JS
+ version is much slower than the native implementations.
+
+ 'allow' is boolean, true means we'll prefer to use native XPath; false means we'll only use JS XPath
+ """
+ self.do_command("allowNativeXpath", [allow,])
+
+
+ def ignore_attributes_without_value(self,ignore):
+ """
+ Specifies whether Selenium will ignore xpath attributes that have no
+ value, i.e. are the empty string, when using the non-native xpath
+ evaluation engine. You'd want to do this for performance reasons in IE.
+ However, this could break certain xpaths, for example an xpath that looks
+ for an attribute whose value is NOT the empty string.
+
+ The hope is that such xpaths are relatively rare, but the user should
+ have the option of using them. Note that this only influences xpath
+ evaluation when using the ajaxslt engine (i.e. not "javascript-xpath").
+
+ 'ignore' is boolean, true means we'll ignore attributes without value at the expense of xpath "correctness"; false means we'll sacrifice speed for correctness.
+ """
+ self.do_command("ignoreAttributesWithoutValue", [ignore,])
+
+
+ def wait_for_condition(self,script,timeout):
+ """
+ Runs the specified JavaScript snippet repeatedly until it evaluates to "true".
+ The snippet may have multiple lines, but only the result of the last line
+ will be considered.
+
+
+ Note that, by default, the snippet will be run in the runner's test window, not in the window
+ of your application. To get the window of your application, you can use
+ the JavaScript snippet ``selenium.browserbot.getCurrentWindow()``, and then
+ run your JavaScript in there
+
+
+ 'script' is the JavaScript snippet to run
+ 'timeout' is a timeout in milliseconds, after which this command will return with an error
+ """
+ self.do_command("waitForCondition", [script,timeout,])
+
+
+ def set_timeout(self,timeout):
+ """
+ Specifies the amount of time that Selenium will wait for actions to complete.
+
+
+ Actions that require waiting include "open" and the "waitFor\*" actions.
+
+ The default timeout is 30 seconds.
+
+ 'timeout' is a timeout in milliseconds, after which the action will return with an error
+ """
+ self.do_command("setTimeout", [timeout,])
+
+
+ def wait_for_page_to_load(self,timeout):
+ """
+ Waits for a new page to load.
+
+
+ You can use this command instead of the "AndWait" suffixes, "clickAndWait", "selectAndWait", "typeAndWait" etc.
+ (which are only available in the JS API).
+
+ Selenium constantly keeps track of new pages loading, and sets a "newPageLoaded"
+ flag when it first notices a page load. Running any other Selenium command after
+ turns the flag to false. Hence, if you want to wait for a page to load, you must
+ wait immediately after a Selenium command that caused a page-load.
+
+
+ 'timeout' is a timeout in milliseconds, after which this command will return with an error
+ """
+ self.do_command("waitForPageToLoad", [timeout,])
+
+
+ def wait_for_frame_to_load(self,frameAddress,timeout):
+ """
+ Waits for a new frame to load.
+
+
+ Selenium constantly keeps track of new pages and frames loading,
+ and sets a "newPageLoaded" flag when it first notices a page load.
+
+
+ See waitForPageToLoad for more information.
+
+ 'frameAddress' is FrameAddress from the server side
+ 'timeout' is a timeout in milliseconds, after which this command will return with an error
+ """
+ self.do_command("waitForFrameToLoad", [frameAddress,timeout,])
+
+
+ def get_cookie(self):
+ """
+ Return all cookies of the current page under test.
+
+ """
+ return self.get_string("getCookie", [])
+
+
+ def get_cookie_by_name(self,name):
+ """
+ Returns the value of the cookie with the specified name, or throws an error if the cookie is not present.
+
+ 'name' is the name of the cookie
+ """
+ return self.get_string("getCookieByName", [name,])
+
+
+ def is_cookie_present(self,name):
+ """
+ Returns true if a cookie with the specified name is present, or false otherwise.
+
+ 'name' is the name of the cookie
+ """
+ return self.get_boolean("isCookiePresent", [name,])
+
+
+ def create_cookie(self,nameValuePair,optionsString):
+ """
+ Create a new cookie whose path and domain are same with those of current page
+ under test, unless you specified a path for this cookie explicitly.
+
+ 'nameValuePair' is name and value of the cookie in a format "name=value"
+ 'optionsString' is options for the cookie. Currently supported options include 'path', 'max_age' and 'domain'. the optionsString's format is "path=/path/, max_age=60, domain=.foo.com". The order of options are irrelevant, the unit of the value of 'max_age' is second. Note that specifying a domain that isn't a subset of the current domain will usually fail.
+ """
+ self.do_command("createCookie", [nameValuePair,optionsString,])
+
+
+ def delete_cookie(self,name,optionsString):
+ """
+ Delete a named cookie with specified path and domain. Be careful; to delete a cookie, you
+ need to delete it using the exact same path and domain that were used to create the cookie.
+ If the path is wrong, or the domain is wrong, the cookie simply won't be deleted. Also
+ note that specifying a domain that isn't a subset of the current domain will usually fail.
+
+ Since there's no way to discover at runtime the original path and domain of a given cookie,
+ we've added an option called 'recurse' to try all sub-domains of the current domain with
+ all paths that are a subset of the current path. Beware; this option can be slow. In
+ big-O notation, it operates in O(n\*m) time, where n is the number of dots in the domain
+ name and m is the number of slashes in the path.
+
+ 'name' is the name of the cookie to be deleted
+ 'optionsString' is options for the cookie. Currently supported options include 'path', 'domain' and 'recurse.' The optionsString's format is "path=/path/, domain=.foo.com, recurse=true". The order of options are irrelevant. Note that specifying a domain that isn't a subset of the current domain will usually fail.
+ """
+ self.do_command("deleteCookie", [name,optionsString,])
+
+
+ def delete_all_visible_cookies(self):
+ """
+ Calls deleteCookie with recurse=true on all cookies visible to the current page.
+ As noted on the documentation for deleteCookie, recurse=true can be much slower
+ than simply deleting the cookies using a known domain/path.
+
+ """
+ self.do_command("deleteAllVisibleCookies", [])
+
+
+ def set_browser_log_level(self,logLevel):
+ """
+ Sets the threshold for browser-side logging messages; log messages beneath this threshold will be discarded.
+ Valid logLevel strings are: "debug", "info", "warn", "error" or "off".
+ To see the browser logs, you need to
+ either show the log window in GUI mode, or enable browser-side logging in Selenium RC.
+
+ 'logLevel' is one of the following: "debug", "info", "warn", "error" or "off"
+ """
+ self.do_command("setBrowserLogLevel", [logLevel,])
+
+
+ def run_script(self,script):
+ """
+ Creates a new "script" tag in the body of the current test window, and
+ adds the specified text into the body of the command. Scripts run in
+ this way can often be debugged more easily than scripts executed using
+ Selenium's "getEval" command. Beware that JS exceptions thrown in these script
+ tags aren't managed by Selenium, so you should probably wrap your script
+ in try/catch blocks if there is any chance that the script will throw
+ an exception.
+
+ 'script' is the JavaScript snippet to run
+ """
+ self.do_command("runScript", [script,])
+
+
+ def add_location_strategy(self,strategyName,functionDefinition):
+ """
+ Defines a new function for Selenium to locate elements on the page.
+ For example,
+ if you define the strategy "foo", and someone runs click("foo=blah"), we'll
+ run your function, passing you the string "blah", and click on the element
+ that your function
+ returns, or throw an "Element not found" error if your function returns null.
+
+ We'll pass three arguments to your function:
+
+ * locator: the string the user passed in
+ * inWindow: the currently selected window
+ * inDocument: the currently selected document
+
+
+ The function must return null if the element can't be found.
+
+ 'strategyName' is the name of the strategy to define; this should use only letters [a-zA-Z] with no spaces or other punctuation.
+ 'functionDefinition' is a string defining the body of a function in JavaScript. For example: ``return inDocument.getElementById(locator);``
+ """
+ self.do_command("addLocationStrategy", [strategyName,functionDefinition,])
+
+
+ def capture_entire_page_screenshot(self,filename,kwargs):
+ """
+ Saves the entire contents of the current window canvas to a PNG file.
+ Contrast this with the captureScreenshot command, which captures the
+ contents of the OS viewport (i.e. whatever is currently being displayed
+ on the monitor), and is implemented in the RC only. Currently this only
+ works in Firefox when running in chrome mode, and in IE non-HTA using
+ the EXPERIMENTAL "Snapsie" utility. The Firefox implementation is mostly
+ borrowed from the Screengrab! Firefox extension. Please see
+ http://www.screengrab.org and http://snapsie.sourceforge.net/ for
+ details.
+
+ 'filename' is the path to the file to persist the screenshot as. No
+ filename extension will be appended by default. Directories will not be
+ created if they do not exist, and an exception will be thrown, possibly
+ by native code.
+
+ 'kwargs' is a kwargs string that modifies the way the
+ screenshot is captured.
+
+ Example: "background=#CCFFDD"
+
+ Currently valid options:
+
+ * background
+
+ the background CSS for the HTML document.
+ This may be useful to set for capturing screenshots of
+ less-than-ideal layouts, for example where absolute positioning
+ causes the calculation of the canvas dimension to fail and a black
+ background is exposed (possibly obscuring black text).
+
+ """
+ self.do_command("captureEntirePageScreenshot", [filename,kwargs,])
+
+
+ def rollup(self,rollupName,kwargs):
+ """
+ Executes a command rollup, which is a series of commands with a unique
+ name, and optionally arguments that control the generation of the set of
+ commands. If any one of the rolled-up commands fails, the rollup is
+ considered to have failed. Rollups may also contain nested rollups.
+
+ 'rollupName' is the name of the rollup command
+ 'kwargs' is keyword arguments string that influences how the rollup expands into commands
+ """
+ self.do_command("rollup", [rollupName,kwargs,])
+
+
+ def add_script(self,scriptContent,scriptTagId):
+ """
+ Loads script content into a new script tag in the Selenium document. This
+ differs from the runScript command in that runScript adds the script tag
+ to the document of the AUT, not the Selenium document. The following
+ entities in the script content are replaced by the characters they
+ represent:
+
+ &lt;
+ &gt;
+ &amp;
+
+ The corresponding remove command is removeScript.
+
+ 'scriptContent' is the Javascript content of the script to add
+ 'scriptTagId' is (optional) the id of the new script tag. If specified, and an element with this id already exists, this operation will fail.
+ """
+ self.do_command("addScript", [scriptContent,scriptTagId,])
+
+
+ def remove_script(self,scriptTagId):
+ """
+ Removes a script tag from the Selenium document identified by the given
+ id. Does nothing if the referenced tag doesn't exist.
+
+ 'scriptTagId' is the id of the script element to remove.
+ """
+ self.do_command("removeScript", [scriptTagId,])
+
+
+ def use_xpath_library(self,libraryName):
+ """
+ Allows choice of one of the available libraries.
+
+ 'libraryName' is name of the desired library Only the following three can be chosen:
+ * "ajaxslt" - Google's library
+ * "javascript-xpath" - Cybozu Labs' faster library
+ * "default" - The default library. Currently the default library is "ajaxslt" .
+
+ If libraryName isn't one of these three, then no change will be made.
+ """
+ self.do_command("useXpathLibrary", [libraryName,])
+
+
+ def set_context(self,context):
+ """
+ Writes a message to the status bar and adds a note to the browser-side
+ log.
+
+ 'context' is the message to be sent to the browser
+ """
+ self.do_command("setContext", [context,])
+
+
+ def attach_file(self,fieldLocator,fileLocator):
+ """
+ Sets a file input (upload) field to the file listed in fileLocator
+
+ 'fieldLocator' is an element locator
+ 'fileLocator' is a URL pointing to the specified file. Before the file can be set in the input field (fieldLocator), Selenium RC may need to transfer the file to the local machine before attaching the file in a web page form. This is common in selenium grid configurations where the RC server driving the browser is not the same machine that started the test. Supported Browsers: Firefox ("\*chrome") only.
+ """
+ self.do_command("attachFile", [fieldLocator,fileLocator,])
+
+
+ def capture_screenshot(self,filename):
+ """
+ Captures a PNG screenshot to the specified file.
+
+ 'filename' is the absolute path to the file to be written, e.g. "c:\blah\screenshot.png"
+ """
+ self.do_command("captureScreenshot", [filename,])
+
+
+ def capture_screenshot_to_string(self):
+ """
+ Capture a PNG screenshot. It then returns the file as a base 64 encoded string.
+
+ """
+ return self.get_string("captureScreenshotToString", [])
+
+
+ def captureNetworkTraffic(self, type):
+ """
+ Returns the network traffic seen by the browser, including headers, AJAX requests, status codes, and timings. When this function is called, the traffic log is cleared, so the returned content is only the traffic seen since the last call.
+
+ 'type' is The type of data to return the network traffic as. Valid values are: json, xml, or plain.
+ """
+ return self.get_string("captureNetworkTraffic", [type,])
+
+ def capture_network_traffic(self, type):
+ return self.captureNetworkTraffic(type)
+
+ def addCustomRequestHeader(self, key, value):
+ """
+ Tells the Selenium server to add the specificed key and value as a custom outgoing request header. This only works if the browser is configured to use the built in Selenium proxy.
+
+ 'key' the header name.
+ 'value' the header value.
+ """
+ return self.do_command("addCustomRequestHeader", [key,value,])
+
+ def add_custom_request_header(self, key, value):
+ return self.addCustomRequestHeader(key, value)
+
+ def capture_entire_page_screenshot_to_string(self,kwargs):
+ """
+ Downloads a screenshot of the browser current window canvas to a
+ based 64 encoded PNG file. The \ *entire* windows canvas is captured,
+ including parts rendered outside of the current view port.
+
+ Currently this only works in Mozilla and when running in chrome mode.
+
+ 'kwargs' is A kwargs string that modifies the way the screenshot is captured. Example: "background=#CCFFDD". This may be useful to set for capturing screenshots of less-than-ideal layouts, for example where absolute positioning causes the calculation of the canvas dimension to fail and a black background is exposed (possibly obscuring black text).
+ """
+ return self.get_string("captureEntirePageScreenshotToString", [kwargs,])
+
+
+ def shut_down_selenium_server(self):
+ """
+ Kills the running Selenium Server and all browser sessions. After you run this command, you will no longer be able to send
+ commands to the server; you can't remotely start the server once it has been stopped. Normally
+ you should prefer to run the "stop" command, which terminates the current browser session, rather than
+ shutting down the entire server.
+
+ """
+ self.do_command("shutDownSeleniumServer", [])
+
+
+ def retrieve_last_remote_control_logs(self):
+ """
+ Retrieve the last messages logged on a specific remote control. Useful for error reports, especially
+ when running multiple remote controls in a distributed environment. The maximum number of log messages
+ that can be retrieve is configured on remote control startup.
+
+ """
+ return self.get_string("retrieveLastRemoteControlLogs", [])
+
+
+ def key_down_native(self,keycode):
+ """
+ Simulates a user pressing a key (without releasing it yet) by sending a native operating system keystroke.
+ This function uses the java.awt.Robot class to send a keystroke; this more accurately simulates typing
+ a key on the keyboard. It does not honor settings from the shiftKeyDown, controlKeyDown, altKeyDown and
+ metaKeyDown commands, and does not target any particular HTML element. To send a keystroke to a particular
+ element, focus on the element first before running this command.
+
+ 'keycode' is an integer keycode number corresponding to a java.awt.event.KeyEvent; note that Java keycodes are NOT the same thing as JavaScript keycodes!
+ """
+ self.do_command("keyDownNative", [keycode,])
+
+
+ def key_up_native(self,keycode):
+ """
+ Simulates a user releasing a key by sending a native operating system keystroke.
+ This function uses the java.awt.Robot class to send a keystroke; this more accurately simulates typing
+ a key on the keyboard. It does not honor settings from the shiftKeyDown, controlKeyDown, altKeyDown and
+ metaKeyDown commands, and does not target any particular HTML element. To send a keystroke to a particular
+ element, focus on the element first before running this command.
+
+ 'keycode' is an integer keycode number corresponding to a java.awt.event.KeyEvent; note that Java keycodes are NOT the same thing as JavaScript keycodes!
+ """
+ self.do_command("keyUpNative", [keycode,])
+
+
+ def key_press_native(self,keycode):
+ """
+ Simulates a user pressing and releasing a key by sending a native operating system keystroke.
+ This function uses the java.awt.Robot class to send a keystroke; this more accurately simulates typing
+ a key on the keyboard. It does not honor settings from the shiftKeyDown, controlKeyDown, altKeyDown and
+ metaKeyDown commands, and does not target any particular HTML element. To send a keystroke to a particular
+ element, focus on the element first before running this command.
+
+ 'keycode' is an integer keycode number corresponding to a java.awt.event.KeyEvent; note that Java keycodes are NOT the same thing as JavaScript keycodes!
+ """
+ self.do_command("keyPressNative", [keycode,])
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/__init__.py
new file mode 100644
index 00000000000..5577ae2f572
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/__init__.py
@@ -0,0 +1,31 @@
+#!/usr/bin/python
+#
+# Copyright 2008-2010 Webdriver_name committers
+# Copyright 2008-2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from firefox.webdriver import WebDriver as Firefox
+from firefox.firefox_profile import FirefoxProfile
+from chrome.webdriver import WebDriver as Chrome
+from chrome.options import Options as ChromeOptions
+from ie.webdriver import WebDriver as Ie
+from opera.webdriver import WebDriver as Opera
+from phantomjs.webdriver import WebDriver as PhantomJS
+from remote.webdriver import WebDriver as Remote
+from common.desired_capabilities import DesiredCapabilities
+from common.action_chains import ActionChains
+from common.touch_actions import TouchActions
+from common.proxy import Proxy
+
+__version__ = '2.28.0'
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/__init__.py
new file mode 100644
index 00000000000..0266e8ae4d0
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/__init__.py
@@ -0,0 +1,14 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/options.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/options.py
new file mode 100644
index 00000000000..102ecb8e85c
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/options.py
@@ -0,0 +1,132 @@
+#!/usr/bin/python
+#
+# Copyright 2012 Webdriver_name committers
+# Copyright 2012 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+import base64
+
+
+class Options(object):
+
+ def __init__(self):
+ self._binary_location = ''
+ self._arguments = []
+ self._extension_files = []
+ self._experimental_options = {}
+
+ @property
+ def binary_location(self):
+ """
+ Returns the location of the binary otherwise an empty string
+ """
+ return self._binary_location
+
+ @binary_location.setter
+ def binary_location(self, value):
+ """
+ Allows you to set where the chromium binary lives
+
+ :Args:
+ - value: path to the Chromium binary
+ """
+ self._binary_location = value
+
+ @property
+ def arguments(self):
+ """
+ Returns a list of arguments needed for the browser
+ """
+ return self._arguments
+
+ def add_argument(self, argument):
+ """
+ Adds an argument to the list
+
+ :Args:
+ - Sets the arguments
+ """
+ if argument:
+ self._arguments.append(argument)
+ else:
+ raise ValueError("argument can not be null")
+
+ @property
+ def extensions(self):
+ """
+ Returns a list of encoded extensions that will be loaded into chrome
+
+ """
+ encoded_extensions = []
+ for ext in self._extension_files:
+ file_ = open(ext)
+ # Should not use base64.encodestring() which inserts newlines every
+ # 76 characters (per RFC 1521). Chromedriver has to remove those
+ # unnecessary newlines before decoding, causing performance hit.
+ encoded_extensions.append(base64.b64encode(file_.read()))
+
+ file_.close()
+ return encoded_extensions
+
+ def add_extension(self, extension):
+ """
+ Adds the path to the extension to a list that will be used to extract it
+ to the ChromeDriver
+
+ :Args:
+ - extension: path to the *.crx file
+ """
+ if extension:
+ if os.path.exists(extension):
+ self._extension_files.append(extension)
+ else:
+ raise IOError("Path to the extension doesn't exist")
+ else:
+ raise ValueError("argument can not be null")
+
+ @property
+ def experimental_options(self):
+ """
+ Returns a dictionary of experimental options for chrome.
+ """
+ return self._experimental_options
+
+ def add_experimental_option(self, name, value):
+ """
+ Adds an experimental option which is passed to chrome.
+
+ Args:
+ name: The experimental option name.
+ value: The option value.
+ """
+ self._experimental_options[name] = value
+
+ def to_capabilities(self):
+ """
+ Creates a capabilities with all the options that have been set and
+
+ returns a dictionary with everything
+ """
+ chrome = DesiredCapabilities.CHROME
+
+ chrome_options = self.experimental_options.copy()
+ chrome_options["extensions"] = self.extensions
+ chrome_options["binary"] = self.binary_location
+ chrome_options["args"] = self.arguments
+
+ chrome["chromeOptions"] = chrome_options
+
+ return chrome
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/service.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/service.py
new file mode 100644
index 00000000000..db7b72420c4
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/service.py
@@ -0,0 +1,104 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Webdriver_name committers
+# Copyright 2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import subprocess
+from subprocess import PIPE
+import time
+
+from selenium.common.exceptions import WebDriverException
+from selenium.webdriver.common import utils
+
+class Service(object):
+ """
+ Object that manages the starting and stopping of the ChromeDriver
+ """
+
+ def __init__(self, executable_path, port=0, service_args=None, log_path=None):
+ """
+ Creates a new instance of the Service
+
+ :Args:
+ - executable_path : Path to the ChromeDriver
+ - port : Port the service is running on
+ - service_args : List of args to pass to the chromedriver service
+ - log_path : Path for the chromedriver service to log to"""
+
+ self.port = port
+ self.path = executable_path
+ self.service_args = service_args or []
+ if log_path:
+ self.service_args.append('--log-path=%s' % log_path)
+ if self.port == 0:
+ self.port = utils.free_port()
+
+ def start(self):
+ """
+ Starts the ChromeDriver Service.
+
+ :Exceptions:
+ - WebDriverException : Raised either when it can't start the service
+ or when it can't connect to the service
+ """
+ try:
+ self.process = subprocess.Popen([
+ self.path,
+ "--port=%d" % self.port] +
+ self.service_args, stdout=PIPE, stderr=PIPE)
+ except:
+ raise WebDriverException(
+ "ChromeDriver executable needs to be available in the path. \
+ Please download from http://code.google.com/p/selenium/downloads/list\
+ and read up at http://code.google.com/p/selenium/wiki/ChromeDriver")
+ count = 0
+ while not utils.is_connectable(self.port):
+ count += 1
+ time.sleep(1)
+ if count == 30:
+ raise WebDriverException("Can not connect to the ChromeDriver")
+
+ @property
+ def service_url(self):
+ """
+ Gets the url of the ChromeDriver Service
+ """
+ return "http://localhost:%d" % self.port
+
+ def stop(self):
+ """
+ Tells the ChromeDriver to stop and cleans up the process
+ """
+ #If its dead dont worry
+ if self.process is None:
+ return
+
+ #Tell the Server to die!
+ import urllib2
+ urllib2.urlopen("http://127.0.0.1:%d/shutdown" % self.port)
+ count = 0
+ while utils.is_connectable(self.port):
+ if count == 30:
+ break
+ count += 1
+ time.sleep(1)
+
+ #Tell the Server to properly die in case
+ try:
+ if self.process:
+ self.process.kill()
+ self.process.wait()
+ except WindowsError:
+ # kill may not be available under windows environment
+ pass
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/webdriver.py
new file mode 100644
index 00000000000..ed3d728f0c4
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/chrome/webdriver.py
@@ -0,0 +1,98 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Webdriver_name committers
+# Copyright 2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import base64
+import httplib
+from selenium.webdriver.remote.command import Command
+from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
+from selenium.common.exceptions import WebDriverException
+from service import Service
+from options import Options
+
+class WebDriver(RemoteWebDriver):
+ """
+ Controls the ChromeDriver and allows you to drive the browser.
+
+ You will need to download the ChromeDriver executable from
+ http://code.google.com/p/chromedriver/downloads/list
+ """
+
+ def __init__(self, executable_path="chromedriver", port=0,
+ chrome_options=None, service_args=None,
+ desired_capabilities=None, service_log_path=None):
+ """
+ Creates a new instance of the chrome driver.
+
+ Starts the service and then creates new instance of chrome driver.
+
+ :Args:
+ - executable_path - path to the executable. If the default is used it assumes the executable is in the $PATH
+ - port - port you would like the service to run, if left as 0, a free port will be found.
+ - desired_capabilities: Dictionary object with non-browser specific
+ capabilities only, such as "proxy" or "loggingPref".
+ - chrome_options: this takes an instance of ChromeOptions
+ """
+ if chrome_options is None:
+ options = Options()
+ else:
+ options = chrome_options
+
+ if desired_capabilities is not None:
+ desired_capabilities.update(options.to_capabilities())
+ else:
+ desired_capabilities = options.to_capabilities()
+
+ self.service = Service(executable_path, port=port,
+ service_args=service_args, log_path=service_log_path)
+ self.service.start()
+
+ try:
+ RemoteWebDriver.__init__(self,
+ command_executor=self.service.service_url,
+ desired_capabilities=desired_capabilities)
+ except:
+ self.quit()
+ raise
+
+ def quit(self):
+ """
+ Closes the browser and shuts down the ChromeDriver executable
+ that is started when starting the ChromeDriver
+ """
+ try:
+ RemoteWebDriver.quit(self)
+ except:
+ # We don't care about the message because something probably has gone wrong
+ pass
+ finally:
+ self.service.stop()
+
+ def save_screenshot(self, filename):
+ """
+ Gets the screenshot of the current window. Returns False if there is
+ any IOError, else returns True. Use full paths in your filename.
+ """
+ png = RemoteWebDriver.execute(self, Command.SCREENSHOT)['value']
+ try:
+ f = open(filename, 'wb')
+ f.write(base64.decodestring(png))
+ f.close()
+ except IOError:
+ return False
+ finally:
+ del png
+ return True
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/__init__.py
new file mode 100644
index 00000000000..f042f9da329
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/__init__.py
@@ -0,0 +1,14 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/action_chains.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/action_chains.py
new file mode 100644
index 00000000000..acea8ac0b57
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/action_chains.py
@@ -0,0 +1,253 @@
+# Copyright 2011 WebDriver committers
+# Copyright 2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""
+The ActionChains implementation
+"""
+from selenium.webdriver.remote.command import Command
+from selenium.webdriver.common.keys import Keys
+
+class ActionChains(object):
+ """
+ Generate user actions.
+ All actions are stored in the ActionChains object. Call perform() to fire
+ stored actions.
+ """
+
+ def __init__(self, driver):
+ """
+ Creates a new ActionChains.
+
+ :Args:
+ - driver: The WebDriver instance which performs user actions.
+ """
+ self._driver = driver
+ self._actions = []
+
+ def perform(self):
+ """
+ Performs all stored actions.
+ """
+ for action in self._actions:
+ action()
+
+ def click(self, on_element=None):
+ """
+ Clicks an element.
+
+ :Args:
+ - on_element: The element to click.
+ If None, clicks on current mouse position.
+ """
+ if on_element: self.move_to_element(on_element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.CLICK, {'button': 0}))
+ return self
+
+ def click_and_hold(self, on_element=None):
+ """
+ Holds down the left mouse button on an element.
+
+ :Args:
+ - on_element: The element to mouse down.
+ If None, clicks on current mouse position.
+ """
+ if on_element: self.move_to_element(on_element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.MOUSE_DOWN, {}))
+ return self
+
+ def context_click(self, on_element=None):
+ """
+ Performs a context-click (right click) on an element.
+
+ :Args:
+ - on_element: The element to context-click.
+ If None, clicks on current mouse position.
+ """
+ if on_element: self.move_to_element(on_element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.CLICK, {'button': 2}))
+ return self
+
+ def double_click(self, on_element=None):
+ """
+ Double-clicks an element.
+
+ :Args:
+ - on_element: The element to double-click.
+ If None, clicks on current mouse position.
+ """
+ if on_element: self.move_to_element(on_element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.DOUBLE_CLICK, {}))
+ return self
+
+ def drag_and_drop(self, source, target):
+ """Holds down the left mouse button on the source element,
+ then moves to the target element and releases the mouse button.
+
+ :Args:
+ - source: The element to mouse down.
+ - target: The element to mouse up.
+ """
+ self.click_and_hold(source)
+ self.release(target)
+ return self
+
+ def drag_and_drop_by_offset(self, source, xoffset, yoffset):
+ """
+ Holds down the left mouse button on the source element,
+ then moves to the target element and releases the mouse button.
+
+ :Args:
+ - source: The element to mouse down.
+ - xoffset: X offset to move to.
+ - yoffset: Y offset to move to.
+ """
+ self.click_and_hold(source)
+ self.move_by_offset(xoffset, yoffset)
+ self.release(source)
+ return self
+
+ def key_down(self, value, element=None):
+ """Sends a key press only, without releasing it.
+ Should only be used with modifier keys (Control, Alt and Shift).
+
+ :Args:
+ - key: The modifier key to send. Values are defined in Keys class.
+ - target: The element to send keys.
+ If None, sends a key to current focused element.
+ """
+ typing = []
+ for val in value:
+ if isinstance(val, Keys):
+ typing.append(val)
+ elif isinstance(val, int):
+ val = str(val)
+ for i in range(len(val)):
+ typing.append(val[i])
+ else:
+ for i in range(len(val)):
+ typing.append(val[i])
+
+ if element: self.click(element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.SEND_KEYS_TO_ACTIVE_ELEMENT, {
+ "value": typing }))
+ return self
+
+ def key_up(self, value, element=None):
+ """
+ Releases a modifier key.
+
+ :Args:
+ - key: The modifier key to send. Values are defined in Keys class.
+ - target: The element to send keys.
+ If None, sends a key to current focused element.
+ """
+ typing = []
+ for val in value:
+ if isinstance(val, Keys):
+ typing.append(val)
+ elif isinstance(val, int):
+ val = str(val)
+ for i in range(len(val)):
+ typing.append(val[i])
+ else:
+ for i in range(len(val)):
+ typing.append(val[i])
+
+ if element: self.click(element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.SEND_KEYS_TO_ACTIVE_ELEMENT, {
+ "value": typing }))
+ return self
+
+ def move_by_offset(self, xoffset, yoffset):
+ """
+ Moving the mouse to an offset from current mouse position.
+
+ :Args:
+ - xoffset: X offset to move to.
+ - yoffset: Y offset to move to.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.MOVE_TO, {
+ 'xoffset': xoffset,
+ 'yoffset': yoffset}))
+ return self
+
+ def move_to_element(self, to_element):
+ """
+ Moving the mouse to the middle of an element.
+
+ :Args:
+ - to_element: The element to move to.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
+ return self
+
+ def move_to_element_with_offset(self, to_element, xoffset, yoffset):
+ """
+ Move the mouse by an offset of the specificed element.
+ Offsets are relative to the top-left corner of the element.
+
+ :Args:
+ - to_element: The element to move to.
+ - xoffset: X offset to move to.
+ - yoffset: Y offset to move to.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.MOVE_TO, {
+ 'element': to_element.id,
+ 'xoffset': xoffset,
+ 'yoffset': yoffset}))
+ return self
+
+ def release(self, on_element=None):
+ """
+ Releasing a held mouse button.
+
+ :Args:
+ - on_element: The element to mouse up.
+ """
+ if on_element: self.move_to_element(on_element)
+ self._actions.append(lambda:
+ self._driver.execute(Command.MOUSE_UP, {}))
+ return self
+
+ def send_keys(self, *keys_to_send):
+ """Sends keys to current focused element.
+
+ :Args:
+ - keys_to_send: The keys to send.
+ """
+ self._actions.append(lambda:
+ self._driver.switch_to_active_element().send_keys(*keys_to_send))
+ return self
+
+ def send_keys_to_element(self, element, *keys_to_send):
+ """
+ Sends keys to an element.
+
+ :Args:
+ - element: The element to send keys.
+ - keys_to_send: The keys to send.
+ """
+ self._actions.append(lambda:
+ element.send_keys(*keys_to_send))
+ return self
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/alert.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/alert.py
new file mode 100644
index 00000000000..711f09cf84c
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/alert.py
@@ -0,0 +1,39 @@
+#Copyright 2007-2009 WebDriver committers
+#Copyright 2007-2009 Google Inc.
+#
+#Licensed under the Apache License, Version 2.0 (the "License");
+#you may not use this file except in compliance with the License.
+#You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing, software
+#distributed under the License is distributed on an "AS IS" BASIS,
+#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#See the License for the specific language governing permissions and
+#limitations under the License.
+
+from selenium.webdriver.remote.command import Command
+
+
+class Alert(object):
+
+ def __init__(self, driver):
+ self.driver = driver
+
+ @property
+ def text(self):
+ """ Gets the text of the Alert """
+ return self.driver.execute(Command.GET_ALERT_TEXT)["value"]
+
+ def dismiss(self):
+ """ Dismisses the alert available """
+ self.driver.execute(Command.DISMISS_ALERT)
+
+ def accept(self):
+ """ Accepts the alert available """
+ self.driver.execute(Command.ACCEPT_ALERT)
+
+ def send_keys(self, keysToSend):
+ """ Send Keys to the Alert """
+ self.driver.execute(Command.SET_ALERT_VALUE, {'text': keysToSend})
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/by.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/by.py
new file mode 100644
index 00000000000..b54ca729f25
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/by.py
@@ -0,0 +1,25 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+class By(object):
+ ID = "id"
+ XPATH = "xpath"
+ LINK_TEXT = "link text"
+ PARTIAL_LINK_TEXT = "partial link text"
+ NAME = "name"
+ TAG_NAME = "tag name"
+ CLASS_NAME = "class name"
+ CSS_SELECTOR = "css selector"
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/desired_capabilities.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/desired_capabilities.py
new file mode 100644
index 00000000000..8b3ffc6b488
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/desired_capabilities.py
@@ -0,0 +1,93 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class DesiredCapabilities(object):
+
+ FIREFOX = {
+ "browserName": "firefox",
+ "version": "",
+ "platform": "ANY",
+ "javascriptEnabled": True,
+ }
+
+ INTERNETEXPLORER = {
+ "browserName": "internet explorer",
+ "version": "",
+ "platform": "WINDOWS",
+ "javascriptEnabled": True,
+ }
+
+ CHROME = {
+ "browserName": "chrome",
+ "version": "",
+ "platform": "ANY",
+ "javascriptEnabled": True,
+ }
+
+ OPERA = {
+ "browserName": "opera",
+ "version": "",
+ "platform": "ANY",
+ "javascriptEnabled": True,
+ }
+
+ SAFARI = {
+ "browserName": "safari",
+ "version": "5",
+ "platform": "MAC",
+ "javascriptEnabled": True,
+ }
+
+ HTMLUNIT = {
+ "browserName": "htmlunit",
+ "version": "",
+ "platform": "ANY",
+ }
+
+ HTMLUNITWITHJS = {
+ "browserName": "htmlunit",
+ "version": "firefox",
+ "platform": "ANY",
+ "javascriptEnabled": True,
+ }
+
+ IPHONE = {
+ "browserName": "iPhone",
+ "version": "",
+ "platform": "MAC",
+ "javascriptEnabled": True,
+ }
+
+ IPAD = {
+ "browserName": "iPad",
+ "version": "",
+ "platform": "MAC",
+ "javascriptEnabled": True,
+ }
+
+ ANDROID = {
+ "browserName": "android",
+ "version": "",
+ "platform": "ANDROID",
+ "javascriptEnabled": True,
+ }
+
+ PHANTOMJS = {
+ "browserName":"phantomjs",
+ "version": "",
+ "platform": "ANY",
+ "javascriptEnabled": True,
+ }
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/__init__.py
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/__init__.py
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/application_cache.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/application_cache.py
new file mode 100644
index 00000000000..4c5986ea22e
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/html5/application_cache.py
@@ -0,0 +1,17 @@
+from selenium.webdriver.remote.command import Command
+
+class ApplicationCache(object):
+
+ UNCACHED = 0
+ IDLE = 1
+ CHECKING = 2
+ DOWNLOADING = 3
+ UPDATE_READY = 4
+ OBSOLETE = 5
+
+ def __init__(self, driver):
+ self.driver = driver
+
+ @property
+ def status(self):
+ return self.driver.execute(Command.GET_APP_CACHE_STATUS)['value']
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/keys.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/keys.py
new file mode 100644
index 00000000000..c13681338d7
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/keys.py
@@ -0,0 +1,84 @@
+# copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License Version 2.0 = uthe "License")
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http //www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing software
+# distributed under the License is distributed on an "AS IS" BASIS
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+class Keys(object):
+
+ NULL = u'\ue000'
+ CANCEL = u'\ue001' # ^break
+ HELP = u'\ue002'
+ BACK_SPACE = u'\ue003'
+ TAB = u'\ue004'
+ CLEAR = u'\ue005'
+ RETURN = u'\ue006'
+ ENTER = u'\ue007'
+ SHIFT = u'\ue008'
+ LEFT_SHIFT = u'\ue008' # alias
+ CONTROL = u'\ue009'
+ LEFT_CONTROL = u'\ue009' # alias
+ ALT = u'\ue00a'
+ LEFT_ALT = u'\ue00a' # alias
+ PAUSE = u'\ue00b'
+ ESCAPE = u'\ue00c'
+ SPACE = u'\ue00d'
+ PAGE_UP = u'\ue00e'
+ PAGE_DOWN = u'\ue00f'
+ END = u'\ue010'
+ HOME = u'\ue011'
+ LEFT = u'\ue012'
+ ARROW_LEFT = u'\ue012' # alias
+ UP = u'\ue013'
+ ARROW_UP = u'\ue013' # alias
+ RIGHT = u'\ue014'
+ ARROW_RIGHT = u'\ue014' # alias
+ DOWN = u'\ue015'
+ ARROW_DOWN = u'\ue015' # alias
+ INSERT = u'\ue016'
+ DELETE = u'\ue017'
+ SEMICOLON = u'\ue018'
+ EQUALS = u'\ue019'
+
+ NUMPAD0 = u'\ue01a' # numbe pad keys
+ NUMPAD1 = u'\ue01b'
+ NUMPAD2 = u'\ue01c'
+ NUMPAD3 = u'\ue01d'
+ NUMPAD4 = u'\ue01e'
+ NUMPAD5 = u'\ue01f'
+ NUMPAD6 = u'\ue020'
+ NUMPAD7 = u'\ue021'
+ NUMPAD8 = u'\ue022'
+ NUMPAD9 = u'\ue023'
+ MULTIPLY = u'\ue024'
+ ADD = u'\ue025'
+ SEPARATOR = u'\ue026'
+ SUBTRACT = u'\ue027'
+ DECIMAL = u'\ue028'
+ DIVIDE = u'\ue029'
+
+ F1 = u'\ue031' # function keys
+ F2 = u'\ue032'
+ F3 = u'\ue033'
+ F4 = u'\ue034'
+ F5 = u'\ue035'
+ F6 = u'\ue036'
+ F7 = u'\ue037'
+ F8 = u'\ue038'
+ F9 = u'\ue039'
+ F10 = u'\ue03a'
+ F11 = u'\ue03b'
+ F12 = u'\ue03c'
+
+ META = u'\ue03d'
+ COMMAND = u'\ue03d'
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/proxy.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/proxy.py
new file mode 100644
index 00000000000..6b8a0d9c07e
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/proxy.py
@@ -0,0 +1,136 @@
+class ProxyTypeFactory:
+ @staticmethod
+ def make(ff_value, string):
+ return {'ff_value': ff_value, 'string': string}
+
+class ProxyType:
+
+ DIRECT = ProxyTypeFactory.make(0, 'DIRECT') # Direct connection, no proxy (default on Windows).
+ MANUAL = ProxyTypeFactory.make(1, 'MANUAL') # Manual proxy settings (e.g., for httpProxy).
+ PAC = ProxyTypeFactory.make(2, 'PAC') # Proxy autoconfiguration from URL.
+ RESERVED_1 = ProxyTypeFactory.make(3, 'RESERVED1') # Never used.
+ AUTODETECT = ProxyTypeFactory.make(4, 'AUTODETECT') # Proxy autodetection (presumably with WPAD).
+ SYSTEM = ProxyTypeFactory.make(5, 'SYSTEM') # Use system settings (default on Linux).
+ UNSPECIFIED = ProxyTypeFactory.make(6, 'UNSPECIFIED')
+
+
+class Proxy(object):
+
+ proxyType = ProxyType.UNSPECIFIED
+ autodetect = False
+ ftpProxy = ''
+ httpProxy = ''
+ noProxy = ''
+ proxyAutoconfigUrl = ''
+ sslProxy = ''
+
+ def __init__(self, raw=None):
+ if raw is not None:
+ if raw.has_key('proxyType') and raw['proxyType'] is not None:
+ self.proxy_type = raw['proxyType']
+ if raw.has_key('ftpProxy') and raw['ftpProxy'] is not None:
+ self.ftp_proxy = raw['ftpProxy']
+ if raw.has_key('httpProxy') and raw['httpProxy'] is not None:
+ self.http_proxy = raw['httpProxy']
+ if raw.has_key('noProxy') and raw['noProxy'] is not None:
+ self.no_proxy = raw['noProxy']
+ if raw.has_key('proxyAutoconfigUrl') and raw['proxyAutoconfigUrl'] is not None:
+ self.proxy_autoconfig_url = raw['proxyAutoconfigUrl']
+ if raw.has_key('sslProxy') and raw['sslProxy'] is not None:
+ self.sslProxy = raw['sslProxy']
+ if raw.has_key('autodetect') and raw['autodetect'] is not None:
+ self.auto_detect = raw['autodetect']
+
+ @property
+ def proxy_type(self):
+ return self.proxyType
+
+ @proxy_type.setter
+ def proxy_type(self, value):
+ self._verify_proxy_type_compatilibily(ProxyType.AUTODETECT)
+ self.proxyType = value
+
+ @property
+ def auto_detect(self):
+ return self.autodetect
+
+ @auto_detect.setter
+ def auto_detect(self, value):
+ if isinstance(value, bool):
+ if self.autodetect is not value:
+ self._verify_proxy_type_compatilibily(ProxyType.AUTODETECT)
+ self.proxyType = ProxyType.AUTODETECT
+ self.autodetect = value
+ else:
+ raise ValueError("value needs to be a boolean")
+
+ @property
+ def ftp_proxy(self):
+ return self.ftpProxy
+
+ @ftp_proxy.setter
+ def ftp_proxy(self, value):
+ self._verify_proxy_type_compatilibily(ProxyType.MANUAL)
+ self.proxyType = ProxyType.MANUAL
+ self.ftpProxy = value
+
+ @property
+ def http_proxy(self):
+ return self.httpProxy
+
+ @http_proxy.setter
+ def http_proxy(self, value):
+ self._verify_proxy_type_compatilibily(ProxyType.MANUAL)
+ self.proxyType = ProxyType.MANUAL
+ self.httpProxy = value
+
+ @property
+ def no_proxy(self):
+ return self.noProxy
+
+ @no_proxy.setter
+ def no_proxy(self, value):
+ self._verify_proxy_type_compatilibily(ProxyType.MANUAL)
+ self.proxyType = ProxyType.MANUAL
+ self.noProxy = value
+
+ @property
+ def proxy_autoconfig_url(self):
+ return self.proxyAutoconfigUrl
+
+ @proxy_autoconfig_url.setter
+ def proxy_autoconfig_url(self, value):
+ self._verify_proxy_type_compatilibily(ProxyType.PAC)
+ self.proxyType = ProxyType.PAC
+ self.proxyAutoconfigUrl = value
+
+ @property
+ def ssl_proxy(self):
+ return self.sslProxy
+
+ @ssl_proxy.setter
+ def ssl_proxy(self, value):
+ self._verify_proxy_type_compatilibily(ProxyType.MANUAL)
+ self.proxyType = ProxyType.MANUAL
+ self.sslProxy = value
+
+ def _verify_proxy_type_compatilibily(self, compatibleProxy):
+ if self.proxyType != ProxyType.UNSPECIFIED and self.proxyType != compatibleProxy:
+ raise Exception(" Specified proxy type (%s) not compatible with current setting (%s)" % \
+ (compatibleProxy, self.proxyType))
+
+
+ def add_to_capabilities(self, capabilities):
+ proxy_caps = {}
+ proxy_caps['proxyType'] = self.proxyType['string']
+ if self.autodetect:
+ proxy_caps['autodetect'] = self.autodetect
+ if self.ftpProxy:
+ proxy_caps['ftpProxy'] = self.ftpProxy
+ if self.httpProxy:
+ proxy_caps['httpProxy'] = self.httpProxy
+ if self.proxyAutoconfigUrl:
+ proxy_caps['proxyAutoconfigUrl'] = self.proxyAutoconfigUrl
+ if self.sslProxy:
+ proxy_caps['sslProxy'] = self.sslProxy
+ capabilities['proxy'] = proxy_caps
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/touch_actions.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/touch_actions.py
new file mode 100644
index 00000000000..257e050d134
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/touch_actions.py
@@ -0,0 +1,165 @@
+""""
+Touch Actions implementation
+"""
+
+from selenium.webdriver.remote.command import Command
+
+class TouchActions(object):
+ """
+ Generate touch actions. Works like ActionChains; actions are stored in the
+ TouchActions object and are fired with perform().
+ """
+
+ def __init__(self, driver):
+ """
+ Creates a new TouchActions object.
+
+ Args:
+ -driver: The WebDriver instance, which must be touchscreen enabled.
+ """
+ self._driver = driver
+ self._actions = []
+
+ def perform(self):
+ """
+ Performs all stored actions.
+ """
+ for action in self._actions:
+ action()
+
+ def tap(self, on_element):
+ """
+ Taps on a given element.
+
+ Args:
+ -element: The element to tap.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.SINGLE_TAP, {'element': on_element.id}))
+ return self
+
+ def double_tap(self, on_element):
+ """
+ Double taps on a given element.
+
+ Args:
+ -element: The element to tap.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.DOUBLE_TAP, {'element': on_element.id}))
+ return self
+
+ def tap_and_hold(self, xcoord, ycoord):
+ """
+ Tap and hold a given element.
+
+ Args:
+ -xcoord: X Coordinates.
+ -ycoord: Y Coordinates.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.TOUCH_DOWN, {
+ 'x': xcoord,
+ 'y': ycoord}))
+ return self
+
+ def move(self, xcoord, ycoord):
+ """
+ Move held tap to specified location.
+
+ Args:
+ -xcoord: X Coordinates.
+ -ycoord: Y Coordinates.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.TOUCH_MOVE, {
+ 'x': xcoord,
+ 'y': ycoord}))
+ return self
+
+ def release(self, xcoord, ycoord):
+ """
+ Release previously issued tap and hold command, at specified location.
+
+ Args:
+ -xcoord: X Coordinates.
+ -ycoord: Y Coordinates.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.TOUCH_UP, {
+ 'x': xcoord,
+ 'y': ycoord}))
+ return self
+
+ def scroll(self, xoffset, yoffset):
+ """
+ Touch and scroll, moving by xoffset and yoffset.
+
+ Args:
+ -xoffset: X offset to move to.
+ -yoffset: Y offset to move to.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.TOUCH_SCROLL, {
+ 'xoffset': xoffset,
+ 'yoffset': yoffset}))
+ return self
+
+ def scroll_from_element(self, on_element, xoffset, yoffset):
+ """
+ Touch and scroll starting at on_element, moving by xoffset and yoffset.
+
+ Args:
+ -on_element: Element where scroll starts.
+ -xoffset: X offset to move to.
+ -yoffset: Y offset to move to.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.TOUCH_SCROLL, {
+ 'element': on_element.id,
+ 'xoffset': xoffset,
+ 'yoffset': yoffset}))
+ return self
+
+ def long_press(self, on_element):
+ """
+ Long press on an element.
+
+ Args:
+ -on_element: The element to long press.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.LONG_PRESS, {'element': on_element.id}))
+ return self
+
+ def flick(self, xspeed, yspeed):
+ """
+ Flicks, starting anywhere on the screen.
+
+ Args:
+ -xspeed: The X speed in pixels per second.
+ -yspeed: The Y speed in pixels per second.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.FLICK, {
+ 'xSpeed': xspeed,
+ 'ySpeed': yspeed}))
+ return self
+
+ def flick_element(self, on_element, xoffset, yoffset, speed):
+ """
+ Flick starting at on_element, and moving by the xoffset and yoffset.
+
+ Args:
+ -on_element: Flick will start at center of element.
+ -xoffset: X offset to flick to.
+ -yoffset: Y offset to flick to.
+ -speed: Pixels per second to flick.
+ """
+ self._actions.append(lambda:
+ self._driver.execute(Command.FLICK, {
+ 'element': on_element.id,
+ 'xoffset': xoffset,
+ 'yoffset': yoffset,
+ 'speed': speed}))
+ return self
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/common/utils.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/utils.py
new file mode 100644
index 00000000000..71bf8b227ee
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/common/utils.py
@@ -0,0 +1,46 @@
+# Copyright 2008-2011 WebDriver committers
+# Copyright 2008-2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import socket
+
+
+def free_port():
+ free_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ free_socket.bind(('127.0.0.1', 0))
+ free_socket.listen(5)
+ port = free_socket.getsockname()[1]
+ free_socket.close()
+ return port
+
+def is_connectable(port):
+ """Trys to connect to the server to see if it is running."""
+ try:
+ socket_ = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ socket_.settimeout(1)
+ socket_.connect(("localhost", port))
+ socket_.close()
+ return True
+ except socket.error:
+ return False
+
+def is_url_connectable(port):
+ import urllib2
+ try:
+ res = urllib2.urlopen("http://localhost:%s/status" % port)
+ if res.getcode() == 200:
+ return True
+ else:
+ return False
+ except:
+ return False
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/__init__.py
new file mode 100644
index 00000000000..a8bb36bb9b4
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/__init__.py
@@ -0,0 +1,14 @@
+# Copyright 2010 WebDriver committers
+# Copyright 2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/extension_connection.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/extension_connection.py
new file mode 100644
index 00000000000..76f7382d50d
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/extension_connection.py
@@ -0,0 +1,79 @@
+# Copyright 2008-2011 WebDriver committers
+# Copyright 2008-2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import logging
+import time
+
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+from selenium.webdriver.common import utils
+from selenium.webdriver.remote.command import Command
+from selenium.webdriver.remote.remote_connection import RemoteConnection
+from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
+
+
+LOGGER = logging.getLogger(__name__)
+PORT = 0 #
+HOST = None
+_URL = ""
+class ExtensionConnection(RemoteConnection):
+ def __init__(self, host, firefox_profile, firefox_binary=None, timeout=30):
+ self.profile = firefox_profile
+ self.binary = firefox_binary
+ HOST = host
+ if self.binary is None:
+ self.binary = FirefoxBinary()
+
+ if HOST is None:
+ HOST = "127.0.0.1"
+
+ PORT = utils.free_port()
+ self.profile.port = PORT
+ self.profile.update_preferences()
+
+ self.profile.add_extension()
+
+ self.binary.launch_browser(self.profile)
+ _URL = "http://%s:%d/hub" % (HOST, PORT)
+ RemoteConnection.__init__(
+ self, _URL)
+
+ def quit(self, sessionId=None):
+ self.execute(Command.QUIT, {'sessionId':sessionId})
+ while self.is_connectable():
+ LOGGER.info("waiting to quit")
+ time.sleep(1)
+
+ def connect(self):
+ """Connects to the extension and retrieves the session id."""
+ return self.execute(Command.NEW_SESSION, {'desiredCapabilities': DesiredCapabilities.FIREFOX})
+
+ @classmethod
+ def connect_and_quit(self):
+ """Connects to an running browser and quit immediately."""
+ self._request('%s/extensions/firefox/quit' % _URL)
+
+ @classmethod
+ def is_connectable(self):
+ """Trys to connect to the extension but do not retrieve context."""
+ utils.is_connectable(self.port)
+
+class ExtensionConnectionError(Exception):
+ """An internal error occurred int the extension.
+
+ Might be caused by bad input or bugs in webdriver
+ """
+ pass
+
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_binary.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_binary.py
new file mode 100644
index 00000000000..2d650e62a56
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_binary.py
@@ -0,0 +1,166 @@
+# Copyright 2008-2011 WebDriver committers
+# Copyright 2008-2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+import os
+import platform
+from subprocess import Popen, PIPE, STDOUT
+from selenium.common.exceptions import WebDriverException
+from selenium.webdriver.common import utils
+import time
+
+
+class FirefoxBinary(object):
+
+ NO_FOCUS_LIBRARY_NAME = "x_ignore_nofocus.so"
+
+ def __init__(self, firefox_path=None):
+ self._start_cmd = firefox_path
+ if self._start_cmd is None:
+ self._start_cmd = self._get_firefox_start_cmd()
+ # Rather than modifying the environment of the calling Python process
+ # copy it and modify as needed.
+ self._firefox_env = os.environ.copy()
+
+ def launch_browser(self, profile):
+ """Launches the browser for the given profile name.
+ It is assumed the profile already exists.
+ """
+ self.profile = profile
+
+ self._start_from_profile_path(self.profile.path)
+ self._wait_until_connectable()
+
+ def kill(self):
+ """Kill the browser.
+
+ This is useful when the browser is stuck.
+ """
+ if self.process:
+ self.process.kill()
+ self.process.wait()
+
+ def _start_from_profile_path(self, path):
+ self._firefox_env["XRE_PROFILE_PATH"] = path
+ self._firefox_env["MOZ_CRASHREPORTER_DISABLE"] = "1"
+ self._firefox_env["MOZ_NO_REMOTE"] = "1"
+ self._firefox_env["NO_EM_RESTART"] = "1"
+
+ if platform.system().lower() == 'linux':
+ self._modify_link_library_path()
+
+ Popen([self._start_cmd, "-silent"], stdout=PIPE, stderr=STDOUT,
+ env=self._firefox_env).communicate()
+ self.process = Popen(
+ [self._start_cmd, "-foreground"], stdout=PIPE, stderr=STDOUT,
+ env=self._firefox_env)
+
+ def _get_firefox_output(self):
+ return self.process.communicate()[0]
+
+ def _wait_until_connectable(self):
+ """Blocks until the extension is connectable in the firefox."""
+ count = 0
+ while not utils.is_connectable(self.profile.port):
+ if self.process.poll() is not None:
+ # Browser has exited
+ raise WebDriverException("The browser appears to have exited "
+ "before we could connect. The output was: %s" %
+ self._get_firefox_output())
+ if count == 30:
+ self.kill()
+ raise WebDriverException("Can't load the profile. Profile "
+ "Dir: %s Firefox output: %s" % (
+ self.profile.path, self._get_firefox_output()))
+ count += 1
+ time.sleep(1)
+ return True
+
+ def _find_exe_in_registry(self):
+ from _winreg import OpenKey, QueryValue, HKEY_LOCAL_MACHINE
+ import shlex
+ keys = (
+ r"SOFTWARE\Classes\FirefoxHTML\shell\open\command",
+ r"SOFTWARE\Classes\Applications\firefox.exe\shell\open\command"
+ )
+ command = ""
+ for path in keys:
+ try:
+ key = OpenKey(HKEY_LOCAL_MACHINE, path)
+ command = QueryValue(key, "")
+ break
+ except WindowsError:
+ pass
+ else:
+ return ""
+
+ return shlex.split(command)[0]
+
+ def _get_firefox_start_cmd(self):
+ """Return the command to start firefox."""
+ start_cmd = ""
+ if platform.system() == "Darwin":
+ start_cmd = ("/Applications/Firefox.app/Contents/MacOS/firefox-bin")
+ elif platform.system() == "Windows":
+ start_cmd = (self._find_exe_in_registry() or
+ self._default_windows_location())
+ elif platform.system() == 'Java' and os._name == 'nt':
+ start_cmd = self._default_windows_location()
+ else:
+ # Maybe iceweasel (Debian) is another candidate...
+ for ffname in ["firefox2", "firefox", "firefox-3.0", "firefox-4.0"]:
+ start_cmd = self.which(ffname)
+ if start_cmd is not None:
+ break
+ return start_cmd
+
+ def _default_windows_location(self):
+ program_files = os.getenv("PROGRAMFILES", r"\Program Files")
+ return os.path.join(program_files, "Mozilla Firefox\\firefox.exe")
+
+ def _modify_link_library_path(self):
+ existing_ld_lib_path = os.environ.get('LD_LIBRARY_PATH', '')
+
+ new_ld_lib_path = self._extract_and_check(
+ self.profile, self.NO_FOCUS_LIBRARY_NAME, "x86", "amd64")
+
+ new_ld_lib_path += existing_ld_lib_path
+
+ self._firefox_env["LD_LIBRARY_PATH"] = new_ld_lib_path
+ self._firefox_env['LD_PRELOAD'] = self.NO_FOCUS_LIBRARY_NAME
+
+ def _extract_and_check(self, profile, no_focus_so_name, x86, amd64):
+
+ paths = [x86, amd64]
+ built_path = ""
+ for path in paths:
+ library_path = os.path.join(profile.path, path)
+ os.makedirs(library_path)
+ import shutil
+ shutil.copy(os.path.join(os.path.dirname(__file__), path,
+ self.NO_FOCUS_LIBRARY_NAME),
+ library_path)
+ built_path += library_path + ":"
+
+ return built_path
+
+ def which(self, fname):
+ """Returns the fully qualified path by searching Path of the given
+ name"""
+ for pe in os.environ['PATH'].split(os.pathsep):
+ checkname = os.path.join(pe, fname)
+ if os.access(checkname, os.X_OK) and not os.path.isdir(checkname):
+ return checkname
+ return None
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_profile.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_profile.py
new file mode 100644
index 00000000000..eb9bb53a0e5
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/firefox_profile.py
@@ -0,0 +1,374 @@
+# Copyright 2008-2011 WebDriver committers
+# Copyright 2008-2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+from __future__ import with_statement
+
+import base64
+import copy
+import os
+import re
+import shutil
+import tempfile
+import zipfile
+from cStringIO import StringIO
+from xml.dom import minidom
+from distutils import dir_util
+from selenium.webdriver.common.proxy import ProxyType
+from selenium.common.exceptions import WebDriverException
+
+
+WEBDRIVER_EXT = "webdriver.xpi"
+EXTENSION_NAME = "fxdriver@googlecode.com"
+
+class FirefoxProfile(object):
+
+ ANONYMOUS_PROFILE_NAME = "WEBDRIVER_ANONYMOUS_PROFILE"
+ DEFAULT_PREFERENCES = {
+ "app.update.auto": "false",
+ "app.update.enabled": "false",
+ "browser.download.manager.showWhenStarting": "false",
+ "browser.EULA.override": "true",
+ "browser.EULA.3.accepted": "true",
+ "browser.link.open_external": "2",
+ "browser.link.open_newwindow": "2",
+ "browser.offline": "false",
+ "browser.safebrowsing.enabled": "false",
+ "browser.search.update": "false",
+ "extensions.blocklist.enabled": "false",
+ "browser.sessionstore.resume_from_crash": "false",
+ "browser.shell.checkDefaultBrowser": "false",
+ "browser.tabs.warnOnClose": "false",
+ "browser.tabs.warnOnOpen": "false",
+ "browser.startup.page": "0",
+ "browser.safebrowsing.malware.enabled": "false",
+ "startup.homepage_welcome_url": "\"about:blank\"",
+ "devtools.errorconsole.enabled": "true",
+ "dom.disable_open_during_load": "false",
+ "extensions.autoDisableScopes" : 10,
+ "extensions.logging.enabled": "true",
+ "extensions.update.enabled": "false",
+ "extensions.update.notifyUser": "false",
+ "network.manage-offline-status": "false",
+ "network.http.max-connections-per-server": "10",
+ "network.http.phishy-userpass-length": "255",
+ "offline-apps.allow_by_default": "true",
+ "prompts.tab_modal.enabled": "false",
+ "security.fileuri.origin_policy": "3",
+ "security.fileuri.strict_origin_policy": "false",
+ "security.warn_entering_secure": "false",
+ "security.warn_entering_secure.show_once": "false",
+ "security.warn_entering_weak": "false",
+ "security.warn_entering_weak.show_once": "false",
+ "security.warn_leaving_secure": "false",
+ "security.warn_leaving_secure.show_once": "false",
+ "security.warn_submit_insecure": "false",
+ "security.warn_viewing_mixed": "false",
+ "security.warn_viewing_mixed.show_once": "false",
+ "signon.rememberSignons": "false",
+ "toolkit.networkmanager.disable": "true",
+ "toolkit.telemetry.enabled": "false",
+ "toolkit.telemetry.prompted": "2",
+ "toolkit.telemetry.rejected": "true",
+ "javascript.options.showInConsole": "true",
+ "browser.dom.window.dump.enabled": "true",
+ "webdriver_accept_untrusted_certs": "true",
+ "webdriver_enable_native_events": "true",
+ "webdriver_assume_untrusted_issuer": "true",
+ "dom.max_script_run_time": "30",
+ }
+
+ def __init__(self,profile_directory=None):
+ """
+ Initialises a new instance of a Firefox Profile
+
+ :args:
+ - profile_directory: Directory of profile that you want to use.
+ This defaults to None and will create a new
+ directory when object is created.
+ """
+ self.default_preferences = copy.deepcopy(
+ FirefoxProfile.DEFAULT_PREFERENCES)
+ self.profile_dir = profile_directory
+ if self.profile_dir is None:
+ self.profile_dir = self._create_tempfolder()
+ else:
+ newprof = os.path.join(tempfile.mkdtemp(),
+ "webdriver-py-profilecopy")
+ shutil.copytree(self.profile_dir, newprof,
+ ignore=shutil.ignore_patterns("parent.lock", "lock", ".parentlock"))
+ self.profile_dir = newprof
+ self._read_existing_userjs()
+ self.extensionsDir = os.path.join(self.profile_dir, "extensions")
+ self.userPrefs = os.path.join(self.profile_dir, "user.js")
+
+ #Public Methods
+ def set_preference(self, key, value):
+ """
+ sets the preference that we want in the profile.
+ """
+ clean_value = ''
+ if value is True:
+ clean_value = 'true'
+ elif value is False:
+ clean_value = 'false'
+ elif isinstance(value, str):
+ clean_value = '"%s"' % value
+ elif isinstance(value, unicode):
+ clean_value = '"%s"' % value
+ else:
+ clean_value = str(int(value))
+
+ self.default_preferences[key] = clean_value
+
+ def add_extension(self, extension=WEBDRIVER_EXT):
+ self._install_extension(extension)
+
+ def update_preferences(self):
+ self._write_user_prefs(self.default_preferences)
+
+ #Properties
+
+ @property
+ def path(self):
+ """
+ Gets the profile directory that is currently being used
+ """
+ return self.profile_dir
+
+ @property
+ def port(self):
+ """
+ Gets the port that WebDriver is working on
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port that WebDriver will be running on
+ """
+ if not isinstance(port, int):
+ raise WebDriverException("Port needs to be an integer")
+ self._port = port
+ self.set_preference("webdriver_firefox_port", self._port)
+
+ @property
+ def accept_untrusted_certs(self):
+ return self._santise_pref(
+ self.default_preferences["webdriver_accept_untrusted_certs"])
+
+ @accept_untrusted_certs.setter
+ def accept_untrusted_certs(self, value):
+ if value not in [True, False]:
+ raise WebDriverException("Please pass in a Boolean to this call")
+ self.set_preference("webdriver_accept_untrusted_certs", value)
+
+ @property
+ def assume_untrusted_cert_issuer(self):
+ return self._santise_pref(self.default_preferences["webdriver_assume_untrusted_issuer"])
+
+ @assume_untrusted_cert_issuer.setter
+ def assume_untrusted_cert_issuer(self, value):
+ if value not in [True, False]:
+ raise WebDriverException("Please pass in a Boolean to this call")
+
+ self.set_preference("webdriver_assume_untrusted_issuer", value)
+
+ @property
+ def native_events_enabled(self):
+ return self._santise_pref(self.default_preferences['webdriver_enable_native_events'])
+
+ @native_events_enabled.setter
+ def native_events_enabled(self, value):
+ if value not in [True, False]:
+ raise WebDriverException("Please pass in a Boolean to this call")
+ self.set_preference("webdriver_enable_native_events", value)
+
+ @property
+ def encoded(self):
+ """
+ A zipped, base64 encoded string of profile directory
+ for use with remote WebDriver JSON wire protocol
+ """
+ fp = StringIO()
+ zipped = zipfile.ZipFile(fp, 'w', zipfile.ZIP_DEFLATED)
+ path_root = len(self.path) + 1 # account for trailing slash
+ for base, dirs, files in os.walk(self.path):
+ for fyle in files:
+ filename = os.path.join(base, fyle)
+ zipped.write(filename, filename[path_root:])
+ zipped.close()
+ return base64.encodestring(fp.getvalue())
+
+ def set_proxy(self, proxy):
+ import warnings
+ warnings.warn("This method has been deprecated. Please pass in the proxy object to the Driver Object",
+ DeprecationWarning)
+ if proxy is None:
+ raise ValueError("proxy can not be None")
+
+ if proxy.proxy_type is ProxyType.UNSPECIFIED:
+ return
+
+ self.set_preference("network.proxy.type", proxy.proxy_type['ff_value'])
+
+ if proxy.proxy_type is ProxyType.MANUAL:
+ self.set_preference("network.proxy.no_proxies_on", proxy.no_proxy)
+ self._set_manual_proxy_preference("ftp", proxy.ftp_proxy)
+ self._set_manual_proxy_preference("http", proxy.http_proxy)
+ self._set_manual_proxy_preference("ssl", proxy.ssl_proxy)
+ elif proxy.proxy_type is ProxyType.AUTODETECT:
+ self.set_preference("network.proxy.autoconfig_url", proxy.proxy_autoconfig_url)
+
+ #Private Methods
+ def _santise_pref(self, item):
+ if item == 'true':
+ return True
+ elif item == 'false':
+ return False
+ else:
+ return item
+ def _set_manual_proxy_preference(self, key, setting):
+ if setting is None or setting is '':
+ return
+
+ host_details = setting.split(":")
+ self.set_preference("network.proxy.%s" % key, host_details[1][2:])
+ if len(host_details) > 1:
+ self.set_preference("network.proxy.%s_port" % key, int(host_details[2]))
+
+ def _create_tempfolder(self):
+ """
+ Creates a temp folder to store User.js and the extension
+ """
+ return tempfile.mkdtemp()
+
+ def _write_user_prefs(self, user_prefs):
+ """
+ writes the current user prefs dictionary to disk
+ """
+ with open(self.userPrefs, "w") as f:
+ for key, value in user_prefs.items():
+ f.write('user_pref("%s", %s);\n' % (key, value))
+
+ def _read_existing_userjs(self):
+ userjs_path = os.path.join(self.profile_dir, 'user.js')
+ PREF_RE = re.compile(r'user_pref\("(.*)",\s(.*)\)')
+ try:
+ with open(userjs_path) as f:
+ for usr in f:
+ matches = re.search(PREF_RE, usr)
+ self.default_preferences[matches.group(1)] = matches.group(2)
+ except:
+ # The profile given hasn't had any changes made, i.e no users.js
+ pass
+
+ def _install_extension(self, addon, unpack=True):
+ """
+ Installs addon from a filepath, url
+ or directory of addons in the profile.
+ - path: url, path to .xpi, or directory of addons
+ - unpack: whether to unpack unless specified otherwise in the install.rdf
+ """
+ if addon == WEBDRIVER_EXT:
+ addon = os.path.join(os.path.dirname(__file__), WEBDRIVER_EXT)
+
+ tmpdir = None
+ xpifile = None
+ if addon.endswith('.xpi'):
+ tmpdir = tempfile.mkdtemp(suffix = '.' + os.path.split(addon)[-1])
+ compressed_file = zipfile.ZipFile(addon, 'r')
+ for name in compressed_file.namelist():
+ if name.endswith('/'):
+ os.makedirs(os.path.join(tmpdir, name))
+ else:
+ if not os.path.isdir(os.path.dirname(os.path.join(tmpdir, name))):
+ os.makedirs(os.path.dirname(os.path.join(tmpdir, name)))
+ data = compressed_file.read(name)
+ with open(os.path.join(tmpdir, name), 'wb') as f:
+ f.write(data)
+ xpifile = addon
+ addon = tmpdir
+
+ # determine the addon id
+ addon_details = self._addon_details(addon)
+ addon_id = addon_details.get('id')
+ assert addon_id, 'The addon id could not be found: %s' % addon
+
+ # copy the addon to the profile
+ extensions_path = os.path.join(self.profile_dir, 'extensions')
+ addon_path = os.path.join(extensions_path, addon_id)
+ if not unpack and not addon_details['unpack'] and xpifile:
+ if not os.path.exists(extensions_path):
+ os.makedirs(extensions_path)
+ shutil.copy(xpifile, addon_path + '.xpi')
+ else:
+ dir_util.copy_tree(addon, addon_path, preserve_symlinks=1)
+
+ # remove the temporary directory, if any
+ if tmpdir:
+ dir_util.remove_tree(tmpdir)
+
+ def _addon_details(self, addon_path):
+ """
+ returns a dictionary of details about the addon
+ - addon_path : path to the addon directory
+ Returns:
+ {'id': u'rainbow@colors.org', # id of the addon
+ 'version': u'1.4', # version of the addon
+ 'name': u'Rainbow', # name of the addon
+ 'unpack': False } # whether to unpack the addon
+ """
+
+ # TODO: We don't use the unpack variable yet, but we should: bug 662683
+ details = {
+ 'id': None,
+ 'name': None,
+ 'unpack': True,
+ 'version': None
+ }
+
+ def get_namespace_id(doc, url):
+ attributes = doc.documentElement.attributes
+ namespace = ""
+ for i in range(attributes.length):
+ if attributes.item(i).value == url:
+ if ":" in attributes.item(i).name:
+ # If the namespace is not the default one remove 'xlmns:'
+ namespace = attributes.item(i).name.split(':')[1] + ":"
+ break
+ return namespace
+
+ def get_text(element):
+ """Retrieve the text value of a given node"""
+ rc = []
+ for node in element.childNodes:
+ if node.nodeType == node.TEXT_NODE:
+ rc.append(node.data)
+ return ''.join(rc).strip()
+
+ doc = minidom.parse(os.path.join(addon_path, 'install.rdf'))
+
+ # Get the namespaces abbreviations
+ em = get_namespace_id(doc, "http://www.mozilla.org/2004/em-rdf#")
+ rdf = get_namespace_id(doc, "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
+
+ description = doc.getElementsByTagName(rdf + "Description").item(0)
+ for node in description.childNodes:
+ # Remove the namespace prefix from the tag for comparison
+ entry = node.nodeName.replace(em, "")
+ if entry in details.keys():
+ details.update({ entry: get_text(node) })
+
+ return details
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/webdriver.py
new file mode 100644
index 00000000000..680a15dfed2
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/firefox/webdriver.py
@@ -0,0 +1,98 @@
+# Copyright 2008-2011 WebDriver committers
+# Copyright 2008-2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+import base64
+import httplib
+import shutil
+import sys
+import urllib2
+from firefox_binary import FirefoxBinary
+from selenium.common.exceptions import ErrorInResponseException
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+from selenium.webdriver.firefox.extension_connection import ExtensionConnection
+from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
+from selenium.webdriver.remote.command import Command
+from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
+from selenium.webdriver.remote.webelement import WebElement
+
+class WebDriver(RemoteWebDriver):
+
+ # There is no native event support on Mac
+ NATIVE_EVENTS_ALLOWED = sys.platform != "darwin"
+
+ def __init__(self, firefox_profile=None, firefox_binary=None, timeout=30,
+ capabilities=None, proxy=None):
+
+ self.binary = firefox_binary
+ self.profile = firefox_profile
+
+ if self.profile is None:
+ self.profile = FirefoxProfile()
+
+ self.profile.native_events_enabled = self.NATIVE_EVENTS_ALLOWED and self.profile.native_events_enabled
+
+ if self.binary is None:
+ self.binary = FirefoxBinary()
+
+ if capabilities is None:
+ capabilities = DesiredCapabilities.FIREFOX
+
+ if proxy is not None:
+ proxy.add_to_capabilities(capabilities)
+
+
+ RemoteWebDriver.__init__(self,
+ command_executor=ExtensionConnection("127.0.0.1", self.profile,
+ self.binary, timeout),
+ desired_capabilities=capabilities)
+
+ def create_web_element(self, element_id):
+ """Override from RemoteWebDriver to use firefox.WebElement."""
+ return WebElement(self, element_id)
+
+ def quit(self):
+ """Quits the driver and close every associated window."""
+ try:
+ RemoteWebDriver.quit(self)
+ except httplib.BadStatusLine:
+ # Happens if Firefox shutsdown before we've read the response from
+ # the socket.
+ pass
+ self.binary.kill()
+ try:
+ shutil.rmtree(self.profile.path)
+ except Exception, e:
+ print str(e)
+
+ @property
+ def firefox_profile(self):
+ return self.profile
+
+ def save_screenshot(self, filename):
+ """
+ Gets the screenshot of the current window. Returns False if there is
+ any IOError, else returns True. Use full paths in your filename.
+ """
+ png = RemoteWebDriver.execute(self, Command.SCREENSHOT)['value']
+ try:
+ f = open(filename, 'wb')
+ f.write(base64.decodestring(png))
+ f.close()
+ except IOError:
+ return False
+ finally:
+ del png
+ return True
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/__init__.py
new file mode 100644
index 00000000000..edbfeebd361
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/__init__.py
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+#
+# Copyright 2008-2010 WebDriver committers
+# Copyright 2008-2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/service.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/service.py
new file mode 100644
index 00000000000..7417781d188
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/service.py
@@ -0,0 +1,106 @@
+#!/usr/bin/python
+#
+# Copyright 2012 Webdriver_name committers
+# Copyright 2012 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import subprocess
+from subprocess import PIPE
+import time
+from selenium.common.exceptions import WebDriverException
+from selenium.webdriver.common import utils
+
+class Service(object):
+ """
+ Object that manages the starting and stopping of the IEDriver
+ """
+
+ def __init__(self, executable_path, port=0, host=None, log_level=None, log_file=None):
+ """
+ Creates a new instance of the Service
+
+ :Args:
+ - executable_path : Path to the IEDriver
+ - port : Port the service is running on
+ - host : IP address the service port is bound
+ - log_level : Level of logging of service, may be "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE".
+ Default is "FATAL".
+ - log_file : Target of logging of service, may be "stdout", "stderr" or file path.
+ Default is "stdout"."""
+
+ self.port = port
+ self.path = executable_path
+ if self.port == 0:
+ self.port = utils.free_port()
+ self.host = host
+ self.log_level = log_level
+ self.log_file = log_file
+
+ def start(self):
+ """
+ Starts the IEDriver Service.
+
+ :Exceptions:
+ - WebDriverException : Raised either when it can't start the service
+ or when it can't connect to the service
+ """
+ try:
+ cmd = [self.path, "--port=%d" % self.port]
+ if self.host is not None:
+ cmd.append("--host=%s" % self.host)
+ if self.log_level is not None:
+ cmd.append("--log-level=%s" % self.log_level)
+ if self.log_file is not None:
+ cmd.append("--log-file=%s" % self.log_file)
+ self.process = subprocess.Popen(cmd,
+ stdout=PIPE, stderr=PIPE)
+ except TypeError:
+ raise
+ except:
+ raise WebDriverException(
+ "IEDriver executable needs to be available in the path. \
+ Please download from http://code.google.com/p/selenium/downloads/list\
+ and read up at http://code.google.com/p/selenium/wiki/InternetExplorerDriver")
+ count = 0
+ while not utils.is_url_connectable(self.port):
+ count += 1
+ time.sleep(1)
+ if count == 30:
+ raise WebDriverException("Can not connect to the IEDriver")
+
+ def stop(self):
+ """
+ Tells the IEDriver to stop and cleans up the process
+ """
+ #If its dead dont worry
+ if self.process is None:
+ return
+
+ #Tell the Server to die!
+ import urllib2
+ urllib2.urlopen("http://127.0.0.1:%d/shutdown" % self.port)
+ count = 0
+ while utils.is_connectable(self.port):
+ if count == 30:
+ break
+ count += 1
+ time.sleep(1)
+
+ #Tell the Server to properly die in case
+ try:
+ if self.process:
+ self.process.kill()
+ self.process.wait()
+ except WindowsError:
+ # kill may not be available under windows environment
+ pass
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/webdriver.py
new file mode 100644
index 00000000000..1f110bd4376
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/ie/webdriver.py
@@ -0,0 +1,72 @@
+#!/usr/bin/python
+#
+# Copyright 2008-2010 WebDriver committers
+# Copyright 2008-2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from selenium.webdriver.common import utils
+from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+from selenium.webdriver.remote.command import Command
+from selenium.common.exceptions import WebDriverException
+import base64
+from service import Service
+
+DEFAULT_TIMEOUT = 30
+DEFAULT_PORT = 0
+DEFAULT_HOST = None
+DEFAULT_LOG_LEVEL = None
+DEFAULT_LOG_FILE = None
+
+class WebDriver(RemoteWebDriver):
+
+ def __init__(self, executable_path='IEDriverServer.exe',
+ port=DEFAULT_PORT, timeout=DEFAULT_TIMEOUT, host=DEFAULT_HOST,
+ log_level=DEFAULT_LOG_LEVEL, log_file=DEFAULT_LOG_FILE):
+ self.port = port
+ if self.port == 0:
+ self.port = utils.free_port()
+ self.host = host
+ self.log_level = log_level
+ self.log_file = log_file
+
+ self.iedriver = Service(executable_path, port=self.port,
+ host=self.host, log_level=self.log_level, log_file=self.log_file)
+
+ self.iedriver.start()
+
+ RemoteWebDriver.__init__(
+ self,
+ command_executor='http://localhost:%d' % self.port,
+ desired_capabilities=DesiredCapabilities.INTERNETEXPLORER)
+
+ def quit(self):
+ RemoteWebDriver.quit(self)
+ self.iedriver.stop()
+
+ def save_screenshot(self, filename):
+ """
+ Gets the screenshot of the current window. Returns False if there is
+ any IOError, else returns True. Use full paths in your filename.
+ """
+ png = RemoteWebDriver.execute(self, Command.SCREENSHOT)['value']
+ try:
+ f = open(filename, 'wb')
+ f.write(base64.decodestring(png))
+ f.close()
+ except IOError:
+ return False
+ finally:
+ del png
+ return True
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/__init__.py
new file mode 100644
index 00000000000..a8bb36bb9b4
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/__init__.py
@@ -0,0 +1,14 @@
+# Copyright 2010 WebDriver committers
+# Copyright 2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/service.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/service.py
new file mode 100644
index 00000000000..688b8d8998c
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/service.py
@@ -0,0 +1,80 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Webdriver_name committers
+# Copyright 2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import subprocess
+from subprocess import PIPE
+import time
+from selenium.common.exceptions import WebDriverException
+from selenium.webdriver.common import utils
+
+class Service(object):
+ """
+ Object that manages the starting and stopping of the OperaDriver
+ """
+
+ def __init__(self, executable_path, port=0):
+ """
+ Creates a new instance of the Service
+
+ :Args:
+ - executable_path : Path to the OperaDriver
+ - port : Port the service is running on """
+
+ self.port = port
+ self.path = executable_path
+ if self.port == 0:
+ self.port = utils.free_port()
+
+ def start(self):
+ """
+ Starts the OperaDriver Service.
+
+ :Exceptions:
+ - WebDriverException : Raised either when it can't start the service
+ or when it can't connect to the service
+ """
+ try:
+ self.process = subprocess.Popen(["java", "-jar", self.path, "-port", "%s" % self.port])
+ except:
+ raise WebDriverException(
+ "OperaDriver executable needs to be available in the path. \
+ ")
+ time.sleep(10)
+ count = 0
+ while not utils.is_connectable(self.port):
+ count += 1
+ time.sleep(1)
+ if count == 30:
+ raise WebDriverException("Can not connect to the OperaDriver")
+
+ @property
+ def service_url(self):
+ """
+ Gets the url of the OperaDriver Service
+ """
+ return "http://localhost:%d/wd/hub" % self.port
+
+ def stop(self):
+ """
+ Tells the OperaDriver to stop and cleans up the process
+ """
+ #If its dead dont worry
+ if self.process is None:
+ return
+
+ self.process.kill()
+ self.process.wait()
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/webdriver.py
new file mode 100644
index 00000000000..0360b242999
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/opera/webdriver.py
@@ -0,0 +1,85 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Webdriver_name committers
+# Copyright 2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import base64
+import httplib
+import os
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+from selenium.webdriver.remote.command import Command
+from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
+from service import Service
+
+class WebDriver(RemoteWebDriver):
+ """
+ Controls the OperaDriver and allows you to drive the browser.
+
+ """
+
+ def __init__(self, executable_path=None, port=0,
+ desired_capabilities=DesiredCapabilities.OPERA):
+ """
+ Creates a new instance of the Opera driver.
+
+ Starts the service and then creates new instance of Opera Driver.
+
+ :Args:
+ - executable_path - path to the executable. If the default is used it assumes the executable is in the
+ Environment Variable SELENIUM_SERVER_JAR
+ - port - port you would like the service to run, if left as 0, a free port will be found.
+ - desired_capabilities: Dictionary object with desired capabilities (Can be used to provide various Opera switches).
+ """
+ if executable_path is None:
+ try:
+ executable_path = os.environ["SELENIUM_SERVER_JAR"]
+ except:
+ raise Exception("No executable path given, please add one to Environment Variable \
+ 'SELENIUM_SERVER_JAR'")
+ self.service = Service(executable_path, port=port)
+ self.service.start()
+
+ RemoteWebDriver.__init__(self,
+ command_executor=self.service.service_url,
+ desired_capabilities=desired_capabilities)
+
+ def quit(self):
+ """
+ Closes the browser and shuts down the OperaDriver executable
+ that is started when starting the OperaDriver
+ """
+ try:
+ RemoteWebDriver.quit(self)
+ except httplib.BadStatusLine:
+ pass
+ finally:
+ self.service.stop()
+
+ def save_screenshot(self, filename):
+ """
+ Gets the screenshot of the current window. Returns False if there is
+ any IOError, else returns True. Use full paths in your filename.
+ """
+ png = RemoteWebDriver.execute(self, Command.SCREENSHOT)['value']
+ try:
+ f = open(filename, 'wb')
+ f.write(base64.decodestring(png))
+ f.close()
+ except IOError:
+ return False
+ finally:
+ del png
+ return True
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/__init__.py
new file mode 100644
index 00000000000..ce6fdad3735
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/__init__.py
@@ -0,0 +1,13 @@
+# Copyright 2012 Software Freedom Conservancy
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/service.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/service.py
new file mode 100644
index 00000000000..21c5e5fb1c0
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/service.py
@@ -0,0 +1,93 @@
+#!/usr/bin/python
+#
+# Copyright 2012 Software Freedom Conservancy
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+import subprocess
+import time
+
+from selenium.common.exceptions import WebDriverException
+from selenium.webdriver.common import utils
+
+class Service(object):
+ """
+ Object that manages the starting and stopping of PhantomJS / Ghostdriver
+ """
+
+ def __init__(self, executable_path, port=0, service_args=None):
+ """
+ Creates a new instance of the Service
+
+ :Args:
+ - executable_path : Path to PhantomJS binary
+ - port : Port the service is running on
+ - service_args : A List of other command line options to pass to PhantomJS
+ """
+
+ self.port = port
+ self.path = executable_path
+ self.service_args= service_args
+ if self.port == 0:
+ self.port = utils.free_port()
+ if self.service_args is None:
+ self.service_args = []
+ self.service_args.insert(0, self.path)
+ self.service_args.append("--webdriver=%d" % self.port)
+ self._log = open("ghostdriver.log", 'w')
+
+ def start(self):
+ """
+ Starts PhantomJS with GhostDriver.
+
+ :Exceptions:
+ - WebDriverException : Raised either when it can't start the service
+ or when it can't connect to the service
+ """
+ try:
+ self.process = subprocess.Popen(self.service_args,
+ stdout=self._log, stderr=self._log)
+ except Exception, e:
+ raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
+ count = 0
+ while not utils.is_connectable(self.port):
+ count += 1
+ time.sleep(1)
+ if count == 30:
+ raise WebDriverException("Can not connect to GhostDriver")
+
+ @property
+ def service_url(self):
+ """
+ Gets the url of the GhostDriver Service
+ """
+ return "http://localhost:%d/wd/hub" % self.port
+
+ def stop(self):
+ """
+ Cleans up the process
+ """
+ if self._log:
+ self._log.close()
+ self._log = None
+ #If its dead dont worry
+ if self.process is None:
+ return
+
+ #Tell the Server to properly die in case
+ try:
+ if self.process:
+ self.process.kill()
+ self.process.wait()
+ except WindowsError:
+ # kill may not be available under windows environment
+ pass
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/webdriver.py
new file mode 100644
index 00000000000..62f8d196ec7
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/phantomjs/webdriver.py
@@ -0,0 +1,74 @@
+#!/usr/bin/python
+#
+# Copyright 2012 Software freedom conservancy
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import base64
+import httplib
+from selenium.webdriver.remote.command import Command
+from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
+from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
+from selenium.common.exceptions import WebDriverException
+from service import Service
+
+class WebDriver(RemoteWebDriver):
+ """
+ Wrapper to communicate with PhantomJS through Ghostdriver.
+
+ You will need to follow all the directions here:
+ https://github.com/detro/ghostdriver
+ """
+
+ def __init__(self, executable_path="phantomjs",
+ port=0, desired_capabilities=DesiredCapabilities.PHANTOMJS):
+ """
+ Creates a new instance of the PhantomJS / Ghostdriver.
+
+ Starts the service and then creates new instance of the driver.
+
+ :Args:
+ - executable_path - path to the executable. If the default is used it assumes the executable is in the $PATH
+ - port - port you would like the service to run, if left as 0, a free port will be found.
+ - desired_capabilities: Dictionary object with non-browser specific
+ capabilities only, such as "proxy" or "loggingPref".
+ """
+ self.service = Service(executable_path, port=port)
+ self.service.start()
+
+ try:
+ RemoteWebDriver.__init__(self,
+ command_executor=self.service.service_url,
+ desired_capabilities=desired_capabilities)
+ except:
+ self.quit()
+ raise
+
+ def quit(self):
+ """
+ Closes the browser and shuts down the PhantomJS executable
+ that is started when starting the PhantomJS
+ """
+ try:
+ RemoteWebDriver.quit(self)
+ except:
+ # We don't care about the message because something probably has gone wrong
+ pass
+ finally:
+ self.service.stop()
+
+ def __del__(self):
+ try:
+ self.service.stop()
+ except:
+ pass
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/__init__.py
new file mode 100644
index 00000000000..f042f9da329
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/__init__.py
@@ -0,0 +1,14 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/command.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/command.py
new file mode 100644
index 00000000000..43fe28dd0bc
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/command.py
@@ -0,0 +1,144 @@
+# Copyright 2010 WebDriver committers
+# Copyright 2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+class Command(object):
+ """
+ Defines constants for the standard WebDriver commands.
+
+ While these constants have no meaning in and of themselves, they are
+ used to marshal commands through a service that implements WebDriver's
+ remote wire protocol:
+
+ http://code.google.com/p/selenium/wiki/JsonWireProtocol
+ """
+
+ # Keep in sync with org.openqa.selenium.remote.DriverCommand
+
+ NEW_SESSION = "newSession"
+ DELETE_SESSION = "deleteSession"
+ CLOSE = "close"
+ QUIT = "quit"
+ GET = "get"
+ GO_BACK = "goBack"
+ GO_FORWARD = "goForward"
+ REFRESH = "refresh"
+ ADD_COOKIE = "addCookie"
+ GET_COOKIE = "getCookie"
+ GET_ALL_COOKIES = "getCookies"
+ DELETE_COOKIE = "deleteCookie"
+ DELETE_ALL_COOKIES = "deleteAllCookies"
+ FIND_ELEMENT = "findElement"
+ FIND_ELEMENTS = "findElements"
+ FIND_CHILD_ELEMENT = "findChildElement"
+ FIND_CHILD_ELEMENTS = "findChildElements"
+ CLEAR_ELEMENT = "clearElement"
+ CLICK_ELEMENT = "clickElement"
+ HOVER_OVER_ELEMENT = "hoverOverElement"
+ SEND_KEYS_TO_ELEMENT = "sendKeysToElement"
+ SEND_KEYS_TO_ACTIVE_ELEMENT = "sendKeysToActiveElement"
+ SUBMIT_ELEMENT = "submitElement"
+ UPLOAD_FILE = "uploadFile"
+ TOGGLE_ELEMENT = "toggleElement"
+ GET_CURRENT_WINDOW_HANDLE = "getCurrentWindowHandle"
+ GET_WINDOW_HANDLES = "getWindowHandles"
+ GET_WINDOW_SIZE = "getWindowSize"
+ GET_WINDOW_POSITION = "getWindowPosition"
+ SET_WINDOW_SIZE = "setWindowSize"
+ SET_WINDOW_POSITION = "setWindowPosition"
+ SWITCH_TO_WINDOW = "switchToWindow"
+ SWITCH_TO_FRAME = "switchToFrame"
+ GET_ACTIVE_ELEMENT = "getActiveElement"
+ GET_CURRENT_URL = "getCurrentUrl"
+ GET_PAGE_SOURCE = "getPageSource"
+ GET_TITLE = "getTitle"
+ EXECUTE_SCRIPT = "executeScript"
+ GET_SPEED = "getSpeed"
+ SET_SPEED = "setSpeed"
+ SET_BROWSER_VISIBLE = "setBrowserVisible"
+ IS_BROWSER_VISIBLE = "isBrowserVisible"
+ GET_ELEMENT_TEXT = "getElementText"
+ GET_ELEMENT_VALUE = "getElementValue"
+ GET_ELEMENT_TAG_NAME = "getElementTagName"
+ SET_ELEMENT_SELECTED = "setElementSelected"
+ DRAG_ELEMENT = "dragElement"
+ IS_ELEMENT_SELECTED = "isElementSelected"
+ IS_ELEMENT_ENABLED = "isElementEnabled"
+ IS_ELEMENT_DISPLAYED = "isElementDisplayed"
+ GET_ELEMENT_LOCATION = "getElementLocation"
+ GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW = "getElementLocationOnceScrolledIntoView"
+ GET_ELEMENT_SIZE = "getElementSize"
+ GET_ELEMENT_ATTRIBUTE = "getElementAttribute"
+ GET_ELEMENT_VALUE_OF_CSS_PROPERTY = "getElementValueOfCssProperty"
+ ELEMENT_EQUALS = "elementEquals"
+ SCREENSHOT = "screenshot"
+ IMPLICIT_WAIT = "implicitlyWait"
+ EXECUTE_ASYNC_SCRIPT = "executeAsyncScript"
+ SET_SCRIPT_TIMEOUT = "setScriptTimeout"
+ SET_TIMEOUTS = "setTimeouts"
+ MAXIMIZE_WINDOW = "windowMaximize"
+
+ #Alerts
+ DISMISS_ALERT = "dismissAlert"
+ ACCEPT_ALERT = "acceptAlert"
+ SET_ALERT_VALUE = "setAlertValue"
+ GET_ALERT_TEXT = "getAlertText"
+
+ # Advanced user interactions
+ CLICK = "mouseClick";
+ DOUBLE_CLICK = "mouseDoubleClick";
+ MOUSE_DOWN = "mouseButtonDown";
+ MOUSE_UP = "mouseButtonUp";
+ MOVE_TO = "mouseMoveTo";
+
+ # Screen Orientation
+ SET_SCREEN_ORIENTATION = "setScreenOrientation"
+ GET_SCREEN_ORIENTATION = "getScreenOrientation"
+
+ # Touch Actions
+ SINGLE_TAP = "touchSingleTap";
+ TOUCH_DOWN = "touchDown";
+ TOUCH_UP = "touchUp";
+ TOUCH_MOVE = "touchMove";
+ TOUCH_SCROLL = "touchScroll";
+ DOUBLE_TAP = "touchDoubleTap";
+ LONG_PRESS = "touchLongPress";
+ FLICK = "touchFlick";
+
+ #HTML 5
+ EXECUTE_SQL = "executeSql"
+
+ GET_LOCATION = "getLocation"
+ SET_LOCATION = "setLocation"
+
+ GET_APP_CACHE = "getAppCache"
+ GET_APP_CACHE_STATUS = "getAppCacheStatus"
+ CLEAR_APP_CACHE = "clearAppCache"
+
+ IS_BROWSER_ONLINE = "isBrowserOnline"
+ SET_BROWSER_ONLINE = "setBrowserOnline"
+
+ GET_LOCAL_STORAGE_ITEM = "getLocalStorageItem"
+ REMOVE_LOCAL_STORAGE_ITEM = "removeLocalStorageItem"
+ GET_LOCAL_STORAGE_KEYS = "getLocalStorageKeys"
+ SET_LOCAL_STORAGE_ITEM = "setLocalStorageItem"
+ CLEAR_LOCAL_STORAGE = "clearLocalStorage"
+ GET_LOCAL_STORAGE_SIZE = "getLocalStorageSize"
+
+ GET_SESSION_STORAGE_ITEM= "getSessionStorageItem"
+ REMOVE_SESSION_STORAGE_ITEM = "removeSessionStorageItem"
+ GET_SESSION_STORAGE_KEYS = "getSessionStorageKeys"
+ SET_SESSION_STORAGE_ITEM = "setSessionStorageItem"
+ CLEAR_SESSION_STORAGE = "clearSessionStorage"
+ GET_SESSION_STORAGE_SIZE = "getSessionStorageSize"
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/errorhandler.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/errorhandler.py
new file mode 100644
index 00000000000..84a2256265d
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/errorhandler.py
@@ -0,0 +1,152 @@
+# Copyright 2010 WebDriver committers
+# Copyright 2010 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from selenium.common.exceptions import ElementNotSelectableException
+from selenium.common.exceptions import ElementNotVisibleException
+from selenium.common.exceptions import InvalidCookieDomainException
+from selenium.common.exceptions import InvalidElementStateException
+from selenium.common.exceptions import InvalidSelectorException
+from selenium.common.exceptions import ImeNotAvailableException
+from selenium.common.exceptions import ImeActivationFailedException
+from selenium.common.exceptions import NoSuchElementException
+from selenium.common.exceptions import NoSuchFrameException
+from selenium.common.exceptions import NoSuchWindowException
+from selenium.common.exceptions import StaleElementReferenceException
+from selenium.common.exceptions import UnableToSetCookieException
+from selenium.common.exceptions import NoAlertPresentException
+from selenium.common.exceptions import ErrorInResponseException
+from selenium.common.exceptions import TimeoutException
+from selenium.common.exceptions import WebDriverException
+from selenium.common.exceptions import MoveTargetOutOfBoundsException
+
+class ErrorCode(object):
+ """
+ Error codes defined in the WebDriver wire protocol.
+ """
+ # Keep in sync with org.openqa.selenium.remote.ErrorCodes and errorcodes.h
+ SUCCESS = 0
+ NO_SUCH_ELEMENT = 7
+ NO_SUCH_FRAME = 8
+ UNKNOWN_COMMAND = 9
+ STALE_ELEMENT_REFERENCE = 10
+ ELEMENT_NOT_VISIBLE = 11
+ INVALID_ELEMENT_STATE = 12
+ UNKNOWN_ERROR = 13
+ ELEMENT_IS_NOT_SELECTABLE = 15
+ JAVASCRIPT_ERROR = 17
+ XPATH_LOOKUP_ERROR = 19
+ TIMEOUT = 21
+ NO_SUCH_WINDOW = 23
+ INVALID_COOKIE_DOMAIN = 24
+ UNABLE_TO_SET_COOKIE = 25
+ UNEXPECTED_ALERT_OPEN = 26
+ NO_ALERT_OPEN = 27
+ SCRIPT_TIMEOUT = 28
+ INVALID_ELEMENT_COORDINATES = 29
+ IME_NOT_AVAILABLE = 30;
+ IME_ENGINE_ACTIVATION_FAILED = 31
+ INVALID_SELECTOR = 32
+ MOVE_TARGET_OUT_OF_BOUNDS = 34
+ INVALID_XPATH_SELECTOR = 51
+ INVALID_XPATH_SELECTOR_RETURN_TYPER = 52
+ METHOD_NOT_ALLOWED = 405
+
+
+class ErrorHandler(object):
+ """
+ Handles errors returned by the WebDriver server.
+ """
+ def check_response(self, response):
+ """
+ Checks that a JSON response from the WebDriver does not have an error.
+
+ :Args:
+ - response - The JSON response from the WebDriver server as a dictionary
+ object.
+
+ :Raises: If the response contains an error message.
+ """
+ status = response['status']
+ if status == ErrorCode.SUCCESS:
+ return
+ exception_class = ErrorInResponseException
+ if status == ErrorCode.NO_SUCH_ELEMENT:
+ exception_class = NoSuchElementException
+ elif status == ErrorCode.NO_SUCH_FRAME:
+ exception_class = NoSuchFrameException
+ elif status == ErrorCode.NO_SUCH_WINDOW:
+ exception_class = NoSuchWindowException
+ elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
+ exception_class = StaleElementReferenceException
+ elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
+ exception_class = ElementNotVisibleException
+ elif status == ErrorCode.INVALID_ELEMENT_STATE:
+ exception_class = InvalidElementStateException
+ elif status == ErrorCode.INVALID_SELECTOR \
+ or status == ErrorCode.INVALID_XPATH_SELECTOR \
+ or status == ErrorCode.INVALID_XPATH_SELECTOR_RETURN_TYPER:
+ exception_class = InvalidSelectorException
+ elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
+ exception_class = ElementNotSelectableException
+ elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
+ exception_class = WebDriverException
+ elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
+ exception_class = WebDriverException
+ elif status == ErrorCode.TIMEOUT:
+ exception_class = TimeoutException
+ elif status == ErrorCode.SCRIPT_TIMEOUT:
+ exception_class = TimeoutException
+ elif status == ErrorCode.UNKNOWN_ERROR:
+ exception_class = WebDriverException
+ elif status == ErrorCode.NO_ALERT_OPEN:
+ exception_class = NoAlertPresentException
+ elif status == ErrorCode.IME_NOT_AVAILABLE:
+ exception_class = ImeNotAvailableException
+ elif status == ErrorCode.IME_ENGINE_ACTIVATION_FAILED:
+ exception_class = ImeActivationFailedException
+ elif status == ErrorCode.MOVE_TARGET_OUT_OF_BOUNDS:
+ exception_class = MoveTargetOutOfBoundsException
+ else:
+ exception_class = WebDriverException
+ value = response['value']
+ if type(value) is str:
+ if exception_class == ErrorInResponseException:
+ raise exception_class(response, value)
+ raise exception_class(value)
+ message = ''
+ if 'message' in value:
+ message = value['message']
+
+ screen = None
+ if 'screen' in value:
+ screen = value['screen']
+
+ stacktrace = None
+ if 'stackTrace' in value and value['stackTrace']:
+ zeroeth = ''
+ try:
+ zeroeth = value['stackTrace'][0]
+ except:
+ pass
+ if zeroeth.has_key('methodName'):
+ stacktrace = "Method %s threw an error in %s" % \
+ (zeroeth['methodName'],
+ self._value_or_default(zeroeth, 'fileName', '[No file name]'))
+ if exception_class == ErrorInResponseException:
+ raise exception_class(response, message)
+ raise exception_class(message, screen, stacktrace)
+
+ def _value_or_default(self, obj, key, default):
+ return obj[key] if obj.has_key(key) else default
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/remote_connection.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/remote_connection.py
new file mode 100644
index 00000000000..a7c6387a49a
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/remote_connection.py
@@ -0,0 +1,402 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import logging
+import socket
+import string
+import urllib2
+import urlparse
+
+from command import Command
+import utils
+
+LOGGER = logging.getLogger(__name__)
+
+class Request(urllib2.Request):
+ """
+ Extends the urllib2.Request to support all HTTP request types.
+ """
+
+ def __init__(self, url, data=None, method=None):
+ """
+ Initialise a new HTTP request.
+
+ :Args:
+ - url - String for the URL to send the request to.
+ - data - Data to send with the request.
+ """
+ if method is None:
+ method = data is not None and 'POST' or 'GET'
+ elif method != 'POST' and method != 'PUT':
+ data = None
+ self._method = method
+ urllib2.Request.__init__(self, url, data=data)
+
+ def get_method(self):
+ """
+ Returns the HTTP method used by this request.
+ """
+ return self._method
+
+
+class Response(object):
+ """
+ Represents an HTTP response.
+ """
+
+ def __init__(self, fp, code, headers, url):
+ """
+ Initialise a new Response.
+
+ :Args:
+ - fp - The response body file object.
+ - code - The HTTP status code returned by the server.
+ - headers - A dictionary of headers returned by the server.
+ - url - URL of the retrieved resource represented by this Response.
+ """
+ self.fp = fp
+ self.read = fp.read
+ self.code = code
+ self.headers = headers
+ self.url = url
+
+ def close(self):
+ """
+ Close the response body file object.
+ """
+ self.read = None
+ self.fp = None
+
+ def info(self):
+ """
+ Returns the response headers.
+ """
+ return self.headers
+
+ def geturl(self):
+ """
+ Returns the URL for the resource returned in this response.
+ """
+ return self.url
+
+
+class HttpErrorHandler(urllib2.HTTPDefaultErrorHandler):
+ """
+ A custom HTTP error handler.
+
+ Used to return Response objects instead of raising an HTTPError exception.
+ """
+
+ def http_error_default(self, req, fp, code, msg, headers):
+ """
+ Default HTTP error handler.
+
+ :Args:
+ - req - The original Request object.
+ - fp - The response body file object.
+ - code - The HTTP status code returned by the server.
+ - msg - The HTTP status message returned by the server.
+ - headers - The response headers.
+
+ :Returns:
+ A new Response object.
+ """
+ return Response(fp, code, headers, req.get_full_url())
+
+
+class RemoteConnection(object):
+ """
+ A connection with the Remote WebDriver server.
+
+ Communicates with the server using the WebDriver wire protocol:
+ http://code.google.com/p/selenium/wiki/JsonWireProtocol
+ """
+
+ def __init__(self, remote_server_addr):
+ # Attempt to resolve the hostname and get an IP address.
+ parsed_url = urlparse.urlparse(remote_server_addr)
+ if parsed_url.hostname:
+ try:
+ netloc = socket.gethostbyname(parsed_url.hostname)
+ if parsed_url.port:
+ netloc += ':%d' % parsed_url.port
+ if parsed_url.username:
+ auth = parsed_url.username
+ if parsed_url.password:
+ auth += ':%s' % parsed_url.password
+ netloc = '%s@%s' % (auth, netloc)
+ remote_server_addr = urlparse.urlunparse(
+ (parsed_url.scheme, netloc, parsed_url.path,
+ parsed_url.params, parsed_url.query, parsed_url.fragment))
+ except socket.gaierror:
+ LOGGER.info('Could not get IP address for host: %s' %
+ parsed_url.hostname)
+
+ self._url = remote_server_addr
+ self._commands = {
+ Command.NEW_SESSION: ('POST', '/session'),
+ Command.QUIT: ('DELETE', '/session/$sessionId'),
+ Command.GET_CURRENT_WINDOW_HANDLE:
+ ('GET', '/session/$sessionId/window_handle'),
+ Command.GET_WINDOW_HANDLES:
+ ('GET', '/session/$sessionId/window_handles'),
+ Command.GET: ('POST', '/session/$sessionId/url'),
+ Command.GO_FORWARD: ('POST', '/session/$sessionId/forward'),
+ Command.GO_BACK: ('POST', '/session/$sessionId/back'),
+ Command.REFRESH: ('POST', '/session/$sessionId/refresh'),
+ Command.EXECUTE_SCRIPT: ('POST', '/session/$sessionId/execute'),
+ Command.GET_CURRENT_URL: ('GET', '/session/$sessionId/url'),
+ Command.GET_TITLE: ('GET', '/session/$sessionId/title'),
+ Command.GET_PAGE_SOURCE: ('GET', '/session/$sessionId/source'),
+ Command.SCREENSHOT: ('GET', '/session/$sessionId/screenshot'),
+ Command.SET_BROWSER_VISIBLE:
+ ('POST', '/session/$sessionId/visible'),
+ Command.IS_BROWSER_VISIBLE: ('GET', '/session/$sessionId/visible'),
+ Command.FIND_ELEMENT: ('POST', '/session/$sessionId/element'),
+ Command.FIND_ELEMENTS: ('POST', '/session/$sessionId/elements'),
+ Command.GET_ACTIVE_ELEMENT:
+ ('POST', '/session/$sessionId/element/active'),
+ Command.FIND_CHILD_ELEMENT:
+ ('POST', '/session/$sessionId/element/$id/element'),
+ Command.FIND_CHILD_ELEMENTS:
+ ('POST', '/session/$sessionId/element/$id/elements'),
+ Command.CLICK_ELEMENT: ('POST', '/session/$sessionId/element/$id/click'),
+ Command.CLEAR_ELEMENT: ('POST', '/session/$sessionId/element/$id/clear'),
+ Command.SUBMIT_ELEMENT: ('POST', '/session/$sessionId/element/$id/submit'),
+ Command.GET_ELEMENT_TEXT: ('GET', '/session/$sessionId/element/$id/text'),
+ Command.SEND_KEYS_TO_ELEMENT:
+ ('POST', '/session/$sessionId/element/$id/value'),
+ Command.SEND_KEYS_TO_ACTIVE_ELEMENT:
+ ('POST', '/session/$sessionId/keys'),
+ Command.UPLOAD_FILE: ('POST', "/session/$sessionId/file"),
+ Command.GET_ELEMENT_VALUE:
+ ('GET', '/session/$sessionId/element/$id/value'),
+ Command.GET_ELEMENT_TAG_NAME:
+ ('GET', '/session/$sessionId/element/$id/name'),
+ Command.IS_ELEMENT_SELECTED:
+ ('GET', '/session/$sessionId/element/$id/selected'),
+ Command.SET_ELEMENT_SELECTED:
+ ('POST', '/session/$sessionId/element/$id/selected'),
+ Command.TOGGLE_ELEMENT:
+ ('POST', '/session/$sessionId/element/$id/toggle'),
+ Command.IS_ELEMENT_ENABLED:
+ ('GET', '/session/$sessionId/element/$id/enabled'),
+ Command.IS_ELEMENT_DISPLAYED:
+ ('GET', '/session/$sessionId/element/$id/displayed'),
+ Command.HOVER_OVER_ELEMENT:
+ ('POST', '/session/$sessionId/element/$id/hover'),
+ Command.GET_ELEMENT_LOCATION:
+ ('GET', '/session/$sessionId/element/$id/location'),
+ Command.GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW:
+ ('GET', '/session/$sessionId/element/$id/location_in_view'),
+ Command.GET_ELEMENT_SIZE:
+ ('GET', '/session/$sessionId/element/$id/size'),
+ Command.GET_ELEMENT_ATTRIBUTE:
+ ('GET', '/session/$sessionId/element/$id/attribute/$name'),
+ Command.ELEMENT_EQUALS:
+ ('GET', '/session/$sessionId/element/$id/equals/$other'),
+ Command.GET_ALL_COOKIES: ('GET', '/session/$sessionId/cookie'),
+ Command.ADD_COOKIE: ('POST', '/session/$sessionId/cookie'),
+ Command.DELETE_ALL_COOKIES:
+ ('DELETE', '/session/$sessionId/cookie'),
+ Command.DELETE_COOKIE:
+ ('DELETE', '/session/$sessionId/cookie/$name'),
+ Command.SWITCH_TO_FRAME: ('POST', '/session/$sessionId/frame'),
+ Command.SWITCH_TO_WINDOW: ('POST', '/session/$sessionId/window'),
+ Command.CLOSE: ('DELETE', '/session/$sessionId/window'),
+ Command.DRAG_ELEMENT:
+ ('POST', '/session/$sessionId/element/$id/drag'),
+ Command.GET_SPEED: ('GET', '/session/$sessionId/speed'),
+ Command.SET_SPEED: ('POST', '/session/$sessionId/speed'),
+ Command.GET_ELEMENT_VALUE_OF_CSS_PROPERTY:
+ ('GET', '/session/$sessionId/element/$id/css/$propertyName'),
+ Command.IMPLICIT_WAIT:
+ ('POST', '/session/$sessionId/timeouts/implicit_wait'),
+ Command.EXECUTE_ASYNC_SCRIPT: ('POST','/session/$sessionId/execute_async'),
+ Command.SET_SCRIPT_TIMEOUT:
+ ('POST', '/session/$sessionId/timeouts/async_script'),
+ Command.SET_TIMEOUTS:
+ ('POST', '/session/$sessionId/timeouts'),
+ Command.DISMISS_ALERT:
+ ('POST', '/session/$sessionId/dismiss_alert'),
+ Command.ACCEPT_ALERT:
+ ('POST', '/session/$sessionId/accept_alert'),
+ Command.SET_ALERT_VALUE:
+ ('POST', '/session/$sessionId/alert_text'),
+ Command.GET_ALERT_TEXT:
+ ('GET', '/session/$sessionId/alert_text'),
+ Command.CLICK:
+ ('POST', '/session/$sessionId/click'),
+ Command.DOUBLE_CLICK:
+ ('POST', '/session/$sessionId/doubleclick'),
+ Command.MOUSE_DOWN:
+ ('POST', '/session/$sessionId/buttondown'),
+ Command.MOUSE_UP:
+ ('POST', '/session/$sessionId/buttonup'),
+ Command.MOVE_TO:
+ ('POST', '/session/$sessionId/moveto'),
+ Command.GET_WINDOW_SIZE:
+ ('GET', '/session/$sessionId/window/$windowHandle/size'),
+ Command.SET_WINDOW_SIZE:
+ ('POST', '/session/$sessionId/window/$windowHandle/size'),
+ Command.GET_WINDOW_POSITION:
+ ('GET', '/session/$sessionId/window/$windowHandle/position'),
+ Command.SET_WINDOW_POSITION:
+ ('POST', '/session/$sessionId/window/$windowHandle/position'),
+ Command.MAXIMIZE_WINDOW:
+ ('POST', '/session/$sessionId/window/$windowHandle/maximize'),
+ Command.SET_SCREEN_ORIENTATION:
+ ('POST', '/session/$sessionId/orientation'),
+ Command.GET_SCREEN_ORIENTATION:
+ ('GET', '/session/$sessionId/orientation'),
+ Command.SINGLE_TAP:
+ ('POST', '/session/$sessionId/touch/click'),
+ Command.TOUCH_DOWN:
+ ('POST', '/session/$sessionId/touch/down'),
+ Command.TOUCH_UP:
+ ('POST', '/session/$sessionId/touch/up'),
+ Command.TOUCH_MOVE:
+ ('POST', '/session/$sessionId/touch/move'),
+ Command.TOUCH_SCROLL:
+ ('POST', '/session/$sessionId/touch/scroll'),
+ Command.DOUBLE_TAP:
+ ('POST', '/session/$sessionId/touch/doubleclick'),
+ Command.LONG_PRESS:
+ ('POST', '/session/$sessionId/touch/longclick'),
+ Command.FLICK:
+ ('POST', '/session/$sessionId/touch/flick'),
+ Command.EXECUTE_SQL:
+ ('POST', '/session/$sessionId/execute_sql'),
+ Command.GET_LOCATION:
+ ('GET', '/session/$sessionId/location'),
+ Command.SET_LOCATION:
+ ('POST', '/session/$sessionId/location'),
+ Command.GET_APP_CACHE:
+ ('GET', '/session/$sessionId/application_cache'),
+ Command.GET_APP_CACHE_STATUS:
+ ('GET', '/session/$sessionId/application_cache/status'),
+ Command.CLEAR_APP_CACHE:
+ ('DELETE', '/session/$sessionId/application_cache/clear'),
+ Command.IS_BROWSER_ONLINE:
+ ('GET', '/session/$sessionId/browser_connection'),
+ Command.SET_BROWSER_ONLINE:
+ ('POST', '/session/$sessionId/browser_connection'),
+ Command.GET_LOCAL_STORAGE_ITEM:
+ ('GET', '/session/$sessionId/local_storage/key/$key'),
+ Command.REMOVE_LOCAL_STORAGE_ITEM:
+ ('POST', '/session/$sessionId/local_storage/key/$key'),
+ Command.GET_LOCAL_STORAGE_KEYS:
+ ('GET', '/session/$sessionId/local_storage'),
+ Command.SET_LOCAL_STORAGE_ITEM:
+ ('POST', '/session/$sessionId/local_storage'),
+ Command.CLEAR_LOCAL_STORAGE:
+ ('DELETE', '/session/$sessionId/local_storage'),
+ Command.GET_LOCAL_STORAGE_SIZE:
+ ('GET', '/session/$sessionId/local_storage/size'),
+ Command.GET_SESSION_STORAGE_ITEM:
+ ('GET', '/session/$sessionId/session_storage/key/$key'),
+ Command.REMOVE_SESSION_STORAGE_ITEM:
+ ('DELETE', '/session/$sessionId/session_storage/key/$key'),
+ Command.GET_SESSION_STORAGE_KEYS:
+ ('GET', '/session/$sessionId/session_storage'),
+ Command.SET_SESSION_STORAGE_ITEM:
+ ('POST', '/session/$sessionId/session_storage'),
+ Command.CLEAR_SESSION_STORAGE:
+ ('DELETE', '/session/$sessionId/session_storage'),
+ Command.GET_SESSION_STORAGE_SIZE:
+ ('GET','/session/$sessionId/session_storage/size'),
+ }
+
+ def execute(self, command, params):
+ """
+ Send a command to the remote server.
+
+ Any path subtitutions required for the URL mapped to the command should be
+ included in the command parameters.
+
+ :Args:
+ - command - A string specifying the command to execute.
+ - params - A dictionary of named parameters to send with the command as
+ its JSON payload.
+ """
+ command_info = self._commands[command]
+ assert command_info is not None, 'Unrecognised command %s' % command
+ data = utils.dump_json(params)
+ path = string.Template(command_info[1]).substitute(params)
+ url = '%s%s' % (self._url, path)
+ return self._request(url, method=command_info[0], data=data)
+
+ def _request(self, url, data=None, method=None):
+ """
+ Send an HTTP request to the remote server.
+
+ :Args:
+ - method - A string for the HTTP method to send the request with.
+ - url - The URL to send the request to.
+ - body - The message body to send.
+
+ :Returns:
+ A dictionary with the server's parsed JSON response.
+ """
+ LOGGER.debug('%s %s %s' % (method, url, data))
+
+ parsed_url = urlparse.urlparse(url)
+ auth = None
+ password_manager = None
+ if parsed_url.username:
+ netloc = parsed_url.hostname
+ if parsed_url.port:
+ netloc += ":%s" % parsed_url.port
+ cleaned_url = urlparse.urlunparse((parsed_url.scheme, netloc, parsed_url.path,
+ parsed_url.params, parsed_url.query, parsed_url.fragment))
+ password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()
+ password_manager.add_password(None, "%s://%s" % (parsed_url.scheme, netloc), parsed_url.username, parsed_url.password)
+ request = Request(cleaned_url, data=data, method=method)
+ else:
+ request = Request(url, data=data, method=method)
+
+
+ request.add_header('Accept', 'application/json')
+ request.add_header('Content-Type', 'application/json;charset=UTF-8')
+
+ if password_manager:
+ opener = urllib2.build_opener(urllib2.HTTPRedirectHandler(),
+ HttpErrorHandler(),
+ urllib2.HTTPBasicAuthHandler(password_manager))
+ else:
+ opener = urllib2.build_opener(urllib2.HTTPRedirectHandler(),
+ HttpErrorHandler())
+ response = opener.open(request)
+ try:
+ if response.code > 399 and response.code < 500:
+ return {'status': response.code, 'value': response.read()}
+ body = response.read().replace('\x00', '').strip()
+ content_type = response.info().getheader('Content-Type') or []
+ if 'application/json' in content_type:
+ data = utils.load_json(body.strip())
+ assert type(data) is dict, (
+ 'Invalid server response body: %s' % body)
+ assert 'status' in data, (
+ 'Invalid server response; no status: %s' % body)
+ # Some of the drivers incorrectly return a response
+ # with no 'value' field when they should return null.
+ if 'value' not in data:
+ data['value'] = None
+ return data
+ elif 'image/png' in content_type:
+ data = {'status': 0, 'value': body.strip()}
+ return data
+ finally:
+ response.close()
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/utils.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/utils.py
new file mode 100644
index 00000000000..aa32fa672cd
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/utils.py
@@ -0,0 +1,112 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import logging
+import os
+import tempfile
+import zipfile
+
+try:
+ import json
+except ImportError: # < 2.6
+ import simplejson as json
+
+if not hasattr(json, 'dumps'):
+ import simplejson as json
+
+from selenium.common.exceptions import NoSuchElementException
+
+LOGGER = logging.getLogger(__name__)
+
+def format_json(json_struct):
+ return json.dumps(json_struct, indent=4)
+
+def dump_json(json_struct):
+ return json.dumps(json_struct)
+
+def load_json(s):
+ return json.loads(s)
+
+def handle_find_element_exception(e):
+ if ("Unable to find" in e.response["value"]["message"] or
+ "Unable to locate" in e.response["value"]["message"]):
+ raise NoSuchElementException("Unable to locate element:")
+ else:
+ raise e
+
+def return_value_if_exists(resp):
+ if resp and "value" in resp:
+ return resp["value"]
+
+def get_root_parent(elem):
+ parent = elem.parent
+ while True:
+ try:
+ parent.parent
+ parent = parent.parent
+ except AttributeError:
+ return parent
+
+def unzip_to_temp_dir(zip_file_name):
+ """Unzip zipfile to a temporary directory.
+
+ The directory of the unzipped files is returned if success,
+ otherwise None is returned. """
+ if not zip_file_name or not os.path.exists(zip_file_name):
+ return None
+
+ zf = zipfile.ZipFile(zip_file_name)
+
+ if zf.testzip() is not None:
+ return None
+
+ # Unzip the files into a temporary directory
+ LOGGER.info("Extracting zipped file: %s" % zip_file_name)
+ tempdir = tempfile.mkdtemp()
+
+ try:
+ # Create directories that don't exist
+ for zip_name in zf.namelist():
+ # We have no knowledge on the os where the zipped file was
+ # created, so we restrict to zip files with paths without
+ # charactor "\" and "/".
+ name = (zip_name.replace("\\", os.path.sep).
+ replace("/", os.path.sep))
+ dest = os.path.join(tempdir, name)
+ if (name.endswith(os.path.sep) and not os.path.exists(dest)):
+ os.mkdir(dest)
+ LOGGER.debug("Directory %s created." % dest)
+
+ # Copy files
+ for zip_name in zf.namelist():
+ # We have no knowledge on the os where the zipped file was
+ # created, so we restrict to zip files with paths without
+ # charactor "\" and "/".
+ name = (zip_name.replace("\\", os.path.sep).
+ replace("/", os.path.sep))
+ dest = os.path.join(tempdir, name)
+ if not (name.endswith(os.path.sep)):
+ LOGGER.debug("Copying file %s......" % dest)
+ outfile = open(dest, 'wb')
+ outfile.write(zf.read(zip_name))
+ outfile.close()
+ LOGGER.debug("File %s copied." % dest)
+
+ LOGGER.info("Unzipped file can be found at %s" % tempdir)
+ return tempdir
+
+ except IOError, err:
+ LOGGER.error("Error in extracting webdriver.xpi: %s" % err)
+ return None
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webdriver.py
new file mode 100644
index 00000000000..0e3302da4aa
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webdriver.py
@@ -0,0 +1,805 @@
+# Copyright 2008-2011 WebDriver committers
+# Copyright 2008-2011 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+"""
+The WebDriver implementation.
+"""
+import base64
+from command import Command
+from webelement import WebElement
+from remote_connection import RemoteConnection
+from errorhandler import ErrorHandler
+from selenium.common.exceptions import WebDriverException
+from selenium.common.exceptions import InvalidSelectorException
+from selenium.webdriver.common.by import By
+from selenium.webdriver.common.alert import Alert
+from selenium.webdriver.common.html5.application_cache import ApplicationCache
+
+
+class WebDriver(object):
+ """
+ Controls a browser by sending commands to a remote server.
+ This server is expected to be running the WebDriver wire protocol as defined
+ here: http://code.google.com/p/selenium/wiki/JsonWireProtocol
+
+ :Attributes:
+ - command_executor - The command.CommandExecutor object used to execute commands.
+ - error_handler - errorhandler.ErrorHandler object used to verify that the server did not return an error.
+ - session_id - The session ID to send with every command.
+ - capabilities - A dictionary of capabilities of the underlying browser for this instance's session.
+ """
+
+ def __init__(self, command_executor='http://127.0.0.1:4444/wd/hub',
+ desired_capabilities=None, browser_profile=None):
+ """
+ Create a new driver that will issue commands using the wire protocol.
+
+ :Args:
+ - command_executor - Either a command.CommandExecutor object or a string that specifies the URL of a remote server to send commands to.
+ - desired_capabilities - Dictionary holding predefined values for starting a browser
+ - browser_profile - A selenium.webdriver.firefox.firefox_profile.FirefoxProfile object. Only used if Firefox is requested.
+ """
+ if desired_capabilities is None:
+ raise WebDriverException("Desired Capabilities can't be None")
+ if not isinstance(desired_capabilities, dict):
+ raise WebDriverException("Desired Capabilities must be a dictionary")
+ self.command_executor = command_executor
+ if type(self.command_executor) is str or type(self.command_executor) is unicode:
+ self.command_executor = RemoteConnection(command_executor)
+ self.session_id = None
+ self.capabilities = {}
+ self.error_handler = ErrorHandler()
+ self.start_client()
+ self.start_session(desired_capabilities, browser_profile)
+
+ @property
+ def name(self):
+ """Returns the name of the underlying browser for this instance.
+
+ :Usage:
+ - driver.name
+ """
+ if 'browserName' in self.capabilities:
+ return self.capabilities['browserName']
+ else:
+ raise KeyError('browserName not specified in session capabilities')
+
+ def start_client(self):
+ """
+ Called before starting a new session. This method may be overridden
+ to define custom startup behavior.
+ """
+ pass
+
+ def stop_client(self):
+ """
+ Called after executing a quit command. This method may be overridden
+ to define custom shutdown behavior.
+ """
+ pass
+
+ def start_session(self, desired_capabilities, browser_profile=None):
+ """
+ Creates a new session with the desired capabilities.
+
+ :Args:
+ - browser_name - The name of the browser to request.
+ - version - Which browser version to request.
+ - platform - Which platform to request the browser on.
+ - javascript_enabled - Whether the new session should support JavaScript.
+ - browser_profile - A selenium.webdriver.firefox.firefox_profile.FirefoxProfile object. Only used if Firefox is requested.
+ """
+ if browser_profile:
+ desired_capabilities['firefox_profile'] = browser_profile.encoded
+ response = self.execute(Command.NEW_SESSION, {
+ 'desiredCapabilities': desired_capabilities,
+ })
+ self.session_id = response['sessionId']
+ self.capabilities = response['value']
+
+ def _wrap_value(self, value):
+ if isinstance(value, dict):
+ converted = {}
+ for key, val in value.items():
+ converted[key] = self._wrap_value(val)
+ return converted
+ elif isinstance(value, WebElement):
+ return {'ELEMENT': value.id}
+ elif isinstance(value, list):
+ return list(self._wrap_value(item) for item in value)
+ else:
+ return value
+
+ def create_web_element(self, element_id):
+ """
+ Creates a web element with the specified element_id.
+ """
+ return WebElement(self, element_id)
+
+ def _unwrap_value(self, value):
+ if isinstance(value, dict) and 'ELEMENT' in value:
+ return self.create_web_element(value['ELEMENT'])
+ elif isinstance(value, list):
+ return list(self._unwrap_value(item) for item in value)
+ else:
+ return value
+
+ def execute(self, driver_command, params=None):
+ """
+ Sends a command to be executed by a command.CommandExecutor.
+
+ :Args:
+ - driver_command: The name of the command to execute as a string.
+ - params: A dictionary of named parameters to send with the command.
+
+ :Returns:
+ The command's JSON response loaded into a dictionary object.
+ """
+ if not params:
+ params = {'sessionId': self.session_id}
+ elif 'sessionId' not in params:
+ params['sessionId'] = self.session_id
+
+ params = self._wrap_value(params)
+ response = self.command_executor.execute(driver_command, params)
+ if response:
+ self.error_handler.check_response(response)
+ response['value'] = self._unwrap_value(
+ response.get('value', None))
+ return response
+ # If the server doesn't send a response, assume the command was
+ # a success
+ return {'success': 0, 'value': None, 'sessionId': self.session_id}
+
+ def get(self, url):
+ """
+ Loads a web page in the current browser session.
+ """
+ self.execute(Command.GET, {'url': url})
+
+ @property
+ def title(self):
+ """Returns the title of the current page.
+
+ :Usage:
+ driver.title
+ """
+ resp = self.execute(Command.GET_TITLE)
+ return resp['value'] if resp['value'] is not None else ""
+
+ def find_element_by_id(self, id_):
+ """Finds an element by id.
+
+ :Args:
+ - id\_ - The id of the element to be found.
+
+ :Usage:
+ driver.find_element_by_id('foo')
+ """
+ return self.find_element(by=By.ID, value=id_)
+
+ def find_elements_by_id(self, id_):
+ """
+ Finds multiple elements by id.
+
+ :Args:
+ - id\_ - The id of the elements to be found.
+
+ :Usage:
+ driver.find_element_by_id('foo')
+ """
+ return self.find_elements(by=By.ID, value=id_)
+
+ def find_element_by_xpath(self, xpath):
+ """
+ Finds an element by xpath.
+
+ :Args:
+ - xpath - The xpath locator of the element to find.
+
+ :Usage:
+ driver.find_element_by_xpath('//div/td[1]')
+ """
+ return self.find_element(by=By.XPATH, value=xpath)
+
+ def find_elements_by_xpath(self, xpath):
+ """
+ Finds multiple elements by xpath.
+
+ :Args:
+ - xpath - The xpath locator of the elements to be found.
+
+ :Usage:
+ driver.find_elements_by_xpath("//div[contains(@class, 'foo')]")
+ """
+ return self.find_elements(by=By.XPATH, value=xpath)
+
+ def find_element_by_link_text(self, link_text):
+ """
+ Finds an element by link text.
+
+ :Args:
+ - link_text: The text of the element to be found.
+
+ :Usage:
+ driver.find_element_by_link_text('Sign In')
+ """
+ return self.find_element(by=By.LINK_TEXT, value=link_text)
+
+ def find_elements_by_link_text(self, text):
+ """
+ Finds elements by link text.
+
+ :Args:
+ - link_text: The text of the elements to be found.
+
+ :Usage:
+ driver.find_elements_by_link_text('Sign In')
+ """
+ return self.find_elements(by=By.LINK_TEXT, value=text)
+
+ def find_element_by_partial_link_text(self, link_text):
+ """
+ Finds an element by a partial match of its link text.
+
+ :Args:
+ - link_text: The text of the element to partially match on.
+
+ :Usage:
+ driver.find_element_by_partial_link_text('Sign')
+ """
+ return self.find_element(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_elements_by_partial_link_text(self, link_text):
+ """
+ Finds elements by a partial match of their link text.
+
+ :Args:
+ - link_text: The text of the element to partial match on.
+
+ :Usage:
+ driver.find_element_by_partial_link_text('Sign')
+ """
+ return self.find_elements(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_element_by_name(self, name):
+ """
+ Finds an element by name.
+
+ :Args:
+ - name: The name of the element to find.
+
+ :Usage:
+ driver.find_element_by_name('foo')
+ """
+ return self.find_element(by=By.NAME, value=name)
+
+ def find_elements_by_name(self, name):
+ """
+ Finds elements by name.
+
+ :Args:
+ - name: The name of the elements to find.
+
+ :Usage:
+ driver.find_elements_by_name('foo')
+ """
+ return self.find_elements(by=By.NAME, value=name)
+
+ def find_element_by_tag_name(self, name):
+ """
+ Finds an element by tag name.
+
+ :Args:
+ - name: The tag name of the element to find.
+
+ :Usage:
+ driver.find_element_by_tag_name('foo')
+ """
+ return self.find_element(by=By.TAG_NAME, value=name)
+
+ def find_elements_by_tag_name(self, name):
+ """
+ Finds elements by tag name.
+
+ :Args:
+ - name: The tag name the use when finding elements.
+
+ :Usage:
+ driver.find_elements_by_tag_name('foo')
+ """
+ return self.find_elements(by=By.TAG_NAME, value=name)
+
+ def find_element_by_class_name(self, name):
+ """
+ Finds an element by class name.
+
+ :Args:
+ - name: The class name of the element to find.
+
+ :Usage:
+ driver.find_element_by_class_name('foo')
+ """
+ return self.find_element(by=By.CLASS_NAME, value=name)
+
+ def find_elements_by_class_name(self, name):
+ """
+ Finds elements by class name.
+
+ :Args:
+ - name: The class name of the elements to find.
+
+ :Usage:
+ driver.find_elements_by_class_name('foo')
+ """
+ return self.find_elements(by=By.CLASS_NAME, value=name)
+
+ def find_element_by_css_selector(self, css_selector):
+ """
+ Finds an element by css selector.
+
+ :Args:
+ - css_selector: The css selector to use when finding elements.
+
+ :Usage:
+ driver.find_element_by_css_selector('#foo')
+ """
+ return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
+
+ def find_elements_by_css_selector(self, css_selector):
+ """
+ Finds elements by css selector.
+
+ :Args:
+ - css_selector: The css selector to use when finding elements.
+
+ :Usage:
+ driver.find_element_by_css_selector('#foo')
+ """
+ return self.find_elements(by=By.CSS_SELECTOR, value=css_selector)
+
+ def execute_script(self, script, *args):
+ """
+ Synchronously Executes JavaScript in the current window/frame.
+
+ :Args:
+ - script: The JavaScript to execute.
+ - \*args: Any applicable arguments for your JavaScript.
+
+ :Usage:
+ driver.execute_script('document.title')
+ """
+ if len(args) == 1:
+ converted_args = args[0]
+ else:
+ converted_args = list(args)
+ converted_args = list(args)
+ return self.execute(Command.EXECUTE_SCRIPT,
+ {'script': script, 'args':converted_args})['value']
+
+ def execute_async_script(self, script, *args):
+ """
+ Asynchronously Executes JavaScript in the current window/frame.
+
+ :Args:
+ - script: The JavaScript to execute.
+ - \*args: Any applicable arguments for your JavaScript.
+
+ :Usage:
+ driver.execute_async_script('document.title')
+ """
+ if len(args) == 1:
+ converted_args = args[0]
+ else:
+ converted_args = list(args)
+ converted_args = list(args)
+ return self.execute(Command.EXECUTE_ASYNC_SCRIPT,
+ {'script': script, 'args':converted_args})['value']
+
+ @property
+ def current_url(self):
+ """
+ Gets the URL of the current page.
+
+ :Usage:
+ driver.current_url
+ """
+ return self.execute(Command.GET_CURRENT_URL)['value']
+
+ @property
+ def page_source(self):
+ """
+ Gets the source of the current page.
+
+ :Usage:
+ driver.page_source
+ """
+ return self.execute(Command.GET_PAGE_SOURCE)['value']
+
+ def close(self):
+ """
+ Closes the current window.
+
+ :Usage:
+ driver.close()
+ """
+ self.execute(Command.CLOSE)
+
+ def quit(self):
+ """
+ Quits the driver and closes every associated window.
+
+ :Usage:
+ driver.quit()
+ """
+ try:
+ self.execute(Command.QUIT)
+ finally:
+ self.stop_client()
+
+ @property
+ def current_window_handle(self):
+ """
+ Returns the handle of the current window.
+
+ :Usage:
+ driver.current_window_handle
+ """
+ return self.execute(Command.GET_CURRENT_WINDOW_HANDLE)['value']
+
+ @property
+ def window_handles(self):
+ """
+ Returns the handles of all windows within the current session.
+
+ :Usage:
+ driver.window_handles
+ """
+ return self.execute(Command.GET_WINDOW_HANDLES)['value']
+
+ def maximize_window(self):
+ """
+ Maximizes the current window that webdriver is using
+ """
+ self.execute(Command.MAXIMIZE_WINDOW, {"windowHandle": "current"})
+
+ #Target Locators
+ def switch_to_active_element(self):
+ """
+ Returns the element with focus, or BODY if nothing has focus.
+
+ :Usage:
+ driver.switch_to_active_element()
+ """
+ return self.execute(Command.GET_ACTIVE_ELEMENT)['value']
+
+ def switch_to_window(self, window_name):
+ """
+ Switches focus to the specified window.
+
+ :Args:
+ - window_name: The name or window handle of the window to switch to.
+
+ :Usage:
+ driver.switch_to_window('main')
+ """
+ self.execute(Command.SWITCH_TO_WINDOW, {'name': window_name})
+
+ def switch_to_frame(self, frame_reference):
+ """
+ Switches focus to the specified frame, by index, name, or webelement.
+
+ :Args:
+ - frame_reference: The name of the window to switch to, an integer representing the index,
+ or a webelement that is an (i)frame to switch to.
+
+ :Usage:
+ driver.switch_to_frame('frame_name')
+ driver.switch_to_frame(1)
+ driver.switch_to_frame(driver.find_elements_by_tag_name("iframe")[0])
+ """
+ self.execute(Command.SWITCH_TO_FRAME, {'id': frame_reference})
+
+ def switch_to_default_content(self):
+ """
+ Switch focus to the default frame.
+
+ :Usage:
+ driver.switch_to_default_content()
+ """
+ self.execute(Command.SWITCH_TO_FRAME, {'id': None})
+
+ def switch_to_alert(self):
+ """
+ Switches focus to an alert on the page.
+
+ :Usage:
+ driver.switch_to_alert()
+ """
+ return Alert(self)
+
+ #Navigation
+ def back(self):
+ """
+ Goes one step backward in the browser history.
+
+ :Usage:
+ driver.back()
+ """
+ self.execute(Command.GO_BACK)
+
+ def forward(self):
+ """
+ Goes one step forward in the browser history.
+
+ :Usage:
+ driver.forward()
+ """
+ self.execute(Command.GO_FORWARD)
+
+ def refresh(self):
+ """
+ Refreshes the current page.
+
+ :Usage:
+ driver.refresh()
+ """
+ self.execute(Command.REFRESH)
+
+ # Options
+ def get_cookies(self):
+ """
+ Returns a set of dictionaries, corresponding to cookies visible in the current session.
+
+ :Usage:
+ driver.get_cookies()
+ """
+ return self.execute(Command.GET_ALL_COOKIES)['value']
+
+ def get_cookie(self, name):
+ """
+ Get a single cookie by name. Returns the cookie if found, None if not.
+
+ :Usage:
+ driver.get_cookie('my_cookie')
+ """
+ cookies = self.get_cookies()
+ for cookie in cookies:
+ if cookie['name'] == name:
+ return cookie
+ return None
+
+ def delete_cookie(self, name):
+ """
+ Deletes a single cookie with the given name.
+
+ :Usage:
+ driver.delete_cookie('my_cookie')
+ """
+ self.execute(Command.DELETE_COOKIE, {'name': name})
+
+ def delete_all_cookies(self):
+ """
+ Delete all cookies in the scope of the session.
+
+ :Usage:
+ driver.delete_all_cookies()
+ """
+ self.execute(Command.DELETE_ALL_COOKIES)
+
+ def add_cookie(self, cookie_dict):
+ """
+ Adds a cookie to your current session.
+
+ :Args:
+ - cookie_dict: A dictionary object, with required keys - "name" and "value";
+ optional keys - "path", "domain", "secure", "expiry"
+
+ Usage:
+ driver.add_cookie({'name' : 'foo', 'value' : 'bar'})
+ driver.add_cookie({'name' : 'foo', 'value' : 'bar', 'path' : '/'})
+ driver.add_cookie({'name' : 'foo', 'value' : 'bar', 'path' : '/', 'secure':True})
+
+ """
+ self.execute(Command.ADD_COOKIE, {'cookie': cookie_dict})
+
+ # Timeouts
+ def implicitly_wait(self, time_to_wait):
+ """
+ Sets a sticky timeout to implicitly wait for an element to be found,
+ or a command to complete. This method only needs to be called one
+ time per session. To set the timeout for calls to
+ execute_async_script, see set_script_timeout.
+
+ :Args:
+ - time_to_wait: Amount of time to wait (in seconds)
+
+ :Usage:
+ driver.implicitly_wait(30)
+ """
+ self.execute(Command.IMPLICIT_WAIT, {'ms': float(time_to_wait) * 1000})
+
+ def set_script_timeout(self, time_to_wait):
+ """
+ Set the amount of time that the script should wait during an
+ execute_async_script call before throwing an error.
+
+ :Args:
+ - time_to_wait: The amount of time to wait
+
+ :Usage:
+ driver.set_script_timeout(30)
+ """
+ self.execute(Command.SET_SCRIPT_TIMEOUT,
+ {'ms': float(time_to_wait) * 1000})
+
+ def set_page_load_timeout(self, time_to_wait):
+ """
+ Set the amount of time to wait for a page load to complete
+ before throwing an error.
+
+ :Args:
+ - time_to_wait: The amount of time to wait
+
+ :Usage:
+ driver.set_page_load_timeout(30)
+ """
+ self.execute(Command.SET_TIMEOUTS,
+ {'ms': float(time_to_wait) * 1000, 'type':'page load'})
+
+ def find_element(self, by=By.ID, value=None):
+ """
+ 'Private' method used by the find_element_by_* methods.
+
+ :Usage:
+ Use the corresponding find_element_by_* instead of this.
+ """
+ if isinstance(by, tuple) or isinstance(value, int) or value==None:
+ raise InvalidSelectorException("Invalid locator values passed in")
+
+ return self.execute(Command.FIND_ELEMENT,
+ {'using': by, 'value': value})['value']
+
+ def find_elements(self, by=By.ID, value=None):
+ """
+ 'Private' method used by the find_elements_by_* methods.
+
+ :Usage:
+ Use the corresponding find_elements_by_* instead of this.
+ """
+ if isinstance(by, tuple) or isinstance(value, int) or value==None:
+ raise InvalidSelectorException("Invalid locator values passed in")
+
+ return self.execute(Command.FIND_ELEMENTS,
+ {'using': by, 'value': value})['value']
+ @property
+ def desired_capabilities(self):
+ """
+ returns the drivers current desired capabilities being used
+ """
+ return self.capabilities
+
+ def get_screenshot_as_file(self, filename):
+ """
+ Gets the screenshot of the current window. Returns False if there is
+ any IOError, else returns True. Use full paths in your filename.
+
+ :Args:
+ - filename: The full path you wish to save your screenshot to.
+
+ :Usage:
+ driver.get_screenshot_as_file('/Screenshots/foo.png')
+ """
+ png = self.execute(Command.SCREENSHOT)['value']
+ try:
+ with open(filename, 'wb') as f:
+ f.write(base64.decodestring(png))
+ except IOError:
+ return False
+ del png
+ return True
+
+ def get_screenshot_as_base64(self):
+ """
+ Gets the screenshot of the current window as a base64 encoded string
+ which is useful in embedded images in HTML.
+
+ :Usage:
+ driver.get_screenshot_as_base64()
+ """
+ return self.execute(Command.SCREENSHOT)['value']
+
+ def set_window_size(self, width, height, windowHandle='current'):
+ """
+ Sets the width and height of the current window. (window.resizeTo)
+
+ :Args:
+ - width: the width in pixels to set the window to
+ - height: the height in pixels to set the window to
+
+ :Usage:
+ driver.set_window_size(800,600)
+ """
+ self.execute(Command.SET_WINDOW_SIZE, {'width': width, 'height': height,
+ 'windowHandle': windowHandle})
+
+ def get_window_size(self, windowHandle='current'):
+ """
+ Gets the width and height of the current window.
+
+ :Usage:
+ driver.get_window_size()
+ """
+ return self.execute(Command.GET_WINDOW_SIZE,
+ {'windowHandle': windowHandle})['value']
+
+ def set_window_position(self, x, y, windowHandle='current'):
+ """
+ Sets the x,y position of the current window. (window.moveTo)
+
+ :Args:
+ - x: the x-coordinate in pixels to set the window position
+ - y: the y-coordinate in pixels to set the window position
+
+ :Usage:
+ driver.set_window_position(0,0)
+ """
+ self.execute(Command.SET_WINDOW_POSITION, {'x': x, 'y': y,
+ 'windowHandle': windowHandle})
+
+ def get_window_position(self, windowHandle='current'):
+ """
+ Gets the x,y position of the current window.
+
+ :Usage:
+ driver.get_window_position()
+ """
+ return self.execute(Command.GET_WINDOW_POSITION,
+ {'windowHandle': windowHandle})['value']
+
+ @property
+ def orientation(self):
+ """
+ Gets the current orientation of the device
+
+ :Usage:
+ orientation = driver.orientation
+ """
+ return self.execute(Command.GET_SCREEN_ORIENTATION)['value']
+
+ @orientation.setter
+ def orientation(self, value):
+ """
+ Sets the current orientation of the device
+
+ :Args:
+ - value: orientation to set it to.
+
+ :Usage:
+ driver.orientation = 'landscape'
+ """
+ allowed_values = ['LANDSCAPE', 'PORTRAIT']
+ if value.upper() in allowed_values:
+ self.execute(Command.SET_SCREEN_ORIENTATION, {'orientation': value})['value']
+ else:
+ raise WebDriverException("You can only set the orientation to 'LANDSCAPE' and 'PORTRAIT'")
+
+ def is_online(self):
+ """ Returns a boolean if the browser is online or offline"""
+ return self.execute(Command.IS_BROWSER_ONLINE)['value']
+
+ @property
+ def application_cache(self):
+ """ Returns a ApplicationCache Object to interact with the browser app cache"""
+ return ApplicationCache(self)
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webelement.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webelement.py
new file mode 100644
index 00000000000..baa8caea3e9
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/remote/webelement.py
@@ -0,0 +1,284 @@
+# Copyright 2008-2009 WebDriver committers
+# Copyright 2008-2009 Google Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+"""WebElement implementation."""
+import os
+import zipfile
+from StringIO import StringIO
+import base64
+
+
+from command import Command
+from selenium.common.exceptions import WebDriverException
+from selenium.common.exceptions import InvalidSelectorException
+from selenium.webdriver.common.by import By
+from selenium.webdriver.common.keys import Keys
+
+
+class WebElement(object):
+ """Represents an HTML element.
+
+ Generally, all interesting operations to do with interacting with a page
+ will be performed through this interface."""
+ def __init__(self, parent, id_):
+ self._parent = parent
+ self._id = id_
+
+ @property
+ def tag_name(self):
+ """Gets this element's tagName property."""
+ return self._execute(Command.GET_ELEMENT_TAG_NAME)['value']
+
+ @property
+ def text(self):
+ """Gets the text of the element."""
+ return self._execute(Command.GET_ELEMENT_TEXT)['value']
+
+ def click(self):
+ """Clicks the element."""
+ self._execute(Command.CLICK_ELEMENT)
+
+ def submit(self):
+ """Submits a form."""
+ self._execute(Command.SUBMIT_ELEMENT)
+
+ def clear(self):
+ """Clears the text if it's a text entry element."""
+ self._execute(Command.CLEAR_ELEMENT)
+
+ def get_attribute(self, name):
+ """Gets the attribute value."""
+ resp = self._execute(Command.GET_ELEMENT_ATTRIBUTE, {'name': name})
+ attributeValue = ''
+ if resp['value'] is None:
+ attributeValue = None
+ else:
+ attributeValue = unicode(resp['value'])
+ if type(resp['value']) is bool:
+ attributeValue = attributeValue.lower()
+
+ return attributeValue
+
+ def is_selected(self):
+ """Whether the element is selected."""
+ return self._execute(Command.IS_ELEMENT_SELECTED)['value']
+
+ def is_enabled(self):
+ """Whether the element is enabled."""
+ return self._execute(Command.IS_ELEMENT_ENABLED)['value']
+
+ def find_element_by_id(self, id_):
+ """Finds element by id."""
+ return self.find_element(by=By.ID, value=id_)
+
+ def find_elements_by_id(self, id_):
+ return self.find_elements(by=By.ID, value=id_)
+
+ def find_element_by_name(self, name):
+ """Find element by name."""
+ return self.find_element(by=By.NAME, value=name)
+
+ def find_elements_by_name(self, name):
+ return self.find_elements(by=By.NAME, value=name)
+
+ def find_element_by_link_text(self, link_text):
+ """Finds element by link text."""
+ return self.find_element(by=By.LINK_TEXT, value=link_text)
+
+ def find_elements_by_link_text(self, link_text):
+ return self.find_elements(by=By.LINK_TEXT, value=link_text)
+
+ def find_element_by_partial_link_text(self, link_text):
+ return self.find_element(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_elements_by_partial_link_text(self, link_text):
+ return self.find_elements(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_element_by_tag_name(self, name):
+ return self.find_element(by=By.TAG_NAME, value=name)
+
+ def find_elements_by_tag_name(self, name):
+ return self.find_elements(by=By.TAG_NAME, value=name)
+
+ def find_element_by_xpath(self, xpath):
+ """Finds element by xpath."""
+ return self.find_element(by=By.XPATH, value=xpath)
+
+ def find_elements_by_xpath(self, xpath):
+ """Finds elements within the elements by xpath."""
+ return self.find_elements(by=By.XPATH, value=xpath)
+
+ def find_element_by_class_name(self, name):
+ """Finds an element by their class name."""
+ return self.find_element(by=By.CLASS_NAME, value=name)
+
+ def find_elements_by_class_name(self, name):
+ """Finds elements by their class name."""
+ return self.find_elements(by=By.CLASS_NAME, value=name)
+
+ def find_element_by_css_selector(self, css_selector):
+ """Find and return an element by CSS selector."""
+ return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
+
+ def find_elements_by_css_selector(self, css_selector):
+ """Find and return list of multiple elements by CSS selector."""
+ return self.find_elements(by=By.CSS_SELECTOR, value=css_selector)
+
+ def send_keys(self, *value):
+ """Simulates typing into the element."""
+ # transfer file to another machine only if remote driver is used
+ # the same behaviour as for java binding
+ parent_class = self.parent.__class__
+ fqcn = parent_class.__module__ + "." + parent_class.__name__
+ is_remote = fqcn == "selenium.webdriver.remote.webdriver.WebDriver"
+ if is_remote:
+ local_file = LocalFileDetector.is_local_file(*value)
+ if local_file is not None:
+ value = self._upload(local_file)
+
+ typing = []
+ for val in value:
+ if isinstance(val, Keys):
+ typing.append(val)
+ elif isinstance(val, int):
+ val = str(val)
+ for i in range(len(val)):
+ typing.append(val[i])
+ else:
+ for i in range(len(val)):
+ typing.append(val[i])
+ self._execute(Command.SEND_KEYS_TO_ELEMENT, {'value': typing})
+
+ # RenderedWebElement Items
+ def is_displayed(self):
+ """Whether the element would be visible to a user"""
+ return self._execute(Command.IS_ELEMENT_DISPLAYED)['value']
+
+ @property
+ def location_once_scrolled_into_view(self):
+ """CONSIDERED LIABLE TO CHANGE WITHOUT WARNING. Use this to discover where on the screen an
+ element is so that we can click it. This method should cause the element to be scrolled
+ into view.
+
+ Returns the top lefthand corner location on the screen, or None if the element is not visible"""
+ return self._execute(Command.GET_ELEMENT_LOCATION_ONCE_SCROLLED_INTO_VIEW)['value']
+
+ @property
+ def size(self):
+ """ Returns the size of the element """
+ size = self._execute(Command.GET_ELEMENT_SIZE)['value']
+ new_size = {}
+ new_size["height"] = size["height"]
+ new_size["width"] = size["width"]
+ return new_size
+
+ def value_of_css_property(self, property_name):
+ """ Returns the value of a CSS property """
+ return self._execute(Command.GET_ELEMENT_VALUE_OF_CSS_PROPERTY,
+ {'propertyName': property_name})['value']
+
+ @property
+ def location(self):
+ """ Returns the location of the element in the renderable canvas"""
+ return self._execute(Command.GET_ELEMENT_LOCATION)['value']
+
+ @property
+ def parent(self):
+ return self._parent
+
+ @property
+ def id(self):
+ return self._id
+
+ def __eq__(self, element):
+ return self._id == element.id
+
+ # Private Methods
+ def _execute(self, command, params=None):
+ """Executes a command against the underlying HTML element.
+
+ Args:
+ command: The name of the command to _execute as a string.
+ params: A dictionary of named parameters to send with the command.
+
+ Returns:
+ The command's JSON response loaded into a dictionary object.
+ """
+ if not params:
+ params = {}
+ params['id'] = self._id
+ return self._parent.execute(command, params)
+
+ def find_element(self, by=By.ID, value=None):
+ if isinstance(by, tuple) or isinstance(value, int) or value==None:
+ raise InvalidSelectorException("Invalid locator values passed in")
+
+ return self._execute(Command.FIND_CHILD_ELEMENT,
+ {"using": by, "value": value})['value']
+
+ def find_elements(self, by=By.ID, value=None):
+ if isinstance(by, tuple) or isinstance(value, int) or value==None:
+ raise InvalidSelectorException("Invalid locator values passed in")
+
+ return self._execute(Command.FIND_CHILD_ELEMENTS,
+ {"using": by, "value": value})['value']
+
+ def _upload(self, filename):
+ fp = StringIO()
+ zipped = zipfile.ZipFile(fp, 'w', zipfile.ZIP_DEFLATED)
+ zipped.write(filename, os.path.split(filename)[1])
+ zipped.close()
+ try:
+ return self._execute(Command.UPLOAD_FILE,
+ {'file': base64.encodestring(fp.getvalue())})['value']
+ except WebDriverException as e:
+ if "Unrecognized command: POST" in e.__str__():
+ return filename
+ elif "Command not found: POST " in e.__str__():
+ return filename
+ elif '{"status":405,"value":["GET","HEAD","DELETE"]}' in e.__str__():
+ return filename
+ else:
+ raise e
+
+class LocalFileDetector(object):
+
+ @classmethod
+ def is_local_file(cls, *keys):
+ file_path = ''
+ typing = []
+ for val in keys:
+ if isinstance(val, Keys):
+ typing.append(val)
+ elif isinstance(val, int):
+ val = str(val)
+ for i in range(len(val)):
+ typing.append(val[i])
+ else:
+ for i in range(len(val)):
+ typing.append(val[i])
+ file_path = ''.join(typing)
+
+ if file_path is '':
+ return None
+
+ try:
+ if os.path.exists(file_path):
+ return file_path
+ except:
+ pass
+ return None
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/__init__.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/__init__.py
new file mode 100644
index 00000000000..79219fdf03a
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/__init__.py
@@ -0,0 +1,16 @@
+#!/usr/bin/python
+#
+# Copyright 2011 WebDriver committers
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/abstract_event_listener.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/abstract_event_listener.py
new file mode 100644
index 00000000000..1c2d44e00de
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/abstract_event_listener.py
@@ -0,0 +1,59 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+class AbstractEventListener(object):
+ """
+ Event listener must subclass and implement this fully or partially
+ """
+
+ def before_navigate_to(self, url, driver): pass
+
+ def after_navigate_to(self, url, driver): pass
+
+ def before_navigate_back(self, driver): pass
+
+ def after_navigate_back(self, driver): pass
+
+ def before_navigate_forward(self, driver): pass
+
+ def after_navigate_forward(self, driver): pass
+
+ def before_find(self, by, value, driver): pass
+
+ def after_find(self, by, value, driver): pass
+
+ def before_click(self, element, driver): pass
+
+ def after_click(self, element, driver): pass
+
+ def before_change_value_of(self, element, driver): pass
+
+ def after_change_value_of(self, element, driver): pass
+
+ def before_execute_script(self, script, driver): pass
+
+ def after_execute_script(self, script, driver): pass
+
+ def before_close(self, driver): pass
+
+ def after_close(self, driver): pass
+
+ def before_quit(self, driver): pass
+
+ def after_quit(self, driver): pass
+
+ def on_exception(self, exception, driver): pass
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/color.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/color.py
new file mode 100644
index 00000000000..a6fff23fc74
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/color.py
@@ -0,0 +1,303 @@
+#!/usr/bin/python
+
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+RGB_PATTERN = r"^\s*rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)\s*$"
+RGB_PCT_PATTERN = r"^\s*rgb\(\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,\s*(\d{1,3}|\d{1,2}\.\d+)%\s*\)\s*$"
+RGBA_PATTERN = r"^\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0|1|0\.\d+)\s*\)\s*$"
+RGBA_PCT_PATTERN = r"^\s*rgba\(\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,\s*(\d{1,3}|\d{1,2}\.\d+)%\s*,\s*(0|1|0\.\d+)\s*\)\s*$"
+HEX_PATTERN = r"#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})"
+HEX3_PATTERN = r"#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])"
+HSL_PATTERN = r"^\s*hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)\s*$"
+HSLA_PATTERN = r"^\s*hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*(0|1|0\.\d+)\s*\)\s*$"
+
+
+class Color(object):
+ """
+ Color conversion support class
+
+ Example:
+
+ .. code-block:: python
+
+ from selenium.webdriver.support.color import Color
+
+ print Color.from_string('#00ff33').rgba
+ print Color.from_string('rgb(1, 255, 3)').hex
+ print Color.from_string('blue').rgba
+ """
+
+ @staticmethod
+ def from_string(str_):
+ import re
+
+ class Matcher(object):
+ def __init__(self):
+ self.match_obj = None
+
+ def match(self, pattern, str_):
+ self.match_obj = re.match(pattern, str_)
+ return self.match_obj
+
+ @property
+ def groups(self):
+ return () if self.match_obj is None else self.match_obj.groups()
+
+ m = Matcher()
+
+ if m.match(RGB_PATTERN, str_):
+ return Color(*m.groups)
+ elif m.match(RGB_PCT_PATTERN, str_):
+ rgb = tuple([float(each) / 100 * 255 for each in m.groups])
+ return Color(*rgb)
+ elif m.match(RGBA_PATTERN, str_):
+ return Color(*m.groups)
+ elif m.match(RGBA_PCT_PATTERN, str_):
+ rgba = tuple([float(each) / 100 * 255 for each in m.groups[:3]] + [m.groups[3]])
+ return Color(*rgba)
+ elif m.match(HEX_PATTERN, str_):
+ rgb = tuple([int(each, 16) for each in m.groups])
+ return Color(*rgb)
+ elif m.match(HEX3_PATTERN, str_):
+ rgb = tuple([int(each * 2, 16) for each in m.groups])
+ return Color(*rgb)
+ elif m.match(HSL_PATTERN, str_) or m.match(HSLA_PATTERN, str_):
+ return Color._from_hsl(*m.groups)
+ elif str_.upper() in Colors.keys():
+ return Colors[str_.upper()]
+ else:
+ raise ValueError("Could not convert %s into color" % str_)
+
+ @staticmethod
+ def _from_hsl(h, s, l, a=1):
+ h = float(h) / 360
+ s = float(s) / 100
+ l = float(l) / 100
+
+ if s == 0:
+ r = l
+ g = r
+ b = r
+ else:
+ luminocity2 = l * (1 + s) if l < 0.5 else l + s - l * s
+ luminocity1 = 2 * l - luminocity2
+
+ def hue_to_rgb(lum1, lum2, hue):
+ if hue < 0.0:
+ hue += 1
+ if hue > 1.0:
+ hue -= 1
+
+ if hue < 1.0 / 6.0:
+ return (lum1 + (lum2 - lum1) * 6.0 * hue)
+ elif hue < 1.0 / 2.0:
+ return lum2
+ elif hue < 2.0 / 3.0:
+ return lum1 + (lum2 - lum1) * ((2.0 / 3.0) - hue) * 6.0
+ else:
+ return lum1
+
+ r = hue_to_rgb(luminocity1, luminocity2, h + 1.0 / 3.0)
+ g = hue_to_rgb(luminocity1, luminocity2, h)
+ b = hue_to_rgb(luminocity1, luminocity2, h - 1.0 / 3.0)
+
+ return Color(r * 256, g * 256, b * 256, a)
+
+ def __init__(self, red, green, blue, alpha=1):
+ self.red = int(red)
+ self.green = int(green)
+ self.blue = int(blue)
+ self.alpha = float(alpha) or 0
+
+ @property
+ def rgb(self):
+ return "rgb(%d, %d, %d)" % (self.red, self.green, self.blue)
+
+ @property
+ def rgba(self):
+ a = "1" if self.alpha == 1 else str(self.alpha)
+ return "rgba(%d, %d, %d, %s)" % (self.red, self.green, self.blue, a)
+
+ @property
+ def hex(self):
+ return "#%02x%02x%02x" % (self.red, self.green, self.blue)
+
+ def __eq__(self, other):
+ if isinstance(other, Color):
+ return self.rgba == other.rgba
+ return NotImplemented
+
+ def __ne__(self, other):
+ result = self.__eq__(other)
+ if result is NotImplemented:
+ return result
+ return not result
+
+ def __hash__(self):
+ return hash((self.red, self.green, self.blue, self.alpha))
+
+
+# Basic, extended and transparent colour keywords as defined by the W3C HTML4 spec
+# See http://www.w3.org/TR/css3-color/#html4
+Colors = {
+ "TRANSPARENT": Color(0, 0, 0, 0),
+ "ALICEBLUE": Color(240, 248, 255),
+ "ANTIQUEWHITE": Color(250, 235, 215),
+ "AQUA": Color(0, 255, 255),
+ "AQUAMARINE": Color(127, 255, 212),
+ "AZURE": Color(240, 255, 255),
+ "BEIGE": Color(245, 245, 220),
+ "BISQUE": Color(255, 228, 196),
+ "BLACK": Color(0, 0, 0),
+ "BLANCHEDALMOND": Color(255, 235, 205),
+ "BLUE": Color(0, 0, 255),
+ "BLUEVIOLET": Color(138, 43, 226),
+ "BROWN": Color(165, 42, 42),
+ "BURLYWOOD": Color(222, 184, 135),
+ "CADETBLUE": Color(95, 158, 160),
+ "CHARTREUSE": Color(127, 255, 0),
+ "CHOCOLATE": Color(210, 105, 30),
+ "CORAL": Color(255, 127, 80),
+ "CORNFLOWERBLUE": Color(100, 149, 237),
+ "CORNSILK": Color(255, 248, 220),
+ "CRIMSON": Color(220, 20, 60),
+ "CYAN": Color(0, 255, 255),
+ "DARKBLUE": Color(0, 0, 139),
+ "DARKCYAN": Color(0, 139, 139),
+ "DARKGOLDENROD": Color(184, 134, 11),
+ "DARKGRAY": Color(169, 169, 169),
+ "DARKGREEN": Color(0, 100, 0),
+ "DARKGREY": Color(169, 169, 169),
+ "DARKKHAKI": Color(189, 183, 107),
+ "DARKMAGENTA": Color(139, 0, 139),
+ "DARKOLIVEGREEN": Color(85, 107, 47),
+ "DARKORANGE": Color(255, 140, 0),
+ "DARKORCHID": Color(153, 50, 204),
+ "DARKRED": Color(139, 0, 0),
+ "DARKSALMON": Color(233, 150, 122),
+ "DARKSEAGREEN": Color(143, 188, 143),
+ "DARKSLATEBLUE": Color(72, 61, 139),
+ "DARKSLATEGRAY": Color(47, 79, 79),
+ "DARKSLATEGREY": Color(47, 79, 79),
+ "DARKTURQUOISE": Color(0, 206, 209),
+ "DARKVIOLET": Color(148, 0, 211),
+ "DEEPPINK": Color(255, 20, 147),
+ "DEEPSKYBLUE": Color(0, 191, 255),
+ "DIMGRAY": Color(105, 105, 105),
+ "DIMGREY": Color(105, 105, 105),
+ "DODGERBLUE": Color(30, 144, 255),
+ "FIREBRICK": Color(178, 34, 34),
+ "FLORALWHITE": Color(255, 250, 240),
+ "FORESTGREEN": Color(34, 139, 34),
+ "FUCHSIA": Color(255, 0, 255),
+ "GAINSBORO": Color(220, 220, 220),
+ "GHOSTWHITE": Color(248, 248, 255),
+ "GOLD": Color(255, 215, 0),
+ "GOLDENROD": Color(218, 165, 32),
+ "GRAY": Color(128, 128, 128),
+ "GREY": Color(128, 128, 128),
+ "GREEN": Color(0, 128, 0),
+ "GREENYELLOW": Color(173, 255, 47),
+ "HONEYDEW": Color(240, 255, 240),
+ "HOTPINK": Color(255, 105, 180),
+ "INDIANRED": Color(205, 92, 92),
+ "INDIGO": Color(75, 0, 130),
+ "IVORY": Color(255, 255, 240),
+ "KHAKI": Color(240, 230, 140),
+ "LAVENDER": Color(230, 230, 250),
+ "LAVENDERBLUSH": Color(255, 240, 245),
+ "LAWNGREEN": Color(124, 252, 0),
+ "LEMONCHIFFON": Color(255, 250, 205),
+ "LIGHTBLUE": Color(173, 216, 230),
+ "LIGHTCORAL": Color(240, 128, 128),
+ "LIGHTCYAN": Color(224, 255, 255),
+ "LIGHTGOLDENRODYELLOW": Color(250, 250, 210),
+ "LIGHTGRAY": Color(211, 211, 211),
+ "LIGHTGREEN": Color(144, 238, 144),
+ "LIGHTGREY": Color(211, 211, 211),
+ "LIGHTPINK": Color(255, 182, 193),
+ "LIGHTSALMON": Color(255, 160, 122),
+ "LIGHTSEAGREEN": Color(32, 178, 170),
+ "LIGHTSKYBLUE": Color(135, 206, 250),
+ "LIGHTSLATEGRAY": Color(119, 136, 153),
+ "LIGHTSLATEGREY": Color(119, 136, 153),
+ "LIGHTSTEELBLUE": Color(176, 196, 222),
+ "LIGHTYELLOW": Color(255, 255, 224),
+ "LIME": Color(0, 255, 0),
+ "LIMEGREEN": Color(50, 205, 50),
+ "LINEN": Color(250, 240, 230),
+ "MAGENTA": Color(255, 0, 255),
+ "MAROON": Color(128, 0, 0),
+ "MEDIUMAQUAMARINE": Color(102, 205, 170),
+ "MEDIUMBLUE": Color(0, 0, 205),
+ "MEDIUMORCHID": Color(186, 85, 211),
+ "MEDIUMPURPLE": Color(147, 112, 219),
+ "MEDIUMSEAGREEN": Color(60, 179, 113),
+ "MEDIUMSLATEBLUE": Color(123, 104, 238),
+ "MEDIUMSPRINGGREEN": Color(0, 250, 154),
+ "MEDIUMTURQUOISE": Color(72, 209, 204),
+ "MEDIUMVIOLETRED": Color(199, 21, 133),
+ "MIDNIGHTBLUE": Color(25, 25, 112),
+ "MINTCREAM": Color(245, 255, 250),
+ "MISTYROSE": Color(255, 228, 225),
+ "MOCCASIN": Color(255, 228, 181),
+ "NAVAJOWHITE": Color(255, 222, 173),
+ "NAVY": Color(0, 0, 128),
+ "OLDLACE": Color(253, 245, 230),
+ "OLIVE": Color(128, 128, 0),
+ "OLIVEDRAB": Color(107, 142, 35),
+ "ORANGE": Color(255, 165, 0),
+ "ORANGERED": Color(255, 69, 0),
+ "ORCHID": Color(218, 112, 214),
+ "PALEGOLDENROD": Color(238, 232, 170),
+ "PALEGREEN": Color(152, 251, 152),
+ "PALETURQUOISE": Color(175, 238, 238),
+ "PALEVIOLETRED": Color(219, 112, 147),
+ "PAPAYAWHIP": Color(255, 239, 213),
+ "PEACHPUFF": Color(255, 218, 185),
+ "PERU": Color(205, 133, 63),
+ "PINK": Color(255, 192, 203),
+ "PLUM": Color(221, 160, 221),
+ "POWDERBLUE": Color(176, 224, 230),
+ "PURPLE": Color(128, 0, 128),
+ "RED": Color(255, 0, 0),
+ "ROSYBROWN": Color(188, 143, 143),
+ "ROYALBLUE": Color(65, 105, 225),
+ "SADDLEBROWN": Color(139, 69, 19),
+ "SALMON": Color(250, 128, 114),
+ "SANDYBROWN": Color(244, 164, 96),
+ "SEAGREEN": Color(46, 139, 87),
+ "SEASHELL": Color(255, 245, 238),
+ "SIENNA": Color(160, 82, 45),
+ "SILVER": Color(192, 192, 192),
+ "SKYBLUE": Color(135, 206, 235),
+ "SLATEBLUE": Color(106, 90, 205),
+ "SLATEGRAY": Color(112, 128, 144),
+ "SLATEGREY": Color(112, 128, 144),
+ "SNOW": Color(255, 250, 250),
+ "SPRINGGREEN": Color(0, 255, 127),
+ "STEELBLUE": Color(70, 130, 180),
+ "TAN": Color(210, 180, 140),
+ "TEAL": Color(0, 128, 128),
+ "THISTLE": Color(216, 191, 216),
+ "TOMATO": Color(255, 99, 71),
+ "TURQUOISE": Color(64, 224, 208),
+ "VIOLET": Color(238, 130, 238),
+ "WHEAT": Color(245, 222, 179),
+ "WHITE": Color(255, 255, 255),
+ "WHITESMOKE": Color(245, 245, 245),
+ "YELLOW": Color(255, 255, 0),
+ "YELLOWGREEN": Color(154, 205, 50)
+}
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/event_firing_webdriver.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/event_firing_webdriver.py
new file mode 100644
index 00000000000..5f0ee8b3781
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/event_firing_webdriver.py
@@ -0,0 +1,326 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from selenium.common.exceptions import WebDriverException
+from selenium.webdriver.common.by import By
+from selenium.webdriver.remote.webdriver import WebDriver
+from selenium.webdriver.remote.webelement import WebElement
+from abstract_event_listener import AbstractEventListener
+
+
+def _wrap_elements(result, ef_driver):
+ if isinstance(result, WebElement):
+ return EventFiringWebElement(result, ef_driver)
+ elif isinstance(result, list):
+ return [_wrap_elements(item, ef_driver) for item in result]
+ else:
+ return result
+
+class EventFiringWebDriver(object):
+ """
+ A wrapper around an arbitrary WebDriver instance which supports firing events
+ """
+
+ def __init__(self, driver, event_listener):
+ """
+ Creates a new instance of the EventFiringWebDriver
+
+ :Args:
+ - driver : A WebDriver instance
+ - event_listener : Instance of a class that subclasses AbstractEventListener and implements it fully or partially
+
+ Example:
+
+ .. code-block:: python
+
+ from selenium.webdriver import Firefox
+ from selenium.webdriver.support.events import EventFiringWebDriver, AbstractEventListener
+
+ class MyListener(AbstractEventListener):
+ def before_navigate_to(self, url, driver):
+ print "Before navigate to %s" % url
+ def after_navigate_to(self, url, driver):
+ print "After navigate to %s" % url
+
+ driver = Firefox()
+ ef_driver = EventFiringWebDriver(driver, MyListener())
+ ef_driver.get("http://www.google.co.in/")
+ """
+ if not isinstance(driver, WebDriver):
+ raise WebDriverException("A WebDriver instance must be supplied")
+ if not isinstance(event_listener, AbstractEventListener):
+ raise WebDriverException("Event listener must be a subclass of AbstractEventListener")
+ self._driver = driver
+ self._listener = event_listener
+
+ @property
+ def wrapped_driver(self):
+ """Returns the WebDriver instance wrapped by this EventsFiringWebDriver"""
+ return self._driver
+
+ def get(self, url):
+ self._dispatch("navigate_to", (url, self._driver), "get", (url, ))
+
+ def back(self):
+ self._dispatch("navigate_back", (self._driver,), "back", ())
+
+ def forward(self):
+ self._dispatch("navigate_forward", (self._driver,), "forward", ())
+
+ def execute_script(self, script, *args):
+ unwrapped_args = (script,) + self._unwrap_element_args(args)
+ return self._dispatch("execute_script", (script, self._driver), "execute_script", unwrapped_args)
+
+ def execute_async_script(self, script, *args):
+ unwrapped_args = (script,) + self._unwrap_element_args(args)
+ return self._dispatch("execute_script", (script, self._driver), "execute_async_script", unwrapped_args)
+
+ def close(self):
+ self._dispatch("close", (self._driver,), "close", ())
+
+ def quit(self):
+ self._dispatch("quit", (self._driver,), "quit", ())
+
+ def find_element(self, by=By.ID, value=None):
+ return self._dispatch("find", (by, value, self._driver), "find_element", (by, value))
+
+ def find_elements(self, by=By.ID, value=None):
+ return self._dispatch("find", (by, value, self._driver), "find_elements", (by, value))
+
+ def find_element_by_id(self, id_):
+ return self.find_element(by=By.ID, value=id_)
+
+ def find_elements_by_id(self, id_):
+ return self.find_elements(by=By.ID, value=id_)
+
+ def find_element_by_xpath(self, xpath):
+ return self.find_element(by=By.XPATH, value=xpath)
+
+ def find_elements_by_xpath(self, xpath):
+ return self.find_elements(by=By.XPATH, value=xpath)
+
+ def find_element_by_link_text(self, link_text):
+ return self.find_element(by=By.LINK_TEXT, value=link_text)
+
+ def find_elements_by_link_text(self, text):
+ return self.find_elements(by=By.LINK_TEXT, value=text)
+
+ def find_element_by_partial_link_text(self, link_text):
+ return self.find_element(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_elements_by_partial_link_text(self, link_text):
+ return self.find_elements(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_element_by_name(self, name):
+ return self.find_element(by=By.NAME, value=name)
+
+ def find_elements_by_name(self, name):
+ return self.find_elements(by=By.NAME, value=name)
+
+ def find_element_by_tag_name(self, name):
+ return self.find_element(by=By.TAG_NAME, value=name)
+
+ def find_elements_by_tag_name(self, name):
+ return self.find_elements(by=By.TAG_NAME, value=name)
+
+ def find_element_by_class_name(self, name):
+ return self.find_element(by=By.CLASS_NAME, value=name)
+
+ def find_elements_by_class_name(self, name):
+ return self.find_elements(by=By.CLASS_NAME, value=name)
+
+ def find_element_by_css_selector(self, css_selector):
+ return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
+
+ def find_elements_by_css_selector(self, css_selector):
+ return self.find_elements(by=By.CSS_SELECTOR, value=css_selector)
+
+ def _dispatch(self, l_call, l_args, d_call, d_args):
+ getattr(self._listener, "before_%s" % l_call)(*l_args)
+ try:
+ result = getattr(self._driver, d_call)(*d_args)
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+ getattr(self._listener, "after_%s" % l_call)(*l_args)
+ return _wrap_elements(result, self)
+
+ def _unwrap_element_args(self, args):
+ if isinstance(args, EventFiringWebElement):
+ return args.wrapped_element
+ elif isinstance(args, tuple):
+ return tuple([self._unwrap_element_args(item) for item in args])
+ elif isinstance(args, list):
+ return [self._unwrap_element_args(item) for item in args]
+ else:
+ return args
+
+ def __setattr__(self, item, value):
+ if item.startswith("_") or not hasattr(self._driver, item):
+ object.__setattr__(self, item, value)
+ else:
+ try:
+ object.__setattr__(self._driver, item, value)
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+
+ def __getattr__(self, name):
+
+ def _wrap(*args):
+ try:
+ result = attrib(*args)
+ return _wrap_elements(result, self)
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+
+ if hasattr(self._driver, name):
+ try:
+ attrib = getattr(self._driver, name)
+ if not callable(attrib):
+ return attrib
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+ return _wrap
+
+ raise AttributeError(name)
+
+
+class EventFiringWebElement(object):
+ """"
+ A wrapper around WebElement instance which supports firing events
+ """
+
+ def __init__(self, webelement, ef_driver):
+ """
+ Creates a new instance of the EventFiringWebElement
+ """
+ self._webelement = webelement
+ self._ef_driver = ef_driver
+ self._driver = ef_driver.wrapped_driver
+ self._listener = ef_driver._listener
+
+ @property
+ def wrapped_element(self):
+ """Returns the WebElement wrapped by this EventFiringWebElement instance"""
+ return self._webelement
+
+ def click(self):
+ self._dispatch("click", (self._webelement, self._driver), "click", ())
+
+ def clear(self):
+ self._dispatch("change_value_of", (self._webelement, self._driver), "clear", ())
+
+ def send_keys(self, *value):
+ self._dispatch("change_value_of", (self._webelement, self._driver), "send_keys", value)
+
+ def find_element(self, by=By.ID, value=None):
+ return self._dispatch("find", (by, value, self._driver), "find_element", (by, value))
+
+ def find_elements(self, by=By.ID, value=None):
+ return self._dispatch("find", (by, value, self._driver), "find_elements", (by, value))
+
+ def find_element_by_id(self, id_):
+ return self.find_element(by=By.ID, value=id_)
+
+ def find_elements_by_id(self, id_):
+ return self.find_elements(by=By.ID, value=id_)
+
+ def find_element_by_name(self, name):
+ return self.find_element(by=By.NAME, value=name)
+
+ def find_elements_by_name(self, name):
+ return self.find_elements(by=By.NAME, value=name)
+
+ def find_element_by_link_text(self, link_text):
+ return self.find_element(by=By.LINK_TEXT, value=link_text)
+
+ def find_elements_by_link_text(self, link_text):
+ return self.find_elements(by=By.LINK_TEXT, value=link_text)
+
+ def find_element_by_partial_link_text(self, link_text):
+ return self.find_element(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_elements_by_partial_link_text(self, link_text):
+ return self.find_elements(by=By.PARTIAL_LINK_TEXT, value=link_text)
+
+ def find_element_by_tag_name(self, name):
+ return self.find_element(by=By.TAG_NAME, value=name)
+
+ def find_elements_by_tag_name(self, name):
+ return self.find_elements(by=By.TAG_NAME, value=name)
+
+ def find_element_by_xpath(self, xpath):
+ return self.find_element(by=By.XPATH, value=xpath)
+
+ def find_elements_by_xpath(self, xpath):
+ return self.find_elements(by=By.XPATH, value=xpath)
+
+ def find_element_by_class_name(self, name):
+ return self.find_element(by=By.CLASS_NAME, value=name)
+
+ def find_elements_by_class_name(self, name):
+ return self.find_elements(by=By.CLASS_NAME, value=name)
+
+ def find_element_by_css_selector(self, css_selector):
+ return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
+
+ def find_elements_by_css_selector(self, css_selector):
+ return self.find_elements(by=By.CSS_SELECTOR, value=css_selector)
+
+ def _dispatch(self, l_call, l_args, d_call, d_args):
+ getattr(self._listener, "before_%s" % l_call)(*l_args)
+ try:
+ result = getattr(self._webelement, d_call)(*d_args)
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+ getattr(self._listener, "after_%s" % l_call)(*l_args)
+ return _wrap_elements(result, self._ef_driver)
+
+ def __setattr__(self, item, value):
+ if item.startswith("_") or not hasattr(self._webelement, item):
+ object.__setattr__(self, item, value)
+ else:
+ try:
+ object.__setattr__(self._webelement, item, value)
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+
+ def __getattr__(self, name):
+
+ def _wrap(*args):
+ try:
+ result = attrib(*args)
+ return _wrap_elements(result, self._ef_driver)
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+
+ if hasattr(self._webelement, name):
+ try:
+ attrib = getattr(self._webelement, name)
+ if not callable(attrib):
+ return attrib
+ except Exception, e:
+ self._listener.on_exception(e, self._driver)
+ raise e
+ return _wrap
+
+ raise AttributeError(name)
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/events.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/events.py
new file mode 100644
index 00000000000..1b3d46a6149
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/events.py
@@ -0,0 +1,18 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from abstract_event_listener import AbstractEventListener
+from event_firing_webdriver import EventFiringWebDriver
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/expected_conditions.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/expected_conditions.py
new file mode 100644
index 00000000000..ecc8d3a49dd
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/expected_conditions.py
@@ -0,0 +1,283 @@
+#
+# Copyright 2012 WebDriver committers
+# Copyright 2012 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from selenium.common.exceptions import NoSuchElementException
+from selenium.common.exceptions import NoSuchFrameException
+from selenium.common.exceptions import StaleElementReferenceException
+from selenium.common.exceptions import WebDriverException
+from selenium.common.exceptions import NoAlertPresentException
+
+"""
+ * Canned "Expected Conditions" which are generally useful within webdriver
+ * tests.
+"""
+class title_is(object):
+ """An expectation for checking the title of a page.
+ title is the expected title, which must be an exact match
+ returns True if the title matches, false otherwise."""
+ def __init__(self, title):
+ self.title = title
+
+ def __call__(self, driver):
+ return self.title == driver.title
+
+class title_contains(object):
+ """ An expectation for checking that the title contains a case-sensitive
+ substring. title is the fragment of title expected
+ returns True when the title matches, False otherwise
+ """
+ def __init__(self, title):
+ self.title = title
+
+ def __call__(self, driver):
+ return self.title in driver.title
+
+class presence_of_element_located(object):
+ """ An expectation for checking that an element is present on the DOM
+ of a page. This does not necessarily mean that the element is visible.
+ locator - used to find the element
+ returns the WebElement once it is located
+ """
+ def __init__(self, locator):
+ self.locator = locator
+
+ def __call__(self, driver):
+ return _find_element(driver, self.locator)
+
+class visibility_of_element_located(object):
+ """ An expectation for checking that an element is present on the DOM of a
+ page and visible. Visibility means that the element is not only displayed
+ but also has a height and width that is greater than 0.
+ locator - used to find the element
+ returns the WebElement once it is located and visible
+ """
+ def __init__(self, locator):
+ self.locator = locator
+
+ def __call__(self, driver):
+ try:
+ return _element_if_visible(_find_element(driver, self.locator))
+ except StaleElementReferenceException:
+ return False
+
+class visibility_of(object):
+ """ An expectation for checking that an element, known to be present on the
+ DOM of a page, is visible. Visibility means that the element is not only
+ displayed but also has a height and width that is greater than 0.
+ element is the WebElement
+ returns the (same) WebElement once it is visible
+ """
+ def __init__(self, element):
+ self.element = element
+
+ def __call__(self, ignored):
+ return _element_if_visible(self.element)
+
+def _element_if_visible(element):
+ return element if element.is_displayed() else False
+
+class presence_of_all_elements_located(object):
+ """ An expectation for checking that there is at least one element present
+ on a web page.
+ locator is used to find the element
+ returns the list of WebElements once they are located
+ """
+ def __init__(self, locator):
+ self.locator = locator
+
+ def __call__(self, driver):
+ return _find_elements(driver, self.locator)
+
+class text_to_be_present_in_element(object):
+ """ An expectation for checking if the given text is present in the
+ specified element.
+ locator, text
+ """
+ def __init__(self, locator, text_):
+ self.locator = locator
+ self.text = text_
+
+ def __call__(self, driver):
+ try :
+ element_text = _find_element(driver, self.locator).text
+ return self.text in element_text
+ except StaleElementReferenceException:
+ return False
+
+class text_to_be_present_in_element_value(object):
+ """
+ An expectation for checking if the given text is present in the element's
+ locator, text
+ """
+ def __init__(self, locator, text_):
+ self.locator = locator
+ self.text = text_
+
+ def __call__(self, driver):
+ try:
+ element_text = _find_element(driver,
+ self.locator).get_attribute("value")
+ if element_text:
+ return self.text in element_text
+ else:
+ return False
+ except StaleElementReferenceException:
+ return False
+
+class frame_to_be_available_and_switch_to_it(object):
+ """ An expectation for checking whether the given frame is available to
+ switch to. If the frame is available it switches the given driver to the
+ specified frame.
+ """
+ def __init__(self, locator):
+ self.frame_locator = locator
+
+ def __call__(self, driver):
+ try:
+ driver.switch_to_frame(self.frame_locator)
+ return True
+ except NoSuchFrameException:
+ return False
+
+class invisibility_of_element_located(object):
+ """ An Expectation for checking that an element is either invisible or not
+ present on the DOM.
+
+ locator used to find the element
+ """
+ def __init__(self, locator):
+ self.locator = locator
+
+ def __call__(self, driver):
+ try:
+ return not _find_element(driver, self.locator).is_displayed()
+ except (NoSuchElementException, StaleElementReferenceException):
+ # In the case of NoSuchElement, returns true because the element is
+ # not present in DOM. The try block checks if the element is present
+ # but is invisible.
+ # In the case of StaleElementReference, returns true because stale
+ # element reference implies that element is no longer visible.
+ return True
+
+class element_to_be_clickable(object):
+ """ An Expectation for checking an element is visible and enabled such that
+ you can click it."""
+ def __init__(self, locator):
+ self.locator = locator
+
+ def __call__(self, driver):
+ element = visibility_of_element_located(self.locator)(driver)
+ if element and element.is_enabled():
+ return element
+ else:
+ return False
+
+class staleness_of(object):
+ """ Wait until an element is no longer attached to the DOM.
+ element is the element to wait for.
+ returns False if the element is still attached to the DOM, true otherwise.
+ """
+ def __init__(self, element):
+ self.element = element
+
+ def __call__(self, ignored):
+ try:
+ # Calling any method forces a staleness check
+ self.element.is_enabled()
+ return False
+ except StaleElementReferenceException as expected:
+ return True
+
+class element_to_be_selected(object):
+ """ An expectation for checking the selection is selected.
+ element is WebElement object
+ """
+ def __init__(self, element):
+ self.element = element
+
+ def __call__(self, ignored):
+ return self.element.is_selected()
+
+class element_located_to_be_selected(object):
+ """An expectation for the element to be located is selected.
+ locator is a tuple of (by, path)"""
+ def __init__(self, locator):
+ self.locator = locator
+
+ def __call__(self, driver):
+ return _find_element(driver, self.locator).is_selected()
+
+class element_selection_state_to_be(object):
+ """ An expectation for checking if the given element is selected.
+ element is WebElement object
+ is_selected is a Boolean."
+ """
+ def __init__(self, element, is_selected):
+ self.element = element
+ self.is_selected = is_selected
+
+ def __call__(self, ignored):
+ return self.element.is_selected() == self.is_selected
+
+class element_located_selection_state_to_be(object):
+ """ An expectation to locate an element and check if the selection state
+ specified is in that state.
+ locator is a tuple of (by, path)
+ is_selected is a boolean
+ """
+ def __init__(self, locator, is_selected):
+ self.locator = locator
+ self.is_selected = is_selected
+
+ def __call__(self, driver):
+ try:
+ element = _find_element(driver, self.locator)
+ return element.is_selected() == self.is_selected
+ except StaleElementReferenceException:
+ return False
+
+class alert_is_present(object):
+ """ Expect an alert to be present."""
+ def __init__(self):
+ pass
+
+ def __call__(self, driver):
+ try:
+ alert = driver.switch_to_alert()
+ alert.text
+ return alert
+ except NoAlertPresentException:
+ return False
+
+def _find_element(driver, by):
+ """ Looks up an element. Logs and re-raises WebDriverException if thrown.
+ Method exists to gather data for
+ http://code.google.com/p/selenium/issues/detail?id=1800
+ """
+ try :
+ return driver.find_element(*by)
+ except NoSuchElementException as e:
+ raise e
+ except WebDriverException as e:
+ raise e
+
+
+def _find_elements(driver, by):
+ try :
+ return driver.find_elements(*by)
+ except WebDriverException as e:
+ raise e
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/select.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/select.py
new file mode 100644
index 00000000000..5bd103a05b9
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/select.py
@@ -0,0 +1,223 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from selenium.webdriver.common.by import By
+from selenium.common.exceptions import NoSuchElementException, UnexpectedTagNameException
+
+class Select:
+
+ def __init__(self, webelement):
+ """
+ Constructor. A check is made that the given element is, indeed, a SELECT tag. If it is not,
+ then an UnexpectedTagNameException is thrown.
+
+ :Args:
+ - webelement - element SELECT element to wrap
+
+ Example:
+ from selenium.webdriver.support.ui import Select \n
+ Select(driver.find_element_by_tag_name("select")).select_by_index(2)
+ """
+ if webelement.tag_name.lower() != "select":
+ raise UnexpectedTagNameException(
+ "Select only works on <select> elements, not on <%s>" %
+ webelement.tag_name)
+ self._el = webelement
+ multi = self._el.get_attribute("multiple")
+ self.is_multiple = multi and multi != "false"
+
+ @property
+ def options(self):
+ """Returns a list of all options belonging to this select tag"""
+ return self._el.find_elements(By.TAG_NAME, 'option')
+
+ @property
+ def all_selected_options(self):
+ """Returns a list of all selected options belonging to this select tag"""
+ ret = []
+ for opt in self.options:
+ if opt.is_selected():
+ ret.append(opt)
+ return ret
+
+ @property
+ def first_selected_option(self):
+ """The first selected option in this select tag (or the currently selected option in a
+ normal select)"""
+ for opt in self.options:
+ if opt.is_selected():
+ return opt
+ raise NoSuchElementException("No options are selected")
+
+ def select_by_value(self, value):
+ """Select all options that have a value matching the argument. That is, when given "foo" this
+ would select an option like:
+
+ <option value="foo">Bar</option>
+
+ :Args:
+ - value - The value to match against
+ """
+ css = "option[value =%s]" % self._escapeString(value)
+ opts = self._el.find_elements(By.CSS_SELECTOR, css)
+ matched = False
+ for opt in opts:
+ self._setSelected(opt)
+ if not self.is_multiple:
+ return
+ matched = True
+ if not matched:
+ raise NoSuchElementException("Cannot locate option with value: %s" % value)
+
+ def select_by_index(self, index):
+ """Select the option at the given index. This is done by examing the "index" attribute of an
+ element, and not merely by counting.
+
+ :Args:
+ - index - The option at this index will be selected
+ """
+ match = str(index)
+ for opt in self.options:
+ if opt.get_attribute("index") == match:
+ self._setSelected(opt)
+ if not self.is_multiple:
+ return
+ match = True
+ if match != True:
+ raise NoSuchElementException("Could not locate element with index %d" % index)
+
+ def select_by_visible_text(self, text):
+ """Select all options that display text matching the argument. That is, when given "Bar" this
+ would select an option like:
+
+ <option value="foo">Bar</option>
+
+ :Args:
+ - text - The visible text to match against
+ """
+ xpath = ".//option[normalize-space(.) = %s]" % self._escapeString(text)
+ opts = self._el.find_elements(By.XPATH, xpath)
+ matched = False
+ for opt in opts:
+ self._setSelected(opt)
+ if not self.is_multiple:
+ return
+ matched = True
+
+ if len(opts) == 0 and " " in text:
+ subStringWithoutSpace = self._get_longest_token(text)
+ if subStringWithoutSpace == "":
+ # seems weird to me that the java impl just selects the first or all if multiple
+ # oh well... doing it here too.
+ candidates = self.options
+ else:
+ xpath = ".//option[contains(.,%s)]" % self._escapeString(subStringWithoutSpace)
+ candidates = self._el.find_elements(By.XPATH, xpath)
+ for candidate in candidates:
+ self._setSelected(candidate)
+ if not self.is_multiple:
+ return
+ matched = True
+
+ if matched != True:
+ raise NoSuchElementException("Could not locate element with visible text: %s" % text)
+
+ def deselect_all(self):
+ """Clear all selected entries. This is only valid when the SELECT supports multiple selections.
+ throws NotImplementedError If the SELECT does not support multiple selections
+ """
+ if not self.is_multiple:
+ raise NotImplementedError("You may only deselect all options of a multi-select")
+ for opt in self.options:
+ self._unsetSelected(opt)
+
+ def deselect_by_value(self, value):
+ """Deselect all options that have a value matching the argument. That is, when given "foo" this
+ would deselect an option like:
+
+ <option value="foo">Bar</option>
+
+ :Args:
+ - value - The value to match against
+ """
+ if not self.is_multiple:
+ raise NotImplementedError("You may only deselect options of a multi-select")
+ css = "option[value = %s]" % self._escapeString(value)
+ opts = self._el.find_elements(By.CSS_SELECTOR, css)
+ for opt in opts:
+ self._unsetSelected(opt)
+
+ def deselect_by_index(self, index):
+ """Deselect the option at the given index. This is done by examing the "index" attribute of an
+ element, and not merely by counting.
+
+ :Args:
+ - index - The option at this index will be deselected
+ """
+ if not self.is_multiple:
+ raise NotImplementedError("You may only deselect options of a multi-select")
+ for opt in self.options:
+ if opt.get_attribute("index") == str(index):
+ self._unsetSelected(opt)
+
+ def deselect_by_visible_text(self, text):
+ """Deselect all options that display text matching the argument. That is, when given "Bar" this
+ would deselect an option like:
+
+ <option value="foo">Bar</option>
+
+ :Args:
+ - text - The visible text to match against
+ """
+ if not self.is_multiple:
+ raise NotImplementedError("You may only deselect options of a multi-select")
+ xpath = ".//option[normalize-space(.) = %s]" % self._escapeString(text)
+ opts = self._el.find_elements(By.XPATH, xpath)
+ for opt in opts:
+ self._unsetSelected(opt)
+
+ def _setSelected(self, option):
+ if not option.is_selected():
+ option.click()
+
+ def _unsetSelected(self, option):
+ if option.is_selected():
+ option.click()
+
+ def _escapeString(self, value):
+ if '"' in value and "'" in value:
+ substrings = value.split("\"")
+ result = ["concat("]
+ for substring in substrings:
+ result.append("\"%s\"" % substring)
+ result.append(", '\"', ")
+ result = result[0:-1]
+ if value.endswith('"'):
+ result.append(", '\"'")
+ return "".join(result) + ")"
+
+ if '"' in value:
+ return "'%s'" % value
+
+ return "\"%s\"" % value
+
+ def _get_longest_token(self, value):
+ items = value.split(" ")
+ longest = ""
+ for item in items:
+ if len(item) > len(longest):
+ longest = item
+ return longest
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/ui.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/ui.py
new file mode 100644
index 00000000000..79c8a177c6e
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/ui.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from select import Select
+from wait import WebDriverWait
+
diff --git a/chromium/third_party/webdriver/pylib/selenium/webdriver/support/wait.py b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/wait.py
new file mode 100644
index 00000000000..2e693081c04
--- /dev/null
+++ b/chromium/third_party/webdriver/pylib/selenium/webdriver/support/wait.py
@@ -0,0 +1,87 @@
+#!/usr/bin/python
+#
+# Copyright 2011 Software Freedom Conservancy.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import time
+from selenium.common.exceptions import NoSuchElementException
+from selenium.common.exceptions import TimeoutException
+
+POLL_FREQUENCY = 0.5 # How long to sleep inbetween calls to the method
+IGNORED_EXCEPTIONS = [NoSuchElementException] # list of exceptions ignored during calls to the method
+
+class WebDriverWait(object):
+
+ def __init__(self, driver, timeout, poll_frequency=POLL_FREQUENCY, ignored_exceptions=None):
+ """Constructor, takes a WebDriver instance and timeout in seconds.
+
+ :Args:
+ - driver - Instance of WebDriver (Ie, Firefox, Chrome or Remote)
+ - timeout - Number of seconds before timing out
+ - poll_frequency - sleep interval between calls
+ By default, it is 0.5 second.
+ - ignored_exceptions - iterable structure of exception classes ignored during calls.
+ By default, it contains NoSuchElementException only.
+
+ Example:
+ from selenium.webdriver.support.ui import WebDriverWait \n
+ element = WebDriverWait(driver, 10).until(lambda x: x.find_element_by_id("someId")) \n
+ is_disappeared = WebDriverWait(driver, 30, 1, (ElementNotVisibleException)).\ \n
+ until_not(lambda x: x.find_element_by_id("someId").is_displayed())
+ """
+ self._driver = driver
+ self._timeout = timeout
+ self._poll = poll_frequency
+ # avoid the divide by zero
+ if self._poll == 0:
+ self._poll = POLL_FREQUENCY
+ exceptions = IGNORED_EXCEPTIONS
+ if ignored_exceptions is not None:
+ try:
+ exceptions.extend(iter(ignored_exceptions))
+ except TypeError: # ignored_exceptions is not iterable
+ exceptions.append(ignored_exceptions)
+ self._ignored_exceptions = tuple(exceptions)
+
+ def until(self, method, message=''):
+ """Calls the method provided with the driver as an argument until the \
+ return value is not False."""
+ end_time = time.time() + self._timeout
+ while(True):
+ try:
+ value = method(self._driver)
+ if value:
+ return value
+ except self._ignored_exceptions:
+ pass
+ time.sleep(self._poll)
+ if(time.time() > end_time):
+ break
+ raise TimeoutException(message)
+
+ def until_not(self, method, message=''):
+ """Calls the method provided with the driver as an argument until the \
+ return value is False."""
+ end_time = time.time() + self._timeout
+ while(True):
+ try:
+ value = method(self._driver)
+ if not value:
+ return value
+ except self._ignored_exceptions:
+ return True
+ time.sleep(self._poll)
+ if(time.time() > end_time):
+ break
+ raise TimeoutException(message)
diff --git a/chromium/third_party/webdriver/test_data/Bin/Intelligencia.UrlRewriter.dll b/chromium/third_party/webdriver/test_data/Bin/Intelligencia.UrlRewriter.dll
new file mode 100755
index 00000000000..45c30e35a0c
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Bin/Intelligencia.UrlRewriter.dll
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/ClickTest_testClicksASurroundingStrongTag.html b/chromium/third_party/webdriver/test_data/ClickTest_testClicksASurroundingStrongTag.html
new file mode 100644
index 00000000000..9d919250f1f
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/ClickTest_testClicksASurroundingStrongTag.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>ClickTest_testClicksASurroundingStrongTag</title>
+</head>
+<body>
+ <div>
+ <a href="xhtmlTest.html"><strong>Click</strong></a>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/Page.aspx b/chromium/third_party/webdriver/test_data/Page.aspx
new file mode 100644
index 00000000000..90b68cf2b50
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Page.aspx
@@ -0,0 +1,17 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page.aspx.cs" Inherits="Page" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" >
+<head runat="server">
+ <title>Untitled Page</title>
+</head>
+<body>
+ <a href="../xhtmlTest.html" target="_top">top</a>
+ <form id="form1" runat="server">
+ <div>
+
+ </div>
+ </form>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/Page.aspx.cs b/chromium/third_party/webdriver/test_data/Page.aspx.cs
new file mode 100644
index 00000000000..c2a5e9aed8f
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Page.aspx.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Threading;
+
+public partial class Page : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Response.ContentType = "text/html";
+
+ int lastIndex = Request.PathInfo.LastIndexOf("/");
+ string pageNumber = (lastIndex == -1 ? "Unknown" : Request.PathInfo.Substring(lastIndex + 1));
+ if (!string.IsNullOrEmpty(Request.QueryString["pageNumber"]))
+ {
+ pageNumber = Request.QueryString["pageNumber"];
+ }
+ Response.Output.Write("<html><head><title>Page" + pageNumber + "</title></head>");
+ Response.Output.Write("<body>Page number <span id=\"pageNumber\">");
+ Response.Output.Write(pageNumber);
+ //Response.Output.Write("<script>var s=''; for (var i in window) {s += i + ' -> ' + window[i] + '<p>';} document.write(s);</script>")'
+ Response.Output.Write("</span></body></html>");
+ }
+}
diff --git a/chromium/third_party/webdriver/test_data/Redirect.aspx b/chromium/third_party/webdriver/test_data/Redirect.aspx
new file mode 100644
index 00000000000..50195db6d65
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Redirect.aspx
@@ -0,0 +1,11 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Redirect.aspx.cs" Inherits="Redirect" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" >
+<head runat="server">
+ <title>Untitled Page</title>
+</head>
+<body>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/Redirect.aspx.cs b/chromium/third_party/webdriver/test_data/Redirect.aspx.cs
new file mode 100644
index 00000000000..ca356c1ed98
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Redirect.aspx.cs
@@ -0,0 +1,9 @@
+using System;
+
+public partial class Redirect : Page
+{
+ protected new void Page_Load(object sender, EventArgs e)
+ {
+ Response.Redirect("resultPage.html");
+ }
+}
diff --git a/chromium/third_party/webdriver/test_data/Settings.StyleCop b/chromium/third_party/webdriver/test_data/Settings.StyleCop
new file mode 100644
index 00000000000..7075ea9f3ed
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Settings.StyleCop
@@ -0,0 +1,759 @@
+<StyleCopSettings Version="4.3">
+ <Analyzers>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
+ <Rules>
+ <Rule Name="ElementsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PartialElementsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="EnumerationItemsMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationMustContainValidXml">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustHaveSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PartialElementDocumentationMustHaveSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustHaveSummaryText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PartialElementDocumentationMustHaveSummaryText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustNotHaveDefaultSummary">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParametersMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParameterDocumentationMustMatchElementParameters">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParameterDocumentationMustDeclareParameterName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementParameterDocumentationMustHaveText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementReturnValueMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementReturnValueDocumentationMustHaveText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="VoidReturnValueMustNotBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParametersMustBeDocumented">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParametersMustBeDocumentedPartialClass">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParameterDocumentationMustMatchTypeParameters">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParameterDocumentationMustDeclareParameterName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="GenericTypeParameterDocumentationMustHaveText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PropertySummaryDocumentationMustMatchAccessors">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationMustNotBeCopiedAndPasted">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SingleLineCommentsMustNotUseDocumentationStyleSlashes">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationTextMustNotBeEmpty">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationTextMustContainWhitespace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationMustMeetCharacterPercentage">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationTextMustMeetMinimumCharacterLength">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ConstructorSummaryDocumentationMustBeginWithStandardText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DestructorSummaryDocumentationMustBeginWithStandardText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationHeadersMustNotContainBlankLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="IncludedDocumentationXPathDoesNotExist">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="IncludeNodeDoesNotContainValidFileAndPath">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileMustHaveHeader">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustShowCopyright">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveCopyrightText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustContainFileName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderFileNameDocumentationMustMatchFileName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileHeaderMustHaveValidCompanyText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.LayoutRules">
+ <Rules>
+ <Rule Name="CurlyBracketsForMultiLineStatementsMustNotShareLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="StatementMustNotBeOnSingleLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementMustNotBeOnSingleLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CurlyBracketsMustNotBeOmitted">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="AllAccessorsMustBeMultiLineOrSingleLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningCurlyBracketsMustNotBeFollowedByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationHeadersMustNotBeFollowedByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CodeMustNotContainMultipleBlankLinesInARow">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingCurlyBracketsMustNotBePrecededByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningCurlyBracketsMustNotBePrecededByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ChainedStatementBlocksMustNotBePrecededByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="WhileDoFooterMustNotBePrecededByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SingleLineCommentsMustNotBeFollowedByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingCurlyBracketMustBeFollowedByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementDocumentationHeaderMustBePrecededByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SingleLineCommentMustBePrecededByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementsMustBeSeparatedByBlankLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.MaintainabilityRules">
+ <Rules>
+ <Rule Name="AccessModifierMustBeDeclared">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FieldsMustBePrivate">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CodeAnalysisSuppressionMustHaveJustification">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DebugAssertMustProvideMessageText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DebugFailMustProvideMessageText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileMayOnlyContainASingleClass">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FileMayOnlyContainASingleNamespace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="StatementMustNotUseUnnecessaryParenthesis">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ArithmeticExpressionsMustDeclarePrecedence">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ConditionalExpressionsMustDeclarePrecedence">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="RemoveDelegateParenthesisWhenPossible">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="RemoveUnnecessaryCode">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
+ <Rules>
+ <Rule Name="ElementMustBeginWithUpperCaseLetter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementMustBeginWithLowerCaseLetter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="InterfaceNamesMustBeginWithI">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ConstFieldNamesMustBeginWithUpperCaseLetter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FieldNamesMustNotUseHungarianNotation">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FieldNamesMustBeginWithLowerCaseLetter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="AccessibleFieldsMustBeginWithUpperCaseLetter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="VariableNamesMustNotBePrefixed">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FieldNamesMustNotBeginWithUnderscore">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="FieldNamesMustNotContainUnderscore">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.OrderingRules">
+ <Rules>
+ <Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementsMustAppearInTheCorrectOrder">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ElementsMustBeOrderedByAccess">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ConstantsMustAppearBeforeFields">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="StaticElementsMustAppearBeforeInstanceElements">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DeclarationKeywordsMustFollowOrder">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ProtectedMustComeBeforeInternal">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PropertyAccessorsMustFollowOrder">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="EventAccessorsMustFollowOrder">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="UsingDirectivesMustBeOrderedAlphabeticallyByNamespace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="UsingAliasDirectivesMustBeOrderedAlphabeticallyByAliasName">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.ReadabilityRules">
+ <Rules>
+ <Rule Name="CommentsMustContainText">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DoNotPrefixCallsWithBaseUnlessLocalImplementationExists">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PrefixLocalCallsWithThis">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningParenthesisMustBeOnDeclarationLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingParenthesisMustBeOnLineOfLastParameter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingParenthesisMustBeOnLineOfOpeningParenthesis">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CommaMustBeOnSameLineAsPreviousParameter">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ParameterListMustFollowDeclaration">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ParameterMustFollowComma">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SplitParametersMustStartOnLineAfterDeclaration">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ParametersMustBeOnSameLineOrSeparateLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ParameterMustNotSpanMultipleLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="QueryClauseMustFollowPreviousClause">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="QueryClausesMustBeOnSeparateLinesOrAllOnOneLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="QueryClausesSpanningMultipleLinesMustBeginOnOwnLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DoNotPlaceRegionsWithinElements">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CodeMustNotContainEmptyStatements">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CodeMustNotContainMultipleStatementsOnOneLine">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="BlockStatementsMustNotContainEmbeddedComments">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="BlockStatementsMustNotContainEmbeddedRegions">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="UseStringEmptyForEmptyStrings">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="UseBuiltInTypeAlias">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ <Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.SpacingRules">
+ <Rules>
+ <Rule Name="KeywordsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CommasMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SemicolonsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SymbolsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DocumentationLinesMustBeginWithSingleSpace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="SingleLineCommentsMustBeginWithSingleSpace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PreprocessorKeywordsMustNotBePrecededBySpace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OperatorKeywordMustBeFollowedBySpace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningParenthesisMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingParenthesisMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningSquareBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingSquareBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningCurlyBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingCurlyBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningGenericBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingGenericBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="OpeningAttributeBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ClosingAttributeBracketsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="NullableTypeSymbolsMustNotBePrecededBySpace">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="MemberAccessSymbolsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="IncrementDecrementSymbolsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="NegativeSignsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="PositiveSignsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="DereferenceAndAccessOfSymbolsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="ColonsMustBeSpacedCorrectly">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CodeMustNotContainMultipleWhitespaceInARow">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ <Rule Name="TabsMustNotBeUsed">
+ <RuleSettings>
+ <BooleanProperty Name="Enabled">False</BooleanProperty>
+ </RuleSettings>
+ </Rule>
+ </Rules>
+ <AnalyzerSettings />
+ </Analyzer>
+ </Analyzers>
+</StyleCopSettings> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/Web.Config b/chromium/third_party/webdriver/test_data/Web.Config
new file mode 100644
index 00000000000..9b2e8f43763
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/Web.Config
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<!--
+ Note: As an alternative to hand editing this file you can use the
+ web admin tool to configure settings for your application. Use
+ the Website->Asp.Net Configuration option in Visual Studio.
+ A full list of settings and comments can be found in
+ machine.config.comments usually located in
+ \Windows\Microsoft.Net\Framework\v2.x\Config
+-->
+<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
+ <configSections>
+ <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter"/>
+ </configSections>
+ <appSettings/>
+ <connectionStrings/>
+ <system.web>
+ <!--
+ Set compilation debug="true" to insert debugging
+ symbols into the compiled page. Because this
+ affects performance, set this value to true only
+ during development.
+ -->
+ <compilation debug="true" defaultLanguage="c#" targetFramework="4.0"/>
+ <!--
+ The <authentication> section enables configuration
+ of the security authentication mode used by
+ ASP.NET to identify an incoming user.
+ -->
+ <authentication mode="Windows"/>
+ <!--
+ The <customErrors> section enables configuration
+ of what to do if/when an unhandled error occurs
+ during the execution of a request. Specifically,
+ it enables developers to configure html error pages
+ to be displayed in place of a error stack trace.
+
+ <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
+ <error statusCode="403" redirect="NoAccess.htm" />
+ <error statusCode="404" redirect="FileNotFound.htm" />
+ </customErrors>
+ -->
+ <httpModules>
+ <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
+ </httpModules>
+ <!--urlMappings enabled="true">
+ <add url="~/redirect" mappedUrl="~/Redirect.aspx" />
+ </urlMappings-->
+ <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/></system.web>
+ <system.webServer>
+ <modules runAllManagedModulesForAllRequests="true">
+ <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule"/>
+ </modules>
+ </system.webServer>
+ <rewriter>
+ <rewrite url="~/redirect" to="~/Redirect.aspx"/>
+ <rewrite url="~/page/([0-9]+)$" to="~/Page.aspx?pageNumber=$1"/>
+ <rewrite url="~/page/([0-9]+)(\?)(.*)" to="~/Page.aspx?pageNumber=$1&amp;$3"/>
+ </rewriter>
+</configuration>
diff --git a/chromium/third_party/webdriver/test_data/actualXhtmlPage.xhtml b/chromium/third_party/webdriver/test_data/actualXhtmlPage.xhtml
new file mode 100644
index 00000000000..a0f54703c18
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/actualXhtmlPage.xhtml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>
+ Title
+ </title>
+ </head>
+ <body>
+ <p>
+ <a href="/foo">Foo</a>
+ </p>
+ </body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/ajaxy_page.html b/chromium/third_party/webdriver/test_data/ajaxy_page.html
new file mode 100644
index 00000000000..4b34031d55a
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/ajaxy_page.html
@@ -0,0 +1,81 @@
+<!DOCTYPE html>
+<html>
+<body>
+<form action="javascript:updateDom()">
+ <label for="typer">New label text:</label>
+ <input name="typer" type="text"/>
+ <br/>
+ <label for="color">Select label color:</label>
+ <input name="color" id="red" value="red" type="radio"/>Red
+ <input name="color" id="green" value="green" type="radio"/>Green
+ <br/>
+ <input name="submit" type="submit" value="Add Label"/>
+</form>
+<div id="update_butter" style="display:none"></div>
+<script>
+ var butter = document.getElementById('update_butter');
+
+ var textProperty = butter['innerText'] ? 'innerText' : 'textContent';
+
+ var listeners = [];
+ function registerListener(fn) {
+ listeners.push(fn);
+ }
+
+ function updateDom() {
+ butter.style.display = 'block';
+ butter[textProperty] = 'Updating';
+ disableForm();
+ tick();
+ }
+
+ function disableForm() {
+ var inputs = document.getElementsByTagName('input');
+ for (var i = 0, input; input = inputs[i]; ++i) {
+ input.disabled = true;
+ }
+ }
+
+ function enableForm() {
+ var inputs = document.getElementsByTagName('input');
+ for (var i = 0, input; input = inputs[i]; ++i) {
+ input.disabled = false;
+ }
+ }
+
+ function tick() {
+ var length = butter[textProperty].substring('Updating'.length).length;
+ if (length != 10) {
+ butter[textProperty] += '.';
+ window.setTimeout(tick, 500);
+ } else {
+ enableForm();
+ var div = document.createElement('div');
+ var colors = document.forms[0].color;
+ for (var i = 0, color; color = colors[i]; ++i) {
+ if (color.checked) {
+ div.style.backgroundColor = color.value;
+ break;
+ }
+ }
+ div[textProperty] = document.forms[0].typer.value;
+ div.className = 'label';
+ document.forms[0].typer.value = '';
+ document.body.appendChild(div);
+
+ butter[textProperty] = 'Done!';
+
+ window.setTimeout(function() {
+ while (listeners.length) {
+ try {
+ listeners.shift()(div[textProperty]);
+ } catch (e) {
+ butter[textProperty] = "Exception seen: " + e;
+ }
+ }
+ }, 500);
+ }
+ }
+</script>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/alerts.html b/chromium/third_party/webdriver/test_data/alerts.html
new file mode 100644
index 00000000000..3ae831b6cb9
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/alerts.html
@@ -0,0 +1,73 @@
+<html>
+<head>
+ <title>Testing Alerts</title>
+
+ <script type="text/javascript">
+ function setInnerText(id, value) {
+ document.getElementById(id).innerHTML = '<p>' + value + '</p>';
+ }
+
+ function displayPrompt() {
+ setInnerText('text', prompt('Enter something'));
+ }
+
+ function displayPromptWithDefault() {
+ setInnerText('text', prompt('Enter something', 'This is a default value'));
+ }
+
+ function displayTwoPrompts() {
+ setInnerText('text1', prompt('First'));
+ setInnerText('text2', prompt('Second'));
+ }
+
+ function slowAlert() {
+ window.setTimeout(function() {
+ alert('Slow');
+ }, 200);
+ }
+ </script>
+</head>
+<body>
+
+<h1>Testing Alerts and Stuff</h1>
+
+<p>This tests alerts: <a href="#" id="alert" onclick="alert('cheese');">click me</a></p>
+
+<p>This tests alerts: <a href="#" id="empty-alert" onclick="alert('');">click me</a></p>
+
+<p>Let's make the <a href="#" id="prompt" onclick="displayPrompt();">prompt happen</a></p>
+
+<p>Let's make the <a href="#" id="prompt-with-default" onclick="displayPromptWithDefault();">prompt with default happen</a></p>
+
+<p>Let's make TWO <a href="#" id="double-prompt" onclick="displayTwoPrompts();">prompts happen</a></p>
+
+<p>A <a href="#" id="slow-alert" onclick="slowAlert();">SLOW</a> alert</p>
+
+<p>This is a test of a confirm:
+ <a href="simpleTest.html" id="confirm" onclick="return confirm('Are you sure?');">test confirm</a></p>
+
+<p>This is a test of showModalDialog: <a href="#" id="dialog" onclick="showModalDialog('javascriptPage.html')">test dialog</a></p>
+
+<p>This is a test of an alert in an iframe:
+ <iframe src="iframeWithAlert.html" name="iframeWithAlert"></iframe>
+</p>
+
+<p>This is a test of an alert in a nested iframe:
+ <iframe src="iframeWithIframe.html" name="iframeWithIframe"></iframe>
+</p>
+
+<p>This is a test of an alert open from onload event handler: <a id="open-page-with-onload-alert" href="pageWithOnLoad.html">open new page</a></p>
+
+<p>This is a test of an alert open from onload event handler: <a id="open-window-with-onload-alert" href="pageWithOnLoad.html" target="onload">open new window</a></p>
+
+<p>This is a test of an alert open from onunload event handler: <a id="open-page-with-onunload-alert" href="pageWithOnUnload.html">open new page</a></p>
+
+<p>This is a test of an alert open from onclose event handler: <a id="open-window-with-onclose-alert" href="pageWithOnUnload.html" target="onclose">open new window</a></p>
+
+<p>This is a test of an alert open from onclose event handler: <a id="open-new-window" href="blank.html" target="newwindow">open new window</a></p>
+
+<div id="text"></div>
+<div id="text1"></div>
+<div id="text2"></div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/banner.gif b/chromium/third_party/webdriver/test_data/banner.gif
new file mode 100644
index 00000000000..3f3435401f8
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/banner.gif
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/blank.html b/chromium/third_party/webdriver/test_data/blank.html
new file mode 100644
index 00000000000..c3f376e7680
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/blank.html
@@ -0,0 +1 @@
+<html><head><title>blank</title></head><body></body></html>
diff --git a/chromium/third_party/webdriver/test_data/bodyTypingTest.html b/chromium/third_party/webdriver/test_data/bodyTypingTest.html
new file mode 100644
index 00000000000..f2b1939f19d
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/bodyTypingTest.html
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Testing Typing into body</title>
+ <script type="text/javascript">
+ function appendMessage(message) {
+ document.getElementById('result').innerHTML += message + " ";
+ }
+
+ function appendMessageFromBody(message) {
+ document.getElementById('body_result').innerHTML += message + " ";
+ }
+ </script>
+</head>
+
+<body onkeypress="appendMessageFromBody('keypress')">
+ <h1>Type Stuff</h1>
+
+ <div id="result">
+ &nbsp;
+ </div>
+
+ <div id="body_result">
+ &nbsp;
+ </div>
+
+
+ <!-- Textbox - to confuse some browsers. -->
+
+ <form action="resultPage.html" id="on-form">
+ <input id="intext"
+ onfocus="appendMessage('focus')"
+ onkeydown="appendMessage('keydown')"
+ onkeypress="appendMessage('keypress')"
+ onkeyup="appendMessage('keyup')"
+ onblur="appendMessage('blur')"
+ onchange="appendMessage('change')"
+ />
+ </form>
+</body>
+
diff --git a/chromium/third_party/webdriver/test_data/booleanAttributes.html b/chromium/third_party/webdriver/test_data/booleanAttributes.html
new file mode 100644
index 00000000000..095e79c80e4
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/booleanAttributes.html
@@ -0,0 +1,19 @@
+<html>
+<head>
+ <title>Elements with boolean attributes</title>
+</head>
+<body>
+<form method="get" action="resultPage.html" name="required">
+ <input type="text" id="working"/>
+ <input type="email" id="emailRequired" required/>
+ <input type="text" id="inputRequired" value="Example text" required=""/>
+ <textarea id="textAreaRequired" rows="5" cols="5" required="false">Example text</textarea>
+ <textarea id="emptyTextAreaRequired" rows="5" cols="5" required="required"></textarea>
+</form>
+
+<!-- Empty div to test GetAttribute -->
+<div id="wallace" class="gromit"></div>
+<!-- Div to test boolean attributes -->
+<div id="unwrappable" nowrap>Unwrappable text</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/child/childPage.html b/chromium/third_party/webdriver/test_data/child/childPage.html
new file mode 100644
index 00000000000..67591b35465
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/child/childPage.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+ <title>Depth one child page</title>
+</head>
+<body>
+ <p>I'm a page in a child directory</p>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/child/grandchild/grandchildPage.html b/chromium/third_party/webdriver/test_data/child/grandchild/grandchildPage.html
new file mode 100644
index 00000000000..3153a4ce0e7
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/child/grandchild/grandchildPage.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+ <title>Depth two child page</title>
+</head>
+<body>
+ <p>I'm a page in a grandchild directory! How cute!</p>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/clickEventPage.html b/chromium/third_party/webdriver/test_data/clickEventPage.html
new file mode 100644
index 00000000000..bad62390c9f
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/clickEventPage.html
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Testing click events</title>
+ <script type="text/javascript">
+ function displayEvent(event) {
+ var keys = ['x', 'y', 'clientX', 'clientY', 'pageX', 'pageY', 'screenX', 'screenY'];
+ var message = "<ul>";
+ for (var i = 0; i < keys.length; i++) {
+ message += "<li>" + keys[i] + ": <span id='" + keys[i] + "'>" + event[keys[i]] + "</span></li>";
+ }
+ message += "</ul>";
+ document.getElementById('result').innerHTML = message;
+ }
+ </script>
+</head>
+<body>
+ <div id="eventish" onclick="displayEvent(event);">
+ Click me to view my coordinates
+ </div>
+
+ <div id="result" style="width:300;height:60">
+ <p>&nbsp;</p>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/click_frames.html b/chromium/third_party/webdriver/test_data/click_frames.html
new file mode 100644
index 00000000000..a3dce331462
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/click_frames.html
@@ -0,0 +1,20 @@
+<html>
+<head>
+ <title>click frames</title>
+</head>
+<frameset rows="*" border="1">
+ <frame src="clicks.html" name="source" scrolling="NO" noresize>
+ <frame src="xhtmlTest.html" name="target">
+</frameset>
+</frameset>
+</html>
+<html>
+<head>
+ <title>click frames</title>
+</head>
+<frameset rows="*" border="1">
+ <frame src="clicks.html" name="source" scrolling="NO" noresize>
+ <frame src="xhtmlTest.html" name="target">
+</frameset>
+</frameset>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/click_jacker.html b/chromium/third_party/webdriver/test_data/click_jacker.html
new file mode 100644
index 00000000000..60297668429
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/click_jacker.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>click-jacking</title>
+ <script>
+ var clickJacker;
+
+ function setOpacity(opacity) {
+ if (window.navigator.userAgent.indexOf('MSIE') != -1) {
+ clickJacker.style.filter = 'alpha(opacity=' + (opacity * 100) + ')';
+ } else {
+ clickJacker.style.opacity = opacity;
+ }
+ }
+
+ function init() {
+ clickJacker = document.getElementById('clickJacker');
+ setOpacity(0);
+ }
+ </script>
+</head>
+<body onload="init()">
+<div>
+ <div id="clickJacker"
+ onclick="setOpacity(1);"
+ style="position:absolute;float:left;
+ width:200px;height:100px; padding:10px;
+ background-color:darkred;
+ border:1px solid darkred;">Click jacked!</div>
+ <div style="width:200px; height:100px;
+ border:1px solid black; padding:10px">Click Me</div>
+ <script>
+ clickJacker = document.getElementById('clickJacker');
+ </script>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/click_out_of_bounds.html b/chromium/third_party/webdriver/test_data/click_out_of_bounds.html
new file mode 100644
index 00000000000..8a51659b201
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/click_out_of_bounds.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<body>
+
+<table>
+ <tr>
+
+ <td>
+ <div style="width:752px;"></div>
+ </td>
+
+ <td>
+ <div style="width:350px; text-align: center;">
+ <form onsubmit="return false;" method="get">
+ <input id="button" value="Click me" type="submit">
+ </form>
+ </div>
+ </td>
+ </tr>
+</table>
+
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/click_out_of_bounds_overflow.html b/chromium/third_party/webdriver/test_data/click_out_of_bounds_overflow.html
new file mode 100644
index 00000000000..15ac17f9208
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/click_out_of_bounds_overflow.html
@@ -0,0 +1,85 @@
+<!DOCTYPE html>
+<html><head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<body>
+<div style="height: 100px; overflow: auto;">
+ <table>
+ <tbody>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td>data</td></tr>
+ <tr><td><a href="#clicked" id="link">click me</a></td></tr>
+ </tbody>
+</table>
+</div>
+</body></html>
diff --git a/chromium/third_party/webdriver/test_data/click_source.html b/chromium/third_party/webdriver/test_data/click_source.html
new file mode 100644
index 00000000000..22e9319a5af
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/click_source.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+ <title>Click Source</title>
+</head>
+<body>
+ <a href="simpleTest.html" target="target" id="otherframe">I go to a target</a>
+</body>
+</html>
+
+<html>
+<head>
+ <title>Click Source</title>
+</head>
+<body>
+ <a href="simpleTest.html" target="target" id="otherframe">I go to a target</a>
+</body>
+</html>
+ \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/clicks.html b/chromium/third_party/webdriver/test_data/clicks.html
new file mode 100644
index 00000000000..ebbe90ba6ff
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/clicks.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+ <title>clicks</title>
+</head>
+<body>
+<h1>Testing Clicks</h1>
+
+<iframe id="source" src="click_source.html">
+
+</iframe>
+
+<iframe id="target" name="target">
+
+</iframe>
+
+<a href="xhtmlTest.html" id="normal">I'm a normal link</a>
+<a href="#" id="anchor">I go to an anchor</a>
+<a href="javascript:window.open('xhtmlTest.html', '_blank')" id="new-window">I open a window with javascript</a>
+<a href="xhtmlTest.html" id="twoClientRects"><span></span><span>Click me</span></a>
+<a href="xhtmlTest.html" id="link-with-enclosed-image"><img id="enclosed-image" src="./icon.gif"/></a>
+<a href="xhtmlTest.html" id="link-with-enclosed-span"><span id="enclosed-span" style="color: rgb(0, 255, 0)">I'm a green link</span></a>
+<p style="background: none repeat scroll 0% 0% rgb(0, 255, 0); width: 5em;"><a id="overflowLink" href="xhtmlTest.html">looooooooooong short looooooooooong</a>
+ </p>
+<div id="bubblesTo" onclick="window.bubbledClick = true;">
+ <a id="bubblesFrom">I bubble</a>
+</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/closeable_window.html b/chromium/third_party/webdriver/test_data/closeable_window.html
new file mode 100644
index 00000000000..e64c599c981
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/closeable_window.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+<title>closeable window</title>
+</head>
+<body>
+This window can be closed by clicking on <a id="close" onclick="window.setTimeout(function() { window.close();}, 0);" href="#">this</a>.
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/cn-test.html b/chromium/third_party/webdriver/test_data/cn-test.html
new file mode 100644
index 00000000000..df846ad46dc
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/cn-test.html
@@ -0,0 +1,156 @@
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
+<style type="text/css">
+
+
+
+ /* default css */
+
+ table {
+ font-size: 1em;
+ line-height: inherit;
+ }
+
+
+ div, address, ol, ul, li, option, select {
+ margin-top: 0px;
+ margin-bottom: 0px;
+ }
+
+ p {
+ margin: 0px;
+ }
+
+ body {
+
+
+ margin: 0px;
+
+
+
+ padding-left: 50px;
+ padding-right: 50px;
+ padding-top: 40px;
+
+
+ }
+
+ h6 { font-size: 10pt }
+ h5 { font-size: 11pt }
+ h4 { font-size: 12pt }
+ h3 { font-size: 13pt }
+ h2 { font-size: 14pt }
+ h1 { font-size: 16pt }
+
+ blockquote {padding: 10px; border: 1px #DDD dashed }
+
+ a img {border: 0}
+
+ div.google_header, div.google_footer {
+ position: relative;
+ margin-top: 1em;
+ margin-bottom: 1em;
+ }
+ /* end default css */
+
+
+ /* default print css */
+
+ @media print {
+ body {
+ padding: 0;
+ margin: 0;
+ }
+
+ div.google_header, div.google_footer {
+ display: block;
+ min-height: 0;
+ border: none;
+ }
+
+ div.google_header {
+ flow: static(header);
+ }
+
+ /* used to insert page numbers */
+ div.google_header::before, div.google_footer::before {
+ position: absolute;
+ top: 0;
+ }
+
+ div.google_footer {
+ flow: static(footer);
+ }
+
+ /* always consider this element at the start of the doc */
+ div#google_footer {
+ flow: static(footer, start);
+ }
+
+ span.google_pagenumber {
+ content: counter(page);
+ }
+
+ span.google_pagecount {
+ content: counter(pages);
+ }
+ }
+
+ @page {
+ @top {
+ content: flow(header);
+ }
+ @bottom {
+ content: flow(footer);
+ }
+ }
+ /* end default print css */
+
+
+ /* custom css */
+
+
+ /* end custom css */
+
+ /* ui edited css */
+
+ body {
+ font-family: Verdana;
+
+ font-size: 10.0pt;
+ line-height: normal;
+ background-color: #ffffff;
+ }
+ /* end ui edited css */
+
+
+
+
+</style>
+
+
+</head>
+
+<body revision="cczv65wb_54f62cc9f2:3">
+
+<div id="result">
+</div>
+
+
+<h1>Õ¹Íû2008ÊÀ½ç´óÊÆ£º·çÆðÔÆÓ¿ ¼¤µ´ÈËÐÄ</h1><br>
+<br>
+ 8ÔÂ8ÈÕÍí£¬±±¾©2008Äê°ÂÔ˻ᵹ¼ÆʱһÖÜÄêÇì×£»î¶¯ÔÚÌì°²ÃŹ㳡¾ÙÐС£Í¼ÎªÇì×£»î¶¯ÖеÄÎÄÒÕÑݳö¡£ лªÉç¼ÇÕßÁõÎÀ±øÉã
+
+ £²£°£°£¸ÄêÊÀ½ç·çÆðÔÆÓ¿£¬¼¤µ´ÈËÐÄ¡£µ«Òª×÷³öÒ»¸öÔ¤²â£¬Ê×ÏÈÒª¶Ô½ñÌìËù´¦µÄÊÀ½çÓÐÒ»¸ö»ù±¾¹²Ê¶¡£<br>
+<br>
+<a href=simpleTest.html id=b7v9 title=ÖйúÖ®Éù>ÖйúÖ®Éù</a><br>
+<br>
+<br>
+
+<form action="simpleTest.html">
+ <input name="i18n" onchange="document.getElementById('result').innerHTML = '<p>' + this.value + '</p>';" />
+</form>
+
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/cookies.html b/chromium/third_party/webdriver/test_data/cookies.html
new file mode 100644
index 00000000000..f2d4c7ce7c0
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/cookies.html
@@ -0,0 +1,30 @@
+<html>
+<head>
+ <title>Testing cookies</title>
+
+ <script type="text/javascript">
+ function setCookie(domain, name) {
+ document.cookie = name + "=ok;path=/;domain=" + domain;
+ }
+
+ function showCookie() {
+ document.getElementById("result").innerHTML = "<p>" + document.cookie + "</p>";
+ }
+ </script>
+</head>
+<body onload="showCookie();">
+<h2>Cookie Mashing</h2>
+ .com <a href="#" onclick="setCookie('.com', 'the.com_one'); showCookie(); return false;">Click</a></br />
+ . <a href="#" onclick="setCookie('.', 'the.one'); showCookie(); return false;">Click</a></br />
+ google.com <a href="#" onclick="setCookie('google.com', 'google'); showCookie(); return false;">Click</a></br />
+ .google.com <a href="#" onclick="setCookie('.google.com', '.google'); showCookie(); return false;">Click</a></br />
+ 127.0.0.1 <a href="#" onclick="setCookie('127.0.0.1', 'localhost'); showCookie(); return false;">Click</a></br />
+ localhost:3001 <a href="#" onclick="setCookie('mency.ad.corp.google.com:62210', 'with_port'); showCookie(); return false;">Click</a></br />
+ .google:3001 <a href="#" onclick="setCookie('.google.com:62210', 'with_domain_and_port'); showCookie(); return false;">Click</a></br />
+ 172.16.12.225 <a href="#" onclick="setCookie('172.16.12.225', 'raw_IP'); showCookie(); return false;">Click</a></br />
+ 172.16.12.225:port <a href="#" onclick="setCookie('172.16.12.225:62210', 'raw_IP_and_port'); showCookie(); return false;">Click</a></br />
+ <a href="#" onclick="document.cookie = 'foo=bar;path=/common/galaxy';">Set on a different path</a>
+
+<div id="result"></div>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
new file mode 100644
index 00000000000..954e22dbd99
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
new file mode 100644
index 00000000000..64ece5707d9
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
new file mode 100644
index 00000000000..abdc01082bf
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
new file mode 100644
index 00000000000..9b383f4d2ea
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
new file mode 100644
index 00000000000..a23baad25b1
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
new file mode 100644
index 00000000000..42ccba269b6
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
new file mode 100644
index 00000000000..39d5824d6af
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
new file mode 100644
index 00000000000..f1273672d25
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
new file mode 100644
index 00000000000..359397acffd
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_222222_256x240.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_222222_256x240.png
new file mode 100644
index 00000000000..b273ff111d2
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_222222_256x240.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_228ef1_256x240.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_228ef1_256x240.png
new file mode 100644
index 00000000000..a641a371afa
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_228ef1_256x240.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ef8c08_256x240.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
new file mode 100644
index 00000000000..85e63e9f604
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffd27a_256x240.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
new file mode 100644
index 00000000000..e117effa3dc
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffffff_256x240.png b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffffff_256x240.png
new file mode 100644
index 00000000000..42f8f992c72
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/images/ui-icons_ffffff_256x240.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/css/ui-lightness/jquery-ui-1.8.10.custom.css b/chromium/third_party/webdriver/test_data/css/ui-lightness/jquery-ui-1.8.10.custom.css
new file mode 100644
index 00000000000..1706e22077b
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/css/ui-lightness/jquery-ui-1.8.10.custom.css
@@ -0,0 +1,573 @@
+/*
+ * jQuery UI CSS Framework 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ */
+
+/* Layout helpers
+----------------------------------*/
+.ui-helper-hidden { display: none; }
+.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
+.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
+.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
+.ui-helper-clearfix { display: inline-block; }
+/* required comment for clearfix to work in Opera \*/
+* html .ui-helper-clearfix { height:1%; }
+.ui-helper-clearfix { display:block; }
+/* end clearfix */
+.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
+
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-disabled { cursor: default !important; }
+
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+
+
+/*
+ * jQuery UI CSS Framework 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Theming/API
+ *
+ * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
+ */
+
+
+/* Component containers
+----------------------------------*/
+.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
+.ui-widget .ui-widget { font-size: 1em; }
+.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
+.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
+.ui-widget-content a { color: #333333; }
+.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
+.ui-widget-header a { color: #ffffff; }
+
+/* Interaction states
+----------------------------------*/
+.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
+.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
+.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
+.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
+.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
+.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
+.ui-widget :active { outline: none; }
+
+/* Interaction Cues
+----------------------------------*/
+.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
+.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
+.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
+.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
+.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
+.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
+.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
+.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
+
+/* Icons
+----------------------------------*/
+
+/* states and images */
+.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
+.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
+.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
+.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
+.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
+
+/* positioning */
+.ui-icon-carat-1-n { background-position: 0 0; }
+.ui-icon-carat-1-ne { background-position: -16px 0; }
+.ui-icon-carat-1-e { background-position: -32px 0; }
+.ui-icon-carat-1-se { background-position: -48px 0; }
+.ui-icon-carat-1-s { background-position: -64px 0; }
+.ui-icon-carat-1-sw { background-position: -80px 0; }
+.ui-icon-carat-1-w { background-position: -96px 0; }
+.ui-icon-carat-1-nw { background-position: -112px 0; }
+.ui-icon-carat-2-n-s { background-position: -128px 0; }
+.ui-icon-carat-2-e-w { background-position: -144px 0; }
+.ui-icon-triangle-1-n { background-position: 0 -16px; }
+.ui-icon-triangle-1-ne { background-position: -16px -16px; }
+.ui-icon-triangle-1-e { background-position: -32px -16px; }
+.ui-icon-triangle-1-se { background-position: -48px -16px; }
+.ui-icon-triangle-1-s { background-position: -64px -16px; }
+.ui-icon-triangle-1-sw { background-position: -80px -16px; }
+.ui-icon-triangle-1-w { background-position: -96px -16px; }
+.ui-icon-triangle-1-nw { background-position: -112px -16px; }
+.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
+.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
+.ui-icon-arrow-1-n { background-position: 0 -32px; }
+.ui-icon-arrow-1-ne { background-position: -16px -32px; }
+.ui-icon-arrow-1-e { background-position: -32px -32px; }
+.ui-icon-arrow-1-se { background-position: -48px -32px; }
+.ui-icon-arrow-1-s { background-position: -64px -32px; }
+.ui-icon-arrow-1-sw { background-position: -80px -32px; }
+.ui-icon-arrow-1-w { background-position: -96px -32px; }
+.ui-icon-arrow-1-nw { background-position: -112px -32px; }
+.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
+.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
+.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
+.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
+.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
+.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
+.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
+.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
+.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
+.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
+.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
+.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
+.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
+.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
+.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
+.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
+.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
+.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
+.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
+.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
+.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
+.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
+.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
+.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
+.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
+.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
+.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
+.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
+.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
+.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
+.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
+.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
+.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
+.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
+.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
+.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
+.ui-icon-arrow-4 { background-position: 0 -80px; }
+.ui-icon-arrow-4-diag { background-position: -16px -80px; }
+.ui-icon-extlink { background-position: -32px -80px; }
+.ui-icon-newwin { background-position: -48px -80px; }
+.ui-icon-refresh { background-position: -64px -80px; }
+.ui-icon-shuffle { background-position: -80px -80px; }
+.ui-icon-transfer-e-w { background-position: -96px -80px; }
+.ui-icon-transferthick-e-w { background-position: -112px -80px; }
+.ui-icon-folder-collapsed { background-position: 0 -96px; }
+.ui-icon-folder-open { background-position: -16px -96px; }
+.ui-icon-document { background-position: -32px -96px; }
+.ui-icon-document-b { background-position: -48px -96px; }
+.ui-icon-note { background-position: -64px -96px; }
+.ui-icon-mail-closed { background-position: -80px -96px; }
+.ui-icon-mail-open { background-position: -96px -96px; }
+.ui-icon-suitcase { background-position: -112px -96px; }
+.ui-icon-comment { background-position: -128px -96px; }
+.ui-icon-person { background-position: -144px -96px; }
+.ui-icon-print { background-position: -160px -96px; }
+.ui-icon-trash { background-position: -176px -96px; }
+.ui-icon-locked { background-position: -192px -96px; }
+.ui-icon-unlocked { background-position: -208px -96px; }
+.ui-icon-bookmark { background-position: -224px -96px; }
+.ui-icon-tag { background-position: -240px -96px; }
+.ui-icon-home { background-position: 0 -112px; }
+.ui-icon-flag { background-position: -16px -112px; }
+.ui-icon-calendar { background-position: -32px -112px; }
+.ui-icon-cart { background-position: -48px -112px; }
+.ui-icon-pencil { background-position: -64px -112px; }
+.ui-icon-clock { background-position: -80px -112px; }
+.ui-icon-disk { background-position: -96px -112px; }
+.ui-icon-calculator { background-position: -112px -112px; }
+.ui-icon-zoomin { background-position: -128px -112px; }
+.ui-icon-zoomout { background-position: -144px -112px; }
+.ui-icon-search { background-position: -160px -112px; }
+.ui-icon-wrench { background-position: -176px -112px; }
+.ui-icon-gear { background-position: -192px -112px; }
+.ui-icon-heart { background-position: -208px -112px; }
+.ui-icon-star { background-position: -224px -112px; }
+.ui-icon-link { background-position: -240px -112px; }
+.ui-icon-cancel { background-position: 0 -128px; }
+.ui-icon-plus { background-position: -16px -128px; }
+.ui-icon-plusthick { background-position: -32px -128px; }
+.ui-icon-minus { background-position: -48px -128px; }
+.ui-icon-minusthick { background-position: -64px -128px; }
+.ui-icon-close { background-position: -80px -128px; }
+.ui-icon-closethick { background-position: -96px -128px; }
+.ui-icon-key { background-position: -112px -128px; }
+.ui-icon-lightbulb { background-position: -128px -128px; }
+.ui-icon-scissors { background-position: -144px -128px; }
+.ui-icon-clipboard { background-position: -160px -128px; }
+.ui-icon-copy { background-position: -176px -128px; }
+.ui-icon-contact { background-position: -192px -128px; }
+.ui-icon-image { background-position: -208px -128px; }
+.ui-icon-video { background-position: -224px -128px; }
+.ui-icon-script { background-position: -240px -128px; }
+.ui-icon-alert { background-position: 0 -144px; }
+.ui-icon-info { background-position: -16px -144px; }
+.ui-icon-notice { background-position: -32px -144px; }
+.ui-icon-help { background-position: -48px -144px; }
+.ui-icon-check { background-position: -64px -144px; }
+.ui-icon-bullet { background-position: -80px -144px; }
+.ui-icon-radio-off { background-position: -96px -144px; }
+.ui-icon-radio-on { background-position: -112px -144px; }
+.ui-icon-pin-w { background-position: -128px -144px; }
+.ui-icon-pin-s { background-position: -144px -144px; }
+.ui-icon-play { background-position: 0 -160px; }
+.ui-icon-pause { background-position: -16px -160px; }
+.ui-icon-seek-next { background-position: -32px -160px; }
+.ui-icon-seek-prev { background-position: -48px -160px; }
+.ui-icon-seek-end { background-position: -64px -160px; }
+.ui-icon-seek-start { background-position: -80px -160px; }
+/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
+.ui-icon-seek-first { background-position: -80px -160px; }
+.ui-icon-stop { background-position: -96px -160px; }
+.ui-icon-eject { background-position: -112px -160px; }
+.ui-icon-volume-off { background-position: -128px -160px; }
+.ui-icon-volume-on { background-position: -144px -160px; }
+.ui-icon-power { background-position: 0 -176px; }
+.ui-icon-signal-diag { background-position: -16px -176px; }
+.ui-icon-signal { background-position: -32px -176px; }
+.ui-icon-battery-0 { background-position: -48px -176px; }
+.ui-icon-battery-1 { background-position: -64px -176px; }
+.ui-icon-battery-2 { background-position: -80px -176px; }
+.ui-icon-battery-3 { background-position: -96px -176px; }
+.ui-icon-circle-plus { background-position: 0 -192px; }
+.ui-icon-circle-minus { background-position: -16px -192px; }
+.ui-icon-circle-close { background-position: -32px -192px; }
+.ui-icon-circle-triangle-e { background-position: -48px -192px; }
+.ui-icon-circle-triangle-s { background-position: -64px -192px; }
+.ui-icon-circle-triangle-w { background-position: -80px -192px; }
+.ui-icon-circle-triangle-n { background-position: -96px -192px; }
+.ui-icon-circle-arrow-e { background-position: -112px -192px; }
+.ui-icon-circle-arrow-s { background-position: -128px -192px; }
+.ui-icon-circle-arrow-w { background-position: -144px -192px; }
+.ui-icon-circle-arrow-n { background-position: -160px -192px; }
+.ui-icon-circle-zoomin { background-position: -176px -192px; }
+.ui-icon-circle-zoomout { background-position: -192px -192px; }
+.ui-icon-circle-check { background-position: -208px -192px; }
+.ui-icon-circlesmall-plus { background-position: 0 -208px; }
+.ui-icon-circlesmall-minus { background-position: -16px -208px; }
+.ui-icon-circlesmall-close { background-position: -32px -208px; }
+.ui-icon-squaresmall-plus { background-position: -48px -208px; }
+.ui-icon-squaresmall-minus { background-position: -64px -208px; }
+.ui-icon-squaresmall-close { background-position: -80px -208px; }
+.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
+.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
+.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
+.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
+.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
+.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
+
+
+/* Misc visuals
+----------------------------------*/
+
+/* Corner radius */
+.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
+.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
+.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
+.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
+.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
+.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
+.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
+
+/* Overlays */
+.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
+.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
+ * jQuery UI Resizable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizable#theming
+ */
+.ui-resizable { position: relative;}
+.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;}
+.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
+.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
+.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
+.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
+.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
+.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
+.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
+.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
+.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
+ * jQuery UI Selectable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectable#theming
+ */
+.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
+/*
+ * jQuery UI Accordion 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion#theming
+ */
+/* IE/Win - Fix animation bug - #4615 */
+.ui-accordion { width: 100%; }
+.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
+.ui-accordion .ui-accordion-li-fix { display: inline; }
+.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
+.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
+.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
+.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
+.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
+.ui-accordion .ui-accordion-content-active { display: block; }
+/*
+ * jQuery UI Autocomplete 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete#theming
+ */
+.ui-autocomplete { position: absolute; cursor: default; }
+
+/* workarounds */
+* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
+
+/*
+ * jQuery UI Menu 1.8.10
+ *
+ * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Menu#theming
+ */
+.ui-menu {
+ list-style:none;
+ padding: 2px;
+ margin: 0;
+ display:block;
+ float: left;
+}
+.ui-menu .ui-menu {
+ margin-top: -3px;
+}
+.ui-menu .ui-menu-item {
+ margin:0;
+ padding: 0;
+ zoom: 1;
+ float: left;
+ clear: left;
+ width: 100%;
+}
+.ui-menu .ui-menu-item a {
+ text-decoration:none;
+ display:block;
+ padding:.2em .4em;
+ line-height:1.5;
+ zoom:1;
+}
+.ui-menu .ui-menu-item a.ui-state-hover,
+.ui-menu .ui-menu-item a.ui-state-active {
+ font-weight: normal;
+ margin: -1px;
+}
+/*
+ * jQuery UI Button 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button#theming
+ */
+.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
+.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
+button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
+.ui-button-icons-only { width: 3.4em; }
+button.ui-button-icons-only { width: 3.7em; }
+
+/*button text element */
+.ui-button .ui-button-text { display: block; line-height: 1.4; }
+.ui-button-text-only .ui-button-text { padding: .4em 1em; }
+.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
+.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
+.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
+.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
+/* no icon support for input elements, provide padding by default */
+input.ui-button { padding: .4em 1em; }
+
+/*button icon element(s) */
+.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
+.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
+.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
+.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
+
+/*button sets*/
+.ui-buttonset { margin-right: 7px; }
+.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
+
+/* workarounds */
+button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
+/*
+ * jQuery UI Dialog 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog#theming
+ */
+.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
+.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
+.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
+.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
+.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
+.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
+.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
+.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
+.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
+.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
+.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
+.ui-draggable .ui-dialog-titlebar { cursor: move; }
+/*
+ * jQuery UI Slider 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider#theming
+ */
+.ui-slider { position: relative; text-align: left; }
+.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
+.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
+
+.ui-slider-horizontal { height: .8em; }
+.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
+.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
+.ui-slider-horizontal .ui-slider-range-min { left: 0; }
+.ui-slider-horizontal .ui-slider-range-max { right: 0; }
+
+.ui-slider-vertical { width: .8em; height: 100px; }
+.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
+.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
+.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
+.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
+ * jQuery UI Tabs 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs#theming
+ */
+.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
+.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
+.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
+.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
+.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
+.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
+.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
+.ui-tabs .ui-tabs-hide { display: none !important; }
+/*
+ * jQuery UI Datepicker 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker#theming
+ */
+.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
+.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
+.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
+.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
+.ui-datepicker .ui-datepicker-prev { left:2px; }
+.ui-datepicker .ui-datepicker-next { right:2px; }
+.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
+.ui-datepicker .ui-datepicker-next-hover { right:1px; }
+.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
+.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
+.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
+.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
+.ui-datepicker select.ui-datepicker-month,
+.ui-datepicker select.ui-datepicker-year { width: 49%;}
+.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
+.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
+.ui-datepicker td { border: 0; padding: 1px; }
+.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
+.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
+.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
+.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
+
+/* with multiple calendars */
+.ui-datepicker.ui-datepicker-multi { width:auto; }
+.ui-datepicker-multi .ui-datepicker-group { float:left; }
+.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
+.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
+.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
+.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
+.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
+.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
+.ui-datepicker-row-break { clear:both; width:100%; }
+
+/* RTL support */
+.ui-datepicker-rtl { direction: rtl; }
+.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
+.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
+.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group { float:right; }
+.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
+
+/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
+.ui-datepicker-cover {
+ display: none; /*sorry for IE5*/
+ display/**/: block; /*sorry for IE5*/
+ position: absolute; /*must have*/
+ z-index: -1; /*must have*/
+ filter: mask(); /*must have*/
+ top: -4px; /*must have*/
+ left: -4px; /*must have*/
+ width: 200px; /*must have*/
+ height: 200px; /*must have*/
+}/*
+ * jQuery UI Progressbar 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar#theming
+ */
+.ui-progressbar { height:2em; text-align: left; }
+.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/deletingFrame.htm b/chromium/third_party/webdriver/test_data/deletingFrame.htm
new file mode 100644
index 00000000000..d891605aff0
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/deletingFrame.htm
@@ -0,0 +1,29 @@
+<html>
+<head>
+ <title></title>
+</head>
+ <script type="text/javascript">
+ function remove() {
+ var iframe = document.getElementById("iframe1");
+ var myDiv = document.getElementById("myDiv");
+ myDiv.removeChild(iframe);
+ }
+ function addBack() {
+ var iframe = '<iframe src="javascriptPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="600" allowtransparency="true" frameborder="0" height="600" scrolling="no" width="120" id="iframe1"></iframe>';
+ var myDiv2 = document.getElementById("myDiv2");
+ myDiv2.innerHTML = iframe;
+ }
+ </script>
+<body>
+
+<div id='myDiv'>
+<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"
+ frameborder="1" height="900" scrolling="no" width="500" id="iframe1"></iframe>
+
+ </div>
+<div id='myDiv2'>
+
+</div>
+<input type='button' id='addBackFrame' value='Add back frame' onclick='addBack();' />
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/document_write_in_onload.html b/chromium/third_party/webdriver/test_data/document_write_in_onload.html
new file mode 100644
index 00000000000..a15fc479ea9
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/document_write_in_onload.html
@@ -0,0 +1,13 @@
+<html>
+<head>
+ <title>Document Write In Onload</title>
+ <script>
+ function init() {
+ document.writeln('goodbye, world!');
+ }
+ </script>
+</head>
+<body onload="init();">
+<p>hello world</p>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/dragAndDropTest.html b/chromium/third_party/webdriver/test_data/dragAndDropTest.html
new file mode 100644
index 00000000000..0011170ee3c
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/dragAndDropTest.html
@@ -0,0 +1,69 @@
+<html>
+<body>
+
+<style>
+<!--
+.dragme{position:relative;}
+-->
+</style>
+<script language="JavaScript1.2">
+<!--
+
+var ie=document.all;
+var nn6=document.getElementById&&!document.all;
+
+var isdrag=false;
+var x,y;
+var dobj;
+
+function movemouse(e)
+{
+
+ if (isdrag)
+ {
+ dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x;
+ dobj.style.top = nn6 ? ty + e.clientY - y : ty + event.clientY - y;
+ return false;
+ }
+}
+
+function selectmouse(e)
+{
+ var fobj = nn6 ? e.target : event.srcElement;
+ var topelement = nn6 ? "HTML" : "BODY";
+
+ while (fobj.tagName != topelement && fobj.className != "dragme")
+ {
+ fobj = nn6 ? fobj.parentNode : fobj.parentElement;
+ }
+
+ if (fobj.className=="dragme")
+ {
+ isdrag = true;
+ dobj = fobj;
+ tx = parseInt(dobj.style.left+0);
+ ty = parseInt(dobj.style.top+0);
+ x = nn6 ? e.clientX : event.clientX;
+ y = nn6 ? e.clientY : event.clientY;
+ document.onmousemove=movemouse;
+ return false;
+ }
+}
+
+document.onmousedown=selectmouse;
+document.onmouseup=new Function("isdrag=false");
+
+//-->
+</script>
+
+
+
+<img src="icon.gif" class="dragme" id="test1"><br>
+<img src="icon.gif" class="dragme" id="test2"><br>
+<b>"Hi there</b>
+<div style="position: absolute; left: 210px; top: 80px; height: 400px; width: 100px; padding: 10em;">
+<img src="icon.gif" class="dragme" id="test3"><br>
+<img src="icon.gif" class="dragme" id="test4"><br>
+</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/draggableLists.html b/chromium/third_party/webdriver/test_data/draggableLists.html
new file mode 100644
index 00000000000..404195e0d30
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/draggableLists.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <title>jQuery UI Sortable - Connect lists</title>
+ <!--link type="text/css" href="development-bundle/themes/base/jquery.ui.all.css" rel="stylesheet" /-->
+ <!--link type="text/css" href="development-bundle/demos/demos.css" rel="stylesheet" /-->
+ <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />
+ <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
+ <script type="text/javascript" src="js/jquery-ui-1.8.10.custom.min.js"></script>
+ <style type="text/css">
+ #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; }
+ #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }
+ </style>
+ <script type="text/javascript">
+ $(function() {
+ $("#sortable1, #sortable2").sortable({
+ connectWith: '.connectedSortable'
+ }).disableSelection();
+
+ var report_event = function(report_text) {
+ var reportElement = $("#dragging_reports");
+ var origText = reportElement.text();
+ reportElement.text(origText + " " + report_text);
+ }
+
+ $("#sortable2").droppable({
+ out: function(event, ui) {
+ report_event("DragOut");
+ }
+ });
+
+ $("#sortable1").droppable({
+ drop: function(event, ui) {
+ report_event("DropIn " + ui.draggable.text());
+ }
+ });
+ });
+ </script>
+ </head>
+ <body>
+ <div class="demo">
+ <ul id="sortable1" class="connectedSortable">
+ <li id="leftitem-1" class="ui-state-default">LeftItem 1</li>
+ <li id="leftitem-2" class="ui-state-default">LeftItem 2</li>
+ <li id="leftitem-3" class="ui-state-default">LeftItem 3</li>
+ <li id="leftitem-4" class="ui-state-default">LeftItem 4</li>
+ <li id="leftitem-5" class="ui-state-default">LeftItem 5</li>
+ </ul>
+
+ <ul id="sortable2" class="connectedSortable">
+ <li id="rightitem-1" class="ui-state-highlight">RightItem 1</li>
+ <li id="rightitem-2" class="ui-state-highlight">RightItem 2</li>
+ <li id="rightitem-3" class="ui-state-highlight">RightItem 3</li>
+ <li id="rightitem-4" class="ui-state-highlight">RightItem 4</li>
+ <li id="rightitem-5" class="ui-state-highlight">RightItem 5</li>
+ </ul>
+
+ </div>
+
+ <br/>
+ <div class="test-data">
+ <p id="dragging_reports">Nothing happened.</p>
+ </div>
+
+ </body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/droppableItems.html b/chromium/third_party/webdriver/test_data/droppableItems.html
new file mode 100644
index 00000000000..fc850ac96b7
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/droppableItems.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8" />
+ <title>jQuery UI Droppable - Default Demo</title>
+ <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />
+ <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
+ <script type="text/javascript" src="js/jquery-ui-1.8.10.custom.min.js"></script>
+ <style type="text/css">
+ #draggable { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
+ #droppable { width: 150px; height: 150px; padding: 0.5em; float: left; margin: 10px; }
+ </style>
+ <script type="text/javascript">
+ $(function() {
+ $("#draggable").draggable();
+ $("#droppable").droppable({
+ drop: function(event, ui) {
+ $(this).addClass('ui-state-highlight').find('p').html('Dropped!');
+ }
+ });
+
+ var report_event = function(report_text) {
+ var reportElement = $("#drop_reports");
+ var origText = reportElement.text();
+ reportElement.text(origText + " " + report_text);
+ }
+
+ $('body').mousedown(function() {
+ report_event('down');
+ });
+
+ $('body').mousemove(function() {
+ report_event('move');
+ });
+
+ $('body').mouseup(function() {
+ report_event('up');
+ });
+ });
+ </script>
+</head>
+<body>
+<div class="demo">
+
+<div id="draggable" class="ui-widget-content">
+ <p>Drag me to my target</p>
+</div>
+
+<div id="droppable" class="ui-widget-header">
+ <p>Drop here</p>
+</div>
+
+<div class="test-data">
+ <p id="drop_reports">start</p>
+</div>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+<p>Taken from the JQuery demo.</p>
+
+</div><!-- End demo-description -->
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/dynamic.html b/chromium/third_party/webdriver/test_data/dynamic.html
new file mode 100644
index 00000000000..b9e60678d2a
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/dynamic.html
@@ -0,0 +1,39 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title></title>
+ <script type="text/javascript">
+ var next = 0;
+
+ function addMore() {
+ var box = document.createElement('DIV');
+ box.id = 'box' + next++;
+ box.className = 'redbox';
+ box.style.width = '150px';
+ box.style.height = '150px';
+ box.style.backgroundColor = 'red';
+ box.style.border = '1px solid black';
+ box.style.margin = '5px';
+
+ window.setTimeout(function() {
+ document.body.appendChild(box);
+ }, 1000);
+ }
+
+ function reveal() {
+ var elem = document.getElementById('revealed');
+ window.setTimeout(function() {
+ elem.style.display = '';
+ }, 1000);
+ }
+ </script>
+ </head>
+ <body>
+ <input id="adder" type="button" value="Add a box!" onclick="addMore()"/>
+
+ <input id="reveal" type="button" value="Reveal a new input" onclick="reveal();" />
+
+ <input id="revealed" style="display:none;" />
+ </body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/dynamicallyModifiedPage.html b/chromium/third_party/webdriver/test_data/dynamicallyModifiedPage.html
new file mode 100644
index 00000000000..ed7c7ed2b46
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/dynamicallyModifiedPage.html
@@ -0,0 +1,42 @@
+<?xml version="1.0">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>Delayed remove of an element</title>
+
+ <script type="text/javascript">
+
+ var parentNode;
+ var elementId;
+
+ function timedRemove()
+ {
+ var t = setTimeout('removeElement()', 500);
+ t = setTimeout('insertElement()', 2000);
+ }
+
+ function removeElement()
+ {
+ var element = document.getElementById('element-to-remove');
+ elementId = element.id;
+ parentNode = element.parentNode;
+ parentNode.removeChild(element);
+ }
+
+ function insertElement()
+ {
+ var newElement = document.createElement('p');
+ newElement.setAttribute('id', elementId);
+ newElement.innerHTML = 'new element';
+ parentNode.appendChild(newElement);
+ }
+ </script>
+
+ </head>
+ <body>
+ <form>
+ <input id="buttonDelete" type="button" value="element will be removed in half a second"
+ onclick="timedRemove()"/>
+ </form>
+ <p id="element-to-remove">element</p>
+ </body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/errors.html b/chromium/third_party/webdriver/test_data/errors.html
new file mode 100644
index 00000000000..78fb902077e
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/errors.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script type="text/javascript">
+ window.ERRORS = [];
+
+ window.onerror = function(e) {
+ window.ERRORS.push(e);
+ };
+ </script>
+ </head>
+ <body>
+ <input type="button" value="Throw!" onclick="throw Error('boom!');"/>
+ </body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/formPage.html b/chromium/third_party/webdriver/test_data/formPage.html
new file mode 100644
index 00000000000..972b7258441
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/formPage.html
@@ -0,0 +1,173 @@
+<html>
+<head>
+ <title>We Leave From Here</title>
+
+ <script type="text/javascript">
+ function changePage() {
+ var newLocation = '/common/page/3';
+ window.location = newLocation;
+ }
+ </script>
+</head>
+<body>
+There should be a form here:
+
+<form method="get" action="resultPage.html" name="login">
+ <input type="email" id="email"/>
+ <input type="submit" id="submitButton" value="Hello there"/>
+</form>
+
+<form method="get" action="resultPage.html" name="image">
+ <input type="image" id="imageButton" alt="click me!" src="images/button.gif"/>
+</form>
+
+<form method="get" action="resultPage.html" name="optional" style="display: block">
+ Here's a checkbox:
+ <input type="checkbox" id="checky" name="checky" value="furrfu"/>
+ <input type="checkbox" id="checkedchecky" name="checkedchecky" checked="checked" />
+ <input type="checkbox" id="disabledchecky" disabled="disabled" name="disabledchecky" />
+ <input type="checkbox" id="randomly_disabled_checky" disabled="somerandomstring" checked="checked" name="randomlydisabledchecky" />
+ <br/>
+ <select name="selectomatic">
+ <option selected="selected" id="non_multi_option" value="one">One</option>
+ <option value="two">Two</option>
+ <option value="four">Four</option>
+ <option value="still learning how to count, apparently">Still learning how to count, apparently</option>
+ </select>
+
+ <select name="multi" id="multi" multiple="multiple">
+ <option selected="selected" value="eggs">Eggs</option>
+ <option value="ham">Ham</option>
+ <option selected="selected" value="sausages">Sausages</option>
+ <option value="onion gravy">Onion gravy</option>
+ </select>
+
+ <select name="no-select" disabled="disabled">
+ <option value="foo">Foo</option>
+ </select>
+
+ <select name="select_empty_multiple" multiple>
+ <option id="multi_1" value="select_1">select_1</option>
+ <option id="multi_2" value="select_2">select_2</option>
+ <option id="multi_3" value="select_3">select_3</option>
+ <option id="multi_4" value="select_4">select_4</option>
+ </select>
+
+ <select name="multi_true" multiple="true">
+ <option id="multi_true_1" value="select_1">select_1</option>
+ <option id="multi_true_2" value="select_2">select_2</option>
+ </select>
+
+ <select name="multi_false" multiple="false">
+ <option id="multi_false_1" value="select_1">select_1</option>
+ <option id="multi_false_2" value="select_2">select_2</option>
+ </select>
+
+ <select id="invisi_select" style="opacity:0;">
+ <option selected value="apples">Apples</option>
+ <option value="oranges">Oranges</option>
+ </select>
+
+ <select name="select-default">
+ <option>One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+
+ <select name="select_with_spaces">
+ <option>One</option>
+ <option> Two </option>
+ <option>
+ Four
+ </option>
+ <option>
+ Still learning how to count,
+ apparently
+ </option>
+ </select>
+
+ <select>
+ <option id="blankOption"></option>
+ <option id="optionEmptyValueSet" value="">nothing</option>
+ </select>
+
+ <br/>
+
+ <input type="radio" id="cheese" name="snack" value="cheese"/>Cheese<br/>
+ <input type="radio" id="peas" name="snack" value="peas"/>Peas<br/>
+ <input type="radio" id="cheese_and_peas" name="snack" value="cheese and peas" checked/>Cheese and peas<br/>
+ <input type="radio" id="nothing" name="snack" value="nowt" disabled="disabled"/>Not a sausage<br/>
+ <input type="radio" id="randomly_disabled_nothing" name="snack" value="funny nowt" disabled="somedisablingstring"/>Not another sausage
+
+ <input type="hidden" name="hidden" value="fromage" />
+
+ <p id="cheeseLiker">I like cheese</p>
+ <input type="submit" value="Click!"/>
+
+ <input type="radio" id="lone_disabled_selected_radio" name="not_a_snack" value="cumberland" checked="checked" disabled="disabled" />Cumberland sausage
+</form>
+
+<form method="get" action="resultPage.html" name="disable">
+ <input type="text" id="working"/>
+ <input type="text" id="notWorking" disabled="true"/>
+
+ <textarea id="notWorkingArea" disabled="disabled" cols="5" rows="5"></textarea>
+
+ <input type="text" id="inputWithText" value="Example text"/>
+ <textarea id="withText" rows="5" cols="5">Example text</textarea>
+ <textarea id="emptyTextArea" rows="5" cols="5"></textarea>
+</form>
+
+<form method="post" action="resultPage.html">
+ <select id="redirect" name="redirect" onchange="javascript:changePage();">
+ <option selected="selected" value="one">One</option>
+ <option id="changeme" value="two">Two</option>
+ </select>
+
+ <input id="no-type" />
+ <input type="file" id="upload" onchange="document.getElementById('fileResults').innerHTML = 'changed';" />
+ <span id="fileResults"></span>
+
+ <input type="submit" />
+</form>
+
+<form method="get" action="resultPage.html">
+ <input type="text" value="name" name="id-name1"/>
+ <input type="text" value="id" id="id-name1"/>
+
+ <!-- Reverse the ordering -->
+ <input type="text" value="id" id="id-name2"/>
+ <input type="text" value="name" name="id-name2"/>
+ <input name="readonly" readonly="readonly" />
+</form>
+
+<!-- form with nested children -->
+<form method="get" action="resultPage.html" id="nested_form">
+ <div>
+ <input type="text" value="name" name="x"/>
+ </div>
+ <input type="submit" />
+</form>
+
+<!-- Form with disabled form elements -->
+<form method="get" action="xhtmlTest.html">
+ <p>
+ <input type="text" id="disabledTextElement1" disabled="foo" />
+ <input type="text" id="disabledTextElement2" disabled="" />
+ <input type="submit" id="disabledSubmitElement" disabled="qwerty" value="Submit" />
+ </p>
+</form>
+<!-- Empty div to test GetAttribute -->
+<div id="wallace" class="gromit"></div>
+
+<input type='button' id='killIframe' onclick='top.remove();' value="Kill containing iframe" />
+
+<form method="get" action="formPage.html">
+ <p>
+ <label for="checkbox-with-label" id="label-for-checkbox-with-label">Label</label><input type="checkbox" id="checkbox-with-label" />
+ </p>
+</form>
+<input id="vsearchGadget" name="SearchableText" type="text" size="18" value="" title="Hvad søger du?" accesskey="4" class="inputLabel" />
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/formSelectionPage.html b/chromium/third_party/webdriver/test_data/formSelectionPage.html
new file mode 100644
index 00000000000..4890c08e823
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/formSelectionPage.html
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Testing Typing into body</title>
+ <script type="text/javascript">
+ function setMessage(message) {
+ document.getElementById('result').innerHTML = message;
+ }
+
+ function showSelected() {
+ var selectElement = document.getElementById('multi');
+ if (selectElement == null) {
+ appendMessage("null!");
+ }
+
+ var options_array = selectElement.getElementsByTagName('option');
+ var selected_cheese = "";
+ for (var i = 0; i < options_array.length; i++) {
+ if (options_array[i].selected) {
+ selected_cheese = selected_cheese + options_array[i].label + " ";
+ }
+ }
+ setMessage(selected_cheese);
+ }
+ </script>
+</head>
+
+<body>
+ <h1>Type Stuff</h1>
+
+ <div id="result">
+ &nbsp;
+ </div>
+
+ <form action="" id="on-form" name="multichoice">
+ <select name="multi" id="multi" multiple="multiple">
+ <option selected="selected" label="emmental">Emmental</option>
+ <option label="roquefort" >Roquefort</option>
+ <option label="parmigiano">Parmigiano</option>
+ <option label="cheddar">Cheddar</option>
+ </select>
+ </form>
+
+ <input type="button" name="showselected" onclick="showSelected()" value="Show selected"/>
+</body>
+
diff --git a/chromium/third_party/webdriver/test_data/frameset.html b/chromium/third_party/webdriver/test_data/frameset.html
new file mode 100644
index 00000000000..039c5f21772
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/frameset.html
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <title>Unique title</title>
+ </head>
+<frameset cols="*, *, *, *, *, *, *">
+ <frame name="first" src="page/1"/>
+ <frame name="second" src="page/2?title=Fish"/>
+ <frame name="third" src="formPage.html"/>
+ <frame name="fourth" src="framesetPage2.html"/>
+ <frame id="fifth" src="xhtmlTest.html"/>
+ <frame id="sixth" src="iframes.html"/>
+ <frame id="sixth.iframe1" src="page/3"/>
+</frameset>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/framesetPage2.html b/chromium/third_party/webdriver/test_data/framesetPage2.html
new file mode 100644
index 00000000000..4ea35ff71b7
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/framesetPage2.html
@@ -0,0 +1,7 @@
+<html>
+<head></head>
+<frameset cols="*, *">
+ <frame name="child1" src="page/10"/>
+ <frame name="child2" src="page/11"/>
+</frameset>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/globalscope.html b/chromium/third_party/webdriver/test_data/globalscope.html
new file mode 100644
index 00000000000..e4ca97ab715
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/globalscope.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Global scope</title>
+ <script type="text/javascript">
+ window.w = "w";
+ window.h = "h";
+ window.__webdriver_w = "__webdriver_w";
+ window.__webdriver_h = "__webdriver_h";
+ </script>
+ </head>
+ <body>
+ <div style="position: absolute; left: 10px; top: 10px; height: 10px; width: 10px; background-color: blue;" id="toclick"></div>
+ </body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/html5/blue.jpg b/chromium/third_party/webdriver/test_data/html5/blue.jpg
new file mode 100644
index 00000000000..8ea27c42faa
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/blue.jpg
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/html5/database.js b/chromium/third_party/webdriver/test_data/html5/database.js
new file mode 100644
index 00000000000..c6333be8cd0
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/database.js
@@ -0,0 +1,84 @@
+var database={};
+database.db={};
+
+database.onError = function(tx, e) {
+ var log = document.createElement('div');
+ log.setAttribute('name','error');
+ log.setAttribute('style','background-color:red');
+ log.innerText = e.message;
+ document.getElementById('logs').appendChild(log);
+}
+
+database.onSuccess = function(tx, r) {
+ if (r.rows.length) {
+ var ol;
+ for (var i = 0; i < r.rows.length; i++) {
+ ol = document.createElement('ol');
+ ol.innerHTML = r.rows.item(i).ID + ": " + r.rows.item(i).docname + " (" + r.rows.item(i).created + ")";
+ document.getElementById('logs').appendChild(ol);
+ }
+
+ }
+}
+
+database.open=function(){
+ database.db=openDatabase('HTML5', '1.0', 'Offline document storage', 100*1024);
+}
+
+database.create=function(){
+ database.db.transaction(function(tx) {
+ tx.executeSql("CREATE TABLE IF NOT EXISTS docs(ID INTEGER PRIMARY KEY ASC, docname TEXT, created TIMESTAMP DEFAULT CURRENT_TIMESTAMP)",
+ [],
+ database.onSuccess,
+ database.onError);
+ });}
+
+database.add = function(message) {
+ database.db.transaction(function(tx){
+ tx.executeSql("INSERT INTO docs(docname) VALUES (?)",
+ [message], database.onSuccess, database.onError);
+ });
+}
+
+database.selectAll = function() {
+ database.db.transaction(function(tx) {
+ tx.executeSql("SELECT * FROM docs", [], database.onSuccess,
+ database.onError);
+ });
+}
+
+database.onDeleteAllSuccess = function(tx, r) {
+ var doc = document.documentElement;
+ var db_completed = document.createElement("div");
+ db_completed.setAttribute("id", "db_completed");
+ db_completed.innerText = "db operation completed";
+ doc.appendChild(db_completed);
+}
+
+database.deleteAll = function() {
+ database.db.transaction(function(tx) {
+ tx.executeSql("delete from docs", [], database.onDeleteAllSuccess,
+ database.onError);
+ });
+}
+
+var log = document.createElement('div');
+log.setAttribute('name','notice');
+log.setAttribute('style','background-color:yellow');
+log.innerText = typeof window.openDatabase == "function" ? "Web Database is supported." : "Web Database is not supported.";
+document.getElementById('logs').appendChild(log);
+
+try {
+ database.open();
+ database.create();
+ database.add('Doc 1');
+ database.add('Doc 2');
+ database.selectAll();
+ database.deleteAll();
+} catch(error) {
+ var log = document.createElement('div');
+ log.setAttribute('name','critical');
+ log.setAttribute('style','background-color:pink');
+ log.innerText = error;
+ document.getElementById('logs').appendChild(log);
+}
diff --git a/chromium/third_party/webdriver/test_data/html5/geolocation.js b/chromium/third_party/webdriver/test_data/html5/geolocation.js
new file mode 100644
index 00000000000..f07af148ed0
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/geolocation.js
@@ -0,0 +1,18 @@
+function success(position) {
+ var message = document.getElementById("status");
+ message.innerHTML ="<img src='http://maps.google.com/maps/api/staticmap?center=" + position.coords.latitude + "," + position.coords.longitude + "&size=300x200&maptype=roadmap&zoom=12&&markers=size:mid|color:red|" + position.coords.latitude + "," + position.coords.longitude + "&sensor=false' />";
+ message.innerHTML += "<p>Longitude: " + position.coords.longitude + "</p>";
+ message.innerHTML += "<p>Latitude: " + position.coords.latitude + "</p>";
+ message.innerHTML += "<p>Altitude: " + position.coords.altitude + "</p>";
+}
+
+function error(msg) {
+ var message = document.getElementById("status");
+ message.innerHTML = "Failed to get geolocation.";
+}
+
+if (navigator.geolocation) {
+ navigator.geolocation.getCurrentPosition(success, error);
+} else {
+ error('Geolocation is not supported.');
+} \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/html5/green.jpg b/chromium/third_party/webdriver/test_data/html5/green.jpg
new file mode 100644
index 00000000000..6a0d3bea479
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/green.jpg
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/html5/offline.html b/chromium/third_party/webdriver/test_data/html5/offline.html
new file mode 100644
index 00000000000..c24178b5f5c
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/offline.html
@@ -0,0 +1 @@
+<html><head><title>Offline</title></head><body></body></html>
diff --git a/chromium/third_party/webdriver/test_data/html5/red.jpg b/chromium/third_party/webdriver/test_data/html5/red.jpg
new file mode 100644
index 00000000000..f296e271956
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/red.jpg
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/html5/status.html b/chromium/third_party/webdriver/test_data/html5/status.html
new file mode 100644
index 00000000000..394116a522d
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/status.html
@@ -0,0 +1 @@
+<html><head><title>Online</title></head><body></body></html>
diff --git a/chromium/third_party/webdriver/test_data/html5/test.appcache b/chromium/third_party/webdriver/test_data/html5/test.appcache
new file mode 100644
index 00000000000..3bc4e002576
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/test.appcache
@@ -0,0 +1,11 @@
+CACHE MANIFEST
+
+CACHE:
+# Additional items to cache.
+yellow.jpg
+red.jpg
+blue.jpg
+green.jpg
+
+FALLBACK:
+status.html offline.html
diff --git a/chromium/third_party/webdriver/test_data/html5/yellow.jpg b/chromium/third_party/webdriver/test_data/html5/yellow.jpg
new file mode 100644
index 00000000000..7c609b37129
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5/yellow.jpg
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/html5Page.html b/chromium/third_party/webdriver/test_data/html5Page.html
new file mode 100644
index 00000000000..355ddc3a1a6
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/html5Page.html
@@ -0,0 +1,32 @@
+<html manifest="html5/test.appcache">
+<head>
+<title>HTML5</title>
+</head>
+<body>
+
+<h3>Geolocation Test</h3>
+<div id="status">Location unknown</div>
+<script language="javascript" type="text/javascript" src="html5/geolocation.js"></script>
+
+<h3>Web SQL Database Test</h3>
+<div id="logs"></div>
+<script language="javascript" type="text/javascript" src="html5/database.js"></script>
+
+<h3>Application Cache Test</h3>
+<div id="images">
+ <p>Current network status: <span id="state"></span></p>
+ <script>
+ var state = document.getElementById('state')
+ setInterval(function () {
+ state.className = navigator.onLine ? 'online' : 'offline';
+ state.innerHTML = navigator.onLine ? 'online' : 'offline';
+ }, 250);
+ </script>
+ <img id="red" src="html5/red.jpg">
+ <img id="blue" src="html5/blue.jpg">
+ <img id="green" src="html5/green.jpg">
+ <img id="yellow" src="html5/yellow.jpg">
+</div>
+
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/icon.gif b/chromium/third_party/webdriver/test_data/icon.gif
new file mode 100644
index 00000000000..bb994619275
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/icon.gif
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/iframeWithAlert.html b/chromium/third_party/webdriver/test_data/iframeWithAlert.html
new file mode 100644
index 00000000000..bc54ddd58de
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/iframeWithAlert.html
@@ -0,0 +1 @@
+<a href="#" id="alertInFrame" onclick="alert('framed cheese');">click me</a>
diff --git a/chromium/third_party/webdriver/test_data/iframeWithIframe.html b/chromium/third_party/webdriver/test_data/iframeWithIframe.html
new file mode 100644
index 00000000000..ffdf1247488
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/iframeWithIframe.html
@@ -0,0 +1 @@
+<iframe src="iframeWithAlert.html" name="iframeWithAlert"></iframe>
diff --git a/chromium/third_party/webdriver/test_data/iframes.html b/chromium/third_party/webdriver/test_data/iframes.html
new file mode 100644
index 00000000000..e00b482aa00
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/iframes.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+ <title>This page has iframes</title>
+</head>
+<body>
+<h1 id="iframe_page_heading">This is the heading</h1>
+
+<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"
+ frameborder="0" height="600" scrolling="no" width="120" id="iframe1" name="iframe1-name" />
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/javascriptEnhancedForm.html b/chromium/third_party/webdriver/test_data/javascriptEnhancedForm.html
new file mode 100644
index 00000000000..c5b65760235
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/javascriptEnhancedForm.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+ <head>
+ <title>Javascript Enhanced Page</title>
+ </head>
+ <body>
+ <form id="form1" action="javascriptEnhancedForm.html" method="post">
+ <p>
+ <label id="labelforusername" for="username">
+ Username: <input id="username" type="text" name="username" />
+ <script type="text/javascript">
+ document.getElementById('username').value = 'Michael';
+ </script>
+ </label>
+ </p>
+ <p>
+ <label for="password">
+ Password: <input id="password" type="password" name="password" />
+ <script type="text/javascript">
+ var z = document.getElementById('password'); setTimeout('try{z.focus();z.select();} catch(e) {}', 1);
+ </script>
+ </label>
+ </p>
+ <p>
+ <input type="submit" value="Submit" />
+ </p>
+ </form>
+ </body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/javascriptPage.html b/chromium/third_party/webdriver/test_data/javascriptPage.html
new file mode 100644
index 00000000000..2dffaa72d44
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/javascriptPage.html
@@ -0,0 +1,270 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Testing Javascript</title>
+ <script type="text/javascript">
+ var seen = {};
+
+ function updateContent(input) {
+ document.getElementById('result').innerHTML = "<p>" + input.value + "</p>";
+ }
+
+ function displayMessage(message) {
+ document.getElementById('result').innerHTML = "<p>" + message + "</p>";
+ }
+
+ function appendMessage(message) {
+ document.getElementById('result').innerHTML += message + " ";
+ }
+
+ function register(message) {
+ if (!seen[message]) {
+ appendMessage(message);
+ seen[message] = true;
+ }
+ }
+
+ function delayedShowHide(delay, show) {
+ var blackBox = document.getElementById('clickToHide');
+ window.setTimeout(function() {
+ blackBox.style.display = show ? '' : 'none';
+ }, delay);
+ }
+ </script>
+ <script type="text/javascript">
+ var startList = function() {
+ // Ugh. Let's hope no-one is faking their user agent when running the tests
+ if (navigator.userAgent.indexOf("MSIE") != -1) {
+ var navRoot = document.getElementById("nav");
+ for (var i = 0; i < navRoot.childNodes.length; i++) {
+ var node = navRoot.childNodes[i];
+ if (node.nodeName == "LI") {
+ node.onmouseover = function() {
+ this.className += " over";
+ };
+ node.onmouseout = function() {
+ this.className = this.className.replace(" over", "");
+ };
+ }
+ }
+ }
+ };
+ window.onload=startList;
+ </script>
+ <style type="text/css">
+ #nav {
+ padding: 0; margin: 0; list-style: none;
+ }
+ #nav li {
+ float: left; position: relative; width: 10em;
+ }
+ #nav li ul {
+ display: none; position: absolute; top: 1em; left: 0;
+ }
+ #nav li > ul { top: auto; left: auto; }
+ #nav li:hover ul, #nav li.over ul{ display: block; background: white; }
+ </style>
+</head>
+<body>
+<h1>Type Stuff</h1>
+
+<div>
+ <ul id="nav">
+ <li id="menu1">Menu 1
+ <ul>
+ <li id="item1" onclick="displayMessage('item 1');">Item 1</li>
+ <li>Item 2</li>
+ </ul>
+ </li>
+ </ul>
+</div>
+
+<div id="resultContainer" height="30">&nbsp;
+ <div id="result" style="width:300;height:60">
+ <p>&nbsp;</p>
+ </div>
+
+</div>
+
+<div id="formageddon">
+ <form action="#">
+ Key Up: <input type="text" id="keyUp" onkeyup="javascript:updateContent(this)"/><br/>
+ Key Down: <input type="text" id="keyDown" onkeydown="javascript:updateContent(this)"/><br/>
+ Key Press: <input type="text" id="keyPress" onkeypress="javascript:updateContent(this)"/><br/>
+ Change: <input type="text" id="change" onkeypress="javascript:displayMessage('change')"/><br/>
+ <textarea id="keyDownArea" onkeydown="javascript:updateContent(this)" rows="2" cols="15"></textarea>
+ <textarea id="keyPressArea" onkeypress="javascript:updateContent(this)" rows="2" cols="15"></textarea>
+ <textarea id="keyUpArea" onkeyup="javascript:updateContent(this)" rows="2" cols="15"></textarea>
+ <select id="selector" onchange="javascript:updateContent(this)">
+ <option value="foo">Foo</option>
+ <option value="bar">Bar</option>
+ </select>
+ <input type="checkbox" id="checkbox" value="checkbox thing" onchange="javascript:updateContent(this)"/>
+ <input id="clickField" type="text" onclick="document.getElementById('clickField').value='Clicked';" value="Hello"/>
+ <input id="doubleClickField" type="text" onclick="document.getElementById('doubleClickField').value='Clicked';" ondblclick="document.getElementById('doubleClickField').value='DoubleClicked';" oncontextmenu="document.getElementById('doubleClickField').value='ContextClicked'; return false;" value="DoubleHello"/>
+ <input id="clearMe" value="Something" onchange="displayMessage('Cleared')"/>
+ </form>
+</div>
+
+<div>
+ <p><a href="#" onclick="javascript:document.title='Changed'">Change the page title!</a></p>
+
+ <p><a onclick="javascript:document.title='Changed'" id="nohref">No href</a></p>
+
+ <p><a id="updatediv" href="#" onclick="javascript:document.getElementById('dynamo').innerHTML = 'Fish and chips!';">Update a
+ div</a></p>
+</div>
+
+<div id="dynamo">What's for dinner?</div>
+
+<div id="mousedown" onmousedown="javascript:displayMessage('mouse down');">
+ <p>Click for the mouse down event</p>
+ <span><p id="child">Here's some text</p></span>
+</div>
+
+<div id="mouseup" onmouseup="javascript:displayMessage('mouse up');">
+ <p>Click for the mouse up event</p>
+</div>
+
+<div id="mouseclick" onclick="javascript:displayMessage('mouse click');">
+ <p>Click for the mouse click event</p>
+</div>
+
+<div id="error" onclick="document.getElementById('doesnotexist').innerHTML = 'cheese';">
+ Clicking this causes a JS exception in the click handler
+</div>
+
+<div>
+ <form action="resultPage.html" id="on-form">
+ <input id="theworks"
+ onfocus="appendMessage('focus')"
+ onkeydown="appendMessage('keydown')"
+ onkeypress="appendMessage('keypress')"
+ onkeyup="appendMessage('keyup')"
+ onblur="appendMessage('blur')"
+ onchange="appendMessage('change')"
+ />
+
+ <input id="changeable" name="changeable" onfocus="appendMessage('focus')" onchange="appendMessage('change')" onblur="appendMessage('blur')"/>
+
+ <button type="button" id="plainButton"
+ onfocus="appendMessage('focus')"
+ onkeydown="appendMessage('keydown')"
+ onkeypress="appendMessage('keypress')"
+ onkeyup="appendMessage('keyup')"
+ onblur="appendMessage('blur')"
+ onclick="appendMessage('click')"
+ onmousedown="appendMessage('mousedown ')"
+ onmouseup="appendMessage('mouseup ')"
+ onmouseover="register('mouseover ')"
+ onmousemove="register('mousemove ')"
+ >
+ <b>Go somewhere</b>
+ </button>
+ <button type="submit" id="submittingButton"><emph>submit</emph></button>
+ <button type="button" id="jsSubmitButton" onclick="javascript:document.getElementById('on-form').submit();">Submitomatic</button>
+
+ <button type="button" id="switchFocus" onclick="document.getElementById('theworks').focus();">Switch focus</button>
+ <button type="button" onclick="var element = document.getElementById('switchFocus'); var clickEvent = document.createEvent('MouseEvents'); clickEvent.initMouseEvent('click', true, true, null, 0, 0, 0, 0, 0,false, false, false, false, 0, element);element.dispatchEvent(clickEvent);">Do magic</button><br/>
+ <label id="labelForCheckbox" for="labeledCheckbox" onclick="appendMessage('labelclick')">Toggle checkbox</label><input type="checkbox" id="labeledCheckbox" onclick="appendMessage('chboxclick')"/>
+ </form>
+
+ <form action="javascriptPage.html" id="submitListeningForm" onsubmit="appendMessage('form-onsubmit '); return false;">
+ <p>
+ <input id="submitListeningForm-text" type="text" onsubmit="appendMessage('text-onsubmit ')" onclick="appendMessage('text-onclick ');" />
+ <input id="submitListeningForm-submit" type="submit" onsubmit="appendMessage('submit-onsubmit ')" onclick="appendMessage('submit-onclick ');" />
+ </p>
+ </form>
+</div>
+
+<p id="suppressedParagraph" style="display: none">A paragraph suppressed using CSS display=none</p>
+
+<div>
+ <p id="displayed">Displayed</p>
+
+ <form action="#"><input type="hidden" name="hidden" /> </form>
+
+ <p id="none" style="display: none;">Display set to none</p>
+
+ <p id="hidden" style="visibility: hidden;">Hidden</p>
+
+ <div id="hiddenparent" style="height: 2em; display: none;">
+ <div id="hiddenchild">
+ <a href="#" id="hiddenlink">ok</a>
+ </div>
+ </div>
+
+ <div style="visibility: hidden;">
+ <span>
+ <input id="unclickable" />
+ <input type="checkbox" id="untogglable" checked="checked" />Check box you can't see
+ </span>
+ </div>
+
+ <p id="outer" style="visibility: hidden">A <b id="visibleSubElement" style="visibility: visible">sub-element that is explicitly visible</b> using CSS visibility=visible</p>
+</div>
+
+<div>
+ <form>
+ <input type="text" id="keyReporter" size="80"
+ onkeyup="appendMessage('up: ' + event.keyCode)"
+ onkeypress="appendMessage('press: ' + event.keyCode)"
+ onkeydown="displayMessage(''); appendMessage('down: ' + event.keyCode)" />
+ <input name="suppress" onkeydown="if (event.preventDefault) event.preventDefault(); event.returnValue = false; return false;" onkeypress="appendMessage('press');"/>
+ </form>
+</div>
+
+<!-- Used for testing styles -->
+<div style="background-color: green;" id="green-parent">
+ <p id="style1">This should be greenish</p>
+ <ul>
+ <li id="green-item">So should this</li>
+ <li id="red-item" style="background-color: red;">But this is red</li>
+ </ul>
+</div>
+
+<a href="#" id="close" onclick="window.close();">Close window</a>
+
+<div id="delete" onclick="var d = document.getElementById('deleted'); this.removeChild(d);">
+ <p id="deleted">I should be deleted when you click my containing div</p>
+ <p>Whereas, I should not</p>
+</div>
+
+<div>
+ <span id="hideMe" onclick="this.style.display = 'none';">Click to hide me.</span>
+</div>
+
+<div style="margin-top: 10px;">
+ Click actions delayed by 3000ms:
+ <div id="clickToShow" onclick="delayedShowHide(3000, true);"
+ style="float: left;width: 100px;height:100px;border: 1px solid black;">
+ Click to show black box
+ </div>
+ <div id="clickToHide" onclick="delayedShowHide(3000, false);"
+ style="float: left;width: 100px;height:100px;border: 1px solid black;
+ background-color: black; color: white; display: none;">
+ Click to hide black box
+ </div>
+ <div style="clear: both"></div>
+</div>
+
+<a id="new_window" onmouseup="window.open('closeable_window.html', 'close_me')" href="#">Click me to open a new window</a>
+
+<a id="throwing-mouseover" onmouseover="throw new Error()" href="#throwing-mouseover">Mouse over me will throw a JS error</a>
+
+<div id="parent">
+ <span id="movable" onmouseover="var p = document.getElementById('movable'); displayMessage('parent matches? ' + (p != event.relatedTarget));">
+ Click on me to show the related target
+ </span>
+</div>
+
+<div id="zero" style="width:0;height:0">
+ <div>
+ <img src="map.png">
+ </div>
+</div>
+
+</body>
+</html>
+
+
diff --git a/chromium/third_party/webdriver/test_data/jquery-1.3.2.js b/chromium/third_party/webdriver/test_data/jquery-1.3.2.js
new file mode 100644
index 00000000000..926357433e3
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/jquery-1.3.2.js
@@ -0,0 +1,4376 @@
+/*!
+ * jQuery JavaScript Library v1.3.2
+ * http://jquery.com/
+ *
+ * Copyright (c) 2009 John Resig
+ * Dual licensed under the MIT and GPL licenses.
+ * http://docs.jquery.com/License
+ *
+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
+ * Revision: 6246
+ */
+(function(){
+
+var
+ // Will speed up references to window, and allows munging its name.
+ window = this,
+ // Will speed up references to undefined, and allows munging its name.
+ undefined,
+ // Map over jQuery in case of overwrite
+ _jQuery = window.jQuery,
+ // Map over the $ in case of overwrite
+ _$ = window.$,
+
+ jQuery = window.jQuery = window.$ = function( selector, context ) {
+ // The jQuery object is actually just the init constructor 'enhanced'
+ return new jQuery.fn.init( selector, context );
+ },
+
+ // A simple way to check for HTML strings or ID strings
+ // (both of which we optimize for)
+ quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
+ // Is it a simple selector
+ isSimple = /^.[^:#\[\.,]*$/;
+
+jQuery.fn = jQuery.prototype = {
+ init: function( selector, context ) {
+ // Make sure that a selection was provided
+ selector = selector || document;
+
+ // Handle $(DOMElement)
+ if ( selector.nodeType ) {
+ this[0] = selector;
+ this.length = 1;
+ this.context = selector;
+ return this;
+ }
+ // Handle HTML strings
+ if ( typeof selector === "string" ) {
+ // Are we dealing with HTML string or an ID?
+ var match = quickExpr.exec( selector );
+
+ // Verify a match, and that no context was specified for #id
+ if ( match && (match[1] || !context) ) {
+
+ // HANDLE: $(html) -> $(array)
+ if ( match[1] )
+ selector = jQuery.clean( [ match[1] ], context );
+
+ // HANDLE: $("#id")
+ else {
+ var elem = document.getElementById( match[3] );
+
+ // Handle the case where IE and Opera return items
+ // by name instead of ID
+ if ( elem && elem.id != match[3] )
+ return jQuery().find( selector );
+
+ // Otherwise, we inject the element directly into the jQuery object
+ var ret = jQuery( elem || [] );
+ ret.context = document;
+ ret.selector = selector;
+ return ret;
+ }
+
+ // HANDLE: $(expr, [context])
+ // (which is just equivalent to: $(content).find(expr)
+ } else
+ return jQuery( context ).find( selector );
+
+ // HANDLE: $(function)
+ // Shortcut for document ready
+ } else if ( jQuery.isFunction( selector ) )
+ return jQuery( document ).ready( selector );
+
+ // Make sure that old selector state is passed along
+ if ( selector.selector && selector.context ) {
+ this.selector = selector.selector;
+ this.context = selector.context;
+ }
+
+ return this.setArray(jQuery.isArray( selector ) ?
+ selector :
+ jQuery.makeArray(selector));
+ },
+
+ // Start with an empty selector
+ selector: "",
+
+ // The current version of jQuery being used
+ jquery: "1.3.2",
+
+ // The number of elements contained in the matched element set
+ size: function() {
+ return this.length;
+ },
+
+ // Get the Nth element in the matched element set OR
+ // Get the whole matched element set as a clean array
+ get: function( num ) {
+ return num === undefined ?
+
+ // Return a 'clean' array
+ Array.prototype.slice.call( this ) :
+
+ // Return just the object
+ this[ num ];
+ },
+
+ // Take an array of elements and push it onto the stack
+ // (returning the new matched element set)
+ pushStack: function( elems, name, selector ) {
+ // Build a new jQuery matched element set
+ var ret = jQuery( elems );
+
+ // Add the old object onto the stack (as a reference)
+ ret.prevObject = this;
+
+ ret.context = this.context;
+
+ if ( name === "find" )
+ ret.selector = this.selector + (this.selector ? " " : "") + selector;
+ else if ( name )
+ ret.selector = this.selector + "." + name + "(" + selector + ")";
+
+ // Return the newly-formed element set
+ return ret;
+ },
+
+ // Force the current matched set of elements to become
+ // the specified array of elements (destroying the stack in the process)
+ // You should use pushStack() in order to do this, but maintain the stack
+ setArray: function( elems ) {
+ // Resetting the length to 0, then using the native Array push
+ // is a super-fast way to populate an object with array-like properties
+ this.length = 0;
+ Array.prototype.push.apply( this, elems );
+
+ return this;
+ },
+
+ // Execute a callback for every element in the matched set.
+ // (You can seed the arguments with an array of args, but this is
+ // only used internally.)
+ each: function( callback, args ) {
+ return jQuery.each( this, callback, args );
+ },
+
+ // Determine the position of an element within
+ // the matched set of elements
+ index: function( elem ) {
+ // Locate the position of the desired element
+ return jQuery.inArray(
+ // If it receives a jQuery object, the first element is used
+ elem && elem.jquery ? elem[0] : elem
+ , this );
+ },
+
+ attr: function( name, value, type ) {
+ var options = name;
+
+ // Look for the case where we're accessing a style value
+ if ( typeof name === "string" )
+ if ( value === undefined )
+ return this[0] && jQuery[ type || "attr" ]( this[0], name );
+
+ else {
+ options = {};
+ options[ name ] = value;
+ }
+
+ // Check to see if we're setting style values
+ return this.each(function(i){
+ // Set all the styles
+ for ( name in options )
+ jQuery.attr(
+ type ?
+ this.style :
+ this,
+ name, jQuery.prop( this, options[ name ], type, i, name )
+ );
+ });
+ },
+
+ css: function( key, value ) {
+ // ignore negative width and height values
+ if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
+ value = undefined;
+ return this.attr( key, value, "curCSS" );
+ },
+
+ text: function( text ) {
+ if ( typeof text !== "object" && text != null )
+ return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
+
+ var ret = "";
+
+ jQuery.each( text || this, function(){
+ jQuery.each( this.childNodes, function(){
+ if ( this.nodeType != 8 )
+ ret += this.nodeType != 1 ?
+ this.nodeValue :
+ jQuery.fn.text( [ this ] );
+ });
+ });
+
+ return ret;
+ },
+
+ wrapAll: function( html ) {
+ if ( this[0] ) {
+ // The elements to wrap the target around
+ var wrap = jQuery( html, this[0].ownerDocument ).clone();
+
+ if ( this[0].parentNode )
+ wrap.insertBefore( this[0] );
+
+ wrap.map(function(){
+ var elem = this;
+
+ while ( elem.firstChild )
+ elem = elem.firstChild;
+
+ return elem;
+ }).append(this);
+ }
+
+ return this;
+ },
+
+ wrapInner: function( html ) {
+ return this.each(function(){
+ jQuery( this ).contents().wrapAll( html );
+ });
+ },
+
+ wrap: function( html ) {
+ return this.each(function(){
+ jQuery( this ).wrapAll( html );
+ });
+ },
+
+ append: function() {
+ return this.domManip(arguments, true, function(elem){
+ if (this.nodeType == 1)
+ this.appendChild( elem );
+ });
+ },
+
+ prepend: function() {
+ return this.domManip(arguments, true, function(elem){
+ if (this.nodeType == 1)
+ this.insertBefore( elem, this.firstChild );
+ });
+ },
+
+ before: function() {
+ return this.domManip(arguments, false, function(elem){
+ this.parentNode.insertBefore( elem, this );
+ });
+ },
+
+ after: function() {
+ return this.domManip(arguments, false, function(elem){
+ this.parentNode.insertBefore( elem, this.nextSibling );
+ });
+ },
+
+ end: function() {
+ return this.prevObject || jQuery( [] );
+ },
+
+ // For internal use only.
+ // Behaves like an Array's method, not like a jQuery method.
+ push: [].push,
+ sort: [].sort,
+ splice: [].splice,
+
+ find: function( selector ) {
+ if ( this.length === 1 ) {
+ var ret = this.pushStack( [], "find", selector );
+ ret.length = 0;
+ jQuery.find( selector, this[0], ret );
+ return ret;
+ } else {
+ return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
+ return jQuery.find( selector, elem );
+ })), "find", selector );
+ }
+ },
+
+ clone: function( events ) {
+ // Do the clone
+ var ret = this.map(function(){
+ if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
+ // IE copies events bound via attachEvent when
+ // using cloneNode. Calling detachEvent on the
+ // clone will also remove the events from the orignal
+ // In order to get around this, we use innerHTML.
+ // Unfortunately, this means some modifications to
+ // attributes in IE that are actually only stored
+ // as properties will not be copied (such as the
+ // the name attribute on an input).
+ var html = this.outerHTML;
+ if ( !html ) {
+ var div = this.ownerDocument.createElement("div");
+ div.appendChild( this.cloneNode(true) );
+ html = div.innerHTML;
+ }
+
+ return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
+ } else
+ return this.cloneNode(true);
+ });
+
+ // Copy the events from the original to the clone
+ if ( events === true ) {
+ var orig = this.find("*").andSelf(), i = 0;
+
+ ret.find("*").andSelf().each(function(){
+ if ( this.nodeName !== orig[i].nodeName )
+ return;
+
+ var events = jQuery.data( orig[i], "events" );
+
+ for ( var type in events ) {
+ for ( var handler in events[ type ] ) {
+ jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
+ }
+ }
+
+ i++;
+ });
+ }
+
+ // Return the cloned set
+ return ret;
+ },
+
+ filter: function( selector ) {
+ return this.pushStack(
+ jQuery.isFunction( selector ) &&
+ jQuery.grep(this, function(elem, i){
+ return selector.call( elem, i );
+ }) ||
+
+ jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
+ return elem.nodeType === 1;
+ }) ), "filter", selector );
+ },
+
+ closest: function( selector ) {
+ var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
+ closer = 0;
+
+ return this.map(function(){
+ var cur = this;
+ while ( cur && cur.ownerDocument ) {
+ if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
+ jQuery.data(cur, "closest", closer);
+ return cur;
+ }
+ cur = cur.parentNode;
+ closer++;
+ }
+ });
+ },
+
+ not: function( selector ) {
+ if ( typeof selector === "string" )
+ // test special case where just one selector is passed in
+ if ( isSimple.test( selector ) )
+ return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
+ else
+ selector = jQuery.multiFilter( selector, this );
+
+ var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
+ return this.filter(function() {
+ return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
+ });
+ },
+
+ add: function( selector ) {
+ return this.pushStack( jQuery.unique( jQuery.merge(
+ this.get(),
+ typeof selector === "string" ?
+ jQuery( selector ) :
+ jQuery.makeArray( selector )
+ )));
+ },
+
+ is: function( selector ) {
+ return !!selector && jQuery.multiFilter( selector, this ).length > 0;
+ },
+
+ hasClass: function( selector ) {
+ return !!selector && this.is( "." + selector );
+ },
+
+ val: function( value ) {
+ if ( value === undefined ) {
+ var elem = this[0];
+
+ if ( elem ) {
+ if( jQuery.nodeName( elem, 'option' ) )
+ return (elem.attributes.value || {}).specified ? elem.value : elem.text;
+
+ // We need to handle select boxes special
+ if ( jQuery.nodeName( elem, "select" ) ) {
+ var index = elem.selectedIndex,
+ values = [],
+ options = elem.options,
+ one = elem.type == "select-one";
+
+ // Nothing was selected
+ if ( index < 0 )
+ return null;
+
+ // Loop through all the selected options
+ for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
+ var option = options[ i ];
+
+ if ( option.selected ) {
+ // Get the specifc value for the option
+ value = jQuery(option).val();
+
+ // We don't need an array for one selects
+ if ( one )
+ return value;
+
+ // Multi-Selects return an array
+ values.push( value );
+ }
+ }
+
+ return values;
+ }
+
+ // Everything else, we just grab the value
+ return (elem.value || "").replace(/\r/g, "");
+
+ }
+
+ return undefined;
+ }
+
+ if ( typeof value === "number" )
+ value += '';
+
+ return this.each(function(){
+ if ( this.nodeType != 1 )
+ return;
+
+ if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
+ this.checked = (jQuery.inArray(this.value, value) >= 0 ||
+ jQuery.inArray(this.name, value) >= 0);
+
+ else if ( jQuery.nodeName( this, "select" ) ) {
+ var values = jQuery.makeArray(value);
+
+ jQuery( "option", this ).each(function(){
+ this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
+ jQuery.inArray( this.text, values ) >= 0);
+ });
+
+ if ( !values.length )
+ this.selectedIndex = -1;
+
+ } else
+ this.value = value;
+ });
+ },
+
+ html: function( value ) {
+ return value === undefined ?
+ (this[0] ?
+ this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
+ null) :
+ this.empty().append( value );
+ },
+
+ replaceWith: function( value ) {
+ return this.after( value ).remove();
+ },
+
+ eq: function( i ) {
+ return this.slice( i, +i + 1 );
+ },
+
+ slice: function() {
+ return this.pushStack( Array.prototype.slice.apply( this, arguments ),
+ "slice", Array.prototype.slice.call(arguments).join(",") );
+ },
+
+ map: function( callback ) {
+ return this.pushStack( jQuery.map(this, function(elem, i){
+ return callback.call( elem, i, elem );
+ }));
+ },
+
+ andSelf: function() {
+ return this.add( this.prevObject );
+ },
+
+ domManip: function( args, table, callback ) {
+ if ( this[0] ) {
+ var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
+ scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
+ first = fragment.firstChild;
+
+ if ( first )
+ for ( var i = 0, l = this.length; i < l; i++ )
+ callback.call( root(this[i], first), this.length > 1 || i > 0 ?
+ fragment.cloneNode(true) : fragment );
+
+ if ( scripts )
+ jQuery.each( scripts, evalScript );
+ }
+
+ return this;
+
+ function root( elem, cur ) {
+ return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
+ (elem.getElementsByTagName("tbody")[0] ||
+ elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
+ elem;
+ }
+ }
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+function evalScript( i, elem ) {
+ if ( elem.src )
+ jQuery.ajax({
+ url: elem.src,
+ async: false,
+ dataType: "script"
+ });
+
+ else
+ jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
+
+ if ( elem.parentNode )
+ elem.parentNode.removeChild( elem );
+}
+
+function now(){
+ return +new Date;
+}
+
+jQuery.extend = jQuery.fn.extend = function() {
+ // copy reference to target object
+ var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
+
+ // Handle a deep copy situation
+ if ( typeof target === "boolean" ) {
+ deep = target;
+ target = arguments[1] || {};
+ // skip the boolean and the target
+ i = 2;
+ }
+
+ // Handle case when target is a string or something (possible in deep copy)
+ if ( typeof target !== "object" && !jQuery.isFunction(target) )
+ target = {};
+
+ // extend jQuery itself if only one argument is passed
+ if ( length == i ) {
+ target = this;
+ --i;
+ }
+
+ for ( ; i < length; i++ )
+ // Only deal with non-null/undefined values
+ if ( (options = arguments[ i ]) != null )
+ // Extend the base object
+ for ( var name in options ) {
+ var src = target[ name ], copy = options[ name ];
+
+ // Prevent never-ending loop
+ if ( target === copy )
+ continue;
+
+ // Recurse if we're merging object values
+ if ( deep && copy && typeof copy === "object" && !copy.nodeType )
+ target[ name ] = jQuery.extend( deep,
+ // Never move original objects, clone them
+ src || ( copy.length != null ? [ ] : { } )
+ , copy );
+
+ // Don't bring in undefined values
+ else if ( copy !== undefined )
+ target[ name ] = copy;
+
+ }
+
+ // Return the modified object
+ return target;
+};
+
+// exclude the following css properties to add px
+var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
+ // cache defaultView
+ defaultView = document.defaultView || {},
+ toString = Object.prototype.toString;
+
+jQuery.extend({
+ noConflict: function( deep ) {
+ window.$ = _$;
+
+ if ( deep )
+ window.jQuery = _jQuery;
+
+ return jQuery;
+ },
+
+ // See test/unit/core.js for details concerning isFunction.
+ // Since version 1.3, DOM methods and functions like alert
+ // aren't supported. They return false on IE (#2968).
+ isFunction: function( obj ) {
+ return toString.call(obj) === "[object Function]";
+ },
+
+ isArray: function( obj ) {
+ return toString.call(obj) === "[object Array]";
+ },
+
+ // check if an element is in a (or is an) XML document
+ isXMLDoc: function( elem ) {
+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
+ !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
+ },
+
+ // Evalulates a script in a global context
+ globalEval: function( data ) {
+ if ( data && /\S/.test(data) ) {
+ // Inspired by code by Andrea Giammarchi
+ // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
+ var head = document.getElementsByTagName("head")[0] || document.documentElement,
+ script = document.createElement("script");
+
+ script.type = "text/javascript";
+ if ( jQuery.support.scriptEval )
+ script.appendChild( document.createTextNode( data ) );
+ else
+ script.text = data;
+
+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
+ // This arises when a base node is used (#2709).
+ head.insertBefore( script, head.firstChild );
+ head.removeChild( script );
+ }
+ },
+
+ nodeName: function( elem, name ) {
+ return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
+ },
+
+ // args is for internal usage only
+ each: function( object, callback, args ) {
+ var name, i = 0, length = object.length;
+
+ if ( args ) {
+ if ( length === undefined ) {
+ for ( name in object )
+ if ( callback.apply( object[ name ], args ) === false )
+ break;
+ } else
+ for ( ; i < length; )
+ if ( callback.apply( object[ i++ ], args ) === false )
+ break;
+
+ // A special, fast, case for the most common use of each
+ } else {
+ if ( length === undefined ) {
+ for ( name in object )
+ if ( callback.call( object[ name ], name, object[ name ] ) === false )
+ break;
+ } else
+ for ( var value = object[0];
+ i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
+ }
+
+ return object;
+ },
+
+ prop: function( elem, value, type, i, name ) {
+ // Handle executable functions
+ if ( jQuery.isFunction( value ) )
+ value = value.call( elem, i );
+
+ // Handle passing in a number to a CSS property
+ return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
+ value + "px" :
+ value;
+ },
+
+ className: {
+ // internal only, use addClass("class")
+ add: function( elem, classNames ) {
+ jQuery.each((classNames || "").split(/\s+/), function(i, className){
+ if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
+ elem.className += (elem.className ? " " : "") + className;
+ });
+ },
+
+ // internal only, use removeClass("class")
+ remove: function( elem, classNames ) {
+ if (elem.nodeType == 1)
+ elem.className = classNames !== undefined ?
+ jQuery.grep(elem.className.split(/\s+/), function(className){
+ return !jQuery.className.has( classNames, className );
+ }).join(" ") :
+ "";
+ },
+
+ // internal only, use hasClass("class")
+ has: function( elem, className ) {
+ return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
+ }
+ },
+
+ // A method for quickly swapping in/out CSS properties to get correct calculations
+ swap: function( elem, options, callback ) {
+ var old = {};
+ // Remember the old values, and insert the new ones
+ for ( var name in options ) {
+ old[ name ] = elem.style[ name ];
+ elem.style[ name ] = options[ name ];
+ }
+
+ callback.call( elem );
+
+ // Revert the old values
+ for ( var name in options )
+ elem.style[ name ] = old[ name ];
+ },
+
+ css: function( elem, name, force, extra ) {
+ if ( name == "width" || name == "height" ) {
+ var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
+
+ function getWH() {
+ val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
+
+ if ( extra === "border" )
+ return;
+
+ jQuery.each( which, function() {
+ if ( !extra )
+ val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
+ if ( extra === "margin" )
+ val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
+ else
+ val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
+ });
+ }
+
+ if ( elem.offsetWidth !== 0 )
+ getWH();
+ else
+ jQuery.swap( elem, props, getWH );
+
+ return Math.max(0, Math.round(val));
+ }
+
+ return jQuery.curCSS( elem, name, force );
+ },
+
+ curCSS: function( elem, name, force ) {
+ var ret, style = elem.style;
+
+ // We need to handle opacity special in IE
+ if ( name == "opacity" && !jQuery.support.opacity ) {
+ ret = jQuery.attr( style, "opacity" );
+
+ return ret == "" ?
+ "1" :
+ ret;
+ }
+
+ // Make sure we're using the right name for getting the float value
+ if ( name.match( /float/i ) )
+ name = styleFloat;
+
+ if ( !force && style && style[ name ] )
+ ret = style[ name ];
+
+ else if ( defaultView.getComputedStyle ) {
+
+ // Only "float" is needed here
+ if ( name.match( /float/i ) )
+ name = "float";
+
+ name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
+
+ var computedStyle = defaultView.getComputedStyle( elem, null );
+
+ if ( computedStyle )
+ ret = computedStyle.getPropertyValue( name );
+
+ // We should always get a number back from opacity
+ if ( name == "opacity" && ret == "" )
+ ret = "1";
+
+ } else if ( elem.currentStyle ) {
+ var camelCase = name.replace(/\-(\w)/g, function(all, letter){
+ return letter.toUpperCase();
+ });
+
+ ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
+
+ // From the awesome hack by Dean Edwards
+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+ // If we're not dealing with a regular pixel number
+ // but a number that has a weird ending, we need to convert it to pixels
+ if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
+ // Remember the original values
+ var left = style.left, rsLeft = elem.runtimeStyle.left;
+
+ // Put in the new values to get a computed value out
+ elem.runtimeStyle.left = elem.currentStyle.left;
+ style.left = ret || 0;
+ ret = style.pixelLeft + "px";
+
+ // Revert the changed values
+ style.left = left;
+ elem.runtimeStyle.left = rsLeft;
+ }
+ }
+
+ return ret;
+ },
+
+ clean: function( elems, context, fragment ) {
+ context = context || document;
+
+ // !context.createElement fails in IE with an error but returns typeof 'object'
+ if ( typeof context.createElement === "undefined" )
+ context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
+
+ // If a single string is passed in and it's a single tag
+ // just do a createElement and skip the rest
+ if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
+ var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
+ if ( match )
+ return [ context.createElement( match[1] ) ];
+ }
+
+ var ret = [], scripts = [], div = context.createElement("div");
+
+ jQuery.each(elems, function(i, elem){
+ if ( typeof elem === "number" )
+ elem += '';
+
+ if ( !elem )
+ return;
+
+ // Convert html string into DOM nodes
+ if ( typeof elem === "string" ) {
+ // Fix "XHTML"-style tags in all browsers
+ elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
+ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
+ all :
+ front + "></" + tag + ">";
+ });
+
+ // Trim whitespace, otherwise indexOf won't work as expected
+ var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
+
+ var wrap =
+ // option or optgroup
+ !tags.indexOf("<opt") &&
+ [ 1, "<select multiple='multiple'>", "</select>" ] ||
+
+ !tags.indexOf("<leg") &&
+ [ 1, "<fieldset>", "</fieldset>" ] ||
+
+ tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
+ [ 1, "<table>", "</table>" ] ||
+
+ !tags.indexOf("<tr") &&
+ [ 2, "<table><tbody>", "</tbody></table>" ] ||
+
+ // <thead> matched above
+ (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
+ [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
+
+ !tags.indexOf("<col") &&
+ [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
+
+ // IE can't serialize <link> and <script> tags normally
+ !jQuery.support.htmlSerialize &&
+ [ 1, "div<div>", "</div>" ] ||
+
+ [ 0, "", "" ];
+
+ // Go to html and back, then peel off extra wrappers
+ div.innerHTML = wrap[1] + elem + wrap[2];
+
+ // Move to the right depth
+ while ( wrap[0]-- )
+ div = div.lastChild;
+
+ // Remove IE's autoinserted <tbody> from table fragments
+ if ( !jQuery.support.tbody ) {
+
+ // String was a <table>, *may* have spurious <tbody>
+ var hasBody = /<tbody/i.test(elem),
+ tbody = !tags.indexOf("<table") && !hasBody ?
+ div.firstChild && div.firstChild.childNodes :
+
+ // String was a bare <thead> or <tfoot>
+ wrap[1] == "<table>" && !hasBody ?
+ div.childNodes :
+ [];
+
+ for ( var j = tbody.length - 1; j >= 0 ; --j )
+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
+
+ }
+
+ // IE completely kills leading whitespace when innerHTML is used
+ if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
+ div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
+
+ elem = jQuery.makeArray( div.childNodes );
+ }
+
+ if ( elem.nodeType )
+ ret.push( elem );
+ else
+ ret = jQuery.merge( ret, elem );
+
+ });
+
+ if ( fragment ) {
+ for ( var i = 0; ret[i]; i++ ) {
+ if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
+ scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
+ } else {
+ if ( ret[i].nodeType === 1 )
+ ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
+ fragment.appendChild( ret[i] );
+ }
+ }
+
+ return scripts;
+ }
+
+ return ret;
+ },
+
+ attr: function( elem, name, value ) {
+ // don't set attributes on text and comment nodes
+ if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
+ return undefined;
+
+ var notxml = !jQuery.isXMLDoc( elem ),
+ // Whether we are setting (or getting)
+ set = value !== undefined;
+
+ // Try to normalize/fix the name
+ name = notxml && jQuery.props[ name ] || name;
+
+ // Only do all the following if this is a node (faster for style)
+ // IE elem.getAttribute passes even for style
+ if ( elem.tagName ) {
+
+ // These attributes require special treatment
+ var special = /href|src|style/.test( name );
+
+ // Safari mis-reports the default selected property of a hidden option
+ // Accessing the parent's selectedIndex property fixes it
+ if ( name == "selected" && elem.parentNode )
+ elem.parentNode.selectedIndex;
+
+ // If applicable, access the attribute via the DOM 0 way
+ if ( name in elem && notxml && !special ) {
+ if ( set ){
+ // We can't allow the type property to be changed (since it causes problems in IE)
+ if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
+ throw "type property can't be changed";
+
+ elem[ name ] = value;
+ }
+
+ // browsers index elements by id/name on forms, give priority to attributes.
+ if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
+ return elem.getAttributeNode( name ).nodeValue;
+
+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+ if ( name == "tabIndex" ) {
+ var attributeNode = elem.getAttributeNode( "tabIndex" );
+ return attributeNode && attributeNode.specified
+ ? attributeNode.value
+ : elem.nodeName.match(/(button|input|object|select|textarea)/i)
+ ? 0
+ : elem.nodeName.match(/^(a|area)$/i) && elem.href
+ ? 0
+ : undefined;
+ }
+
+ return elem[ name ];
+ }
+
+ if ( !jQuery.support.style && notxml && name == "style" )
+ return jQuery.attr( elem.style, "cssText", value );
+
+ if ( set )
+ // convert the value to a string (all browsers do this but IE) see #1070
+ elem.setAttribute( name, "" + value );
+
+ var attr = !jQuery.support.hrefNormalized && notxml && special
+ // Some attributes require a special call on IE
+ ? elem.getAttribute( name, 2 )
+ : elem.getAttribute( name );
+
+ // Non-existent attributes return null, we normalize to undefined
+ return attr === null ? undefined : attr;
+ }
+
+ // elem is actually elem.style ... set the style
+
+ // IE uses filters for opacity
+ if ( !jQuery.support.opacity && name == "opacity" ) {
+ if ( set ) {
+ // IE has trouble with opacity if it does not have layout
+ // Force it by setting the zoom level
+ elem.zoom = 1;
+
+ // Set the alpha filter to set the opacity
+ elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
+ (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
+ }
+
+ return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
+ (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
+ "";
+ }
+
+ name = name.replace(/-([a-z])/ig, function(all, letter){
+ return letter.toUpperCase();
+ });
+
+ if ( set )
+ elem[ name ] = value;
+
+ return elem[ name ];
+ },
+
+ trim: function( text ) {
+ return (text || "").replace( /^\s+|\s+$/g, "" );
+ },
+
+ makeArray: function( array ) {
+ var ret = [];
+
+ if( array != null ){
+ var i = array.length;
+ // The window, strings (and functions) also have 'length'
+ if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
+ ret[0] = array;
+ else
+ while( i )
+ ret[--i] = array[i];
+ }
+
+ return ret;
+ },
+
+ inArray: function( elem, array ) {
+ for ( var i = 0, length = array.length; i < length; i++ )
+ // Use === because on IE, window == document
+ if ( array[ i ] === elem )
+ return i;
+
+ return -1;
+ },
+
+ merge: function( first, second ) {
+ // We have to loop this way because IE & Opera overwrite the length
+ // expando of getElementsByTagName
+ var i = 0, elem, pos = first.length;
+ // Also, we need to make sure that the correct elements are being returned
+ // (IE returns comment nodes in a '*' query)
+ if ( !jQuery.support.getAll ) {
+ while ( (elem = second[ i++ ]) != null )
+ if ( elem.nodeType != 8 )
+ first[ pos++ ] = elem;
+
+ } else
+ while ( (elem = second[ i++ ]) != null )
+ first[ pos++ ] = elem;
+
+ return first;
+ },
+
+ unique: function( array ) {
+ var ret = [], done = {};
+
+ try {
+
+ for ( var i = 0, length = array.length; i < length; i++ ) {
+ var id = jQuery.data( array[ i ] );
+
+ if ( !done[ id ] ) {
+ done[ id ] = true;
+ ret.push( array[ i ] );
+ }
+ }
+
+ } catch( e ) {
+ ret = array;
+ }
+
+ return ret;
+ },
+
+ grep: function( elems, callback, inv ) {
+ var ret = [];
+
+ // Go through the array, only saving the items
+ // that pass the validator function
+ for ( var i = 0, length = elems.length; i < length; i++ )
+ if ( !inv != !callback( elems[ i ], i ) )
+ ret.push( elems[ i ] );
+
+ return ret;
+ },
+
+ map: function( elems, callback ) {
+ var ret = [];
+
+ // Go through the array, translating each of the items to their
+ // new value (or values).
+ for ( var i = 0, length = elems.length; i < length; i++ ) {
+ var value = callback( elems[ i ], i );
+
+ if ( value != null )
+ ret[ ret.length ] = value;
+ }
+
+ return ret.concat.apply( [], ret );
+ }
+});
+
+// Use of jQuery.browser is deprecated.
+// It's included for backwards compatibility and plugins,
+// although they should work to migrate away.
+
+var userAgent = navigator.userAgent.toLowerCase();
+
+// Figure out what browser is being used
+jQuery.browser = {
+ version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
+ safari: /webkit/.test( userAgent ),
+ opera: /opera/.test( userAgent ),
+ msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
+ mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
+};
+
+jQuery.each({
+ parent: function(elem){return elem.parentNode;},
+ parents: function(elem){return jQuery.dir(elem,"parentNode");},
+ next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
+ prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
+ nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
+ prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
+ siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
+ children: function(elem){return jQuery.sibling(elem.firstChild);},
+ contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
+}, function(name, fn){
+ jQuery.fn[ name ] = function( selector ) {
+ var ret = jQuery.map( this, fn );
+
+ if ( selector && typeof selector == "string" )
+ ret = jQuery.multiFilter( selector, ret );
+
+ return this.pushStack( jQuery.unique( ret ), name, selector );
+ };
+});
+
+jQuery.each({
+ appendTo: "append",
+ prependTo: "prepend",
+ insertBefore: "before",
+ insertAfter: "after",
+ replaceAll: "replaceWith"
+}, function(name, original){
+ jQuery.fn[ name ] = function( selector ) {
+ var ret = [], insert = jQuery( selector );
+
+ for ( var i = 0, l = insert.length; i < l; i++ ) {
+ var elems = (i > 0 ? this.clone(true) : this).get();
+ jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
+ ret = ret.concat( elems );
+ }
+
+ return this.pushStack( ret, name, selector );
+ };
+});
+
+jQuery.each({
+ removeAttr: function( name ) {
+ jQuery.attr( this, name, "" );
+ if (this.nodeType == 1)
+ this.removeAttribute( name );
+ },
+
+ addClass: function( classNames ) {
+ jQuery.className.add( this, classNames );
+ },
+
+ removeClass: function( classNames ) {
+ jQuery.className.remove( this, classNames );
+ },
+
+ toggleClass: function( classNames, state ) {
+ if( typeof state !== "boolean" )
+ state = !jQuery.className.has( this, classNames );
+ jQuery.className[ state ? "add" : "remove" ]( this, classNames );
+ },
+
+ remove: function( selector ) {
+ if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
+ // Prevent memory leaks
+ jQuery( "*", this ).add([this]).each(function(){
+ jQuery.event.remove(this);
+ jQuery.removeData(this);
+ });
+ if (this.parentNode)
+ this.parentNode.removeChild( this );
+ }
+ },
+
+ empty: function() {
+ // Remove element nodes and prevent memory leaks
+ jQuery(this).children().remove();
+
+ // Remove any remaining nodes
+ while ( this.firstChild )
+ this.removeChild( this.firstChild );
+ }
+}, function(name, fn){
+ jQuery.fn[ name ] = function(){
+ return this.each( fn, arguments );
+ };
+});
+
+// Helper function used by the dimensions and offset modules
+function num(elem, prop) {
+ return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
+}
+var expando = "jQuery" + now(), uuid = 0, windowData = {};
+
+jQuery.extend({
+ cache: {},
+
+ data: function( elem, name, data ) {
+ elem = elem == window ?
+ windowData :
+ elem;
+
+ var id = elem[ expando ];
+
+ // Compute a unique ID for the element
+ if ( !id )
+ id = elem[ expando ] = ++uuid;
+
+ // Only generate the data cache if we're
+ // trying to access or manipulate it
+ if ( name && !jQuery.cache[ id ] )
+ jQuery.cache[ id ] = {};
+
+ // Prevent overriding the named cache with undefined values
+ if ( data !== undefined )
+ jQuery.cache[ id ][ name ] = data;
+
+ // Return the named cache data, or the ID for the element
+ return name ?
+ jQuery.cache[ id ][ name ] :
+ id;
+ },
+
+ removeData: function( elem, name ) {
+ elem = elem == window ?
+ windowData :
+ elem;
+
+ var id = elem[ expando ];
+
+ // If we want to remove a specific section of the element's data
+ if ( name ) {
+ if ( jQuery.cache[ id ] ) {
+ // Remove the section of cache data
+ delete jQuery.cache[ id ][ name ];
+
+ // If we've removed all the data, remove the element's cache
+ name = "";
+
+ for ( name in jQuery.cache[ id ] )
+ break;
+
+ if ( !name )
+ jQuery.removeData( elem );
+ }
+
+ // Otherwise, we want to remove all of the element's data
+ } else {
+ // Clean up the element expando
+ try {
+ delete elem[ expando ];
+ } catch(e){
+ // IE has trouble directly removing the expando
+ // but it's ok with using removeAttribute
+ if ( elem.removeAttribute )
+ elem.removeAttribute( expando );
+ }
+
+ // Completely remove the data cache
+ delete jQuery.cache[ id ];
+ }
+ },
+ queue: function( elem, type, data ) {
+ if ( elem ){
+
+ type = (type || "fx") + "queue";
+
+ var q = jQuery.data( elem, type );
+
+ if ( !q || jQuery.isArray(data) )
+ q = jQuery.data( elem, type, jQuery.makeArray(data) );
+ else if( data )
+ q.push( data );
+
+ }
+ return q;
+ },
+
+ dequeue: function( elem, type ){
+ var queue = jQuery.queue( elem, type ),
+ fn = queue.shift();
+
+ if( !type || type === "fx" )
+ fn = queue[0];
+
+ if( fn !== undefined )
+ fn.call(elem);
+ }
+});
+
+jQuery.fn.extend({
+ data: function( key, value ){
+ var parts = key.split(".");
+ parts[1] = parts[1] ? "." + parts[1] : "";
+
+ if ( value === undefined ) {
+ var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
+
+ if ( data === undefined && this.length )
+ data = jQuery.data( this[0], key );
+
+ return data === undefined && parts[1] ?
+ this.data( parts[0] ) :
+ data;
+ } else
+ return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
+ jQuery.data( this, key, value );
+ });
+ },
+
+ removeData: function( key ){
+ return this.each(function(){
+ jQuery.removeData( this, key );
+ });
+ },
+ queue: function(type, data){
+ if ( typeof type !== "string" ) {
+ data = type;
+ type = "fx";
+ }
+
+ if ( data === undefined )
+ return jQuery.queue( this[0], type );
+
+ return this.each(function(){
+ var queue = jQuery.queue( this, type, data );
+
+ if( type == "fx" && queue.length == 1 )
+ queue[0].call(this);
+ });
+ },
+ dequeue: function(type){
+ return this.each(function(){
+ jQuery.dequeue( this, type );
+ });
+ }
+});/*!
+ * Sizzle CSS Selector Engine - v0.9.3
+ * Copyright 2009, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
+ done = 0,
+ toString = Object.prototype.toString;
+
+var Sizzle = function(selector, context, results, seed) {
+ results = results || [];
+ context = context || document;
+
+ if ( context.nodeType !== 1 && context.nodeType !== 9 )
+ return [];
+
+ if ( !selector || typeof selector !== "string" ) {
+ return results;
+ }
+
+ var parts = [], m, set, checkSet, check, mode, extra, prune = true;
+
+ // Reset the position of the chunker regexp (start from head)
+ chunker.lastIndex = 0;
+
+ while ( (m = chunker.exec(selector)) !== null ) {
+ parts.push( m[1] );
+
+ if ( m[2] ) {
+ extra = RegExp.rightContext;
+ break;
+ }
+ }
+
+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+ set = posProcess( parts[0] + parts[1], context );
+ } else {
+ set = Expr.relative[ parts[0] ] ?
+ [ context ] :
+ Sizzle( parts.shift(), context );
+
+ while ( parts.length ) {
+ selector = parts.shift();
+
+ if ( Expr.relative[ selector ] )
+ selector += parts.shift();
+
+ set = posProcess( selector, set );
+ }
+ }
+ } else {
+ var ret = seed ?
+ { expr: parts.pop(), set: makeArray(seed) } :
+ Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
+ set = Sizzle.filter( ret.expr, ret.set );
+
+ if ( parts.length > 0 ) {
+ checkSet = makeArray(set);
+ } else {
+ prune = false;
+ }
+
+ while ( parts.length ) {
+ var cur = parts.pop(), pop = cur;
+
+ if ( !Expr.relative[ cur ] ) {
+ cur = "";
+ } else {
+ pop = parts.pop();
+ }
+
+ if ( pop == null ) {
+ pop = context;
+ }
+
+ Expr.relative[ cur ]( checkSet, pop, isXML(context) );
+ }
+ }
+
+ if ( !checkSet ) {
+ checkSet = set;
+ }
+
+ if ( !checkSet ) {
+ throw "Syntax error, unrecognized expression: " + (cur || selector);
+ }
+
+ if ( toString.call(checkSet) === "[object Array]" ) {
+ if ( !prune ) {
+ results.push.apply( results, checkSet );
+ } else if ( context.nodeType === 1 ) {
+ for ( var i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
+ results.push( set[i] );
+ }
+ }
+ } else {
+ for ( var i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+ results.push( set[i] );
+ }
+ }
+ }
+ } else {
+ makeArray( checkSet, results );
+ }
+
+ if ( extra ) {
+ Sizzle( extra, context, results, seed );
+
+ if ( sortOrder ) {
+ hasDuplicate = false;
+ results.sort(sortOrder);
+
+ if ( hasDuplicate ) {
+ for ( var i = 1; i < results.length; i++ ) {
+ if ( results[i] === results[i-1] ) {
+ results.splice(i--, 1);
+ }
+ }
+ }
+ }
+ }
+
+ return results;
+};
+
+Sizzle.matches = function(expr, set){
+ return Sizzle(expr, null, null, set);
+};
+
+Sizzle.find = function(expr, context, isXML){
+ var set, match;
+
+ if ( !expr ) {
+ return [];
+ }
+
+ for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
+ var type = Expr.order[i], match;
+
+ if ( (match = Expr.match[ type ].exec( expr )) ) {
+ var left = RegExp.leftContext;
+
+ if ( left.substr( left.length - 1 ) !== "\\" ) {
+ match[1] = (match[1] || "").replace(/\\/g, "");
+ set = Expr.find[ type ]( match, context, isXML );
+ if ( set != null ) {
+ expr = expr.replace( Expr.match[ type ], "" );
+ break;
+ }
+ }
+ }
+ }
+
+ if ( !set ) {
+ set = context.getElementsByTagName("*");
+ }
+
+ return {set: set, expr: expr};
+};
+
+Sizzle.filter = function(expr, set, inplace, not){
+ var old = expr, result = [], curLoop = set, match, anyFound,
+ isXMLFilter = set && set[0] && isXML(set[0]);
+
+ while ( expr && set.length ) {
+ for ( var type in Expr.filter ) {
+ if ( (match = Expr.match[ type ].exec( expr )) != null ) {
+ var filter = Expr.filter[ type ], found, item;
+ anyFound = false;
+
+ if ( curLoop == result ) {
+ result = [];
+ }
+
+ if ( Expr.preFilter[ type ] ) {
+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+ if ( !match ) {
+ anyFound = found = true;
+ } else if ( match === true ) {
+ continue;
+ }
+ }
+
+ if ( match ) {
+ for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
+ if ( item ) {
+ found = filter( item, match, i, curLoop );
+ var pass = not ^ !!found;
+
+ if ( inplace && found != null ) {
+ if ( pass ) {
+ anyFound = true;
+ } else {
+ curLoop[i] = false;
+ }
+ } else if ( pass ) {
+ result.push( item );
+ anyFound = true;
+ }
+ }
+ }
+ }
+
+ if ( found !== undefined ) {
+ if ( !inplace ) {
+ curLoop = result;
+ }
+
+ expr = expr.replace( Expr.match[ type ], "" );
+
+ if ( !anyFound ) {
+ return [];
+ }
+
+ break;
+ }
+ }
+ }
+
+ // Improper expression
+ if ( expr == old ) {
+ if ( anyFound == null ) {
+ throw "Syntax error, unrecognized expression: " + expr;
+ } else {
+ break;
+ }
+ }
+
+ old = expr;
+ }
+
+ return curLoop;
+};
+
+var Expr = Sizzle.selectors = {
+ order: [ "ID", "NAME", "TAG" ],
+ match: {
+ ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
+ CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
+ TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
+ CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
+ PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
+ },
+ attrMap: {
+ "class": "className",
+ "for": "htmlFor"
+ },
+ attrHandle: {
+ href: function(elem){
+ return elem.getAttribute("href");
+ }
+ },
+ relative: {
+ "+": function(checkSet, part, isXML){
+ var isPartStr = typeof part === "string",
+ isTag = isPartStr && !/\W/.test(part),
+ isPartStrNotTag = isPartStr && !isTag;
+
+ if ( isTag && !isXML ) {
+ part = part.toUpperCase();
+ }
+
+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+ if ( (elem = checkSet[i]) ) {
+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+
+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
+ elem || false :
+ elem === part;
+ }
+ }
+
+ if ( isPartStrNotTag ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ },
+ ">": function(checkSet, part, isXML){
+ var isPartStr = typeof part === "string";
+
+ if ( isPartStr && !/\W/.test(part) ) {
+ part = isXML ? part : part.toUpperCase();
+
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+ if ( elem ) {
+ var parent = elem.parentNode;
+ checkSet[i] = parent.nodeName === part ? parent : false;
+ }
+ }
+ } else {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+ if ( elem ) {
+ checkSet[i] = isPartStr ?
+ elem.parentNode :
+ elem.parentNode === part;
+ }
+ }
+
+ if ( isPartStr ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ }
+ },
+ "": function(checkSet, part, isXML){
+ var doneName = done++, checkFn = dirCheck;
+
+ if ( !part.match(/\W/) ) {
+ var nodeCheck = part = isXML ? part : part.toUpperCase();
+ checkFn = dirNodeCheck;
+ }
+
+ checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
+ },
+ "~": function(checkSet, part, isXML){
+ var doneName = done++, checkFn = dirCheck;
+
+ if ( typeof part === "string" && !part.match(/\W/) ) {
+ var nodeCheck = part = isXML ? part : part.toUpperCase();
+ checkFn = dirNodeCheck;
+ }
+
+ checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
+ }
+ },
+ find: {
+ ID: function(match, context, isXML){
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+ return m ? [m] : [];
+ }
+ },
+ NAME: function(match, context, isXML){
+ if ( typeof context.getElementsByName !== "undefined" ) {
+ var ret = [], results = context.getElementsByName(match[1]);
+
+ for ( var i = 0, l = results.length; i < l; i++ ) {
+ if ( results[i].getAttribute("name") === match[1] ) {
+ ret.push( results[i] );
+ }
+ }
+
+ return ret.length === 0 ? null : ret;
+ }
+ },
+ TAG: function(match, context){
+ return context.getElementsByTagName(match[1]);
+ }
+ },
+ preFilter: {
+ CLASS: function(match, curLoop, inplace, result, not, isXML){
+ match = " " + match[1].replace(/\\/g, "") + " ";
+
+ if ( isXML ) {
+ return match;
+ }
+
+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+ if ( elem ) {
+ if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
+ if ( !inplace )
+ result.push( elem );
+ } else if ( inplace ) {
+ curLoop[i] = false;
+ }
+ }
+ }
+
+ return false;
+ },
+ ID: function(match){
+ return match[1].replace(/\\/g, "");
+ },
+ TAG: function(match, curLoop){
+ for ( var i = 0; curLoop[i] === false; i++ ){}
+ return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
+ },
+ CHILD: function(match){
+ if ( match[1] == "nth" ) {
+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+ var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
+ match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
+
+ // calculate the numbers (first)n+(last) including if they are negative
+ match[2] = (test[1] + (test[2] || 1)) - 0;
+ match[3] = test[3] - 0;
+ }
+
+ // TODO: Move to normal caching system
+ match[0] = done++;
+
+ return match;
+ },
+ ATTR: function(match, curLoop, inplace, result, not, isXML){
+ var name = match[1].replace(/\\/g, "");
+
+ if ( !isXML && Expr.attrMap[name] ) {
+ match[1] = Expr.attrMap[name];
+ }
+
+ if ( match[2] === "~=" ) {
+ match[4] = " " + match[4] + " ";
+ }
+
+ return match;
+ },
+ PSEUDO: function(match, curLoop, inplace, result, not){
+ if ( match[1] === "not" ) {
+ // If we're dealing with a complex expression, or a simple one
+ if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
+ match[3] = Sizzle(match[3], null, null, curLoop);
+ } else {
+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
+ if ( !inplace ) {
+ result.push.apply( result, ret );
+ }
+ return false;
+ }
+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+ return true;
+ }
+
+ return match;
+ },
+ POS: function(match){
+ match.unshift( true );
+ return match;
+ }
+ },
+ filters: {
+ enabled: function(elem){
+ return elem.disabled === false && elem.type !== "hidden";
+ },
+ disabled: function(elem){
+ return elem.disabled === true;
+ },
+ checked: function(elem){
+ return elem.checked === true;
+ },
+ selected: function(elem){
+ // Accessing this property makes selected-by-default
+ // options in Safari work properly
+ elem.parentNode.selectedIndex;
+ return elem.selected === true;
+ },
+ parent: function(elem){
+ return !!elem.firstChild;
+ },
+ empty: function(elem){
+ return !elem.firstChild;
+ },
+ has: function(elem, i, match){
+ return !!Sizzle( match[3], elem ).length;
+ },
+ header: function(elem){
+ return /h\d/i.test( elem.nodeName );
+ },
+ text: function(elem){
+ return "text" === elem.type;
+ },
+ radio: function(elem){
+ return "radio" === elem.type;
+ },
+ checkbox: function(elem){
+ return "checkbox" === elem.type;
+ },
+ file: function(elem){
+ return "file" === elem.type;
+ },
+ password: function(elem){
+ return "password" === elem.type;
+ },
+ submit: function(elem){
+ return "submit" === elem.type;
+ },
+ image: function(elem){
+ return "image" === elem.type;
+ },
+ reset: function(elem){
+ return "reset" === elem.type;
+ },
+ button: function(elem){
+ return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
+ },
+ input: function(elem){
+ return /input|select|textarea|button/i.test(elem.nodeName);
+ }
+ },
+ setFilters: {
+ first: function(elem, i){
+ return i === 0;
+ },
+ last: function(elem, i, match, array){
+ return i === array.length - 1;
+ },
+ even: function(elem, i){
+ return i % 2 === 0;
+ },
+ odd: function(elem, i){
+ return i % 2 === 1;
+ },
+ lt: function(elem, i, match){
+ return i < match[3] - 0;
+ },
+ gt: function(elem, i, match){
+ return i > match[3] - 0;
+ },
+ nth: function(elem, i, match){
+ return match[3] - 0 == i;
+ },
+ eq: function(elem, i, match){
+ return match[3] - 0 == i;
+ }
+ },
+ filter: {
+ PSEUDO: function(elem, match, i, array){
+ var name = match[1], filter = Expr.filters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
+ } else if ( name === "contains" ) {
+ return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
+ } else if ( name === "not" ) {
+ var not = match[3];
+
+ for ( var i = 0, l = not.length; i < l; i++ ) {
+ if ( not[i] === elem ) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+ },
+ CHILD: function(elem, match){
+ var type = match[1], node = elem;
+ switch (type) {
+ case 'only':
+ case 'first':
+ while (node = node.previousSibling) {
+ if ( node.nodeType === 1 ) return false;
+ }
+ if ( type == 'first') return true;
+ node = elem;
+ case 'last':
+ while (node = node.nextSibling) {
+ if ( node.nodeType === 1 ) return false;
+ }
+ return true;
+ case 'nth':
+ var first = match[2], last = match[3];
+
+ if ( first == 1 && last == 0 ) {
+ return true;
+ }
+
+ var doneName = match[0],
+ parent = elem.parentNode;
+
+ if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
+ var count = 0;
+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
+ if ( node.nodeType === 1 ) {
+ node.nodeIndex = ++count;
+ }
+ }
+ parent.sizcache = doneName;
+ }
+
+ var diff = elem.nodeIndex - last;
+ if ( first == 0 ) {
+ return diff == 0;
+ } else {
+ return ( diff % first == 0 && diff / first >= 0 );
+ }
+ }
+ },
+ ID: function(elem, match){
+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
+ },
+ TAG: function(elem, match){
+ return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
+ },
+ CLASS: function(elem, match){
+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
+ .indexOf( match ) > -1;
+ },
+ ATTR: function(elem, match){
+ var name = match[1],
+ result = Expr.attrHandle[ name ] ?
+ Expr.attrHandle[ name ]( elem ) :
+ elem[ name ] != null ?
+ elem[ name ] :
+ elem.getAttribute( name ),
+ value = result + "",
+ type = match[2],
+ check = match[4];
+
+ return result == null ?
+ type === "!=" :
+ type === "=" ?
+ value === check :
+ type === "*=" ?
+ value.indexOf(check) >= 0 :
+ type === "~=" ?
+ (" " + value + " ").indexOf(check) >= 0 :
+ !check ?
+ value && result !== false :
+ type === "!=" ?
+ value != check :
+ type === "^=" ?
+ value.indexOf(check) === 0 :
+ type === "$=" ?
+ value.substr(value.length - check.length) === check :
+ type === "|=" ?
+ value === check || value.substr(0, check.length + 1) === check + "-" :
+ false;
+ },
+ POS: function(elem, match, i, array){
+ var name = match[2], filter = Expr.setFilters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
+ }
+ }
+ }
+};
+
+var origPOS = Expr.match.POS;
+
+for ( var type in Expr.match ) {
+ Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
+}
+
+var makeArray = function(array, results) {
+ array = Array.prototype.slice.call( array );
+
+ if ( results ) {
+ results.push.apply( results, array );
+ return results;
+ }
+
+ return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+try {
+ Array.prototype.slice.call( document.documentElement.childNodes );
+
+// Provide a fallback method if it does not work
+} catch(e){
+ makeArray = function(array, results) {
+ var ret = results || [];
+
+ if ( toString.call(array) === "[object Array]" ) {
+ Array.prototype.push.apply( ret, array );
+ } else {
+ if ( typeof array.length === "number" ) {
+ for ( var i = 0, l = array.length; i < l; i++ ) {
+ ret.push( array[i] );
+ }
+ } else {
+ for ( var i = 0; array[i]; i++ ) {
+ ret.push( array[i] );
+ }
+ }
+ }
+
+ return ret;
+ };
+}
+
+var sortOrder;
+
+if ( document.documentElement.compareDocumentPosition ) {
+ sortOrder = function( a, b ) {
+ var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
+ if ( ret === 0 ) {
+ hasDuplicate = true;
+ }
+ return ret;
+ };
+} else if ( "sourceIndex" in document.documentElement ) {
+ sortOrder = function( a, b ) {
+ var ret = a.sourceIndex - b.sourceIndex;
+ if ( ret === 0 ) {
+ hasDuplicate = true;
+ }
+ return ret;
+ };
+} else if ( document.createRange ) {
+ sortOrder = function( a, b ) {
+ var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
+ aRange.selectNode(a);
+ aRange.collapse(true);
+ bRange.selectNode(b);
+ bRange.collapse(true);
+ var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
+ if ( ret === 0 ) {
+ hasDuplicate = true;
+ }
+ return ret;
+ };
+}
+
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+ // We're going to inject a fake input element with a specified name
+ var form = document.createElement("form"),
+ id = "script" + (new Date).getTime();
+ form.innerHTML = "<input name='" + id + "'/>";
+
+ // Inject it into the root element, check its status, and remove it quickly
+ var root = document.documentElement;
+ root.insertBefore( form, root.firstChild );
+
+ // The workaround has to do additional checks after a getElementById
+ // Which slows things down for other browsers (hence the branching)
+ if ( !!document.getElementById( id ) ) {
+ Expr.find.ID = function(match, context, isXML){
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+ return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
+ }
+ };
+
+ Expr.filter.ID = function(elem, match){
+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
+ return elem.nodeType === 1 && node && node.nodeValue === match;
+ };
+ }
+
+ root.removeChild( form );
+})();
+
+(function(){
+ // Check to see if the browser returns only elements
+ // when doing getElementsByTagName("*")
+
+ // Create a fake element
+ var div = document.createElement("div");
+ div.appendChild( document.createComment("") );
+
+ // Make sure no comments are found
+ if ( div.getElementsByTagName("*").length > 0 ) {
+ Expr.find.TAG = function(match, context){
+ var results = context.getElementsByTagName(match[1]);
+
+ // Filter out possible comments
+ if ( match[1] === "*" ) {
+ var tmp = [];
+
+ for ( var i = 0; results[i]; i++ ) {
+ if ( results[i].nodeType === 1 ) {
+ tmp.push( results[i] );
+ }
+ }
+
+ results = tmp;
+ }
+
+ return results;
+ };
+ }
+
+ // Check to see if an attribute returns normalized href attributes
+ div.innerHTML = "<a href='#'></a>";
+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+ div.firstChild.getAttribute("href") !== "#" ) {
+ Expr.attrHandle.href = function(elem){
+ return elem.getAttribute("href", 2);
+ };
+ }
+})();
+
+if ( document.querySelectorAll ) (function(){
+ var oldSizzle = Sizzle, div = document.createElement("div");
+ div.innerHTML = "<p class='TEST'></p>";
+
+ // Safari can't handle uppercase or unicode characters when
+ // in quirks mode.
+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+ return;
+ }
+
+ Sizzle = function(query, context, extra, seed){
+ context = context || document;
+
+ // Only use querySelectorAll on non-XML documents
+ // (ID selectors don't work in non-HTML documents)
+ if ( !seed && context.nodeType === 9 && !isXML(context) ) {
+ try {
+ return makeArray( context.querySelectorAll(query), extra );
+ } catch(e){}
+ }
+
+ return oldSizzle(query, context, extra, seed);
+ };
+
+ Sizzle.find = oldSizzle.find;
+ Sizzle.filter = oldSizzle.filter;
+ Sizzle.selectors = oldSizzle.selectors;
+ Sizzle.matches = oldSizzle.matches;
+})();
+
+if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
+ var div = document.createElement("div");
+ div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+
+ // Opera can't find a second classname (in 9.6)
+ if ( div.getElementsByClassName("e").length === 0 )
+ return;
+
+ // Safari caches class attributes, doesn't catch changes (in 3.2)
+ div.lastChild.className = "e";
+
+ if ( div.getElementsByClassName("e").length === 1 )
+ return;
+
+ Expr.order.splice(1, 0, "CLASS");
+ Expr.find.CLASS = function(match, context, isXML) {
+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+ return context.getElementsByClassName(match[1]);
+ }
+ };
+})();
+
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ var sibDir = dir == "previousSibling" && !isXML;
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+ if ( elem ) {
+ if ( sibDir && elem.nodeType === 1 ){
+ elem.sizcache = doneName;
+ elem.sizset = i;
+ }
+ elem = elem[dir];
+ var match = false;
+
+ while ( elem ) {
+ if ( elem.sizcache === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
+
+ if ( elem.nodeType === 1 && !isXML ){
+ elem.sizcache = doneName;
+ elem.sizset = i;
+ }
+
+ if ( elem.nodeName === cur ) {
+ match = elem;
+ break;
+ }
+
+ elem = elem[dir];
+ }
+
+ checkSet[i] = match;
+ }
+ }
+}
+
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ var sibDir = dir == "previousSibling" && !isXML;
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
+ if ( elem ) {
+ if ( sibDir && elem.nodeType === 1 ) {
+ elem.sizcache = doneName;
+ elem.sizset = i;
+ }
+ elem = elem[dir];
+ var match = false;
+
+ while ( elem ) {
+ if ( elem.sizcache === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
+
+ if ( elem.nodeType === 1 ) {
+ if ( !isXML ) {
+ elem.sizcache = doneName;
+ elem.sizset = i;
+ }
+ if ( typeof cur !== "string" ) {
+ if ( elem === cur ) {
+ match = true;
+ break;
+ }
+
+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+ match = elem;
+ break;
+ }
+ }
+
+ elem = elem[dir];
+ }
+
+ checkSet[i] = match;
+ }
+ }
+}
+
+var contains = document.compareDocumentPosition ? function(a, b){
+ return a.compareDocumentPosition(b) & 16;
+} : function(a, b){
+ return a !== b && (a.contains ? a.contains(b) : true);
+};
+
+var isXML = function(elem){
+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
+ !!elem.ownerDocument && isXML( elem.ownerDocument );
+};
+
+var posProcess = function(selector, context){
+ var tmpSet = [], later = "", match,
+ root = context.nodeType ? [context] : context;
+
+ // Position selectors must be done after the filter
+ // And so must :not(positional) so we move all PSEUDOs to the end
+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+ later += match[0];
+ selector = selector.replace( Expr.match.PSEUDO, "" );
+ }
+
+ selector = Expr.relative[selector] ? selector + "*" : selector;
+
+ for ( var i = 0, l = root.length; i < l; i++ ) {
+ Sizzle( selector, root[i], tmpSet );
+ }
+
+ return Sizzle.filter( later, tmpSet );
+};
+
+// EXPOSE
+jQuery.find = Sizzle;
+jQuery.filter = Sizzle.filter;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.filters;
+
+Sizzle.selectors.filters.hidden = function(elem){
+ return elem.offsetWidth === 0 || elem.offsetHeight === 0;
+};
+
+Sizzle.selectors.filters.visible = function(elem){
+ return elem.offsetWidth > 0 || elem.offsetHeight > 0;
+};
+
+Sizzle.selectors.filters.animated = function(elem){
+ return jQuery.grep(jQuery.timers, function(fn){
+ return elem === fn.elem;
+ }).length;
+};
+
+jQuery.multiFilter = function( expr, elems, not ) {
+ if ( not ) {
+ expr = ":not(" + expr + ")";
+ }
+
+ return Sizzle.matches(expr, elems);
+};
+
+jQuery.dir = function( elem, dir ){
+ var matched = [], cur = elem[dir];
+ while ( cur && cur != document ) {
+ if ( cur.nodeType == 1 )
+ matched.push( cur );
+ cur = cur[dir];
+ }
+ return matched;
+};
+
+jQuery.nth = function(cur, result, dir, elem){
+ result = result || 1;
+ var num = 0;
+
+ for ( ; cur; cur = cur[dir] )
+ if ( cur.nodeType == 1 && ++num == result )
+ break;
+
+ return cur;
+};
+
+jQuery.sibling = function(n, elem){
+ var r = [];
+
+ for ( ; n; n = n.nextSibling ) {
+ if ( n.nodeType == 1 && n != elem )
+ r.push( n );
+ }
+
+ return r;
+};
+
+return;
+
+window.Sizzle = Sizzle;
+
+})();
+/*
+ * A number of helper functions used for managing events.
+ * Many of the ideas behind this code originated from
+ * Dean Edwards' addEvent library.
+ */
+jQuery.event = {
+
+ // Bind an event to an element
+ // Original by Dean Edwards
+ add: function(elem, types, handler, data) {
+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
+ return;
+
+ // For whatever reason, IE has trouble passing the window object
+ // around, causing it to be cloned in the process
+ if ( elem.setInterval && elem != window )
+ elem = window;
+
+ // Make sure that the function being executed has a unique ID
+ if ( !handler.guid )
+ handler.guid = this.guid++;
+
+ // if data is passed, bind to handler
+ if ( data !== undefined ) {
+ // Create temporary function pointer to original handler
+ var fn = handler;
+
+ // Create unique handler function, wrapped around original handler
+ handler = this.proxy( fn );
+
+ // Store data in unique handler
+ handler.data = data;
+ }
+
+ // Init the element's event structure
+ var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
+ handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
+ // Handle the second event of a trigger and when
+ // an event is called after a page has unloaded
+ return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
+ jQuery.event.handle.apply(arguments.callee.elem, arguments) :
+ undefined;
+ });
+ // Add elem as a property of the handle function
+ // This is to prevent a memory leak with non-native
+ // event in IE.
+ handle.elem = elem;
+
+ // Handle multiple events separated by a space
+ // jQuery(...).bind("mouseover mouseout", fn);
+ jQuery.each(types.split(/\s+/), function(index, type) {
+ // Namespaced event handlers
+ var namespaces = type.split(".");
+ type = namespaces.shift();
+ handler.type = namespaces.slice().sort().join(".");
+
+ // Get the current list of functions bound to this event
+ var handlers = events[type];
+
+ if ( jQuery.event.specialAll[type] )
+ jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
+
+ // Init the event handler queue
+ if (!handlers) {
+ handlers = events[type] = {};
+
+ // Check for a special event handler
+ // Only use addEventListener/attachEvent if the special
+ // events handler returns false
+ if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
+ // Bind the global event handler to the element
+ if (elem.addEventListener)
+ elem.addEventListener(type, handle, false);
+ else if (elem.attachEvent)
+ elem.attachEvent("on" + type, handle);
+ }
+ }
+
+ // Add the function to the element's handler list
+ handlers[handler.guid] = handler;
+
+ // Keep track of which events have been used, for global triggering
+ jQuery.event.global[type] = true;
+ });
+
+ // Nullify elem to prevent memory leaks in IE
+ elem = null;
+ },
+
+ guid: 1,
+ global: {},
+
+ // Detach an event or set of events from an element
+ remove: function(elem, types, handler) {
+ // don't do events on text and comment nodes
+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
+ return;
+
+ var events = jQuery.data(elem, "events"), ret, index;
+
+ if ( events ) {
+ // Unbind all events for the element
+ if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
+ for ( var type in events )
+ this.remove( elem, type + (types || "") );
+ else {
+ // types is actually an event object here
+ if ( types.type ) {
+ handler = types.handler;
+ types = types.type;
+ }
+
+ // Handle multiple events seperated by a space
+ // jQuery(...).unbind("mouseover mouseout", fn);
+ jQuery.each(types.split(/\s+/), function(index, type){
+ // Namespaced event handlers
+ var namespaces = type.split(".");
+ type = namespaces.shift();
+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
+
+ if ( events[type] ) {
+ // remove the given handler for the given type
+ if ( handler )
+ delete events[type][handler.guid];
+
+ // remove all handlers for the given type
+ else
+ for ( var handle in events[type] )
+ // Handle the removal of namespaced events
+ if ( namespace.test(events[type][handle].type) )
+ delete events[type][handle];
+
+ if ( jQuery.event.specialAll[type] )
+ jQuery.event.specialAll[type].teardown.call(elem, namespaces);
+
+ // remove generic event handler if no more handlers exist
+ for ( ret in events[type] ) break;
+ if ( !ret ) {
+ if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
+ if (elem.removeEventListener)
+ elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
+ else if (elem.detachEvent)
+ elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
+ }
+ ret = null;
+ delete events[type];
+ }
+ }
+ });
+ }
+
+ // Remove the expando if it's no longer used
+ for ( ret in events ) break;
+ if ( !ret ) {
+ var handle = jQuery.data( elem, "handle" );
+ if ( handle ) handle.elem = null;
+ jQuery.removeData( elem, "events" );
+ jQuery.removeData( elem, "handle" );
+ }
+ }
+ },
+
+ // bubbling is internal
+ trigger: function( event, data, elem, bubbling ) {
+ // Event object or event type
+ var type = event.type || event;
+
+ if( !bubbling ){
+ event = typeof event === "object" ?
+ // jQuery.Event object
+ event[expando] ? event :
+ // Object literal
+ jQuery.extend( jQuery.Event(type), event ) :
+ // Just the event type (string)
+ jQuery.Event(type);
+
+ if ( type.indexOf("!") >= 0 ) {
+ event.type = type = type.slice(0, -1);
+ event.exclusive = true;
+ }
+
+ // Handle a global trigger
+ if ( !elem ) {
+ // Don't bubble custom events when global (to avoid too much overhead)
+ event.stopPropagation();
+ // Only trigger if we've ever bound an event for it
+ if ( this.global[type] )
+ jQuery.each( jQuery.cache, function(){
+ if ( this.events && this.events[type] )
+ jQuery.event.trigger( event, data, this.handle.elem );
+ });
+ }
+
+ // Handle triggering a single element
+
+ // don't do events on text and comment nodes
+ if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
+ return undefined;
+
+ // Clean up in case it is reused
+ event.result = undefined;
+ event.target = elem;
+
+ // Clone the incoming data, if any
+ data = jQuery.makeArray(data);
+ data.unshift( event );
+ }
+
+ event.currentTarget = elem;
+
+ // Trigger the event, it is assumed that "handle" is a function
+ var handle = jQuery.data(elem, "handle");
+ if ( handle )
+ handle.apply( elem, data );
+
+ // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
+ if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
+ event.result = false;
+
+ // Trigger the native events (except for clicks on links)
+ if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
+ this.triggered = true;
+ try {
+ elem[ type ]();
+ // prevent IE from throwing an error for some hidden elements
+ } catch (e) {}
+ }
+
+ this.triggered = false;
+
+ if ( !event.isPropagationStopped() ) {
+ var parent = elem.parentNode || elem.ownerDocument;
+ if ( parent )
+ jQuery.event.trigger(event, data, parent, true);
+ }
+ },
+
+ handle: function(event) {
+ // returned undefined or false
+ var all, handlers;
+
+ event = arguments[0] = jQuery.event.fix( event || window.event );
+ event.currentTarget = this;
+
+ // Namespaced event handlers
+ var namespaces = event.type.split(".");
+ event.type = namespaces.shift();
+
+ // Cache this now, all = true means, any handler
+ all = !namespaces.length && !event.exclusive;
+
+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
+
+ handlers = ( jQuery.data(this, "events") || {} )[event.type];
+
+ for ( var j in handlers ) {
+ var handler = handlers[j];
+
+ // Filter the functions by class
+ if ( all || namespace.test(handler.type) ) {
+ // Pass in a reference to the handler function itself
+ // So that we can later remove it
+ event.handler = handler;
+ event.data = handler.data;
+
+ var ret = handler.apply(this, arguments);
+
+ if( ret !== undefined ){
+ event.result = ret;
+ if ( ret === false ) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ }
+
+ if( event.isImmediatePropagationStopped() )
+ break;
+
+ }
+ }
+ },
+
+ props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+
+ fix: function(event) {
+ if ( event[expando] )
+ return event;
+
+ // store a copy of the original event object
+ // and "clone" to set read-only properties
+ var originalEvent = event;
+ event = jQuery.Event( originalEvent );
+
+ for ( var i = this.props.length, prop; i; ){
+ prop = this.props[ --i ];
+ event[ prop ] = originalEvent[ prop ];
+ }
+
+ // Fix target property, if necessary
+ if ( !event.target )
+ event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
+
+ // check if target is a textnode (safari)
+ if ( event.target.nodeType == 3 )
+ event.target = event.target.parentNode;
+
+ // Add relatedTarget, if necessary
+ if ( !event.relatedTarget && event.fromElement )
+ event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
+
+ // Calculate pageX/Y if missing and clientX/Y available
+ if ( event.pageX == null && event.clientX != null ) {
+ var doc = document.documentElement, body = document.body;
+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
+ }
+
+ // Add which for key events
+ if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
+ event.which = event.charCode || event.keyCode;
+
+ // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
+ if ( !event.metaKey && event.ctrlKey )
+ event.metaKey = event.ctrlKey;
+
+ // Add which for click: 1 == left; 2 == middle; 3 == right
+ // Note: button is not normalized, so don't use it
+ if ( !event.which && event.button )
+ event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
+
+ return event;
+ },
+
+ proxy: function( fn, proxy ){
+ proxy = proxy || function(){ return fn.apply(this, arguments); };
+ // Set the guid of unique handler to the same of original handler, so it can be removed
+ proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
+ // So proxy can be declared as an argument
+ return proxy;
+ },
+
+ special: {
+ ready: {
+ // Make sure the ready event is setup
+ setup: bindReady,
+ teardown: function() {}
+ }
+ },
+
+ specialAll: {
+ live: {
+ setup: function( selector, namespaces ){
+ jQuery.event.add( this, namespaces[0], liveHandler );
+ },
+ teardown: function( namespaces ){
+ if ( namespaces.length ) {
+ var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
+
+ jQuery.each( (jQuery.data(this, "events").live || {}), function(){
+ if ( name.test(this.type) )
+ remove++;
+ });
+
+ if ( remove < 1 )
+ jQuery.event.remove( this, namespaces[0], liveHandler );
+ }
+ }
+ }
+ }
+};
+
+jQuery.Event = function( src ){
+ // Allow instantiation without the 'new' keyword
+ if( !this.preventDefault )
+ return new jQuery.Event(src);
+
+ // Event object
+ if( src && src.type ){
+ this.originalEvent = src;
+ this.type = src.type;
+ // Event type
+ }else
+ this.type = src;
+
+ // timeStamp is buggy for some events on Firefox(#3843)
+ // So we won't rely on the native value
+ this.timeStamp = now();
+
+ // Mark it as fixed
+ this[expando] = true;
+};
+
+function returnFalse(){
+ return false;
+}
+function returnTrue(){
+ return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+ preventDefault: function() {
+ this.isDefaultPrevented = returnTrue;
+
+ var e = this.originalEvent;
+ if( !e )
+ return;
+ // if preventDefault exists run it on the original event
+ if (e.preventDefault)
+ e.preventDefault();
+ // otherwise set the returnValue property of the original event to false (IE)
+ e.returnValue = false;
+ },
+ stopPropagation: function() {
+ this.isPropagationStopped = returnTrue;
+
+ var e = this.originalEvent;
+ if( !e )
+ return;
+ // if stopPropagation exists run it on the original event
+ if (e.stopPropagation)
+ e.stopPropagation();
+ // otherwise set the cancelBubble property of the original event to true (IE)
+ e.cancelBubble = true;
+ },
+ stopImmediatePropagation:function(){
+ this.isImmediatePropagationStopped = returnTrue;
+ this.stopPropagation();
+ },
+ isDefaultPrevented: returnFalse,
+ isPropagationStopped: returnFalse,
+ isImmediatePropagationStopped: returnFalse
+};
+// Checks if an event happened on an element within another element
+// Used in jQuery.event.special.mouseenter and mouseleave handlers
+var withinElement = function(event) {
+ // Check if mouse(over|out) are still within the same parent element
+ var parent = event.relatedTarget;
+ // Traverse up the tree
+ while ( parent && parent != this )
+ try { parent = parent.parentNode; }
+ catch(e) { parent = this; }
+
+ if( parent != this ){
+ // set the correct event type
+ event.type = event.data;
+ // handle event if we actually just moused on to a non sub-element
+ jQuery.event.handle.apply( this, arguments );
+ }
+};
+
+jQuery.each({
+ mouseover: 'mouseenter',
+ mouseout: 'mouseleave'
+}, function( orig, fix ){
+ jQuery.event.special[ fix ] = {
+ setup: function(){
+ jQuery.event.add( this, orig, withinElement, fix );
+ },
+ teardown: function(){
+ jQuery.event.remove( this, orig, withinElement );
+ }
+ };
+});
+
+jQuery.fn.extend({
+ bind: function( type, data, fn ) {
+ return type == "unload" ? this.one(type, data, fn) : this.each(function(){
+ jQuery.event.add( this, type, fn || data, fn && data );
+ });
+ },
+
+ one: function( type, data, fn ) {
+ var one = jQuery.event.proxy( fn || data, function(event) {
+ jQuery(this).unbind(event, one);
+ return (fn || data).apply( this, arguments );
+ });
+ return this.each(function(){
+ jQuery.event.add( this, type, one, fn && data);
+ });
+ },
+
+ unbind: function( type, fn ) {
+ return this.each(function(){
+ jQuery.event.remove( this, type, fn );
+ });
+ },
+
+ trigger: function( type, data ) {
+ return this.each(function(){
+ jQuery.event.trigger( type, data, this );
+ });
+ },
+
+ triggerHandler: function( type, data ) {
+ if( this[0] ){
+ var event = jQuery.Event(type);
+ event.preventDefault();
+ event.stopPropagation();
+ jQuery.event.trigger( event, data, this[0] );
+ return event.result;
+ }
+ },
+
+ toggle: function( fn ) {
+ // Save reference to arguments for access in closure
+ var args = arguments, i = 1;
+
+ // link all the functions, so any of them can unbind this click handler
+ while( i < args.length )
+ jQuery.event.proxy( fn, args[i++] );
+
+ return this.click( jQuery.event.proxy( fn, function(event) {
+ // Figure out which function to execute
+ this.lastToggle = ( this.lastToggle || 0 ) % i;
+
+ // Make sure that clicks stop
+ event.preventDefault();
+
+ // and execute the function
+ return args[ this.lastToggle++ ].apply( this, arguments ) || false;
+ }));
+ },
+
+ hover: function(fnOver, fnOut) {
+ return this.mouseenter(fnOver).mouseleave(fnOut);
+ },
+
+ ready: function(fn) {
+ // Attach the listeners
+ bindReady();
+
+ // If the DOM is already ready
+ if ( jQuery.isReady )
+ // Execute the function immediately
+ fn.call( document, jQuery );
+
+ // Otherwise, remember the function for later
+ else
+ // Add the function to the wait list
+ jQuery.readyList.push( fn );
+
+ return this;
+ },
+
+ live: function( type, fn ){
+ var proxy = jQuery.event.proxy( fn );
+ proxy.guid += this.selector + type;
+
+ jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
+
+ return this;
+ },
+
+ die: function( type, fn ){
+ jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
+ return this;
+ }
+});
+
+function liveHandler( event ){
+ var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
+ stop = true,
+ elems = [];
+
+ jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
+ if ( check.test(fn.type) ) {
+ var elem = jQuery(event.target).closest(fn.data)[0];
+ if ( elem )
+ elems.push({ elem: elem, fn: fn });
+ }
+ });
+
+ elems.sort(function(a,b) {
+ return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
+ });
+
+ jQuery.each(elems, function(){
+ if ( this.fn.call(this.elem, event, this.fn.data) === false )
+ return (stop = false);
+ });
+
+ return stop;
+}
+
+function liveConvert(type, selector){
+ return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
+}
+
+jQuery.extend({
+ isReady: false,
+ readyList: [],
+ // Handle when the DOM is ready
+ ready: function() {
+ // Make sure that the DOM is not already loaded
+ if ( !jQuery.isReady ) {
+ // Remember that the DOM is ready
+ jQuery.isReady = true;
+
+ // If there are functions bound, to execute
+ if ( jQuery.readyList ) {
+ // Execute all of them
+ jQuery.each( jQuery.readyList, function(){
+ this.call( document, jQuery );
+ });
+
+ // Reset the list of functions
+ jQuery.readyList = null;
+ }
+
+ // Trigger any bound ready events
+ jQuery(document).triggerHandler("ready");
+ }
+ }
+});
+
+var readyBound = false;
+
+function bindReady(){
+ if ( readyBound ) return;
+ readyBound = true;
+
+ // Mozilla, Opera and webkit nightlies currently support this event
+ if ( document.addEventListener ) {
+ // Use the handy event callback
+ document.addEventListener( "DOMContentLoaded", function(){
+ document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
+ jQuery.ready();
+ }, false );
+
+ // If IE event model is used
+ } else if ( document.attachEvent ) {
+ // ensure firing before onload,
+ // maybe late but safe also for iframes
+ document.attachEvent("onreadystatechange", function(){
+ if ( document.readyState === "complete" ) {
+ document.detachEvent( "onreadystatechange", arguments.callee );
+ jQuery.ready();
+ }
+ });
+
+ // If IE and not an iframe
+ // continually check to see if the document is ready
+ if ( document.documentElement.doScroll && window == window.top ) (function(){
+ if ( jQuery.isReady ) return;
+
+ try {
+ // If IE is used, use the trick by Diego Perini
+ // http://javascript.nwbox.com/IEContentLoaded/
+ document.documentElement.doScroll("left");
+ } catch( error ) {
+ setTimeout( arguments.callee, 0 );
+ return;
+ }
+
+ // and execute any waiting functions
+ jQuery.ready();
+ })();
+ }
+
+ // A fallback to window.onload, that will always work
+ jQuery.event.add( window, "load", jQuery.ready );
+}
+
+jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
+ "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
+ "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
+
+ // Handle event binding
+ jQuery.fn[name] = function(fn){
+ return fn ? this.bind(name, fn) : this.trigger(name);
+ };
+});
+
+// Prevent memory leaks in IE
+// And prevent errors on refresh with events like mouseover in other browsers
+// Window isn't included so as not to unbind existing unload events
+jQuery( window ).bind( 'unload', function(){
+ for ( var id in jQuery.cache )
+ // Skip the window
+ if ( id != 1 && jQuery.cache[ id ].handle )
+ jQuery.event.remove( jQuery.cache[ id ].handle.elem );
+});
+(function(){
+
+ jQuery.support = {};
+
+ var root = document.documentElement,
+ script = document.createElement("script"),
+ div = document.createElement("div"),
+ id = "script" + (new Date).getTime();
+
+ div.style.display = "none";
+ div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
+
+ var all = div.getElementsByTagName("*"),
+ a = div.getElementsByTagName("a")[0];
+
+ // Can't get basic test support
+ if ( !all || !all.length || !a ) {
+ return;
+ }
+
+ jQuery.support = {
+ // IE strips leading whitespace when .innerHTML is used
+ leadingWhitespace: div.firstChild.nodeType == 3,
+
+ // Make sure that tbody elements aren't automatically inserted
+ // IE will insert them into empty tables
+ tbody: !div.getElementsByTagName("tbody").length,
+
+ // Make sure that you can get all elements in an <object> element
+ // IE 7 always returns no results
+ objectAll: !!div.getElementsByTagName("object")[0]
+ .getElementsByTagName("*").length,
+
+ // Make sure that link elements get serialized correctly by innerHTML
+ // This requires a wrapper element in IE
+ htmlSerialize: !!div.getElementsByTagName("link").length,
+
+ // Get the style information from getAttribute
+ // (IE uses .cssText insted)
+ style: /red/.test( a.getAttribute("style") ),
+
+ // Make sure that URLs aren't manipulated
+ // (IE normalizes it by default)
+ hrefNormalized: a.getAttribute("href") === "/a",
+
+ // Make sure that element opacity exists
+ // (IE uses filter instead)
+ opacity: a.style.opacity === "0.5",
+
+ // Verify style float existence
+ // (IE uses styleFloat instead of cssFloat)
+ cssFloat: !!a.style.cssFloat,
+
+ // Will be defined later
+ scriptEval: false,
+ noCloneEvent: true,
+ boxModel: null
+ };
+
+ script.type = "text/javascript";
+ try {
+ script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
+ } catch(e){}
+
+ root.insertBefore( script, root.firstChild );
+
+ // Make sure that the execution of code works by injecting a script
+ // tag with appendChild/createTextNode
+ // (IE doesn't support this, fails, and uses .text instead)
+ if ( window[ id ] ) {
+ jQuery.support.scriptEval = true;
+ delete window[ id ];
+ }
+
+ root.removeChild( script );
+
+ if ( div.attachEvent && div.fireEvent ) {
+ div.attachEvent("onclick", function(){
+ // Cloning a node shouldn't copy over any
+ // bound event handlers (IE does this)
+ jQuery.support.noCloneEvent = false;
+ div.detachEvent("onclick", arguments.callee);
+ });
+ div.cloneNode(true).fireEvent("onclick");
+ }
+
+ // Figure out if the W3C box model works as expected
+ // document.body must exist before we can do this
+ jQuery(function(){
+ var div = document.createElement("div");
+ div.style.width = div.style.paddingLeft = "1px";
+
+ document.body.appendChild( div );
+ jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
+ document.body.removeChild( div ).style.display = 'none';
+ });
+})();
+
+var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
+
+jQuery.props = {
+ "for": "htmlFor",
+ "class": "className",
+ "float": styleFloat,
+ cssFloat: styleFloat,
+ styleFloat: styleFloat,
+ readonly: "readOnly",
+ maxlength: "maxLength",
+ cellspacing: "cellSpacing",
+ rowspan: "rowSpan",
+ tabindex: "tabIndex"
+};
+jQuery.fn.extend({
+ // Keep a copy of the old load
+ _load: jQuery.fn.load,
+
+ load: function( url, params, callback ) {
+ if ( typeof url !== "string" )
+ return this._load( url );
+
+ var off = url.indexOf(" ");
+ if ( off >= 0 ) {
+ var selector = url.slice(off, url.length);
+ url = url.slice(0, off);
+ }
+
+ // Default to a GET request
+ var type = "GET";
+
+ // If the second parameter was provided
+ if ( params )
+ // If it's a function
+ if ( jQuery.isFunction( params ) ) {
+ // We assume that it's the callback
+ callback = params;
+ params = null;
+
+ // Otherwise, build a param string
+ } else if( typeof params === "object" ) {
+ params = jQuery.param( params );
+ type = "POST";
+ }
+
+ var self = this;
+
+ // Request the remote document
+ jQuery.ajax({
+ url: url,
+ type: type,
+ dataType: "html",
+ data: params,
+ complete: function(res, status){
+ // If successful, inject the HTML into all the matched elements
+ if ( status == "success" || status == "notmodified" )
+ // See if a selector was specified
+ self.html( selector ?
+ // Create a dummy div to hold the results
+ jQuery("<div/>")
+ // inject the contents of the document in, removing the scripts
+ // to avoid any 'Permission Denied' errors in IE
+ .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
+
+ // Locate the specified elements
+ .find(selector) :
+
+ // If not, just inject the full result
+ res.responseText );
+
+ if( callback )
+ self.each( callback, [res.responseText, status, res] );
+ }
+ });
+ return this;
+ },
+
+ serialize: function() {
+ return jQuery.param(this.serializeArray());
+ },
+ serializeArray: function() {
+ return this.map(function(){
+ return this.elements ? jQuery.makeArray(this.elements) : this;
+ })
+ .filter(function(){
+ return this.name && !this.disabled &&
+ (this.checked || /select|textarea/i.test(this.nodeName) ||
+ /text|hidden|password|search/i.test(this.type));
+ })
+ .map(function(i, elem){
+ var val = jQuery(this).val();
+ return val == null ? null :
+ jQuery.isArray(val) ?
+ jQuery.map( val, function(val, i){
+ return {name: elem.name, value: val};
+ }) :
+ {name: elem.name, value: val};
+ }).get();
+ }
+});
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
+ jQuery.fn[o] = function(f){
+ return this.bind(o, f);
+ };
+});
+
+var jsc = now();
+
+jQuery.extend({
+
+ get: function( url, data, callback, type ) {
+ // shift arguments if data argument was ommited
+ if ( jQuery.isFunction( data ) ) {
+ callback = data;
+ data = null;
+ }
+
+ return jQuery.ajax({
+ type: "GET",
+ url: url,
+ data: data,
+ success: callback,
+ dataType: type
+ });
+ },
+
+ getScript: function( url, callback ) {
+ return jQuery.get(url, null, callback, "script");
+ },
+
+ getJSON: function( url, data, callback ) {
+ return jQuery.get(url, data, callback, "json");
+ },
+
+ post: function( url, data, callback, type ) {
+ if ( jQuery.isFunction( data ) ) {
+ callback = data;
+ data = {};
+ }
+
+ return jQuery.ajax({
+ type: "POST",
+ url: url,
+ data: data,
+ success: callback,
+ dataType: type
+ });
+ },
+
+ ajaxSetup: function( settings ) {
+ jQuery.extend( jQuery.ajaxSettings, settings );
+ },
+
+ ajaxSettings: {
+ url: location.href,
+ global: true,
+ type: "GET",
+ contentType: "application/x-www-form-urlencoded",
+ processData: true,
+ async: true,
+ /*
+ timeout: 0,
+ data: null,
+ username: null,
+ password: null,
+ */
+ // Create the request object; Microsoft failed to properly
+ // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
+ // This function can be overriden by calling jQuery.ajaxSetup
+ xhr:function(){
+ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
+ },
+ accepts: {
+ xml: "application/xml, text/xml",
+ html: "text/html",
+ script: "text/javascript, application/javascript",
+ json: "application/json, text/javascript",
+ text: "text/plain",
+ _default: "*/*"
+ }
+ },
+
+ // Last-Modified header cache for next request
+ lastModified: {},
+
+ ajax: function( s ) {
+ // Extend the settings, but re-extend 's' so that it can be
+ // checked again later (in the test suite, specifically)
+ s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
+
+ var jsonp, jsre = /=\?(&|$)/g, status, data,
+ type = s.type.toUpperCase();
+
+ // convert data if not already a string
+ if ( s.data && s.processData && typeof s.data !== "string" )
+ s.data = jQuery.param(s.data);
+
+ // Handle JSONP Parameter Callbacks
+ if ( s.dataType == "jsonp" ) {
+ if ( type == "GET" ) {
+ if ( !s.url.match(jsre) )
+ s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
+ } else if ( !s.data || !s.data.match(jsre) )
+ s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
+ s.dataType = "json";
+ }
+
+ // Build temporary JSONP function
+ if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
+ jsonp = "jsonp" + jsc++;
+
+ // Replace the =? sequence both in the query string and the data
+ if ( s.data )
+ s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
+ s.url = s.url.replace(jsre, "=" + jsonp + "$1");
+
+ // We need to make sure
+ // that a JSONP style response is executed properly
+ s.dataType = "script";
+
+ // Handle JSONP-style loading
+ window[ jsonp ] = function(tmp){
+ data = tmp;
+ success();
+ complete();
+ // Garbage collect
+ window[ jsonp ] = undefined;
+ try{ delete window[ jsonp ]; } catch(e){}
+ if ( head )
+ head.removeChild( script );
+ };
+ }
+
+ if ( s.dataType == "script" && s.cache == null )
+ s.cache = false;
+
+ if ( s.cache === false && type == "GET" ) {
+ var ts = now();
+ // try replacing _= if it is there
+ var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
+ // if nothing was replaced, add timestamp to the end
+ s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
+ }
+
+ // If data is available, append data to url for get requests
+ if ( s.data && type == "GET" ) {
+ s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
+
+ // IE likes to send both get and post data, prevent this
+ s.data = null;
+ }
+
+ // Watch for a new set of requests
+ if ( s.global && ! jQuery.active++ )
+ jQuery.event.trigger( "ajaxStart" );
+
+ // Matches an absolute URL, and saves the domain
+ var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
+
+ // If we're requesting a remote document
+ // and trying to load JSON or Script with a GET
+ if ( s.dataType == "script" && type == "GET" && parts
+ && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
+
+ var head = document.getElementsByTagName("head")[0];
+ var script = document.createElement("script");
+ script.src = s.url;
+ if (s.scriptCharset)
+ script.charset = s.scriptCharset;
+
+ // Handle Script loading
+ if ( !jsonp ) {
+ var done = false;
+
+ // Attach handlers for all browsers
+ script.onload = script.onreadystatechange = function(){
+ if ( !done && (!this.readyState ||
+ this.readyState == "loaded" || this.readyState == "complete") ) {
+ done = true;
+ success();
+ complete();
+
+ // Handle memory leak in IE
+ script.onload = script.onreadystatechange = null;
+ head.removeChild( script );
+ }
+ };
+ }
+
+ head.appendChild(script);
+
+ // We handle everything using the script element injection
+ return undefined;
+ }
+
+ var requestDone = false;
+
+ // Create the request object
+ var xhr = s.xhr();
+
+ // Open the socket
+ // Passing null username, generates a login popup on Opera (#2865)
+ if( s.username )
+ xhr.open(type, s.url, s.async, s.username, s.password);
+ else
+ xhr.open(type, s.url, s.async);
+
+ // Need an extra try/catch for cross domain requests in Firefox 3
+ try {
+ // Set the correct header, if data is being sent
+ if ( s.data )
+ xhr.setRequestHeader("Content-Type", s.contentType);
+
+ // Set the If-Modified-Since header, if ifModified mode.
+ if ( s.ifModified )
+ xhr.setRequestHeader("If-Modified-Since",
+ jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
+
+ // Set header so the called script knows that it's an XMLHttpRequest
+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
+
+ // Set the Accepts header for the server, depending on the dataType
+ xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
+ s.accepts[ s.dataType ] + ", */*" :
+ s.accepts._default );
+ } catch(e){}
+
+ // Allow custom headers/mimetypes and early abort
+ if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
+ // Handle the global AJAX counter
+ if ( s.global && ! --jQuery.active )
+ jQuery.event.trigger( "ajaxStop" );
+ // close opended socket
+ xhr.abort();
+ return false;
+ }
+
+ if ( s.global )
+ jQuery.event.trigger("ajaxSend", [xhr, s]);
+
+ // Wait for a response to come back
+ var onreadystatechange = function(isTimeout){
+ // The request was aborted, clear the interval and decrement jQuery.active
+ if (xhr.readyState == 0) {
+ if (ival) {
+ // clear poll interval
+ clearInterval(ival);
+ ival = null;
+ // Handle the global AJAX counter
+ if ( s.global && ! --jQuery.active )
+ jQuery.event.trigger( "ajaxStop" );
+ }
+ // The transfer is complete and the data is available, or the request timed out
+ } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
+ requestDone = true;
+
+ // clear poll interval
+ if (ival) {
+ clearInterval(ival);
+ ival = null;
+ }
+
+ status = isTimeout == "timeout" ? "timeout" :
+ !jQuery.httpSuccess( xhr ) ? "error" :
+ s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
+ "success";
+
+ if ( status == "success" ) {
+ // Watch for, and catch, XML document parse errors
+ try {
+ // process the data (runs the xml through httpData regardless of callback)
+ data = jQuery.httpData( xhr, s.dataType, s );
+ } catch(e) {
+ status = "parsererror";
+ }
+ }
+
+ // Make sure that the request was successful or notmodified
+ if ( status == "success" ) {
+ // Cache Last-Modified header, if ifModified mode.
+ var modRes;
+ try {
+ modRes = xhr.getResponseHeader("Last-Modified");
+ } catch(e) {} // swallow exception thrown by FF if header is not available
+
+ if ( s.ifModified && modRes )
+ jQuery.lastModified[s.url] = modRes;
+
+ // JSONP handles its own success callback
+ if ( !jsonp )
+ success();
+ } else
+ jQuery.handleError(s, xhr, status);
+
+ // Fire the complete handlers
+ complete();
+
+ if ( isTimeout )
+ xhr.abort();
+
+ // Stop memory leaks
+ if ( s.async )
+ xhr = null;
+ }
+ };
+
+ if ( s.async ) {
+ // don't attach the handler to the request, just poll it instead
+ var ival = setInterval(onreadystatechange, 13);
+
+ // Timeout checker
+ if ( s.timeout > 0 )
+ setTimeout(function(){
+ // Check to see if the request is still happening
+ if ( xhr && !requestDone )
+ onreadystatechange( "timeout" );
+ }, s.timeout);
+ }
+
+ // Send the data
+ try {
+ xhr.send(s.data);
+ } catch(e) {
+ jQuery.handleError(s, xhr, null, e);
+ }
+
+ // firefox 1.5 doesn't fire statechange for sync requests
+ if ( !s.async )
+ onreadystatechange();
+
+ function success(){
+ // If a local callback was specified, fire it and pass it the data
+ if ( s.success )
+ s.success( data, status );
+
+ // Fire the global callback
+ if ( s.global )
+ jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
+ }
+
+ function complete(){
+ // Process result
+ if ( s.complete )
+ s.complete(xhr, status);
+
+ // The request was completed
+ if ( s.global )
+ jQuery.event.trigger( "ajaxComplete", [xhr, s] );
+
+ // Handle the global AJAX counter
+ if ( s.global && ! --jQuery.active )
+ jQuery.event.trigger( "ajaxStop" );
+ }
+
+ // return XMLHttpRequest to allow aborting the request etc.
+ return xhr;
+ },
+
+ handleError: function( s, xhr, status, e ) {
+ // If a local callback was specified, fire it
+ if ( s.error ) s.error( xhr, status, e );
+
+ // Fire the global callback
+ if ( s.global )
+ jQuery.event.trigger( "ajaxError", [xhr, s, e] );
+ },
+
+ // Counter for holding the number of active queries
+ active: 0,
+
+ // Determines if an XMLHttpRequest was successful or not
+ httpSuccess: function( xhr ) {
+ try {
+ // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
+ return !xhr.status && location.protocol == "file:" ||
+ ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
+ } catch(e){}
+ return false;
+ },
+
+ // Determines if an XMLHttpRequest returns NotModified
+ httpNotModified: function( xhr, url ) {
+ try {
+ var xhrRes = xhr.getResponseHeader("Last-Modified");
+
+ // Firefox always returns 200. check Last-Modified date
+ return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
+ } catch(e){}
+ return false;
+ },
+
+ httpData: function( xhr, type, s ) {
+ var ct = xhr.getResponseHeader("content-type"),
+ xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
+ data = xml ? xhr.responseXML : xhr.responseText;
+
+ if ( xml && data.documentElement.tagName == "parsererror" )
+ throw "parsererror";
+
+ // Allow a pre-filtering function to sanitize the response
+ // s != null is checked to keep backwards compatibility
+ if( s && s.dataFilter )
+ data = s.dataFilter( data, type );
+
+ // The filter can actually parse the response
+ if( typeof data === "string" ){
+
+ // If the type is "script", eval it in global context
+ if ( type == "script" )
+ jQuery.globalEval( data );
+
+ // Get the JavaScript object, if JSON is used.
+ if ( type == "json" )
+ data = window["eval"]("(" + data + ")");
+ }
+
+ return data;
+ },
+
+ // Serialize an array of form elements or a set of
+ // key/values into a query string
+ param: function( a ) {
+ var s = [ ];
+
+ function add( key, value ){
+ s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
+ };
+
+ // If an array was passed in, assume that it is an array
+ // of form elements
+ if ( jQuery.isArray(a) || a.jquery )
+ // Serialize the form elements
+ jQuery.each( a, function(){
+ add( this.name, this.value );
+ });
+
+ // Otherwise, assume that it's an object of key/value pairs
+ else
+ // Serialize the key/values
+ for ( var j in a )
+ // If the value is an array then the key names need to be repeated
+ if ( jQuery.isArray(a[j]) )
+ jQuery.each( a[j], function(){
+ add( j, this );
+ });
+ else
+ add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
+
+ // Return the resulting serialization
+ return s.join("&").replace(/%20/g, "+");
+ }
+
+});
+var elemdisplay = {},
+ timerId,
+ fxAttrs = [
+ // height animations
+ [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
+ // width animations
+ [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
+ // opacity animations
+ [ "opacity" ]
+ ];
+
+function genFx( type, num ){
+ var obj = {};
+ jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
+ obj[ this ] = type;
+ });
+ return obj;
+}
+
+jQuery.fn.extend({
+ show: function(speed,callback){
+ if ( speed ) {
+ return this.animate( genFx("show", 3), speed, callback);
+ } else {
+ for ( var i = 0, l = this.length; i < l; i++ ){
+ var old = jQuery.data(this[i], "olddisplay");
+
+ this[i].style.display = old || "";
+
+ if ( jQuery.css(this[i], "display") === "none" ) {
+ var tagName = this[i].tagName, display;
+
+ if ( elemdisplay[ tagName ] ) {
+ display = elemdisplay[ tagName ];
+ } else {
+ var elem = jQuery("<" + tagName + " />").appendTo("body");
+
+ display = elem.css("display");
+ if ( display === "none" )
+ display = "block";
+
+ elem.remove();
+
+ elemdisplay[ tagName ] = display;
+ }
+
+ jQuery.data(this[i], "olddisplay", display);
+ }
+ }
+
+ // Set the display of the elements in a second loop
+ // to avoid the constant reflow
+ for ( var i = 0, l = this.length; i < l; i++ ){
+ this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
+ }
+
+ return this;
+ }
+ },
+
+ hide: function(speed,callback){
+ if ( speed ) {
+ return this.animate( genFx("hide", 3), speed, callback);
+ } else {
+ for ( var i = 0, l = this.length; i < l; i++ ){
+ var old = jQuery.data(this[i], "olddisplay");
+ if ( !old && old !== "none" )
+ jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
+ }
+
+ // Set the display of the elements in a second loop
+ // to avoid the constant reflow
+ for ( var i = 0, l = this.length; i < l; i++ ){
+ this[i].style.display = "none";
+ }
+
+ return this;
+ }
+ },
+
+ // Save the old toggle function
+ _toggle: jQuery.fn.toggle,
+
+ toggle: function( fn, fn2 ){
+ var bool = typeof fn === "boolean";
+
+ return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
+ this._toggle.apply( this, arguments ) :
+ fn == null || bool ?
+ this.each(function(){
+ var state = bool ? fn : jQuery(this).is(":hidden");
+ jQuery(this)[ state ? "show" : "hide" ]();
+ }) :
+ this.animate(genFx("toggle", 3), fn, fn2);
+ },
+
+ fadeTo: function(speed,to,callback){
+ return this.animate({opacity: to}, speed, callback);
+ },
+
+ animate: function( prop, speed, easing, callback ) {
+ var optall = jQuery.speed(speed, easing, callback);
+
+ return this[ optall.queue === false ? "each" : "queue" ](function(){
+
+ var opt = jQuery.extend({}, optall), p,
+ hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
+ self = this;
+
+ for ( p in prop ) {
+ if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
+ return opt.complete.call(this);
+
+ if ( ( p == "height" || p == "width" ) && this.style ) {
+ // Store display property
+ opt.display = jQuery.css(this, "display");
+
+ // Make sure that nothing sneaks out
+ opt.overflow = this.style.overflow;
+ }
+ }
+
+ if ( opt.overflow != null )
+ this.style.overflow = "hidden";
+
+ opt.curAnim = jQuery.extend({}, prop);
+
+ jQuery.each( prop, function(name, val){
+ var e = new jQuery.fx( self, opt, name );
+
+ if ( /toggle|show|hide/.test(val) )
+ e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
+ else {
+ var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
+ start = e.cur(true) || 0;
+
+ if ( parts ) {
+ var end = parseFloat(parts[2]),
+ unit = parts[3] || "px";
+
+ // We need to compute starting value
+ if ( unit != "px" ) {
+ self.style[ name ] = (end || 1) + unit;
+ start = ((end || 1) / e.cur(true)) * start;
+ self.style[ name ] = start + unit;
+ }
+
+ // If a +=/-= token was provided, we're doing a relative animation
+ if ( parts[1] )
+ end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
+
+ e.custom( start, end, unit );
+ } else
+ e.custom( start, val, "" );
+ }
+ });
+
+ // For JS strict compliance
+ return true;
+ });
+ },
+
+ stop: function(clearQueue, gotoEnd){
+ var timers = jQuery.timers;
+
+ if (clearQueue)
+ this.queue([]);
+
+ this.each(function(){
+ // go in reverse order so anything added to the queue during the loop is ignored
+ for ( var i = timers.length - 1; i >= 0; i-- )
+ if ( timers[i].elem == this ) {
+ if (gotoEnd)
+ // force the next step to be the last
+ timers[i](true);
+ timers.splice(i, 1);
+ }
+ });
+
+ // start the next in the queue if the last step wasn't forced
+ if (!gotoEnd)
+ this.dequeue();
+
+ return this;
+ }
+
+});
+
+// Generate shortcuts for custom animations
+jQuery.each({
+ slideDown: genFx("show", 1),
+ slideUp: genFx("hide", 1),
+ slideToggle: genFx("toggle", 1),
+ fadeIn: { opacity: "show" },
+ fadeOut: { opacity: "hide" }
+}, function( name, props ){
+ jQuery.fn[ name ] = function( speed, callback ){
+ return this.animate( props, speed, callback );
+ };
+});
+
+jQuery.extend({
+
+ speed: function(speed, easing, fn) {
+ var opt = typeof speed === "object" ? speed : {
+ complete: fn || !fn && easing ||
+ jQuery.isFunction( speed ) && speed,
+ duration: speed,
+ easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
+ };
+
+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
+ jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
+
+ // Queueing
+ opt.old = opt.complete;
+ opt.complete = function(){
+ if ( opt.queue !== false )
+ jQuery(this).dequeue();
+ if ( jQuery.isFunction( opt.old ) )
+ opt.old.call( this );
+ };
+
+ return opt;
+ },
+
+ easing: {
+ linear: function( p, n, firstNum, diff ) {
+ return firstNum + diff * p;
+ },
+ swing: function( p, n, firstNum, diff ) {
+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
+ }
+ },
+
+ timers: [],
+
+ fx: function( elem, options, prop ){
+ this.options = options;
+ this.elem = elem;
+ this.prop = prop;
+
+ if ( !options.orig )
+ options.orig = {};
+ }
+
+});
+
+jQuery.fx.prototype = {
+
+ // Simple function for setting a style value
+ update: function(){
+ if ( this.options.step )
+ this.options.step.call( this.elem, this.now, this );
+
+ (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
+
+ // Set display property to block for height/width animations
+ if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
+ this.elem.style.display = "block";
+ },
+
+ // Get the current size
+ cur: function(force){
+ if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
+ return this.elem[ this.prop ];
+
+ var r = parseFloat(jQuery.css(this.elem, this.prop, force));
+ return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
+ },
+
+ // Start an animation from one number to another
+ custom: function(from, to, unit){
+ this.startTime = now();
+ this.start = from;
+ this.end = to;
+ this.unit = unit || this.unit || "px";
+ this.now = this.start;
+ this.pos = this.state = 0;
+
+ var self = this;
+ function t(gotoEnd){
+ return self.step(gotoEnd);
+ }
+
+ t.elem = this.elem;
+
+ if ( t() && jQuery.timers.push(t) && !timerId ) {
+ timerId = setInterval(function(){
+ var timers = jQuery.timers;
+
+ for ( var i = 0; i < timers.length; i++ )
+ if ( !timers[i]() )
+ timers.splice(i--, 1);
+
+ if ( !timers.length ) {
+ clearInterval( timerId );
+ timerId = undefined;
+ }
+ }, 13);
+ }
+ },
+
+ // Simple 'show' function
+ show: function(){
+ // Remember where we started, so that we can go back to it later
+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
+ this.options.show = true;
+
+ // Begin the animation
+ // Make sure that we start at a small width/height to avoid any
+ // flash of content
+ this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
+
+ // Start by showing the element
+ jQuery(this.elem).show();
+ },
+
+ // Simple 'hide' function
+ hide: function(){
+ // Remember where we started, so that we can go back to it later
+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
+ this.options.hide = true;
+
+ // Begin the animation
+ this.custom(this.cur(), 0);
+ },
+
+ // Each step of an animation
+ step: function(gotoEnd){
+ var t = now();
+
+ if ( gotoEnd || t >= this.options.duration + this.startTime ) {
+ this.now = this.end;
+ this.pos = this.state = 1;
+ this.update();
+
+ this.options.curAnim[ this.prop ] = true;
+
+ var done = true;
+ for ( var i in this.options.curAnim )
+ if ( this.options.curAnim[i] !== true )
+ done = false;
+
+ if ( done ) {
+ if ( this.options.display != null ) {
+ // Reset the overflow
+ this.elem.style.overflow = this.options.overflow;
+
+ // Reset the display
+ this.elem.style.display = this.options.display;
+ if ( jQuery.css(this.elem, "display") == "none" )
+ this.elem.style.display = "block";
+ }
+
+ // Hide the element if the "hide" operation was done
+ if ( this.options.hide )
+ jQuery(this.elem).hide();
+
+ // Reset the properties, if the item has been hidden or shown
+ if ( this.options.hide || this.options.show )
+ for ( var p in this.options.curAnim )
+ jQuery.attr(this.elem.style, p, this.options.orig[p]);
+
+ // Execute the complete function
+ this.options.complete.call( this.elem );
+ }
+
+ return false;
+ } else {
+ var n = t - this.startTime;
+ this.state = n / this.options.duration;
+
+ // Perform the easing function, defaults to swing
+ this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
+ this.now = this.start + ((this.end - this.start) * this.pos);
+
+ // Perform the next step of the animation
+ this.update();
+ }
+
+ return true;
+ }
+
+};
+
+jQuery.extend( jQuery.fx, {
+ speeds:{
+ slow: 600,
+ fast: 200,
+ // Default speed
+ _default: 400
+ },
+ step: {
+
+ opacity: function(fx){
+ jQuery.attr(fx.elem.style, "opacity", fx.now);
+ },
+
+ _default: function(fx){
+ if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
+ fx.elem.style[ fx.prop ] = fx.now + fx.unit;
+ else
+ fx.elem[ fx.prop ] = fx.now;
+ }
+ }
+});
+if ( document.documentElement["getBoundingClientRect"] )
+ jQuery.fn.offset = function() {
+ if ( !this[0] ) return { top: 0, left: 0 };
+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
+ var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
+ clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
+ top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
+ left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
+ return { top: top, left: left };
+ };
+else
+ jQuery.fn.offset = function() {
+ if ( !this[0] ) return { top: 0, left: 0 };
+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
+ jQuery.offset.initialized || jQuery.offset.initialize();
+
+ var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
+ doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
+ body = doc.body, defaultView = doc.defaultView,
+ prevComputedStyle = defaultView.getComputedStyle(elem, null),
+ top = elem.offsetTop, left = elem.offsetLeft;
+
+ while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
+ computedStyle = defaultView.getComputedStyle(elem, null);
+ top -= elem.scrollTop, left -= elem.scrollLeft;
+ if ( elem === offsetParent ) {
+ top += elem.offsetTop, left += elem.offsetLeft;
+ if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
+ prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
+ }
+ if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
+ prevComputedStyle = computedStyle;
+ }
+
+ if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
+ top += body.offsetTop,
+ left += body.offsetLeft;
+
+ if ( prevComputedStyle.position === "fixed" )
+ top += Math.max(docElem.scrollTop, body.scrollTop),
+ left += Math.max(docElem.scrollLeft, body.scrollLeft);
+
+ return { top: top, left: left };
+ };
+
+jQuery.offset = {
+ initialize: function() {
+ if ( this.initialized ) return;
+ var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
+ html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
+
+ rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
+ for ( prop in rules ) container.style[prop] = rules[prop];
+
+ container.innerHTML = html;
+ body.insertBefore(container, body.firstChild);
+ innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
+
+ this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
+ this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
+
+ innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
+ this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
+
+ body.style.marginTop = '1px';
+ this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
+ body.style.marginTop = bodyMarginTop;
+
+ body.removeChild(container);
+ this.initialized = true;
+ },
+
+ bodyOffset: function(body) {
+ jQuery.offset.initialized || jQuery.offset.initialize();
+ var top = body.offsetTop, left = body.offsetLeft;
+ if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
+ top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
+ left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
+ return { top: top, left: left };
+ }
+};
+
+
+jQuery.fn.extend({
+ position: function() {
+ var left = 0, top = 0, results;
+
+ if ( this[0] ) {
+ // Get *real* offsetParent
+ var offsetParent = this.offsetParent(),
+
+ // Get correct offsets
+ offset = this.offset(),
+ parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
+
+ // Subtract element margins
+ // note: when an element has margin: auto the offsetLeft and marginLeft
+ // are the same in Safari causing offset.left to incorrectly be 0
+ offset.top -= num( this, 'marginTop' );
+ offset.left -= num( this, 'marginLeft' );
+
+ // Add offsetParent borders
+ parentOffset.top += num( offsetParent, 'borderTopWidth' );
+ parentOffset.left += num( offsetParent, 'borderLeftWidth' );
+
+ // Subtract the two offsets
+ results = {
+ top: offset.top - parentOffset.top,
+ left: offset.left - parentOffset.left
+ };
+ }
+
+ return results;
+ },
+
+ offsetParent: function() {
+ var offsetParent = this[0].offsetParent || document.body;
+ while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
+ offsetParent = offsetParent.offsetParent;
+ return jQuery(offsetParent);
+ }
+});
+
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( ['Left', 'Top'], function(i, name) {
+ var method = 'scroll' + name;
+
+ jQuery.fn[ method ] = function(val) {
+ if (!this[0]) return null;
+
+ return val !== undefined ?
+
+ // Set the scroll offset
+ this.each(function() {
+ this == window || this == document ?
+ window.scrollTo(
+ !i ? val : jQuery(window).scrollLeft(),
+ i ? val : jQuery(window).scrollTop()
+ ) :
+ this[ method ] = val;
+ }) :
+
+ // Return the scroll offset
+ this[0] == window || this[0] == document ?
+ self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
+ jQuery.boxModel && document.documentElement[ method ] ||
+ document.body[ method ] :
+ this[0][ method ];
+ };
+});
+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
+jQuery.each([ "Height", "Width" ], function(i, name){
+
+ var tl = i ? "Left" : "Top", // top or left
+ br = i ? "Right" : "Bottom", // bottom or right
+ lower = name.toLowerCase();
+
+ // innerHeight and innerWidth
+ jQuery.fn["inner" + name] = function(){
+ return this[0] ?
+ jQuery.css( this[0], lower, false, "padding" ) :
+ null;
+ };
+
+ // outerHeight and outerWidth
+ jQuery.fn["outer" + name] = function(margin) {
+ return this[0] ?
+ jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
+ null;
+ };
+
+ var type = name.toLowerCase();
+
+ jQuery.fn[ type ] = function( size ) {
+ // Get window width or height
+ return this[0] == window ?
+ // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
+ document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
+ document.body[ "client" + name ] :
+
+ // Get document width or height
+ this[0] == document ?
+ // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
+ Math.max(
+ document.documentElement["client" + name],
+ document.body["scroll" + name], document.documentElement["scroll" + name],
+ document.body["offset" + name], document.documentElement["offset" + name]
+ ) :
+
+ // Get or set width or height on the element
+ size === undefined ?
+ // Get width or height on the element
+ (this.length ? jQuery.css( this[0], type ) : null) :
+
+ // Set the width or height on the element (default to pixels if value is unitless)
+ this.css( type, typeof size === "string" ? size : size + "px" );
+ };
+
+});
+})();
diff --git a/chromium/third_party/webdriver/test_data/js/jquery-1.4.4.min.js b/chromium/third_party/webdriver/test_data/js/jquery-1.4.4.min.js
new file mode 100644
index 00000000000..8f3ca2e2daf
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/js/jquery-1.4.4.min.js
@@ -0,0 +1,167 @@
+/*!
+ * jQuery JavaScript Library v1.4.4
+ * http://jquery.com/
+ *
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Thu Nov 11 19:04:53 2010 -0500
+ */
+(function(E,B){function ka(a,b,d){if(d===B&&a.nodeType===1){d=a.getAttribute("data-"+b);if(typeof d==="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:!c.isNaN(d)?parseFloat(d):Ja.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=B}return d}function U(){return false}function ca(){return true}function la(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function Ka(a){var b,d,e,f,h,l,k,o,x,r,A,C=[];f=[];h=c.data(this,this.nodeType?"events":"__events__");if(typeof h==="function")h=
+h.events;if(!(a.liveFired===this||!h||!h.live||a.button&&a.type==="click")){if(a.namespace)A=RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)");a.liveFired=this;var J=h.live.slice(0);for(k=0;k<J.length;k++){h=J[k];h.origType.replace(X,"")===a.type?f.push(h.selector):J.splice(k--,1)}f=c(a.target).closest(f,a.currentTarget);o=0;for(x=f.length;o<x;o++){r=f[o];for(k=0;k<J.length;k++){h=J[k];if(r.selector===h.selector&&(!A||A.test(h.namespace))){l=r.elem;e=null;if(h.preType==="mouseenter"||
+h.preType==="mouseleave"){a.type=h.preType;e=c(a.relatedTarget).closest(h.selector)[0]}if(!e||e!==l)C.push({elem:l,handleObj:h,level:r.level})}}}o=0;for(x=C.length;o<x;o++){f=C[o];if(d&&f.level>d)break;a.currentTarget=f.elem;a.data=f.handleObj.data;a.handleObj=f.handleObj;A=f.handleObj.origHandler.apply(f.elem,arguments);if(A===false||a.isPropagationStopped()){d=f.level;if(A===false)b=false;if(a.isImmediatePropagationStopped())break}}return b}}function Y(a,b){return(a&&a!=="*"?a+".":"")+b.replace(La,
+"`").replace(Ma,"&")}function ma(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,h){return!!b.call(f,h,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(Na.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})}function na(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,
+e);if(e=e&&e.events){delete f.handle;f.events={};for(var h in e)for(var l in e[h])c.event.add(this,h,e[h][l],e[h][l].data)}}})}function Oa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function oa(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight;if(d==="border")return e;c.each(b==="width"?Pa:Qa,function(){d||(e-=parseFloat(c.css(a,"padding"+this))||0);if(d==="margin")e+=parseFloat(c.css(a,
+"margin"+this))||0;else e-=parseFloat(c.css(a,"border"+this+"Width"))||0});return e}function da(a,b,d,e){if(c.isArray(b)&&b.length)c.each(b,function(f,h){d||Ra.test(a)?e(a,h):da(a+"["+(typeof h==="object"||c.isArray(h)?f:"")+"]",h,d,e)});else if(!d&&b!=null&&typeof b==="object")c.isEmptyObject(b)?e(a,""):c.each(b,function(f,h){da(a+"["+f+"]",h,d,e)});else e(a,b)}function S(a,b){var d={};c.each(pa.concat.apply([],pa.slice(0,b)),function(){d[this]=a});return d}function qa(a){if(!ea[a]){var b=c("<"+
+a+">").appendTo("body"),d=b.css("display");b.remove();if(d==="none"||d==="")d="block";ea[a]=d}return ea[a]}function fa(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var t=E.document,c=function(){function a(){if(!b.isReady){try{t.documentElement.doScroll("left")}catch(j){setTimeout(a,1);return}b.ready()}}var b=function(j,s){return new b.fn.init(j,s)},d=E.jQuery,e=E.$,f,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,l=/\S/,k=/^\s+/,o=/\s+$/,x=/\W/,r=/\d/,A=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,
+C=/^[\],:{}\s]*$/,J=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,w=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,I=/(?:^|:|,)(?:\s*\[)+/g,L=/(webkit)[ \/]([\w.]+)/,g=/(opera)(?:.*version)?[ \/]([\w.]+)/,i=/(msie) ([\w.]+)/,n=/(mozilla)(?:.*? rv:([\w.]+))?/,m=navigator.userAgent,p=false,q=[],u,y=Object.prototype.toString,F=Object.prototype.hasOwnProperty,M=Array.prototype.push,N=Array.prototype.slice,O=String.prototype.trim,D=Array.prototype.indexOf,R={};b.fn=b.prototype={init:function(j,
+s){var v,z,H;if(!j)return this;if(j.nodeType){this.context=this[0]=j;this.length=1;return this}if(j==="body"&&!s&&t.body){this.context=t;this[0]=t.body;this.selector="body";this.length=1;return this}if(typeof j==="string")if((v=h.exec(j))&&(v[1]||!s))if(v[1]){H=s?s.ownerDocument||s:t;if(z=A.exec(j))if(b.isPlainObject(s)){j=[t.createElement(z[1])];b.fn.attr.call(j,s,true)}else j=[H.createElement(z[1])];else{z=b.buildFragment([v[1]],[H]);j=(z.cacheable?z.fragment.cloneNode(true):z.fragment).childNodes}return b.merge(this,
+j)}else{if((z=t.getElementById(v[2]))&&z.parentNode){if(z.id!==v[2])return f.find(j);this.length=1;this[0]=z}this.context=t;this.selector=j;return this}else if(!s&&!x.test(j)){this.selector=j;this.context=t;j=t.getElementsByTagName(j);return b.merge(this,j)}else return!s||s.jquery?(s||f).find(j):b(s).find(j);else if(b.isFunction(j))return f.ready(j);if(j.selector!==B){this.selector=j.selector;this.context=j.context}return b.makeArray(j,this)},selector:"",jquery:"1.4.4",length:0,size:function(){return this.length},
+toArray:function(){return N.call(this,0)},get:function(j){return j==null?this.toArray():j<0?this.slice(j)[0]:this[j]},pushStack:function(j,s,v){var z=b();b.isArray(j)?M.apply(z,j):b.merge(z,j);z.prevObject=this;z.context=this.context;if(s==="find")z.selector=this.selector+(this.selector?" ":"")+v;else if(s)z.selector=this.selector+"."+s+"("+v+")";return z},each:function(j,s){return b.each(this,j,s)},ready:function(j){b.bindReady();if(b.isReady)j.call(t,b);else q&&q.push(j);return this},eq:function(j){return j===
+-1?this.slice(j):this.slice(j,+j+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(j){return this.pushStack(b.map(this,function(s,v){return j.call(s,v,s)}))},end:function(){return this.prevObject||b(null)},push:M,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var j,s,v,z,H,G=arguments[0]||{},K=1,Q=arguments.length,ga=false;
+if(typeof G==="boolean"){ga=G;G=arguments[1]||{};K=2}if(typeof G!=="object"&&!b.isFunction(G))G={};if(Q===K){G=this;--K}for(;K<Q;K++)if((j=arguments[K])!=null)for(s in j){v=G[s];z=j[s];if(G!==z)if(ga&&z&&(b.isPlainObject(z)||(H=b.isArray(z)))){if(H){H=false;v=v&&b.isArray(v)?v:[]}else v=v&&b.isPlainObject(v)?v:{};G[s]=b.extend(ga,v,z)}else if(z!==B)G[s]=z}return G};b.extend({noConflict:function(j){E.$=e;if(j)E.jQuery=d;return b},isReady:false,readyWait:1,ready:function(j){j===true&&b.readyWait--;
+if(!b.readyWait||j!==true&&!b.isReady){if(!t.body)return setTimeout(b.ready,1);b.isReady=true;if(!(j!==true&&--b.readyWait>0))if(q){var s=0,v=q;for(q=null;j=v[s++];)j.call(t,b);b.fn.trigger&&b(t).trigger("ready").unbind("ready")}}},bindReady:function(){if(!p){p=true;if(t.readyState==="complete")return setTimeout(b.ready,1);if(t.addEventListener){t.addEventListener("DOMContentLoaded",u,false);E.addEventListener("load",b.ready,false)}else if(t.attachEvent){t.attachEvent("onreadystatechange",u);E.attachEvent("onload",
+b.ready);var j=false;try{j=E.frameElement==null}catch(s){}t.documentElement.doScroll&&j&&a()}}},isFunction:function(j){return b.type(j)==="function"},isArray:Array.isArray||function(j){return b.type(j)==="array"},isWindow:function(j){return j&&typeof j==="object"&&"setInterval"in j},isNaN:function(j){return j==null||!r.test(j)||isNaN(j)},type:function(j){return j==null?String(j):R[y.call(j)]||"object"},isPlainObject:function(j){if(!j||b.type(j)!=="object"||j.nodeType||b.isWindow(j))return false;if(j.constructor&&
+!F.call(j,"constructor")&&!F.call(j.constructor.prototype,"isPrototypeOf"))return false;for(var s in j);return s===B||F.call(j,s)},isEmptyObject:function(j){for(var s in j)return false;return true},error:function(j){throw j;},parseJSON:function(j){if(typeof j!=="string"||!j)return null;j=b.trim(j);if(C.test(j.replace(J,"@").replace(w,"]").replace(I,"")))return E.JSON&&E.JSON.parse?E.JSON.parse(j):(new Function("return "+j))();else b.error("Invalid JSON: "+j)},noop:function(){},globalEval:function(j){if(j&&
+l.test(j)){var s=t.getElementsByTagName("head")[0]||t.documentElement,v=t.createElement("script");v.type="text/javascript";if(b.support.scriptEval)v.appendChild(t.createTextNode(j));else v.text=j;s.insertBefore(v,s.firstChild);s.removeChild(v)}},nodeName:function(j,s){return j.nodeName&&j.nodeName.toUpperCase()===s.toUpperCase()},each:function(j,s,v){var z,H=0,G=j.length,K=G===B||b.isFunction(j);if(v)if(K)for(z in j){if(s.apply(j[z],v)===false)break}else for(;H<G;){if(s.apply(j[H++],v)===false)break}else if(K)for(z in j){if(s.call(j[z],
+z,j[z])===false)break}else for(v=j[0];H<G&&s.call(v,H,v)!==false;v=j[++H]);return j},trim:O?function(j){return j==null?"":O.call(j)}:function(j){return j==null?"":j.toString().replace(k,"").replace(o,"")},makeArray:function(j,s){var v=s||[];if(j!=null){var z=b.type(j);j.length==null||z==="string"||z==="function"||z==="regexp"||b.isWindow(j)?M.call(v,j):b.merge(v,j)}return v},inArray:function(j,s){if(s.indexOf)return s.indexOf(j);for(var v=0,z=s.length;v<z;v++)if(s[v]===j)return v;return-1},merge:function(j,
+s){var v=j.length,z=0;if(typeof s.length==="number")for(var H=s.length;z<H;z++)j[v++]=s[z];else for(;s[z]!==B;)j[v++]=s[z++];j.length=v;return j},grep:function(j,s,v){var z=[],H;v=!!v;for(var G=0,K=j.length;G<K;G++){H=!!s(j[G],G);v!==H&&z.push(j[G])}return z},map:function(j,s,v){for(var z=[],H,G=0,K=j.length;G<K;G++){H=s(j[G],G,v);if(H!=null)z[z.length]=H}return z.concat.apply([],z)},guid:1,proxy:function(j,s,v){if(arguments.length===2)if(typeof s==="string"){v=j;j=v[s];s=B}else if(s&&!b.isFunction(s)){v=
+s;s=B}if(!s&&j)s=function(){return j.apply(v||this,arguments)};if(j)s.guid=j.guid=j.guid||s.guid||b.guid++;return s},access:function(j,s,v,z,H,G){var K=j.length;if(typeof s==="object"){for(var Q in s)b.access(j,Q,s[Q],z,H,v);return j}if(v!==B){z=!G&&z&&b.isFunction(v);for(Q=0;Q<K;Q++)H(j[Q],s,z?v.call(j[Q],Q,H(j[Q],s)):v,G);return j}return K?H(j[0],s):B},now:function(){return(new Date).getTime()},uaMatch:function(j){j=j.toLowerCase();j=L.exec(j)||g.exec(j)||i.exec(j)||j.indexOf("compatible")<0&&n.exec(j)||
+[];return{browser:j[1]||"",version:j[2]||"0"}},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(j,s){R["[object "+s+"]"]=s.toLowerCase()});m=b.uaMatch(m);if(m.browser){b.browser[m.browser]=true;b.browser.version=m.version}if(b.browser.webkit)b.browser.safari=true;if(D)b.inArray=function(j,s){return D.call(s,j)};if(!/\s/.test("\u00a0")){k=/^[\s\xA0]+/;o=/[\s\xA0]+$/}f=b(t);if(t.addEventListener)u=function(){t.removeEventListener("DOMContentLoaded",u,
+false);b.ready()};else if(t.attachEvent)u=function(){if(t.readyState==="complete"){t.detachEvent("onreadystatechange",u);b.ready()}};return E.jQuery=E.$=b}();(function(){c.support={};var a=t.documentElement,b=t.createElement("script"),d=t.createElement("div"),e="script"+c.now();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),h=d.getElementsByTagName("a")[0],l=t.createElement("select"),
+k=l.appendChild(t.createElement("option"));if(!(!f||!f.length||!h)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:k.selected,deleteExpando:true,optDisabled:false,checkClone:false,
+scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};l.disabled=true;c.support.optDisabled=!k.disabled;b.type="text/javascript";try{b.appendChild(t.createTextNode("window."+e+"=1;"))}catch(o){}a.insertBefore(b,a.firstChild);if(E[e]){c.support.scriptEval=true;delete E[e]}try{delete b.test}catch(x){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function r(){c.support.noCloneEvent=
+false;d.detachEvent("onclick",r)});d.cloneNode(true).fireEvent("onclick")}d=t.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=t.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var r=t.createElement("div");r.style.width=r.style.paddingLeft="1px";t.body.appendChild(r);c.boxModel=c.support.boxModel=r.offsetWidth===2;if("zoom"in r.style){r.style.display="inline";r.style.zoom=
+1;c.support.inlineBlockNeedsLayout=r.offsetWidth===2;r.style.display="";r.innerHTML="<div style='width:4px;'></div>";c.support.shrinkWrapBlocks=r.offsetWidth!==2}r.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var A=r.getElementsByTagName("td");c.support.reliableHiddenOffsets=A[0].offsetHeight===0;A[0].style.display="";A[1].style.display="none";c.support.reliableHiddenOffsets=c.support.reliableHiddenOffsets&&A[0].offsetHeight===0;r.innerHTML="";t.body.removeChild(r).style.display=
+"none"});a=function(r){var A=t.createElement("div");r="on"+r;var C=r in A;if(!C){A.setAttribute(r,"return;");C=typeof A[r]==="function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=h=null}})();var ra={},Ja=/^(?:\{.*\}|\[.*\])$/;c.extend({cache:{},uuid:0,expando:"jQuery"+c.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(a,b,d){if(c.acceptData(a)){a=a==E?ra:a;var e=a.nodeType,f=e?a[c.expando]:null,h=
+c.cache;if(!(e&&!f&&typeof b==="string"&&d===B)){if(e)f||(a[c.expando]=f=++c.uuid);else h=a;if(typeof b==="object")if(e)h[f]=c.extend(h[f],b);else c.extend(h,b);else if(e&&!h[f])h[f]={};a=e?h[f]:h;if(d!==B)a[b]=d;return typeof b==="string"?a[b]:a}}},removeData:function(a,b){if(c.acceptData(a)){a=a==E?ra:a;var d=a.nodeType,e=d?a[c.expando]:a,f=c.cache,h=d?f[e]:e;if(b){if(h){delete h[b];d&&c.isEmptyObject(h)&&c.removeData(a)}}else if(d&&c.support.deleteExpando)delete a[c.expando];else if(a.removeAttribute)a.removeAttribute(c.expando);
+else if(d)delete f[e];else for(var l in a)delete a[l]}},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});c.fn.extend({data:function(a,b){var d=null;if(typeof a==="undefined"){if(this.length){var e=this[0].attributes,f;d=c.data(this[0]);for(var h=0,l=e.length;h<l;h++){f=e[h].name;if(f.indexOf("data-")===0){f=f.substr(5);ka(this[0],f,d[f])}}}return d}else if(typeof a==="object")return this.each(function(){c.data(this,
+a)});var k=a.split(".");k[1]=k[1]?"."+k[1]:"";if(b===B){d=this.triggerHandler("getData"+k[1]+"!",[k[0]]);if(d===B&&this.length){d=c.data(this[0],a);d=ka(this[0],a,d)}return d===B&&k[1]?this.data(k[0]):d}else return this.each(function(){var o=c(this),x=[k[0],b];o.triggerHandler("setData"+k[1]+"!",x);c.data(this,a,b);o.triggerHandler("changeData"+k[1]+"!",x)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=
+c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===B)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
+a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var sa=/[\n\t]/g,ha=/\s+/,Sa=/\r/g,Ta=/^(?:href|src|style)$/,Ua=/^(?:button|input)$/i,Va=/^(?:button|input|object|select|textarea)$/i,Wa=/^a(?:rea)?$/i,ta=/^(?:radio|checkbox)$/i;c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",
+colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(x){var r=c(this);r.addClass(a.call(this,x,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===
+1)if(f.className){for(var h=" "+f.className+" ",l=f.className,k=0,o=b.length;k<o;k++)if(h.indexOf(" "+b[k]+" ")<0)l+=" "+b[k];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var x=c(this);x.removeClass(a.call(this,o,x.attr("class")))});if(a&&typeof a==="string"||a===B)for(var b=(a||"").split(ha),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var h=(" "+f.className+" ").replace(sa," "),
+l=0,k=b.length;l<k;l++)h=h.replace(" "+b[l]+" "," ");f.className=c.trim(h)}else f.className=""}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var h=c(this);h.toggleClass(a.call(this,f,h.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,h=0,l=c(this),k=b,o=a.split(ha);f=o[h++];){k=e?k:!l.hasClass(f);l[k?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,
+"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(sa," ").indexOf(a)>-1)return true;return false},val:function(a){if(!arguments.length){var b=this[0];if(b){if(c.nodeName(b,"option")){var d=b.attributes.value;return!d||d.specified?b.value:b.text}if(c.nodeName(b,"select")){var e=b.selectedIndex;d=[];var f=b.options;b=b.type==="select-one";
+if(e<0)return null;var h=b?e:0;for(e=b?e+1:f.length;h<e;h++){var l=f[h];if(l.selected&&(c.support.optDisabled?!l.disabled:l.getAttribute("disabled")===null)&&(!l.parentNode.disabled||!c.nodeName(l.parentNode,"optgroup"))){a=c(l).val();if(b)return a;d.push(a)}}return d}if(ta.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Sa,"")}return B}var k=c.isFunction(a);return this.each(function(o){var x=c(this),r=a;if(this.nodeType===1){if(k)r=
+a.call(this,o,x.val());if(r==null)r="";else if(typeof r==="number")r+="";else if(c.isArray(r))r=c.map(r,function(C){return C==null?"":C+""});if(c.isArray(r)&&ta.test(this.type))this.checked=c.inArray(x.val(),r)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(r);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},
+attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return B;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==B;b=e&&c.props[b]||b;var h=Ta.test(b);if((b in a||a[b]!==B)&&e&&!h){if(f){b==="type"&&Ua.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");if(d===null)a.nodeType===1&&a.removeAttribute(b);else a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&
+b.specified?b.value:Va.test(a.nodeName)||Wa.test(a.nodeName)&&a.href?0:B;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);if(!a.attributes[b]&&a.hasAttribute&&!a.hasAttribute(b))return B;a=!c.support.hrefNormalized&&e&&h?a.getAttribute(b,2):a.getAttribute(b);return a===null?B:a}});var X=/\.(.*)$/,ia=/^(?:textarea|input|select)$/i,La=/\./g,Ma=/ /g,Xa=/[^\w\s.|`]/g,Ya=function(a){return a.replace(Xa,"\\$&")},ua={focusin:0,focusout:0};
+c.event={add:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(c.isWindow(a)&&a!==E&&!a.frameElement)a=E;if(d===false)d=U;else if(!d)return;var f,h;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(h=c.data(a)){var l=a.nodeType?"events":"__events__",k=h[l],o=h.handle;if(typeof k==="function"){o=k.handle;k=k.events}else if(!k){a.nodeType||(h[l]=h=function(){});h.events=k={}}if(!o)h.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,
+arguments):B};o.elem=a;b=b.split(" ");for(var x=0,r;l=b[x++];){h=f?c.extend({},f):{handler:d,data:e};if(l.indexOf(".")>-1){r=l.split(".");l=r.shift();h.namespace=r.slice(0).sort().join(".")}else{r=[];h.namespace=""}h.type=l;if(!h.guid)h.guid=d.guid;var A=k[l],C=c.event.special[l]||{};if(!A){A=k[l]=[];if(!C.setup||C.setup.call(a,e,r,o)===false)if(a.addEventListener)a.addEventListener(l,o,false);else a.attachEvent&&a.attachEvent("on"+l,o)}if(C.add){C.add.call(a,h);if(!h.handler.guid)h.handler.guid=
+d.guid}A.push(h);c.event.global[l]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){if(d===false)d=U;var f,h,l=0,k,o,x,r,A,C,J=a.nodeType?"events":"__events__",w=c.data(a),I=w&&w[J];if(w&&I){if(typeof I==="function"){w=I;I=I.events}if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(f in I)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[l++];){r=f;k=f.indexOf(".")<0;o=[];if(!k){o=f.split(".");f=o.shift();x=RegExp("(^|\\.)"+
+c.map(o.slice(0).sort(),Ya).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(A=I[f])if(d){r=c.event.special[f]||{};for(h=e||0;h<A.length;h++){C=A[h];if(d.guid===C.guid){if(k||x.test(C.namespace)){e==null&&A.splice(h--,1);r.remove&&r.remove.call(a,C)}if(e!=null)break}}if(A.length===0||e!=null&&A.length===1){if(!r.teardown||r.teardown.call(a,o)===false)c.removeEvent(a,f,w.handle);delete I[f]}}else for(h=0;h<A.length;h++){C=A[h];if(k||x.test(C.namespace)){c.event.remove(a,r,C.handler,h);A.splice(h--,1)}}}if(c.isEmptyObject(I)){if(b=
+w.handle)b.elem=null;delete w.events;delete w.handle;if(typeof w==="function")c.removeData(a,J);else c.isEmptyObject(w)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[c.expando]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===
+8)return B;a.result=B;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=d.nodeType?c.data(d,"handle"):(c.data(d,"__events__")||{}).handle)&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false){a.result=false;a.preventDefault()}}catch(h){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){var l;e=a.target;var k=f.replace(X,""),o=c.nodeName(e,"a")&&k===
+"click",x=c.event.special[k]||{};if((!x._default||x._default.call(d,a)===false)&&!o&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[k]){if(l=e["on"+k])e["on"+k]=null;c.event.triggered=true;e[k]()}}catch(r){}if(l)e["on"+k]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;d=[];var h=c.makeArray(arguments);a=h[0]=c.event.fix(a||E.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){e=a.type.split(".");a.type=e.shift();d=e.slice(0).sort();e=RegExp("(^|\\.)"+
+d.join("\\.(?:.*\\.)?")+"(\\.|$)")}a.namespace=a.namespace||d.join(".");f=c.data(this,this.nodeType?"events":"__events__");if(typeof f==="function")f=f.events;d=(f||{})[a.type];if(f&&d){d=d.slice(0);f=0;for(var l=d.length;f<l;f++){var k=d[f];if(b||e.test(k.namespace)){a.handler=k.handler;a.data=k.data;a.handleObj=k;k=k.handler.apply(this,h);if(k!==B){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
+fix:function(a){if(a[c.expando])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||t;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=t.documentElement;d=t.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
+d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(a.which==null&&(a.charCode!=null||a.keyCode!=null))a.which=a.charCode!=null?a.charCode:a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==B)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,Y(a.origType,a.selector),c.extend({},a,{handler:Ka,guid:a.handler.guid}))},remove:function(a){c.event.remove(this,
+Y(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,d){if(c.isWindow(this))this.onbeforeunload=d},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.removeEvent=t.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=
+c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=ca;var a=this.originalEvent;if(a)if(a.preventDefault)a.preventDefault();else a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=ca;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ca;this.stopPropagation()},isDefaultPrevented:U,isPropagationStopped:U,isImmediatePropagationStopped:U};
+var va=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},wa=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?wa:va,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?wa:va)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!==
+"form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length){a.liveFired=B;return la("submit",this,arguments)}});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13){a.liveFired=B;return la("submit",this,arguments)}})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var V,
+xa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},Z=function(a,b){var d=a.target,e,f;if(!(!ia.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=xa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===B||f===e))if(e!=null||f){a.type="change";a.liveFired=
+B;return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return Z.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return Z.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",xa(a))}},setup:function(){if(this.type===
+"file")return false;for(var a in V)c.event.add(this,a+".specialChange",V[a]);return ia.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return ia.test(this.nodeName)}};V=c.event.special.change.filters;V.focus=V.beforeactivate}t.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.trigger(e,null,e.target)}c.event.special[b]={setup:function(){ua[b]++===0&&t.addEventListener(a,d,true)},teardown:function(){--ua[b]===
+0&&t.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var h in d)this[b](h,e,d[h],f);return this}if(c.isFunction(e)||e===false){f=e;e=B}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{h=0;for(var k=this.length;h<k;h++)c.event.add(this[h],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,
+a[d]);else{d=0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.result}},toggle:function(a){for(var b=arguments,d=
+1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var ya={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,h){var l,k=0,o,x,r=h||this.selector;h=h?this:c(this.context);if(typeof d===
+"object"&&!d.preventDefault){for(l in d)h[b](l,e,d[l],r);return this}if(c.isFunction(e)){f=e;e=B}for(d=(d||"").split(" ");(l=d[k++])!=null;){o=X.exec(l);x="";if(o){x=o[0];l=l.replace(X,"")}if(l==="hover")d.push("mouseenter"+x,"mouseleave"+x);else{o=l;if(l==="focus"||l==="blur"){d.push(ya[l]+x);l+=x}else l=(ya[l]||l)+x;if(b==="live"){x=0;for(var A=h.length;x<A;x++)c.event.add(h[x],"live."+Y(l,r),{data:e,selector:r,handler:f,origType:l,origHandler:f,preType:o})}else h.unbind("live."+Y(l,r),f)}}return this}});
+c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){c.fn[b]=function(d,e){if(e==null){e=d;d=null}return arguments.length>0?this.bind(b,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});E.attachEvent&&!E.addEventListener&&c(E).bind("unload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});
+(function(){function a(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1&&!q){y.sizcache=n;y.sizset=p}if(y.nodeName.toLowerCase()===i){F=y;break}y=y[g]}m[p]=F}}}function b(g,i,n,m,p,q){p=0;for(var u=m.length;p<u;p++){var y=m[p];if(y){var F=false;for(y=y[g];y;){if(y.sizcache===n){F=m[y.sizset];break}if(y.nodeType===1){if(!q){y.sizcache=n;y.sizset=p}if(typeof i!=="string"){if(y===i){F=true;break}}else if(k.filter(i,
+[y]).length>0){F=y;break}}y=y[g]}m[p]=F}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,h=false,l=true;[0,0].sort(function(){l=false;return 0});var k=function(g,i,n,m){n=n||[];var p=i=i||t;if(i.nodeType!==1&&i.nodeType!==9)return[];if(!g||typeof g!=="string")return n;var q,u,y,F,M,N=true,O=k.isXML(i),D=[],R=g;do{d.exec("");if(q=d.exec(R)){R=q[3];D.push(q[1]);if(q[2]){F=q[3];
+break}}}while(q);if(D.length>1&&x.exec(g))if(D.length===2&&o.relative[D[0]])u=L(D[0]+D[1],i);else for(u=o.relative[D[0]]?[i]:k(D.shift(),i);D.length;){g=D.shift();if(o.relative[g])g+=D.shift();u=L(g,u)}else{if(!m&&D.length>1&&i.nodeType===9&&!O&&o.match.ID.test(D[0])&&!o.match.ID.test(D[D.length-1])){q=k.find(D.shift(),i,O);i=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]}if(i){q=m?{expr:D.pop(),set:C(m)}:k.find(D.pop(),D.length===1&&(D[0]==="~"||D[0]==="+")&&i.parentNode?i.parentNode:i,O);u=q.expr?k.filter(q.expr,
+q.set):q.set;if(D.length>0)y=C(u);else N=false;for(;D.length;){q=M=D.pop();if(o.relative[M])q=D.pop();else M="";if(q==null)q=i;o.relative[M](y,q,O)}}else y=[]}y||(y=u);y||k.error(M||g);if(f.call(y)==="[object Array]")if(N)if(i&&i.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&k.contains(i,y[g])))n.push(u[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&n.push(u[g]);else n.push.apply(n,y);else C(y,n);if(F){k(F,p,n,m);k.uniqueSort(n)}return n};k.uniqueSort=function(g){if(w){h=
+l;g.sort(w);if(h)for(var i=1;i<g.length;i++)g[i]===g[i-1]&&g.splice(i--,1)}return g};k.matches=function(g,i){return k(g,null,null,i)};k.matchesSelector=function(g,i){return k(i,null,null,[g]).length>0};k.find=function(g,i,n){var m;if(!g)return[];for(var p=0,q=o.order.length;p<q;p++){var u,y=o.order[p];if(u=o.leftMatch[y].exec(g)){var F=u[1];u.splice(1,1);if(F.substr(F.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");m=o.find[y](u,i,n);if(m!=null){g=g.replace(o.match[y],"");break}}}}m||(m=i.getElementsByTagName("*"));
+return{set:m,expr:g}};k.filter=function(g,i,n,m){for(var p,q,u=g,y=[],F=i,M=i&&i[0]&&k.isXML(i[0]);g&&i.length;){for(var N in o.filter)if((p=o.leftMatch[N].exec(g))!=null&&p[2]){var O,D,R=o.filter[N];D=p[1];q=false;p.splice(1,1);if(D.substr(D.length-1)!=="\\"){if(F===y)y=[];if(o.preFilter[N])if(p=o.preFilter[N](p,F,n,y,m,M)){if(p===true)continue}else q=O=true;if(p)for(var j=0;(D=F[j])!=null;j++)if(D){O=R(D,p,j,F);var s=m^!!O;if(n&&O!=null)if(s)q=true;else F[j]=false;else if(s){y.push(D);q=true}}if(O!==
+B){n||(F=y);g=g.replace(o.match[N],"");if(!q)return[];break}}}if(g===u)if(q==null)k.error(g);else break;u=g}return F};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var o=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
+POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},relative:{"+":function(g,i){var n=typeof i==="string",m=n&&!/\W/.test(i);n=n&&!m;if(m)i=i.toLowerCase();m=0;for(var p=g.length,q;m<p;m++)if(q=g[m]){for(;(q=q.previousSibling)&&q.nodeType!==1;);g[m]=n||q&&q.nodeName.toLowerCase()===
+i?q||false:q===i}n&&k.filter(i,g,true)},">":function(g,i){var n,m=typeof i==="string",p=0,q=g.length;if(m&&!/\W/.test(i))for(i=i.toLowerCase();p<q;p++){if(n=g[p]){n=n.parentNode;g[p]=n.nodeName.toLowerCase()===i?n:false}}else{for(;p<q;p++)if(n=g[p])g[p]=m?n.parentNode:n.parentNode===i;m&&k.filter(i,g,true)}},"":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=i=i.toLowerCase();q=a}q("parentNode",i,p,g,m,n)},"~":function(g,i,n){var m,p=e++,q=b;if(typeof i==="string"&&!/\W/.test(i)){m=
+i=i.toLowerCase();q=a}q("previousSibling",i,p,g,m,n)}},find:{ID:function(g,i,n){if(typeof i.getElementById!=="undefined"&&!n)return(g=i.getElementById(g[1]))&&g.parentNode?[g]:[]},NAME:function(g,i){if(typeof i.getElementsByName!=="undefined"){for(var n=[],m=i.getElementsByName(g[1]),p=0,q=m.length;p<q;p++)m[p].getAttribute("name")===g[1]&&n.push(m[p]);return n.length===0?null:n}},TAG:function(g,i){return i.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,i,n,m,p,q){g=" "+g[1].replace(/\\/g,
+"")+" ";if(q)return g;q=0;for(var u;(u=i[q])!=null;q++)if(u)if(p^(u.className&&(" "+u.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))n||m.push(u);else if(n)i[q]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var i=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=i[1]+(i[2]||1)-0;g[3]=i[3]-0}g[0]=e++;return g},ATTR:function(g,i,n,
+m,p,q){i=g[1].replace(/\\/g,"");if(!q&&o.attrMap[i])g[1]=o.attrMap[i];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,i,n,m,p){if(g[1]==="not")if((d.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,i);else{g=k.filter(g[3],i,n,true^p);n||m.push.apply(m,g);return false}else if(o.match.POS.test(g[0])||o.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===
+true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,i,n){return!!k(n[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===
+g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,i){return i===0},last:function(g,i,n,m){return i===m.length-1},even:function(g,i){return i%2===0},odd:function(g,i){return i%2===1},lt:function(g,i,n){return i<n[3]-0},gt:function(g,i,n){return i>n[3]-0},nth:function(g,i,n){return n[3]-
+0===i},eq:function(g,i,n){return n[3]-0===i}},filter:{PSEUDO:function(g,i,n,m){var p=i[1],q=o.filters[p];if(q)return q(g,n,i,m);else if(p==="contains")return(g.textContent||g.innerText||k.getText([g])||"").indexOf(i[3])>=0;else if(p==="not"){i=i[3];n=0;for(m=i.length;n<m;n++)if(i[n]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+p)},CHILD:function(g,i){var n=i[1],m=g;switch(n){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(n===
+"first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":n=i[2];var p=i[3];if(n===1&&p===0)return true;var q=i[0],u=g.parentNode;if(u&&(u.sizcache!==q||!g.nodeIndex)){var y=0;for(m=u.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++y;u.sizcache=q}m=g.nodeIndex-p;return n===0?m===0:m%n===0&&m/n>=0}},ID:function(g,i){return g.nodeType===1&&g.getAttribute("id")===i},TAG:function(g,i){return i==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===
+i},CLASS:function(g,i){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(i)>-1},ATTR:function(g,i){var n=i[1];n=o.attrHandle[n]?o.attrHandle[n](g):g[n]!=null?g[n]:g.getAttribute(n);var m=n+"",p=i[2],q=i[4];return n==null?p==="!=":p==="="?m===q:p==="*="?m.indexOf(q)>=0:p==="~="?(" "+m+" ").indexOf(q)>=0:!q?m&&n!==false:p==="!="?m!==q:p==="^="?m.indexOf(q)===0:p==="$="?m.substr(m.length-q.length)===q:p==="|="?m===q||m.substr(0,q.length+1)===q+"-":false},POS:function(g,i,n,m){var p=o.setFilters[i[2]];
+if(p)return p(g,n,i,m)}}},x=o.match.POS,r=function(g,i){return"\\"+(i-0+1)},A;for(A in o.match){o.match[A]=RegExp(o.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);o.leftMatch[A]=RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[A].source.replace(/\\(\d+)/g,r))}var C=function(g,i){g=Array.prototype.slice.call(g,0);if(i){i.push.apply(i,g);return i}return g};try{Array.prototype.slice.call(t.documentElement.childNodes,0)}catch(J){C=function(g,i){var n=0,m=i||[];if(f.call(g)==="[object Array]")Array.prototype.push.apply(m,
+g);else if(typeof g.length==="number")for(var p=g.length;n<p;n++)m.push(g[n]);else for(;g[n];n++)m.push(g[n]);return m}}var w,I;if(t.documentElement.compareDocumentPosition)w=function(g,i){if(g===i){h=true;return 0}if(!g.compareDocumentPosition||!i.compareDocumentPosition)return g.compareDocumentPosition?-1:1;return g.compareDocumentPosition(i)&4?-1:1};else{w=function(g,i){var n,m,p=[],q=[];n=g.parentNode;m=i.parentNode;var u=n;if(g===i){h=true;return 0}else if(n===m)return I(g,i);else if(n){if(!m)return 1}else return-1;
+for(;u;){p.unshift(u);u=u.parentNode}for(u=m;u;){q.unshift(u);u=u.parentNode}n=p.length;m=q.length;for(u=0;u<n&&u<m;u++)if(p[u]!==q[u])return I(p[u],q[u]);return u===n?I(g,q[u],-1):I(p[u],i,1)};I=function(g,i,n){if(g===i)return n;for(g=g.nextSibling;g;){if(g===i)return-1;g=g.nextSibling}return 1}}k.getText=function(g){for(var i="",n,m=0;g[m];m++){n=g[m];if(n.nodeType===3||n.nodeType===4)i+=n.nodeValue;else if(n.nodeType!==8)i+=k.getText(n.childNodes)}return i};(function(){var g=t.createElement("div"),
+i="script"+(new Date).getTime(),n=t.documentElement;g.innerHTML="<a name='"+i+"'/>";n.insertBefore(g,n.firstChild);if(t.getElementById(i)){o.find.ID=function(m,p,q){if(typeof p.getElementById!=="undefined"&&!q)return(p=p.getElementById(m[1]))?p.id===m[1]||typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id").nodeValue===m[1]?[p]:B:[]};o.filter.ID=function(m,p){var q=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&q&&q.nodeValue===p}}n.removeChild(g);
+n=g=null})();(function(){var g=t.createElement("div");g.appendChild(t.createComment(""));if(g.getElementsByTagName("*").length>0)o.find.TAG=function(i,n){var m=n.getElementsByTagName(i[1]);if(i[1]==="*"){for(var p=[],q=0;m[q];q++)m[q].nodeType===1&&p.push(m[q]);m=p}return m};g.innerHTML="<a href='#'></a>";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")o.attrHandle.href=function(i){return i.getAttribute("href",2)};g=null})();t.querySelectorAll&&
+function(){var g=k,i=t.createElement("div");i.innerHTML="<p class='TEST'></p>";if(!(i.querySelectorAll&&i.querySelectorAll(".TEST").length===0)){k=function(m,p,q,u){p=p||t;m=m.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u&&!k.isXML(p))if(p.nodeType===9)try{return C(p.querySelectorAll(m),q)}catch(y){}else if(p.nodeType===1&&p.nodeName.toLowerCase()!=="object"){var F=p.getAttribute("id"),M=F||"__sizzle__";F||p.setAttribute("id",M);try{return C(p.querySelectorAll("#"+M+" "+m),q)}catch(N){}finally{F||
+p.removeAttribute("id")}}return g(m,p,q,u)};for(var n in g)k[n]=g[n];i=null}}();(function(){var g=t.documentElement,i=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,n=false;try{i.call(t.documentElement,"[test!='']:sizzle")}catch(m){n=true}if(i)k.matchesSelector=function(p,q){q=q.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(p))try{if(n||!o.match.PSEUDO.test(q)&&!/!=/.test(q))return i.call(p,q)}catch(u){}return k(q,null,null,[p]).length>0}})();(function(){var g=
+t.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){o.order.splice(1,0,"CLASS");o.find.CLASS=function(i,n,m){if(typeof n.getElementsByClassName!=="undefined"&&!m)return n.getElementsByClassName(i[1])};g=null}}})();k.contains=t.documentElement.contains?function(g,i){return g!==i&&(g.contains?g.contains(i):true)}:t.documentElement.compareDocumentPosition?
+function(g,i){return!!(g.compareDocumentPosition(i)&16)}:function(){return false};k.isXML=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false};var L=function(g,i){for(var n,m=[],p="",q=i.nodeType?[i]:i;n=o.match.PSEUDO.exec(g);){p+=n[0];g=g.replace(o.match.PSEUDO,"")}g=o.relative[g]?g+"*":g;n=0;for(var u=q.length;n<u;n++)k(g,q[n],m);return k.filter(p,m)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=k.getText;c.isXMLDoc=k.isXML;
+c.contains=k.contains})();var Za=/Until$/,$a=/^(?:parents|prevUntil|prevAll)/,ab=/,/,Na=/^.[^:#\[\.,]*$/,bb=Array.prototype.slice,cb=c.expr.match.POS;c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var h=d;h<b.length;h++)for(var l=0;l<d;l++)if(b[l]===b[h]){b.splice(h--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},
+not:function(a){return this.pushStack(ma(this,a,false),"not",a)},filter:function(a){return this.pushStack(ma(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){var d=[],e,f,h=this[0];if(c.isArray(a)){var l,k={},o=1;if(h&&a.length){e=0;for(f=a.length;e<f;e++){l=a[e];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;h&&h.ownerDocument&&h!==b;){for(l in k){e=k[l];if(e.jquery?e.index(h)>-1:c(h).is(e))d.push({selector:l,elem:h,level:o})}h=
+h.parentNode;o++}}return d}l=cb.test(a)?c(a,b||this.context):null;e=0;for(f=this.length;e<f;e++)for(h=this[e];h;)if(l?l.index(h)>-1:c.find.matchesSelector(h,a)){d.push(h);break}else{h=h.parentNode;if(!h||!h.ownerDocument||h===b)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a==="string"?c(a,b||this.context):
+c.makeArray(a),e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,
+2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,
+b){c.fn[a]=function(d,e){var f=c.map(this,b,d);Za.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||ab.test(e))&&$a.test(a))f=f.reverse();return this.pushStack(f,a,bb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===B||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&
+e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var za=/ jQuery\d+="(?:\d+|null)"/g,$=/^\s+/,Aa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ba=/<([\w:]+)/,db=/<tbody/i,eb=/<|&#?\w+;/,Ca=/<(?:script|object|embed|option|style)/i,Da=/checked\s*(?:[^=]|=\s*.checked.)/i,fb=/\=([^="'>\s]+\/)>/g,P={option:[1,
+"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};P.optgroup=P.option;P.tbody=P.tfoot=P.colgroup=P.caption=P.thead;P.th=P.td;if(!c.support.htmlSerialize)P._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
+c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==B)return this.empty().append((this[0]&&this[0].ownerDocument||t).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
+wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
+prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
+this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
+return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(za,"").replace(fb,'="$1">').replace($,"")],e)[0]}else return this.cloneNode(true)});if(a===true){na(this,b);na(this.find("*"),b.find("*"))}return b},html:function(a){if(a===B)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(za,""):null;
+else if(typeof a==="string"&&!Ca.test(a)&&(c.support.leadingWhitespace||!$.test(a))&&!P[(Ba.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Aa,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var h=c(this);h.html(a.call(this,f,h.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=
+c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,h,l=a[0],k=[];if(!c.support.checkClone&&arguments.length===3&&typeof l==="string"&&Da.test(l))return this.each(function(){c(this).domManip(a,
+b,d,true)});if(c.isFunction(l))return this.each(function(x){var r=c(this);a[0]=l.call(this,x,b?r.html():B);r.domManip(a,b,d)});if(this[0]){e=l&&l.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:c.buildFragment(a,this,k);h=e.fragment;if(f=h.childNodes.length===1?h=h.firstChild:h.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
+this[f]:this[f],f>0||e.cacheable||this.length>1?h.cloneNode(true):h)}k.length&&c.each(k,Oa)}return this}});c.buildFragment=function(a,b,d){var e,f,h;b=b&&b[0]?b[0].ownerDocument||b[0]:t;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===t&&!Ca.test(a[0])&&(c.support.checkClone||!Da.test(a[0]))){f=true;if(h=c.fragments[a[0]])if(h!==1)e=h}if(!e){e=b.createDocumentFragment();c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=h?e:1;return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",
+prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var h=d.length;f<h;f++){var l=(f>0?this.clone(true):this).get();c(d[f])[b](l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||t;if(typeof b.createElement==="undefined")b=b.ownerDocument||
+b[0]&&b[0].ownerDocument||t;for(var f=[],h=0,l;(l=a[h])!=null;h++){if(typeof l==="number")l+="";if(l){if(typeof l==="string"&&!eb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Aa,"<$1></$2>");var k=(Ba.exec(l)||["",""])[1].toLowerCase(),o=P[k]||P._default,x=o[0],r=b.createElement("div");for(r.innerHTML=o[1]+l+o[2];x--;)r=r.lastChild;if(!c.support.tbody){x=db.test(l);k=k==="table"&&!x?r.firstChild&&r.firstChild.childNodes:o[1]==="<table>"&&!x?r.childNodes:[];for(o=k.length-
+1;o>=0;--o)c.nodeName(k[o],"tbody")&&!k[o].childNodes.length&&k[o].parentNode.removeChild(k[o])}!c.support.leadingWhitespace&&$.test(l)&&r.insertBefore(b.createTextNode($.exec(l)[0]),r.firstChild);l=r.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(h=0;f[h];h++)if(e&&c.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript"))e.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);else{f[h].nodeType===1&&f.splice.apply(f,[h+1,0].concat(c.makeArray(f[h].getElementsByTagName("script"))));
+d.appendChild(f[h])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,h=c.support.deleteExpando,l=0,k;(k=a[l])!=null;l++)if(!(k.nodeName&&c.noData[k.nodeName.toLowerCase()]))if(d=k[c.expando]){if((b=e[d])&&b.events)for(var o in b.events)f[o]?c.event.remove(k,o):c.removeEvent(k,o,b.handle);if(h)delete k[c.expando];else k.removeAttribute&&k.removeAttribute(c.expando);delete e[d]}}});var Ea=/alpha\([^)]*\)/i,gb=/opacity=([^)]*)/,hb=/-([a-z])/ig,ib=/([A-Z])/g,Fa=/^-?\d+(?:px)?$/i,
+jb=/^-?\d/,kb={position:"absolute",visibility:"hidden",display:"block"},Pa=["Left","Right"],Qa=["Top","Bottom"],W,Ga,aa,lb=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){if(arguments.length===2&&b===B)return this;return c.access(this,a,b,true,function(d,e,f){return f!==B?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=W(a,"opacity","opacity");return d===""?"1":d}else return a.style.opacity}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,
+zoom:true,lineHeight:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(!(!a||a.nodeType===3||a.nodeType===8||!a.style)){var f,h=c.camelCase(b),l=a.style,k=c.cssHooks[h];b=c.cssProps[h]||h;if(d!==B){if(!(typeof d==="number"&&isNaN(d)||d==null)){if(typeof d==="number"&&!c.cssNumber[h])d+="px";if(!k||!("set"in k)||(d=k.set(a,d))!==B)try{l[b]=d}catch(o){}}}else{if(k&&"get"in k&&(f=k.get(a,false,e))!==B)return f;return l[b]}}},css:function(a,b,d){var e,f=c.camelCase(b),
+h=c.cssHooks[f];b=c.cssProps[f]||f;if(h&&"get"in h&&(e=h.get(a,true,d))!==B)return e;else if(W)return W(a,b,f)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]},camelCase:function(a){return a.replace(hb,lb)}});c.curCSS=c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var h;if(e){if(d.offsetWidth!==0)h=oa(d,b,f);else c.swap(d,kb,function(){h=oa(d,b,f)});if(h<=0){h=W(d,b,b);if(h==="0px"&&aa)h=aa(d,b,b);
+if(h!=null)return h===""||h==="auto"?"0px":h}if(h<0||h==null){h=d.style[b];return h===""||h==="auto"?"0px":h}return typeof h==="string"?h:h+"px"}},set:function(d,e){if(Fa.test(e)){e=parseFloat(e);if(e>=0)return e+"px"}else return e}}});if(!c.support.opacity)c.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style;d.zoom=1;var e=c.isNaN(b)?"":"alpha(opacity="+b*100+")",f=
+d.filter||"";d.filter=Ea.test(f)?f.replace(Ea,e):d.filter+" "+e}};if(t.defaultView&&t.defaultView.getComputedStyle)Ga=function(a,b,d){var e;d=d.replace(ib,"-$1").toLowerCase();if(!(b=a.ownerDocument.defaultView))return B;if(b=b.getComputedStyle(a,null)){e=b.getPropertyValue(d);if(e===""&&!c.contains(a.ownerDocument.documentElement,a))e=c.style(a,d)}return e};if(t.documentElement.currentStyle)aa=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],h=a.style;if(!Fa.test(f)&&jb.test(f)){d=h.left;
+e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=b==="fontSize"?"1em":f||0;f=h.pixelLeft+"px";h.left=d;a.runtimeStyle.left=e}return f===""?"auto":f};W=Ga||aa;if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style.display||c.css(a,"display"))==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var mb=c.now(),nb=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
+ob=/^(?:select|textarea)/i,pb=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,qb=/^(?:GET|HEAD)$/,Ra=/\[\]$/,T=/\=\?(&|$)/,ja=/\?/,rb=/([?&])_=[^&]*/,sb=/^(\w+:)?\/\/([^\/?#]+)/,tb=/%20/g,ub=/#.*$/,Ha=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&Ha)return Ha.apply(this,arguments);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b===
+"object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var h=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,k){if(k==="success"||k==="notmodified")h.html(f?c("<div>").append(l.responseText.replace(nb,"")).find(f):l.responseText);d&&h.each(d,[l.responseText,k,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
+!this.disabled&&(this.checked||ob.test(this.nodeName)||pb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e}}):{name:b.name,value:d}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},
+getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new E.XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",
+script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a){var b=c.extend(true,{},c.ajaxSettings,a),d,e,f,h=b.type.toUpperCase(),l=qb.test(h);b.url=b.url.replace(ub,"");b.context=a&&a.context!=null?a.context:b;if(b.data&&b.processData&&typeof b.data!=="string")b.data=c.param(b.data,b.traditional);if(b.dataType==="jsonp"){if(h==="GET")T.test(b.url)||(b.url+=(ja.test(b.url)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||
+!T.test(b.data))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType==="json"&&(b.data&&T.test(b.data)||T.test(b.url))){d=b.jsonpCallback||"jsonp"+mb++;if(b.data)b.data=(b.data+"").replace(T,"="+d+"$1");b.url=b.url.replace(T,"="+d+"$1");b.dataType="script";var k=E[d];E[d]=function(m){if(c.isFunction(k))k(m);else{E[d]=B;try{delete E[d]}catch(p){}}f=m;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);r&&r.removeChild(A)}}if(b.dataType==="script"&&b.cache===null)b.cache=
+false;if(b.cache===false&&l){var o=c.now(),x=b.url.replace(rb,"$1_="+o);b.url=x+(x===b.url?(ja.test(b.url)?"&":"?")+"_="+o:"")}if(b.data&&l)b.url+=(ja.test(b.url)?"&":"?")+b.data;b.global&&c.active++===0&&c.event.trigger("ajaxStart");o=(o=sb.exec(b.url))&&(o[1]&&o[1].toLowerCase()!==location.protocol||o[2].toLowerCase()!==location.host);if(b.dataType==="script"&&h==="GET"&&o){var r=t.getElementsByTagName("head")[0]||t.documentElement,A=t.createElement("script");if(b.scriptCharset)A.charset=b.scriptCharset;
+A.src=b.url;if(!d){var C=false;A.onload=A.onreadystatechange=function(){if(!C&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){C=true;c.handleSuccess(b,w,e,f);c.handleComplete(b,w,e,f);A.onload=A.onreadystatechange=null;r&&A.parentNode&&r.removeChild(A)}}}r.insertBefore(A,r.firstChild);return B}var J=false,w=b.xhr();if(w){b.username?w.open(h,b.url,b.async,b.username,b.password):w.open(h,b.url,b.async);try{if(b.data!=null&&!l||a&&a.contentType)w.setRequestHeader("Content-Type",
+b.contentType);if(b.ifModified){c.lastModified[b.url]&&w.setRequestHeader("If-Modified-Since",c.lastModified[b.url]);c.etag[b.url]&&w.setRequestHeader("If-None-Match",c.etag[b.url])}o||w.setRequestHeader("X-Requested-With","XMLHttpRequest");w.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*; q=0.01":b.accepts._default)}catch(I){}if(b.beforeSend&&b.beforeSend.call(b.context,w,b)===false){b.global&&c.active--===1&&c.event.trigger("ajaxStop");w.abort();return false}b.global&&
+c.triggerGlobal(b,"ajaxSend",[w,b]);var L=w.onreadystatechange=function(m){if(!w||w.readyState===0||m==="abort"){J||c.handleComplete(b,w,e,f);J=true;if(w)w.onreadystatechange=c.noop}else if(!J&&w&&(w.readyState===4||m==="timeout")){J=true;w.onreadystatechange=c.noop;e=m==="timeout"?"timeout":!c.httpSuccess(w)?"error":b.ifModified&&c.httpNotModified(w,b.url)?"notmodified":"success";var p;if(e==="success")try{f=c.httpData(w,b.dataType,b)}catch(q){e="parsererror";p=q}if(e==="success"||e==="notmodified")d||
+c.handleSuccess(b,w,e,f);else c.handleError(b,w,e,p);d||c.handleComplete(b,w,e,f);m==="timeout"&&w.abort();if(b.async)w=null}};try{var g=w.abort;w.abort=function(){w&&Function.prototype.call.call(g,w);L("abort")}}catch(i){}b.async&&b.timeout>0&&setTimeout(function(){w&&!J&&L("timeout")},b.timeout);try{w.send(l||b.data==null?null:b.data)}catch(n){c.handleError(b,w,null,n);c.handleComplete(b,w,e,f)}b.async||L();return w}},param:function(a,b){var d=[],e=function(h,l){l=c.isFunction(l)?l():l;d[d.length]=
+encodeURIComponent(h)+"="+encodeURIComponent(l)};if(b===B)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var f in a)da(f,a[f],b,e);return d.join("&").replace(tb,"+")}});c.extend({active:0,lastModified:{},etag:{},handleError:function(a,b,d,e){a.error&&a.error.call(a.context,b,d,e);a.global&&c.triggerGlobal(a,"ajaxError",[b,a,e])},handleSuccess:function(a,b,d,e){a.success&&a.success.call(a.context,e,d,b);a.global&&c.triggerGlobal(a,"ajaxSuccess",
+[b,a])},handleComplete:function(a,b,d){a.complete&&a.complete.call(a.context,b,d);a.global&&c.triggerGlobal(a,"ajaxComplete",[b,a]);a.global&&c.active--===1&&c.event.trigger("ajaxStop")},triggerGlobal:function(a,b,d){(a.context&&a.context.url==null?c(a.context):c.event).trigger(b,d)},httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),
+e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a}});
+if(E.ActiveXObject)c.ajaxSettings.xhr=function(){if(E.location.protocol!=="file:")try{return new E.XMLHttpRequest}catch(a){}try{return new E.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}};c.support.ajax=!!c.ajaxSettings.xhr();var ea={},vb=/^(?:toggle|show|hide)$/,wb=/^([+\-]=)?([\d+.\-]+)(.*)$/,ba,pa=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b,d){if(a||a===0)return this.animate(S("show",
+3),a,b,d);else{d=0;for(var e=this.length;d<e;d++){a=this[d];b=a.style.display;if(!c.data(a,"olddisplay")&&b==="none")b=a.style.display="";b===""&&c.css(a,"display")==="none"&&c.data(a,"olddisplay",qa(a.nodeName))}for(d=0;d<e;d++){a=this[d];b=a.style.display;if(b===""||b==="none")a.style.display=c.data(a,"olddisplay")||""}return this}},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);else{a=0;for(b=this.length;a<b;a++){d=c.css(this[a],"display");d!=="none"&&c.data(this[a],"olddisplay",
+d)}for(a=0;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||e?this.each(function(){var f=e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){var f=c.speed(b,
+d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var h=c.extend({},f),l,k=this.nodeType===1,o=k&&c(this).is(":hidden"),x=this;for(l in a){var r=c.camelCase(l);if(l!==r){a[r]=a[l];delete a[l];l=r}if(a[l]==="hide"&&o||a[l]==="show"&&!o)return h.complete.call(this);if(k&&(l==="height"||l==="width")){h.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(c.css(this,"display")==="inline"&&c.css(this,"float")==="none")if(c.support.inlineBlockNeedsLayout)if(qa(this.nodeName)===
+"inline")this.style.display="inline-block";else{this.style.display="inline";this.style.zoom=1}else this.style.display="inline-block"}if(c.isArray(a[l])){(h.specialEasing=h.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=c.extend({},a);c.each(a,function(A,C){var J=new c.fx(x,h,A);if(vb.test(C))J[C==="toggle"?o?"show":"hide":C](a);else{var w=wb.exec(C),I=J.cur()||0;if(w){var L=parseFloat(w[2]),g=w[3]||"px";if(g!=="px"){c.style(x,A,(L||1)+g);I=(L||
+1)/J.cur()*I;c.style(x,A,I+g)}if(w[1])L=(w[1]==="-="?-1:1)*L+I;J.custom(I,L,g)}else J.custom(I,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,
+d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a==="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*
+Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a=parseFloat(c.css(this.elem,this.prop));return a&&a>-1E4?a:0},custom:function(a,b,d){function e(l){return f.step(l)}
+var f=this,h=c.fx;this.startTime=c.now();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ba)ba=setInterval(h.tick,h.interval)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;
+this.custom(this.cur(),0)},step:function(a){var b=c.now(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.overflow!=null&&!c.support.shrinkWrapBlocks){var f=this.elem,h=this.options;c.each(["","X","Y"],function(k,o){f.style["overflow"+o]=h.overflow[k]})}this.options.hide&&c(this.elem).hide();if(this.options.hide||
+this.options.show)for(var l in this.options.curAnim)c.style(this.elem,l,this.options.orig[l]);this.options.complete.call(this.elem)}return false}else{a=b-this.startTime;this.state=a/this.options.duration;b=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=
+c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},interval:13,stop:function(){clearInterval(ba);ba=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===
+b.elem}).length};var xb=/^t(?:able|d|h)$/i,Ia=/^(?:body|html)$/i;c.fn.offset="getBoundingClientRect"in t.documentElement?function(a){var b=this[0],d;if(a)return this.each(function(l){c.offset.setOffset(this,a,l)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,h=f.documentElement;if(!d||!c.contains(h,b))return d||{top:0,left:0};b=f.body;f=fa(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&
+h.scrollTop||b.scrollTop)-(h.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&h.scrollLeft||b.scrollLeft)-(h.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d,e=b.offsetParent,f=b.ownerDocument,h=f.documentElement,l=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
+for(var k=b.offsetTop,o=b.offsetLeft;(b=b.parentNode)&&b!==l&&b!==h;){if(c.offset.supportsFixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;k-=b.scrollTop;o-=b.scrollLeft;if(b===e){k+=b.offsetTop;o+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&xb.test(b.nodeName))){k+=parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}e=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){k+=
+parseFloat(d.borderTopWidth)||0;o+=parseFloat(d.borderLeftWidth)||0}d=d}if(d.position==="relative"||d.position==="static"){k+=l.offsetTop;o+=l.offsetLeft}if(c.offset.supportsFixedPosition&&d.position==="fixed"){k+=Math.max(h.scrollTop,l.scrollTop);o+=Math.max(h.scrollLeft,l.scrollLeft)}return{top:k,left:o}};c.offset={initialize:function(){var a=t.body,b=t.createElement("div"),d,e,f,h=parseFloat(c.css(a,"marginTop"))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
+height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
+f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==h;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.css(a,
+"marginTop"))||0;d+=parseFloat(c.css(a,"marginLeft"))||0}return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");if(e==="static")a.style.position="relative";var f=c(a),h=f.offset(),l=c.css(a,"top"),k=c.css(a,"left"),o=e==="absolute"&&c.inArray("auto",[l,k])>-1;e={};var x={};if(o)x=f.position();l=o?x.top:parseInt(l,10)||0;k=o?x.left:parseInt(k,10)||0;if(c.isFunction(b))b=b.call(a,d,h);if(b.top!=null)e.top=b.top-h.top+l;if(b.left!=null)e.left=b.left-h.left+k;"using"in b?b.using.call(a,
+e):f.css(e)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=Ia.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||t.body;a&&!Ia.test(a.nodeName)&&
+c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],h;if(!f)return null;if(e!==B)return this.each(function(){if(h=fa(this))h.scrollTo(!a?e:c(h).scrollLeft(),a?e:c(h).scrollTop());else this[d]=e});else return(h=fa(f))?"pageXOffset"in h?h[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&h.document.documentElement[d]||h.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();
+c.fn["inner"+b]=function(){return this[0]?parseFloat(c.css(this[0],d,"padding")):null};c.fn["outer"+b]=function(e){return this[0]?parseFloat(c.css(this[0],d,e?"margin":"border")):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var k=c(this);k[d](e.call(this,l,k[d]()))});if(c.isWindow(f))return f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b];else if(f.nodeType===9)return Math.max(f.documentElement["client"+
+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);else if(e===B){f=c.css(f,d);var h=parseFloat(f);return c.isNaN(h)?f:h}else return this.css(d,typeof e==="string"?e:e+"px")}})})(window);
diff --git a/chromium/third_party/webdriver/test_data/js/jquery-ui-1.8.10.custom.min.js b/chromium/third_party/webdriver/test_data/js/jquery-ui-1.8.10.custom.min.js
new file mode 100644
index 00000000000..7d4ff1cec10
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/js/jquery-ui-1.8.10.custom.min.js
@@ -0,0 +1,782 @@
+/*!
+ * jQuery UI 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI
+ */
+(function(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.10",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,
+NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,
+"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");
+if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f,
+"border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,
+d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}});
+c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&
+b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
+;/*!
+ * jQuery UI Widget 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Widget
+ */
+(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)b(d).triggerHandler("remove");k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,
+a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.charAt(0)==="_")return h;
+e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=b.extend(true,{},this.options,
+this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},
+widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},
+enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
+;/*!
+ * jQuery UI Mouse 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Mouse
+ *
+ * Depends:
+ * jquery.ui.widget.js
+ */
+(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(true===c.data(b.target,a.widgetName+".preventClickEvent")){c.removeData(b.target,a.widgetName+".preventClickEvent");b.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=
+a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=
+this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}this._mouseMoveDelegate=function(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);
+return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;a.target==this._mouseDownEvent.target&&c.data(a.target,this.widgetName+".preventClickEvent",
+true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
+;/*
+ * jQuery UI Position 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Position
+ */
+(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY,
+left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+=
+k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-=
+m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left=
+d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+=
+a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b),
+g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
+;/*
+ * jQuery UI Draggable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Draggables
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.mouse.js
+ * jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
+"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
+this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
+this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
+d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||
+this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&
+this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
+a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||
+0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
+this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
+(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
+"parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[(a.containment=="document"?0:d(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(a.containment=="document"?0:d(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?
+0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),
+10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==
+Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():
+f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;
+if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])e=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/
+b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;e=this.originalPageX+Math.round((e-this.originalPageX)/b.grid[0])*b.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-
+this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=
+this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.10"});
+d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var g=d.data(this,"sortable");if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=
+0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=
+c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,
+true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=
+0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=
+a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var a=d(this).data("draggable").options;d(a.iframeFix===true?"iframe":a.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},
+stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=
+document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-
+c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-b.overflowOffset.left<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-
+(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable",
+"snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,g=b.offset.left,n=g+c.helperProportions.width,m=b.offset.top,o=m+c.helperProportions.height,h=
+c.snapElements.length-1;h>=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e<g&&g<k+e&&j-e<m&&m<l+e||i-e<g&&g<k+e&&j-e<o&&o<l+e||i-e<n&&n<k+e&&j-e<m&&m<l+e||i-e<n&&n<k+e&&j-e<o&&o<l+e){if(f.snapMode!="inner"){var p=Math.abs(j-o)<=e,q=Math.abs(l-m)<=e,r=Math.abs(i-n)<=e,s=Math.abs(k-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",
+{top:l,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k}).left-c.margins.left}var t=p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(j-m)<=e;q=Math.abs(l-o)<=e;r=Math.abs(i-g)<=e;s=Math.abs(k-n)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l-c.helperProportions.height,
+left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[h].snapping&&(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=p||q||r||s||t}else{c.snapElements[h].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,
+a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,
+b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
+;/*
+ * jQuery UI Droppable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Droppables
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ * jquery.ui.mouse.js
+ * jquery.ui.draggable.js
+ */
+(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
+a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&
+this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
+this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
+d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
+a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.10"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;
+switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>=
+i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!=
+"none";if(c[f].visible){c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight};e=="mousedown"&&c[f]._activate.call(c[f],b)}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||
+a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance);if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=
+d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})}}})(jQuery);
+;/*
+ * jQuery UI Resizable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Resizables
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.mouse.js
+ * jquery.ui.widget.js
+ */
+(function(e){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
+_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
+top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
+this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
+nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
+String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),k=0;k=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,k);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();
+this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){e(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
+if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),
+d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=
+this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:
+this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",
+b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;
+f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
+this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(l(b.left))this.position.left=b.left;if(l(b.top))this.position.top=b.top;if(l(b.height))this.size.height=b.height;if(l(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=
+null}if(d=="nw"){b.top=a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,d=l(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=l(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=l(b.width)&&a.minWidth&&a.minWidth>b.width,h=l(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+
+this.size.height,k=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&k)b.left=i-a.minWidth;if(d&&k)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=
+[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)||0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=
+this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,
+a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,
+c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
+originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.10"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=
+b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var k=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:k.parents(a.originalElement[0]).length?["width","height"]:["width",
+"height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(k.css("position"))){c._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};
+if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-
+g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,
+height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=
+e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,
+d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?
+d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=
+a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&
+/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");
+b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/
+(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},l=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
+;/*
+ * jQuery UI Selectable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.mouse.js
+ * jquery.ui.widget.js
+ */
+(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),
+selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX,
+c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting",
+c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d=
+this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting");
+a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&&
+!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d=
+e.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:"1.8.10"})})(jQuery);
+;/*
+ * jQuery UI Sortable 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Sortables
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.mouse.js
+ * jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
+this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a==="disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,
+arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=
+c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,
+{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();
+if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",
+a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");
+if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+
+this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+
+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+
+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,
+c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==
+document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-
+1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});
+this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},toArray:function(a){var b=this._getItemsAsjQuery(a&&
+a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?
+"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?
+c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;
+return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=
+d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});
+return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=
+d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=
+this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b],e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=
+e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];
+if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);
+c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===
+1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=
+this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):
+b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==
+""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
+this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
+10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions=
+{width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||
+document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,
+b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=
+document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
+e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-
+this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<
+this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&
+this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=
+this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();
+this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],
+this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",
+g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||
+this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,
+originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.10"})})(jQuery);
+;/*
+ * jQuery UI Accordion 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ */
+(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
+a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
+if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",
+function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+
+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");
+this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
+b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
+a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
+c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
+if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
+if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),
+e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight||
+e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",
+tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.10",animations:{slide:function(a,b){a=
+c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);f[i]={value:j[1],
+unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",paddingTop:"hide",
+paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
+;/*
+ * jQuery UI Autocomplete 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Autocomplete
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ * jquery.ui.position.js
+ */
+(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.attr("readonly"))){g=false;var f=d.ui.keyCode;
+switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=a.element.val()){a.selectedItem=
+null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||
+"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&&a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),
+i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
+this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&&b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source===
+"string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},
+_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==
+this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position))},
+_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this;d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);
+else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery);
+(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
+-1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.attr("scrollTop"),c=this.element.height();if(b<0)this.element.attr("scrollTop",g+b);else b>=c&&this.element.attr("scrollTop",g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},
+deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);
+e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b,this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,
+g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));
+this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery);
+;/*
+ * jQuery UI Button 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Button
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ */
+(function(a){var g,i=function(b){a(":ui-button",b.target.form).each(function(){var c=a(this).data("button");setTimeout(function(){c.refresh()},1)})},h=function(b){var c=b.name,d=b.form,f=a([]);if(c)f=d?a(d).find("[name='"+c+"']"):a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form});return f};a.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",
+i);if(typeof this.options.disabled!=="boolean")this.options.disabled=this.element.attr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var b=this,c=this.options,d=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!d?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",
+function(){if(!c.disabled){a(this).addClass("ui-state-hover");this===g&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||a(this).removeClass(f)}).bind("focus.button",function(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){a(this).removeClass("ui-state-focus")});d&&this.element.bind("change.button",function(){b.refresh()});if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled)return false;a(this).toggleClass("ui-state-active");
+b.buttonElement.attr("aria-pressed",b.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(c.disabled)return false;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed",true);var e=b.element[0];h(e).not(e).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;a(this).addClass("ui-state-active");
+g=this;a(document).one("mouseup",function(){g=null})}).bind("mouseup.button",function(){if(c.disabled)return false;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(e){if(c.disabled)return false;if(e.keyCode==a.ui.keyCode.SPACE||e.keyCode==a.ui.keyCode.ENTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}this._setOption("disabled",
+c.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var b=this.element.is(":checked");b&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",b)}else this.buttonElement=
+this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||
+this.buttonElement.removeAttr("title");a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled")c?this.element.attr("disabled",true):this.element.removeAttr("disabled");this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio")h(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
+true):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var b=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
+c=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,f=d.primary&&d.secondary,e=[];if(d.primary||d.secondary){e.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>");d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>");if(!this.options.text){e.push(f?"ui-button-icons-only":"ui-button-icon-only");
+b.removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");this.hasTitle||b.attr("title",c)}}else e.push("ui-button-text-only");b.addClass(e.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,
+arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
+a.Widget.prototype.destroy.call(this)}})})(jQuery);
+;/*
+ * jQuery UI Dialog 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Dialog
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ * jquery.ui.button.js
+ * jquery.ui.draggable.js
+ * jquery.ui.mouse.js
+ * jquery.ui.position.js
+ * jquery.ui.resizable.js
+ */
+(function(c,j){var k={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},l={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&
+c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||"&#160;",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",
+-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role",
+"button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id",e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=
+b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");a.uiDialog.remove();a.originalTitle&&
+a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==b.uiDialog[0]){e=c(this).css("z-index");
+isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);
+d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target===f[0]&&e.shiftKey){g.focus(1);return false}}});
+c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,function(){return!(d=true)});if(d){c.each(a,function(f,
+h){h=c.isFunction(h)?{click:h,text:f}:h;f=c('<button type="button"></button>').attr(h,true).unbind("click").click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.fn.button&&f.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=
+d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition,originalSize:f.originalSize,
+position:f.position,size:f.size}}a=a===j?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize",f,b(h))},stop:function(f,
+h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):[a[0],a[1]];if(b.length===
+1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f);if(g in k)e=true;if(g in
+l)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"):e.removeClass("ui-dialog-disabled");
+break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||"&#160;"));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a=this.options,b,d,e=
+this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height-b,0));this.uiDialog.is(":data(resizable)")&&
+this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.10",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===
+0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),
+height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);
+b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,
+function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
+;/*
+ * jQuery UI Slider 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.mouse.js
+ * jquery.ui.widget.js
+ */
+(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var b=this,a=this.options;this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");a.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");
+this.range=d([]);if(a.range){if(a.range===true){this.range=d("<div></div>");if(!a.values)a.values=[this._valueMin(),this._valueMin()];if(a.values.length&&a.values.length!==2)a.values=[a.values[0],a.values[0]]}else this.range=d("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(a.range==="min"||a.range==="max")this.range.addClass("ui-slider-range-"+a.range);this.range.addClass("ui-widget-header")}d(".ui-slider-handle",this.element).length===0&&d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");
+if(a.values&&a.values.length)for(;d(".ui-slider-handle",this.element).length<a.values.length;)d("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");this.handles=d(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(c){c.preventDefault()}).hover(function(){a.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(a.disabled)d(this).blur();
+else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(c){var e=true,f=d(this).data("index.ui-slider-handle"),h,g,i;if(!b.options.disabled){switch(c.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e=
+false;if(!b._keySliding){b._keySliding=true;d(this).addClass("ui-state-active");h=b._start(c,f);if(h===false)return}break}i=b.options.step;h=b.options.values&&b.options.values.length?(g=b.values(f)):(g=b.value());switch(c.keyCode){case d.ui.keyCode.HOME:g=b._valueMin();break;case d.ui.keyCode.END:g=b._valueMax();break;case d.ui.keyCode.PAGE_UP:g=b._trimAlignValue(h+(b._valueMax()-b._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:g=b._trimAlignValue(h-(b._valueMax()-b._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(h===
+b._valueMax())return;g=b._trimAlignValue(h+i);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(h===b._valueMin())return;g=b._trimAlignValue(h-i);break}b._slide(c,f,g);return e}}).keyup(function(c){var e=d(this).data("index.ui-slider-handle");if(b._keySliding){b._keySliding=false;b._stop(c,e);b._change(c,e);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");
+this._mouseDestroy();return this},_mouseCapture:function(b){var a=this.options,c,e,f,h,g;if(a.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:b.pageX,y:b.pageY});e=this._valueMax()-this._valueMin()+1;h=this;this.handles.each(function(i){var j=Math.abs(c-h.values(i));if(e>j){e=j;f=d(this);g=i}});if(a.range===true&&this.values(1)===a.min){g+=1;f=d(this.handles[g])}if(this._start(b,
+g)===false)return false;this._mouseSliding=true;h._handleIndex=g;f.addClass("ui-state-active").focus();a=f.offset();this._clickOffset=!d(b.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:b.pageX-a.left-f.width()/2,top:b.pageY-a.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(b,g,c);return this._animateOff=true},_mouseStart:function(){return true},
+_mouseDrag:function(b){var a=this._normValueFromMouse({x:b.pageX,y:b.pageY});this._slide(b,this._handleIndex,a);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(b){var a;
+if(this.orientation==="horizontal"){a=this.elementSize.width;b=b.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{a=this.elementSize.height;b=b.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}a=b/a;if(a>1)a=1;if(a<0)a=0;if(this.orientation==="vertical")a=1-a;b=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+a*b)},_start:function(b,a){var c={handle:this.handles[a],value:this.value()};if(this.options.values&&this.options.values.length){c.value=
+this.values(a);c.values=this.values()}return this._trigger("start",b,c)},_slide:function(b,a,c){var e;if(this.options.values&&this.options.values.length){e=this.values(a?0:1);if(this.options.values.length===2&&this.options.range===true&&(a===0&&c>e||a===1&&c<e))c=e;if(c!==this.values(a)){e=this.values();e[a]=c;b=this._trigger("slide",b,{handle:this.handles[a],value:c,values:e});this.values(a?0:1);b!==false&&this.values(a,c,true)}}else if(c!==this.value()){b=this._trigger("slide",b,{handle:this.handles[a],
+value:c});b!==false&&this.value(c)}},_stop:function(b,a){var c={handle:this.handles[a],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(a);c.values=this.values()}this._trigger("stop",b,c)},_change:function(b,a){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[a],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(a);c.values=this.values()}this._trigger("change",b,c)}},value:function(b){if(arguments.length){this.options.value=
+this._trimAlignValue(b);this._refreshValue();this._change(null,0)}return this._value()},values:function(b,a){var c,e,f;if(arguments.length>1){this.options.values[b]=this._trimAlignValue(a);this._refreshValue();this._change(null,b)}if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;e=arguments[0];for(f=0;f<c.length;f+=1){c[f]=this._trimAlignValue(e[f]);this._change(null,f)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(b):this.value();
+else return this._values()},_setOption:function(b,a){var c,e=0;if(d.isArray(this.options.values))e=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(b){case "disabled":if(a){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
+this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<e;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var b=this.options.value;return b=this._trimAlignValue(b)},_values:function(b){var a,c;if(arguments.length){a=this.options.values[b];
+return a=this._trimAlignValue(a)}else{a=this.options.values.slice();for(c=0;c<a.length;c+=1)a[c]=this._trimAlignValue(a[c]);return a}},_trimAlignValue:function(b){if(b<=this._valueMin())return this._valueMin();if(b>=this._valueMax())return this._valueMax();var a=this.options.step>0?this.options.step:1,c=(b-this._valueMin())%a;alignValue=b-c;if(Math.abs(c)*2>=a)alignValue+=c>0?a:-a;return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},
+_refreshValue:function(){var b=this.options.range,a=this.options,c=this,e=!this._animateOff?a.animate:false,f,h={},g,i,j,l;if(this.options.values&&this.options.values.length)this.handles.each(function(k){f=(c.values(k)-c._valueMin())/(c._valueMax()-c._valueMin())*100;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";d(this).stop(1,1)[e?"animate":"css"](h,a.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(k===0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},a.animate);
+if(k===1)c.range[e?"animate":"css"]({width:f-g+"%"},{queue:false,duration:a.animate})}else{if(k===0)c.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},a.animate);if(k===1)c.range[e?"animate":"css"]({height:f-g+"%"},{queue:false,duration:a.animate})}g=f});else{i=this.value();j=this._valueMin();l=this._valueMax();f=l!==j?(i-j)/(l-j)*100:0;h[c.orientation==="horizontal"?"left":"bottom"]=f+"%";this.handle.stop(1,1)[e?"animate":"css"](h,a.animate);if(b==="min"&&this.orientation==="horizontal")this.range.stop(1,
+1)[e?"animate":"css"]({width:f+"%"},a.animate);if(b==="max"&&this.orientation==="horizontal")this.range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:a.animate});if(b==="min"&&this.orientation==="vertical")this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},a.animate);if(b==="max"&&this.orientation==="vertical")this.range[e?"animate":"css"]({height:100-f+"%"},{queue:false,duration:a.animate})}}});d.extend(d.ui.slider,{version:"1.8.10"})})(jQuery);
+;/*
+ * jQuery UI Tabs 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ */
+(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&&
+e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=
+d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
+(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
+this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
+this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
+if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
+this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+
+g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
+function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};
+this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=
+-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
+d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=
+d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b,
+e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);
+j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();
+if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null,
+this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this},
+load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c,
+"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
+url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.10"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&&
+a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
+;/*
+ * jQuery UI Datepicker 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Datepicker
+ *
+ * Depends:
+ * jquery.ui.core.js
+ */
+(function(d,G){function K(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
+"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
+"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
+minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function E(a,b){d.extend(a,b);for(var c in b)if(b[c]==
+null||b[c]==G)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.10"}});var y=(new Date).getTime();d.extend(K.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();
+f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
+_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&
+b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==
+""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,
+c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),
+true);this._updateDatepicker(b);this._updateAlternate(b);b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}E(a.settings,e||{});
+b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);
+this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",
+this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,
+function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span")b.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:
+f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},
+e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true);E(e.settings,f);this._attachments(d(a),e);this._autoSize(e);this._setDateDatepicker(a,h);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);
+this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]?
+d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||
+a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,
+e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,
+"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==G?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},
+_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=
+d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,
+c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&
+d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var e=a.dpDiv.find("iframe.ui-datepicker-cover");e.length&&e.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",
+function(){d(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=
+-1&&d(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,
+"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var f=a.yearshtml;setTimeout(function(){f===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);f=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),
+parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,
+b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);
+this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose"))a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
+_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):
+0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=
+false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=
+d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);
+else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=
+a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,
+g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;return p},m=function(p){var v=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&v?4:p=="o"?3:2)+"}");p=b.substring(s).match(p);if(!p)throw"Missing number at position "+s;s+=p[0].length;return parseInt(p[0],10)},n=function(p,v,H){p=o(p)?H:v;for(v=0;v<p.length;v++)if(b.substr(s,p[v].length).toLowerCase()==p[v].toLowerCase()){s+=p[v].length;return v+1}throw"Unknown name at position "+
+s;},r=function(){if(b.charAt(s)!=a.charAt(z))throw"Unexpected literal at position "+s;s++},s=0,z=0;z<a.length;z++)if(k)if(a.charAt(z)=="'"&&!o("'"))k=false;else r();else switch(a.charAt(z)){case "d":l=m("d");break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":j=m("m");break;case "M":j=n("M",i,g);break;case "y":c=m("y");break;case "@":var w=new Date(m("@"));c=w.getFullYear();j=w.getMonth()+1;l=w.getDate();break;case "!":w=new Date((m("!")-this._ticksTo1970)/1E4);c=w.getFullYear();j=w.getMonth()+
+1;l=w.getDate();break;case "'":if(o("'"))r();else k=true;break;default:r()}if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}w=this._daylightSavingAdjust(new Date(c,j-1,l));if(w.getFullYear()!=c||w.getMonth()+1!=j||w.getDate()!=l)throw"Invalid date";return w},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",
+RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&
+a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},j=function(o,m,n,r){return i(o)?r[m]:n[m]},l="",u=false;if(b)for(var k=0;k<a.length;k++)if(u)if(a.charAt(k)=="'"&&!i("'"))u=false;else l+=a.charAt(k);else switch(a.charAt(k)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=j("D",b.getDay(),e,f);break;case "o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=j("M",
+b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+="'";else u=true;break;default:l+=a.charAt(k)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+=
+"0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==G?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=
+f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=
+(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case "d":case "D":g+=parseInt(k[1],10);break;case "w":case "W":g+=parseInt(k[1],10)*7;break;case "m":case "M":l+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case "y":case "Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,
+l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=
+a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),
+b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=
+this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+
+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+
+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";j=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,r,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,
+"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=
+this._get(a,"monthNames"),w=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),v=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var L=this._getDefaultDate(a),I="",C=0;C<i[0];C++){for(var M="",D=0;D<i[1];D++){var N=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";if(l){x+='<div class="ui-datepicker-group';if(i[1]>1)switch(D){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-
+1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}x+='">'}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C==0?c?f:n:"")+(/all|right/.test(t)&&C==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,C>0||D>0,z,w)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var A=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var q=
+(t+h)%7;A+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"}x+=A+"</tr></thead><tbody>";A=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,A);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;A=l?6:Math.ceil((t+A)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O<A;O++){x+="<tr>";var P=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";for(t=0;t<7;t++){var F=
+p?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=q.getMonth()!=g,J=B&&!H||!F[0]||k&&q<k||o&&q>o;P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(q.getTime()==N.getTime()&&g==a.selectedMonth&&a._keyEvent||L.getTime()==q.getTime()&&L.getTime()==N.getTime()?" "+this._dayOverClass:"")+(J?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!v?"":" "+F[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":
+""))+'"'+((!B||v)&&F[2]?' title="'+F[2]+'"':"")+(J?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(B&&!v?"&#xa0;":J?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==u.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=
+P+"</tr>"}g++;if(g>11){g=0;m++}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&D==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");M+=x}I+=M}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',
+o="";if(h||!j)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(k+=o+(h||!(j&&
+l)?"&#xa0;":""));a.yearshtml="";if(h||!l)k+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+
+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";if(d.browser.mozilla)k+='<select class="ui-datepicker-year"><option value="'+c+'" selected="selected">'+c+"</option></select>";else{k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?"&#xa0;":"")+o;k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=
+a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,
+"onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);
+c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,
+"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=
+function(a){if(!this.length)return this;if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,
+[this[0]].concat(b));return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new K;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.10";window["DP_jQuery_"+y]=d})(jQuery);
+;/*
+ * jQuery UI Progressbar 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Progressbar
+ *
+ * Depends:
+ * jquery.ui.core.js
+ * jquery.ui.widget.js
+ */
+(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
+this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*
+this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.10"})})(jQuery);
+;/*
+ * jQuery UI Effects 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/
+ */
+jQuery.effects||function(f,j){function n(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
+16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return o.transparent;return o[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return n(b)}function p(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
+a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function q(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
+a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function m(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
+"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=n(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
+0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
+211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},r=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,
+d){if(f.isFunction(b)){d=b;b=null}return this.queue("fx",function(){var e=f(this),g=e.attr("style")||" ",h=q(p.call(this)),l,v=e.attr("className");f.each(r,function(w,i){c[i]&&e[i+"Class"](c[i])});l=q(p.call(this));e.attr("className",v);e.animate(u(h,l),a,b,function(){f.each(r,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)});h=f.queue(this);l=h.splice(h.length-1,1)[0];
+h.splice(1,0,l);f.dequeue(this)})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,
+a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.10",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,
+a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
+border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);
+return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(m(c))return this._show.apply(this,arguments);
+else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(m(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(m(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),
+b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,
+a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,
+a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==
+e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=
+g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/
+h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,
+a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
+;/*
+ * jQuery UI Effects Blind 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Blind
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,
+g);b.effects.removeWrapper(a);c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
+;/*
+ * jQuery UI Effects Bounce 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Bounce
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","bottom","left","right"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/
+3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);
+b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery);
+;/*
+ * jQuery UI Effects Clip 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Clip
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(b){b.effects.clip=function(e){return this.queue(function(){var a=b(this),i=["position","top","bottom","left","right","height","width"],f=b.effects.setMode(a,e.options.mode||"hide"),c=e.options.direction||"vertical";b.effects.save(a,i);a.show();var d=b.effects.createWrapper(a).css({overflow:"hidden"});d=a[0].tagName=="IMG"?d:a;var g={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?d.height():d.width();if(f=="show"){d.css(g.size,0);d.css(g.position,
+c/2)}var h={};h[g.size]=f=="show"?c:0;h[g.position]=f=="show"?0:c/2;d.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){f=="hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.callback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);
+;/*
+ * jQuery UI Effects Drop 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Drop
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e==
+"show"?1:0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
+;/*
+ * jQuery UI Effects Explode 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Explode
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(j){j.effects.explode=function(a){return this.queue(function(){var c=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?j(this).is(":visible")?"hide":"show":a.options.mode;var b=j(this).show().css("visibility","hidden"),g=b.offset();g.top-=parseInt(b.css("marginTop"),10)||0;g.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),i=b.outerHeight(true),e=0;e<c;e++)for(var f=
+0;f<d;f++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+
+e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
+;/*
+ * jQuery UI Effects Fade 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Fade
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);
+;/*
+ * jQuery UI Effects Fold 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Fold
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],
+10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
+;/*
+ * jQuery UI Effects Highlight 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Highlight
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&&
+this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
+;/*
+ * jQuery UI Effects Pulsate 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Pulsate
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c<times;c++){b.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}b.animate({opacity:animateTo},duration,
+a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery);
+;/*
+ * jQuery UI Effects Scale 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Scale
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(c){c.effects.puff=function(b){return this.queue(function(){var a=c(this),e=c.effects.setMode(a,b.options.mode||"hide"),g=parseInt(b.options.percent,10)||150,h=g/100,i={height:a.height(),width:a.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?g:100,from:e=="hide"?i:{height:i.height*h,width:i.width*h}});a.effect("scale",b.options,b.duration,b.callback);a.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var a=c(this),e=c.extend(true,{},b.options),g=c.effects.setMode(a,
+b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:g=="hide"?0:100),i=b.options.direction||"both",f=b.options.origin;if(g!="effect"){e.origin=f||["middle","center"];e.restore=true}f={height:a.height(),width:a.width()};a.from=b.options.from||(g=="show"?{height:0,width:0}:f);h={y:i!="horizontal"?h/100:1,x:i!="vertical"?h/100:1};a.to={height:f.height*h.y,width:f.width*h.x};if(b.options.fade){if(g=="show"){a.from.opacity=0;a.to.opacity=1}if(g=="hide"){a.from.opacity=
+1;a.to.opacity=0}}e.from=a.from;e.to=a.to;e.mode=g;a.effect("size",e,b.duration,b.callback);a.dequeue()})};c.effects.size=function(b){return this.queue(function(){var a=c(this),e=["position","top","bottom","left","right","width","height","overflow","opacity"],g=["position","top","bottom","left","right","overflow","opacity"],h=["width","height","overflow"],i=["fontSize"],f=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
+p=c.effects.setMode(a,b.options.mode||"effect"),n=b.options.restore||false,m=b.options.scale||"both",l=b.options.origin,j={height:a.height(),width:a.width()};a.from=b.options.from||j;a.to=b.options.to||j;if(l){l=c.effects.getBaseline(l,j);a.from.top=(j.height-a.from.height)*l.y;a.from.left=(j.width-a.from.width)*l.x;a.to.top=(j.height-a.to.height)*l.y;a.to.left=(j.width-a.to.width)*l.x}var d={from:{y:a.from.height/j.height,x:a.from.width/j.width},to:{y:a.to.height/j.height,x:a.to.width/j.width}};
+if(m=="box"||m=="both"){if(d.from.y!=d.to.y){e=e.concat(f);a.from=c.effects.setTransition(a,f,d.from.y,a.from);a.to=c.effects.setTransition(a,f,d.to.y,a.to)}if(d.from.x!=d.to.x){e=e.concat(k);a.from=c.effects.setTransition(a,k,d.from.x,a.from);a.to=c.effects.setTransition(a,k,d.to.x,a.to)}}if(m=="content"||m=="both")if(d.from.y!=d.to.y){e=e.concat(i);a.from=c.effects.setTransition(a,i,d.from.y,a.from);a.to=c.effects.setTransition(a,i,d.to.y,a.to)}c.effects.save(a,n?e:g);a.show();c.effects.createWrapper(a);
+a.css("overflow","hidden").css(a.from);if(m=="content"||m=="both"){f=f.concat(["marginTop","marginBottom"]).concat(i);k=k.concat(["marginLeft","marginRight"]);h=e.concat(f).concat(k);a.find("*[width]").each(function(){child=c(this);n&&c.effects.save(child,h);var o={height:child.height(),width:child.width()};child.from={height:o.height*d.from.y,width:o.width*d.from.x};child.to={height:o.height*d.to.y,width:o.width*d.to.x};if(d.from.y!=d.to.y){child.from=c.effects.setTransition(child,f,d.from.y,child.from);
+child.to=c.effects.setTransition(child,f,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=c.effects.setTransition(child,k,d.from.x,child.from);child.to=c.effects.setTransition(child,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){n&&c.effects.restore(child,h)})})}a.animate(a.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a.to.opacity===0&&a.css("opacity",a.from.opacity);p=="hide"&&a.hide();c.effects.restore(a,
+n?e:g);c.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
+;/*
+ * jQuery UI Effects Shake 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Shake
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(d){d.effects.shake=function(a){return this.queue(function(){var b=d(this),j=["position","top","bottom","left","right"];d.effects.setMode(b,a.options.mode||"effect");var c=a.options.direction||"left",e=a.options.distance||20,l=a.options.times||3,f=a.duration||a.options.duration||140;d.effects.save(b,j);b.show();d.effects.createWrapper(b);var g=c=="up"||c=="down"?"top":"left",h=c=="up"||c=="left"?"pos":"neg";c={};var i={},k={};c[g]=(h=="pos"?"-=":"+=")+e;i[g]=(h=="pos"?"+=":"-=")+e*2;k[g]=
+(h=="pos"?"-=":"+=")+e*2;b.animate(c,f,a.options.easing);for(e=1;e<l;e++)b.animate(i,f,a.options.easing).animate(k,f,a.options.easing);b.animate(i,f,a.options.easing).animate(c,f/2,a.options.easing,function(){d.effects.restore(b,j);d.effects.removeWrapper(b);a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
+;/*
+ * jQuery UI Effects Slide 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Slide
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e);
+var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
+;/*
+ * jQuery UI Effects Transfer 1.8.10
+ *
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * http://docs.jquery.com/UI/Effects/Transfer
+ *
+ * Depends:
+ * jquery.effects.core.js
+ */
+(function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments);
+b.dequeue()})})}})(jQuery);
+; \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/linked_image.html b/chromium/third_party/webdriver/test_data/linked_image.html
new file mode 100644
index 00000000000..7c8df0031a1
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/linked_image.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
+<title>Linking with an image</title>
+</head>
+<body>
+<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
+<a id="link" href="./resultPage.html">Click here for next page</a><br>
+<a id="linkWithEnclosedImage" href="./resultPage.html"><img id="enclosedImage" src="./banner.gif"></a><br/>
+<a id="linkToAnchorOnThisPage" href="#link">link to other link</a><br/>
+<a id="justanotherLink" href="./resultPage.html">Just another link.</a><br/>
+<a id="linkWithExtraEnclosedImage" href="./resultPage.html"><div><img id="extraEnclosedImage" src="./banner.gif"></div></a><br/>
+</body>
+
+</html>
diff --git a/chromium/third_party/webdriver/test_data/longContentPage.html b/chromium/third_party/webdriver/test_data/longContentPage.html
new file mode 100644
index 00000000000..99a45e77385
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/longContentPage.html
@@ -0,0 +1,55 @@
+<html>
+<head>
+ <title>TouchLongContent</title>
+</head>
+
+<body>
+ <h1>Touch API</h1>
+ <h2>Page with long content</h2>
+ <pre> <a id="imagestart"><img src="icon.gif"></a></pre></br></br></br>
+ <p><pre>Long text: This is a very long text to make the screen horizontally movable, to test the flick gesture at a long horizontal distance <a href="xhtmlTest.html" id="link1">Normal link</a> at normal and fast speeds to see results of it <a href="xhtmlTest.html" id="link2">Normal link end</a></pre></p>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ Middle of the screen <a href="xhtmlTest.html" id="link3">Normal link</a>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ </br></br></br></br></br></br></br></br></br></br></br>
+ Bottom of the screen <a href="xhtmlTest.html" id="link4">Normal link</a></br></br></br>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/macbeth.html b/chromium/third_party/webdriver/test_data/macbeth.html
new file mode 100644
index 00000000000..9fa39d5666a
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/macbeth.html
@@ -0,0 +1,5255 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
+ <html>
+ <head>
+ <title>Macbeth: Entire Play
+ </title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ </HEAD>
+ <body bgcolor="#ffffff" text="#000000">
+
+ <!-- Originally from http://shakespeare.mit.edu/macbeth/full.html -->
+
+<a href="#5.8.86">Quick link to last speech</a>
+
+<H3>ACT I</h3>
+<h3>SCENE I. A desert place.</h3>
+<p><blockquote>
+<i>Thunder and lightning. Enter three Witches</i>
+</blockquote>
+
+<A NAME=speech1><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.1.1>When shall we three meet again</A><br>
+<A NAME=1.1.2>In thunder, lightning, or in rain?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.1.3>When the hurlyburly's done,</A><br>
+<A NAME=1.1.4>When the battle's lost and won.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.1.5>That will be ere the set of sun.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.1.6>Where the place?</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.1.7> Upon the heath.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.1.8>There to meet with Macbeth.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.1.9>I come, Graymalkin!</A><br>
+</blockquote>
+
+<A NAME=speech8><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.1.10>Paddock calls.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.1.11>Anon.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>ALL</b></a>
+<blockquote>
+<A NAME=1.1.12>Fair is foul, and foul is fair:</A><br>
+<A NAME=1.1.13>Hover through the fog and filthy air.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE II. A camp near Forres.</h3>
+<p><blockquote>
+<i>Alarum within. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, with Attendants, meeting a bleeding Sergeant</i>
+</blockquote>
+
+<A NAME=speech1><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.1>What bloody man is that? He can report,</A><br>
+<A NAME=1.2.2>As seemeth by his plight, of the revolt</A><br>
+<A NAME=1.2.3>The newest state.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=1.2.4> This is the sergeant</A><br>
+<A NAME=1.2.5>Who like a good and hardy soldier fought</A><br>
+<A NAME=1.2.6>'Gainst my captivity. Hail, brave friend!</A><br>
+<A NAME=1.2.7>Say to the king the knowledge of the broil</A><br>
+<A NAME=1.2.8>As thou didst leave it.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Sergeant</b></a>
+<blockquote>
+<A NAME=1.2.9>Doubtful it stood;</A><br>
+<A NAME=1.2.10>As two spent swimmers, that do cling together</A><br>
+<A NAME=1.2.11>And choke their art. The merciless Macdonwald--</A><br>
+<A NAME=1.2.12>Worthy to be a rebel, for to that</A><br>
+<A NAME=1.2.13>The multiplying villanies of nature</A><br>
+<A NAME=1.2.14>Do swarm upon him--from the western isles</A><br>
+<A NAME=1.2.15>Of kerns and gallowglasses is supplied;</A><br>
+<A NAME=1.2.16>And fortune, on his damned quarrel smiling,</A><br>
+<A NAME=1.2.17>Show'd like a rebel's whore: but all's too weak:</A><br>
+<A NAME=1.2.18>For brave Macbeth--well he deserves that name--</A><br>
+<A NAME=1.2.19>Disdaining fortune, with his brandish'd steel,</A><br>
+<A NAME=1.2.20>Which smoked with bloody execution,</A><br>
+<A NAME=1.2.21>Like valour's minion carved out his passage</A><br>
+<A NAME=1.2.22>Till he faced the slave;</A><br>
+<A NAME=1.2.23>Which ne'er shook hands, nor bade farewell to him,</A><br>
+<A NAME=1.2.24>Till he unseam'd him from the nave to the chaps,</A><br>
+<A NAME=1.2.25>And fix'd his head upon our battlements.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.26>O valiant cousin! worthy gentleman!</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Sergeant</b></a>
+<blockquote>
+<A NAME=1.2.27>As whence the sun 'gins his reflection</A><br>
+<A NAME=1.2.28>Shipwrecking storms and direful thunders break,</A><br>
+<A NAME=1.2.29>So from that spring whence comfort seem'd to come</A><br>
+<A NAME=1.2.30>Discomfort swells. Mark, king of Scotland, mark:</A><br>
+<A NAME=1.2.31>No sooner justice had with valour arm'd</A><br>
+<A NAME=1.2.32>Compell'd these skipping kerns to trust their heels,</A><br>
+<A NAME=1.2.33>But the Norweyan lord surveying vantage,</A><br>
+<A NAME=1.2.34>With furbish'd arms and new supplies of men</A><br>
+<A NAME=1.2.35>Began a fresh assault.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.36>Dismay'd not this</A><br>
+<A NAME=1.2.37>Our captains, Macbeth and Banquo?</A><br>
+</blockquote>
+
+<A NAME=speech7><b>Sergeant</b></a>
+<blockquote>
+<A NAME=1.2.38>Yes;</A><br>
+<A NAME=1.2.39>As sparrows eagles, or the hare the lion.</A><br>
+<A NAME=1.2.40>If I say sooth, I must report they were</A><br>
+<A NAME=1.2.41>As cannons overcharged with double cracks, so they</A><br>
+<A NAME=1.2.42>Doubly redoubled strokes upon the foe:</A><br>
+<A NAME=1.2.43>Except they meant to bathe in reeking wounds,</A><br>
+<A NAME=1.2.44>Or memorise another Golgotha,</A><br>
+<A NAME=1.2.45>I cannot tell.</A><br>
+<A NAME=1.2.46>But I am faint, my gashes cry for help.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.47>So well thy words become thee as thy wounds;</A><br>
+<A NAME=1.2.48>They smack of honour both. Go get him surgeons.</A><br>
+<p><i>Exit Sergeant, attended</i></p>
+<A NAME=1.2.49>Who comes here?</A><br>
+<p><i>Enter ROSS</i></p>
+</blockquote>
+
+<A NAME=speech9><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=1.2.50> The worthy thane of Ross.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>LENNOX</b></a>
+<blockquote>
+<A NAME=1.2.51>What a haste looks through his eyes! So should he look</A><br>
+<A NAME=1.2.52>That seems to speak things strange.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>ROSS</b></a>
+<blockquote>
+<A NAME=1.2.53>God save the king!</A><br>
+</blockquote>
+
+<A NAME=speech12><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.54>Whence camest thou, worthy thane?</A><br>
+</blockquote>
+
+<A NAME=speech13><b>ROSS</b></a>
+<blockquote>
+<A NAME=1.2.55>From Fife, great king;</A><br>
+<A NAME=1.2.56>Where the Norweyan banners flout the sky</A><br>
+<A NAME=1.2.57>And fan our people cold. Norway himself,</A><br>
+<A NAME=1.2.58>With terrible numbers,</A><br>
+<A NAME=1.2.59>Assisted by that most disloyal traitor</A><br>
+<A NAME=1.2.60>The thane of Cawdor, began a dismal conflict;</A><br>
+<A NAME=1.2.61>Till that Bellona's bridegroom, lapp'd in proof,</A><br>
+<A NAME=1.2.62>Confronted him with self-comparisons,</A><br>
+<A NAME=1.2.63>Point against point rebellious, arm 'gainst arm.</A><br>
+<A NAME=1.2.64>Curbing his lavish spirit: and, to conclude,</A><br>
+<A NAME=1.2.65>The victory fell on us.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.66>Great happiness!</A><br>
+</blockquote>
+
+<A NAME=speech15><b>ROSS</b></a>
+<blockquote>
+<A NAME=1.2.67>That now</A><br>
+<A NAME=1.2.68>Sweno, the Norways' king, craves composition:</A><br>
+<A NAME=1.2.69>Nor would we deign him burial of his men</A><br>
+<A NAME=1.2.70>Till he disbursed at Saint Colme's inch</A><br>
+<A NAME=1.2.71>Ten thousand dollars to our general use.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.72>No more that thane of Cawdor shall deceive</A><br>
+<A NAME=1.2.73>Our bosom interest: go pronounce his present death,</A><br>
+<A NAME=1.2.74>And with his former title greet Macbeth.</A><br>
+</blockquote>
+
+<A NAME=speech17><b>ROSS</b></a>
+<blockquote>
+<A NAME=1.2.75>I'll see it done.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.2.76>What he hath lost noble Macbeth hath won.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE III. A heath near Forres.</h3>
+<p><blockquote>
+<i>Thunder. Enter the three Witches</i>
+</blockquote>
+
+<A NAME=speech1><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.1>Where hast thou been, sister?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.3.2>Killing swine.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.3.3>Sister, where thou?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.4>A sailor's wife had chestnuts in her lap,</A><br>
+<A NAME=1.3.5>And munch'd, and munch'd, and munch'd:--</A><br>
+<A NAME=1.3.6>'Give me,' quoth I:</A><br>
+<A NAME=1.3.7>'Aroint thee, witch!' the rump-fed ronyon cries.</A><br>
+<A NAME=1.3.8>Her husband's to Aleppo gone, master o' the Tiger:</A><br>
+<A NAME=1.3.9>But in a sieve I'll thither sail,</A><br>
+<A NAME=1.3.10>And, like a rat without a tail,</A><br>
+<A NAME=1.3.11>I'll do, I'll do, and I'll do.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.3.12>I'll give thee a wind.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.13>Thou'rt kind.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.3.14>And I another.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.15>I myself have all the other,</A><br>
+<A NAME=1.3.16>And the very ports they blow,</A><br>
+<A NAME=1.3.17>All the quarters that they know</A><br>
+<A NAME=1.3.18>I' the shipman's card.</A><br>
+<A NAME=1.3.19>I will drain him dry as hay:</A><br>
+<A NAME=1.3.20>Sleep shall neither night nor day</A><br>
+<A NAME=1.3.21>Hang upon his pent-house lid;</A><br>
+<A NAME=1.3.22>He shall live a man forbid:</A><br>
+<A NAME=1.3.23>Weary se'nnights nine times nine</A><br>
+<A NAME=1.3.24>Shall he dwindle, peak and pine:</A><br>
+<A NAME=1.3.25>Though his bark cannot be lost,</A><br>
+<A NAME=1.3.26>Yet it shall be tempest-tost.</A><br>
+<A NAME=1.3.27>Look what I have.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.3.28>Show me, show me.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.29>Here I have a pilot's thumb,</A><br>
+<A NAME=1.3.30>Wreck'd as homeward he did come.</A><br>
+<p><i>Drum within</i></p>
+</blockquote>
+
+<A NAME=speech11><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.3.31>A drum, a drum!</A><br>
+<A NAME=1.3.32>Macbeth doth come.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>ALL</b></a>
+<blockquote>
+<A NAME=1.3.33>The weird sisters, hand in hand,</A><br>
+<A NAME=1.3.34>Posters of the sea and land,</A><br>
+<A NAME=1.3.35>Thus do go about, about:</A><br>
+<A NAME=1.3.36>Thrice to thine and thrice to mine</A><br>
+<A NAME=1.3.37>And thrice again, to make up nine.</A><br>
+<A NAME=1.3.38>Peace! the charm's wound up.</A><br>
+<p><i>Enter MACBETH and BANQUO</i></p>
+</blockquote>
+
+<A NAME=speech13><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.39>So foul and fair a day I have not seen.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.40>How far is't call'd to Forres? What are these</A><br>
+<A NAME=1.3.41>So wither'd and so wild in their attire,</A><br>
+<A NAME=1.3.42>That look not like the inhabitants o' the earth,</A><br>
+<A NAME=1.3.43>And yet are on't? Live you? or are you aught</A><br>
+<A NAME=1.3.44>That man may question? You seem to understand me,</A><br>
+<A NAME=1.3.45>By each at once her chappy finger laying</A><br>
+<A NAME=1.3.46>Upon her skinny lips: you should be women,</A><br>
+<A NAME=1.3.47>And yet your beards forbid me to interpret</A><br>
+<A NAME=1.3.48>That you are so.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.49> Speak, if you can: what are you?</A><br>
+</blockquote>
+
+<A NAME=speech16><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.50>All hail, Macbeth! hail to thee, thane of Glamis!</A><br>
+</blockquote>
+
+<A NAME=speech17><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.3.51>All hail, Macbeth, hail to thee, thane of Cawdor!</A><br>
+</blockquote>
+
+<A NAME=speech18><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.3.52>All hail, Macbeth, thou shalt be king hereafter!</A><br>
+</blockquote>
+
+<A NAME=speech19><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.53>Good sir, why do you start; and seem to fear</A><br>
+<A NAME=1.3.54>Things that do sound so fair? I' the name of truth,</A><br>
+<A NAME=1.3.55>Are ye fantastical, or that indeed</A><br>
+<A NAME=1.3.56>Which outwardly ye show? My noble partner</A><br>
+<A NAME=1.3.57>You greet with present grace and great prediction</A><br>
+<A NAME=1.3.58>Of noble having and of royal hope,</A><br>
+<A NAME=1.3.59>That he seems rapt withal: to me you speak not.</A><br>
+<A NAME=1.3.60>If you can look into the seeds of time,</A><br>
+<A NAME=1.3.61>And say which grain will grow and which will not,</A><br>
+<A NAME=1.3.62>Speak then to me, who neither beg nor fear</A><br>
+<A NAME=1.3.63>Your favours nor your hate.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.64>Hail!</A><br>
+</blockquote>
+
+<A NAME=speech21><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.3.65>Hail!</A><br>
+</blockquote>
+
+<A NAME=speech22><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.3.66>Hail!</A><br>
+</blockquote>
+
+<A NAME=speech23><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.67>Lesser than Macbeth, and greater.</A><br>
+</blockquote>
+
+<A NAME=speech24><b>Second Witch</b></a>
+<blockquote>
+<A NAME=1.3.68>Not so happy, yet much happier.</A><br>
+</blockquote>
+
+<A NAME=speech25><b>Third Witch</b></a>
+<blockquote>
+<A NAME=1.3.69>Thou shalt get kings, though thou be none:</A><br>
+<A NAME=1.3.70>So all hail, Macbeth and Banquo!</A><br>
+</blockquote>
+
+<A NAME=speech26><b>First Witch</b></a>
+<blockquote>
+<A NAME=1.3.71>Banquo and Macbeth, all hail!</A><br>
+</blockquote>
+
+<A NAME=speech27><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.72>Stay, you imperfect speakers, tell me more:</A><br>
+<A NAME=1.3.73>By Sinel's death I know I am thane of Glamis;</A><br>
+<A NAME=1.3.74>But how of Cawdor? the thane of Cawdor lives,</A><br>
+<A NAME=1.3.75>A prosperous gentleman; and to be king</A><br>
+<A NAME=1.3.76>Stands not within the prospect of belief,</A><br>
+<A NAME=1.3.77>No more than to be Cawdor. Say from whence</A><br>
+<A NAME=1.3.78>You owe this strange intelligence? or why</A><br>
+<A NAME=1.3.79>Upon this blasted heath you stop our way</A><br>
+<A NAME=1.3.80>With such prophetic greeting? Speak, I charge you.</A><br>
+<p><i>Witches vanish</i></p>
+</blockquote>
+
+<A NAME=speech28><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.81>The earth hath bubbles, as the water has,</A><br>
+<A NAME=1.3.82>And these are of them. Whither are they vanish'd?</A><br>
+</blockquote>
+
+<A NAME=speech29><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.83>Into the air; and what seem'd corporal melted</A><br>
+<A NAME=1.3.84>As breath into the wind. Would they had stay'd!</A><br>
+</blockquote>
+
+<A NAME=speech30><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.85>Were such things here as we do speak about?</A><br>
+<A NAME=1.3.86>Or have we eaten on the insane root</A><br>
+<A NAME=1.3.87>That takes the reason prisoner?</A><br>
+</blockquote>
+
+<A NAME=speech31><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.88>Your children shall be kings.</A><br>
+</blockquote>
+
+<A NAME=speech32><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.89>You shall be king.</A><br>
+</blockquote>
+
+<A NAME=speech33><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.90>And thane of Cawdor too: went it not so?</A><br>
+</blockquote>
+
+<A NAME=speech34><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.91>To the selfsame tune and words. Who's here?</A><br>
+<p><i>Enter ROSS and ANGUS</i></p>
+</blockquote>
+
+<A NAME=speech35><b>ROSS</b></a>
+<blockquote>
+<A NAME=1.3.92>The king hath happily received, Macbeth,</A><br>
+<A NAME=1.3.93>The news of thy success; and when he reads</A><br>
+<A NAME=1.3.94>Thy personal venture in the rebels' fight,</A><br>
+<A NAME=1.3.95>His wonders and his praises do contend</A><br>
+<A NAME=1.3.96>Which should be thine or his: silenced with that,</A><br>
+<A NAME=1.3.97>In viewing o'er the rest o' the selfsame day,</A><br>
+<A NAME=1.3.98>He finds thee in the stout Norweyan ranks,</A><br>
+<A NAME=1.3.99>Nothing afeard of what thyself didst make,</A><br>
+<A NAME=1.3.100>Strange images of death. As thick as hail</A><br>
+<A NAME=1.3.101>Came post with post; and every one did bear</A><br>
+<A NAME=1.3.102>Thy praises in his kingdom's great defence,</A><br>
+<A NAME=1.3.103>And pour'd them down before him.</A><br>
+</blockquote>
+
+<A NAME=speech36><b>ANGUS</b></a>
+<blockquote>
+<A NAME=1.3.104>We are sent</A><br>
+<A NAME=1.3.105>To give thee from our royal master thanks;</A><br>
+<A NAME=1.3.106>Only to herald thee into his sight,</A><br>
+<A NAME=1.3.107>Not pay thee.</A><br>
+</blockquote>
+
+<A NAME=speech37><b>ROSS</b></a>
+<blockquote>
+<A NAME=1.3.108>And, for an earnest of a greater honour,</A><br>
+<A NAME=1.3.109>He bade me, from him, call thee thane of Cawdor:</A><br>
+<A NAME=1.3.110>In which addition, hail, most worthy thane!</A><br>
+<A NAME=1.3.111>For it is thine.</A><br>
+</blockquote>
+
+<A NAME=speech38><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.112> What, can the devil speak true?</A><br>
+</blockquote>
+
+<A NAME=speech39><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.113>The thane of Cawdor lives: why do you dress me</A><br>
+<A NAME=1.3.114>In borrow'd robes?</A><br>
+</blockquote>
+
+<A NAME=speech40><b>ANGUS</b></a>
+<blockquote>
+<A NAME=1.3.115> Who was the thane lives yet;</A><br>
+<A NAME=1.3.116>But under heavy judgment bears that life</A><br>
+<A NAME=1.3.117>Which he deserves to lose. Whether he was combined</A><br>
+<A NAME=1.3.118>With those of Norway, or did line the rebel</A><br>
+<A NAME=1.3.119>With hidden help and vantage, or that with both</A><br>
+<A NAME=1.3.120>He labour'd in his country's wreck, I know not;</A><br>
+<A NAME=1.3.121>But treasons capital, confess'd and proved,</A><br>
+<A NAME=1.3.122>Have overthrown him.</A><br>
+</blockquote>
+
+<A NAME=speech41><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.123>[Aside] Glamis, and thane of Cawdor!</A><br>
+<A NAME=1.3.124>The greatest is behind.</A><br>
+<p><i>To ROSS and ANGUS</i></p>
+<A NAME=1.3.125>Thanks for your pains.</A><br>
+<p><i>To BANQUO</i></p>
+<A NAME=1.3.126>Do you not hope your children shall be kings,</A><br>
+<A NAME=1.3.127>When those that gave the thane of Cawdor to me</A><br>
+<A NAME=1.3.128>Promised no less to them?</A><br>
+</blockquote>
+
+<A NAME=speech42><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.129>That trusted home</A><br>
+<A NAME=1.3.130>Might yet enkindle you unto the crown,</A><br>
+<A NAME=1.3.131>Besides the thane of Cawdor. But 'tis strange:</A><br>
+<A NAME=1.3.132>And oftentimes, to win us to our harm,</A><br>
+<A NAME=1.3.133>The instruments of darkness tell us truths,</A><br>
+<A NAME=1.3.134>Win us with honest trifles, to betray's</A><br>
+<A NAME=1.3.135>In deepest consequence.</A><br>
+<A NAME=1.3.136>Cousins, a word, I pray you.</A><br>
+</blockquote>
+
+<A NAME=speech43><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.137>[Aside] Two truths are told,</A><br>
+<A NAME=1.3.138>As happy prologues to the swelling act</A><br>
+<A NAME=1.3.139>Of the imperial theme.--I thank you, gentlemen.</A><br>
+<p><i>Aside</i></p>
+<A NAME=1.3.140>Cannot be ill, cannot be good: if ill,</A><br>
+<A NAME=1.3.141>Why hath it given me earnest of success,</A><br>
+<A NAME=1.3.142>Commencing in a truth? I am thane of Cawdor:</A><br>
+<A NAME=1.3.143>If good, why do I yield to that suggestion</A><br>
+<A NAME=1.3.144>Whose horrid image doth unfix my hair</A><br>
+<A NAME=1.3.145>And make my seated heart knock at my ribs,</A><br>
+<A NAME=1.3.146>Against the use of nature? Present fears</A><br>
+<A NAME=1.3.147>Are less than horrible imaginings:</A><br>
+<A NAME=1.3.148>My thought, whose murder yet is but fantastical,</A><br>
+<A NAME=1.3.149>Shakes so my single state of man that function</A><br>
+<A NAME=1.3.150>Is smother'd in surmise, and nothing is</A><br>
+<A NAME=1.3.151>But what is not.</A><br>
+</blockquote>
+
+<A NAME=speech44><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.152> Look, how our partner's rapt.</A><br>
+</blockquote>
+
+<A NAME=speech45><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.153>[Aside] If chance will have me king, why, chance may crown me,</A><br>
+<A NAME=1.3.154>Without my stir.</A><br>
+</blockquote>
+
+<A NAME=speech46><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.155> New horrors come upon him,</A><br>
+<A NAME=1.3.156>Like our strange garments, cleave not to their mould</A><br>
+<A NAME=1.3.157>But with the aid of use.</A><br>
+</blockquote>
+
+<A NAME=speech47><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.158>[Aside] Come what come may,</A><br>
+<A NAME=1.3.159>Time and the hour runs through the roughest day.</A><br>
+</blockquote>
+
+<A NAME=speech48><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.160>Worthy Macbeth, we stay upon your leisure.</A><br>
+</blockquote>
+
+<A NAME=speech49><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.161>Give me your favour: my dull brain was wrought</A><br>
+<A NAME=1.3.162>With things forgotten. Kind gentlemen, your pains</A><br>
+<A NAME=1.3.163>Are register'd where every day I turn</A><br>
+<A NAME=1.3.164>The leaf to read them. Let us toward the king.</A><br>
+<A NAME=1.3.165>Think upon what hath chanced, and, at more time,</A><br>
+<A NAME=1.3.166>The interim having weigh'd it, let us speak</A><br>
+<A NAME=1.3.167>Our free hearts each to other.</A><br>
+</blockquote>
+
+<A NAME=speech50><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.3.168>Very gladly.</A><br>
+</blockquote>
+
+<A NAME=speech51><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.3.169>Till then, enough. Come, friends.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE IV. Forres. The palace.</h3>
+<p><blockquote>
+<i>Flourish. Enter DUNCAN, MALCOLM, DONALBAIN, LENNOX, and Attendants</i>
+</blockquote>
+
+<A NAME=speech1><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.4.1>Is execution done on Cawdor? Are not</A><br>
+<A NAME=1.4.2>Those in commission yet return'd?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=1.4.3>My liege,</A><br>
+<A NAME=1.4.4>They are not yet come back. But I have spoke</A><br>
+<A NAME=1.4.5>With one that saw him die: who did report</A><br>
+<A NAME=1.4.6>That very frankly he confess'd his treasons,</A><br>
+<A NAME=1.4.7>Implored your highness' pardon and set forth</A><br>
+<A NAME=1.4.8>A deep repentance: nothing in his life</A><br>
+<A NAME=1.4.9>Became him like the leaving it; he died</A><br>
+<A NAME=1.4.10>As one that had been studied in his death</A><br>
+<A NAME=1.4.11>To throw away the dearest thing he owed,</A><br>
+<A NAME=1.4.12>As 'twere a careless trifle.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.4.13>There's no art</A><br>
+<A NAME=1.4.14>To find the mind's construction in the face:</A><br>
+<A NAME=1.4.15>He was a gentleman on whom I built</A><br>
+<A NAME=1.4.16>An absolute trust.</A><br>
+<p><i>Enter MACBETH, BANQUO, ROSS, and ANGUS</i></p>
+<A NAME=1.4.17>O worthiest cousin!</A><br>
+<A NAME=1.4.18>The sin of my ingratitude even now</A><br>
+<A NAME=1.4.19>Was heavy on me: thou art so far before</A><br>
+<A NAME=1.4.20>That swiftest wing of recompense is slow</A><br>
+<A NAME=1.4.21>To overtake thee. Would thou hadst less deserved,</A><br>
+<A NAME=1.4.22>That the proportion both of thanks and payment</A><br>
+<A NAME=1.4.23>Might have been mine! only I have left to say,</A><br>
+<A NAME=1.4.24>More is thy due than more than all can pay.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.4.25>The service and the loyalty I owe,</A><br>
+<A NAME=1.4.26>In doing it, pays itself. Your highness' part</A><br>
+<A NAME=1.4.27>Is to receive our duties; and our duties</A><br>
+<A NAME=1.4.28>Are to your throne and state children and servants,</A><br>
+<A NAME=1.4.29>Which do but what they should, by doing every thing</A><br>
+<A NAME=1.4.30>Safe toward your love and honour.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.4.31>Welcome hither:</A><br>
+<A NAME=1.4.32>I have begun to plant thee, and will labour</A><br>
+<A NAME=1.4.33>To make thee full of growing. Noble Banquo,</A><br>
+<A NAME=1.4.34>That hast no less deserved, nor must be known</A><br>
+<A NAME=1.4.35>No less to have done so, let me enfold thee</A><br>
+<A NAME=1.4.36>And hold thee to my heart.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.4.37>There if I grow,</A><br>
+<A NAME=1.4.38>The harvest is your own.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.4.39>My plenteous joys,</A><br>
+<A NAME=1.4.40>Wanton in fulness, seek to hide themselves</A><br>
+<A NAME=1.4.41>In drops of sorrow. Sons, kinsmen, thanes,</A><br>
+<A NAME=1.4.42>And you whose places are the nearest, know</A><br>
+<A NAME=1.4.43>We will establish our estate upon</A><br>
+<A NAME=1.4.44>Our eldest, Malcolm, whom we name hereafter</A><br>
+<A NAME=1.4.45>The Prince of Cumberland; which honour must</A><br>
+<A NAME=1.4.46>Not unaccompanied invest him only,</A><br>
+<A NAME=1.4.47>But signs of nobleness, like stars, shall shine</A><br>
+<A NAME=1.4.48>On all deservers. From hence to Inverness,</A><br>
+<A NAME=1.4.49>And bind us further to you.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.4.50>The rest is labour, which is not used for you:</A><br>
+<A NAME=1.4.51>I'll be myself the harbinger and make joyful</A><br>
+<A NAME=1.4.52>The hearing of my wife with your approach;</A><br>
+<A NAME=1.4.53>So humbly take my leave.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.4.54>My worthy Cawdor!</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.4.55>[Aside] The Prince of Cumberland! that is a step</A><br>
+<A NAME=1.4.56>On which I must fall down, or else o'erleap,</A><br>
+<A NAME=1.4.57>For in my way it lies. Stars, hide your fires;</A><br>
+<A NAME=1.4.58>Let not light see my black and deep desires:</A><br>
+<A NAME=1.4.59>The eye wink at the hand; yet let that be,</A><br>
+<A NAME=1.4.60>Which the eye fears, when it is done, to see.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech11><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.4.61>True, worthy Banquo; he is full so valiant,</A><br>
+<A NAME=1.4.62>And in his commendations I am fed;</A><br>
+<A NAME=1.4.63>It is a banquet to me. Let's after him,</A><br>
+<A NAME=1.4.64>Whose care is gone before to bid us welcome:</A><br>
+<A NAME=1.4.65>It is a peerless kinsman.</A><br>
+<p><i>Flourish. Exeunt</i></p>
+</blockquote>
+<h3>SCENE V. Inverness. Macbeth's castle.</h3>
+<p><blockquote>
+<i>Enter LADY MACBETH, reading a letter</i>
+</blockquote>
+
+<A NAME=speech1><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.1>'They met me in the day of success: and I have</A><br>
+<A NAME=1.5.2>learned by the perfectest report, they have more in</A><br>
+<A NAME=1.5.3>them than mortal knowledge. When I burned in desire</A><br>
+<A NAME=1.5.4>to question them further, they made themselves air,</A><br>
+<A NAME=1.5.5>into which they vanished. Whiles I stood rapt in</A><br>
+<A NAME=1.5.6>the wonder of it, came missives from the king, who</A><br>
+<A NAME=1.5.7>all-hailed me 'Thane of Cawdor;' by which title,</A><br>
+<A NAME=1.5.8>before, these weird sisters saluted me, and referred</A><br>
+<A NAME=1.5.9>me to the coming on of time, with 'Hail, king that</A><br>
+<A NAME=1.5.10>shalt be!' This have I thought good to deliver</A><br>
+<A NAME=1.5.11>thee, my dearest partner of greatness, that thou</A><br>
+<A NAME=1.5.12>mightst not lose the dues of rejoicing, by being</A><br>
+<A NAME=1.5.13>ignorant of what greatness is promised thee. Lay it</A><br>
+<A NAME=1.5.14>to thy heart, and farewell.'</A><br>
+<A NAME=1.5.15>Glamis thou art, and Cawdor; and shalt be</A><br>
+<A NAME=1.5.16>What thou art promised: yet do I fear thy nature;</A><br>
+<A NAME=1.5.17>It is too full o' the milk of human kindness</A><br>
+<A NAME=1.5.18>To catch the nearest way: thou wouldst be great;</A><br>
+<A NAME=1.5.19>Art not without ambition, but without</A><br>
+<A NAME=1.5.20>The illness should attend it: what thou wouldst highly,</A><br>
+<A NAME=1.5.21>That wouldst thou holily; wouldst not play false,</A><br>
+<A NAME=1.5.22>And yet wouldst wrongly win: thou'ldst have, great Glamis,</A><br>
+<A NAME=1.5.23>That which cries 'Thus thou must do, if thou have it;</A><br>
+<A NAME=1.5.24>And that which rather thou dost fear to do</A><br>
+<A NAME=1.5.25>Than wishest should be undone.' Hie thee hither,</A><br>
+<A NAME=1.5.26>That I may pour my spirits in thine ear;</A><br>
+<A NAME=1.5.27>And chastise with the valour of my tongue</A><br>
+<A NAME=1.5.28>All that impedes thee from the golden round,</A><br>
+<A NAME=1.5.29>Which fate and metaphysical aid doth seem</A><br>
+<A NAME=1.5.30>To have thee crown'd withal.</A><br>
+<p><i>Enter a Messenger</i></p>
+<A NAME=1.5.31>What is your tidings?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Messenger</b></a>
+<blockquote>
+<A NAME=1.5.32>The king comes here to-night.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.33>Thou'rt mad to say it:</A><br>
+<A NAME=1.5.34>Is not thy master with him? who, were't so,</A><br>
+<A NAME=1.5.35>Would have inform'd for preparation.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>Messenger</b></a>
+<blockquote>
+<A NAME=1.5.36>So please you, it is true: our thane is coming:</A><br>
+<A NAME=1.5.37>One of my fellows had the speed of him,</A><br>
+<A NAME=1.5.38>Who, almost dead for breath, had scarcely more</A><br>
+<A NAME=1.5.39>Than would make up his message.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.40>Give him tending;</A><br>
+<A NAME=1.5.41>He brings great news.</A><br>
+<p><i>Exit Messenger</i></p>
+<A NAME=1.5.42>The raven himself is hoarse</A><br>
+<A NAME=1.5.43>That croaks the fatal entrance of Duncan</A><br>
+<A NAME=1.5.44>Under my battlements. Come, you spirits</A><br>
+<A NAME=1.5.45>That tend on mortal thoughts, unsex me here,</A><br>
+<A NAME=1.5.46>And fill me from the crown to the toe top-full</A><br>
+<A NAME=1.5.47>Of direst cruelty! make thick my blood;</A><br>
+<A NAME=1.5.48>Stop up the access and passage to remorse,</A><br>
+<A NAME=1.5.49>That no compunctious visitings of nature</A><br>
+<A NAME=1.5.50>Shake my fell purpose, nor keep peace between</A><br>
+<A NAME=1.5.51>The effect and it! Come to my woman's breasts,</A><br>
+<A NAME=1.5.52>And take my milk for gall, you murdering ministers,</A><br>
+<A NAME=1.5.53>Wherever in your sightless substances</A><br>
+<A NAME=1.5.54>You wait on nature's mischief! Come, thick night,</A><br>
+<A NAME=1.5.55>And pall thee in the dunnest smoke of hell,</A><br>
+<A NAME=1.5.56>That my keen knife see not the wound it makes,</A><br>
+<A NAME=1.5.57>Nor heaven peep through the blanket of the dark,</A><br>
+<A NAME=1.5.58>To cry 'Hold, hold!'</A><br>
+<p><i>Enter MACBETH</i></p>
+<A NAME=1.5.59>Great Glamis! worthy Cawdor!</A><br>
+<A NAME=1.5.60>Greater than both, by the all-hail hereafter!</A><br>
+<A NAME=1.5.61>Thy letters have transported me beyond</A><br>
+<A NAME=1.5.62>This ignorant present, and I feel now</A><br>
+<A NAME=1.5.63>The future in the instant.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.64>My dearest love,</A><br>
+<A NAME=1.5.65>Duncan comes here to-night.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.66>And when goes hence?</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.67>To-morrow, as he purposes.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.68>O, never</A><br>
+<A NAME=1.5.69>Shall sun that morrow see!</A><br>
+<A NAME=1.5.70>Your face, my thane, is as a book where men</A><br>
+<A NAME=1.5.71>May read strange matters. To beguile the time,</A><br>
+<A NAME=1.5.72>Look like the time; bear welcome in your eye,</A><br>
+<A NAME=1.5.73>Your hand, your tongue: look like the innocent flower,</A><br>
+<A NAME=1.5.74>But be the serpent under't. He that's coming</A><br>
+<A NAME=1.5.75>Must be provided for: and you shall put</A><br>
+<A NAME=1.5.76>This night's great business into my dispatch;</A><br>
+<A NAME=1.5.77>Which shall to all our nights and days to come</A><br>
+<A NAME=1.5.78>Give solely sovereign sway and masterdom.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.79>We will speak further.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.5.80>Only look up clear;</A><br>
+<A NAME=1.5.81>To alter favour ever is to fear:</A><br>
+<A NAME=1.5.82>Leave all the rest to me.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE VI. Before Macbeth's castle.</h3>
+<p><blockquote>
+<i>Hautboys and torches. Enter DUNCAN, MALCOLM, DONALBAIN, BANQUO, LENNOX, MACDUFF, ROSS, ANGUS, and Attendants</i>
+</blockquote>
+
+<A NAME=speech1><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.6.1>This castle hath a pleasant seat; the air</A><br>
+<A NAME=1.6.2>Nimbly and sweetly recommends itself</A><br>
+<A NAME=1.6.3>Unto our gentle senses.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>BANQUO</b></a>
+<blockquote>
+<A NAME=1.6.4>This guest of summer,</A><br>
+<A NAME=1.6.5>The temple-haunting martlet, does approve,</A><br>
+<A NAME=1.6.6>By his loved mansionry, that the heaven's breath</A><br>
+<A NAME=1.6.7>Smells wooingly here: no jutty, frieze,</A><br>
+<A NAME=1.6.8>Buttress, nor coign of vantage, but this bird</A><br>
+<A NAME=1.6.9>Hath made his pendent bed and procreant cradle:</A><br>
+<A NAME=1.6.10>Where they most breed and haunt, I have observed,</A><br>
+<A NAME=1.6.11>The air is delicate.</A><br>
+<p><i>Enter LADY MACBETH</i></p>
+</blockquote>
+
+<A NAME=speech3><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.6.12>See, see, our honour'd hostess!</A><br>
+<A NAME=1.6.13>The love that follows us sometime is our trouble,</A><br>
+<A NAME=1.6.14>Which still we thank as love. Herein I teach you</A><br>
+<A NAME=1.6.15>How you shall bid God 'ild us for your pains,</A><br>
+<A NAME=1.6.16>And thank us for your trouble.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.6.17>All our service</A><br>
+<A NAME=1.6.18>In every point twice done and then done double</A><br>
+<A NAME=1.6.19>Were poor and single business to contend</A><br>
+<A NAME=1.6.20>Against those honours deep and broad wherewith</A><br>
+<A NAME=1.6.21>Your majesty loads our house: for those of old,</A><br>
+<A NAME=1.6.22>And the late dignities heap'd up to them,</A><br>
+<A NAME=1.6.23>We rest your hermits.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.6.24>Where's the thane of Cawdor?</A><br>
+<A NAME=1.6.25>We coursed him at the heels, and had a purpose</A><br>
+<A NAME=1.6.26>To be his purveyor: but he rides well;</A><br>
+<A NAME=1.6.27>And his great love, sharp as his spur, hath holp him</A><br>
+<A NAME=1.6.28>To his home before us. Fair and noble hostess,</A><br>
+<A NAME=1.6.29>We are your guest to-night.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.6.30>Your servants ever</A><br>
+<A NAME=1.6.31>Have theirs, themselves and what is theirs, in compt,</A><br>
+<A NAME=1.6.32>To make their audit at your highness' pleasure,</A><br>
+<A NAME=1.6.33>Still to return your own.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>DUNCAN</b></a>
+<blockquote>
+<A NAME=1.6.34>Give me your hand;</A><br>
+<A NAME=1.6.35>Conduct me to mine host: we love him highly,</A><br>
+<A NAME=1.6.36>And shall continue our graces towards him.</A><br>
+<A NAME=1.6.37>By your leave, hostess.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE VII. Macbeth's castle.</h3>
+<p><blockquote>
+<i>Hautboys and torches. Enter a Sewer, and divers Servants with dishes and service, and pass over the stage. Then enter MACBETH</i>
+</blockquote>
+
+<A NAME=speech1><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.1>If it were done when 'tis done, then 'twere well</A><br>
+<A NAME=1.7.2>It were done quickly: if the assassination</A><br>
+<A NAME=1.7.3>Could trammel up the consequence, and catch</A><br>
+<A NAME=1.7.4>With his surcease success; that but this blow</A><br>
+<A NAME=1.7.5>Might be the be-all and the end-all here,</A><br>
+<A NAME=1.7.6>But here, upon this bank and shoal of time,</A><br>
+<A NAME=1.7.7>We'ld jump the life to come. But in these cases</A><br>
+<A NAME=1.7.8>We still have judgment here; that we but teach</A><br>
+<A NAME=1.7.9>Bloody instructions, which, being taught, return</A><br>
+<A NAME=1.7.10>To plague the inventor: this even-handed justice</A><br>
+<A NAME=1.7.11>Commends the ingredients of our poison'd chalice</A><br>
+<A NAME=1.7.12>To our own lips. He's here in double trust;</A><br>
+<A NAME=1.7.13>First, as I am his kinsman and his subject,</A><br>
+<A NAME=1.7.14>Strong both against the deed; then, as his host,</A><br>
+<A NAME=1.7.15>Who should against his murderer shut the door,</A><br>
+<A NAME=1.7.16>Not bear the knife myself. Besides, this Duncan</A><br>
+<A NAME=1.7.17>Hath borne his faculties so meek, hath been</A><br>
+<A NAME=1.7.18>So clear in his great office, that his virtues</A><br>
+<A NAME=1.7.19>Will plead like angels, trumpet-tongued, against</A><br>
+<A NAME=1.7.20>The deep damnation of his taking-off;</A><br>
+<A NAME=1.7.21>And pity, like a naked new-born babe,</A><br>
+<A NAME=1.7.22>Striding the blast, or heaven's cherubim, horsed</A><br>
+<A NAME=1.7.23>Upon the sightless couriers of the air,</A><br>
+<A NAME=1.7.24>Shall blow the horrid deed in every eye,</A><br>
+<A NAME=1.7.25>That tears shall drown the wind. I have no spur</A><br>
+<A NAME=1.7.26>To prick the sides of my intent, but only</A><br>
+<A NAME=1.7.27>Vaulting ambition, which o'erleaps itself</A><br>
+<A NAME=1.7.28>And falls on the other.</A><br>
+<p><i>Enter LADY MACBETH</i></p>
+<A NAME=1.7.29>How now! what news?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.30>He has almost supp'd: why have you left the chamber?</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.31>Hath he ask'd for me?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.32>Know you not he has?</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.33>We will proceed no further in this business:</A><br>
+<A NAME=1.7.34>He hath honour'd me of late; and I have bought</A><br>
+<A NAME=1.7.35>Golden opinions from all sorts of people,</A><br>
+<A NAME=1.7.36>Which would be worn now in their newest gloss,</A><br>
+<A NAME=1.7.37>Not cast aside so soon.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.38>Was the hope drunk</A><br>
+<A NAME=1.7.39>Wherein you dress'd yourself? hath it slept since?</A><br>
+<A NAME=1.7.40>And wakes it now, to look so green and pale</A><br>
+<A NAME=1.7.41>At what it did so freely? From this time</A><br>
+<A NAME=1.7.42>Such I account thy love. Art thou afeard</A><br>
+<A NAME=1.7.43>To be the same in thine own act and valour</A><br>
+<A NAME=1.7.44>As thou art in desire? Wouldst thou have that</A><br>
+<A NAME=1.7.45>Which thou esteem'st the ornament of life,</A><br>
+<A NAME=1.7.46>And live a coward in thine own esteem,</A><br>
+<A NAME=1.7.47>Letting 'I dare not' wait upon 'I would,'</A><br>
+<A NAME=1.7.48>Like the poor cat i' the adage?</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.49>Prithee, peace:</A><br>
+<A NAME=1.7.50>I dare do all that may become a man;</A><br>
+<A NAME=1.7.51>Who dares do more is none.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.52>What beast was't, then,</A><br>
+<A NAME=1.7.53>That made you break this enterprise to me?</A><br>
+<A NAME=1.7.54>When you durst do it, then you were a man;</A><br>
+<A NAME=1.7.55>And, to be more than what you were, you would</A><br>
+<A NAME=1.7.56>Be so much more the man. Nor time nor place</A><br>
+<A NAME=1.7.57>Did then adhere, and yet you would make both:</A><br>
+<A NAME=1.7.58>They have made themselves, and that their fitness now</A><br>
+<A NAME=1.7.59>Does unmake you. I have given suck, and know</A><br>
+<A NAME=1.7.60>How tender 'tis to love the babe that milks me:</A><br>
+<A NAME=1.7.61>I would, while it was smiling in my face,</A><br>
+<A NAME=1.7.62>Have pluck'd my nipple from his boneless gums,</A><br>
+<A NAME=1.7.63>And dash'd the brains out, had I so sworn as you</A><br>
+<A NAME=1.7.64>Have done to this.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.65> If we should fail?</A><br>
+</blockquote>
+
+<A NAME=speech10><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.66>We fail!</A><br>
+<A NAME=1.7.67>But screw your courage to the sticking-place,</A><br>
+<A NAME=1.7.68>And we'll not fail. When Duncan is asleep--</A><br>
+<A NAME=1.7.69>Whereto the rather shall his day's hard journey</A><br>
+<A NAME=1.7.70>Soundly invite him--his two chamberlains</A><br>
+<A NAME=1.7.71>Will I with wine and wassail so convince</A><br>
+<A NAME=1.7.72>That memory, the warder of the brain,</A><br>
+<A NAME=1.7.73>Shall be a fume, and the receipt of reason</A><br>
+<A NAME=1.7.74>A limbeck only: when in swinish sleep</A><br>
+<A NAME=1.7.75>Their drenched natures lie as in a death,</A><br>
+<A NAME=1.7.76>What cannot you and I perform upon</A><br>
+<A NAME=1.7.77>The unguarded Duncan? what not put upon</A><br>
+<A NAME=1.7.78>His spongy officers, who shall bear the guilt</A><br>
+<A NAME=1.7.79>Of our great quell?</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.80>Bring forth men-children only;</A><br>
+<A NAME=1.7.81>For thy undaunted mettle should compose</A><br>
+<A NAME=1.7.82>Nothing but males. Will it not be received,</A><br>
+<A NAME=1.7.83>When we have mark'd with blood those sleepy two</A><br>
+<A NAME=1.7.84>Of his own chamber and used their very daggers,</A><br>
+<A NAME=1.7.85>That they have done't?</A><br>
+</blockquote>
+
+<A NAME=speech12><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.86>Who dares receive it other,</A><br>
+<A NAME=1.7.87>As we shall make our griefs and clamour roar</A><br>
+<A NAME=1.7.88>Upon his death?</A><br>
+</blockquote>
+
+<A NAME=speech13><b>MACBETH</b></a>
+<blockquote>
+<A NAME=1.7.89> I am settled, and bend up</A><br>
+<A NAME=1.7.90>Each corporal agent to this terrible feat.</A><br>
+<A NAME=1.7.91>Away, and mock the time with fairest show:</A><br>
+<A NAME=1.7.92>False face must hide what the false heart doth know.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote><p>
+<H3>ACT II</h3>
+<h3>SCENE I. Court of Macbeth's castle.</h3>
+<p><blockquote>
+<i>Enter BANQUO, and FLEANCE bearing a torch before him</i>
+</blockquote>
+
+<A NAME=speech1><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.1>How goes the night, boy?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>FLEANCE</b></a>
+<blockquote>
+<A NAME=2.1.2>The moon is down; I have not heard the clock.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.3>And she goes down at twelve.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>FLEANCE</b></a>
+<blockquote>
+<A NAME=2.1.4>I take't, 'tis later, sir.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.5>Hold, take my sword. There's husbandry in heaven;</A><br>
+<A NAME=2.1.6>Their candles are all out. Take thee that too.</A><br>
+<A NAME=2.1.7>A heavy summons lies like lead upon me,</A><br>
+<A NAME=2.1.8>And yet I would not sleep: merciful powers,</A><br>
+<A NAME=2.1.9>Restrain in me the cursed thoughts that nature</A><br>
+<A NAME=2.1.10>Gives way to in repose!</A><br>
+<p><i>Enter MACBETH, and a Servant with a torch</i></p>
+<A NAME=2.1.11>Give me my sword.</A><br>
+<A NAME=2.1.12>Who's there?</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.1.13>A friend.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.14>What, sir, not yet at rest? The king's a-bed:</A><br>
+<A NAME=2.1.15>He hath been in unusual pleasure, and</A><br>
+<A NAME=2.1.16>Sent forth great largess to your offices.</A><br>
+<A NAME=2.1.17>This diamond he greets your wife withal,</A><br>
+<A NAME=2.1.18>By the name of most kind hostess; and shut up</A><br>
+<A NAME=2.1.19>In measureless content.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.1.20>Being unprepared,</A><br>
+<A NAME=2.1.21>Our will became the servant to defect;</A><br>
+<A NAME=2.1.22>Which else should free have wrought.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.23>All's well.</A><br>
+<A NAME=2.1.24>I dreamt last night of the three weird sisters:</A><br>
+<A NAME=2.1.25>To you they have show'd some truth.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.1.26>I think not of them:</A><br>
+<A NAME=2.1.27>Yet, when we can entreat an hour to serve,</A><br>
+<A NAME=2.1.28>We would spend it in some words upon that business,</A><br>
+<A NAME=2.1.29>If you would grant the time.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.30>At your kind'st leisure.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.1.31>If you shall cleave to my consent, when 'tis,</A><br>
+<A NAME=2.1.32>It shall make honour for you.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.33>So I lose none</A><br>
+<A NAME=2.1.34>In seeking to augment it, but still keep</A><br>
+<A NAME=2.1.35>My bosom franchised and allegiance clear,</A><br>
+<A NAME=2.1.36>I shall be counsell'd.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.1.37>Good repose the while!</A><br>
+</blockquote>
+
+<A NAME=speech15><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.1.38>Thanks, sir: the like to you!</A><br>
+<p><i>Exeunt BANQUO and FLEANCE</i></p>
+</blockquote>
+
+<A NAME=speech16><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.1.39>Go bid thy mistress, when my drink is ready,</A><br>
+<A NAME=2.1.40>She strike upon the bell. Get thee to bed.</A><br>
+<p><i>Exit Servant</i></p>
+<A NAME=2.1.41>Is this a dagger which I see before me,</A><br>
+<A NAME=2.1.42>The handle toward my hand? Come, let me clutch thee.</A><br>
+<A NAME=2.1.43>I have thee not, and yet I see thee still.</A><br>
+<A NAME=2.1.44>Art thou not, fatal vision, sensible</A><br>
+<A NAME=2.1.45>To feeling as to sight? or art thou but</A><br>
+<A NAME=2.1.46>A dagger of the mind, a false creation,</A><br>
+<A NAME=2.1.47>Proceeding from the heat-oppressed brain?</A><br>
+<A NAME=2.1.48>I see thee yet, in form as palpable</A><br>
+<A NAME=2.1.49>As this which now I draw.</A><br>
+<A NAME=2.1.50>Thou marshall'st me the way that I was going;</A><br>
+<A NAME=2.1.51>And such an instrument I was to use.</A><br>
+<A NAME=2.1.52>Mine eyes are made the fools o' the other senses,</A><br>
+<A NAME=2.1.53>Or else worth all the rest; I see thee still,</A><br>
+<A NAME=2.1.54>And on thy blade and dudgeon gouts of blood,</A><br>
+<A NAME=2.1.55>Which was not so before. There's no such thing:</A><br>
+<A NAME=2.1.56>It is the bloody business which informs</A><br>
+<A NAME=2.1.57>Thus to mine eyes. Now o'er the one halfworld</A><br>
+<A NAME=2.1.58>Nature seems dead, and wicked dreams abuse</A><br>
+<A NAME=2.1.59>The curtain'd sleep; witchcraft celebrates</A><br>
+<A NAME=2.1.60>Pale Hecate's offerings, and wither'd murder,</A><br>
+<A NAME=2.1.61>Alarum'd by his sentinel, the wolf,</A><br>
+<A NAME=2.1.62>Whose howl's his watch, thus with his stealthy pace.</A><br>
+<A NAME=2.1.63>With Tarquin's ravishing strides, towards his design</A><br>
+<A NAME=2.1.64>Moves like a ghost. Thou sure and firm-set earth,</A><br>
+<A NAME=2.1.65>Hear not my steps, which way they walk, for fear</A><br>
+<A NAME=2.1.66>Thy very stones prate of my whereabout,</A><br>
+<A NAME=2.1.67>And take the present horror from the time,</A><br>
+<A NAME=2.1.68>Which now suits with it. Whiles I threat, he lives:</A><br>
+<A NAME=2.1.69>Words to the heat of deeds too cold breath gives.</A><br>
+<p><i>A bell rings</i></p>
+<A NAME=2.1.70>I go, and it is done; the bell invites me.</A><br>
+<A NAME=2.1.71>Hear it not, Duncan; for it is a knell</A><br>
+<A NAME=2.1.72>That summons thee to heaven or to hell.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+<h3>SCENE II. The same.</h3>
+<p><blockquote>
+<i>Enter LADY MACBETH</i>
+</blockquote>
+
+<A NAME=speech1><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.1>That which hath made them drunk hath made me bold;</A><br>
+<A NAME=2.2.2>What hath quench'd them hath given me fire.</A><br>
+<A NAME=2.2.3>Hark! Peace!</A><br>
+<A NAME=2.2.4>It was the owl that shriek'd, the fatal bellman,</A><br>
+<A NAME=2.2.5>Which gives the stern'st good-night. He is about it:</A><br>
+<A NAME=2.2.6>The doors are open; and the surfeited grooms</A><br>
+<A NAME=2.2.7>Do mock their charge with snores: I have drugg'd</A><br>
+<A NAME=2.2.8>their possets,</A><br>
+<A NAME=2.2.9>That death and nature do contend about them,</A><br>
+<A NAME=2.2.10>Whether they live or die.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.11>[Within] Who's there? what, ho!</A><br>
+</blockquote>
+
+<A NAME=speech3><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.12>Alack, I am afraid they have awaked,</A><br>
+<A NAME=2.2.13>And 'tis not done. The attempt and not the deed</A><br>
+<A NAME=2.2.14>Confounds us. Hark! I laid their daggers ready;</A><br>
+<A NAME=2.2.15>He could not miss 'em. Had he not resembled</A><br>
+<A NAME=2.2.16>My father as he slept, I had done't.</A><br>
+<p><i>Enter MACBETH</i></p>
+<A NAME=2.2.17>My husband!</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.18>I have done the deed. Didst thou not hear a noise?</A><br>
+</blockquote>
+
+<A NAME=speech5><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.19>I heard the owl scream and the crickets cry.</A><br>
+<A NAME=2.2.20>Did not you speak?</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.21> When?</A><br>
+</blockquote>
+
+<A NAME=speech7><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.22>Now.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.23>As I descended?</A><br>
+</blockquote>
+
+<A NAME=speech9><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.24>Ay.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.25>Hark!</A><br>
+<A NAME=2.2.26>Who lies i' the second chamber?</A><br>
+</blockquote>
+
+<A NAME=speech11><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.27>Donalbain.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.28>This is a sorry sight.</A><br>
+<p><i>Looking on his hands</i></p>
+</blockquote>
+
+<A NAME=speech13><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.29>A foolish thought, to say a sorry sight.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.30>There's one did laugh in's sleep, and one cried</A><br>
+<A NAME=2.2.31>'Murder!'</A><br>
+<A NAME=2.2.32>That they did wake each other: I stood and heard them:</A><br>
+<A NAME=2.2.33>But they did say their prayers, and address'd them</A><br>
+<A NAME=2.2.34>Again to sleep.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.35> There are two lodged together.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.36>One cried 'God bless us!' and 'Amen' the other;</A><br>
+<A NAME=2.2.37>As they had seen me with these hangman's hands.</A><br>
+<A NAME=2.2.38>Listening their fear, I could not say 'Amen,'</A><br>
+<A NAME=2.2.39>When they did say 'God bless us!'</A><br>
+</blockquote>
+
+<A NAME=speech17><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.40>Consider it not so deeply.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.41>But wherefore could not I pronounce 'Amen'?</A><br>
+<A NAME=2.2.42>I had most need of blessing, and 'Amen'</A><br>
+<A NAME=2.2.43>Stuck in my throat.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.44>These deeds must not be thought</A><br>
+<A NAME=2.2.45>After these ways; so, it will make us mad.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.46>Methought I heard a voice cry 'Sleep no more!</A><br>
+<A NAME=2.2.47>Macbeth does murder sleep', the innocent sleep,</A><br>
+<A NAME=2.2.48>Sleep that knits up the ravell'd sleeve of care,</A><br>
+<A NAME=2.2.49>The death of each day's life, sore labour's bath,</A><br>
+<A NAME=2.2.50>Balm of hurt minds, great nature's second course,</A><br>
+<A NAME=2.2.51>Chief nourisher in life's feast,--</A><br>
+</blockquote>
+
+<A NAME=speech21><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.52>What do you mean?</A><br>
+</blockquote>
+
+<A NAME=speech22><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.53>Still it cried 'Sleep no more!' to all the house:</A><br>
+<A NAME=2.2.54>'Glamis hath murder'd sleep, and therefore Cawdor</A><br>
+<A NAME=2.2.55>Shall sleep no more; Macbeth shall sleep no more.'</A><br>
+</blockquote>
+
+<A NAME=speech23><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.56>Who was it that thus cried? Why, worthy thane,</A><br>
+<A NAME=2.2.57>You do unbend your noble strength, to think</A><br>
+<A NAME=2.2.58>So brainsickly of things. Go get some water,</A><br>
+<A NAME=2.2.59>And wash this filthy witness from your hand.</A><br>
+<A NAME=2.2.60>Why did you bring these daggers from the place?</A><br>
+<A NAME=2.2.61>They must lie there: go carry them; and smear</A><br>
+<A NAME=2.2.62>The sleepy grooms with blood.</A><br>
+</blockquote>
+
+<A NAME=speech24><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.63>I'll go no more:</A><br>
+<A NAME=2.2.64>I am afraid to think what I have done;</A><br>
+<A NAME=2.2.65>Look on't again I dare not.</A><br>
+</blockquote>
+
+<A NAME=speech25><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.66>Infirm of purpose!</A><br>
+<A NAME=2.2.67>Give me the daggers: the sleeping and the dead</A><br>
+<A NAME=2.2.68>Are but as pictures: 'tis the eye of childhood</A><br>
+<A NAME=2.2.69>That fears a painted devil. If he do bleed,</A><br>
+<A NAME=2.2.70>I'll gild the faces of the grooms withal;</A><br>
+<A NAME=2.2.71>For it must seem their guilt.</A><br>
+<p><i>Exit. Knocking within</i></p>
+</blockquote>
+
+<A NAME=speech26><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.72>Whence is that knocking?</A><br>
+<A NAME=2.2.73>How is't with me, when every noise appals me?</A><br>
+<A NAME=2.2.74>What hands are here? ha! they pluck out mine eyes.</A><br>
+<A NAME=2.2.75>Will all great Neptune's ocean wash this blood</A><br>
+<A NAME=2.2.76>Clean from my hand? No, this my hand will rather</A><br>
+<A NAME=2.2.77>The multitudinous seas in incarnadine,</A><br>
+<A NAME=2.2.78>Making the green one red.</A><br>
+<p><i>Re-enter LADY MACBETH</i></p>
+</blockquote>
+
+<A NAME=speech27><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.79>My hands are of your colour; but I shame</A><br>
+<A NAME=2.2.80>To wear a heart so white.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.2.81>I hear a knocking</A><br>
+<A NAME=2.2.82>At the south entry: retire we to our chamber;</A><br>
+<A NAME=2.2.83>A little water clears us of this deed:</A><br>
+<A NAME=2.2.84>How easy is it, then! Your constancy</A><br>
+<A NAME=2.2.85>Hath left you unattended.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.2.86>Hark! more knocking.</A><br>
+<A NAME=2.2.87>Get on your nightgown, lest occasion call us,</A><br>
+<A NAME=2.2.88>And show us to be watchers. Be not lost</A><br>
+<A NAME=2.2.89>So poorly in your thoughts.</A><br>
+</blockquote>
+
+<A NAME=speech28><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.2.90>To know my deed, 'twere best not know myself.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.2.91>Wake Duncan with thy knocking! I would thou couldst!</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE III. The same.</h3>
+<p><blockquote>
+<i>Knocking within. Enter a Porter</i>
+</blockquote>
+
+<A NAME=speech1><b>Porter</b></a>
+<blockquote>
+<A NAME=2.3.1>Here's a knocking indeed! If a</A><br>
+<A NAME=2.3.2>man were porter of hell-gate, he should have</A><br>
+<A NAME=2.3.3>old turning the key.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.3.4>Knock,</A><br>
+<A NAME=2.3.5>knock, knock! Who's there, i' the name of</A><br>
+<A NAME=2.3.6>Beelzebub? Here's a farmer, that hanged</A><br>
+<A NAME=2.3.7>himself on the expectation of plenty: come in</A><br>
+<A NAME=2.3.8>time; have napkins enow about you; here</A><br>
+<A NAME=2.3.9>you'll sweat for't.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.3.10>Knock,</A><br>
+<A NAME=2.3.11>knock! Who's there, in the other devil's</A><br>
+<A NAME=2.3.12>name? Faith, here's an equivocator, that could</A><br>
+<A NAME=2.3.13>swear in both the scales against either scale;</A><br>
+<A NAME=2.3.14>who committed treason enough for God's sake,</A><br>
+<A NAME=2.3.15>yet could not equivocate to heaven: O, come</A><br>
+<A NAME=2.3.16>in, equivocator.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.3.17>Knock,</A><br>
+<A NAME=2.3.18>knock, knock! Who's there? Faith, here's an</A><br>
+<A NAME=2.3.19>English tailor come hither, for stealing out of</A><br>
+<A NAME=2.3.20>a French hose: come in, tailor; here you may</A><br>
+<A NAME=2.3.21>roast your goose.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.3.22>Knock,</A><br>
+<A NAME=2.3.23>knock; never at quiet! What are you? But</A><br>
+<A NAME=2.3.24>this place is too cold for hell. I'll devil-porter</A><br>
+<A NAME=2.3.25>it no further: I had thought to have let in</A><br>
+<A NAME=2.3.26>some of all professions that go the primrose</A><br>
+<A NAME=2.3.27>way to the everlasting bonfire.</A><br>
+<p><i>Knocking within</i></p>
+<A NAME=2.3.28>Anon, anon! I pray you, remember the porter.</A><br>
+<p><i>Opens the gate</i></p>
+<p><i>Enter MACDUFF and LENNOX</i></p>
+</blockquote>
+
+<A NAME=speech2><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.29>Was it so late, friend, ere you went to bed,</A><br>
+<A NAME=2.3.30>That you do lie so late?</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Porter</b></a>
+<blockquote>
+<A NAME=2.3.31>'Faith sir, we were carousing till the</A><br>
+<A NAME=2.3.32>second cock: and drink, sir, is a great</A><br>
+<A NAME=2.3.33>provoker of three things.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.34>What three things does drink especially provoke?</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Porter</b></a>
+<blockquote>
+<A NAME=2.3.35>Marry, sir, nose-painting, sleep, and</A><br>
+<A NAME=2.3.36>urine. Lechery, sir, it provokes, and unprovokes;</A><br>
+<A NAME=2.3.37>it provokes the desire, but it takes</A><br>
+<A NAME=2.3.38>away the performance: therefore, much drink</A><br>
+<A NAME=2.3.39>may be said to be an equivocator with lechery:</A><br>
+<A NAME=2.3.40>it makes him, and it mars him; it sets</A><br>
+<A NAME=2.3.41>him on, and it takes him off; it persuades him,</A><br>
+<A NAME=2.3.42>and disheartens him; makes him stand to, and</A><br>
+<A NAME=2.3.43>not stand to; in conclusion, equivocates him</A><br>
+<A NAME=2.3.44>in a sleep, and, giving him the lie, leaves him.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.45>I believe drink gave thee the lie last night.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>Porter</b></a>
+<blockquote>
+<A NAME=2.3.46>That it did, sir, i' the very throat on</A><br>
+<A NAME=2.3.47>me: but I requited him for his lie; and, I</A><br>
+<A NAME=2.3.48>think, being too strong for him, though he took</A><br>
+<A NAME=2.3.49>up my legs sometime, yet I made a shift to cast</A><br>
+<A NAME=2.3.50>him.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.51>Is thy master stirring?</A><br>
+<p><i>Enter MACBETH</i></p>
+<A NAME=2.3.52>Our knocking has awaked him; here he comes.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.53>Good morrow, noble sir.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.54>Good morrow, both.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.55>Is the king stirring, worthy thane?</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.56>Not yet.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.57>He did command me to call timely on him:</A><br>
+<A NAME=2.3.58>I have almost slipp'd the hour.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.59>I'll bring you to him.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.60>I know this is a joyful trouble to you;</A><br>
+<A NAME=2.3.61>But yet 'tis one.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.62>The labour we delight in physics pain.</A><br>
+<A NAME=2.3.63>This is the door.</A><br>
+</blockquote>
+
+<A NAME=speech17><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.64> I'll make so bold to call,</A><br>
+<A NAME=2.3.65>For 'tis my limited service.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech18><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.66>Goes the king hence to-day?</A><br>
+</blockquote>
+
+<A NAME=speech19><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.67>He does: he did appoint so.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.68>The night has been unruly: where we lay,</A><br>
+<A NAME=2.3.69>Our chimneys were blown down; and, as they say,</A><br>
+<A NAME=2.3.70>Lamentings heard i' the air; strange screams of death,</A><br>
+<A NAME=2.3.71>And prophesying with accents terrible</A><br>
+<A NAME=2.3.72>Of dire combustion and confused events</A><br>
+<A NAME=2.3.73>New hatch'd to the woeful time: the obscure bird</A><br>
+<A NAME=2.3.74>Clamour'd the livelong night: some say, the earth</A><br>
+<A NAME=2.3.75>Was feverous and did shake.</A><br>
+</blockquote>
+
+<A NAME=speech21><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.76>'Twas a rough night.</A><br>
+</blockquote>
+
+<A NAME=speech22><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.77>My young remembrance cannot parallel</A><br>
+<A NAME=2.3.78>A fellow to it.</A><br>
+<p><i>Re-enter MACDUFF</i></p>
+</blockquote>
+
+<A NAME=speech23><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.79>O horror, horror, horror! Tongue nor heart</A><br>
+<A NAME=2.3.80>Cannot conceive nor name thee!</A><br>
+</blockquote>
+
+<A NAME=speech24><b>MACBETH</b></a>
+
+<A NAME=speech25><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.81>What's the matter.</A><br>
+</blockquote>
+
+<A NAME=speech26><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.82>Confusion now hath made his masterpiece!</A><br>
+<A NAME=2.3.83>Most sacrilegious murder hath broke ope</A><br>
+<A NAME=2.3.84>The Lord's anointed temple, and stole thence</A><br>
+<A NAME=2.3.85>The life o' the building!</A><br>
+</blockquote>
+
+<A NAME=speech27><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.86>What is 't you say? the life?</A><br>
+</blockquote>
+
+<A NAME=speech28><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.87>Mean you his majesty?</A><br>
+</blockquote>
+
+<A NAME=speech29><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.88>Approach the chamber, and destroy your sight</A><br>
+<A NAME=2.3.89>With a new Gorgon: do not bid me speak;</A><br>
+<A NAME=2.3.90>See, and then speak yourselves.</A><br>
+<p><i>Exeunt MACBETH and LENNOX</i></p>
+<A NAME=2.3.91>Awake, awake!</A><br>
+<A NAME=2.3.92>Ring the alarum-bell. Murder and treason!</A><br>
+<A NAME=2.3.93>Banquo and Donalbain! Malcolm! awake!</A><br>
+<A NAME=2.3.94>Shake off this downy sleep, death's counterfeit,</A><br>
+<A NAME=2.3.95>And look on death itself! up, up, and see</A><br>
+<A NAME=2.3.96>The great doom's image! Malcolm! Banquo!</A><br>
+<A NAME=2.3.97>As from your graves rise up, and walk like sprites,</A><br>
+<A NAME=2.3.98>To countenance this horror! Ring the bell.</A><br>
+<p><i>Bell rings</i></p>
+<p><i>Enter LADY MACBETH</i></p>
+</blockquote>
+
+<A NAME=speech30><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.99>What's the business,</A><br>
+<A NAME=2.3.100>That such a hideous trumpet calls to parley</A><br>
+<A NAME=2.3.101>The sleepers of the house? speak, speak!</A><br>
+</blockquote>
+
+<A NAME=speech31><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.102>O gentle lady,</A><br>
+<A NAME=2.3.103>'Tis not for you to hear what I can speak:</A><br>
+<A NAME=2.3.104>The repetition, in a woman's ear,</A><br>
+<A NAME=2.3.105>Would murder as it fell.</A><br>
+<p><i>Enter BANQUO</i></p>
+<A NAME=2.3.106>O Banquo, Banquo,</A><br>
+<A NAME=2.3.107>Our royal master 's murder'd!</A><br>
+</blockquote>
+
+<A NAME=speech32><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.108>Woe, alas!</A><br>
+<A NAME=2.3.109>What, in our house?</A><br>
+</blockquote>
+
+<A NAME=speech33><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.3.110>Too cruel any where.</A><br>
+<A NAME=2.3.111>Dear Duff, I prithee, contradict thyself,</A><br>
+<A NAME=2.3.112>And say it is not so.</A><br>
+<p><i>Re-enter MACBETH and LENNOX, with ROSS</i></p>
+</blockquote>
+
+<A NAME=speech34><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.113>Had I but died an hour before this chance,</A><br>
+<A NAME=2.3.114>I had lived a blessed time; for, from this instant,</A><br>
+<A NAME=2.3.115>There 's nothing serious in mortality:</A><br>
+<A NAME=2.3.116>All is but toys: renown and grace is dead;</A><br>
+<A NAME=2.3.117>The wine of life is drawn, and the mere lees</A><br>
+<A NAME=2.3.118>Is left this vault to brag of.</A><br>
+<p><i>Enter MALCOLM and DONALBAIN</i></p>
+</blockquote>
+
+<A NAME=speech35><b>DONALBAIN</b></a>
+<blockquote>
+<A NAME=2.3.119>What is amiss?</A><br>
+</blockquote>
+
+<A NAME=speech36><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.120> You are, and do not know't:</A><br>
+<A NAME=2.3.121>The spring, the head, the fountain of your blood</A><br>
+<A NAME=2.3.122>Is stopp'd; the very source of it is stopp'd.</A><br>
+</blockquote>
+
+<A NAME=speech37><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.123>Your royal father 's murder'd.</A><br>
+</blockquote>
+
+<A NAME=speech38><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=2.3.124>O, by whom?</A><br>
+</blockquote>
+
+<A NAME=speech39><b>LENNOX</b></a>
+<blockquote>
+<A NAME=2.3.125>Those of his chamber, as it seem'd, had done 't:</A><br>
+<A NAME=2.3.126>Their hands and faces were an badged with blood;</A><br>
+<A NAME=2.3.127>So were their daggers, which unwiped we found</A><br>
+<A NAME=2.3.128>Upon their pillows:</A><br>
+<A NAME=2.3.129>They stared, and were distracted; no man's life</A><br>
+<A NAME=2.3.130>Was to be trusted with them.</A><br>
+</blockquote>
+
+<A NAME=speech40><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.131>O, yet I do repent me of my fury,</A><br>
+<A NAME=2.3.132>That I did kill them.</A><br>
+</blockquote>
+
+<A NAME=speech41><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.133>Wherefore did you so?</A><br>
+</blockquote>
+
+<A NAME=speech42><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.134>Who can be wise, amazed, temperate and furious,</A><br>
+<A NAME=2.3.135>Loyal and neutral, in a moment? No man:</A><br>
+<A NAME=2.3.136>The expedition my violent love</A><br>
+<A NAME=2.3.137>Outrun the pauser, reason. Here lay Duncan,</A><br>
+<A NAME=2.3.138>His silver skin laced with his golden blood;</A><br>
+<A NAME=2.3.139>And his gash'd stabs look'd like a breach in nature</A><br>
+<A NAME=2.3.140>For ruin's wasteful entrance: there, the murderers,</A><br>
+<A NAME=2.3.141>Steep'd in the colours of their trade, their daggers</A><br>
+<A NAME=2.3.142>Unmannerly breech'd with gore: who could refrain,</A><br>
+<A NAME=2.3.143>That had a heart to love, and in that heart</A><br>
+<A NAME=2.3.144>Courage to make 's love kno wn?</A><br>
+</blockquote>
+
+<A NAME=speech43><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.145>Help me hence, ho!</A><br>
+</blockquote>
+
+<A NAME=speech44><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.146>Look to the lady.</A><br>
+</blockquote>
+
+<A NAME=speech45><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=2.3.147>[Aside to DONALBAIN] Why do we hold our tongues,</A><br>
+<A NAME=2.3.148>That most may claim this argument for ours?</A><br>
+</blockquote>
+
+<A NAME=speech46><b>DONALBAIN</b></a>
+<blockquote>
+<A NAME=2.3.149>[Aside to MALCOLM] What should be spoken here,</A><br>
+<A NAME=2.3.150>where our fate,</A><br>
+<A NAME=2.3.151>Hid in an auger-hole, may rush, and seize us?</A><br>
+<A NAME=2.3.152>Let 's away;</A><br>
+<A NAME=2.3.153>Our tears are not yet brew'd.</A><br>
+</blockquote>
+
+<A NAME=speech47><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=2.3.154>[Aside to DONALBAIN] Nor our strong sorrow</A><br>
+<A NAME=2.3.155>Upon the foot of motion.</A><br>
+</blockquote>
+
+<A NAME=speech48><b>BANQUO</b></a>
+<blockquote>
+<A NAME=2.3.156>Look to the lady:</A><br>
+<p><i>LADY MACBETH is carried out</i></p>
+<A NAME=2.3.157>And when we have our naked frailties hid,</A><br>
+<A NAME=2.3.158>That suffer in exposure, let us meet,</A><br>
+<A NAME=2.3.159>And question this most bloody piece of work,</A><br>
+<A NAME=2.3.160>To know it further. Fears and scruples shake us:</A><br>
+<A NAME=2.3.161>In the great hand of God I stand; and thence</A><br>
+<A NAME=2.3.162>Against the undivulged pretence I fight</A><br>
+<A NAME=2.3.163>Of treasonous malice.</A><br>
+</blockquote>
+
+<A NAME=speech49><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.3.164>And so do I.</A><br>
+</blockquote>
+
+<A NAME=speech50><b>ALL</b></a>
+<blockquote>
+<A NAME=2.3.165>So all.</A><br>
+</blockquote>
+
+<A NAME=speech51><b>MACBETH</b></a>
+<blockquote>
+<A NAME=2.3.166>Let's briefly put on manly readiness,</A><br>
+<A NAME=2.3.167>And meet i' the hall together.</A><br>
+</blockquote>
+
+<A NAME=speech52><b>ALL</b></a>
+<blockquote>
+<A NAME=2.3.168>Well contented.</A><br>
+<p><i>Exeunt all but Malcolm and Donalbain.</i></p>
+</blockquote>
+
+<A NAME=speech53><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=2.3.169>What will you do? Let's not consort with them:</A><br>
+<A NAME=2.3.170>To show an unfelt sorrow is an office</A><br>
+<A NAME=2.3.171>Which the false man does easy. I'll to England.</A><br>
+</blockquote>
+
+<A NAME=speech54><b>DONALBAIN</b></a>
+<blockquote>
+<A NAME=2.3.172>To Ireland, I; our separated fortune</A><br>
+<A NAME=2.3.173>Shall keep us both the safer: where we are,</A><br>
+<A NAME=2.3.174>There's daggers in men's smiles: the near in blood,</A><br>
+<A NAME=2.3.175>The nearer bloody.</A><br>
+</blockquote>
+
+<A NAME=speech55><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=2.3.176> This murderous shaft that's shot</A><br>
+<A NAME=2.3.177>Hath not yet lighted, and our safest way</A><br>
+<A NAME=2.3.178>Is to avoid the aim. Therefore, to horse;</A><br>
+<A NAME=2.3.179>And let us not be dainty of leave-taking,</A><br>
+<A NAME=2.3.180>But shift away: there's warrant in that theft</A><br>
+<A NAME=2.3.181>Which steals itself, when there's no mercy left.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE IV. Outside Macbeth's castle.</h3>
+<p><blockquote>
+<i>Enter ROSS and an old Man</i>
+</blockquote>
+
+<A NAME=speech1><b>Old Man</b></a>
+<blockquote>
+<A NAME=2.4.1>Threescore and ten I can remember well:</A><br>
+<A NAME=2.4.2>Within the volume of which time I have seen</A><br>
+<A NAME=2.4.3>Hours dreadful and things strange; but this sore night</A><br>
+<A NAME=2.4.4>Hath trifled former knowings.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.5>Ah, good father,</A><br>
+<A NAME=2.4.6>Thou seest, the heavens, as troubled with man's act,</A><br>
+<A NAME=2.4.7>Threaten his bloody stage: by the clock, 'tis day,</A><br>
+<A NAME=2.4.8>And yet dark night strangles the travelling lamp:</A><br>
+<A NAME=2.4.9>Is't night's predominance, or the day's shame,</A><br>
+<A NAME=2.4.10>That darkness does the face of earth entomb,</A><br>
+<A NAME=2.4.11>When living light should kiss it?</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Old Man</b></a>
+<blockquote>
+<A NAME=2.4.12>'Tis unnatural,</A><br>
+<A NAME=2.4.13>Even like the deed that's done. On Tuesday last,</A><br>
+<A NAME=2.4.14>A falcon, towering in her pride of place,</A><br>
+<A NAME=2.4.15>Was by a mousing owl hawk'd at and kill'd.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.16>And Duncan's horses--a thing most strange and certain--</A><br>
+<A NAME=2.4.17>Beauteous and swift, the minions of their race,</A><br>
+<A NAME=2.4.18>Turn'd wild in nature, broke their stalls, flung out,</A><br>
+<A NAME=2.4.19>Contending 'gainst obedience, as they would make</A><br>
+<A NAME=2.4.20>War with mankind.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Old Man</b></a>
+<blockquote>
+<A NAME=2.4.21>'Tis said they eat each other.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.22>They did so, to the amazement of mine eyes</A><br>
+<A NAME=2.4.23>That look'd upon't. Here comes the good Macduff.</A><br>
+<p><i>Enter MACDUFF</i></p>
+<A NAME=2.4.24>How goes the world, sir, now?</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.25>Why, see you not?</A><br>
+</blockquote>
+
+<A NAME=speech8><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.26>Is't known who did this more than bloody deed?</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.27>Those that Macbeth hath slain.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.28>Alas, the day!</A><br>
+<A NAME=2.4.29>What good could they pretend?</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.30>They were suborn'd:</A><br>
+<A NAME=2.4.31>Malcolm and Donalbain, the king's two sons,</A><br>
+<A NAME=2.4.32>Are stol'n away and fled; which puts upon them</A><br>
+<A NAME=2.4.33>Suspicion of the deed.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.34>'Gainst nature still!</A><br>
+<A NAME=2.4.35>Thriftless ambition, that wilt ravin up</A><br>
+<A NAME=2.4.36>Thine own life's means! Then 'tis most like</A><br>
+<A NAME=2.4.37>The sovereignty will fall upon Macbeth.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.38>He is already named, and gone to Scone</A><br>
+<A NAME=2.4.39>To be invested.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.40> Where is Duncan's body?</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.41>Carried to Colmekill,</A><br>
+<A NAME=2.4.42>The sacred storehouse of his predecessors,</A><br>
+<A NAME=2.4.43>And guardian of their bones.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.44>Will you to Scone?</A><br>
+</blockquote>
+
+<A NAME=speech17><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.45>No, cousin, I'll to Fife.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.46>Well, I will thither.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=2.4.47>Well, may you see things well done there: adieu!</A><br>
+<A NAME=2.4.48>Lest our old robes sit easier than our new!</A><br>
+</blockquote>
+
+<A NAME=speech20><b>ROSS</b></a>
+<blockquote>
+<A NAME=2.4.49>Farewell, father.</A><br>
+</blockquote>
+
+<A NAME=speech21><b>Old Man</b></a>
+<blockquote>
+<A NAME=2.4.50>God's benison go with you; and with those</A><br>
+<A NAME=2.4.51>That would make good of bad, and friends of foes!</A><br>
+<p><i>Exeunt</i></p>
+</blockquote><p>
+<H3>ACT III</h3>
+<h3>SCENE I. Forres. The palace.</h3>
+<p><blockquote>
+<i>Enter BANQUO</i>
+</blockquote>
+
+<A NAME=speech1><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.1.1>Thou hast it now: king, Cawdor, Glamis, all,</A><br>
+<A NAME=3.1.2>As the weird women promised, and, I fear,</A><br>
+<A NAME=3.1.3>Thou play'dst most foully for't: yet it was said</A><br>
+<A NAME=3.1.4>It should not stand in thy posterity,</A><br>
+<A NAME=3.1.5>But that myself should be the root and father</A><br>
+<A NAME=3.1.6>Of many kings. If there come truth from them--</A><br>
+<A NAME=3.1.7>As upon thee, Macbeth, their speeches shine--</A><br>
+<A NAME=3.1.8>Why, by the verities on thee made good,</A><br>
+<A NAME=3.1.9>May they not be my oracles as well,</A><br>
+<A NAME=3.1.10>And set me up in hope? But hush! no more.</A><br>
+<p><i>Sennet sounded. Enter MACBETH, as king, LADY MACBETH, as queen, LENNOX, ROSS, Lords, Ladies, and Attendants</i></p>
+</blockquote>
+
+<A NAME=speech2><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.11>Here's our chief guest.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.12>If he had been forgotten,</A><br>
+<A NAME=3.1.13>It had been as a gap in our great feast,</A><br>
+<A NAME=3.1.14>And all-thing unbecoming.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.15>To-night we hold a solemn supper sir,</A><br>
+<A NAME=3.1.16>And I'll request your presence.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.1.17>Let your highness</A><br>
+<A NAME=3.1.18>Command upon me; to the which my duties</A><br>
+<A NAME=3.1.19>Are with a most indissoluble tie</A><br>
+<A NAME=3.1.20>For ever knit.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.21> Ride you this afternoon?</A><br>
+</blockquote>
+
+<A NAME=speech7><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.1.22>Ay, my good lord.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.23>We should have else desired your good advice,</A><br>
+<A NAME=3.1.24>Which still hath been both grave and prosperous,</A><br>
+<A NAME=3.1.25>In this day's council; but we'll take to-morrow.</A><br>
+<A NAME=3.1.26>Is't far you ride?</A><br>
+</blockquote>
+
+<A NAME=speech9><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.1.27>As far, my lord, as will fill up the time</A><br>
+<A NAME=3.1.28>'Twixt this and supper: go not my horse the better,</A><br>
+<A NAME=3.1.29>I must become a borrower of the night</A><br>
+<A NAME=3.1.30>For a dark hour or twain.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.31>Fail not our feast.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.1.32>My lord, I will not.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.33>We hear, our bloody cousins are bestow'd</A><br>
+<A NAME=3.1.34>In England and in Ireland, not confessing</A><br>
+<A NAME=3.1.35>Their cruel parricide, filling their hearers</A><br>
+<A NAME=3.1.36>With strange invention: but of that to-morrow,</A><br>
+<A NAME=3.1.37>When therewithal we shall have cause of state</A><br>
+<A NAME=3.1.38>Craving us jointly. Hie you to horse: adieu,</A><br>
+<A NAME=3.1.39>Till you return at night. Goes Fleance with you?</A><br>
+</blockquote>
+
+<A NAME=speech13><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.1.40>Ay, my good lord: our time does call upon 's.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.41>I wish your horses swift and sure of foot;</A><br>
+<A NAME=3.1.42>And so I do commend you to their backs. Farewell.</A><br>
+<p><i>Exit BANQUO</i></p>
+<A NAME=3.1.43>Let every man be master of his time</A><br>
+<A NAME=3.1.44>Till seven at night: to make society</A><br>
+<A NAME=3.1.45>The sweeter welcome, we will keep ourself</A><br>
+<A NAME=3.1.46>Till supper-time alone: while then, God be with you!</A><br>
+<p><i>Exeunt all but MACBETH, and an attendant</i></p>
+<A NAME=3.1.47>Sirrah, a word with you: attend those men</A><br>
+<A NAME=3.1.48>Our pleasure?</A><br>
+</blockquote>
+
+<A NAME=speech15><b>ATTENDANT</b></a>
+<blockquote>
+<A NAME=3.1.49>They are, my lord, without the palace gate.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.50>Bring them before us.</A><br>
+<p><i>Exit Attendant</i></p>
+<A NAME=3.1.51>To be thus is nothing;</A><br>
+<A NAME=3.1.52>But to be safely thus.--Our fears in Banquo</A><br>
+<A NAME=3.1.53>Stick deep; and in his royalty of nature</A><br>
+<A NAME=3.1.54>Reigns that which would be fear'd: 'tis much he dares;</A><br>
+<A NAME=3.1.55>And, to that dauntless temper of his mind,</A><br>
+<A NAME=3.1.56>He hath a wisdom that doth guide his valour</A><br>
+<A NAME=3.1.57>To act in safety. There is none but he</A><br>
+<A NAME=3.1.58>Whose being I do fear: and, under him,</A><br>
+<A NAME=3.1.59>My Genius is rebuked; as, it is said,</A><br>
+<A NAME=3.1.60>Mark Antony's was by Caesar. He chid the sisters</A><br>
+<A NAME=3.1.61>When first they put the name of king upon me,</A><br>
+<A NAME=3.1.62>And bade them speak to him: then prophet-like</A><br>
+<A NAME=3.1.63>They hail'd him father to a line of kings:</A><br>
+<A NAME=3.1.64>Upon my head they placed a fruitless crown,</A><br>
+<A NAME=3.1.65>And put a barren sceptre in my gripe,</A><br>
+<A NAME=3.1.66>Thence to be wrench'd with an unlineal hand,</A><br>
+<A NAME=3.1.67>No son of mine succeeding. If 't be so,</A><br>
+<A NAME=3.1.68>For Banquo's issue have I filed my mind;</A><br>
+<A NAME=3.1.69>For them the gracious Duncan have I murder'd;</A><br>
+<A NAME=3.1.70>Put rancours in the vessel of my peace</A><br>
+<A NAME=3.1.71>Only for them; and mine eternal jewel</A><br>
+<A NAME=3.1.72>Given to the common enemy of man,</A><br>
+<A NAME=3.1.73>To make them kings, the seed of Banquo kings!</A><br>
+<A NAME=3.1.74>Rather than so, come fate into the list.</A><br>
+<A NAME=3.1.75>And champion me to the utterance! Who's there!</A><br>
+<p><i>Re-enter Attendant, with two Murderers</i></p>
+<A NAME=3.1.76>Now go to the door, and stay there till we call.</A><br>
+<p><i>Exit Attendant</i></p>
+<A NAME=3.1.77>Was it not yesterday we spoke together?</A><br>
+</blockquote>
+
+<A NAME=speech17><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.1.78>It was, so please your highness.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.79>Well then, now</A><br>
+<A NAME=3.1.80>Have you consider'd of my speeches? Know</A><br>
+<A NAME=3.1.81>That it was he in the times past which held you</A><br>
+<A NAME=3.1.82>So under fortune, which you thought had been</A><br>
+<A NAME=3.1.83>Our innocent self: this I made good to you</A><br>
+<A NAME=3.1.84>In our last conference, pass'd in probation with you,</A><br>
+<A NAME=3.1.85>How you were borne in hand, how cross'd,</A><br>
+<A NAME=3.1.86>the instruments,</A><br>
+<A NAME=3.1.87>Who wrought with them, and all things else that might</A><br>
+<A NAME=3.1.88>To half a soul and to a notion crazed</A><br>
+<A NAME=3.1.89>Say 'Thus did Banquo.'</A><br>
+</blockquote>
+
+<A NAME=speech19><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.1.90>You made it known to us.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.91>I did so, and went further, which is now</A><br>
+<A NAME=3.1.92>Our point of second meeting. Do you find</A><br>
+<A NAME=3.1.93>Your patience so predominant in your nature</A><br>
+<A NAME=3.1.94>That you can let this go? Are you so gospell'd</A><br>
+<A NAME=3.1.95>To pray for this good man and for his issue,</A><br>
+<A NAME=3.1.96>Whose heavy hand hath bow'd you to the grave</A><br>
+<A NAME=3.1.97>And beggar'd yours for ever?</A><br>
+</blockquote>
+
+<A NAME=speech21><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.1.98>We are men, my liege.</A><br>
+</blockquote>
+
+<A NAME=speech22><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.99>Ay, in the catalogue ye go for men;</A><br>
+<A NAME=3.1.100>As hounds and greyhounds, mongrels, spaniels, curs,</A><br>
+<A NAME=3.1.101>Shoughs, water-rugs and demi-wolves, are clept</A><br>
+<A NAME=3.1.102>All by the name of dogs: the valued file</A><br>
+<A NAME=3.1.103>Distinguishes the swift, the slow, the subtle,</A><br>
+<A NAME=3.1.104>The housekeeper, the hunter, every one</A><br>
+<A NAME=3.1.105>According to the gift which bounteous nature</A><br>
+<A NAME=3.1.106>Hath in him closed; whereby he does receive</A><br>
+<A NAME=3.1.107>Particular addition. from the bill</A><br>
+<A NAME=3.1.108>That writes them all alike: and so of men.</A><br>
+<A NAME=3.1.109>Now, if you have a station in the file,</A><br>
+<A NAME=3.1.110>Not i' the worst rank of manhood, say 't;</A><br>
+<A NAME=3.1.111>And I will put that business in your bosoms,</A><br>
+<A NAME=3.1.112>Whose execution takes your enemy off,</A><br>
+<A NAME=3.1.113>Grapples you to the heart and love of us,</A><br>
+<A NAME=3.1.114>Who wear our health but sickly in his life,</A><br>
+<A NAME=3.1.115>Which in his death were perfect.</A><br>
+</blockquote>
+
+<A NAME=speech23><b>Second Murderer</b></a>
+<blockquote>
+<A NAME=3.1.116>I am one, my liege,</A><br>
+<A NAME=3.1.117>Whom the vile blows and buffets of the world</A><br>
+<A NAME=3.1.118>Have so incensed that I am reckless what</A><br>
+<A NAME=3.1.119>I do to spite the world.</A><br>
+</blockquote>
+
+<A NAME=speech24><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.1.120>And I another</A><br>
+<A NAME=3.1.121>So weary with disasters, tugg'd with fortune,</A><br>
+<A NAME=3.1.122>That I would set my lie on any chance,</A><br>
+<A NAME=3.1.123>To mend it, or be rid on't.</A><br>
+</blockquote>
+
+<A NAME=speech25><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.124>Both of you</A><br>
+<A NAME=3.1.125>Know Banquo was your enemy.</A><br>
+</blockquote>
+
+<A NAME=speech26><b>Both Murderers</b></a>
+<blockquote>
+<A NAME=3.1.126>True, my lord.</A><br>
+</blockquote>
+
+<A NAME=speech27><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.127>So is he mine; and in such bloody distance,</A><br>
+<A NAME=3.1.128>That every minute of his being thrusts</A><br>
+<A NAME=3.1.129>Against my near'st of life: and though I could</A><br>
+<A NAME=3.1.130>With barefaced power sweep him from my sight</A><br>
+<A NAME=3.1.131>And bid my will avouch it, yet I must not,</A><br>
+<A NAME=3.1.132>For certain friends that are both his and mine,</A><br>
+<A NAME=3.1.133>Whose loves I may not drop, but wail his fall</A><br>
+<A NAME=3.1.134>Who I myself struck down; and thence it is,</A><br>
+<A NAME=3.1.135>That I to your assistance do make love,</A><br>
+<A NAME=3.1.136>Masking the business from the common eye</A><br>
+<A NAME=3.1.137>For sundry weighty reasons.</A><br>
+</blockquote>
+
+<A NAME=speech28><b>Second Murderer</b></a>
+<blockquote>
+<A NAME=3.1.138>We shall, my lord,</A><br>
+<A NAME=3.1.139>Perform what you command us.</A><br>
+</blockquote>
+
+<A NAME=speech29><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.1.140>Though our lives--</A><br>
+</blockquote>
+
+<A NAME=speech30><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.141>Your spirits shine through you. Within this hour at most</A><br>
+<A NAME=3.1.142>I will advise you where to plant yourselves;</A><br>
+<A NAME=3.1.143>Acquaint you with the perfect spy o' the time,</A><br>
+<A NAME=3.1.144>The moment on't; for't must be done to-night,</A><br>
+<A NAME=3.1.145>And something from the palace; always thought</A><br>
+<A NAME=3.1.146>That I require a clearness: and with him--</A><br>
+<A NAME=3.1.147>To leave no rubs nor botches in the work--</A><br>
+<A NAME=3.1.148>Fleance his son, that keeps him company,</A><br>
+<A NAME=3.1.149>Whose absence is no less material to me</A><br>
+<A NAME=3.1.150>Than is his father's, must embrace the fate</A><br>
+<A NAME=3.1.151>Of that dark hour. Resolve yourselves apart:</A><br>
+<A NAME=3.1.152>I'll come to you anon.</A><br>
+</blockquote>
+
+<A NAME=speech31><b>Both Murderers</b></a>
+<blockquote>
+<A NAME=3.1.153>We are resolved, my lord.</A><br>
+</blockquote>
+
+<A NAME=speech32><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.1.154>I'll call upon you straight: abide within.</A><br>
+<p><i>Exeunt Murderers</i></p>
+<A NAME=3.1.155>It is concluded. Banquo, thy soul's flight,</A><br>
+<A NAME=3.1.156>If it find heaven, must find it out to-night.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+<h3>SCENE II. The palace.</h3>
+<p><blockquote>
+<i>Enter LADY MACBETH and a Servant</i>
+</blockquote>
+
+<A NAME=speech1><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.1>Is Banquo gone from court?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Servant</b></a>
+<blockquote>
+<A NAME=3.2.2>Ay, madam, but returns again to-night.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.3>Say to the king, I would attend his leisure</A><br>
+<A NAME=3.2.4>For a few words.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>Servant</b></a>
+<blockquote>
+<A NAME=3.2.5> Madam, I will.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech5><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.6>Nought's had, all's spent,</A><br>
+<A NAME=3.2.7>Where our desire is got without content:</A><br>
+<A NAME=3.2.8>'Tis safer to be that which we destroy</A><br>
+<A NAME=3.2.9>Than by destruction dwell in doubtful joy.</A><br>
+<p><i>Enter MACBETH</i></p>
+<A NAME=3.2.10>How now, my lord! why do you keep alone,</A><br>
+<A NAME=3.2.11>Of sorriest fancies your companions making,</A><br>
+<A NAME=3.2.12>Using those thoughts which should indeed have died</A><br>
+<A NAME=3.2.13>With them they think on? Things without all remedy</A><br>
+<A NAME=3.2.14>Should be without regard: what's done is done.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.15>We have scotch'd the snake, not kill'd it:</A><br>
+<A NAME=3.2.16>She'll close and be herself, whilst our poor malice</A><br>
+<A NAME=3.2.17>Remains in danger of her former tooth.</A><br>
+<A NAME=3.2.18>But let the frame of things disjoint, both the</A><br>
+<A NAME=3.2.19>worlds suffer,</A><br>
+<A NAME=3.2.20>Ere we will eat our meal in fear and sleep</A><br>
+<A NAME=3.2.21>In the affliction of these terrible dreams</A><br>
+<A NAME=3.2.22>That shake us nightly: better be with the dead,</A><br>
+<A NAME=3.2.23>Whom we, to gain our peace, have sent to peace,</A><br>
+<A NAME=3.2.24>Than on the torture of the mind to lie</A><br>
+<A NAME=3.2.25>In restless ecstasy. Duncan is in his grave;</A><br>
+<A NAME=3.2.26>After life's fitful fever he sleeps well;</A><br>
+<A NAME=3.2.27>Treason has done his worst: nor steel, nor poison,</A><br>
+<A NAME=3.2.28>Malice domestic, foreign levy, nothing,</A><br>
+<A NAME=3.2.29>Can touch him further.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.30>Come on;</A><br>
+<A NAME=3.2.31>Gentle my lord, sleek o'er your rugged looks;</A><br>
+<A NAME=3.2.32>Be bright and jovial among your guests to-night.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.33>So shall I, love; and so, I pray, be you:</A><br>
+<A NAME=3.2.34>Let your remembrance apply to Banquo;</A><br>
+<A NAME=3.2.35>Present him eminence, both with eye and tongue:</A><br>
+<A NAME=3.2.36>Unsafe the while, that we</A><br>
+<A NAME=3.2.37>Must lave our honours in these flattering streams,</A><br>
+<A NAME=3.2.38>And make our faces vizards to our hearts,</A><br>
+<A NAME=3.2.39>Disguising what they are.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.40>You must leave this.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.41>O, full of scorpions is my mind, dear wife!</A><br>
+<A NAME=3.2.42>Thou know'st that Banquo, and his Fleance, lives.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.43>But in them nature's copy's not eterne.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.44>There's comfort yet; they are assailable;</A><br>
+<A NAME=3.2.45>Then be thou jocund: ere the bat hath flown</A><br>
+<A NAME=3.2.46>His cloister'd flight, ere to black Hecate's summons</A><br>
+<A NAME=3.2.47>The shard-borne beetle with his drowsy hums</A><br>
+<A NAME=3.2.48>Hath rung night's yawning peal, there shall be done</A><br>
+<A NAME=3.2.49>A deed of dreadful note.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.50>What's to be done?</A><br>
+</blockquote>
+
+<A NAME=speech14><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.2.51>Be innocent of the knowledge, dearest chuck,</A><br>
+<A NAME=3.2.52>Till thou applaud the deed. Come, seeling night,</A><br>
+<A NAME=3.2.53>Scarf up the tender eye of pitiful day;</A><br>
+<A NAME=3.2.54>And with thy bloody and invisible hand</A><br>
+<A NAME=3.2.55>Cancel and tear to pieces that great bond</A><br>
+<A NAME=3.2.56>Which keeps me pale! Light thickens; and the crow</A><br>
+<A NAME=3.2.57>Makes wing to the rooky wood:</A><br>
+<A NAME=3.2.58>Good things of day begin to droop and drowse;</A><br>
+<A NAME=3.2.59>While night's black agents to their preys do rouse.</A><br>
+<A NAME=3.2.60>Thou marvell'st at my words: but hold thee still;</A><br>
+<A NAME=3.2.61>Things bad begun make strong themselves by ill.</A><br>
+<A NAME=3.2.62>So, prithee, go with me.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE III. A park near the palace.</h3>
+<p><blockquote>
+<i>Enter three Murderers</i>
+</blockquote>
+
+<A NAME=speech1><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.1>But who did bid thee join with us?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Third Murderer</b></a>
+<blockquote>
+<A NAME=3.3.2>Macbeth.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Second Murderer</b></a>
+<blockquote>
+<A NAME=3.3.3>He needs not our mistrust, since he delivers</A><br>
+<A NAME=3.3.4>Our offices and what we have to do</A><br>
+<A NAME=3.3.5>To the direction just.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.6>Then stand with us.</A><br>
+<A NAME=3.3.7>The west yet glimmers with some streaks of day:</A><br>
+<A NAME=3.3.8>Now spurs the lated traveller apace</A><br>
+<A NAME=3.3.9>To gain the timely inn; and near approaches</A><br>
+<A NAME=3.3.10>The subject of our watch.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Third Murderer</b></a>
+<blockquote>
+<A NAME=3.3.11>Hark! I hear horses.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.3.12>[Within] Give us a light there, ho!</A><br>
+</blockquote>
+
+<A NAME=speech7><b>Second Murderer</b></a>
+<blockquote>
+<A NAME=3.3.13>Then 'tis he: the rest</A><br>
+<A NAME=3.3.14>That are within the note of expectation</A><br>
+<A NAME=3.3.15>Already are i' the court.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.16>His horses go about.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>Third Murderer</b></a>
+<blockquote>
+<A NAME=3.3.17>Almost a mile: but he does usually,</A><br>
+<A NAME=3.3.18>So all men do, from hence to the palace gate</A><br>
+<A NAME=3.3.19>Make it their walk.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>Second Murderer</b></a>
+<blockquote>
+<A NAME=3.3.20>A light, a light!</A><br>
+<p><i>Enter BANQUO, and FLEANCE with a torch</i></p>
+</blockquote>
+
+<A NAME=speech11><b>Third Murderer</b></a>
+<blockquote>
+<A NAME=3.3.21>'Tis he.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.22>Stand to't.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.3.23>It will be rain to-night.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.24>Let it come down.</A><br>
+<p><i>They set upon BANQUO</i></p>
+</blockquote>
+
+<A NAME=speech15><b>BANQUO</b></a>
+<blockquote>
+<A NAME=3.3.25>O, treachery! Fly, good Fleance, fly, fly, fly!</A><br>
+<A NAME=3.3.26>Thou mayst revenge. O slave!</A><br>
+<p><i>Dies. FLEANCE escapes</i></p>
+</blockquote>
+
+<A NAME=speech16><b>Third Murderer</b></a>
+<blockquote>
+<A NAME=3.3.27>Who did strike out the light?</A><br>
+</blockquote>
+
+<A NAME=speech17><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.28>Wast not the way?</A><br>
+</blockquote>
+
+<A NAME=speech18><b>Third Murderer</b></a>
+<blockquote>
+<A NAME=3.3.29>There's but one down; the son is fled.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>Second Murderer</b></a>
+<blockquote>
+<A NAME=3.3.30>We have lost</A><br>
+<A NAME=3.3.31>Best half of our affair.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.3.32>Well, let's away, and say how much is done.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE IV. The same. Hall in the palace.</h3>
+<p><blockquote>
+<i>A banquet prepared. Enter MACBETH, LADY MACBETH, ROSS, LENNOX, Lords, and Attendants</i>
+</blockquote>
+
+<A NAME=speech1><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.1>You know your own degrees; sit down: at first</A><br>
+<A NAME=3.4.2>And last the hearty welcome.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Lords</b></a>
+<blockquote>
+<A NAME=3.4.3>Thanks to your majesty.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.4>Ourself will mingle with society,</A><br>
+<A NAME=3.4.5>And play the humble host.</A><br>
+<A NAME=3.4.6>Our hostess keeps her state, but in best time</A><br>
+<A NAME=3.4.7>We will require her welcome.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.8>Pronounce it for me, sir, to all our friends;</A><br>
+<A NAME=3.4.9>For my heart speaks they are welcome.</A><br>
+<p><i>First Murderer appears at the door</i></p>
+</blockquote>
+
+<A NAME=speech5><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.10>See, they encounter thee with their hearts' thanks.</A><br>
+<A NAME=3.4.11>Both sides are even: here I'll sit i' the midst:</A><br>
+<A NAME=3.4.12>Be large in mirth; anon we'll drink a measure</A><br>
+<A NAME=3.4.13>The table round.</A><br>
+<p><i>Approaching the door</i></p>
+<A NAME=3.4.14>There's blood on thy face.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.4.15>'Tis Banquo's then.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.16>'Tis better thee without than he within.</A><br>
+<A NAME=3.4.17>Is he dispatch'd?</A><br>
+</blockquote>
+
+<A NAME=speech8><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.4.18>My lord, his throat is cut; that I did for him.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.19>Thou art the best o' the cut-throats: yet he's good</A><br>
+<A NAME=3.4.20>That did the like for Fleance: if thou didst it,</A><br>
+<A NAME=3.4.21>Thou art the nonpareil.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.4.22>Most royal sir,</A><br>
+<A NAME=3.4.23>Fleance is 'scaped.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.24>Then comes my fit again: I had else been perfect,</A><br>
+<A NAME=3.4.25>Whole as the marble, founded as the rock,</A><br>
+<A NAME=3.4.26>As broad and general as the casing air:</A><br>
+<A NAME=3.4.27>But now I am cabin'd, cribb'd, confined, bound in</A><br>
+<A NAME=3.4.28>To saucy doubts and fears. But Banquo's safe?</A><br>
+</blockquote>
+
+<A NAME=speech12><b>First Murderer</b></a>
+<blockquote>
+<A NAME=3.4.29>Ay, my good lord: safe in a ditch he bides,</A><br>
+<A NAME=3.4.30>With twenty trenched gashes on his head;</A><br>
+<A NAME=3.4.31>The least a death to nature.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.32>Thanks for that:</A><br>
+<A NAME=3.4.33>There the grown serpent lies; the worm that's fled</A><br>
+<A NAME=3.4.34>Hath nature that in time will venom breed,</A><br>
+<A NAME=3.4.35>No teeth for the present. Get thee gone: to-morrow</A><br>
+<A NAME=3.4.36>We'll hear, ourselves, again.</A><br>
+<p><i>Exit Murderer</i></p>
+</blockquote>
+
+<A NAME=speech14><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.37>My royal lord,</A><br>
+<A NAME=3.4.38>You do not give the cheer: the feast is sold</A><br>
+<A NAME=3.4.39>That is not often vouch'd, while 'tis a-making,</A><br>
+<A NAME=3.4.40>'Tis given with welcome: to feed were best at home;</A><br>
+<A NAME=3.4.41>From thence the sauce to meat is ceremony;</A><br>
+<A NAME=3.4.42>Meeting were bare without it.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.43>Sweet remembrancer!</A><br>
+<A NAME=3.4.44>Now, good digestion wait on appetite,</A><br>
+<A NAME=3.4.45>And health on both!</A><br>
+</blockquote>
+
+<A NAME=speech16><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.4.46>May't please your highness sit.</A><br>
+<p><i>The GHOST OF BANQUO enters, and sits in MACBETH's place</i></p>
+</blockquote>
+
+<A NAME=speech17><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.47>Here had we now our country's honour roof'd,</A><br>
+<A NAME=3.4.48>Were the graced person of our Banquo present;</A><br>
+<A NAME=3.4.49>Who may I rather challenge for unkindness</A><br>
+<A NAME=3.4.50>Than pity for mischance!</A><br>
+</blockquote>
+
+<A NAME=speech18><b>ROSS</b></a>
+<blockquote>
+<A NAME=3.4.51>His absence, sir,</A><br>
+<A NAME=3.4.52>Lays blame upon his promise. Please't your highness</A><br>
+<A NAME=3.4.53>To grace us with your royal company.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.54>The table's full.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.4.55> Here is a place reserved, sir.</A><br>
+</blockquote>
+
+<A NAME=speech21><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.56>Where?</A><br>
+</blockquote>
+
+<A NAME=speech22><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.4.57>Here, my good lord. What is't that moves your highness?</A><br>
+</blockquote>
+
+<A NAME=speech23><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.58>Which of you have done this?</A><br>
+</blockquote>
+
+<A NAME=speech24><b>Lords</b></a>
+<blockquote>
+<A NAME=3.4.59>What, my good lord?</A><br>
+</blockquote>
+
+<A NAME=speech25><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.60>Thou canst not say I did it: never shake</A><br>
+<A NAME=3.4.61>Thy gory locks at me.</A><br>
+</blockquote>
+
+<A NAME=speech26><b>ROSS</b></a>
+<blockquote>
+<A NAME=3.4.62>Gentlemen, rise: his highness is not well.</A><br>
+</blockquote>
+
+<A NAME=speech27><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.63>Sit, worthy friends: my lord is often thus,</A><br>
+<A NAME=3.4.64>And hath been from his youth: pray you, keep seat;</A><br>
+<A NAME=3.4.65>The fit is momentary; upon a thought</A><br>
+<A NAME=3.4.66>He will again be well: if much you note him,</A><br>
+<A NAME=3.4.67>You shall offend him and extend his passion:</A><br>
+<A NAME=3.4.68>Feed, and regard him not. Are you a man?</A><br>
+</blockquote>
+
+<A NAME=speech28><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.69>Ay, and a bold one, that dare look on that</A><br>
+<A NAME=3.4.70>Which might appal the devil.</A><br>
+</blockquote>
+
+<A NAME=speech29><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.71>O proper stuff!</A><br>
+<A NAME=3.4.72>This is the very painting of your fear:</A><br>
+<A NAME=3.4.73>This is the air-drawn dagger which, you said,</A><br>
+<A NAME=3.4.74>Led you to Duncan. O, these flaws and starts,</A><br>
+<A NAME=3.4.75>Impostors to true fear, would well become</A><br>
+<A NAME=3.4.76>A woman's story at a winter's fire,</A><br>
+<A NAME=3.4.77>Authorized by her grandam. Shame itself!</A><br>
+<A NAME=3.4.78>Why do you make such faces? When all's done,</A><br>
+<A NAME=3.4.79>You look but on a stool.</A><br>
+</blockquote>
+
+<A NAME=speech30><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.80>Prithee, see there! behold! look! lo!</A><br>
+<A NAME=3.4.81>how say you?</A><br>
+<A NAME=3.4.82>Why, what care I? If thou canst nod, speak too.</A><br>
+<A NAME=3.4.83>If charnel-houses and our graves must send</A><br>
+<A NAME=3.4.84>Those that we bury back, our monuments</A><br>
+<A NAME=3.4.85>Shall be the maws of kites.</A><br>
+<p><i>GHOST OF BANQUO vanishes</i></p>
+</blockquote>
+
+<A NAME=speech31><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.86>What, quite unmann'd in folly?</A><br>
+</blockquote>
+
+<A NAME=speech32><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.87>If I stand here, I saw him.</A><br>
+</blockquote>
+
+<A NAME=speech33><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.88>Fie, for shame!</A><br>
+</blockquote>
+
+<A NAME=speech34><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.89>Blood hath been shed ere now, i' the olden time,</A><br>
+<A NAME=3.4.90>Ere human statute purged the gentle weal;</A><br>
+<A NAME=3.4.91>Ay, and since too, murders have been perform'd</A><br>
+<A NAME=3.4.92>Too terrible for the ear: the times have been,</A><br>
+<A NAME=3.4.93>That, when the brains were out, the man would die,</A><br>
+<A NAME=3.4.94>And there an end; but now they rise again,</A><br>
+<A NAME=3.4.95>With twenty mortal murders on their crowns,</A><br>
+<A NAME=3.4.96>And push us from our stools: this is more strange</A><br>
+<A NAME=3.4.97>Than such a murder is.</A><br>
+</blockquote>
+
+<A NAME=speech35><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.98>My worthy lord,</A><br>
+<A NAME=3.4.99>Your noble friends do lack you.</A><br>
+</blockquote>
+
+<A NAME=speech36><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.100>I do forget.</A><br>
+<A NAME=3.4.101>Do not muse at me, my most worthy friends,</A><br>
+<A NAME=3.4.102>I have a strange infirmity, which is nothing</A><br>
+<A NAME=3.4.103>To those that know me. Come, love and health to all;</A><br>
+<A NAME=3.4.104>Then I'll sit down. Give me some wine; fill full.</A><br>
+<A NAME=3.4.105>I drink to the general joy o' the whole table,</A><br>
+<A NAME=3.4.106>And to our dear friend Banquo, whom we miss;</A><br>
+<A NAME=3.4.107>Would he were here! to all, and him, we thirst,</A><br>
+<A NAME=3.4.108>And all to all.</A><br>
+</blockquote>
+
+<A NAME=speech37><b>Lords</b></a>
+<blockquote>
+<A NAME=3.4.109> Our duties, and the pledge.</A><br>
+<p><i>Re-enter GHOST OF BANQUO</i></p>
+</blockquote>
+
+<A NAME=speech38><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.110>Avaunt! and quit my sight! let the earth hide thee!</A><br>
+<A NAME=3.4.111>Thy bones are marrowless, thy blood is cold;</A><br>
+<A NAME=3.4.112>Thou hast no speculation in those eyes</A><br>
+<A NAME=3.4.113>Which thou dost glare with!</A><br>
+</blockquote>
+
+<A NAME=speech39><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.114>Think of this, good peers,</A><br>
+<A NAME=3.4.115>But as a thing of custom: 'tis no other;</A><br>
+<A NAME=3.4.116>Only it spoils the pleasure of the time.</A><br>
+</blockquote>
+
+<A NAME=speech40><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.117>What man dare, I dare:</A><br>
+<A NAME=3.4.118>Approach thou like the rugged Russian bear,</A><br>
+<A NAME=3.4.119>The arm'd rhinoceros, or the Hyrcan tiger;</A><br>
+<A NAME=3.4.120>Take any shape but that, and my firm nerves</A><br>
+<A NAME=3.4.121>Shall never tremble: or be alive again,</A><br>
+<A NAME=3.4.122>And dare me to the desert with thy sword;</A><br>
+<A NAME=3.4.123>If trembling I inhabit then, protest me</A><br>
+<A NAME=3.4.124>The baby of a girl. Hence, horrible shadow!</A><br>
+<A NAME=3.4.125>Unreal mockery, hence!</A><br>
+<p><i>GHOST OF BANQUO vanishes</i></p>
+<A NAME=3.4.126>Why, so: being gone,</A><br>
+<A NAME=3.4.127>I am a man again. Pray you, sit still.</A><br>
+</blockquote>
+
+<A NAME=speech41><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.128>You have displaced the mirth, broke the good meeting,</A><br>
+<A NAME=3.4.129>With most admired disorder.</A><br>
+</blockquote>
+
+<A NAME=speech42><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.130>Can such things be,</A><br>
+<A NAME=3.4.131>And overcome us like a summer's cloud,</A><br>
+<A NAME=3.4.132>Without our special wonder? You make me strange</A><br>
+<A NAME=3.4.133>Even to the disposition that I owe,</A><br>
+<A NAME=3.4.134>When now I think you can behold such sights,</A><br>
+<A NAME=3.4.135>And keep the natural ruby of your cheeks,</A><br>
+<A NAME=3.4.136>When mine is blanched with fear.</A><br>
+</blockquote>
+
+<A NAME=speech43><b>ROSS</b></a>
+<blockquote>
+<A NAME=3.4.137>What sights, my lord?</A><br>
+</blockquote>
+
+<A NAME=speech44><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.138>I pray you, speak not; he grows worse and worse;</A><br>
+<A NAME=3.4.139>Question enrages him. At once, good night:</A><br>
+<A NAME=3.4.140>Stand not upon the order of your going,</A><br>
+<A NAME=3.4.141>But go at once.</A><br>
+</blockquote>
+
+<A NAME=speech45><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.4.142> Good night; and better health</A><br>
+<A NAME=3.4.143>Attend his majesty!</A><br>
+</blockquote>
+
+<A NAME=speech46><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.144>A kind good night to all!</A><br>
+<p><i>Exeunt all but MACBETH and LADY MACBETH</i></p>
+</blockquote>
+
+<A NAME=speech47><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.145>It will have blood; they say, blood will have blood:</A><br>
+<A NAME=3.4.146>Stones have been known to move and trees to speak;</A><br>
+<A NAME=3.4.147>Augurs and understood relations have</A><br>
+<A NAME=3.4.148>By magot-pies and choughs and rooks brought forth</A><br>
+<A NAME=3.4.149>The secret'st man of blood. What is the night?</A><br>
+</blockquote>
+
+<A NAME=speech48><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.150>Almost at odds with morning, which is which.</A><br>
+</blockquote>
+
+<A NAME=speech49><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.151>How say'st thou, that Macduff denies his person</A><br>
+<A NAME=3.4.152>At our great bidding?</A><br>
+</blockquote>
+
+<A NAME=speech50><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.153>Did you send to him, sir?</A><br>
+</blockquote>
+
+<A NAME=speech51><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.154>I hear it by the way; but I will send:</A><br>
+<A NAME=3.4.155>There's not a one of them but in his house</A><br>
+<A NAME=3.4.156>I keep a servant fee'd. I will to-morrow,</A><br>
+<A NAME=3.4.157>And betimes I will, to the weird sisters:</A><br>
+<A NAME=3.4.158>More shall they speak; for now I am bent to know,</A><br>
+<A NAME=3.4.159>By the worst means, the worst. For mine own good,</A><br>
+<A NAME=3.4.160>All causes shall give way: I am in blood</A><br>
+<A NAME=3.4.161>Stepp'd in so far that, should I wade no more,</A><br>
+<A NAME=3.4.162>Returning were as tedious as go o'er:</A><br>
+<A NAME=3.4.163>Strange things I have in head, that will to hand;</A><br>
+<A NAME=3.4.164>Which must be acted ere they may be scann'd.</A><br>
+</blockquote>
+
+<A NAME=speech52><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.165>You lack the season of all natures, sleep.</A><br>
+</blockquote>
+
+<A NAME=speech53><b>MACBETH</b></a>
+<blockquote>
+<A NAME=3.4.166>Come, we'll to sleep. My strange and self-abuse</A><br>
+<A NAME=3.4.167>Is the initiate fear that wants hard use:</A><br>
+<A NAME=3.4.168>We are yet but young in deed.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE V. A Heath.</h3>
+<p><blockquote>
+<i>Thunder. Enter the three Witches meeting HECATE</i>
+</blockquote>
+
+<A NAME=speech1><b>First Witch</b></a>
+<blockquote>
+<A NAME=3.5.1>Why, how now, Hecate! you look angerly.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>HECATE</b></a>
+<blockquote>
+<A NAME=3.5.2>Have I not reason, beldams as you are,</A><br>
+<A NAME=3.5.3>Saucy and overbold? How did you dare</A><br>
+<A NAME=3.5.4>To trade and traffic with Macbeth</A><br>
+<A NAME=3.5.5>In riddles and affairs of death;</A><br>
+<A NAME=3.5.6>And I, the mistress of your charms,</A><br>
+<A NAME=3.5.7>The close contriver of all harms,</A><br>
+<A NAME=3.5.8>Was never call'd to bear my part,</A><br>
+<A NAME=3.5.9>Or show the glory of our art?</A><br>
+<A NAME=3.5.10>And, which is worse, all you have done</A><br>
+<A NAME=3.5.11>Hath been but for a wayward son,</A><br>
+<A NAME=3.5.12>Spiteful and wrathful, who, as others do,</A><br>
+<A NAME=3.5.13>Loves for his own ends, not for you.</A><br>
+<A NAME=3.5.14>But make amends now: get you gone,</A><br>
+<A NAME=3.5.15>And at the pit of Acheron</A><br>
+<A NAME=3.5.16>Meet me i' the morning: thither he</A><br>
+<A NAME=3.5.17>Will come to know his destiny:</A><br>
+<A NAME=3.5.18>Your vessels and your spells provide,</A><br>
+<A NAME=3.5.19>Your charms and every thing beside.</A><br>
+<A NAME=3.5.20>I am for the air; this night I'll spend</A><br>
+<A NAME=3.5.21>Unto a dismal and a fatal end:</A><br>
+<A NAME=3.5.22>Great business must be wrought ere noon:</A><br>
+<A NAME=3.5.23>Upon the corner of the moon</A><br>
+<A NAME=3.5.24>There hangs a vaporous drop profound;</A><br>
+<A NAME=3.5.25>I'll catch it ere it come to ground:</A><br>
+<A NAME=3.5.26>And that distill'd by magic sleights</A><br>
+<A NAME=3.5.27>Shall raise such artificial sprites</A><br>
+<A NAME=3.5.28>As by the strength of their illusion</A><br>
+<A NAME=3.5.29>Shall draw him on to his confusion:</A><br>
+<A NAME=3.5.30>He shall spurn fate, scorn death, and bear</A><br>
+<A NAME=3.5.31>He hopes 'bove wisdom, grace and fear:</A><br>
+<A NAME=3.5.32>And you all know, security</A><br>
+<A NAME=3.5.33>Is mortals' chiefest enemy.</A><br>
+<p><i>Music and a song within: 'Come away, come away,' & c</i></p>
+<A NAME=3.5.34>Hark! I am call'd; my little spirit, see,</A><br>
+<A NAME=3.5.35>Sits in a foggy cloud, and stays for me.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech3><b>First Witch</b></a>
+<blockquote>
+<A NAME=3.5.36>Come, let's make haste; she'll soon be back again.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE VI. Forres. The palace.</h3>
+<p><blockquote>
+<i>Enter LENNOX and another Lord</i>
+</blockquote>
+
+<A NAME=speech1><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.6.1>My former speeches have but hit your thoughts,</A><br>
+<A NAME=3.6.2>Which can interpret further: only, I say,</A><br>
+<A NAME=3.6.3>Things have been strangely borne. The</A><br>
+<A NAME=3.6.4>gracious Duncan</A><br>
+<A NAME=3.6.5>Was pitied of Macbeth: marry, he was dead:</A><br>
+<A NAME=3.6.6>And the right-valiant Banquo walk'd too late;</A><br>
+<A NAME=3.6.7>Whom, you may say, if't please you, Fleance kill'd,</A><br>
+<A NAME=3.6.8>For Fleance fled: men must not walk too late.</A><br>
+<A NAME=3.6.9>Who cannot want the thought how monstrous</A><br>
+<A NAME=3.6.10>It was for Malcolm and for Donalbain</A><br>
+<A NAME=3.6.11>To kill their gracious father? damned fact!</A><br>
+<A NAME=3.6.12>How it did grieve Macbeth! did he not straight</A><br>
+<A NAME=3.6.13>In pious rage the two delinquents tear,</A><br>
+<A NAME=3.6.14>That were the slaves of drink and thralls of sleep?</A><br>
+<A NAME=3.6.15>Was not that nobly done? Ay, and wisely too;</A><br>
+<A NAME=3.6.16>For 'twould have anger'd any heart alive</A><br>
+<A NAME=3.6.17>To hear the men deny't. So that, I say,</A><br>
+<A NAME=3.6.18>He has borne all things well: and I do think</A><br>
+<A NAME=3.6.19>That had he Duncan's sons under his key--</A><br>
+<A NAME=3.6.20>As, an't please heaven, he shall not--they</A><br>
+<A NAME=3.6.21>should find</A><br>
+<A NAME=3.6.22>What 'twere to kill a father; so should Fleance.</A><br>
+<A NAME=3.6.23>But, peace! for from broad words and 'cause he fail'd</A><br>
+<A NAME=3.6.24>His presence at the tyrant's feast, I hear</A><br>
+<A NAME=3.6.25>Macduff lives in disgrace: sir, can you tell</A><br>
+<A NAME=3.6.26>Where he bestows himself?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Lord</b></a>
+<blockquote>
+<A NAME=3.6.27>The son of Duncan,</A><br>
+<A NAME=3.6.28>From whom this tyrant holds the due of birth</A><br>
+<A NAME=3.6.29>Lives in the English court, and is received</A><br>
+<A NAME=3.6.30>Of the most pious Edward with such grace</A><br>
+<A NAME=3.6.31>That the malevolence of fortune nothing</A><br>
+<A NAME=3.6.32>Takes from his high respect: thither Macduff</A><br>
+<A NAME=3.6.33>Is gone to pray the holy king, upon his aid</A><br>
+<A NAME=3.6.34>To wake Northumberland and warlike Siward:</A><br>
+<A NAME=3.6.35>That, by the help of these--with Him above</A><br>
+<A NAME=3.6.36>To ratify the work--we may again</A><br>
+<A NAME=3.6.37>Give to our tables meat, sleep to our nights,</A><br>
+<A NAME=3.6.38>Free from our feasts and banquets bloody knives,</A><br>
+<A NAME=3.6.39>Do faithful homage and receive free honours:</A><br>
+<A NAME=3.6.40>All which we pine for now: and this report</A><br>
+<A NAME=3.6.41>Hath so exasperate the king that he</A><br>
+<A NAME=3.6.42>Prepares for some attempt of war.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.6.43>Sent he to Macduff?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>Lord</b></a>
+<blockquote>
+<A NAME=3.6.44>He did: and with an absolute 'Sir, not I,'</A><br>
+<A NAME=3.6.45>The cloudy messenger turns me his back,</A><br>
+<A NAME=3.6.46>And hums, as who should say 'You'll rue the time</A><br>
+<A NAME=3.6.47>That clogs me with this answer.'</A><br>
+</blockquote>
+
+<A NAME=speech5><b>LENNOX</b></a>
+<blockquote>
+<A NAME=3.6.48>And that well might</A><br>
+<A NAME=3.6.49>Advise him to a caution, to hold what distance</A><br>
+<A NAME=3.6.50>His wisdom can provide. Some holy angel</A><br>
+<A NAME=3.6.51>Fly to the court of England and unfold</A><br>
+<A NAME=3.6.52>His message ere he come, that a swift blessing</A><br>
+<A NAME=3.6.53>May soon return to this our suffering country</A><br>
+<A NAME=3.6.54>Under a hand accursed!</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Lord</b></a>
+<blockquote>
+<A NAME=3.6.55>I'll send my prayers with him.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote><p>
+<H3>ACT IV</h3>
+<h3>SCENE I. A cavern. In the middle, a boiling cauldron.</h3>
+<p><blockquote>
+<i>Thunder. Enter the three Witches</i>
+</blockquote>
+
+<A NAME=speech1><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.1>Thrice the brinded cat hath mew'd.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Second Witch</b></a>
+<blockquote>
+<A NAME=4.1.2>Thrice and once the hedge-pig whined.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Third Witch</b></a>
+<blockquote>
+<A NAME=4.1.3>Harpier cries 'Tis time, 'tis time.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.4>Round about the cauldron go;</A><br>
+<A NAME=4.1.5>In the poison'd entrails throw.</A><br>
+<A NAME=4.1.6>Toad, that under cold stone</A><br>
+<A NAME=4.1.7>Days and nights has thirty-one</A><br>
+<A NAME=4.1.8>Swelter'd venom sleeping got,</A><br>
+<A NAME=4.1.9>Boil thou first i' the charmed pot.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.10>Double, double toil and trouble;</A><br>
+<A NAME=4.1.11>Fire burn, and cauldron bubble.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Second Witch</b></a>
+<blockquote>
+<A NAME=4.1.12>Fillet of a fenny snake,</A><br>
+<A NAME=4.1.13>In the cauldron boil and bake;</A><br>
+<A NAME=4.1.14>Eye of newt and toe of frog,</A><br>
+<A NAME=4.1.15>Wool of bat and tongue of dog,</A><br>
+<A NAME=4.1.16>Adder's fork and blind-worm's sting,</A><br>
+<A NAME=4.1.17>Lizard's leg and owlet's wing,</A><br>
+<A NAME=4.1.18>For a charm of powerful trouble,</A><br>
+<A NAME=4.1.19>Like a hell-broth boil and bubble.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.20>Double, double toil and trouble;</A><br>
+<A NAME=4.1.21>Fire burn and cauldron bubble.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>Third Witch</b></a>
+<blockquote>
+<A NAME=4.1.22>Scale of dragon, tooth of wolf,</A><br>
+<A NAME=4.1.23>Witches' mummy, maw and gulf</A><br>
+<A NAME=4.1.24>Of the ravin'd salt-sea shark,</A><br>
+<A NAME=4.1.25>Root of hemlock digg'd i' the dark,</A><br>
+<A NAME=4.1.26>Liver of blaspheming Jew,</A><br>
+<A NAME=4.1.27>Gall of goat, and slips of yew</A><br>
+<A NAME=4.1.28>Silver'd in the moon's eclipse,</A><br>
+<A NAME=4.1.29>Nose of Turk and Tartar's lips,</A><br>
+<A NAME=4.1.30>Finger of birth-strangled babe</A><br>
+<A NAME=4.1.31>Ditch-deliver'd by a drab,</A><br>
+<A NAME=4.1.32>Make the gruel thick and slab:</A><br>
+<A NAME=4.1.33>Add thereto a tiger's chaudron,</A><br>
+<A NAME=4.1.34>For the ingredients of our cauldron.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.35>Double, double toil and trouble;</A><br>
+<A NAME=4.1.36>Fire burn and cauldron bubble.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>Second Witch</b></a>
+<blockquote>
+<A NAME=4.1.37>Cool it with a baboon's blood,</A><br>
+<A NAME=4.1.38>Then the charm is firm and good.</A><br>
+<p><i>Enter HECATE to the other three Witches</i></p>
+</blockquote>
+
+<A NAME=speech11><b>HECATE</b></a>
+<blockquote>
+<A NAME=4.1.39>O well done! I commend your pains;</A><br>
+<A NAME=4.1.40>And every one shall share i' the gains;</A><br>
+<A NAME=4.1.41>And now about the cauldron sing,</A><br>
+<A NAME=4.1.42>Live elves and fairies in a ring,</A><br>
+<A NAME=4.1.43>Enchanting all that you put in.</A><br>
+<p><i>Music and a song: 'Black spirits,' & c</i></p>
+<p><i>HECATE retires</i></p>
+</blockquote>
+
+<A NAME=speech12><b>Second Witch</b></a>
+<blockquote>
+<A NAME=4.1.44>By the pricking of my thumbs,</A><br>
+<A NAME=4.1.45>Something wicked this way comes.</A><br>
+<A NAME=4.1.46>Open, locks,</A><br>
+<A NAME=4.1.47>Whoever knocks!</A><br>
+<p><i>Enter MACBETH</i></p>
+</blockquote>
+
+<A NAME=speech13><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.48>How now, you secret, black, and midnight hags!</A><br>
+<A NAME=4.1.49>What is't you do?</A><br>
+</blockquote>
+
+<A NAME=speech14><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.50> A deed without a name.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.51>I conjure you, by that which you profess,</A><br>
+<A NAME=4.1.52>Howe'er you come to know it, answer me:</A><br>
+<A NAME=4.1.53>Though you untie the winds and let them fight</A><br>
+<A NAME=4.1.54>Against the churches; though the yesty waves</A><br>
+<A NAME=4.1.55>Confound and swallow navigation up;</A><br>
+<A NAME=4.1.56>Though bladed corn be lodged and trees blown down;</A><br>
+<A NAME=4.1.57>Though castles topple on their warders' heads;</A><br>
+<A NAME=4.1.58>Though palaces and pyramids do slope</A><br>
+<A NAME=4.1.59>Their heads to their foundations; though the treasure</A><br>
+<A NAME=4.1.60>Of nature's germens tumble all together,</A><br>
+<A NAME=4.1.61>Even till destruction sicken; answer me</A><br>
+<A NAME=4.1.62>To what I ask you.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.63> Speak.</A><br>
+</blockquote>
+
+<A NAME=speech17><b>Second Witch</b></a>
+<blockquote>
+<A NAME=4.1.64>Demand.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>Third Witch</b></a>
+<blockquote>
+<A NAME=4.1.65>We'll answer.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.66>Say, if thou'dst rather hear it from our mouths,</A><br>
+<A NAME=4.1.67>Or from our masters?</A><br>
+</blockquote>
+
+<A NAME=speech20><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.68>Call 'em; let me see 'em.</A><br>
+</blockquote>
+
+<A NAME=speech21><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.69>Pour in sow's blood, that hath eaten</A><br>
+<A NAME=4.1.70>Her nine farrow; grease that's sweaten</A><br>
+<A NAME=4.1.71>From the murderer's gibbet throw</A><br>
+<A NAME=4.1.72>Into the flame.</A><br>
+</blockquote>
+
+<A NAME=speech22><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.73> Come, high or low;</A><br>
+<A NAME=4.1.74>Thyself and office deftly show!</A><br>
+<p><i>Thunder. First Apparition: an armed Head</i></p>
+</blockquote>
+
+<A NAME=speech23><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.75>Tell me, thou unknown power,--</A><br>
+</blockquote>
+
+<A NAME=speech24><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.76>He knows thy thought:</A><br>
+<A NAME=4.1.77>Hear his speech, but say thou nought.</A><br>
+</blockquote>
+
+<A NAME=speech25><b>First Apparition</b></a>
+<blockquote>
+<A NAME=4.1.78>Macbeth! Macbeth! Macbeth! beware Macduff;</A><br>
+<A NAME=4.1.79>Beware the thane of Fife. Dismiss me. Enough.</A><br>
+<p><i>Descends</i></p>
+</blockquote>
+
+<A NAME=speech26><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.80>Whate'er thou art, for thy good caution, thanks;</A><br>
+<A NAME=4.1.81>Thou hast harp'd my fear aright: but one</A><br>
+<A NAME=4.1.82>word more,--</A><br>
+</blockquote>
+
+<A NAME=speech27><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.83>He will not be commanded: here's another,</A><br>
+<A NAME=4.1.84>More potent than the first.</A><br>
+<p><i>Thunder. Second Apparition: A bloody Child</i></p>
+</blockquote>
+
+<A NAME=speech28><b>Second Apparition</b></a>
+<blockquote>
+<A NAME=4.1.85>Macbeth! Macbeth! Macbeth!</A><br>
+</blockquote>
+
+<A NAME=speech29><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.86>Had I three ears, I'ld hear thee.</A><br>
+</blockquote>
+
+<A NAME=speech30><b>Second Apparition</b></a>
+<blockquote>
+<A NAME=4.1.87>Be bloody, bold, and resolute; laugh to scorn</A><br>
+<A NAME=4.1.88>The power of man, for none of woman born</A><br>
+<A NAME=4.1.89>Shall harm Macbeth.</A><br>
+<p><i>Descends</i></p>
+</blockquote>
+
+<A NAME=speech31><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.90>Then live, Macduff: what need I fear of thee?</A><br>
+<A NAME=4.1.91>But yet I'll make assurance double sure,</A><br>
+<A NAME=4.1.92>And take a bond of fate: thou shalt not live;</A><br>
+<A NAME=4.1.93>That I may tell pale-hearted fear it lies,</A><br>
+<A NAME=4.1.94>And sleep in spite of thunder.</A><br>
+<p><i>Thunder. Third Apparition: a Child crowned, with a tree in his hand</i></p>
+<A NAME=4.1.95>What is this</A><br>
+<A NAME=4.1.96>That rises like the issue of a king,</A><br>
+<A NAME=4.1.97>And wears upon his baby-brow the round</A><br>
+<A NAME=4.1.98>And top of sovereignty?</A><br>
+</blockquote>
+
+<A NAME=speech32><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.99>Listen, but speak not to't.</A><br>
+</blockquote>
+
+<A NAME=speech33><b>Third Apparition</b></a>
+<blockquote>
+<A NAME=4.1.100>Be lion-mettled, proud; and take no care</A><br>
+<A NAME=4.1.101>Who chafes, who frets, or where conspirers are:</A><br>
+<A NAME=4.1.102>Macbeth shall never vanquish'd be until</A><br>
+<A NAME=4.1.103>Great Birnam wood to high Dunsinane hill</A><br>
+<A NAME=4.1.104>Shall come against him.</A><br>
+<p><i>Descends</i></p>
+</blockquote>
+
+<A NAME=speech34><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.105>That will never be</A><br>
+<A NAME=4.1.106>Who can impress the forest, bid the tree</A><br>
+<A NAME=4.1.107>Unfix his earth-bound root? Sweet bodements! good!</A><br>
+<A NAME=4.1.108>Rebellion's head, rise never till the wood</A><br>
+<A NAME=4.1.109>Of Birnam rise, and our high-placed Macbeth</A><br>
+<A NAME=4.1.110>Shall live the lease of nature, pay his breath</A><br>
+<A NAME=4.1.111>To time and mortal custom. Yet my heart</A><br>
+<A NAME=4.1.112>Throbs to know one thing: tell me, if your art</A><br>
+<A NAME=4.1.113>Can tell so much: shall Banquo's issue ever</A><br>
+<A NAME=4.1.114>Reign in this kingdom?</A><br>
+</blockquote>
+
+<A NAME=speech35><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.115>Seek to know no more.</A><br>
+</blockquote>
+
+<A NAME=speech36><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.116>I will be satisfied: deny me this,</A><br>
+<A NAME=4.1.117>And an eternal curse fall on you! Let me know.</A><br>
+<A NAME=4.1.118>Why sinks that cauldron? and what noise is this?</A><br>
+<p><i>Hautboys</i></p>
+</blockquote>
+
+<A NAME=speech37><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.119>Show!</A><br>
+</blockquote>
+
+<A NAME=speech38><b>Second Witch</b></a>
+<blockquote>
+<A NAME=4.1.120>Show!</A><br>
+</blockquote>
+
+<A NAME=speech39><b>Third Witch</b></a>
+<blockquote>
+<A NAME=4.1.121>Show!</A><br>
+</blockquote>
+
+<A NAME=speech40><b>ALL</b></a>
+<blockquote>
+<A NAME=4.1.122>Show his eyes, and grieve his heart;</A><br>
+<A NAME=4.1.123>Come like shadows, so depart!</A><br>
+<p><i>A show of Eight Kings, the last with a glass in his hand; GHOST OF BANQUO following</i></p>
+</blockquote>
+
+<A NAME=speech41><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.124>Thou art too like the spirit of Banquo: down!</A><br>
+<A NAME=4.1.125>Thy crown does sear mine eye-balls. And thy hair,</A><br>
+<A NAME=4.1.126>Thou other gold-bound brow, is like the first.</A><br>
+<A NAME=4.1.127>A third is like the former. Filthy hags!</A><br>
+<A NAME=4.1.128>Why do you show me this? A fourth! Start, eyes!</A><br>
+<A NAME=4.1.129>What, will the line stretch out to the crack of doom?</A><br>
+<A NAME=4.1.130>Another yet! A seventh! I'll see no more:</A><br>
+<A NAME=4.1.131>And yet the eighth appears, who bears a glass</A><br>
+<A NAME=4.1.132>Which shows me many more; and some I see</A><br>
+<A NAME=4.1.133>That two-fold balls and treble scepters carry:</A><br>
+<A NAME=4.1.134>Horrible sight! Now, I see, 'tis true;</A><br>
+<A NAME=4.1.135>For the blood-bolter'd Banquo smiles upon me,</A><br>
+<A NAME=4.1.136>And points at them for his.</A><br>
+<p><i>Apparitions vanish</i></p>
+<A NAME=4.1.137>What, is this so?</A><br>
+</blockquote>
+
+<A NAME=speech42><b>First Witch</b></a>
+<blockquote>
+<A NAME=4.1.138>Ay, sir, all this is so: but why</A><br>
+<A NAME=4.1.139>Stands Macbeth thus amazedly?</A><br>
+<A NAME=4.1.140>Come, sisters, cheer we up his sprites,</A><br>
+<A NAME=4.1.141>And show the best of our delights:</A><br>
+<A NAME=4.1.142>I'll charm the air to give a sound,</A><br>
+<A NAME=4.1.143>While you perform your antic round:</A><br>
+<A NAME=4.1.144>That this great king may kindly say,</A><br>
+<A NAME=4.1.145>Our duties did his welcome pay.</A><br>
+<p><i>Music. The witches dance and then vanish, with HECATE</i></p>
+</blockquote>
+
+<A NAME=speech43><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.146>Where are they? Gone? Let this pernicious hour</A><br>
+<A NAME=4.1.147>Stand aye accursed in the calendar!</A><br>
+<A NAME=4.1.148>Come in, without there!</A><br>
+<p><i>Enter LENNOX</i></p>
+</blockquote>
+
+<A NAME=speech44><b>LENNOX</b></a>
+<blockquote>
+<A NAME=4.1.149>What's your grace's will?</A><br>
+</blockquote>
+
+<A NAME=speech45><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.150>Saw you the weird sisters?</A><br>
+</blockquote>
+
+<A NAME=speech46><b>LENNOX</b></a>
+<blockquote>
+<A NAME=4.1.151>No, my lord.</A><br>
+</blockquote>
+
+<A NAME=speech47><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.152>Came they not by you?</A><br>
+</blockquote>
+
+<A NAME=speech48><b>LENNOX</b></a>
+<blockquote>
+<A NAME=4.1.153>No, indeed, my lord.</A><br>
+</blockquote>
+
+<A NAME=speech49><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.154>Infected be the air whereon they ride;</A><br>
+<A NAME=4.1.155>And damn'd all those that trust them! I did hear</A><br>
+<A NAME=4.1.156>The galloping of horse: who was't came by?</A><br>
+</blockquote>
+
+<A NAME=speech50><b>LENNOX</b></a>
+<blockquote>
+<A NAME=4.1.157>'Tis two or three, my lord, that bring you word</A><br>
+<A NAME=4.1.158>Macduff is fled to England.</A><br>
+</blockquote>
+
+<A NAME=speech51><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.159>Fled to England!</A><br>
+</blockquote>
+
+<A NAME=speech52><b>LENNOX</b></a>
+<blockquote>
+<A NAME=4.1.160>Ay, my good lord.</A><br>
+</blockquote>
+
+<A NAME=speech53><b>MACBETH</b></a>
+<blockquote>
+<A NAME=4.1.161>Time, thou anticipatest my dread exploits:</A><br>
+<A NAME=4.1.162>The flighty purpose never is o'ertook</A><br>
+<A NAME=4.1.163>Unless the deed go with it; from this moment</A><br>
+<A NAME=4.1.164>The very firstlings of my heart shall be</A><br>
+<A NAME=4.1.165>The firstlings of my hand. And even now,</A><br>
+<A NAME=4.1.166>To crown my thoughts with acts, be it thought and done:</A><br>
+<A NAME=4.1.167>The castle of Macduff I will surprise;</A><br>
+<A NAME=4.1.168>Seize upon Fife; give to the edge o' the sword</A><br>
+<A NAME=4.1.169>His wife, his babes, and all unfortunate souls</A><br>
+<A NAME=4.1.170>That trace him in his line. No boasting like a fool;</A><br>
+<A NAME=4.1.171>This deed I'll do before this purpose cool.</A><br>
+<A NAME=4.1.172>But no more sights!--Where are these gentlemen?</A><br>
+<A NAME=4.1.173>Come, bring me where they are.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE II. Fife. Macduff's castle.</h3>
+<p><blockquote>
+<i>Enter LADY MACDUFF, her Son, and ROSS</i>
+</blockquote>
+
+<A NAME=speech1><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.1>What had he done, to make him fly the land?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.2.2>You must have patience, madam.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.3>He had none:</A><br>
+<A NAME=4.2.4>His flight was madness: when our actions do not,</A><br>
+<A NAME=4.2.5>Our fears do make us traitors.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.2.6>You know not</A><br>
+<A NAME=4.2.7>Whether it was his wisdom or his fear.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.8>Wisdom! to leave his wife, to leave his babes,</A><br>
+<A NAME=4.2.9>His mansion and his titles in a place</A><br>
+<A NAME=4.2.10>From whence himself does fly? He loves us not;</A><br>
+<A NAME=4.2.11>He wants the natural touch: for the poor wren,</A><br>
+<A NAME=4.2.12>The most diminutive of birds, will fight,</A><br>
+<A NAME=4.2.13>Her young ones in her nest, against the owl.</A><br>
+<A NAME=4.2.14>All is the fear and nothing is the love;</A><br>
+<A NAME=4.2.15>As little is the wisdom, where the flight</A><br>
+<A NAME=4.2.16>So runs against all reason.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.2.17>My dearest coz,</A><br>
+<A NAME=4.2.18>I pray you, school yourself: but for your husband,</A><br>
+<A NAME=4.2.19>He is noble, wise, judicious, and best knows</A><br>
+<A NAME=4.2.20>The fits o' the season. I dare not speak</A><br>
+<A NAME=4.2.21>much further;</A><br>
+<A NAME=4.2.22>But cruel are the times, when we are traitors</A><br>
+<A NAME=4.2.23>And do not know ourselves, when we hold rumour</A><br>
+<A NAME=4.2.24>From what we fear, yet know not what we fear,</A><br>
+<A NAME=4.2.25>But float upon a wild and violent sea</A><br>
+<A NAME=4.2.26>Each way and move. I take my leave of you:</A><br>
+<A NAME=4.2.27>Shall not be long but I'll be here again:</A><br>
+<A NAME=4.2.28>Things at the worst will cease, or else climb upward</A><br>
+<A NAME=4.2.29>To what they were before. My pretty cousin,</A><br>
+<A NAME=4.2.30>Blessing upon you!</A><br>
+</blockquote>
+
+<A NAME=speech7><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.31>Father'd he is, and yet he's fatherless.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.2.32>I am so much a fool, should I stay longer,</A><br>
+<A NAME=4.2.33>It would be my disgrace and your discomfort:</A><br>
+<A NAME=4.2.34>I take my leave at once.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech9><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.35>Sirrah, your father's dead;</A><br>
+<A NAME=4.2.36>And what will you do now? How will you live?</A><br>
+</blockquote>
+
+<A NAME=speech10><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.37>As birds do, mother.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.38>What, with worms and flies?</A><br>
+</blockquote>
+
+<A NAME=speech12><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.39>With what I get, I mean; and so do they.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.40>Poor bird! thou'ldst never fear the net nor lime,</A><br>
+<A NAME=4.2.41>The pitfall nor the gin.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.42>Why should I, mother? Poor birds they are not set for.</A><br>
+<A NAME=4.2.43>My father is not dead, for all your saying.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.44>Yes, he is dead; how wilt thou do for a father?</A><br>
+</blockquote>
+
+<A NAME=speech16><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.45>Nay, how will you do for a husband?</A><br>
+</blockquote>
+
+<A NAME=speech17><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.46>Why, I can buy me twenty at any market.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.47>Then you'll buy 'em to sell again.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.48>Thou speak'st with all thy wit: and yet, i' faith,</A><br>
+<A NAME=4.2.49>With wit enough for thee.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.50>Was my father a traitor, mother?</A><br>
+</blockquote>
+
+<A NAME=speech21><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.51>Ay, that he was.</A><br>
+</blockquote>
+
+<A NAME=speech22><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.52>What is a traitor?</A><br>
+</blockquote>
+
+<A NAME=speech23><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.53>Why, one that swears and lies.</A><br>
+</blockquote>
+
+<A NAME=speech24><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.54>And be all traitors that do so?</A><br>
+</blockquote>
+
+<A NAME=speech25><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.55>Every one that does so is a traitor, and must be hanged.</A><br>
+</blockquote>
+
+<A NAME=speech26><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.56>And must they all be hanged that swear and lie?</A><br>
+</blockquote>
+
+<A NAME=speech27><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.57>Every one.</A><br>
+</blockquote>
+
+<A NAME=speech28><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.58>Who must hang them?</A><br>
+</blockquote>
+
+<A NAME=speech29><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.59>Why, the honest men.</A><br>
+</blockquote>
+
+<A NAME=speech30><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.60>Then the liars and swearers are fools,</A><br>
+<A NAME=4.2.61>for there are liars and swearers enow to beat</A><br>
+<A NAME=4.2.62>the honest men and hang up them.</A><br>
+</blockquote>
+
+<A NAME=speech31><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.63>Now, God help thee, poor monkey!</A><br>
+<A NAME=4.2.64>But how wilt thou do for a father?</A><br>
+</blockquote>
+
+<A NAME=speech32><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.65>If he were dead, you'ld weep for</A><br>
+<A NAME=4.2.66>him: if you would not, it were a good sign</A><br>
+<A NAME=4.2.67>that I should quickly have a new father.</A><br>
+</blockquote>
+
+<A NAME=speech33><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.68>Poor prattler, how thou talk'st!</A><br>
+<p><i>Enter a Messenger</i></p>
+</blockquote>
+
+<A NAME=speech34><b>Messenger</b></a>
+<blockquote>
+<A NAME=4.2.69>Bless you, fair dame! I am not to you known,</A><br>
+<A NAME=4.2.70>Though in your state of honour I am perfect.</A><br>
+<A NAME=4.2.71>I doubt some danger does approach you nearly:</A><br>
+<A NAME=4.2.72>If you will take a homely man's advice,</A><br>
+<A NAME=4.2.73>Be not found here; hence, with your little ones.</A><br>
+<A NAME=4.2.74>To fright you thus, methinks, I am too savage;</A><br>
+<A NAME=4.2.75>To do worse to you were fell cruelty,</A><br>
+<A NAME=4.2.76>Which is too nigh your person. Heaven preserve you!</A><br>
+<A NAME=4.2.77>I dare abide no longer.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech35><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.78>Whither should I fly?</A><br>
+<A NAME=4.2.79>I have done no harm. But I remember now</A><br>
+<A NAME=4.2.80>I am in this earthly world; where to do harm</A><br>
+<A NAME=4.2.81>Is often laudable, to do good sometime</A><br>
+<A NAME=4.2.82>Accounted dangerous folly: why then, alas,</A><br>
+<A NAME=4.2.83>Do I put up that womanly defence,</A><br>
+<A NAME=4.2.84>To say I have done no harm?</A><br>
+<p><i>Enter Murderers</i></p>
+<A NAME=4.2.85>What are these faces?</A><br>
+</blockquote>
+
+<A NAME=speech36><b>First Murderer</b></a>
+<blockquote>
+<A NAME=4.2.86>Where is your husband?</A><br>
+</blockquote>
+
+<A NAME=speech37><b>LADY MACDUFF</b></a>
+<blockquote>
+<A NAME=4.2.87>I hope, in no place so unsanctified</A><br>
+<A NAME=4.2.88>Where such as thou mayst find him.</A><br>
+</blockquote>
+
+<A NAME=speech38><b>First Murderer</b></a>
+<blockquote>
+<A NAME=4.2.89>He's a traitor.</A><br>
+</blockquote>
+
+<A NAME=speech39><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.90>Thou liest, thou shag-hair'd villain!</A><br>
+</blockquote>
+
+<A NAME=speech40><b>First Murderer</b></a>
+<blockquote>
+<A NAME=4.2.91>What, you egg!</A><br>
+<p><i>Stabbing him</i></p>
+<A NAME=4.2.92>Young fry of treachery!</A><br>
+</blockquote>
+
+<A NAME=speech41><b>Son</b></a>
+<blockquote>
+<A NAME=4.2.93>He has kill'd me, mother:</A><br>
+<A NAME=4.2.94>Run away, I pray you!</A><br>
+<p><i>Dies</i></p>
+<p><i>Exit LADY MACDUFF, crying 'Murder!' Exeunt Murderers, following her</i></p>
+</blockquote>
+<h3>SCENE III. England. Before the King's palace.</h3>
+<p><blockquote>
+<i>Enter MALCOLM and MACDUFF</i>
+</blockquote>
+
+<A NAME=speech1><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.1>Let us seek out some desolate shade, and there</A><br>
+<A NAME=4.3.2>Weep our sad bosoms empty.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.3>Let us rather</A><br>
+<A NAME=4.3.4>Hold fast the mortal sword, and like good men</A><br>
+<A NAME=4.3.5>Bestride our down-fall'n birthdom: each new morn</A><br>
+<A NAME=4.3.6>New widows howl, new orphans cry, new sorrows</A><br>
+<A NAME=4.3.7>Strike heaven on the face, that it resounds</A><br>
+<A NAME=4.3.8>As if it felt with Scotland and yell'd out</A><br>
+<A NAME=4.3.9>Like syllable of dolour.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.10>What I believe I'll wail,</A><br>
+<A NAME=4.3.11>What know believe, and what I can redress,</A><br>
+<A NAME=4.3.12>As I shall find the time to friend, I will.</A><br>
+<A NAME=4.3.13>What you have spoke, it may be so perchance.</A><br>
+<A NAME=4.3.14>This tyrant, whose sole name blisters our tongues,</A><br>
+<A NAME=4.3.15>Was once thought honest: you have loved him well.</A><br>
+<A NAME=4.3.16>He hath not touch'd you yet. I am young;</A><br>
+<A NAME=4.3.17>but something</A><br>
+<A NAME=4.3.18>You may deserve of him through me, and wisdom</A><br>
+<A NAME=4.3.19>To offer up a weak poor innocent lamb</A><br>
+<A NAME=4.3.20>To appease an angry god.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.21>I am not treacherous.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.22>But Macbeth is.</A><br>
+<A NAME=4.3.23>A good and virtuous nature may recoil</A><br>
+<A NAME=4.3.24>In an imperial charge. But I shall crave</A><br>
+<A NAME=4.3.25>your pardon;</A><br>
+<A NAME=4.3.26>That which you are my thoughts cannot transpose:</A><br>
+<A NAME=4.3.27>Angels are bright still, though the brightest fell;</A><br>
+<A NAME=4.3.28>Though all things foul would wear the brows of grace,</A><br>
+<A NAME=4.3.29>Yet grace must still look so.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.30>I have lost my hopes.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.31>Perchance even there where I did find my doubts.</A><br>
+<A NAME=4.3.32>Why in that rawness left you wife and child,</A><br>
+<A NAME=4.3.33>Those precious motives, those strong knots of love,</A><br>
+<A NAME=4.3.34>Without leave-taking? I pray you,</A><br>
+<A NAME=4.3.35>Let not my jealousies be your dishonours,</A><br>
+<A NAME=4.3.36>But mine own safeties. You may be rightly just,</A><br>
+<A NAME=4.3.37>Whatever I shall think.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.38>Bleed, bleed, poor country!</A><br>
+<A NAME=4.3.39>Great tyranny! lay thou thy basis sure,</A><br>
+<A NAME=4.3.40>For goodness dare not cheque thee: wear thou</A><br>
+<A NAME=4.3.41>thy wrongs;</A><br>
+<A NAME=4.3.42>The title is affeer'd! Fare thee well, lord:</A><br>
+<A NAME=4.3.43>I would not be the villain that thou think'st</A><br>
+<A NAME=4.3.44>For the whole space that's in the tyrant's grasp,</A><br>
+<A NAME=4.3.45>And the rich East to boot.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.46>Be not offended:</A><br>
+<A NAME=4.3.47>I speak not as in absolute fear of you.</A><br>
+<A NAME=4.3.48>I think our country sinks beneath the yoke;</A><br>
+<A NAME=4.3.49>It weeps, it bleeds; and each new day a gash</A><br>
+<A NAME=4.3.50>Is added to her wounds: I think withal</A><br>
+<A NAME=4.3.51>There would be hands uplifted in my right;</A><br>
+<A NAME=4.3.52>And here from gracious England have I offer</A><br>
+<A NAME=4.3.53>Of goodly thousands: but, for all this,</A><br>
+<A NAME=4.3.54>When I shall tread upon the tyrant's head,</A><br>
+<A NAME=4.3.55>Or wear it on my sword, yet my poor country</A><br>
+<A NAME=4.3.56>Shall have more vices than it had before,</A><br>
+<A NAME=4.3.57>More suffer and more sundry ways than ever,</A><br>
+<A NAME=4.3.58>By him that shall succeed.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.59>What should he be?</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.60>It is myself I mean: in whom I know</A><br>
+<A NAME=4.3.61>All the particulars of vice so grafted</A><br>
+<A NAME=4.3.62>That, when they shall be open'd, black Macbeth</A><br>
+<A NAME=4.3.63>Will seem as pure as snow, and the poor state</A><br>
+<A NAME=4.3.64>Esteem him as a lamb, being compared</A><br>
+<A NAME=4.3.65>With my confineless harms.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.66>Not in the legions</A><br>
+<A NAME=4.3.67>Of horrid hell can come a devil more damn'd</A><br>
+<A NAME=4.3.68>In evils to top Macbeth.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.69>I grant him bloody,</A><br>
+<A NAME=4.3.70>Luxurious, avaricious, false, deceitful,</A><br>
+<A NAME=4.3.71>Sudden, malicious, smacking of every sin</A><br>
+<A NAME=4.3.72>That has a name: but there's no bottom, none,</A><br>
+<A NAME=4.3.73>In my voluptuousness: your wives, your daughters,</A><br>
+<A NAME=4.3.74>Your matrons and your maids, could not fill up</A><br>
+<A NAME=4.3.75>The cistern of my lust, and my desire</A><br>
+<A NAME=4.3.76>All continent impediments would o'erbear</A><br>
+<A NAME=4.3.77>That did oppose my will: better Macbeth</A><br>
+<A NAME=4.3.78>Than such an one to reign.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.79>Boundless intemperance</A><br>
+<A NAME=4.3.80>In nature is a tyranny; it hath been</A><br>
+<A NAME=4.3.81>The untimely emptying of the happy throne</A><br>
+<A NAME=4.3.82>And fall of many kings. But fear not yet</A><br>
+<A NAME=4.3.83>To take upon you what is yours: you may</A><br>
+<A NAME=4.3.84>Convey your pleasures in a spacious plenty,</A><br>
+<A NAME=4.3.85>And yet seem cold, the time you may so hoodwink.</A><br>
+<A NAME=4.3.86>We have willing dames enough: there cannot be</A><br>
+<A NAME=4.3.87>That vulture in you, to devour so many</A><br>
+<A NAME=4.3.88>As will to greatness dedicate themselves,</A><br>
+<A NAME=4.3.89>Finding it so inclined.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.90>With this there grows</A><br>
+<A NAME=4.3.91>In my most ill-composed affection such</A><br>
+<A NAME=4.3.92>A stanchless avarice that, were I king,</A><br>
+<A NAME=4.3.93>I should cut off the nobles for their lands,</A><br>
+<A NAME=4.3.94>Desire his jewels and this other's house:</A><br>
+<A NAME=4.3.95>And my more-having would be as a sauce</A><br>
+<A NAME=4.3.96>To make me hunger more; that I should forge</A><br>
+<A NAME=4.3.97>Quarrels unjust against the good and loyal,</A><br>
+<A NAME=4.3.98>Destroying them for wealth.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.99>This avarice</A><br>
+<A NAME=4.3.100>Sticks deeper, grows with more pernicious root</A><br>
+<A NAME=4.3.101>Than summer-seeming lust, and it hath been</A><br>
+<A NAME=4.3.102>The sword of our slain kings: yet do not fear;</A><br>
+<A NAME=4.3.103>Scotland hath foisons to fill up your will.</A><br>
+<A NAME=4.3.104>Of your mere own: all these are portable,</A><br>
+<A NAME=4.3.105>With other graces weigh'd.</A><br>
+</blockquote>
+
+<A NAME=speech17><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.106>But I have none: the king-becoming graces,</A><br>
+<A NAME=4.3.107>As justice, verity, temperance, stableness,</A><br>
+<A NAME=4.3.108>Bounty, perseverance, mercy, lowliness,</A><br>
+<A NAME=4.3.109>Devotion, patience, courage, fortitude,</A><br>
+<A NAME=4.3.110>I have no relish of them, but abound</A><br>
+<A NAME=4.3.111>In the division of each several crime,</A><br>
+<A NAME=4.3.112>Acting it many ways. Nay, had I power, I should</A><br>
+<A NAME=4.3.113>Pour the sweet milk of concord into hell,</A><br>
+<A NAME=4.3.114>Uproar the universal peace, confound</A><br>
+<A NAME=4.3.115>All unity on earth.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.116>O Scotland, Scotland!</A><br>
+</blockquote>
+
+<A NAME=speech19><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.117>If such a one be fit to govern, speak:</A><br>
+<A NAME=4.3.118>I am as I have spoken.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.119>Fit to govern!</A><br>
+<A NAME=4.3.120>No, not to live. O nation miserable,</A><br>
+<A NAME=4.3.121>With an untitled tyrant bloody-scepter'd,</A><br>
+<A NAME=4.3.122>When shalt thou see thy wholesome days again,</A><br>
+<A NAME=4.3.123>Since that the truest issue of thy throne</A><br>
+<A NAME=4.3.124>By his own interdiction stands accursed,</A><br>
+<A NAME=4.3.125>And does blaspheme his breed? Thy royal father</A><br>
+<A NAME=4.3.126>Was a most sainted king: the queen that bore thee,</A><br>
+<A NAME=4.3.127>Oftener upon her knees than on her feet,</A><br>
+<A NAME=4.3.128>Died every day she lived. Fare thee well!</A><br>
+<A NAME=4.3.129>These evils thou repeat'st upon thyself</A><br>
+<A NAME=4.3.130>Have banish'd me from Scotland. O my breast,</A><br>
+<A NAME=4.3.131>Thy hope ends here!</A><br>
+</blockquote>
+
+<A NAME=speech21><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.132>Macduff, this noble passion,</A><br>
+<A NAME=4.3.133>Child of integrity, hath from my soul</A><br>
+<A NAME=4.3.134>Wiped the black scruples, reconciled my thoughts</A><br>
+<A NAME=4.3.135>To thy good truth and honour. Devilish Macbeth</A><br>
+<A NAME=4.3.136>By many of these trains hath sought to win me</A><br>
+<A NAME=4.3.137>Into his power, and modest wisdom plucks me</A><br>
+<A NAME=4.3.138>From over-credulous haste: but God above</A><br>
+<A NAME=4.3.139>Deal between thee and me! for even now</A><br>
+<A NAME=4.3.140>I put myself to thy direction, and</A><br>
+<A NAME=4.3.141>Unspeak mine own detraction, here abjure</A><br>
+<A NAME=4.3.142>The taints and blames I laid upon myself,</A><br>
+<A NAME=4.3.143>For strangers to my nature. I am yet</A><br>
+<A NAME=4.3.144>Unknown to woman, never was forsworn,</A><br>
+<A NAME=4.3.145>Scarcely have coveted what was mine own,</A><br>
+<A NAME=4.3.146>At no time broke my faith, would not betray</A><br>
+<A NAME=4.3.147>The devil to his fellow and delight</A><br>
+<A NAME=4.3.148>No less in truth than life: my first false speaking</A><br>
+<A NAME=4.3.149>Was this upon myself: what I am truly,</A><br>
+<A NAME=4.3.150>Is thine and my poor country's to command:</A><br>
+<A NAME=4.3.151>Whither indeed, before thy here-approach,</A><br>
+<A NAME=4.3.152>Old Siward, with ten thousand warlike men,</A><br>
+<A NAME=4.3.153>Already at a point, was setting forth.</A><br>
+<A NAME=4.3.154>Now we'll together; and the chance of goodness</A><br>
+<A NAME=4.3.155>Be like our warranted quarrel! Why are you silent?</A><br>
+</blockquote>
+
+<A NAME=speech22><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.156>Such welcome and unwelcome things at once</A><br>
+<A NAME=4.3.157>'Tis hard to reconcile.</A><br>
+<p><i>Enter a Doctor</i></p>
+</blockquote>
+
+<A NAME=speech23><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.158>Well; more anon.--Comes the king forth, I pray you?</A><br>
+</blockquote>
+
+<A NAME=speech24><b>Doctor</b></a>
+<blockquote>
+<A NAME=4.3.159>Ay, sir; there are a crew of wretched souls</A><br>
+<A NAME=4.3.160>That stay his cure: their malady convinces</A><br>
+<A NAME=4.3.161>The great assay of art; but at his touch--</A><br>
+<A NAME=4.3.162>Such sanctity hath heaven given his hand--</A><br>
+<A NAME=4.3.163>They presently amend.</A><br>
+</blockquote>
+
+<A NAME=speech25><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.164>I thank you, doctor.</A><br>
+<p><i>Exit Doctor</i></p>
+</blockquote>
+
+<A NAME=speech26><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.165>What's the disease he means?</A><br>
+</blockquote>
+
+<A NAME=speech27><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.166>'Tis call'd the evil:</A><br>
+<A NAME=4.3.167>A most miraculous work in this good king;</A><br>
+<A NAME=4.3.168>Which often, since my here-remain in England,</A><br>
+<A NAME=4.3.169>I have seen him do. How he solicits heaven,</A><br>
+<A NAME=4.3.170>Himself best knows: but strangely-visited people,</A><br>
+<A NAME=4.3.171>All swoln and ulcerous, pitiful to the eye,</A><br>
+<A NAME=4.3.172>The mere despair of surgery, he cures,</A><br>
+<A NAME=4.3.173>Hanging a golden stamp about their necks,</A><br>
+<A NAME=4.3.174>Put on with holy prayers: and 'tis spoken,</A><br>
+<A NAME=4.3.175>To the succeeding royalty he leaves</A><br>
+<A NAME=4.3.176>The healing benediction. With this strange virtue,</A><br>
+<A NAME=4.3.177>He hath a heavenly gift of prophecy,</A><br>
+<A NAME=4.3.178>And sundry blessings hang about his throne,</A><br>
+<A NAME=4.3.179>That speak him full of grace.</A><br>
+<p><i>Enter ROSS</i></p>
+</blockquote>
+
+<A NAME=speech28><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.180>See, who comes here?</A><br>
+</blockquote>
+
+<A NAME=speech29><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.181>My countryman; but yet I know him not.</A><br>
+</blockquote>
+
+<A NAME=speech30><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.182>My ever-gentle cousin, welcome hither.</A><br>
+</blockquote>
+
+<A NAME=speech31><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.183>I know him now. Good God, betimes remove</A><br>
+<A NAME=4.3.184>The means that makes us strangers!</A><br>
+</blockquote>
+
+<A NAME=speech32><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.185>Sir, amen.</A><br>
+</blockquote>
+
+<A NAME=speech33><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.186>Stands Scotland where it did?</A><br>
+</blockquote>
+
+<A NAME=speech34><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.187>Alas, poor country!</A><br>
+<A NAME=4.3.188>Almost afraid to know itself. It cannot</A><br>
+<A NAME=4.3.189>Be call'd our mother, but our grave; where nothing,</A><br>
+<A NAME=4.3.190>But who knows nothing, is once seen to smile;</A><br>
+<A NAME=4.3.191>Where sighs and groans and shrieks that rend the air</A><br>
+<A NAME=4.3.192>Are made, not mark'd; where violent sorrow seems</A><br>
+<A NAME=4.3.193>A modern ecstasy; the dead man's knell</A><br>
+<A NAME=4.3.194>Is there scarce ask'd for who; and good men's lives</A><br>
+<A NAME=4.3.195>Expire before the flowers in their caps,</A><br>
+<A NAME=4.3.196>Dying or ere they sicken.</A><br>
+</blockquote>
+
+<A NAME=speech35><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.197>O, relation</A><br>
+<A NAME=4.3.198>Too nice, and yet too true!</A><br>
+</blockquote>
+
+<A NAME=speech36><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.199>What's the newest grief?</A><br>
+</blockquote>
+
+<A NAME=speech37><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.200>That of an hour's age doth hiss the speaker:</A><br>
+<A NAME=4.3.201>Each minute teems a new one.</A><br>
+</blockquote>
+
+<A NAME=speech38><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.202>How does my wife?</A><br>
+</blockquote>
+
+<A NAME=speech39><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.203>Why, well.</A><br>
+</blockquote>
+
+<A NAME=speech40><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.204> And all my children?</A><br>
+</blockquote>
+
+<A NAME=speech41><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.205>Well too.</A><br>
+</blockquote>
+
+<A NAME=speech42><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.206>The tyrant has not batter'd at their peace?</A><br>
+</blockquote>
+
+<A NAME=speech43><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.207>No; they were well at peace when I did leave 'em.</A><br>
+</blockquote>
+
+<A NAME=speech44><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.208>But not a niggard of your speech: how goes't?</A><br>
+</blockquote>
+
+<A NAME=speech45><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.209>When I came hither to transport the tidings,</A><br>
+<A NAME=4.3.210>Which I have heavily borne, there ran a rumour</A><br>
+<A NAME=4.3.211>Of many worthy fellows that were out;</A><br>
+<A NAME=4.3.212>Which was to my belief witness'd the rather,</A><br>
+<A NAME=4.3.213>For that I saw the tyrant's power a-foot:</A><br>
+<A NAME=4.3.214>Now is the time of help; your eye in Scotland</A><br>
+<A NAME=4.3.215>Would create soldiers, make our women fight,</A><br>
+<A NAME=4.3.216>To doff their dire distresses.</A><br>
+</blockquote>
+
+<A NAME=speech46><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.217>Be't their comfort</A><br>
+<A NAME=4.3.218>We are coming thither: gracious England hath</A><br>
+<A NAME=4.3.219>Lent us good Siward and ten thousand men;</A><br>
+<A NAME=4.3.220>An older and a better soldier none</A><br>
+<A NAME=4.3.221>That Christendom gives out.</A><br>
+</blockquote>
+
+<A NAME=speech47><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.222>Would I could answer</A><br>
+<A NAME=4.3.223>This comfort with the like! But I have words</A><br>
+<A NAME=4.3.224>That would be howl'd out in the desert air,</A><br>
+<A NAME=4.3.225>Where hearing should not latch them.</A><br>
+</blockquote>
+
+<A NAME=speech48><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.226>What concern they?</A><br>
+<A NAME=4.3.227>The general cause? or is it a fee-grief</A><br>
+<A NAME=4.3.228>Due to some single breast?</A><br>
+</blockquote>
+
+<A NAME=speech49><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.229>No mind that's honest</A><br>
+<A NAME=4.3.230>But in it shares some woe; though the main part</A><br>
+<A NAME=4.3.231>Pertains to you alone.</A><br>
+</blockquote>
+
+<A NAME=speech50><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.232>If it be mine,</A><br>
+<A NAME=4.3.233>Keep it not from me, quickly let me have it.</A><br>
+</blockquote>
+
+<A NAME=speech51><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.234>Let not your ears despise my tongue for ever,</A><br>
+<A NAME=4.3.235>Which shall possess them with the heaviest sound</A><br>
+<A NAME=4.3.236>That ever yet they heard.</A><br>
+</blockquote>
+
+<A NAME=speech52><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.237>Hum! I guess at it.</A><br>
+</blockquote>
+
+<A NAME=speech53><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.238>Your castle is surprised; your wife and babes</A><br>
+<A NAME=4.3.239>Savagely slaughter'd: to relate the manner,</A><br>
+<A NAME=4.3.240>Were, on the quarry of these murder'd deer,</A><br>
+<A NAME=4.3.241>To add the death of you.</A><br>
+</blockquote>
+
+<A NAME=speech54><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.242>Merciful heaven!</A><br>
+<A NAME=4.3.243>What, man! ne'er pull your hat upon your brows;</A><br>
+<A NAME=4.3.244>Give sorrow words: the grief that does not speak</A><br>
+<A NAME=4.3.245>Whispers the o'er-fraught heart and bids it break.</A><br>
+</blockquote>
+
+<A NAME=speech55><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.246>My children too?</A><br>
+</blockquote>
+
+<A NAME=speech56><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.247> Wife, children, servants, all</A><br>
+<A NAME=4.3.248>That could be found.</A><br>
+</blockquote>
+
+<A NAME=speech57><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.249>And I must be from thence!</A><br>
+<A NAME=4.3.250>My wife kill'd too?</A><br>
+</blockquote>
+
+<A NAME=speech58><b>ROSS</b></a>
+<blockquote>
+<A NAME=4.3.251>I have said.</A><br>
+</blockquote>
+
+<A NAME=speech59><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.252>Be comforted:</A><br>
+<A NAME=4.3.253>Let's make us medicines of our great revenge,</A><br>
+<A NAME=4.3.254>To cure this deadly grief.</A><br>
+</blockquote>
+
+<A NAME=speech60><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.255>He has no children. All my pretty ones?</A><br>
+<A NAME=4.3.256>Did you say all? O hell-kite! All?</A><br>
+<A NAME=4.3.257>What, all my pretty chickens and their dam</A><br>
+<A NAME=4.3.258>At one fell swoop?</A><br>
+</blockquote>
+
+<A NAME=speech61><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.259>Dispute it like a man.</A><br>
+</blockquote>
+
+<A NAME=speech62><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.260>I shall do so;</A><br>
+<A NAME=4.3.261>But I must also feel it as a man:</A><br>
+<A NAME=4.3.262>I cannot but remember such things were,</A><br>
+<A NAME=4.3.263>That were most precious to me. Did heaven look on,</A><br>
+<A NAME=4.3.264>And would not take their part? Sinful Macduff,</A><br>
+<A NAME=4.3.265>They were all struck for thee! naught that I am,</A><br>
+<A NAME=4.3.266>Not for their own demerits, but for mine,</A><br>
+<A NAME=4.3.267>Fell slaughter on their souls. Heaven rest them now!</A><br>
+</blockquote>
+
+<A NAME=speech63><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.268>Be this the whetstone of your sword: let grief</A><br>
+<A NAME=4.3.269>Convert to anger; blunt not the heart, enrage it.</A><br>
+</blockquote>
+
+<A NAME=speech64><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=4.3.270>O, I could play the woman with mine eyes</A><br>
+<A NAME=4.3.271>And braggart with my tongue! But, gentle heavens,</A><br>
+<A NAME=4.3.272>Cut short all intermission; front to front</A><br>
+<A NAME=4.3.273>Bring thou this fiend of Scotland and myself;</A><br>
+<A NAME=4.3.274>Within my sword's length set him; if he 'scape,</A><br>
+<A NAME=4.3.275>Heaven forgive him too!</A><br>
+</blockquote>
+
+<A NAME=speech65><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=4.3.276>This tune goes manly.</A><br>
+<A NAME=4.3.277>Come, go we to the king; our power is ready;</A><br>
+<A NAME=4.3.278>Our lack is nothing but our leave; Macbeth</A><br>
+<A NAME=4.3.279>Is ripe for shaking, and the powers above</A><br>
+<A NAME=4.3.280>Put on their instruments. Receive what cheer you may:</A><br>
+<A NAME=4.3.281>The night is long that never finds the day.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote><p>
+<H3>ACT V</h3>
+<h3>SCENE I. Dunsinane. Ante-room in the castle.</h3>
+<p><blockquote>
+<i>Enter a Doctor of Physic and a Waiting-Gentlewoman</i>
+</blockquote>
+
+<A NAME=speech1><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.1>I have two nights watched with you, but can perceive</A><br>
+<A NAME=5.1.2>no truth in your report. When was it she last walked?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.3>Since his majesty went into the field, I have seen</A><br>
+<A NAME=5.1.4>her rise from her bed, throw her night-gown upon</A><br>
+<A NAME=5.1.5>her, unlock her closet, take forth paper, fold it,</A><br>
+<A NAME=5.1.6>write upon't, read it, afterwards seal it, and again</A><br>
+<A NAME=5.1.7>return to bed; yet all this while in a most fast sleep.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.8>A great perturbation in nature, to receive at once</A><br>
+<A NAME=5.1.9>the benefit of sleep, and do the effects of</A><br>
+<A NAME=5.1.10>watching! In this slumbery agitation, besides her</A><br>
+<A NAME=5.1.11>walking and other actual performances, what, at any</A><br>
+<A NAME=5.1.12>time, have you heard her say?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.13>That, sir, which I will not report after her.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.14>You may to me: and 'tis most meet you should.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.15>Neither to you nor any one; having no witness to</A><br>
+<A NAME=5.1.16>confirm my speech.</A><br>
+<p><i>Enter LADY MACBETH, with a taper</i></p>
+<A NAME=5.1.17>Lo you, here she comes! This is her very guise;</A><br>
+<A NAME=5.1.18>and, upon my life, fast asleep. Observe her; stand close.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.19>How came she by that light?</A><br>
+</blockquote>
+
+<A NAME=speech8><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.20>Why, it stood by her: she has light by her</A><br>
+<A NAME=5.1.21>continually; 'tis her command.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.22>You see, her eyes are open.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.23>Ay, but their sense is shut.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.24>What is it she does now? Look, how she rubs her hands.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.25>It is an accustomed action with her, to seem thus</A><br>
+<A NAME=5.1.26>washing her hands: I have known her continue in</A><br>
+<A NAME=5.1.27>this a quarter of an hour.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=5.1.28>Yet here's a spot.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.29>Hark! she speaks: I will set down what comes from</A><br>
+<A NAME=5.1.30>her, to satisfy my remembrance the more strongly.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=5.1.31>Out, damned spot! out, I say!--One: two: why,</A><br>
+<A NAME=5.1.32>then, 'tis time to do't.--Hell is murky!--Fie, my</A><br>
+<A NAME=5.1.33>lord, fie! a soldier, and afeard? What need we</A><br>
+<A NAME=5.1.34>fear who knows it, when none can call our power to</A><br>
+<A NAME=5.1.35>account?--Yet who would have thought the old man</A><br>
+<A NAME=5.1.36>to have had so much blood in him.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.37>Do you mark that?</A><br>
+</blockquote>
+
+<A NAME=speech17><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=5.1.38>The thane of Fife had a wife: where is she now?--</A><br>
+<A NAME=5.1.39>What, will these hands ne'er be clean?--No more o'</A><br>
+<A NAME=5.1.40>that, my lord, no more o' that: you mar all with</A><br>
+<A NAME=5.1.41>this starting.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.42>Go to, go to; you have known what you should not.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.43>She has spoke what she should not, I am sure of</A><br>
+<A NAME=5.1.44>that: heaven knows what she has known.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=5.1.45>Here's the smell of the blood still: all the</A><br>
+<A NAME=5.1.46>perfumes of Arabia will not sweeten this little</A><br>
+<A NAME=5.1.47>hand. Oh, oh, oh!</A><br>
+</blockquote>
+
+<A NAME=speech21><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.48>What a sigh is there! The heart is sorely charged.</A><br>
+</blockquote>
+
+<A NAME=speech22><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.49>I would not have such a heart in my bosom for the</A><br>
+<A NAME=5.1.50>dignity of the whole body.</A><br>
+</blockquote>
+
+<A NAME=speech23><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.51>Well, well, well,--</A><br>
+</blockquote>
+
+<A NAME=speech24><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.52>Pray God it be, sir.</A><br>
+</blockquote>
+
+<A NAME=speech25><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.53>This disease is beyond my practise: yet I have known</A><br>
+<A NAME=5.1.54>those which have walked in their sleep who have died</A><br>
+<A NAME=5.1.55>holily in their beds.</A><br>
+</blockquote>
+
+<A NAME=speech26><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=5.1.56>Wash your hands, put on your nightgown; look not so</A><br>
+<A NAME=5.1.57>pale.--I tell you yet again, Banquo's buried; he</A><br>
+<A NAME=5.1.58>cannot come out on's grave.</A><br>
+</blockquote>
+
+<A NAME=speech27><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.59>Even so?</A><br>
+</blockquote>
+
+<A NAME=speech28><b>LADY MACBETH</b></a>
+<blockquote>
+<A NAME=5.1.60>To bed, to bed! there's knocking at the gate:</A><br>
+<A NAME=5.1.61>come, come, come, come, give me your hand. What's</A><br>
+<A NAME=5.1.62>done cannot be undone.--To bed, to bed, to bed!</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech29><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.63>Will she go now to bed?</A><br>
+</blockquote>
+
+<A NAME=speech30><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.64>Directly.</A><br>
+</blockquote>
+
+<A NAME=speech31><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.1.65>Foul whisperings are abroad: unnatural deeds</A><br>
+<A NAME=5.1.66>Do breed unnatural troubles: infected minds</A><br>
+<A NAME=5.1.67>To their deaf pillows will discharge their secrets:</A><br>
+<A NAME=5.1.68>More needs she the divine than the physician.</A><br>
+<A NAME=5.1.69>God, God forgive us all! Look after her;</A><br>
+<A NAME=5.1.70>Remove from her the means of all annoyance,</A><br>
+<A NAME=5.1.71>And still keep eyes upon her. So, good night:</A><br>
+<A NAME=5.1.72>My mind she has mated, and amazed my sight.</A><br>
+<A NAME=5.1.73>I think, but dare not speak.</A><br>
+</blockquote>
+
+<A NAME=speech32><b>Gentlewoman</b></a>
+<blockquote>
+<A NAME=5.1.74>Good night, good doctor.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE II. The country near Dunsinane.</h3>
+<p><blockquote>
+<i>Drum and colours. Enter MENTEITH, CAITHNESS, ANGUS, LENNOX, and Soldiers</i>
+</blockquote>
+
+<A NAME=speech1><b>MENTEITH</b></a>
+<blockquote>
+<A NAME=5.2.1>The English power is near, led on by Malcolm,</A><br>
+<A NAME=5.2.2>His uncle Siward and the good Macduff:</A><br>
+<A NAME=5.2.3>Revenges burn in them; for their dear causes</A><br>
+<A NAME=5.2.4>Would to the bleeding and the grim alarm</A><br>
+<A NAME=5.2.5>Excite the mortified man.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>ANGUS</b></a>
+<blockquote>
+<A NAME=5.2.6>Near Birnam wood</A><br>
+<A NAME=5.2.7>Shall we well meet them; that way are they coming.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>CAITHNESS</b></a>
+<blockquote>
+<A NAME=5.2.8>Who knows if Donalbain be with his brother?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>LENNOX</b></a>
+<blockquote>
+<A NAME=5.2.9>For certain, sir, he is not: I have a file</A><br>
+<A NAME=5.2.10>Of all the gentry: there is Siward's son,</A><br>
+<A NAME=5.2.11>And many unrough youths that even now</A><br>
+<A NAME=5.2.12>Protest their first of manhood.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MENTEITH</b></a>
+<blockquote>
+<A NAME=5.2.13>What does the tyrant?</A><br>
+</blockquote>
+
+<A NAME=speech6><b>CAITHNESS</b></a>
+<blockquote>
+<A NAME=5.2.14>Great Dunsinane he strongly fortifies:</A><br>
+<A NAME=5.2.15>Some say he's mad; others that lesser hate him</A><br>
+<A NAME=5.2.16>Do call it valiant fury: but, for certain,</A><br>
+<A NAME=5.2.17>He cannot buckle his distemper'd cause</A><br>
+<A NAME=5.2.18>Within the belt of rule.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>ANGUS</b></a>
+<blockquote>
+<A NAME=5.2.19>Now does he feel</A><br>
+<A NAME=5.2.20>His secret murders sticking on his hands;</A><br>
+<A NAME=5.2.21>Now minutely revolts upbraid his faith-breach;</A><br>
+<A NAME=5.2.22>Those he commands move only in command,</A><br>
+<A NAME=5.2.23>Nothing in love: now does he feel his title</A><br>
+<A NAME=5.2.24>Hang loose about him, like a giant's robe</A><br>
+<A NAME=5.2.25>Upon a dwarfish thief.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MENTEITH</b></a>
+<blockquote>
+<A NAME=5.2.26>Who then shall blame</A><br>
+<A NAME=5.2.27>His pester'd senses to recoil and start,</A><br>
+<A NAME=5.2.28>When all that is within him does condemn</A><br>
+<A NAME=5.2.29>Itself for being there?</A><br>
+</blockquote>
+
+<A NAME=speech9><b>CAITHNESS</b></a>
+<blockquote>
+<A NAME=5.2.30>Well, march we on,</A><br>
+<A NAME=5.2.31>To give obedience where 'tis truly owed:</A><br>
+<A NAME=5.2.32>Meet we the medicine of the sickly weal,</A><br>
+<A NAME=5.2.33>And with him pour we in our country's purge</A><br>
+<A NAME=5.2.34>Each drop of us.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>LENNOX</b></a>
+<blockquote>
+<A NAME=5.2.35> Or so much as it needs,</A><br>
+<A NAME=5.2.36>To dew the sovereign flower and drown the weeds.</A><br>
+<A NAME=5.2.37>Make we our march towards Birnam.</A><br>
+<p><i>Exeunt, marching</i></p>
+</blockquote>
+<h3>SCENE III. Dunsinane. A room in the castle.</h3>
+<p><blockquote>
+<i>Enter MACBETH, Doctor, and Attendants</i>
+</blockquote>
+
+<A NAME=speech1><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.1>Bring me no more reports; let them fly all:</A><br>
+<A NAME=5.3.2>Till Birnam wood remove to Dunsinane,</A><br>
+<A NAME=5.3.3>I cannot taint with fear. What's the boy Malcolm?</A><br>
+<A NAME=5.3.4>Was he not born of woman? The spirits that know</A><br>
+<A NAME=5.3.5>All mortal consequences have pronounced me thus:</A><br>
+<A NAME=5.3.6>'Fear not, Macbeth; no man that's born of woman</A><br>
+<A NAME=5.3.7>Shall e'er have power upon thee.' Then fly,</A><br>
+<A NAME=5.3.8>false thanes,</A><br>
+<A NAME=5.3.9>And mingle with the English epicures:</A><br>
+<A NAME=5.3.10>The mind I sway by and the heart I bear</A><br>
+<A NAME=5.3.11>Shall never sag with doubt nor shake with fear.</A><br>
+<p><i>Enter a Servant</i></p>
+<A NAME=5.3.12>The devil damn thee black, thou cream-faced loon!</A><br>
+<A NAME=5.3.13>Where got'st thou that goose look?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>Servant</b></a>
+<blockquote>
+<A NAME=5.3.14>There is ten thousand--</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.15>Geese, villain!</A><br>
+</blockquote>
+
+<A NAME=speech4><b>Servant</b></a>
+<blockquote>
+<A NAME=5.3.16>Soldiers, sir.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.17>Go prick thy face, and over-red thy fear,</A><br>
+<A NAME=5.3.18>Thou lily-liver'd boy. What soldiers, patch?</A><br>
+<A NAME=5.3.19>Death of thy soul! those linen cheeks of thine</A><br>
+<A NAME=5.3.20>Are counsellors to fear. What soldiers, whey-face?</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Servant</b></a>
+<blockquote>
+<A NAME=5.3.21>The English force, so please you.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.22>Take thy face hence.</A><br>
+<p><i>Exit Servant</i></p>
+<A NAME=5.3.23>Seyton!--I am sick at heart,</A><br>
+<A NAME=5.3.24>When I behold--Seyton, I say!--This push</A><br>
+<A NAME=5.3.25>Will cheer me ever, or disseat me now.</A><br>
+<A NAME=5.3.26>I have lived long enough: my way of life</A><br>
+<A NAME=5.3.27>Is fall'n into the sear, the yellow leaf;</A><br>
+<A NAME=5.3.28>And that which should accompany old age,</A><br>
+<A NAME=5.3.29>As honour, love, obedience, troops of friends,</A><br>
+<A NAME=5.3.30>I must not look to have; but, in their stead,</A><br>
+<A NAME=5.3.31>Curses, not loud but deep, mouth-honour, breath,</A><br>
+<A NAME=5.3.32>Which the poor heart would fain deny, and dare not. Seyton!</A><br>
+<p><i>Enter SEYTON</i></p>
+</blockquote>
+
+<A NAME=speech8><b>SEYTON</b></a>
+<blockquote>
+<A NAME=5.3.33>What is your gracious pleasure?</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.34>What news more?</A><br>
+</blockquote>
+
+<A NAME=speech10><b>SEYTON</b></a>
+<blockquote>
+<A NAME=5.3.35>All is confirm'd, my lord, which was reported.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.36>I'll fight till from my bones my flesh be hack'd.</A><br>
+<A NAME=5.3.37>Give me my armour.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>SEYTON</b></a>
+<blockquote>
+<A NAME=5.3.38>'Tis not needed yet.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.39>I'll put it on.</A><br>
+<A NAME=5.3.40>Send out more horses; skirr the country round;</A><br>
+<A NAME=5.3.41>Hang those that talk of fear. Give me mine armour.</A><br>
+<A NAME=5.3.42>How does your patient, doctor?</A><br>
+</blockquote>
+
+<A NAME=speech14><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.3.43>Not so sick, my lord,</A><br>
+<A NAME=5.3.44>As she is troubled with thick coming fancies,</A><br>
+<A NAME=5.3.45>That keep her from her rest.</A><br>
+</blockquote>
+
+<A NAME=speech15><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.46>Cure her of that.</A><br>
+<A NAME=5.3.47>Canst thou not minister to a mind diseased,</A><br>
+<A NAME=5.3.48>Pluck from the memory a rooted sorrow,</A><br>
+<A NAME=5.3.49>Raze out the written troubles of the brain</A><br>
+<A NAME=5.3.50>And with some sweet oblivious antidote</A><br>
+<A NAME=5.3.51>Cleanse the stuff'd bosom of that perilous stuff</A><br>
+<A NAME=5.3.52>Which weighs upon the heart?</A><br>
+</blockquote>
+
+<A NAME=speech16><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.3.53>Therein the patient</A><br>
+<A NAME=5.3.54>Must minister to himself.</A><br>
+</blockquote>
+
+<A NAME=speech17><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.55>Throw physic to the dogs; I'll none of it.</A><br>
+<A NAME=5.3.56>Come, put mine armour on; give me my staff.</A><br>
+<A NAME=5.3.57>Seyton, send out. Doctor, the thanes fly from me.</A><br>
+<A NAME=5.3.58>Come, sir, dispatch. If thou couldst, doctor, cast</A><br>
+<A NAME=5.3.59>The water of my land, find her disease,</A><br>
+<A NAME=5.3.60>And purge it to a sound and pristine health,</A><br>
+<A NAME=5.3.61>I would applaud thee to the very echo,</A><br>
+<A NAME=5.3.62>That should applaud again.--Pull't off, I say.--</A><br>
+<A NAME=5.3.63>What rhubarb, cyme, or what purgative drug,</A><br>
+<A NAME=5.3.64>Would scour these English hence? Hear'st thou of them?</A><br>
+</blockquote>
+
+<A NAME=speech18><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.3.65>Ay, my good lord; your royal preparation</A><br>
+<A NAME=5.3.66>Makes us hear something.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.3.67>Bring it after me.</A><br>
+<A NAME=5.3.68>I will not be afraid of death and bane,</A><br>
+<A NAME=5.3.69>Till Birnam forest come to Dunsinane.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>Doctor</b></a>
+<blockquote>
+<A NAME=5.3.70>[Aside] Were I from Dunsinane away and clear,</A><br>
+<A NAME=5.3.71>Profit again should hardly draw me here.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE IV. Country near Birnam wood.</h3>
+<p><blockquote>
+<i>Drum and colours. Enter MALCOLM, SIWARD and YOUNG SIWARD, MACDUFF, MENTEITH, CAITHNESS, ANGUS, LENNOX, ROSS, and Soldiers, marching</i>
+</blockquote>
+
+<A NAME=speech1><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.4.1>Cousins, I hope the days are near at hand</A><br>
+<A NAME=5.4.2>That chambers will be safe.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>MENTEITH</b></a>
+<blockquote>
+<A NAME=5.4.3>We doubt it nothing.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.4.4>What wood is this before us?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MENTEITH</b></a>
+<blockquote>
+<A NAME=5.4.5>The wood of Birnam.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.4.6>Let every soldier hew him down a bough</A><br>
+<A NAME=5.4.7>And bear't before him: thereby shall we shadow</A><br>
+<A NAME=5.4.8>The numbers of our host and make discovery</A><br>
+<A NAME=5.4.9>Err in report of us.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Soldiers</b></a>
+<blockquote>
+<A NAME=5.4.10>It shall be done.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.4.11>We learn no other but the confident tyrant</A><br>
+<A NAME=5.4.12>Keeps still in Dunsinane, and will endure</A><br>
+<A NAME=5.4.13>Our setting down before 't.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.4.14>'Tis his main hope:</A><br>
+<A NAME=5.4.15>For where there is advantage to be given,</A><br>
+<A NAME=5.4.16>Both more and less have given him the revolt,</A><br>
+<A NAME=5.4.17>And none serve with him but constrained things</A><br>
+<A NAME=5.4.18>Whose hearts are absent too.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.4.19>Let our just censures</A><br>
+<A NAME=5.4.20>Attend the true event, and put we on</A><br>
+<A NAME=5.4.21>Industrious soldiership.</A><br>
+</blockquote>
+
+<A NAME=speech10><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.4.22>The time approaches</A><br>
+<A NAME=5.4.23>That will with due decision make us know</A><br>
+<A NAME=5.4.24>What we shall say we have and what we owe.</A><br>
+<A NAME=5.4.25>Thoughts speculative their unsure hopes relate,</A><br>
+<A NAME=5.4.26>But certain issue strokes must arbitrate:</A><br>
+<A NAME=5.4.27>Towards which advance the war.</A><br>
+<p><i>Exeunt, marching</i></p>
+</blockquote>
+<h3>SCENE V. Dunsinane. Within the castle.</h3>
+<p><blockquote>
+<i>Enter MACBETH, SEYTON, and Soldiers, with drum and colours</i>
+</blockquote>
+
+<A NAME=speech1><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.5.1>Hang out our banners on the outward walls;</A><br>
+<A NAME=5.5.2>The cry is still 'They come:' our castle's strength</A><br>
+<A NAME=5.5.3>Will laugh a siege to scorn: here let them lie</A><br>
+<A NAME=5.5.4>Till famine and the ague eat them up:</A><br>
+<A NAME=5.5.5>Were they not forced with those that should be ours,</A><br>
+<A NAME=5.5.6>We might have met them dareful, beard to beard,</A><br>
+<A NAME=5.5.7>And beat them backward home.</A><br>
+<p><i>A cry of women within</i></p>
+<A NAME=5.5.8>What is that noise?</A><br>
+</blockquote>
+
+<A NAME=speech2><b>SEYTON</b></a>
+<blockquote>
+<A NAME=5.5.9>It is the cry of women, my good lord.</A><br>
+<p><i>Exit</i></p>
+</blockquote>
+
+<A NAME=speech3><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.5.10>I have almost forgot the taste of fears;</A><br>
+<A NAME=5.5.11>The time has been, my senses would have cool'd</A><br>
+<A NAME=5.5.12>To hear a night-shriek; and my fell of hair</A><br>
+<A NAME=5.5.13>Would at a dismal treatise rouse and stir</A><br>
+<A NAME=5.5.14>As life were in't: I have supp'd full with horrors;</A><br>
+<A NAME=5.5.15>Direness, familiar to my slaughterous thoughts</A><br>
+<A NAME=5.5.16>Cannot once start me.</A><br>
+<p><i>Re-enter SEYTON</i></p>
+<A NAME=5.5.17>Wherefore was that cry?</A><br>
+</blockquote>
+
+<A NAME=speech4><b>SEYTON</b></a>
+<blockquote>
+<A NAME=5.5.18>The queen, my lord, is dead.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.5.19>She should have died hereafter;</A><br>
+<A NAME=5.5.20>There would have been a time for such a word.</A><br>
+<A NAME=5.5.21>To-morrow, and to-morrow, and to-morrow,</A><br>
+<A NAME=5.5.22>Creeps in this petty pace from day to day</A><br>
+<A NAME=5.5.23>To the last syllable of recorded time,</A><br>
+<A NAME=5.5.24>And all our yesterdays have lighted fools</A><br>
+<A NAME=5.5.25>The way to dusty death. Out, out, brief candle!</A><br>
+<A NAME=5.5.26>Life's but a walking shadow, a poor player</A><br>
+<A NAME=5.5.27>That struts and frets his hour upon the stage</A><br>
+<A NAME=5.5.28>And then is heard no more: it is a tale</A><br>
+<A NAME=5.5.29>Told by an idiot, full of sound and fury,</A><br>
+<A NAME=5.5.30>Signifying nothing.</A><br>
+<p><i>Enter a Messenger</i></p>
+<A NAME=5.5.31>Thou comest to use thy tongue; thy story quickly.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>Messenger</b></a>
+<blockquote>
+<A NAME=5.5.32>Gracious my lord,</A><br>
+<A NAME=5.5.33>I should report that which I say I saw,</A><br>
+<A NAME=5.5.34>But know not how to do it.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.5.35>Well, say, sir.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>Messenger</b></a>
+<blockquote>
+<A NAME=5.5.36>As I did stand my watch upon the hill,</A><br>
+<A NAME=5.5.37>I look'd toward Birnam, and anon, methought,</A><br>
+<A NAME=5.5.38>The wood began to move.</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.5.39>Liar and slave!</A><br>
+</blockquote>
+
+<A NAME=speech10><b>Messenger</b></a>
+<blockquote>
+<A NAME=5.5.40>Let me endure your wrath, if't be not so:</A><br>
+<A NAME=5.5.41>Within this three mile may you see it coming;</A><br>
+<A NAME=5.5.42>I say, a moving grove.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.5.43>If thou speak'st false,</A><br>
+<A NAME=5.5.44>Upon the next tree shalt thou hang alive,</A><br>
+<A NAME=5.5.45>Till famine cling thee: if thy speech be sooth,</A><br>
+<A NAME=5.5.46>I care not if thou dost for me as much.</A><br>
+<A NAME=5.5.47>I pull in resolution, and begin</A><br>
+<A NAME=5.5.48>To doubt the equivocation of the fiend</A><br>
+<A NAME=5.5.49>That lies like truth: 'Fear not, till Birnam wood</A><br>
+<A NAME=5.5.50>Do come to Dunsinane:' and now a wood</A><br>
+<A NAME=5.5.51>Comes toward Dunsinane. Arm, arm, and out!</A><br>
+<A NAME=5.5.52>If this which he avouches does appear,</A><br>
+<A NAME=5.5.53>There is nor flying hence nor tarrying here.</A><br>
+<A NAME=5.5.54>I gin to be aweary of the sun,</A><br>
+<A NAME=5.5.55>And wish the estate o' the world were now undone.</A><br>
+<A NAME=5.5.56>Ring the alarum-bell! Blow, wind! come, wrack!</A><br>
+<A NAME=5.5.57>At least we'll die with harness on our back.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE VI. Dunsinane. Before the castle.</h3>
+<p><blockquote>
+<i>Drum and colours. Enter MALCOLM, SIWARD, MACDUFF, and their Army, with boughs</i>
+</blockquote>
+
+<A NAME=speech1><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.6.1>Now near enough: your leafy screens throw down.</A><br>
+<A NAME=5.6.2>And show like those you are. You, worthy uncle,</A><br>
+<A NAME=5.6.3>Shall, with my cousin, your right-noble son,</A><br>
+<A NAME=5.6.4>Lead our first battle: worthy Macduff and we</A><br>
+<A NAME=5.6.5>Shall take upon 's what else remains to do,</A><br>
+<A NAME=5.6.6>According to our order.</A><br>
+</blockquote>
+
+<A NAME=speech2><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.6.7>Fare you well.</A><br>
+<A NAME=5.6.8>Do we but find the tyrant's power to-night,</A><br>
+<A NAME=5.6.9>Let us be beaten, if we cannot fight.</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.6.10>Make all our trumpets speak; give them all breath,</A><br>
+<A NAME=5.6.11>Those clamorous harbingers of blood and death.</A><br>
+<p><i>Exeunt</i></p>
+</blockquote>
+<h3>SCENE VII. Another part of the field.</h3>
+<p><blockquote>
+<i>Alarums. Enter MACBETH</i>
+</blockquote>
+
+<A NAME=speech1><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.7.1>They have tied me to a stake; I cannot fly,</A><br>
+<A NAME=5.7.2>But, bear-like, I must fight the course. What's he</A><br>
+<A NAME=5.7.3>That was not born of woman? Such a one</A><br>
+<A NAME=5.7.4>Am I to fear, or none.</A><br>
+<p><i>Enter YOUNG SIWARD</i></p>
+</blockquote>
+
+<A NAME=speech2><b>YOUNG SIWARD</b></a>
+<blockquote>
+<A NAME=5.7.5>What is thy name?</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.7.6> Thou'lt be afraid to hear it.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>YOUNG SIWARD</b></a>
+<blockquote>
+<A NAME=5.7.7>No; though thou call'st thyself a hotter name</A><br>
+<A NAME=5.7.8>Than any is in hell.</A><br>
+</blockquote>
+
+<A NAME=speech5><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.7.9>My name's Macbeth.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>YOUNG SIWARD</b></a>
+<blockquote>
+<A NAME=5.7.10>The devil himself could not pronounce a title</A><br>
+<A NAME=5.7.11>More hateful to mine ear.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.7.12>No, nor more fearful.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>YOUNG SIWARD</b></a>
+<blockquote>
+<A NAME=5.7.13>Thou liest, abhorred tyrant; with my sword</A><br>
+<A NAME=5.7.14>I'll prove the lie thou speak'st.</A><br>
+<p><i>They fight and YOUNG SIWARD is slain</i></p>
+</blockquote>
+
+<A NAME=speech9><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.7.15>Thou wast born of woman</A><br>
+<A NAME=5.7.16>But swords I smile at, weapons laugh to scorn,</A><br>
+<A NAME=5.7.17>Brandish'd by man that's of a woman born.</A><br>
+<p><i>Exit</i></p>
+<p><i>Alarums. Enter MACDUFF</i></p>
+</blockquote>
+
+<A NAME=speech10><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.7.18>That way the noise is. Tyrant, show thy face!</A><br>
+<A NAME=5.7.19>If thou be'st slain and with no stroke of mine,</A><br>
+<A NAME=5.7.20>My wife and children's ghosts will haunt me still.</A><br>
+<A NAME=5.7.21>I cannot strike at wretched kerns, whose arms</A><br>
+<A NAME=5.7.22>Are hired to bear their staves: either thou, Macbeth,</A><br>
+<A NAME=5.7.23>Or else my sword with an unbatter'd edge</A><br>
+<A NAME=5.7.24>I sheathe again undeeded. There thou shouldst be;</A><br>
+<A NAME=5.7.25>By this great clatter, one of greatest note</A><br>
+<A NAME=5.7.26>Seems bruited. Let me find him, fortune!</A><br>
+<A NAME=5.7.27>And more I beg not.</A><br>
+<p><i>Exit. Alarums</i></p>
+<p><i>Enter MALCOLM and SIWARD</i></p>
+</blockquote>
+
+<A NAME=speech11><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.7.28>This way, my lord; the castle's gently render'd:</A><br>
+<A NAME=5.7.29>The tyrant's people on both sides do fight;</A><br>
+<A NAME=5.7.30>The noble thanes do bravely in the war;</A><br>
+<A NAME=5.7.31>The day almost itself professes yours,</A><br>
+<A NAME=5.7.32>And little is to do.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.7.33>We have met with foes</A><br>
+<A NAME=5.7.34>That strike beside us.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.7.35>Enter, sir, the castle.</A><br>
+<p><i>Exeunt. Alarums</i></p>
+</blockquote>
+<h3>SCENE VIII. Another part of the field.</h3>
+<p><blockquote>
+<i>Enter MACBETH</i>
+</blockquote>
+
+<A NAME=speech1><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.8.1>Why should I play the Roman fool, and die</A><br>
+<A NAME=5.8.2>On mine own sword? whiles I see lives, the gashes</A><br>
+<A NAME=5.8.3>Do better upon them.</A><br>
+<p><i>Enter MACDUFF</i></p>
+</blockquote>
+
+<A NAME=speech2><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.8.4>Turn, hell-hound, turn!</A><br>
+</blockquote>
+
+<A NAME=speech3><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.8.5>Of all men else I have avoided thee:</A><br>
+<A NAME=5.8.6>But get thee back; my soul is too much charged</A><br>
+<A NAME=5.8.7>With blood of thine already.</A><br>
+</blockquote>
+
+<A NAME=speech4><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.8.8>I have no words:</A><br>
+<A NAME=5.8.9>My voice is in my sword: thou bloodier villain</A><br>
+<A NAME=5.8.10>Than terms can give thee out!</A><br>
+<p><i>They fight</i></p>
+</blockquote>
+
+<A NAME=speech5><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.8.11>Thou losest labour:</A><br>
+<A NAME=5.8.12>As easy mayst thou the intrenchant air</A><br>
+<A NAME=5.8.13>With thy keen sword impress as make me bleed:</A><br>
+<A NAME=5.8.14>Let fall thy blade on vulnerable crests;</A><br>
+<A NAME=5.8.15>I bear a charmed life, which must not yield,</A><br>
+<A NAME=5.8.16>To one of woman born.</A><br>
+</blockquote>
+
+<A NAME=speech6><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.8.17>Despair thy charm;</A><br>
+<A NAME=5.8.18>And let the angel whom thou still hast served</A><br>
+<A NAME=5.8.19>Tell thee, Macduff was from his mother's womb</A><br>
+<A NAME=5.8.20>Untimely ripp'd.</A><br>
+</blockquote>
+
+<A NAME=speech7><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.8.21>Accursed be that tongue that tells me so,</A><br>
+<A NAME=5.8.22>For it hath cow'd my better part of man!</A><br>
+<A NAME=5.8.23>And be these juggling fiends no more believed,</A><br>
+<A NAME=5.8.24>That palter with us in a double sense;</A><br>
+<A NAME=5.8.25>That keep the word of promise to our ear,</A><br>
+<A NAME=5.8.26>And break it to our hope. I'll not fight with thee.</A><br>
+</blockquote>
+
+<A NAME=speech8><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.8.27>Then yield thee, coward,</A><br>
+<A NAME=5.8.28>And live to be the show and gaze o' the time:</A><br>
+<A NAME=5.8.29>We'll have thee, as our rarer monsters are,</A><br>
+<A NAME=5.8.30>Painted on a pole, and underwrit,</A><br>
+<A NAME=5.8.31>'Here may you see the tyrant.'</A><br>
+</blockquote>
+
+<A NAME=speech9><b>MACBETH</b></a>
+<blockquote>
+<A NAME=5.8.32>I will not yield,</A><br>
+<A NAME=5.8.33>To kiss the ground before young Malcolm's feet,</A><br>
+<A NAME=5.8.34>And to be baited with the rabble's curse.</A><br>
+<A NAME=5.8.35>Though Birnam wood be come to Dunsinane,</A><br>
+<A NAME=5.8.36>And thou opposed, being of no woman born,</A><br>
+<A NAME=5.8.37>Yet I will try the last. Before my body</A><br>
+<A NAME=5.8.38>I throw my warlike shield. Lay on, Macduff,</A><br>
+<A NAME=5.8.39>And damn'd be him that first cries, 'Hold, enough!'</A><br>
+<p><i>Exeunt, fighting. Alarums</i></p>
+<p><i>Retreat. Flourish. Enter, with drum and colours, MALCOLM, SIWARD, ROSS, the other Thanes, and Soldiers</i></p>
+</blockquote>
+
+<A NAME=speech10><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.8.40>I would the friends we miss were safe arrived.</A><br>
+</blockquote>
+
+<A NAME=speech11><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.8.41>Some must go off: and yet, by these I see,</A><br>
+<A NAME=5.8.42>So great a day as this is cheaply bought.</A><br>
+</blockquote>
+
+<A NAME=speech12><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.8.43>Macduff is missing, and your noble son.</A><br>
+</blockquote>
+
+<A NAME=speech13><b>ROSS</b></a>
+<blockquote>
+<A NAME=5.8.44>Your son, my lord, has paid a soldier's debt:</A><br>
+<A NAME=5.8.45>He only lived but till he was a man;</A><br>
+<A NAME=5.8.46>The which no sooner had his prowess confirm'd</A><br>
+<A NAME=5.8.47>In the unshrinking station where he fought,</A><br>
+<A NAME=5.8.48>But like a man he died.</A><br>
+</blockquote>
+
+<A NAME=speech14><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.8.49>Then he is dead?</A><br>
+</blockquote>
+
+<A NAME=speech15><b>ROSS</b></a>
+<blockquote>
+<A NAME=5.8.50>Ay, and brought off the field: your cause of sorrow</A><br>
+<A NAME=5.8.51>Must not be measured by his worth, for then</A><br>
+<A NAME=5.8.52>It hath no end.</A><br>
+</blockquote>
+
+<A NAME=speech16><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.8.53> Had he his hurts before?</A><br>
+</blockquote>
+
+<A NAME=speech17><b>ROSS</b></a>
+<blockquote>
+<A NAME=5.8.54>Ay, on the front.</A><br>
+</blockquote>
+
+<A NAME=speech18><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.8.55> Why then, God's soldier be he!</A><br>
+<A NAME=5.8.56>Had I as many sons as I have hairs,</A><br>
+<A NAME=5.8.57>I would not wish them to a fairer death:</A><br>
+<A NAME=5.8.58>And so, his knell is knoll'd.</A><br>
+</blockquote>
+
+<A NAME=speech19><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.8.59>He's worth more sorrow,</A><br>
+<A NAME=5.8.60>And that I'll spend for him.</A><br>
+</blockquote>
+
+<A NAME=speech20><b>SIWARD</b></a>
+<blockquote>
+<A NAME=5.8.61>He's worth no more</A><br>
+<A NAME=5.8.62>They say he parted well, and paid his score:</A><br>
+<A NAME=5.8.63>And so, God be with him! Here comes newer comfort.</A><br>
+<p><i>Re-enter MACDUFF, with MACBETH's head</i></p>
+</blockquote>
+
+<A NAME=speech21><b>MACDUFF</b></a>
+<blockquote>
+<A NAME=5.8.64>Hail, king! for so thou art: behold, where stands</A><br>
+<A NAME=5.8.65>The usurper's cursed head: the time is free:</A><br>
+<A NAME=5.8.66>I see thee compass'd with thy kingdom's pearl,</A><br>
+<A NAME=5.8.67>That speak my salutation in their minds;</A><br>
+<A NAME=5.8.68>Whose voices I desire aloud with mine:</A><br>
+<A NAME=5.8.69>Hail, King of Scotland!</A><br>
+</blockquote>
+
+<A NAME=speech22><b>ALL</b></a>
+<blockquote>
+<A NAME=5.8.70>Hail, King of Scotland!</A><br>
+<p><i>Flourish</i></p>
+</blockquote>
+
+<A NAME=speech23><b>MALCOLM</b></a>
+<blockquote>
+<A NAME=5.8.71>We shall not spend a large expense of time</A><br>
+<A NAME=5.8.72>Before we reckon with your several loves,</A><br>
+<A NAME=5.8.73>And make us even with you. My thanes and kinsmen,</A><br>
+<A NAME=5.8.74>Henceforth be earls, the first that ever Scotland</A><br>
+<A NAME=5.8.75>In such an honour named. What's more to do,</A><br>
+<A NAME=5.8.76>Which would be planted newly with the time,</A><br>
+<A NAME=5.8.77>As calling home our exiled friends abroad</A><br>
+<A NAME=5.8.78>That fled the snares of watchful tyranny;</A><br>
+<A NAME=5.8.79>Producing forth the cruel ministers</A><br>
+<A NAME=5.8.80>Of this dead butcher and his fiend-like queen,</A><br>
+<A NAME=5.8.81>Who, as 'tis thought, by self and violent hands</A><br>
+<A NAME=5.8.82>Took off her life; this, and what needful else</A><br>
+<A NAME=5.8.83>That calls upon us, by the grace of Grace,</A><br>
+<A NAME=5.8.84>We will perform in measure, time and place:</A><br>
+<A NAME=5.8.85>So, thanks to all at once and to each one,</A><br>
+<A NAME=5.8.86>Whom we invite to see us crown'd at Scone.</A><br>
+<p><i>Flourish. Exeunt</i></p>
+</body>
+</html>
+
diff --git a/chromium/third_party/webdriver/test_data/map.png b/chromium/third_party/webdriver/test_data/map.png
new file mode 100644
index 00000000000..763f5627995
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/map.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/map_visibility.html b/chromium/third_party/webdriver/test_data/map_visibility.html
new file mode 100644
index 00000000000..6cf5f763ea8
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/map_visibility.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+ <title>Map test page</title>
+</head>
+<body>
+<div style="position: absolute; left: 0px; top: 0px; z-index: 106;"><img style="position: absolute; left: 271px; top: 320px; width: 20px; height: 34px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px; z-index: -140270496;" src="markerTransparent.png" class="gmnoprint" usemap="#gmimap0"><map name="gmimap0" id="gmimap0"><area log="miw" coords="9,0,6,1,4,2,2,4,0,8,0,12,1,14,2,16,5,19,7,23,8,26,9,30,9,34,11,34,11,30,12,26,13,24,14,21,16,18,18,16,20,12,20,8,18,4,16,2,15,1,13,0" shape="poly" alt="" href="javascript:void(0)" id="mtgt_unnamed_0" style="position: absolute; left: 159px; top: 342px;"></map></div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/markerTransparent.png b/chromium/third_party/webdriver/test_data/markerTransparent.png
new file mode 100644
index 00000000000..ed4e5e7f4d6
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/markerTransparent.png
Binary files differ
diff --git a/chromium/third_party/webdriver/test_data/meta-redirect.html b/chromium/third_party/webdriver/test_data/meta-redirect.html
new file mode 100644
index 00000000000..7cda876a689
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/meta-redirect.html
@@ -0,0 +1,11 @@
+<html>
+<head>
+ <title>Some test page</title>
+ <meta http-equiv="refresh" content="0;URL=resultPage.html"/>
+</head>
+<body>
+<script type="text/javascript" language="javascript"><!--
+location.replace("resultPage.html");
+//--> </script>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/missedJsReference.html b/chromium/third_party/webdriver/test_data/missedJsReference.html
new file mode 100644
index 00000000000..61677527656
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/missedJsReference.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Example page</title>
+</head>
+<body>
+<p>This page contains a nested iframe. Execute some JS to locate a reference to an element in this
+ frame and return it. You should need to switch to that frame in order to use that element.</p>
+<iframe src="simpleTest.html" name="inner"></iframe>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/mousePositionTracker.html b/chromium/third_party/webdriver/test_data/mousePositionTracker.html
new file mode 100644
index 00000000000..39a31cda4f4
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/mousePositionTracker.html
@@ -0,0 +1,33 @@
+<html>
+ <head>
+ <style type="text/css">
+ div.solidborder
+ {
+ border-style:solid;
+ border-width:1px;
+ }
+ </style>
+
+ <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
+ <script type="text/javascript" src="js/jquery-ui-1.8.10.custom.min.js"></script>
+ <script type="text/javascript">
+ jQuery(document).ready(function(){
+ $('#mousetracker').mousemove(function(e){
+ xPos = e.pageX - this.offsetLeft;
+ yPos = e.pageY - this.offsetTop;
+ $('#status').html(xPos + ', ' + yPos);
+ });
+ })
+
+</script>
+<body>
+ <b>Div tracking mouse position.</b>
+ <br>
+<div id="mousetracker" class="solidborder" style="position: absolute; left: 10px; top: 80px; height: 400px; width: 100px; padding: 0px;">
+ Move mouse here.
+</div>
+<h2 id="status">
+0, 0
+</h2>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/nestedElements.html b/chromium/third_party/webdriver/test_data/nestedElements.html
new file mode 100644
index 00000000000..cf00083cf3a
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/nestedElements.html
@@ -0,0 +1,155 @@
+<html>
+ <body>
+ <p id="test_id">outside</p>
+ <p id="test_id_out">outside</p>
+ <div id="test_id_div">
+ <p id="test_id">inside</p>
+ </div>
+<form method="get" action="resultPage.html" name="form1" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="1">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<form method="get" action="resultPage.html" name="form2" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<a href="1.html">hello world</a>
+<div name="div1">
+ <a href="2.html" name="link1">hello world</a>
+ <a href="2.html" name="link2">hello world</a>
+</div>
+</body>
+</html>
+<html>
+ <body>
+
+<form method="get" action="resultPage.html" name="form1" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="1">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<form method="get" action="resultPage.html" name="form2" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<a href="1.html">hello world</a>
+<div name="div1">
+ <a href="2.html">hello world</a>
+ <a href="2.html">hello world</a>
+</div>
+</body>
+</html>
+<html>
+ <body>
+
+<form method="get" action="resultPage.html" name="form1" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="1">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<form method="get" action="resultPage.html" name="form2" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<a href="1.html">hello world</a>
+<div name="div1">
+ <a href="2.html">hello world</a>
+ <a href="2.html">hello world</a>
+</div>
+</body>
+</html>
+<html>
+ <body>
+
+<form method="get" action="resultPage.html" name="form1" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="1">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<form method="get" action="resultPage.html" name="form2" style="display: block">
+ Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+ <select name="selectomatic" id="2">
+ <option selected="selected">One</option>
+ <option>Two</option>
+ <option>Four</option>
+ <option>Still learning how to count, apparently</option>
+ </select>
+</form>
+
+<a href="1.html">hello world</a>
+<div name="div1">
+ <a href="2.html">hello world</a>
+ <a href="2.html">hello world</a>
+</div>
+
+<span class="one">Span with class of one</span>
+<div name="classes">
+ <span class="one">Find me</span>
+ <span class="one">Also me</span>
+ <span class="oneother">But not me</span>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/pageWithOnLoad.html b/chromium/third_party/webdriver/test_data/pageWithOnLoad.html
new file mode 100644
index 00000000000..ffdfad4fd44
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/pageWithOnLoad.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html>
+<body onload="javascript:alert('onload')">
+<p>Page with onload event handler</p>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/pageWithOnUnload.html b/chromium/third_party/webdriver/test_data/pageWithOnUnload.html
new file mode 100644
index 00000000000..15968992f3a
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/pageWithOnUnload.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<html>
+<body onbeforeunload="alert('onunload')">
+<p>Page with onunload event handler</p>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/plain.txt b/chromium/third_party/webdriver/test_data/plain.txt
new file mode 100644
index 00000000000..8318c86b357
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/plain.txt
@@ -0,0 +1 @@
+Test \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/readOnlyPage.html b/chromium/third_party/webdriver/test_data/readOnlyPage.html
new file mode 100644
index 00000000000..358f9415301
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/readOnlyPage.html
@@ -0,0 +1,22 @@
+<html>
+<body>
+<input id="writableTextInput" type="text" value="Test"/>
+
+<input id="readOnlyTextInput" type="text" readonly value="Test"/>
+
+<input id="textInputnotenabled" type="text" disabled="true" value="Test"/>
+
+<textarea id="writableTextArea" rows="2" cols="20">
+This is a sample text area which is supposed to be cleared
+</textarea>
+
+<textarea id="textAreaReadOnly" readonly rows="5" cols="20">
+text area which is not supposed to be cleared</textarea>
+
+<textarea rows="5" id="textAreaNotenabled" disabled="true" cols="20">
+text area which is not supposed to be cleared</textarea>
+
+<div id="content-editable" contentEditable="true">This is a contentEditable area</div>
+</body>
+</html>
+
diff --git a/chromium/third_party/webdriver/test_data/rectangles.html b/chromium/third_party/webdriver/test_data/rectangles.html
new file mode 100644
index 00000000000..56c6191cdcb
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/rectangles.html
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Rectangles</title>
+ <style type="text/css">
+ div {
+ position: absolute;
+ margin: 0;
+ border: 0;
+ padding: 0;
+ }
+ #r1 {
+ background-color: blue;
+ left: 10px;
+ top: 10px;
+ width: 100px;
+ height: 50px;
+ }
+ #r2 {
+ background-color: red;
+ left: 10.9px;
+ top: 10.1px;
+ width: 48.666666667px;
+ height: 49.333333333px;
+ }
+ #r3 {
+ background-color: yellow;
+ left: 60px;
+ top: 10px;
+ width: 50px;
+ height: 25px;
+ }
+ </style>
+</head>
+ <body>
+ <div id="r1">r1</div>
+ <div id="r2">r2</div>
+ <div id="r3">r3</div>
+ </body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/resultPage.html b/chromium/third_party/webdriver/test_data/resultPage.html
new file mode 100644
index 00000000000..f4859e445dd
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/resultPage.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+ <title>We Arrive Here</title>
+</head>
+<body>
+
+<p id="greeting">Success!</p>
+
+<div>
+ <h1>List of stuff</h1>
+ <ol>
+ <li class="items">Item 1</li>
+ <li>Item 2</li>
+ </ol>
+</div>
+<div>
+ <h1>Almost empty</h1>
+</div>
+
+<script language="Javascript">
+ document.write("<p>Window name is: " + window.name + "</p>");
+</script>
+
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/rich_text.html b/chromium/third_party/webdriver/test_data/rich_text.html
new file mode 100644
index 00000000000..e53f76e99d8
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/rich_text.html
@@ -0,0 +1,160 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<script type="text/javascript">
+function setKeypressHandler (el, keyHandler) {
+ if (el.addEventListener) {
+ el.addEventListener('keypress', keyHandler, false);
+ el.addEventListener('keydown', keyHandler, false);
+ el.addEventListener('keyup', keyHandler, false);
+ } else {
+ el.attachEvent('onkeypress', keyHandler);
+ el.attachEvent('onkeydown', keyHandler);
+ el.attachEvent('onkeyup', keyHandler);
+ }
+}
+
+function output (text) {
+ var div = document.getElementById('debugOutput');
+ div.appendChild(document.createTextNode(text));
+ div.appendChild(document.createElement('br'));
+}
+
+window.onload = function () {
+ // Super dumb browser detection
+ var isIE = window.navigator.userAgent.search('MSIE') != -1;
+
+ var editFrame = document.getElementById('editFrame').contentWindow;
+ setKeypressHandler(editFrame.document, printEventData);
+ if (isIE) {
+ editFrame.document.body.contentEditable = true;
+ } else {
+ editFrame.document.designMode = 'On';
+ // Attach a name to the containing HTML element
+ editFrame.document.getElementsByTagName("html")[0].id = "frameHtml";
+ }
+
+ var editDiv = document.getElementById('editDiv');
+ setKeypressHandler(editDiv, printEventData);
+ editDiv.contentEditable = true;
+
+ editFrame.document.body.style.margin = 1;
+ editFrame.document.body.style.padding = 0;
+ editFrame.document.body.id = 'theBody';
+
+ editDiv.style.margin = 1;
+ editDiv.style.padding = 0;
+
+ window.setTimeout(function() {
+ var pre = document.createElement('pre');
+ function write(text) {
+ pre.appendChild(document.createTextNode(text));
+ pre.appendChild(document.createElement('br'));
+ }
+
+ write('frame.contentWindow.document.designMode: ' +
+ editFrame.document.designMode);
+ write('frame.contentWindow.document.body.contentEditable: ' +
+ editFrame.document.body.contentEditable);
+ document.getElementById('editFrameInfo').appendChild(pre);
+
+ pre = document.createElement('pre');
+ write('div.ownerDocument.designMode: ' +
+ editDiv.ownerDocument.designMode);
+ write('div.ownerDocument.body.contentEditable: ' +
+ editDiv.ownerDocument.body.contentEditable);
+ write('div.contentEditable: ' +
+ editDiv.contentEditable);
+ document.getElementById('editDivInfo').appendChild(pre);
+ }, 0);
+};
+
+function isDef(obj, prop) {
+ return typeof obj[prop] != 'undefined';
+}
+
+function printEventData(e) {
+ e = e || window.event;
+
+ function write(id, text, opt_color) {
+ var el = document.getElementById(id);
+ el.innerHTML = '[' + text + ']';
+ el.style.backgroundColor = opt_color || 'white';
+ }
+ write('type', e.type);
+ write('tagName', isDef(e, 'target') ? e.target.tagName : e.srcElement.tagName);
+ write('tagId', isDef(e, 'target') ? e.target.id : e.srcElement.id);
+ write('keyidentifier', isDef(e, 'keyIdentifier') ? e.keyIdentifier : 'n/a');
+ write('keylocation', isDef(e, 'keyLocation') ? e.keyLocation : 'n/a');
+ write('keycode', e.keyCode);
+ write('charcode', e.charCode);
+ write('which', e.which);
+ if (isDef(e, 'isTrusted')) {
+ write('istrusted', e.isTrusted, e.isTrusted ? '#afa' : '#faa');
+ } else {
+ write('istrusted', 'n/a');
+ }
+ write('alt', e.altKey);
+ write('ctrl', e.ctrlKey);
+ write('shift', e.shiftKey);
+ write('meta', e.metaKey);
+
+ var s = "";
+ for (var i in e) {
+ s += i + ": " + e[i] + " ";
+ }
+ //alert(s);
+}
+</script>
+</head>
+<body>
+<div>
+ <div id="butter" style="background-color: #ffa;">
+ </div>
+ <table width="100%">
+ <tr valign="top">
+ <td width="50%">
+ <div>IFRAME</div>
+ <iframe id="editFrame" name="editFrame" src="" height="200px" width="300px" frameborder="0" style="border: 1px solid black;">
+ </iframe>
+ <div id="editFrameInfo">
+ <pre>frame.contentWindow.document.designMode: on<br>frame.contentWindow.document.body.contentEditable: false<br></pre></div>
+ </td>
+ <td>
+ <div>DIV</div>
+ <div id="editDiv" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: black; border-right-color: black; border-bottom-color: black; border-left-color: black; height: 200px; width: 300px; overflow-x: auto; overflow-y: auto; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; margin-left: 1px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " contenteditable="true">
+ </div>
+ <div id="editDivInfo">
+ <pre>div.ownerDocument.designMode: off<br>div.ownerDocument.body.contentEditable: false<br>div.contentEditable: true<br></pre></div>
+ </td>
+ </tr>
+ </table>
+</div>
+
+<HR>
+<DIV style="margin: 0px;padding:0px;padding-left:10px;font-family:Courier;">
+ <TABLE cellpadding="0" cellspacing="0" width="200px" style="font-size:9pt;">
+ <TBODY>
+ <TR><TD width="110px">type:</TD><TD id="type" width="90px">[]</TD></TR>
+ <TR><TD>tagName:</TD><TD id="tagName">[]</TD></TR>
+ <TR><TD>id:</TD><TD id="tagId">[]</TD></TR>
+ <TR><TD>keyIdentifier:</TD><TD id="keyidentifier">[]</TD></TR>
+ <TR><TD>keyLocation:</TD><TD id="keylocation">[]</TD></TR>
+ <TR><TD>keyCode:</TD><TD id="keycode">[]</TD></TR>
+ <TR><TD>charCode:</TD><TD id="charcode">[]</TD></TR>
+ <TR><TD>which:</TD><TD id="which">[]</TD></TR>
+ <TR><TD>isTrusted:</TD><TD id="istrusted">[]</TD></TR>
+ <TR><TD colspan="2">---------------------</TD></TR>
+ <TR><TD colspan="2">Modifiers</TD></TR>
+ <TR><TD>alt:</TD><TD id="alt">[]</TD></TR>
+ <TR><TD>ctrl:</TD><TD id="ctrl">[]</TD></TR>
+ <TR><TD>shift:</TD><TD id="shift">[]</TD></TR>
+ <TR><TD>meta:</TD><TD id="meta">[]</TD></TR>
+ </TBODY>
+ </TABLE>
+</DIV>
+
+
+
+</BODY></HTML> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/scroll.html b/chromium/third_party/webdriver/test_data/scroll.html
new file mode 100644
index 00000000000..30d02f09ccf
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/scroll.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+</head>
+<body>
+<script>
+function dump(event) {
+ var elt = event.target || event.srcElement;
+ document.getElementById('clicked').innerHTML = elt.innerHTML;
+}
+</script>
+<ul style='overflow: scroll; width: 150px; height: 80px; background-color: yellow' onclick="dump(event)">
+<li id='line1'>line1</li>
+<li id='line2'>line2</li>
+<li id='line3'>line3</li>
+<li id='line4'>line4</li>
+<li id='line5'>line5</li>
+<li id='line6'>line6</li>
+<li id='line7'>line7</li>
+<li id='line8'>line8</li>
+<li id='line9'>line9</li>
+</ul>
+<div>
+Clicked: <span id='clicked'></span>
+</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/scroll2.html b/chromium/third_party/webdriver/test_data/scroll2.html
new file mode 100644
index 00000000000..c0890958c0f
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/scroll2.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+</head>
+<body>
+<ul style='overflow: scroll; height: 100px;'>
+<li></li>
+<li></li>
+<li id="desired">Text</li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+<li></li>
+</ul>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/scroll3.html b/chromium/third_party/webdriver/test_data/scroll3.html
new file mode 100644
index 00000000000..22efb28a07d
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/scroll3.html
@@ -0,0 +1,8 @@
+<html>
+<body>
+<br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br />
+<button id="button1">Button1</button>
+<br /><br /><br /><br />
+
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button id="button2">Button2</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+<br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /><br /></br /><br /> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/scroll4.html b/chromium/third_party/webdriver/test_data/scroll4.html
new file mode 100644
index 00000000000..652a778eb7a
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/scroll4.html
@@ -0,0 +1,7 @@
+<html>
+<body>
+ <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
+ <input type="radio" id="radio" />
+ <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/scroll5.html b/chromium/third_party/webdriver/test_data/scroll5.html
new file mode 100644
index 00000000000..b345a8c3f76
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/scroll5.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+</head>
+<body>
+<script>
+function dump(text) {
+ document.getElementById('clicked').innerHTML = text;
+}
+</script>
+<div style='overflow: scroll; width: 150px; height: 200px; background-color: yellow' id="outer">
+ <div style="width: 150px; height: 5000px; background-color: red;" onclick="dump('clicked')" id="inner">
+ </div>
+</div>
+<div>
+Clicked: <span id='clicked'></span>
+</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/selectPage.html b/chromium/third_party/webdriver/test_data/selectPage.html
new file mode 100644
index 00000000000..121ed0a67de
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/selectPage.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Multiple Selection test page</title>
+</head>
+<body>
+ <select id="selectWithoutMultiple">
+ <option value="one">one</option>
+ <option value="two" />two</option>
+ </select>
+
+ <select id="selectWithMultipleEqualsMultiple" multiple="multiple">
+ <option selected="selected" label="emmental">Emmental</option>
+ <option label="roquefort">Roquefort</option>
+ <option label="parmigiano">Parmigiano</option>
+ <option label="cheddar">Cheddar</option>
+ </select>
+
+ <select id="selectWithEmptyStringMultiple" multiple="">
+ <option value="one">one</option>
+ <option value="two">two</option>
+ </select>
+
+ <select id="selectWithMultipleWithoutValue" multiple>
+ <option value="one">one</option>
+ <option value="two">two</option>
+ </select>
+
+ <select id="selectWithRandomMultipleValue" multiple="somethingElse">
+ <option value="one">one</option>
+ <option value="two">two</option>
+ </select>
+
+ <select>
+ <optgroup label="Group">
+ <option value="one">one</option>
+ <option id="two-in-group" value="two">two</option>
+ </optgroup>
+ </select>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/selectableItems.html b/chromium/third_party/webdriver/test_data/selectableItems.html
new file mode 100644
index 00000000000..190b2ada7c2
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/selectableItems.html
@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8" />
+ <title>jQuery UI Selectable - Default functionality</title>
+ <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.1.custom.css" rel="stylesheet" />
+ <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
+ <script type="text/javascript" src="js/jquery-ui-1.8.10.custom.min.js"></script>
+
+ <style type="text/css">
+ #feedback { font-size: 1.4em; }
+ #selectable .ui-selecting { background: #FECA40; }
+ #selectable .ui-selected { background: #F39814; color: white; }
+ #selectable { list-style-type: none; margin: 0; padding: 0; width: 60%; }
+ #selectable li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
+ </style>
+ <script type="text/javascript">
+ $(function() {
+ $("#selectable").selectable({
+ stop: function() {
+ var infodiv = $("#infodiv").empty();
+ $(".ui-selected", this).each(function() {
+ var that_id = this.id;
+ infodiv.append(' #' + that_id);
+ });
+ }
+ });
+ $("button").button();
+ $("button").click(function() {
+ var list_disabled = $("#selectable").selectable("option", "disabled");
+ $("#infodiv").find('p').html('Disabled: ' + !list_disabled);
+ $("#selectable").selectable("option", "disabled", !list_disabled);
+ });
+ });
+ </script>
+</head>
+<body>
+<div class="demo">
+
+<ol id="selectable">
+ <li id="item1" class="ui-widget-content">Item 1</li>
+ <li id="item2" class="ui-widget-content">Item 2</li>
+ <li id="item3" class="ui-widget-content">Item 3</li>
+ <li id="item4" class="ui-widget-content">Item 4</li>
+ <li id="item5" class="ui-widget-content">Item 5</li>
+ <li id="item6" class="ui-widget-content">Item 6</li>
+ <li id="item7" class="ui-widget-content">Item 7</li>
+</ol>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+ <p>Enable a DOM element (or group of elements) to be selectable. Draw a box with your cursor to select items. Hold down the Ctrl key to make multiple non-adjacent selections. </p>
+
+ <button type="button" id="somebutton">Click to lock</button>
+
+ <div id="infodiv">
+ <p>no info</p>
+ </div>
+
+
+</div><!-- End demo-description -->
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/sessionCookie.html b/chromium/third_party/webdriver/test_data/sessionCookie.html
new file mode 100644
index 00000000000..91b73fc1072
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/sessionCookie.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title></title>
+ <script type="text/javascript">
+ function setcolor(what){
+ document.body.style.backgroundColor=what
+ document.cookie="bgcolor="+what
+ }
+
+ function popuponclick() {
+ my_window = window.open("sessionCookieDest.html", "cookiedestwindow", "status=1,width=350,height=150");
+ }
+ </script>
+</head>
+<body>
+ <input id="setcolorbutton" type="button" value="Set Background Color" onclick="setcolor('#80FFFF')"/>
+ <input id="openwindowbutton" type="button" value="Open New Window" onclick="popuponclick()"/>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/sessionCookieDest.html b/chromium/third_party/webdriver/test_data/sessionCookieDest.html
new file mode 100644
index 00000000000..f465b38dc17
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/sessionCookieDest.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Session cookie destination</title>
+ <script type="text/javascript">
+ //Get cookie routine by Shelley Powers
+ function get_cookie(Name) {
+ var search = Name + "=";
+ var returnvalue = "";
+ if (document.cookie.length > 0) {
+ offset = document.cookie.indexOf(search);
+ // if cookie exists
+ if (offset != -1) {
+ offset += search.length;
+ // set index of beginning of value
+ end = document.cookie.indexOf(";", offset);
+ // set index of end of cookie value
+ if (end == -1) end = document.cookie.length;
+ returnvalue=unescape(document.cookie.substring(offset, end))
+ }
+ }
+ return returnvalue;
+ }
+
+ function setcolor(){
+ document.body.style.backgroundColor=get_cookie("bgcolor")
+ }
+ </script>
+</head>
+<body onload="setcolor()">
+This is the cookie destination page.
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/simple.xml b/chromium/third_party/webdriver/test_data/simple.xml
new file mode 100644
index 00000000000..01f4c87ccd6
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/simple.xml
@@ -0,0 +1,5 @@
+<xml>
+ <foo>
+ <bar>baz</bar>
+ </foo>
+</xml> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/simpleTest.html b/chromium/third_party/webdriver/test_data/simpleTest.html
new file mode 100644
index 00000000000..e15b5c55672
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/simpleTest.html
@@ -0,0 +1,95 @@
+<html>
+<head>
+ <title>Hello WebDriver</title>
+</head>
+<body style="" name="body">
+<h1>Heading</h1>
+
+<p id="oneline">A single line of text</p>
+
+<div id="multiline">
+ <p>A div containing</p>
+ More than one line of text<br/>
+
+ <div>and block level elements</div>
+</div>
+
+<span id="span">An inline element</span>
+
+<p id="lotsofspaces">This line has lots
+
+ of spaces.
+</p>
+
+<p id="nbsp">This line has a&nbsp;non-breaking space</p>
+
+<p id="nbspandspaces">This line has a &nbsp; non-breaking space and spaces</p>
+
+<p id="multilinenbsp">These lines &nbsp<br />&nbsp have leading and trailing NBSPs&nbsp;&nbsp;</p>
+
+<p id="inline">This <span id="inlinespan"> line has <em>text</em> </span> within elements that are meant to be displayed
+ <!-- not as a block but --> inline</p>
+
+<div id="div-with-pre">
+<p>before pre</p>
+<pre id="preformatted"> This section has a preformatted
+ text block
+ split in four lines
+ </pre>
+<p>after pre</p>
+</div>
+
+<div id="twoblocks"><p>Some text</p><p>Some more text</p></div>
+
+<div id="nestedblocks">Cheese <div><p>Some text</p><div><p>Some more text</p><p>and also</p></div></div>Brie</div>
+
+<div id="collapsingtext"><span></span><div>Hello, world</div><span></span></div>
+
+<div id="withDocumentWrite">
+<script>
+document.write("with document.write");
+document.write(" and with document.write again");
+</script>
+</div>
+
+<form action="resultPage.html">
+ <p>
+ <input type="checkbox" id="checkbox1">
+ <label id="label1" for="checkbox1">foo<br />bar</label>
+ </p>
+</form>
+
+<div id="links">
+<a href=""> link with leading space</a>
+<a href="" id="linkWithTrailingSpace">link with trailing space
+</a>
+<a href=""><b>link with formatting tags</b></a>
+<a href="" id="quote">link with " (double quote)</a>
+<a href="" id="squote">link with ' (single quote)</a>
+<a href="" id="backslash">link with \ (backslash)</a>
+</div>
+
+<div style="text-indent:80%"><a href="resultPage.html" id="multilinelink">this link should break<br />on multiple lines</a></div>
+
+<div name="someDiv">Top level</div>
+<div id="containsSomeDiv">
+ <div name="someDiv">Nested</div>
+</div>
+
+<table id="wrappingtext">
+ <tbody>
+ <tr><td style="width: 10px;"><span>beforeSpace</span><span> </span><span>afterSpace</span></td></tr>
+ </tbody>
+</table>
+
+<!-- Here comes an invalid <img> tag which has no src attribute ... -->
+<img id="invalidImgTag" />
+
+<img id="validImgTag" src="icon.gif" />
+<a id="validAnchorTag" href="icon.gif">a link to an icon</a>
+
+<span id="simpleJsonText">{a="b", c=1, d=true}</span>
+<span id="complexJsonText">{a="\\b\\\"'\'"}</span>
+
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/slowLoadingAlert.html b/chromium/third_party/webdriver/test_data/slowLoadingAlert.html
new file mode 100644
index 00000000000..a9a2cb0582d
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/slowLoadingAlert.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>slowLoadingAlert</title>
+</head>
+
+<body onload="window.setTimeout(function() { window.alert('Look, an alert!'); }, 200);">
+</body>
+
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/slowLoadingResourcePage.html b/chromium/third_party/webdriver/test_data/slowLoadingResourcePage.html
new file mode 100644
index 00000000000..f1b32de1b03
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/slowLoadingResourcePage.html
@@ -0,0 +1,12 @@
+<html>
+<head>
+ <title>This page loads something slowly</title>
+</head>
+<body>
+ <p id="peas">Simulate the situation where a web-bug or analytics script takes waaay
+ too long to respond. Normally these things are loaded in an iframe, which is
+ what we're doing here.</p>
+
+ <iframe src="sleep?time=6"></iframe>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/slow_loading_iframes.html b/chromium/third_party/webdriver/test_data/slow_loading_iframes.html
new file mode 100644
index 00000000000..d007248e2f3
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/slow_loading_iframes.html
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>Page with slow loading iFrames</title>
+ </head>
+ <body>
+ <!-- Takes 3 seconds to load -->
+ <iframe src="/common/sleep?time=3"></iframe>
+
+ <!-- Important: do not add a src attribute! -->
+ <iframe id="noSrc"></iframe>
+ </body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/styledPage.html b/chromium/third_party/webdriver/test_data/styledPage.html
new file mode 100644
index 00000000000..30810f09134
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/styledPage.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Styled Page</title>
+ <script>
+ function log(message) {
+ document.getElementById('log').innerHTML = "<p>" + message + "</p>"
+ }
+ </script>
+
+</head>
+<body>
+<div style="height: 200px"></div>
+
+<form action="#" method="get" onsubmit="return false;">
+ <input name="searchBox">
+ <input type="submit" name="btn" style="padding-top: 4px; padding-bottom: 4px" value="Search" onclick="log('click');">
+</form>
+
+<div id="log"></div>
+
+<div style="height: 4000px">Content</div>
+</body>
+</html>
+
+
+
+
diff --git a/chromium/third_party/webdriver/test_data/svgPiechart.xhtml b/chromium/third_party/webdriver/test_data/svgPiechart.xhtml
new file mode 100644
index 00000000000..1bf5188e665
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/svgPiechart.xhtml
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink">
+<head>
+ <title>Pie Chart Test</title>
+</head>
+<body>
+<script type="text/javascript">
+ function markClick(input) {
+ var element = document.getElementById('result');
+ var range = document.createRange();
+ range.selectNodeContents(element);
+ range.deleteContents();
+ element.appendChild(range.createContextualFragment(input));
+ }
+</script>
+ <div id="someText">
+ Some text for the chart.
+ </div>
+ <div id="result">Nothing.</div>
+ <div id="chart_container" style="width: 400px; height: 220px; border: 1px solid #808080;">
+<svg:svg id="chart_container" height="220" width="400">
+ <svg:defs id="defs"></svg:defs>
+ <svg:g>
+ <svg:rect fill="white" height="220" width="400" y="0" x="0"></svg:rect>
+ <svg:text fill="black" font-weight="bold" font-size="10" font-family="Arial" y="16" x="200" text-anchor="middle">Test Chart</svg:text>
+ <svg:rect fill="white" height="83" width="97" y="77" x="296"></svg:rect>
+ <svg:rect fill="red" stroke="none" height="12" width="12" y="84" x="303"></svg:rect>
+ <svg:text fill="black" font-size="12" font-family="Arial" y="94" x="318" onclick="markClick('text_apple')">Apple</svg:text>
+ <svg:rect fill="green" stroke="none" height="12" width="12" y="103" x="303"></svg:rect>
+ <svg:text fill="black" font-size="12" font-family="Arial" y="113" x="318">Orange</svg:text>
+ <svg:rect fill="#808080" stroke="none" height="12" width="12" y="122" x="303"></svg:rect>
+ <svg:text fill="black" font-size="12" font-family="Arial" y="132" x="318">Banana</svg:text>
+ <svg:rect fill="green" stroke="none" height="12" width="12" y="141" x="303"></svg:rect>
+ <svg:text fill="black" font-size="12" font-family="Arial" y="151" x="318">Orange</svg:text>
+ <svg:g onclick="markClick('slice_red')"><svg:path fill="red" stroke="none" d="M148,119L148,43A76,76,0,0,1,198,61.77Z"></svg:path></svg:g>
+ <svg:g onclick="markClick('slice_green')"><svg:path fill="green" stroke="none" d="M148,119L198,61.77A76,76,0,0,1,202.93,171.52Z"></svg:path></svg:g>
+ <svg:g><svg:path fill="#808080" stroke="none" d="M148,119L202.93,171.52A76,76,0,0,1,72.08,122.41Z"></svg:path></svg:g>
+ <svg:g><svg:path fill="green" stroke="none" d="M148,119L72.08,122.41A76,76,0,0,1,148,43Z"></svg:path></svg:g>
+ </svg:g>
+</svg:svg>
+<svg:svg width="400px" height="120px">
+ <svg:desc>Example RotateScale - Rotate and scale transforms</svg:desc>
+ <svg:g fill="none" stroke="black" stroke-width="3" >
+ <!-- Draw the axes of the original coordinate system -->
+ <svg:line x1="0" y1="1.5" x2="400" y2="1.5" />
+ <svg:line x1="1.5" y1="0" x2="1.5" y2="120" />
+ </svg:g>
+ <!-- Establish a new coordinate system whose origin is at (50,30)
+ in the initial coord. system and which is rotated by 30 degrees. -->
+ <svg:g transform="translate(50,30)">
+ <svg:g transform="rotate(30)" id="rotate">
+ <svg:g fill="none" stroke="red" stroke-width="3" >
+ <svg:line x1="0" y1="0" x2="50" y2="0" />
+ <svg:line x1="0" y1="0" x2="0" y2="50" />
+ </svg:g>
+ <svg:text x="0" y="0" font-size="20" font-family="Verdana" fill="blue" >
+ ABC (rotate)
+ </svg:text>
+ </svg:g>
+ </svg:g>
+ <!-- Establish a new coordinate system whose origin is at (200,40)
+ in the initial coord. system and which is scaled by 1.5. -->
+ <svg:g transform="translate(200,40)">
+ <svg:g transform="scale(1.5)">
+ <svg:g fill="none" stroke="red" stroke-width="3" >
+ <svg:line x1="0" y1="0" x2="50" y2="0" />
+ <svg:line x1="0" y1="0" x2="0" y2="50" />
+ </svg:g>
+ <svg:text x="0" y="0" font-size="20" font-family="Verdana" fill="blue" >
+ ABC (scale)
+ </svg:text>
+ </svg:g>
+ </svg:g>
+</svg:svg>
+ <div style="position: absolute; white-space: nowrap; top: 230px; left: 410px; font-family: Arial; font-size: 12px; display: none; ">WOrange</div>
+ </div>
+ <div style="display: none; position: absolute; top: 230px; left: 410px; white-space: nowrap; font-family: Arial; font-size: 12px;">WOrange</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/tables.html b/chromium/third_party/webdriver/test_data/tables.html
new file mode 100644
index 00000000000..a2bc957b888
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/tables.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+ <title>Here be tables</title>
+</head>
+<body>
+
+<table id="base">
+ <tr>
+ <td>Hello</td>
+ <td>World</td>
+ <td>(Cheese!)</td>
+ </tr>
+</table>
+
+<table>
+ <tr id="hidden_text">
+ <td>some text
+ <div style="display: none;">some more text</div>
+ </td>
+ </tr>
+</table>
+
+<table>
+ <tr>
+ <th colspan="3" id="th1">Heading</th>
+ </tr>
+ <tr>
+ <td id="td1">Data 1</td>
+ <td colspan="2" id="td2">Data 2</td>
+ </tr>
+</table>
+
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/transformable.xml b/chromium/third_party/webdriver/test_data/transformable.xml
new file mode 100644
index 00000000000..cb70dd1dfc2
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/transformable.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet type="text/xsl" href="transformable.xsl"?>
+<!DOCTYPE html [ <!ENTITY nbsp "&#160;"> ]>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:ui="http://dummy.com/mynamespace">
+ <body id='body'>
+ <p>Click the button.</p>
+ <ui:app url="xhtmlTest.html">
+ <ui:someButton id="x" name="y">Go to another page</ui:someButton>
+ </ui:app>
+ </body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/transformable.xsl b/chromium/third_party/webdriver/test_data/transformable.xsl
new file mode 100644
index 00000000000..77a70cbc970
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/transformable.xsl
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ui="http://dummy.com/mynamespace"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:html="http://www.w3.org/1999/xhtml"
+ version="1.0">
+
+ <xsl:output method="html"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="yes"/>
+
+ <xsl:template match="ui:app">
+ <form>
+ <xsl:attribute name="action">
+ <xsl:value-of select="@url" />
+ </xsl:attribute>
+ <xsl:apply-templates select="./*" />
+ </form>
+ </xsl:template>
+
+ <xsl:template match="ui:someButton">
+ <input type="submit">
+ <xsl:attribute name="id">
+ <xsl:value-of select="@id" />
+ </xsl:attribute>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@name" />
+ </xsl:attribute>
+ <xsl:attribute name="value">
+ <xsl:value-of select="normalize-space(.)"/>
+ </xsl:attribute>
+ </input>
+ </xsl:template>
+
+</xsl:stylesheet> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/underscore.html b/chromium/third_party/webdriver/test_data/underscore.html
new file mode 100644
index 00000000000..156a8fdc71e
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/underscore.html
@@ -0,0 +1,9 @@
+<html>
+<head>
+<script type="text/javascript">
+_ = [1, 2, 3];
+</script>
+</head>
+<body>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/upload.html b/chromium/third_party/webdriver/test_data/upload.html
new file mode 100644
index 00000000000..aca398ab743
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/upload.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Upload Form</title>
+ <script>
+ var intervalId;
+ function onTick() {
+ var label = document.getElementById('upload_label');
+ label.innerHTML += '.';
+ }
+
+ function onUploadSubmit() {
+ document.getElementById('upload_target').contentWindow.document.body.
+ innerHTML = '';
+ var label = document.getElementById('upload_label');
+ label.innerHTML = 'Uploading "' + document.forms[0].upload.value + '"';
+ label.style.display = '';
+ intervalId = window.setInterval(onTick, 500);
+ return true;
+ }
+
+ function onUploadDone() {
+ var label = document.getElementById('upload_label');
+ label.style.display = 'none';
+ window.clearInterval(intervalId);
+ return true;
+ }
+ </script>
+</head>
+<body>
+<form action="/common/upload" method="post" name="upload_form"
+ target="upload_target" enctype="multipart/form-data"
+ onsubmit="onUploadSubmit();">
+ <div>
+ Enter a file to upload:
+ <div><input id="upload" name="upload" type="file"/></div>
+ <div><input id="go" type="submit" value="Go!"/></div>
+ </div>
+ <div id="upload_label" style="display:none"></div>
+ <iframe src="" id="upload_target" name="upload_target"
+ style="width:300px;height:200px">
+ </iframe>
+</form>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/veryLargeCanvas.html b/chromium/third_party/webdriver/test_data/veryLargeCanvas.html
new file mode 100644
index 00000000000..5fe8528bee4
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/veryLargeCanvas.html
@@ -0,0 +1,81 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Rectangles</title>
+ <script type="text/javascript">
+ function appendMessage(message) {
+ document.getElementById('result').innerHTML += message
+ + " ";
+ }
+ </script>
+ <style type="text/css">
+ #r1 {
+ position: absolute;
+ background-color: lightblue;
+ left: 100px;
+ top: 100px;
+ width: 100px;
+ height: 50px;
+ }
+ #r2 {
+ position: absolute;
+ background-color: red;
+ left: 2500px;
+ top: 50px;
+ width: 80px;
+ height: 50px;
+ }
+ #r3 {
+ position: absolute;
+ background-color: yellow;
+ left: 60px;
+ top: 1500px;
+ width: 80px;
+ height: 50px;
+ }
+ #r4 {
+ position: absolute;
+ background-color: cyan;
+ left: 220px;
+ top: 180px;
+ width: 100px;
+ height: 50px;
+ }
+ #r5 {
+ position: absolute;
+ background-color: blue;
+ left: 60px;
+ top: 1600px;
+ width: 80px;
+ height: 50px;
+ }
+ #r6 {
+ position: absolute;
+ background-color: green;
+ left: 2581px;
+ top: 50px;
+ width: 80px;
+ height: 50px;
+ }
+ #result {
+ border: 10;
+ padding: 5;
+ background-color: grey;
+ position: absolute;
+ left: 20px;
+ top: 30px;
+ width: 400px;
+ height: 20px;
+ }
+ </style>
+</head>
+<body>
+ <div id="result"></div>
+ <div id="r1" onclick="appendMessage('First')">First Target</div>
+ <div id="r2" onclick="appendMessage('Second')">Second Target</div>
+ <div id="r3" onclick="appendMessage('Third')">Third Target</div>
+ <div id="r4" onclick="appendMessage('Fourth')">Fourth Target</div>
+ <div id="r5" onclick="appendMessage('OOPS2')">Not a Target</div>
+ <div id="r6" onclick="appendMessage('OOPS')">Not a Target</div>
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/visibility-css.html b/chromium/third_party/webdriver/test_data/visibility-css.html
new file mode 100644
index 00000000000..80cc649ce8d
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/visibility-css.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
+<title>Visibility test via CSS</title>
+<style>
+
+.box-popup {
+ border : 1px;
+ min-width : 150px;
+}
+body {
+ overflow : hidden;
+}
+</style></head><body>
+<div style="left: 30px; top: 10px; visibility: visible; position: absolute; overflow: visible;"
+ class="box-popup" id="suggest">
+ <p>Hello world. I like cheese.</p>
+</div>
+</body>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/win32frameset.html b/chromium/third_party/webdriver/test_data/win32frameset.html
new file mode 100644
index 00000000000..108b80f8c21
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/win32frameset.html
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<frameset cols="*, *, *">
+ <frame name="first" src="page/1"/>
+ <frame name="second" src="page/2?title=Fish"/>
+ <frame name="third" src="formPage.html"/>
+</frameset>
+</html> \ No newline at end of file
diff --git a/chromium/third_party/webdriver/test_data/xhtmlFormPage.xhtml b/chromium/third_party/webdriver/test_data/xhtmlFormPage.xhtml
new file mode 100644
index 00000000000..c1c4cd70782
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/xhtmlFormPage.xhtml
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>XHTML</title>
+</head>
+<body>
+
+ <form method="POST" enctype="multipart/form-data">
+ <input name="file" id="file" type="file" />
+ <input name="submit" id="submit" type="submit" />
+ </form>
+
+<p id="self-closed" />Here is some content that should not be in the previous p tag
+
+</body>
+</html>
diff --git a/chromium/third_party/webdriver/test_data/xhtmlTest.html b/chromium/third_party/webdriver/test_data/xhtmlTest.html
new file mode 100644
index 00000000000..d2f3a5da84b
--- /dev/null
+++ b/chromium/third_party/webdriver/test_data/xhtmlTest.html
@@ -0,0 +1,76 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>XHTML Test Page</title>
+</head>
+<body>
+<div class="navigation">
+ <p><a href="resultPage.html" target="result" name="windowOne">Open new window</a></p>
+ <p><a href="iframes.html" target="_blank" name="windowTwo">Create a new anonymous window</a></p>
+ <p><a href="iframes.html" name="sameWindow">Open page with iframes in same window</a></p>
+ <p><a href="javascriptPage.html" target="result" name="windowThree">Open a window with a close button</a></p>
+</div>
+
+<a name="notext"><b></b></a>
+
+<div class="content">
+ <h1 class="header">XHTML Might Be The Future</h1>
+
+ <p>If you'd like to go elsewhere then <a href="resultPage.html">click me</a>.</p>
+
+ <p>Alternatively, <a href="resultPage.html" id="linkId">this goes to the same place</a>.</p>
+
+ <form name="someForm">
+ <input id="username" type="text" value="change"/>
+ </form>
+
+ This link has the same text as another link: <a href="resultPage.html">click me</a>.
+</div>
+
+<div class="extraDiv">Another div starts here.<p/>
+ <h2 class="nameA nameBnoise nameC">An H2 title</h2>
+ <p class="nameC">Some more text</p>
+</div>
+
+<div>
+ <a id="id1" href="#">Foo</a>
+ <ul id="id2" />
+ <span id="id3"/>
+</div>
+
+<div>
+ <table id="table" ></table>
+</div>
+
+<span id="amazing">
+<div>
+ <div>
+ <div>
+ <span/>
+ <a>I have width</a>
+ </div>
+ </div>
+</div>
+</span>
+
+<a name="text" />
+<p id="spaces"> </p>
+<p id="empty"></p>
+<a href="foo" id="linkWithEqualsSign">Link=equalssign</a>
+
+<p class=" spaceAround ">Spaced out</p>
+
+<span id="my_span">
+ <div>first_div</div>
+ <div>second_div</div>
+ <span>first_span</span>
+ <span>second_span</span>
+</span>
+
+<div id="parent">I'm a parent
+ <div id="child">I'm a child</div>
+</div>
+
+<div id="only-exists-on-xhtmltest">Woo woo</div>
+</body>
+</html>