TagSpaces is an offline, open source, document manager with tagging support
Added libs for the UI redesign
uggrockf8c89312bc09
diff --git a/data/devlibs/bootstrap3xeditable/LICENSE-MIT b/data/devlibs/bootstrap3xeditable/LICENSE-MITnew file mode 100644index 000000000..bc67d5bd4--- /dev/null+++ b/data/devlibs/bootstrap3xeditable/LICENSE-MIT@@ -0,0 +1,22 @@+Copyright (c) 2012 Vitaliy Potapov++Permission is hereby granted, free of charge, to any person+obtaining a copy of this software and associated documentation+files (the "Software"), to deal in the Software without+restriction, including without limitation the rights to use,+copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the+Software is furnished to do so, subject to the following+conditions:++The above copyright notice and this permission notice shall be+included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR+OTHER DEALINGS IN THE SOFTWARE.diff --git a/data/devlibs/bootstrap3xeditable/css/bootstrap-editable.css b/data/devlibs/bootstrap3xeditable/css/bootstrap-editable.cssnew file mode 100644index 000000000..eaef0de96--- /dev/null+++ b/data/devlibs/bootstrap3xeditable/css/bootstrap-editable.css@@ -0,0 +1,663 @@+/*! X-editable - v1.5.1+* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery+* http://github.com/vitalets/x-editable+* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */+.editableform {+ margin-bottom: 0; /* overwrites bootstrap margin */+}++.editableform .control-group {+ margin-bottom: 0; /* overwrites bootstrap margin */+ white-space: nowrap; /* prevent wrapping buttons on new line */+ line-height: 20px; /* overwriting bootstrap line-height. See #133 */+}++/*+ BS3 width:1005 for inputs breaks editable form in popup+ See: https://github.com/vitalets/x-editable/issues/393+*/+.editableform .form-control {+ width: auto;+}++.editable-buttons {+ display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */+ vertical-align: top;+ margin-left: 7px;+ /* inline-block emulation for IE7*/+ zoom: 1;+ *display: inline;+}++.editable-buttons.editable-buttons-bottom {+ display: block;+ margin-top: 7px;+ margin-left: 0;+}++.editable-input {+ vertical-align: top;+ display: inline-block; /* should be inline to take effect of parent's white-space: nowrap */+ width: auto; /* bootstrap-responsive has width: 100% that breakes layout */+ white-space: normal; /* reset white-space decalred in parent*/+ /* display-inline emulation for IE7*/+ zoom: 1;+ *display: inline;+}++.editable-buttons .editable-cancel {+ margin-left: 7px;+}++/*for jquery-ui buttons need set height to look more pretty*/+.editable-buttons button.ui-button-icon-only {+ height: 24px;+ width: 30px;+}++.editableform-loading {+ background: url('../img/loading.gif') center center no-repeat;+ height: 25px;+ width: auto;+ min-width: 25px;+}++.editable-inline .editableform-loading {+ background-position: left 5px;+}++ .editable-error-block {+ max-width: 300px;+ margin: 5px 0 0 0;+ width: auto;+ white-space: normal;+}++/*add padding for jquery ui*/+.editable-error-block.ui-state-error {+ padding: 3px;+}++.editable-error {+ color: red;+}++/* ---- For specific types ---- */++.editableform .editable-date {+ padding: 0;+ margin: 0;+ float: left;+}++/* move datepicker icon to center of add-on button. See https://github.com/vitalets/x-editable/issues/183 */+.editable-inline .add-on .icon-th {+ margin-top: 3px;+ margin-left: 1px;+}+++/* checklist vertical alignment */+.editable-checklist label input[type="checkbox"],+.editable-checklist label span {+ vertical-align: middle;+ margin: 0;+}++.editable-checklist label {+ white-space: nowrap;+}++/* set exact width of textarea to fit buttons toolbar */+.editable-wysihtml5 {+ width: 566px;+ height: 250px;+}++/* clear button shown as link in date inputs */+.editable-clear {+ clear: both;+ font-size: 0.9em;+ text-decoration: none;+ text-align: right;+}++/* IOS-style clear button for text inputs */+.editable-clear-x {+ background: url('../img/clear.png') center center no-repeat;+ display: block;+ width: 13px;+ height: 13px;+ position: absolute;+ opacity: 0.6;+ z-index: 100;++ top: 50%;+ right: 6px;+ margin-top: -6px;++}++.editable-clear-x:hover {+ opacity: 1;+}++.editable-pre-wrapped {+ white-space: pre-wrap;+}+.editable-container.editable-popup {+ max-width: none !important; /* without this rule poshytip/tooltip does not stretch */+}++.editable-container.popover {+ width: auto; /* without this rule popover does not stretch */+}++.editable-container.editable-inline {+ display: inline-block;+ vertical-align: middle;+ width: auto;+ /* inline-block emulation for IE7*/+ zoom: 1;+ *display: inline;+}++.editable-container.ui-widget {+ font-size: inherit; /* jqueryui widget font 1.1em too big, overwrite it */+ z-index: 9990; /* should be less than select2 dropdown z-index to close dropdown first when click */+}+.editable-click,+a.editable-click,+a.editable-click:hover {+ text-decoration: none;+ border-bottom: dashed 1px #0088cc;+}++.editable-click.editable-disabled,+a.editable-click.editable-disabled,+a.editable-click.editable-disabled:hover {+ color: #585858;+ cursor: default;+ border-bottom: none;+}++.editable-empty, .editable-empty:hover, .editable-empty:focus{+ font-style: italic;+ color: #DD1144;+ /* border-bottom: none; */+ text-decoration: none;+}++.editable-unsaved {+ font-weight: bold;+}++.editable-unsaved:after {+/* content: '*'*/+}++.editable-bg-transition {+ -webkit-transition: background-color 1400ms ease-out;+ -moz-transition: background-color 1400ms ease-out;+ -o-transition: background-color 1400ms ease-out;+ -ms-transition: background-color 1400ms ease-out;+ transition: background-color 1400ms ease-out;+}++/*see https://github.com/vitalets/x-editable/issues/139 */+.form-horizontal .editable+{+ padding-top: 5px;+ display:inline-block;+}+++/*!+ * Datepicker for Bootstrap+ *+ * Copyright 2012 Stefan Petre+ * Improvements by Andrew Rowls+ * Licensed under the Apache License v2.0+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ */+.datepicker {+ padding: 4px;+ -webkit-border-radius: 4px;+ -moz-border-radius: 4px;+ border-radius: 4px;+ direction: ltr;+ /*.dow {+ border-top: 1px solid #ddd !important;+ }*/++}+.datepicker-inline {+ width: 220px;+}+.datepicker.datepicker-rtl {+ direction: rtl;+}+.datepicker.datepicker-rtl table tr td span {+ float: right;+}+.datepicker-dropdown {+ top: 0;+ left: 0;+}+.datepicker-dropdown:before {+ content: '';+ display: inline-block;+ border-left: 7px solid transparent;+ border-right: 7px solid transparent;+ border-bottom: 7px solid #ccc;+ border-bottom-color: rgba(0, 0, 0, 0.2);+ position: absolute;+ top: -7px;+ left: 6px;+}+.datepicker-dropdown:after {+ content: '';+ display: inline-block;+ border-left: 6px solid transparent;+ border-right: 6px solid transparent;+ border-bottom: 6px solid #ffffff;+ position: absolute;+ top: -6px;+ left: 7px;+}+.datepicker > div {+ display: none;+}+.datepicker.days div.datepicker-days {+ display: block;+}+.datepicker.months div.datepicker-months {+ display: block;+}+.datepicker.years div.datepicker-years {+ display: block;+}+.datepicker table {+ margin: 0;+}+.datepicker td,+.datepicker th {+ text-align: center;+ width: 20px;+ height: 20px;+ -webkit-border-radius: 4px;+ -moz-border-radius: 4px;+ border-radius: 4px;+ border: none;+}+.table-striped .datepicker table tr td,+.table-striped .datepicker table tr th {+ background-color: transparent;+}+.datepicker table tr td.day:hover {+ background: #eeeeee;+ cursor: pointer;+}+.datepicker table tr td.old,+.datepicker table tr td.new {+ color: #999999;+}+.datepicker table tr td.disabled,+.datepicker table tr td.disabled:hover {+ background: none;+ color: #999999;+ cursor: default;+}+.datepicker table tr td.today,+.datepicker table tr td.today:hover,+.datepicker table tr td.today.disabled,+.datepicker table tr td.today.disabled:hover {+ background-color: #fde19a;+ background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);+ background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));+ background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);+ background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);+ background-image: linear-gradient(top, #fdd49a, #fdf59a);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);+ border-color: #fdf59a #fdf59a #fbed50;+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);+ color: #000;+}+.datepicker table tr td.today:hover,+.datepicker table tr td.today:hover:hover,+.datepicker table tr td.today.disabled:hover,+.datepicker table tr td.today.disabled:hover:hover,+.datepicker table tr td.today:active,+.datepicker table tr td.today:hover:active,+.datepicker table tr td.today.disabled:active,+.datepicker table tr td.today.disabled:hover:active,+.datepicker table tr td.today.active,+.datepicker table tr td.today:hover.active,+.datepicker table tr td.today.disabled.active,+.datepicker table tr td.today.disabled:hover.active,+.datepicker table tr td.today.disabled,+.datepicker table tr td.today:hover.disabled,+.datepicker table tr td.today.disabled.disabled,+.datepicker table tr td.today.disabled:hover.disabled,+.datepicker table tr td.today[disabled],+.datepicker table tr td.today:hover[disabled],+.datepicker table tr td.today.disabled[disabled],+.datepicker table tr td.today.disabled:hover[disabled] {+ background-color: #fdf59a;+}+.datepicker table tr td.today:active,+.datepicker table tr td.today:hover:active,+.datepicker table tr td.today.disabled:active,+.datepicker table tr td.today.disabled:hover:active,+.datepicker table tr td.today.active,+.datepicker table tr td.today:hover.active,+.datepicker table tr td.today.disabled.active,+.datepicker table tr td.today.disabled:hover.active {+ background-color: #fbf069 \9;+}+.datepicker table tr td.today:hover:hover {+ color: #000;+}+.datepicker table tr td.today.active:hover {+ color: #fff;+}+.datepicker table tr td.range,+.datepicker table tr td.range:hover,+.datepicker table tr td.range.disabled,+.datepicker table tr td.range.disabled:hover {+ background: #eeeeee;+ -webkit-border-radius: 0;+ -moz-border-radius: 0;+ border-radius: 0;+}+.datepicker table tr td.range.today,+.datepicker table tr td.range.today:hover,+.datepicker table tr td.range.today.disabled,+.datepicker table tr td.range.today.disabled:hover {+ background-color: #f3d17a;+ background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);+ background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));+ background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);+ background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);+ background-image: linear-gradient(top, #f3c17a, #f3e97a);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);+ border-color: #f3e97a #f3e97a #edde34;+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);+ -webkit-border-radius: 0;+ -moz-border-radius: 0;+ border-radius: 0;+}+.datepicker table tr td.range.today:hover,+.datepicker table tr td.range.today:hover:hover,+.datepicker table tr td.range.today.disabled:hover,+.datepicker table tr td.range.today.disabled:hover:hover,+.datepicker table tr td.range.today:active,+.datepicker table tr td.range.today:hover:active,+.datepicker table tr td.range.today.disabled:active,+.datepicker table tr td.range.today.disabled:hover:active,+.datepicker table tr td.range.today.active,+.datepicker table tr td.range.today:hover.active,+.datepicker table tr td.range.today.disabled.active,+.datepicker table tr td.range.today.disabled:hover.active,+.datepicker table tr td.range.today.disabled,+.datepicker table tr td.range.today:hover.disabled,+.datepicker table tr td.range.today.disabled.disabled,+.datepicker table tr td.range.today.disabled:hover.disabled,+.datepicker table tr td.range.today[disabled],+.datepicker table tr td.range.today:hover[disabled],+.datepicker table tr td.range.today.disabled[disabled],+.datepicker table tr td.range.today.disabled:hover[disabled] {+ background-color: #f3e97a;+}+.datepicker table tr td.range.today:active,+.datepicker table tr td.range.today:hover:active,+.datepicker table tr td.range.today.disabled:active,+.datepicker table tr td.range.today.disabled:hover:active,+.datepicker table tr td.range.today.active,+.datepicker table tr td.range.today:hover.active,+.datepicker table tr td.range.today.disabled.active,+.datepicker table tr td.range.today.disabled:hover.active {+ background-color: #efe24b \9;+}+.datepicker table tr td.selected,+.datepicker table tr td.selected:hover,+.datepicker table tr td.selected.disabled,+.datepicker table tr td.selected.disabled:hover {+ background-color: #9e9e9e;+ background-image: -moz-linear-gradient(top, #b3b3b3, #808080);+ background-image: -ms-linear-gradient(top, #b3b3b3, #808080);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));+ background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);+ background-image: -o-linear-gradient(top, #b3b3b3, #808080);+ background-image: linear-gradient(top, #b3b3b3, #808080);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);+ border-color: #808080 #808080 #595959;+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);+ color: #fff;+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);+}+.datepicker table tr td.selected:hover,+.datepicker table tr td.selected:hover:hover,+.datepicker table tr td.selected.disabled:hover,+.datepicker table tr td.selected.disabled:hover:hover,+.datepicker table tr td.selected:active,+.datepicker table tr td.selected:hover:active,+.datepicker table tr td.selected.disabled:active,+.datepicker table tr td.selected.disabled:hover:active,+.datepicker table tr td.selected.active,+.datepicker table tr td.selected:hover.active,+.datepicker table tr td.selected.disabled.active,+.datepicker table tr td.selected.disabled:hover.active,+.datepicker table tr td.selected.disabled,+.datepicker table tr td.selected:hover.disabled,+.datepicker table tr td.selected.disabled.disabled,+.datepicker table tr td.selected.disabled:hover.disabled,+.datepicker table tr td.selected[disabled],+.datepicker table tr td.selected:hover[disabled],+.datepicker table tr td.selected.disabled[disabled],+.datepicker table tr td.selected.disabled:hover[disabled] {+ background-color: #808080;+}+.datepicker table tr td.selected:active,+.datepicker table tr td.selected:hover:active,+.datepicker table tr td.selected.disabled:active,+.datepicker table tr td.selected.disabled:hover:active,+.datepicker table tr td.selected.active,+.datepicker table tr td.selected:hover.active,+.datepicker table tr td.selected.disabled.active,+.datepicker table tr td.selected.disabled:hover.active {+ background-color: #666666 \9;+}+.datepicker table tr td.active,+.datepicker table tr td.active:hover,+.datepicker table tr td.active.disabled,+.datepicker table tr td.active.disabled:hover {+ background-color: #006dcc;+ background-image: -moz-linear-gradient(top, #0088cc, #0044cc);+ background-image: -ms-linear-gradient(top, #0088cc, #0044cc);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));+ background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);+ background-image: -o-linear-gradient(top, #0088cc, #0044cc);+ background-image: linear-gradient(top, #0088cc, #0044cc);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);+ border-color: #0044cc #0044cc #002a80;+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);+ color: #fff;+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);+}+.datepicker table tr td.active:hover,+.datepicker table tr td.active:hover:hover,+.datepicker table tr td.active.disabled:hover,+.datepicker table tr td.active.disabled:hover:hover,+.datepicker table tr td.active:active,+.datepicker table tr td.active:hover:active,+.datepicker table tr td.active.disabled:active,+.datepicker table tr td.active.disabled:hover:active,+.datepicker table tr td.active.active,+.datepicker table tr td.active:hover.active,+.datepicker table tr td.active.disabled.active,+.datepicker table tr td.active.disabled:hover.active,+.datepicker table tr td.active.disabled,+.datepicker table tr td.active:hover.disabled,+.datepicker table tr td.active.disabled.disabled,+.datepicker table tr td.active.disabled:hover.disabled,+.datepicker table tr td.active[disabled],+.datepicker table tr td.active:hover[disabled],+.datepicker table tr td.active.disabled[disabled],+.datepicker table tr td.active.disabled:hover[disabled] {+ background-color: #0044cc;+}+.datepicker table tr td.active:active,+.datepicker table tr td.active:hover:active,+.datepicker table tr td.active.disabled:active,+.datepicker table tr td.active.disabled:hover:active,+.datepicker table tr td.active.active,+.datepicker table tr td.active:hover.active,+.datepicker table tr td.active.disabled.active,+.datepicker table tr td.active.disabled:hover.active {+ background-color: #003399 \9;+}+.datepicker table tr td span {+ display: block;+ width: 23%;+ height: 54px;+ line-height: 54px;+ float: left;+ margin: 1%;+ cursor: pointer;+ -webkit-border-radius: 4px;+ -moz-border-radius: 4px;+ border-radius: 4px;+}+.datepicker table tr td span:hover {+ background: #eeeeee;+}+.datepicker table tr td span.disabled,+.datepicker table tr td span.disabled:hover {+ background: none;+ color: #999999;+ cursor: default;+}+.datepicker table tr td span.active,+.datepicker table tr td span.active:hover,+.datepicker table tr td span.active.disabled,+.datepicker table tr td span.active.disabled:hover {+ background-color: #006dcc;+ background-image: -moz-linear-gradient(top, #0088cc, #0044cc);+ background-image: -ms-linear-gradient(top, #0088cc, #0044cc);+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));+ background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);+ background-image: -o-linear-gradient(top, #0088cc, #0044cc);+ background-image: linear-gradient(top, #0088cc, #0044cc);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);+ border-color: #0044cc #0044cc #002a80;+ border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);+ color: #fff;+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);+}+.datepicker table tr td span.active:hover,+.datepicker table tr td span.active:hover:hover,+.datepicker table tr td span.active.disabled:hover,+.datepicker table tr td span.active.disabled:hover:hover,+.datepicker table tr td span.active:active,+.datepicker table tr td span.active:hover:active,+.datepicker table tr td span.active.disabled:active,+.datepicker table tr td span.active.disabled:hover:active,+.datepicker table tr td span.active.active,+.datepicker table tr td span.active:hover.active,+.datepicker table tr td span.active.disabled.active,+.datepicker table tr td span.active.disabled:hover.active,+.datepicker table tr td span.active.disabled,+.datepicker table tr td span.active:hover.disabled,+.datepicker table tr td span.active.disabled.disabled,+.datepicker table tr td span.active.disabled:hover.disabled,+.datepicker table tr td span.active[disabled],+.datepicker table tr td span.active:hover[disabled],+.datepicker table tr td span.active.disabled[disabled],+.datepicker table tr td span.active.disabled:hover[disabled] {+ background-color: #0044cc;+}+.datepicker table tr td span.active:active,+.datepicker table tr td span.active:hover:active,+.datepicker table tr td span.active.disabled:active,+.datepicker table tr td span.active.disabled:hover:active,+.datepicker table tr td span.active.active,+.datepicker table tr td span.active:hover.active,+.datepicker table tr td span.active.disabled.active,+.datepicker table tr td span.active.disabled:hover.active {+ background-color: #003399 \9;+}+.datepicker table tr td span.old,+.datepicker table tr td span.new {+ color: #999999;+}+.datepicker th.datepicker-switch {+ width: 145px;+}+.datepicker thead tr:first-child th,+.datepicker tfoot tr th {+ cursor: pointer;+}+.datepicker thead tr:first-child th:hover,+.datepicker tfoot tr th:hover {+ background: #eeeeee;+}+.datepicker .cw {+ font-size: 10px;+ width: 12px;+ padding: 0 2px 0 5px;+ vertical-align: middle;+}+.datepicker thead tr:first-child th.cw {+ cursor: default;+ background-color: transparent;+}+.input-append.date .add-on i,+.input-prepend.date .add-on i {+ display: block;+ cursor: pointer;+ width: 16px;+ height: 16px;+}+.input-daterange input {+ text-align: center;+}+.input-daterange input:first-child {+ -webkit-border-radius: 3px 0 0 3px;+ -moz-border-radius: 3px 0 0 3px;+ border-radius: 3px 0 0 3px;+}+.input-daterange input:last-child {+ -webkit-border-radius: 0 3px 3px 0;+ -moz-border-radius: 0 3px 3px 0;+ border-radius: 0 3px 3px 0;+}+.input-daterange .add-on {+ display: inline-block;+ width: auto;+ min-width: 16px;+ height: 18px;+ padding: 4px 5px;+ font-weight: normal;+ line-height: 18px;+ text-align: center;+ text-shadow: 0 1px 0 #ffffff;+ vertical-align: middle;+ background-color: #eeeeee;+ border: 1px solid #ccc;+ margin-left: -5px;+ margin-right: -5px;+}diff --git a/data/devlibs/bootstrap3xeditable/img/clear.png b/data/devlibs/bootstrap3xeditable/img/clear.pngnew file mode 100644index 000000000..580b52a5bBinary files /dev/null and b/data/devlibs/bootstrap3xeditable/img/clear.png differdiff --git a/data/devlibs/bootstrap3xeditable/img/loading.gif b/data/devlibs/bootstrap3xeditable/img/loading.gifnew file mode 100644index 000000000..5b33f7e54Binary files /dev/null and b/data/devlibs/bootstrap3xeditable/img/loading.gif differdiff --git a/data/devlibs/bootstrap3xeditable/js/bootstrap-editable.js b/data/devlibs/bootstrap3xeditable/js/bootstrap-editable.jsnew file mode 100644index 000000000..dd8138568--- /dev/null+++ b/data/devlibs/bootstrap3xeditable/js/bootstrap-editable.js@@ -0,0 +1,6807 @@+/*! X-editable - v1.5.1+* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery+* http://github.com/vitalets/x-editable+* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */+/**+Form with single input element, two buttons and two states: normal/loading.+Applied as jQuery method to DIV tag (not to form tag!). This is because form can be in loading state when spinner shown.+Editableform is linked with one of input types, e.g. 'text', 'select' etc.++@class editableform+@uses text+@uses textarea+**/+(function ($) {+ "use strict";++ var EditableForm = function (div, options) {+ this.options = $.extend({}, $.fn.editableform.defaults, options);+ this.$div = $(div); //div, containing form. Not form tag. Not editable-element.+ if(!this.options.scope) {+ this.options.scope = this;+ }+ //nothing shown after init+ };++ EditableForm.prototype = {+ constructor: EditableForm,+ initInput: function() { //called once+ //take input from options (as it is created in editable-element)+ this.input = this.options.input;++ //set initial value+ //todo: may be add check: typeof str === 'string' ?+ this.value = this.input.str2value(this.options.value);++ //prerender: get input.$input+ this.input.prerender();+ },+ initTemplate: function() {+ this.$form = $($.fn.editableform.template);+ },+ initButtons: function() {+ var $btn = this.$form.find('.editable-buttons');+ $btn.append($.fn.editableform.buttons);+ if(this.options.showbuttons === 'bottom') {+ $btn.addClass('editable-buttons-bottom');+ }+ },+ /**+ Renders editableform++ @method render+ **/+ render: function() {+ //init loader+ this.$loading = $($.fn.editableform.loading);+ this.$div.empty().append(this.$loading);++ //init form template and buttons+ this.initTemplate();+ if(this.options.showbuttons) {+ this.initButtons();+ } else {+ this.$form.find('.editable-buttons').remove();+ }++ //show loading state+ this.showLoading();++ //flag showing is form now saving value to server.+ //It is needed to wait when closing form.+ this.isSaving = false;++ /**+ Fired when rendering starts+ @event rendering+ @param {Object} event event object+ **/+ this.$div.triggerHandler('rendering');++ //init input+ this.initInput();++ //append input to form+ this.$form.find('div.editable-input').append(this.input.$tpl);++ //append form to container+ this.$div.append(this.$form);++ //render input+ $.when(this.input.render())+ .then($.proxy(function () {+ //setup input to submit automatically when no buttons shown+ if(!this.options.showbuttons) {+ this.input.autosubmit();+ }++ //attach 'cancel' handler+ this.$form.find('.editable-cancel').click($.proxy(this.cancel, this));++ if(this.input.error) {+ this.error(this.input.error);+ this.$form.find('.editable-submit').attr('disabled', true);+ this.input.$input.attr('disabled', true);+ //prevent form from submitting+ this.$form.submit(function(e){ e.preventDefault(); });+ } else {+ this.error(false);+ this.input.$input.removeAttr('disabled');+ this.$form.find('.editable-submit').removeAttr('disabled');+ var value = (this.value === null || this.value === undefined || this.value === '') ? this.options.defaultValue : this.value;+ this.input.value2input(value);+ //attach submit handler+ this.$form.submit($.proxy(this.submit, this));+ }++ /**+ Fired when form is rendered+ @event rendered+ @param {Object} event event object+ **/+ this.$div.triggerHandler('rendered');++ this.showForm();++ //call postrender method to perform actions required visibility of form+ if(this.input.postrender) {+ this.input.postrender();+ }+ }, this));+ },+ cancel: function() {+ /**+ Fired when form was cancelled by user+ @event cancel+ @param {Object} event event object+ **/+ this.$div.triggerHandler('cancel');+ },+ showLoading: function() {+ var w, h;+ if(this.$form) {+ //set loading size equal to form+ w = this.$form.outerWidth();+ h = this.$form.outerHeight();+ if(w) {+ this.$loading.width(w);+ }+ if(h) {+ this.$loading.height(h);+ }+ this.$form.hide();+ } else {+ //stretch loading to fill container width+ w = this.$loading.parent().width();+ if(w) {+ this.$loading.width(w);+ }+ }+ this.$loading.show();+ },++ showForm: function(activate) {+ this.$loading.hide();+ this.$form.show();+ if(activate !== false) {+ this.input.activate();+ }+ /**+ Fired when form is shown+ @event show+ @param {Object} event event object+ **/+ this.$div.triggerHandler('show');+ },++ error: function(msg) {+ var $group = this.$form.find('.control-group'),+ $block = this.$form.find('.editable-error-block'),+ lines;++ if(msg === false) {+ $group.removeClass($.fn.editableform.errorGroupClass);+ $block.removeClass($.fn.editableform.errorBlockClass).empty().hide();+ } else {+ //convert newline to <br> for more pretty error display+ if(msg) {+ lines = (''+msg).split('\n');+ for (var i = 0; i < lines.length; i++) {+ lines[i] = $('<div>').text(lines[i]).html();+ }+ msg = lines.join('<br>');+ }+ $group.addClass($.fn.editableform.errorGroupClass);+ $block.addClass($.fn.editableform.errorBlockClass).html(msg).show();+ }+ },++ submit: function(e) {+ e.stopPropagation();+ e.preventDefault();++ //get new value from input+ var newValue = this.input.input2value();++ //validation: if validate returns string or truthy value - means error+ //if returns object like {newValue: '...'} => submitted value is reassigned to it+ var error = this.validate(newValue);+ if ($.type(error) === 'object' && error.newValue !== undefined) {+ newValue = error.newValue;+ this.input.value2input(newValue);+ if(typeof error.msg === 'string') {+ this.error(error.msg);+ this.showForm();+ return;+ }+ } else if (error) {+ this.error(error);+ this.showForm();+ return;+ }++ //if value not changed --> trigger 'nochange' event and return+ /*jslint eqeq: true*/+ if (!this.options.savenochange && this.input.value2str(newValue) == this.input.value2str(this.value)) {+ /*jslint eqeq: false*/+ /**+ Fired when value not changed but form is submitted. Requires savenochange = false.+ @event nochange+ @param {Object} event event object+ **/+ this.$div.triggerHandler('nochange');+ return;+ }++ //convert value for submitting to server+ var submitValue = this.input.value2submit(newValue);++ this.isSaving = true;++ //sending data to server+ $.when(this.save(submitValue))+ .done($.proxy(function(response) {+ this.isSaving = false;++ //run success callback+ var res = typeof this.options.success === 'function' ? this.options.success.call(this.options.scope, response, newValue) : null;++ //if success callback returns false --> keep form open and do not activate input+ if(res === false) {+ this.error(false);+ this.showForm(false);+ return;+ }++ //if success callback returns string --> keep form open, show error and activate input+ if(typeof res === 'string') {+ this.error(res);+ this.showForm();+ return;+ }++ //if success callback returns object like {newValue: <something>} --> use that value instead of submitted+ //it is usefull if you want to chnage value in url-function+ if(res && typeof res === 'object' && res.hasOwnProperty('newValue')) {+ newValue = res.newValue;+ }++ //clear error message+ this.error(false);+ this.value = newValue;+ /**+ Fired when form is submitted+ @event save+ @param {Object} event event object+ @param {Object} params additional params+ @param {mixed} params.newValue raw new value+ @param {mixed} params.submitValue submitted value as string+ @param {Object} params.response ajax response++ @example+ $('#form-div').on('save'), function(e, params){+ if(params.newValue === 'username') {...}+ });+ **/+ this.$div.triggerHandler('save', {newValue: newValue, submitValue: submitValue, response: response});+ }, this))+ .fail($.proxy(function(xhr) {+ this.isSaving = false;++ var msg;+ if(typeof this.options.error === 'function') {+ msg = this.options.error.call(this.options.scope, xhr, newValue);+ } else {+ msg = typeof xhr === 'string' ? xhr : xhr.responseText || xhr.statusText || 'Unknown error!';+ }++ this.error(msg);+ this.showForm();+ }, this));+ },++ save: function(submitValue) {+ //try parse composite pk defined as json string in data-pk+ this.options.pk = $.fn.editableutils.tryParseJson(this.options.pk, true);++ var pk = (typeof this.options.pk === 'function') ? this.options.pk.call(this.options.scope) : this.options.pk,+ /*+ send on server in following cases:+ 1. url is function+ 2. url is string AND (pk defined OR send option = always)+ */+ send = !!(typeof this.options.url === 'function' || (this.options.url && ((this.options.send === 'always') || (this.options.send === 'auto' && pk !== null && pk !== undefined)))),+ params;++ if (send) { //send to server+ this.showLoading();++ //standard params+ params = {+ name: this.options.name || '',+ value: submitValue,+ pk: pk+ };++ //additional params+ if(typeof this.options.params === 'function') {+ params = this.options.params.call(this.options.scope, params);+ } else {+ //try parse json in single quotes (from data-params attribute)+ this.options.params = $.fn.editableutils.tryParseJson(this.options.params, true);+ $.extend(params, this.options.params);+ }++ if(typeof this.options.url === 'function') { //user's function+ return this.options.url.call(this.options.scope, params);+ } else {+ //send ajax to server and return deferred object+ return $.ajax($.extend({+ url : this.options.url,+ data : params,+ type : 'POST'+ }, this.options.ajaxOptions));+ }+ }+ },++ validate: function (value) {+ if (value === undefined) {+ value = this.value;+ }+ if (typeof this.options.validate === 'function') {+ return this.options.validate.call(this.options.scope, value);+ }+ },++ option: function(key, value) {+ if(key in this.options) {+ this.options[key] = value;+ }++ if(key === 'value') {+ this.setValue(value);+ }++ //do not pass option to input as it is passed in editable-element+ },++ setValue: function(value, convertStr) {+ if(convertStr) {+ this.value = this.input.str2value(value);+ } else {+ this.value = value;+ }++ //if form is visible, update input+ if(this.$form && this.$form.is(':visible')) {+ this.input.value2input(this.value);+ }+ }+ };++ /*+ Initialize editableform. Applied to jQuery object.++ @method $().editableform(options)+ @params {Object} options+ @example+ var $form = $('<div>').editableform({+ type: 'text',+ name: 'username',+ url: '/post',+ value: 'vitaliy'+ });++ //to display form you should call 'render' method+ $form.editableform('render');+ */+ $.fn.editableform = function (option) {+ var args = arguments;+ return this.each(function () {+ var $this = $(this),+ data = $this.data('editableform'),+ options = typeof option === 'object' && option;+ if (!data) {+ $this.data('editableform', (data = new EditableForm(this, options)));+ }++ if (typeof option === 'string') { //call method+ data[option].apply(data, Array.prototype.slice.call(args, 1));+ }+ });+ };++ //keep link to constructor to allow inheritance+ $.fn.editableform.Constructor = EditableForm;++ //defaults+ $.fn.editableform.defaults = {+ /* see also defaults for input */++ /**+ Type of input. Can be <code>text|textarea|select|date|checklist</code>++ @property type+ @type string+ @default 'text'+ **/+ type: 'text',+ /**+ Url for submit, e.g. <code>'/post'</code>+ If function - it will be called instead of ajax. Function should return deferred object to run fail/done callbacks.++ @property url+ @type string|function+ @default null+ @example+ url: function(params) {+ var d = new $.Deferred;+ if(params.value === 'abc') {+ return d.reject('error message'); //returning error via deferred object+ } else {+ //async saving data in js model+ someModel.asyncSaveMethod({+ ...,+ success: function(){+ d.resolve();+ }+ });+ return d.promise();+ }+ }+ **/+ url:null,+ /**+ Additional params for submit. If defined as <code>object</code> - it is **appended** to original ajax data (pk, name and value).+ If defined as <code>function</code> - returned object **overwrites** original ajax data.+ @example+ params: function(params) {+ //originally params contain pk, name and value+ params.a = 1;+ return params;+ }++ @property params+ @type object|function+ @default null+ **/+ params:null,+ /**+ Name of field. Will be submitted on server. Can be taken from <code>id</code> attribute++ @property name+ @type string+ @default null+ **/+ name: null,+ /**+ Primary key of editable object (e.g. record id in database). For composite keys use object, e.g. <code>{id: 1, lang: 'en'}</code>.+ Can be calculated dynamically via function.++ @property pk+ @type string|object|function+ @default null+ **/+ pk: null,+ /**+ Initial value. If not defined - will be taken from element's content.+ For __select__ type should be defined (as it is ID of shown text).++ @property value+ @type string|object+ @default null+ **/+ value: null,+ /**+ Value that will be displayed in input if original field value is empty (`null|undefined|''`).++ @property defaultValue+ @type string|object+ @default null+ @since 1.4.6+ **/+ defaultValue: null,+ /**+ Strategy for sending data on server. Can be `auto|always|never`.+ When 'auto' data will be sent on server **only if pk and url defined**, otherwise new value will be stored locally.++ @property send+ @type string+ @default 'auto'+ **/+ send: 'auto',+ /**+ Function for client-side validation. If returns string - means validation not passed and string showed as error.+ Since 1.5.1 you can modify submitted value by returning object from `validate`:+ `{newValue: '...'}` or `{newValue: '...', msg: '...'}`++ @property validate+ @type function+ @default null+ @example+ validate: function(value) {+ if($.trim(value) == '') {+ return 'This field is required';+ }+ }+ **/+ validate: null,+ /**+ Success callback. Called when value successfully sent on server and **response status = 200**.+ Usefull to work with json response. For example, if your backend response can be <code>{success: true}</code>+ or <code>{success: false, msg: "server error"}</code> you can check it inside this callback.+ If it returns **string** - means error occured and string is shown as error message.+ If it returns **object like** <code>{newValue: <something>}</code> - it overwrites value, submitted by user.+ Otherwise newValue simply rendered into element.++ @property success+ @type function+ @default null+ @example+ success: function(response, newValue) {+ if(!response.success) return response.msg;+ }+ **/+ success: null,+ /**+ Error callback. Called when request failed (response status != 200).+ Usefull when you want to parse error response and display a custom message.+ Must return **string** - the message to be displayed in the error block.++ @property error+ @type function+ @default null+ @since 1.4.4+ @example+ error: function(response, newValue) {+ if(response.status === 500) {+ return 'Service unavailable. Please try later.';+ } else {+ return response.responseText;+ }+ }+ **/+ error: null,+ /**+ Additional options for submit ajax request.+ List of values: http://api.jquery.com/jQuery.ajax++ @property ajaxOptions+ @type object+ @default null+ @since 1.1.1+ @example+ ajaxOptions: {+ type: 'put',+ dataType: 'json'+ }+ **/+ ajaxOptions: null,+ /**+ Where to show buttons: left(true)|bottom|false+ Form without buttons is auto-submitted.++ @property showbuttons+ @type boolean|string+ @default true+ @since 1.1.1+ **/+ showbuttons: true,+ /**+ Scope for callback methods (success, validate).+ If <code>null</code> means editableform instance itself.++ @property scope+ @type DOMElement|object+ @default null+ @since 1.2.0+ @private+ **/+ scope: null,+ /**+ Whether to save or cancel value when it was not changed but form was submitted++ @property savenochange+ @type boolean+ @default false+ @since 1.2.0+ **/+ savenochange: false+ };++ /*+ Note: following params could redefined in engine: bootstrap or jqueryui:+ Classes 'control-group' and 'editable-error-block' must always present!+ */+ $.fn.editableform.template = '<form class="form-inline editableform">'++ '<div class="control-group">' ++ '<div><div class="editable-input"></div><div class="editable-buttons"></div></div>'++ '<div class="editable-error-block"></div>' ++ '</div>' ++ '</form>';++ //loading div+ $.fn.editableform.loading = '<div class="editableform-loading"></div>';++ //buttons+ $.fn.editableform.buttons = '<button type="submit" class="editable-submit">ok</button>'++ '<button type="button" class="editable-cancel">cancel</button>';++ //error class attached to control-group+ $.fn.editableform.errorGroupClass = null;++ //error class attached to editable-error-block+ $.fn.editableform.errorBlockClass = 'editable-error';++ //engine+ $.fn.editableform.engine = 'jquery';+}(window.jQuery));++/**+* EditableForm utilites+*/+(function ($) {+ "use strict";++ //utils+ $.fn.editableutils = {+ /**+ * classic JS inheritance function+ */+ inherit: function (Child, Parent) {+ var F = function() { };+ F.prototype = Parent.prototype;+ Child.prototype = new F();+ Child.prototype.constructor = Child;+ Child.superclass = Parent.prototype;+ },++ /**+ * set caret position in input+ * see http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area+ */+ setCursorPosition: function(elem, pos) {+ if (elem.setSelectionRange) {+ elem.setSelectionRange(pos, pos);+ } else if (elem.createTextRange) {+ var range = elem.createTextRange();+ range.collapse(true);+ range.moveEnd('character', pos);+ range.moveStart('character', pos);+ range.select();+ }+ },++ /**+ * function to parse JSON in *single* quotes. (jquery automatically parse only double quotes)+ * That allows such code as: <a data-source="{'a': 'b', 'c': 'd'}">+ * safe = true --> means no exception will be thrown+ * for details see http://stackoverflow.com/questions/7410348/how-to-set-json-format-to-html5-data-attributes-in-the-jquery+ */+ tryParseJson: function(s, safe) {+ if (typeof s === 'string' && s.length && s.match(/^[\{\[].*[\}\]]$/)) {+ if (safe) {+ try {+ /*jslint evil: true*/+ s = (new Function('return ' + s))();+ /*jslint evil: false*/+ } catch (e) {} finally {+ return s;+ }+ } else {+ /*jslint evil: true*/+ s = (new Function('return ' + s))();+ /*jslint evil: false*/+ }+ }+ return s;+ },++ /**+ * slice object by specified keys+ */+ sliceObj: function(obj, keys, caseSensitive /* default: false */) {+ var key, keyLower, newObj = {};++ if (!$.isArray(keys) || !keys.length) {+ return newObj;+ }++ for (var i = 0; i < keys.length; i++) {+ key = keys[i];+ if (obj.hasOwnProperty(key)) {+ newObj[key] = obj[key];+ }++ if(caseSensitive === true) {+ continue;+ }++ //when getting data-* attributes via $.data() it's converted to lowercase.+ //details: http://stackoverflow.com/questions/7602565/using-data-attributes-with-jquery+ //workaround is code below.+ keyLower = key.toLowerCase();+ if (obj.hasOwnProperty(keyLower)) {+ newObj[key] = obj[keyLower];+ }+ }++ return newObj;+ },++ /*+ exclude complex objects from $.data() before pass to config+ */+ getConfigData: function($element) {+ var data = {};+ $.each($element.data(), function(k, v) {+ if(typeof v !== 'object' || (v && typeof v === 'object' && (v.constructor === Object || v.constructor === Array))) {+ data[k] = v;+ }+ });+ return data;+ },++ /*+ returns keys of object+ */+ objectKeys: function(o) {+ if (Object.keys) {+ return Object.keys(o);+ } else {+ if (o !== Object(o)) {+ throw new TypeError('Object.keys called on a non-object');+ }+ var k=[], p;+ for (p in o) {+ if (Object.prototype.hasOwnProperty.call(o,p)) {+ k.push(p);+ }+ }+ return k;+ }++ },++ /**+ method to escape html.+ **/+ escape: function(str) {+ return $('<div>').text(str).html();+ },++ /*+ returns array items from sourceData having value property equal or inArray of 'value'+ */+ itemsByValue: function(value, sourceData, valueProp) {+ if(!sourceData || value === null) {+ return [];+ }++ if (typeof(valueProp) !== "function") {+ var idKey = valueProp || 'value';+ valueProp = function (e) { return e[idKey]; };+ }++ var isValArray = $.isArray(value),+ result = [],+ that = this;++ $.each(sourceData, function(i, o) {+ if(o.children) {+ result = result.concat(that.itemsByValue(value, o.children, valueProp));+ } else {+ /*jslint eqeq: true*/+ if(isValArray) {+ if($.grep(value, function(v){ return v == (o && typeof o === 'object' ? valueProp(o) : o); }).length) {+ result.push(o);+ }+ } else {+ var itemValue = (o && (typeof o === 'object')) ? valueProp(o) : o;+ if(value == itemValue) {+ result.push(o);+ }+ }+ /*jslint eqeq: false*/+ }+ });++ return result;+ },++ /*+ Returns input by options: type, mode.+ */+ createInput: function(options) {+ var TypeConstructor, typeOptions, input,+ type = options.type;++ //`date` is some kind of virtual type that is transformed to one of exact types+ //depending on mode and core lib+ if(type === 'date') {+ //inline+ if(options.mode === 'inline') {+ if($.fn.editabletypes.datefield) {+ type = 'datefield';+ } else if($.fn.editabletypes.dateuifield) {+ type = 'dateuifield';+ }+ //popup+ } else {+ if($.fn.editabletypes.date) {+ type = 'date';+ } else if($.fn.editabletypes.dateui) {+ type = 'dateui';+ }+ }++ //if type still `date` and not exist in types, replace with `combodate` that is base input+ if(type === 'date' && !$.fn.editabletypes.date) {+ type = 'combodate';+ }+ }++ //`datetime` should be datetimefield in 'inline' mode+ if(type === 'datetime' && options.mode === 'inline') {+ type = 'datetimefield';+ }++ //change wysihtml5 to textarea for jquery UI and plain versions+ if(type === 'wysihtml5' && !$.fn.editabletypes[type]) {+ type = 'textarea';+ }++ //create input of specified type. Input will be used for converting value, not in form+ if(typeof $.fn.editabletypes[type] === 'function') {+ TypeConstructor = $.fn.editabletypes[type];+ typeOptions = this.sliceObj(options, this.objectKeys(TypeConstructor.defaults));+ input = new TypeConstructor(typeOptions);+ return input;+ } else {+ $.error('Unknown type: '+ type);+ return false;+ }+ },++ //see http://stackoverflow.com/questions/7264899/detect-css-transitions-using-javascript-and-without-modernizr+ supportsTransitions: function () {+ var b = document.body || document.documentElement,+ s = b.style,+ p = 'transition',+ v = ['Moz', 'Webkit', 'Khtml', 'O', 'ms'];++ if(typeof s[p] === 'string') {+ return true;+ }++ // Tests for vendor specific prop+ p = p.charAt(0).toUpperCase() + p.substr(1);+ for(var i=0; i<v.length; i++) {+ if(typeof s[v[i] + p] === 'string') {+ return true;+ }+ }+ return false;+ }++ };+}(window.jQuery));++/**+Attaches stand-alone container with editable-form to HTML element. Element is used only for positioning, value is not stored anywhere.<br>+This method applied internally in <code>$().editable()</code>. You should subscribe on it's events (save / cancel) to get profit of it.<br>+Final realization can be different: bootstrap-popover, jqueryui-tooltip, poshytip, inline-div. It depends on which js file you include.<br>+Applied as jQuery method.++@class editableContainer+@uses editableform+**/+(function ($) {+ "use strict";++ var Popup = function (element, options) {+ this.init(element, options);+ };++ var Inline = function (element, options) {+ this.init(element, options);+ };++ //methods+ Popup.prototype = {+ containerName: null, //method to call container on element+ containerDataName: null, //object name in element's .data()+ innerCss: null, //tbd in child class+ containerClass: 'editable-container editable-popup', //css class applied to container element+ defaults: {}, //container itself defaults++ init: function(element, options) {+ this.$element = $(element);+ //since 1.4.1 container do not use data-* directly as they already merged into options.+ this.options = $.extend({}, $.fn.editableContainer.defaults, options);+ this.splitOptions();++ //set scope of form callbacks to element+ this.formOptions.scope = this.$element[0];++ this.initContainer();++ //flag to hide container, when saving value will finish+ this.delayedHide = false;++ //bind 'destroyed' listener to destroy container when element is removed from dom+ this.$element.on('destroyed', $.proxy(function(){+ this.destroy();+ }, this));++ //attach document handler to close containers on click / escape+ if(!$(document).data('editable-handlers-attached')) {+ //close all on escape+ $(document).on('keyup.editable', function (e) {+ if (e.which === 27) {+ $('.editable-open').editableContainer('hide');+ //todo: return focus on element+ }+ });++ //close containers when click outside+ //(mousedown could be better than click, it closes everything also on drag drop)+ $(document).on('click.editable', function(e) {+ var $target = $(e.target), i,+ exclude_classes = ['.editable-container',+ '.ui-datepicker-header',+ '.datepicker', //in inline mode datepicker is rendered into body+ '.modal-backdrop',+ '.bootstrap-wysihtml5-insert-image-modal',+ '.bootstrap-wysihtml5-insert-link-modal'+ ];++ //check if element is detached. It occurs when clicking in bootstrap datepicker+ if (!$.contains(document.documentElement, e.target)) {+ return;+ }++ //for some reason FF 20 generates extra event (click) in select2 widget with e.target = document+ //we need to filter it via construction below. See https://github.com/vitalets/x-editable/issues/199+ //Possibly related to http://stackoverflow.com/questions/10119793/why-does-firefox-react-differently-from-webkit-and-ie-to-click-event-on-selec+ if($target.is(document)) {+ return;+ }++ //if click inside one of exclude classes --> no nothing+ for(i=0; i<exclude_classes.length; i++) {+ if($target.is(exclude_classes[i]) || $target.parents(exclude_classes[i]).length) {+ return;+ }+ }++ //close all open containers (except one - target)+ Popup.prototype.closeOthers(e.target);+ });++ $(document).data('editable-handlers-attached', true);+ }+ },++ //split options on containerOptions and formOptions+ splitOptions: function() {+ this.containerOptions = {};+ this.formOptions = {};++ if(!$.fn[this.containerName]) {+ throw new Error(this.containerName + ' not found. Have you included corresponding js file?');+ }++ //keys defined in container defaults go to container, others go to form+ for(var k in this.options) {+ if(k in this.defaults) {+ this.containerOptions[k] = this.options[k];+ } else {+ this.formOptions[k] = this.options[k];+ }+ }+ },++ /*+ Returns jquery object of container+ @method tip()+ */+ tip: function() {+ return this.container() ? this.container().$tip : null;+ },++ /* returns container object */+ container: function() {+ var container;+ //first, try get it by `containerDataName`+ if(this.containerDataName) {+ if(container = this.$element.data(this.containerDataName)) {+ return container;+ }+ }+ //second, try `containerName`+ container = this.$element.data(this.containerName);+ return container;+ },++ /* call native method of underlying container, e.g. this.$element.popover('method') */+ call: function() {+ this.$element[this.containerName].apply(this.$element, arguments);+ },++ initContainer: function(){+ this.call(this.containerOptions);+ },++ renderForm: function() {+ this.$form+ .editableform(this.formOptions)+ .on({+ save: $.proxy(this.save, this), //click on submit button (value changed)+ nochange: $.proxy(function(){ this.hide('nochange'); }, this), //click on submit button (value NOT changed)+ cancel: $.proxy(function(){ this.hide('cancel'); }, this), //click on calcel button+ show: $.proxy(function() {+ if(this.delayedHide) {+ this.hide(this.delayedHide.reason);+ this.delayedHide = false;+ } else {+ this.setPosition();+ }+ }, this), //re-position container every time form is shown (occurs each time after loading state)+ rendering: $.proxy(this.setPosition, this), //this allows to place container correctly when loading shown+ resize: $.proxy(this.setPosition, this), //this allows to re-position container when form size is changed+ rendered: $.proxy(function(){+ /**+ Fired when container is shown and form is rendered (for select will wait for loading dropdown options).+ **Note:** Bootstrap popover has own `shown` event that now cannot be separated from x-editable's one.+ The workaround is to check `arguments.length` that is always `2` for x-editable.++ @event shown+ @param {Object} event event object+ @example+ $('#username').on('shown', function(e, editable) {+ editable.input.$input.val('overwriting value of input..');+ });+ **/+ /*+ TODO: added second param mainly to distinguish from bootstrap's shown event. It's a hotfix that will be solved in future versions via namespaced events.+ */+ this.$element.triggerHandler('shown', $(this.options.scope).data('editable'));+ }, this)+ })+ .editableform('render');+ },++ /**+ Shows container with form+ @method show()+ @param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.+ **/+ /* Note: poshytip owerwrites this method totally! */+ show: function (closeAll) {+ this.$element.addClass('editable-open');+ if(closeAll !== false) {+ //close all open containers (except this)+ this.closeOthers(this.$element[0]);+ }++ //show container itself+ this.innerShow();+ this.tip().addClass(this.containerClass);++ /*+ Currently, form is re-rendered on every show.+ The main reason is that we dont know, what will container do with content when closed:+ remove(), detach() or just hide() - it depends on container.++ Detaching form itself before hide and re-insert before show is good solution,+ but visually it looks ugly --> container changes size before hide.+ */++ //if form already exist - delete previous data+ if(this.$form) {+ //todo: destroy prev data!+ //this.$form.destroy();+ }++ this.$form = $('<div>');++ //insert form into container body+ if(this.tip().is(this.innerCss)) {+ //for inline container+ this.tip().append(this.$form);+ } else {+ this.tip().find(this.innerCss).append(this.$form);+ }++ //render form+ this.renderForm();+ },++ /**+ Hides container with form+ @method hide()+ @param {string} reason Reason caused hiding. Can be <code>save|cancel|onblur|nochange|undefined (=manual)</code>+ **/+ hide: function(reason) {+ if(!this.tip() || !this.tip().is(':visible') || !this.$element.hasClass('editable-open')) {+ return;+ }++ //if form is saving value, schedule hide+ if(this.$form.data('editableform').isSaving) {+ this.delayedHide = {reason: reason};+ return;+ } else {+ this.delayedHide = false;+ }++ this.$element.removeClass('editable-open');+ this.innerHide();++ /**+ Fired when container was hidden. It occurs on both save or cancel.+ **Note:** Bootstrap popover has own `hidden` event that now cannot be separated from x-editable's one.+ The workaround is to check `arguments.length` that is always `2` for x-editable.++ @event hidden+ @param {object} event event object+ @param {string} reason Reason caused hiding. Can be <code>save|cancel|onblur|nochange|manual</code>+ @example+ $('#username').on('hidden', function(e, reason) {+ if(reason === 'save' || reason === 'cancel') {+ //auto-open next editable+ $(this).closest('tr').next().find('.editable').editable('show');+ }+ });+ **/+ this.$element.triggerHandler('hidden', reason || 'manual');+ },++ /* internal show method. To be overwritten in child classes */+ innerShow: function () {++ },++ /* internal hide method. To be overwritten in child classes */+ innerHide: function () {++ },++ /**+ Toggles container visibility (show / hide)+ @method toggle()+ @param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.+ **/+ toggle: function(closeAll) {+ if(this.container() && this.tip() && this.tip().is(':visible')) {+ this.hide();+ } else {+ this.show(closeAll);+ }+ },++ /*+ Updates the position of container when content changed.+ @method setPosition()+ */+ setPosition: function() {+ //tbd in child class+ },++ save: function(e, params) {+ /**+ Fired when new value was submitted. You can use <code>$(this).data('editableContainer')</code> inside handler to access to editableContainer instance++ @event save+ @param {Object} event event object+ @param {Object} params additional params+ @param {mixed} params.newValue submitted value+ @param {Object} params.response ajax response+ @example+ $('#username').on('save', function(e, params) {+ //assuming server response: '{success: true}'+ var pk = $(this).data('editableContainer').options.pk;+ if(params.response && params.response.success) {+ alert('value: ' + params.newValue + ' with pk: ' + pk + ' saved!');+ } else {+ alert('error!');+ }+ });+ **/+ this.$element.triggerHandler('save', params);++ //hide must be after trigger, as saving value may require methods of plugin, applied to input+ this.hide('save');+ },++ /**+ Sets new option++ @method option(key, value)+ @param {string} key+ @param {mixed} value+ **/+ option: function(key, value) {+ this.options[key] = value;+ if(key in this.containerOptions) {+ this.containerOptions[key] = value;+ this.setContainerOption(key, value);+ } else {+ this.formOptions[key] = value;+ if(this.$form) {+ this.$form.editableform('option', key, value);+ }+ }+ },++ setContainerOption: function(key, value) {+ this.call('option', key, value);+ },++ /**+ Destroys the container instance+ @method destroy()+ **/+ destroy: function() {+ this.hide();+ this.innerDestroy();+ this.$element.off('destroyed');+ this.$element.removeData('editableContainer');+ },++ /* to be overwritten in child classes */+ innerDestroy: function() {++ },++ /*+ Closes other containers except one related to passed element.+ Other containers can be cancelled or submitted (depends on onblur option)+ */+ closeOthers: function(element) {+ $('.editable-open').each(function(i, el){+ //do nothing with passed element and it's children+ if(el === element || $(el).find(element).length) {+ return;+ }++ //otherwise cancel or submit all open containers+ var $el = $(el),+ ec = $el.data('editableContainer');++ if(!ec) {+ return;+ }++ if(ec.options.onblur === 'cancel') {+ $el.data('editableContainer').hide('onblur');+ } else if(ec.options.onblur === 'submit') {+ $el.data('editableContainer').tip().find('form').submit();+ }+ });++ },++ /**+ Activates input of visible container (e.g. set focus)+ @method activate()+ **/+ activate: function() {+ if(this.tip && this.tip().is(':visible') && this.$form) {+ this.$form.data('editableform').input.activate();+ }+ }++ };++ /**+ jQuery method to initialize editableContainer.++ @method $().editableContainer(options)+ @params {Object} options+ @example+ $('#edit').editableContainer({+ type: 'text',+ url: '/post',+ pk: 1,+ value: 'hello'+ });+ **/+ $.fn.editableContainer = function (option) {+ var args = arguments;+ return this.each(function () {+ var $this = $(this),+ dataKey = 'editableContainer',+ data = $this.data(dataKey),+ options = typeof option === 'object' && option,+ Constructor = (options.mode === 'inline') ? Inline : Popup;++ if (!data) {+ $this.data(dataKey, (data = new Constructor(this, options)));+ }++ if (typeof option === 'string') { //call method+ data[option].apply(data, Array.prototype.slice.call(args, 1));+ }+ });+ };++ //store constructors+ $.fn.editableContainer.Popup = Popup;+ $.fn.editableContainer.Inline = Inline;++ //defaults+ $.fn.editableContainer.defaults = {+ /**+ Initial value of form input++ @property value+ @type mixed+ @default null+ @private+ **/+ value: null,+ /**+ Placement of container relative to element. Can be <code>top|right|bottom|left</code>. Not used for inline container.++ @property placement+ @type string+ @default 'top'+ **/+ placement: 'top',+ /**+ Whether to hide container on save/cancel.++ @property autohide+ @type boolean+ @default true+ @private+ **/+ autohide: true,+ /**+ Action when user clicks outside the container. Can be <code>cancel|submit|ignore</code>.+ Setting <code>ignore</code> allows to have several containers open.++ @property onblur+ @type string+ @default 'cancel'+ @since 1.1.1+ **/+ onblur: 'cancel',++ /**+ Animation speed (inline mode only)+ @property anim+ @type string+ @default false+ **/+ anim: false,++ /**+ Mode of editable, can be `popup` or `inline`++ @property mode+ @type string+ @default 'popup'+ @since 1.4.0+ **/+ mode: 'popup'+ };++ /*+ * workaround to have 'destroyed' event to destroy popover when element is destroyed+ * see http://stackoverflow.com/questions/2200494/jquery-trigger-event-when-an-element-is-removed-from-the-dom+ */+ jQuery.event.special.destroyed = {+ remove: function(o) {+ if (o.handler) {+ o.handler();+ }+ }+ };++}(window.jQuery));++/**+* Editable Inline+* ---------------------+*/+(function ($) {+ "use strict";++ //copy prototype from EditableContainer+ //extend methods+ $.extend($.fn.editableContainer.Inline.prototype, $.fn.editableContainer.Popup.prototype, {+ containerName: 'editableform',+ innerCss: '.editable-inline',+ containerClass: 'editable-container editable-inline', //css class applied to container element++ initContainer: function(){+ //container is <span> element+ this.$tip = $('<span></span>');++ //convert anim to miliseconds (int)+ if(!this.options.anim) {+ this.options.anim = 0;+ }+ },++ splitOptions: function() {+ //all options are passed to form+ this.containerOptions = {};+ this.formOptions = this.options;+ },++ tip: function() {+ return this.$tip;+ },++ innerShow: function () {+ this.$element.hide();+ this.tip().insertAfter(this.$element).show();+ },++ innerHide: function () {+ this.$tip.hide(this.options.anim, $.proxy(function() {+ this.$element.show();+ this.innerDestroy();+ }, this));+ },++ innerDestroy: function() {+ if(this.tip()) {+ this.tip().empty().remove();+ }+ }+ });++}(window.jQuery));+/**+Makes editable any HTML element on the page. Applied as jQuery method.++@class editable+@uses editableContainer+**/+(function ($) {+ "use strict";++ var Editable = function (element, options) {+ this.$element = $(element);+ //data-* has more priority over js options: because dynamically created elements may change data-*+ this.options = $.extend({}, $.fn.editable.defaults, options, $.fn.editableutils.getConfigData(this.$element));+ if(this.options.selector) {+ this.initLive();+ } else {+ this.init();+ }++ //check for transition support+ if(this.options.highlight && !$.fn.editableutils.supportsTransitions()) {+ this.options.highlight = false;+ }+ };++ Editable.prototype = {+ constructor: Editable,+ init: function () {+ var isValueByText = false,+ doAutotext, finalize;++ //name+ this.options.name = this.options.name || this.$element.attr('id');++ //create input of specified type. Input needed already here to convert value for initial display (e.g. show text by id for select)+ //also we set scope option to have access to element inside input specific callbacks (e. g. source as function)+ this.options.scope = this.$element[0];+ this.input = $.fn.editableutils.createInput(this.options);+ if(!this.input) {+ return;+ }++ //set value from settings or by element's text+ if (this.options.value === undefined || this.options.value === null) {+ this.value = this.input.html2value($.trim(this.$element.html()));+ isValueByText = true;+ } else {+ /*+ value can be string when received from 'data-value' attribute+ for complext objects value can be set as json string in data-value attribute,+ e.g. data-value="{city: 'Moscow', street: 'Lenina'}"+ */+ this.options.value = $.fn.editableutils.tryParseJson(this.options.value, true);+ if(typeof this.options.value === 'string') {+ this.value = this.input.str2value(this.options.value);+ } else {+ this.value = this.options.value;+ }+ }++ //add 'editable' class to every editable element+ this.$element.addClass('editable');++ //specifically for "textarea" add class .editable-pre-wrapped to keep linebreaks+ if(this.input.type === 'textarea') {+ this.$element.addClass('editable-pre-wrapped');+ }++ //attach handler activating editable. In disabled mode it just prevent default action (useful for links)+ if(this.options.toggle !== 'manual') {+ this.$element.addClass('editable-click');+ this.$element.on(this.options.toggle + '.editable', $.proxy(function(e){+ //prevent following link if editable enabled+ if(!this.options.disabled) {+ e.preventDefault();+ }++ //stop propagation not required because in document click handler it checks event target+ //e.stopPropagation();++ if(this.options.toggle === 'mouseenter') {+ //for hover only show container+ this.show();+ } else {+ //when toggle='click' we should not close all other containers as they will be closed automatically in document click listener+ var closeAll = (this.options.toggle !== 'click');+ this.toggle(closeAll);+ }+ }, this));+ } else {+ this.$element.attr('tabindex', -1); //do not stop focus on element when toggled manually+ }++ //if display is function it's far more convinient to have autotext = always to render correctly on init+ //see https://github.com/vitalets/x-editable-yii/issues/34+ if(typeof this.options.display === 'function') {+ this.options.autotext = 'always';+ }++ //check conditions for autotext:+ switch(this.options.autotext) {+ case 'always':+ doAutotext = true;+ break;+ case 'auto':+ //if element text is empty and value is defined and value not generated by text --> run autotext+ doAutotext = !$.trim(this.$element.text()).length && this.value !== null && this.value !== undefined && !isValueByText;+ break;+ default:+ doAutotext = false;+ }++ //depending on autotext run render() or just finilize init+ $.when(doAutotext ? this.render() : true).then($.proxy(function() {+ if(this.options.disabled) {+ this.disable();+ } else {+ this.enable();+ }+ /**+ Fired when element was initialized by `$().editable()` method.+ Please note that you should setup `init` handler **before** applying `editable`.++ @event init+ @param {Object} event event object+ @param {Object} editable editable instance (as here it cannot accessed via data('editable'))+ @since 1.2.0+ @example+ $('#username').on('init', function(e, editable) {+ alert('initialized ' + editable.options.name);+ });+ $('#username').editable();+ **/+ this.$element.triggerHandler('init', this);+ }, this));+ },++ /*+ Initializes parent element for live editables+ */+ initLive: function() {+ //store selector+ var selector = this.options.selector;+ //modify options for child elements+ this.options.selector = false;+ this.options.autotext = 'never';+ //listen toggle events+ this.$element.on(this.options.toggle + '.editable', selector, $.proxy(function(e){+ var $target = $(e.target);+ if(!$target.data('editable')) {+ //if delegated element initially empty, we need to clear it's text (that was manually set to `empty` by user)+ //see https://github.com/vitalets/x-editable/issues/137+ if($target.hasClass(this.options.emptyclass)) {+ $target.empty();+ }+ $target.editable(this.options).trigger(e);+ }+ }, this));+ },++ /*+ Renders value into element's text.+ Can call custom display method from options.+ Can return deferred object.+ @method render()+ @param {mixed} response server response (if exist) to pass into display function+ */+ render: function(response) {+ //do not display anything+ if(this.options.display === false) {+ return;+ }++ //if input has `value2htmlFinal` method, we pass callback in third param to be called when source is loaded+ if(this.input.value2htmlFinal) {+ return this.input.value2html(this.value, this.$element[0], this.options.display, response);+ //if display method defined --> use it+ } else if(typeof this.options.display === 'function') {+ return this.options.display.call(this.$element[0], this.value, response);+ //else use input's original value2html() method+ } else {+ return this.input.value2html(this.value, this.$element[0]);+ }+ },++ /**+ Enables editable+ @method enable()+ **/+ enable: function() {+ this.options.disabled = false;+ this.$element.removeClass('editable-disabled');+ this.handleEmpty(this.isEmpty);+ if(this.options.toggle !== 'manual') {+ if(this.$element.attr('tabindex') === '-1') {+ this.$element.removeAttr('tabindex');+ }+ }+ },++ /**+ Disables editable+ @method disable()+ **/+ disable: function() {+ this.options.disabled = true;+ this.hide();+ this.$element.addClass('editable-disabled');+ this.handleEmpty(this.isEmpty);+ //do not stop focus on this element+ this.$element.attr('tabindex', -1);+ },++ /**+ Toggles enabled / disabled state of editable element+ @method toggleDisabled()+ **/+ toggleDisabled: function() {+ if(this.options.disabled) {+ this.enable();+ } else {+ this.disable();+ }+ },++ /**+ Sets new option++ @method option(key, value)+ @param {string|object} key option name or object with several options+ @param {mixed} value option new value+ @example+ $('.editable').editable('option', 'pk', 2);+ **/+ option: function(key, value) {+ //set option(s) by object+ if(key && typeof key === 'object') {+ $.each(key, $.proxy(function(k, v){+ this.option($.trim(k), v);+ }, this));+ return;+ }++ //set option by string+ this.options[key] = value;++ //disabled+ if(key === 'disabled') {+ return value ? this.disable() : this.enable();+ }++ //value+ if(key === 'value') {+ this.setValue(value);+ }++ //transfer new option to container!+ if(this.container) {+ this.container.option(key, value);+ }++ //pass option to input directly (as it points to the same in form)+ if(this.input.option) {+ this.input.option(key, value);+ }++ },++ /*+ * set emptytext if element is empty+ */+ handleEmpty: function (isEmpty) {+ //do not handle empty if we do not display anything+ if(this.options.display === false) {+ return;+ }++ /*+ isEmpty may be set directly as param of method.+ It is required when we enable/disable field and can't rely on content+ as node content is text: "Empty" that is not empty %)+ */+ if(isEmpty !== undefined) {+ this.isEmpty = isEmpty;+ } else {+ //detect empty+ //for some inputs we need more smart check+ //e.g. wysihtml5 may have <br>, <p></p>, <img>+ if(typeof(this.input.isEmpty) === 'function') {+ this.isEmpty = this.input.isEmpty(this.$element);+ } else {+ this.isEmpty = $.trim(this.$element.html()) === '';+ }+ }++ //emptytext shown only for enabled+ if(!this.options.disabled) {+ if (this.isEmpty) {+ this.$element.html(this.options.emptytext);+ if(this.options.emptyclass) {+ this.$element.addClass(this.options.emptyclass);+ }+ } else if(this.options.emptyclass) {+ this.$element.removeClass(this.options.emptyclass);+ }+ } else {+ //below required if element disable property was changed+ if(this.isEmpty) {+ this.$element.empty();+ if(this.options.emptyclass) {+ this.$element.removeClass(this.options.emptyclass);+ }+ }+ }+ },++ /**+ Shows container with form+ @method show()+ @param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.+ **/+ show: function (closeAll) {+ if(this.options.disabled) {+ return;+ }++ //init editableContainer: popover, tooltip, inline, etc..+ if(!this.container) {+ var containerOptions = $.extend({}, this.options, {+ value: this.value,+ input: this.input //pass input to form (as it is already created)+ });+ this.$element.editableContainer(containerOptions);+ //listen `save` event+ this.$element.on("save.internal", $.proxy(this.save, this));+ this.container = this.$element.data('editableContainer');+ } else if(this.container.tip().is(':visible')) {+ return;+ }++ //show container+ this.container.show(closeAll);+ },++ /**+ Hides container with form+ @method hide()+ **/+ hide: function () {+ if(this.container) {+ this.container.hide();+ }+ },++ /**+ Toggles container visibility (show / hide)+ @method toggle()+ @param {boolean} closeAll Whether to close all other editable containers when showing this one. Default true.+ **/+ toggle: function(closeAll) {+ if(this.container && this.container.tip().is(':visible')) {+ this.hide();+ } else {+ this.show(closeAll);+ }+ },++ /*+ * called when form was submitted+ */+ save: function(e, params) {+ //mark element with unsaved class if needed+ if(this.options.unsavedclass) {+ /*+ Add unsaved css to element if:+ - url is not user's function+ - value was not sent to server+ - params.response === undefined, that means data was not sent+ - value changed+ */+ var sent = false;+ sent = sent || typeof this.options.url === 'function';+ sent = sent || this.options.display === false;+ sent = sent || params.response !== undefined;+ sent = sent || (this.options.savenochange && this.input.value2str(this.value) !== this.input.value2str(params.newValue));++ if(sent) {+ this.$element.removeClass(this.options.unsavedclass);+ } else {+ this.$element.addClass(this.options.unsavedclass);+ }+ }++ //highlight when saving+ if(this.options.highlight) {+ var $e = this.$element,+ bgColor = $e.css('background-color');++ $e.css('background-color', this.options.highlight);+ setTimeout(function(){+ if(bgColor === 'transparent') {+ bgColor = '';+ }+ $e.css('background-color', bgColor);+ $e.addClass('editable-bg-transition');+ setTimeout(function(){+ $e.removeClass('editable-bg-transition');+ }, 1700);+ }, 10);+ }++ //set new value+ this.setValue(params.newValue, false, params.response);++ /**+ Fired when new value was submitted. You can use <code>$(this).data('editable')</code> to access to editable instance++ @event save+ @param {Object} event event object+ @param {Object} params additional params+ @param {mixed} params.newValue submitted value+ @param {Object} params.response ajax response+ @example+ $('#username').on('save', function(e, params) {+ alert('Saved value: ' + params.newValue);+ });+ **/+ //event itself is triggered by editableContainer. Description here is only for documentation+ },++ validate: function () {+ if (typeof this.options.validate === 'function') {+ return this.options.validate.call(this, this.value);+ }+ },++ /**+ Sets new value of editable+ @method setValue(value, convertStr)+ @param {mixed} value new value+ @param {boolean} convertStr whether to convert value from string to internal format+ **/+ setValue: function(value, convertStr, response) {+ if(convertStr) {+ this.value = this.input.str2value(value);+ } else {+ this.value = value;+ }+ if(this.container) {+ this.container.option('value', this.value);+ }+ $.when(this.render(response))+ .then($.proxy(function() {+ this.handleEmpty();+ }, this));+ },++ /**+ Activates input of visible container (e.g. set focus)+ @method activate()+ **/+ activate: function() {+ if(this.container) {+ this.container.activate();+ }+ },++ /**+ Removes editable feature from element+ @method destroy()+ **/+ destroy: function() {+ this.disable();++ if(this.container) {+ this.container.destroy();+ }++ this.input.destroy();++ if(this.options.toggle !== 'manual') {+ this.$element.removeClass('editable-click');+ this.$element.off(this.options.toggle + '.editable');+ }++ this.$element.off("save.internal");++ this.$element.removeClass('editable editable-open editable-disabled');+ this.$element.removeData('editable');+ }+ };++ /* EDITABLE PLUGIN DEFINITION+ * ======================= */++ /**+ jQuery method to initialize editable element.++ @method $().editable(options)+ @params {Object} options+ @example+ $('#username').editable({+ type: 'text',+ url: '/post',+ pk: 1+ });+ **/+ $.fn.editable = function (option) {+ //special API methods returning non-jquery object+ var result = {}, args = arguments, datakey = 'editable';+ switch (option) {+ /**+ Runs client-side validation for all matched editables++ @method validate()+ @returns {Object} validation errors map+ @example+ $('#username, #fullname').editable('validate');+ // possible result:+ {+ username: "username is required",+ fullname: "fullname should be minimum 3 letters length"+ }+ **/+ case 'validate':+ this.each(function () {+ var $this = $(this), data = $this.data(datakey), error;+ if (data && (error = data.validate())) {+ result[data.options.name] = error;+ }+ });+ return result;++ /**+ Returns current values of editable elements.+ Note that it returns an **object** with name-value pairs, not a value itself. It allows to get data from several elements.+ If value of some editable is `null` or `undefined` it is excluded from result object.+ When param `isSingle` is set to **true** - it is supposed you have single element and will return value of editable instead of object.++ @method getValue()+ @param {bool} isSingle whether to return just value of single element+ @returns {Object} object of element names and values+ @example+ $('#username, #fullname').editable('getValue');+ //result:+ {+ username: "superuser",+ fullname: "John"+ }+ //isSingle = true+ $('#username').editable('getValue', true);+ //result "superuser"+ **/+ case 'getValue':+ if(arguments.length === 2 && arguments[1] === true) { //isSingle = true+ result = this.eq(0).data(datakey).value;+ } else {+ this.each(function () {+ var $this = $(this), data = $this.data(datakey);+ if (data && data.value !== undefined && data.value !== null) {+ result[data.options.name] = data.input.value2submit(data.value);+ }+ });+ }+ return result;++ /**+ This method collects values from several editable elements and submit them all to server.+ Internally it runs client-side validation for all fields and submits only in case of success.+ See <a href="#newrecord">creating new records</a> for details.+ Since 1.5.1 `submit` can be applied to single element to send data programmatically. In that case+ `url`, `success` and `error` is taken from initial options and you can just call `$('#username').editable('submit')`.++ @method submit(options)+ @param {object} options+ @param {object} options.url url to submit data+ @param {object} options.data additional data to submit+ @param {object} options.ajaxOptions additional ajax options+ @param {function} options.error(obj) error handler+ @param {function} options.success(obj,config) success handler+ @returns {Object} jQuery object+ **/+ case 'submit': //collects value, validate and submit to server for creating new record+ var config = arguments[1] || {},+ $elems = this,+ errors = this.editable('validate');++ // validation ok+ if($.isEmptyObject(errors)) {+ var ajaxOptions = {};++ // for single element use url, success etc from options+ if($elems.length === 1) {+ var editable = $elems.data('editable');+ //standard params+ var params = {+ name: editable.options.name || '',+ value: editable.input.value2submit(editable.value),+ pk: (typeof editable.options.pk === 'function') ?+ editable.options.pk.call(editable.options.scope) :+ editable.options.pk+ };++ //additional params+ if(typeof editable.options.params === 'function') {+ params = editable.options.params.call(editable.options.scope, params);+ } else {+ //try parse json in single quotes (from data-params attribute)+ editable.options.params = $.fn.editableutils.tryParseJson(editable.options.params, true);+ $.extend(params, editable.options.params);+ }++ ajaxOptions = {+ url: editable.options.url,+ data: params,+ type: 'POST'+ };++ // use success / error from options+ config.success = config.success || editable.options.success;+ config.error = config.error || editable.options.error;++ // multiple elements+ } else {+ var values = this.editable('getValue');++ ajaxOptions = {+ url: config.url,+ data: values,+ type: 'POST'+ };+ }++ // ajax success callabck (response 200 OK)+ ajaxOptions.success = typeof config.success === 'function' ? function(response) {+ config.success.call($elems, response, config);+ } : $.noop;++ // ajax error callabck+ ajaxOptions.error = typeof config.error === 'function' ? function() {+ config.error.apply($elems, arguments);+ } : $.noop;++ // extend ajaxOptions+ if(config.ajaxOptions) {+ $.extend(ajaxOptions, config.ajaxOptions);+ }++ // extra data+ if(config.data) {+ $.extend(ajaxOptions.data, config.data);+ }++ // perform ajax request+ $.ajax(ajaxOptions);+ } else { //client-side validation error+ if(typeof config.error === 'function') {+ config.error.call($elems, errors);+ }+ }+ return this;+ }++ //return jquery object+ return this.each(function () {+ var $this = $(this),+ data = $this.data(datakey),+ options = typeof option === 'object' && option;++ //for delegated targets do not store `editable` object for element+ //it's allows several different selectors.+ //see: https://github.com/vitalets/x-editable/issues/312+ if(options && options.selector) {+ data = new Editable(this, options);+ return;+ }++ if (!data) {+ $this.data(datakey, (data = new Editable(this, options)));+ }++ if (typeof option === 'string') { //call method+ data[option].apply(data, Array.prototype.slice.call(args, 1));+ }+ });+ };+++ $.fn.editable.defaults = {+ /**+ Type of input. Can be <code>text|textarea|select|date|checklist</code> and more++ @property type+ @type string+ @default 'text'+ **/+ type: 'text',+ /**+ Sets disabled state of editable++ @property disabled+ @type boolean+ @default false+ **/+ disabled: false,+ /**+ How to toggle editable. Can be <code>click|dblclick|mouseenter|manual</code>.+ When set to <code>manual</code> you should manually call <code>show/hide</code> methods of editable.+ **Note**: if you call <code>show</code> or <code>toggle</code> inside **click** handler of some DOM element,+ you need to apply <code>e.stopPropagation()</code> because containers are being closed on any click on document.++ @example+ $('#edit-button').click(function(e) {+ e.stopPropagation();+ $('#username').editable('toggle');+ });++ @property toggle+ @type string+ @default 'click'+ **/+ toggle: 'click',+ /**+ Text shown when element is empty.++ @property emptytext+ @type string+ @default 'Empty'+ **/+ emptytext: 'Empty',+ /**+ Allows to automatically set element's text based on it's value. Can be <code>auto|always|never</code>. Useful for select and date.+ For example, if dropdown list is <code>{1: 'a', 2: 'b'}</code> and element's value set to <code>1</code>, it's html will be automatically set to <code>'a'</code>.+ <code>auto</code> - text will be automatically set only if element is empty.+ <code>always|never</code> - always(never) try to set element's text.++ @property autotext+ @type string+ @default 'auto'+ **/+ autotext: 'auto',+ /**+ Initial value of input. If not set, taken from element's text.+ Note, that if element's text is empty - text is automatically generated from value and can be customized (see `autotext` option).+ For example, to display currency sign:+ @example+ <a id="price" data-type="text" data-value="100"></a>+ <script>+ $('#price').editable({+ ...+ display: function(value) {+ $(this).text(value + '$');+ }+ })+ </script>++ @property value+ @type mixed+ @default element's text+ **/+ value: null,+ /**+ Callback to perform custom displaying of value in element's text.+ If `null`, default input's display used.+ If `false`, no displaying methods will be called, element's text will never change.+ Runs under element's scope.+ _**Parameters:**_++ * `value` current value to be displayed+ * `response` server response (if display called after ajax submit), since 1.4.0++ For _inputs with source_ (select, checklist) parameters are different:++ * `value` current value to be displayed+ * `sourceData` array of items for current input (e.g. dropdown items)+ * `response` server response (if display called after ajax submit), since 1.4.0++ To get currently selected items use `$.fn.editableutils.itemsByValue(value, sourceData)`.++ @property display+ @type function|boolean+ @default null+ @since 1.2.0+ @example+ display: function(value, sourceData) {+ //display checklist as comma-separated values+ var html = [],+ checked = $.fn.editableutils.itemsByValue(value, sourceData);++ if(checked.length) {+ $.each(checked, function(i, v) { html.push($.fn.editableutils.escape(v.text)); });+ $(this).html(html.join(', '));+ } else {+ $(this).empty();+ }+ }+ **/+ display: null,+ /**+ Css class applied when editable text is empty.++ @property emptyclass+ @type string+ @since 1.4.1+ @default editable-empty+ **/+ emptyclass: 'editable-empty',+ /**+ Css class applied when value was stored but not sent to server (`pk` is empty or `send = 'never'`).+ You may set it to `null` if you work with editables locally and submit them together.++ @property unsavedclass+ @type string+ @since 1.4.1+ @default editable-unsaved+ **/+ unsavedclass: 'editable-unsaved',+ /**+ If selector is provided, editable will be delegated to the specified targets.+ Usefull for dynamically generated DOM elements.+ **Please note**, that delegated targets can't be initialized with `emptytext` and `autotext` options,+ as they actually become editable only after first click.+ You should manually set class `editable-click` to these elements.+ Also, if element originally empty you should add class `editable-empty`, set `data-value=""` and write emptytext into element:++ @property selector+ @type string+ @since 1.4.1+ @default null+ @example+ <div id="user">+ <!-- empty -->+ <a href="#" data-name="username" data-type="text" class="editable-click editable-empty" data-value="" title="Username">Empty</a>+ <!-- non-empty -->+ <a href="#" data-name="group" data-type="select" data-source="/groups" data-value="1" class="editable-click" title="Group">Operator</a>+ </div>++ <script>+ $('#user').editable({+ selector: 'a',+ url: '/post',+ pk: 1+ });+ </script>+ **/+ selector: null,+ /**+ Color used to highlight element after update. Implemented via CSS3 transition, works in modern browsers.++ @property highlight+ @type string|boolean+ @since 1.4.5+ @default #FFFF80+ **/+ highlight: '#FFFF80'+ };++}(window.jQuery));++/**+AbstractInput - base class for all editable inputs.+It defines interface to be implemented by any input type.+To create your own input you can inherit from this class.++@class abstractinput+**/+(function ($) {+ "use strict";++ //types+ $.fn.editabletypes = {};++ var AbstractInput = function () { };++ AbstractInput.prototype = {+ /**+ Initializes input++ @method init()+ **/+ init: function(type, options, defaults) {+ this.type = type;+ this.options = $.extend({}, defaults, options);+ },++ /*+ this method called before render to init $tpl that is inserted in DOM+ */+ prerender: function() {+ this.$tpl = $(this.options.tpl); //whole tpl as jquery object+ this.$input = this.$tpl; //control itself, can be changed in render method+ this.$clear = null; //clear button+ this.error = null; //error message, if input cannot be rendered+ },++ /**+ Renders input from tpl. Can return jQuery deferred object.+ Can be overwritten in child objects++ @method render()+ **/+ render: function() {++ },++ /**+ Sets element's html by value.++ @method value2html(value, element)+ @param {mixed} value+ @param {DOMElement} element+ **/+ value2html: function(value, element) {+ $(element)[this.options.escape ? 'text' : 'html']($.trim(value));+ },++ /**+ Converts element's html to value++ @method html2value(html)+ @param {string} html+ @returns {mixed}+ **/+ html2value: function(html) {+ return $('<div>').html(html).text();+ },++ /**+ Converts value to string (for internal compare). For submitting to server used value2submit().++ @method value2str(value)+ @param {mixed} value+ @returns {string}+ **/+ value2str: function(value) {+ return value;+ },++ /**+ Converts string received from server into value. Usually from `data-value` attribute.++ @method str2value(str)+ @param {string} str+ @returns {mixed}+ **/+ str2value: function(str) {+ return str;+ },++ /**+ Converts value for submitting to server. Result can be string or object.++ @method value2submit(value)+ @param {mixed} value+ @returns {mixed}+ **/+ value2submit: function(value) {+ return value;+ },++ /**+ Sets value of input.++ @method value2input(value)+ @param {mixed} value+ **/+ value2input: function(value) {+ this.$input.val(value);+ },++ /**+ Returns value of input. Value can be object (e.g. datepicker)++ @method input2value()+ **/+ input2value: function() {+ return this.$input.val();+ },++ /**+ Activates input. For text it sets focus.++ @method activate()+ **/+ activate: function() {+ if(this.$input.is(':visible')) {+ this.$input.focus();+ }+ },++ /**+ Creates input.++ @method clear()+ **/+ clear: function() {+ this.$input.val(null);+ },++ /**+ method to escape html.+ **/+ escape: function(str) {+ return $('<div>').text(str).html();+ },++ /**+ attach handler to automatically submit form when value changed (useful when buttons not shown)+ **/+ autosubmit: function() {++ },++ /**+ Additional actions when destroying element+ **/+ destroy: function() {+ },++ // -------- helper functions --------+ setClass: function() {+ if(this.options.inputclass) {+ this.$input.addClass(this.options.inputclass);+ }+ },++ setAttr: function(attr) {+ if (this.options[attr] !== undefined && this.options[attr] !== null) {+ this.$input.attr(attr, this.options[attr]);+ }+ },++ option: function(key, value) {+ this.options[key] = value;+ }++ };++ AbstractInput.defaults = {+ /**+ HTML template of input. Normally you should not change it.++ @property tpl+ @type string+ @default ''+ **/+ tpl: '',+ /**+ CSS class automatically applied to input++ @property inputclass+ @type string+ @default null+ **/+ inputclass: null,++ /**+ If `true` - html will be escaped in content of element via $.text() method.+ If `false` - html will not be escaped, $.html() used.+ When you use own `display` function, this option obviosly has no effect.++ @property escape+ @type boolean+ @since 1.5.0+ @default true+ **/+ escape: true,++ //scope for external methods (e.g. source defined as function)+ //for internal use only+ scope: null,++ //need to re-declare showbuttons here to get it's value from common config (passed only options existing in defaults)+ showbuttons: true+ };++ $.extend($.fn.editabletypes, {abstractinput: AbstractInput});++}(window.jQuery));++/**+List - abstract class for inputs that have source option loaded from js array or via ajax++@class list+@extends abstractinput+**/+(function ($) {+ "use strict";++ var List = function (options) {++ };++ $.fn.editableutils.inherit(List, $.fn.editabletypes.abstractinput);++ $.extend(List.prototype, {+ render: function () {+ var deferred = $.Deferred();++ this.error = null;+ this.onSourceReady(function () {+ this.renderList();+ deferred.resolve();+ }, function () {+ this.error = this.options.sourceError;+ deferred.resolve();+ });++ return deferred.promise();+ },++ html2value: function (html) {+ return null; //can't set value by text+ },++ value2html: function (value, element, display, response) {+ var deferred = $.Deferred(),+ success = function () {+ if(typeof display === 'function') {+ //custom display method+ display.call(element, value, this.sourceData, response);+ } else {+ this.value2htmlFinal(value, element);+ }+ deferred.resolve();+ };++ //for null value just call success without loading source+ if(value === null) {+ success.call(this);+ } else {+ this.onSourceReady(success, function () { deferred.resolve(); });+ }++ return deferred.promise();+ },++ // ------------- additional functions ------------++ onSourceReady: function (success, error) {+ //run source if it function+ var source;+ if ($.isFunction(this.options.source)) {+ source = this.options.source.call(this.options.scope);+ this.sourceData = null;+ //note: if function returns the same source as URL - sourceData will be taken from cahce and no extra request performed+ } else {+ source = this.options.source;+ }++ //if allready loaded just call success+ if(this.options.sourceCache && $.isArray(this.sourceData)) {+ success.call(this);+ return;+ }++ //try parse json in single quotes (for double quotes jquery does automatically)+ try {+ source = $.fn.editableutils.tryParseJson(source, false);+ } catch (e) {+ error.call(this);+ return;+ }++ //loading from url+ if (typeof source === 'string') {+ //try to get sourceData from cache+ if(this.options.sourceCache) {+ var cacheID = source,+ cache;++ if (!$(document).data(cacheID)) {+ $(document).data(cacheID, {});+ }+ cache = $(document).data(cacheID);++ //check for cached data+ if (cache.loading === false && cache.sourceData) { //take source from cache+ this.sourceData = cache.sourceData;+ this.doPrepend();+ success.call(this);+ return;+ } else if (cache.loading === true) { //cache is loading, put callback in stack to be called later+ cache.callbacks.push($.proxy(function () {+ this.sourceData = cache.sourceData;+ this.doPrepend();+ success.call(this);+ }, this));++ //also collecting error callbacks+ cache.err_callbacks.push($.proxy(error, this));+ return;+ } else { //no cache yet, activate it+ cache.loading = true;+ cache.callbacks = [];+ cache.err_callbacks = [];+ }+ }++ //ajaxOptions for source. Can be overwritten bt options.sourceOptions+ var ajaxOptions = $.extend({+ url: source,+ type: 'get',+ cache: false,+ dataType: 'json',+ success: $.proxy(function (data) {+ if(cache) {+ cache.loading = false;+ }+ this.sourceData = this.makeArray(data);+ if($.isArray(this.sourceData)) {+ if(cache) {+ //store result in cache+ cache.sourceData = this.sourceData;+ //run success callbacks for other fields waiting for this source+ $.each(cache.callbacks, function () { this.call(); });+ }+ this.doPrepend();+ success.call(this);+ } else {+ error.call(this);+ if(cache) {+ //run error callbacks for other fields waiting for this source+ $.each(cache.err_callbacks, function () { this.call(); });+ }+ }+ }, this),+ error: $.proxy(function () {+ error.call(this);+ if(cache) {+ cache.loading = false;+ //run error callbacks for other fields+ $.each(cache.err_callbacks, function () { this.call(); });+ }+ }, this)+ }, this.options.sourceOptions);++ //loading sourceData from server+ $.ajax(ajaxOptions);++ } else { //options as json/array+ this.sourceData = this.makeArray(source);++ if($.isArray(this.sourceData)) {+ this.doPrepend();+ success.call(this);+ } else {+ error.call(this);+ }+ }+ },++ doPrepend: function () {+ if(this.options.prepend === null || this.options.prepend === undefined) {+ return;+ }++ if(!$.isArray(this.prependData)) {+ //run prepend if it is function (once)+ if ($.isFunction(this.options.prepend)) {+ this.options.prepend = this.options.prepend.call(this.options.scope);+ }++ //try parse json in single quotes+ this.options.prepend = $.fn.editableutils.tryParseJson(this.options.prepend, true);++ //convert prepend from string to object+ if (typeof this.options.prepend === 'string') {+ this.options.prepend = {'': this.options.prepend};+ }++ this.prependData = this.makeArray(this.options.prepend);+ }++ if($.isArray(this.prependData) && $.isArray(this.sourceData)) {+ this.sourceData = this.prependData.concat(this.sourceData);+ }+ },++ /*+ renders input list+ */+ renderList: function() {+ // this method should be overwritten in child class+ },++ /*+ set element's html by value+ */+ value2htmlFinal: function(value, element) {+ // this method should be overwritten in child class+ },++ /**+ * convert data to array suitable for sourceData, e.g. [{value: 1, text: 'abc'}, {...}]+ */+ makeArray: function(data) {+ var count, obj, result = [], item, iterateItem;+ if(!data || typeof data === 'string') {+ return null;+ }++ if($.isArray(data)) { //array+ /*+ function to iterate inside item of array if item is object.+ Caclulates count of keys in item and store in obj.+ */+ iterateItem = function (k, v) {+ obj = {value: k, text: v};+ if(count++ >= 2) {+ return false;// exit from `each` if item has more than one key.+ }+ };++ for(var i = 0; i < data.length; i++) {+ item = data[i];+ if(typeof item === 'object') {+ count = 0; //count of keys inside item+ $.each(item, iterateItem);+ //case: [{val1: 'text1'}, {val2: 'text2} ...]+ if(count === 1) {+ result.push(obj);+ //case: [{value: 1, text: 'text1'}, {value: 2, text: 'text2'}, ...]+ } else if(count > 1) {+ //removed check of existance: item.hasOwnProperty('value') && item.hasOwnProperty('text')+ if(item.children) {+ item.children = this.makeArray(item.children);+ }+ result.push(item);+ }+ } else {+ //case: ['text1', 'text2' ...]+ result.push({value: item, text: item});+ }+ }+ } else { //case: {val1: 'text1', val2: 'text2, ...}+ $.each(data, function (k, v) {+ result.push({value: k, text: v});+ });+ }+ return result;+ },++ option: function(key, value) {+ this.options[key] = value;+ if(key === 'source') {+ this.sourceData = null;+ }+ if(key === 'prepend') {+ this.prependData = null;+ }+ }++ });++ List.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ Source data for list.+ If **array** - it should be in format: `[{value: 1, text: "text1"}, {value: 2, text: "text2"}, ...]`+ For compability, object format is also supported: `{"1": "text1", "2": "text2" ...}` but it does not guarantee elements order.++ If **string** - considered ajax url to load items. In that case results will be cached for fields with the same source and name. See also `sourceCache` option.++ If **function**, it should return data in format above (since 1.4.0).++ Since 1.4.1 key `children` supported to render OPTGROUP (for **select** input only).+ `[{text: "group1", children: [{value: 1, text: "text1"}, {value: 2, text: "text2"}]}, ...]`+++ @property source+ @type string | array | object | function+ @default null+ **/+ source: null,+ /**+ Data automatically prepended to the beginning of dropdown list.++ @property prepend+ @type string | array | object | function+ @default false+ **/+ prepend: false,+ /**+ Error message when list cannot be loaded (e.g. ajax error)++ @property sourceError+ @type string+ @default Error when loading list+ **/+ sourceError: 'Error when loading list',+ /**+ if <code>true</code> and source is **string url** - results will be cached for fields with the same source.+ Usefull for editable column in grid to prevent extra requests.++ @property sourceCache+ @type boolean+ @default true+ @since 1.2.0+ **/+ sourceCache: true,+ /**+ Additional ajax options to be used in $.ajax() when loading list from server.+ Useful to send extra parameters (`data` key) or change request method (`type` key).++ @property sourceOptions+ @type object|function+ @default null+ @since 1.5.0+ **/+ sourceOptions: null+ });++ $.fn.editabletypes.list = List;++}(window.jQuery));++/**+Text input++@class text+@extends abstractinput+@final+@example+<a href="#" id="username" data-type="text" data-pk="1">awesome</a>+<script>+$(function(){+ $('#username').editable({+ url: '/post',+ title: 'Enter username'+ });+});+</script>+**/+(function ($) {+ "use strict";++ var Text = function (options) {+ this.init('text', options, Text.defaults);+ };++ $.fn.editableutils.inherit(Text, $.fn.editabletypes.abstractinput);++ $.extend(Text.prototype, {+ render: function() {+ this.renderClear();+ this.setClass();+ this.setAttr('placeholder');+ },++ activate: function() {+ if(this.$input.is(':visible')) {+ this.$input.focus();+ $.fn.editableutils.setCursorPosition(this.$input.get(0), this.$input.val().length);+ if(this.toggleClear) {+ this.toggleClear();+ }+ }+ },++ //render clear button+ renderClear: function() {+ if (this.options.clear) {+ this.$clear = $('<span class="editable-clear-x"></span>');+ this.$input.after(this.$clear)+ .css('padding-right', 24)+ .keyup($.proxy(function(e) {+ //arrows, enter, tab, etc+ if(~$.inArray(e.keyCode, [40,38,9,13,27])) {+ return;+ }++ clearTimeout(this.t);+ var that = this;+ this.t = setTimeout(function() {+ that.toggleClear(e);+ }, 100);++ }, this))+ .parent().css('position', 'relative');++ this.$clear.click($.proxy(this.clear, this));+ }+ },++ postrender: function() {+ /*+ //now `clear` is positioned via css+ if(this.$clear) {+ //can position clear button only here, when form is shown and height can be calculated+// var h = this.$input.outerHeight(true) || 20,+ var h = this.$clear.parent().height(),+ delta = (h - this.$clear.height()) / 2;++ //this.$clear.css({bottom: delta, right: delta});+ }+ */+ },++ //show / hide clear button+ toggleClear: function(e) {+ if(!this.$clear) {+ return;+ }++ var len = this.$input.val().length,+ visible = this.$clear.is(':visible');++ if(len && !visible) {+ this.$clear.show();+ }++ if(!len && visible) {+ this.$clear.hide();+ }+ },++ clear: function() {+ this.$clear.hide();+ this.$input.val('').focus();+ }+ });++ Text.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ @property tpl+ @default <input type="text">+ **/+ tpl: '<input type="text">',+ /**+ Placeholder attribute of input. Shown when input is empty.++ @property placeholder+ @type string+ @default null+ **/+ placeholder: null,++ /**+ Whether to show `clear` button++ @property clear+ @type boolean+ @default true+ **/+ clear: true+ });++ $.fn.editabletypes.text = Text;++}(window.jQuery));++/**+Textarea input++@class textarea+@extends abstractinput+@final+@example+<a href="#" id="comments" data-type="textarea" data-pk="1">awesome comment!</a>+<script>+$(function(){+ $('#comments').editable({+ url: '/post',+ title: 'Enter comments',+ rows: 10+ });+});+</script>+**/+(function ($) {+ "use strict";++ var Textarea = function (options) {+ this.init('textarea', options, Textarea.defaults);+ };++ $.fn.editableutils.inherit(Textarea, $.fn.editabletypes.abstractinput);++ $.extend(Textarea.prototype, {+ render: function () {+ this.setClass();+ this.setAttr('placeholder');+ this.setAttr('rows');++ //ctrl + enter+ this.$input.keydown(function (e) {+ if (e.ctrlKey && e.which === 13) {+ $(this).closest('form').submit();+ }+ });+ },++ //using `white-space: pre-wrap` solves \n <--> BR conversion very elegant!+ /*+ value2html: function(value, element) {+ var html = '', lines;+ if(value) {+ lines = value.split("\n");+ for (var i = 0; i < lines.length; i++) {+ lines[i] = $('<div>').text(lines[i]).html();+ }+ html = lines.join('<br>');+ }+ $(element).html(html);+ },++ html2value: function(html) {+ if(!html) {+ return '';+ }++ var regex = new RegExp(String.fromCharCode(10), 'g');+ var lines = html.split(/<br\s*\/?>/i);+ for (var i = 0; i < lines.length; i++) {+ var text = $('<div>').html(lines[i]).text();++ // Remove newline characters (\n) to avoid them being converted by value2html() method+ // thus adding extra <br> tags+ text = text.replace(regex, '');++ lines[i] = text;+ }+ return lines.join("\n");+ },+ */+ activate: function() {+ $.fn.editabletypes.text.prototype.activate.call(this);+ }+ });++ Textarea.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ @property tpl+ @default <textarea></textarea>+ **/+ tpl:'<textarea></textarea>',+ /**+ @property inputclass+ @default input-large+ **/+ inputclass: 'input-large',+ /**+ Placeholder attribute of input. Shown when input is empty.++ @property placeholder+ @type string+ @default null+ **/+ placeholder: null,+ /**+ Number of rows in textarea++ @property rows+ @type integer+ @default 7+ **/+ rows: 7+ });++ $.fn.editabletypes.textarea = Textarea;++}(window.jQuery));++/**+Select (dropdown)++@class select+@extends list+@final+@example+<a href="#" id="status" data-type="select" data-pk="1" data-url="/post" data-title="Select status"></a>+<script>+$(function(){+ $('#status').editable({+ value: 2,+ source: [+ {value: 1, text: 'Active'},+ {value: 2, text: 'Blocked'},+ {value: 3, text: 'Deleted'}+ ]+ });+});+</script>+**/+(function ($) {+ "use strict";++ var Select = function (options) {+ this.init('select', options, Select.defaults);+ };++ $.fn.editableutils.inherit(Select, $.fn.editabletypes.list);++ $.extend(Select.prototype, {+ renderList: function() {+ this.$input.empty();++ var fillItems = function($el, data) {+ var attr;+ if($.isArray(data)) {+ for(var i=0; i<data.length; i++) {+ attr = {};+ if(data[i].children) {+ attr.label = data[i].text;+ $el.append(fillItems($('<optgroup>', attr), data[i].children));+ } else {+ attr.value = data[i].value;+ if(data[i].disabled) {+ attr.disabled = true;+ }+ $el.append($('<option>', attr).text(data[i].text));+ }+ }+ }+ return $el;+ };++ fillItems(this.$input, this.sourceData);++ this.setClass();++ //enter submit+ this.$input.on('keydown.editable', function (e) {+ if (e.which === 13) {+ $(this).closest('form').submit();+ }+ });+ },++ value2htmlFinal: function(value, element) {+ var text = '',+ items = $.fn.editableutils.itemsByValue(value, this.sourceData);++ if(items.length) {+ text = items[0].text;+ }++ //$(element).text(text);+ $.fn.editabletypes.abstractinput.prototype.value2html.call(this, text, element);+ },++ autosubmit: function() {+ this.$input.off('keydown.editable').on('change.editable', function(){+ $(this).closest('form').submit();+ });+ }+ });++ Select.defaults = $.extend({}, $.fn.editabletypes.list.defaults, {+ /**+ @property tpl+ @default <select></select>+ **/+ tpl:'<select></select>'+ });++ $.fn.editabletypes.select = Select;++}(window.jQuery));++/**+List of checkboxes.+Internally value stored as javascript array of values.++@class checklist+@extends list+@final+@example+<a href="#" id="options" data-type="checklist" data-pk="1" data-url="/post" data-title="Select options"></a>+<script>+$(function(){+ $('#options').editable({+ value: [2, 3],+ source: [+ {value: 1, text: 'option1'},+ {value: 2, text: 'option2'},+ {value: 3, text: 'option3'}+ ]+ });+});+</script>+**/+(function ($) {+ "use strict";++ var Checklist = function (options) {+ this.init('checklist', options, Checklist.defaults);+ };++ $.fn.editableutils.inherit(Checklist, $.fn.editabletypes.list);++ $.extend(Checklist.prototype, {+ renderList: function() {+ var $label, $div;++ this.$tpl.empty();++ if(!$.isArray(this.sourceData)) {+ return;+ }++ for(var i=0; i<this.sourceData.length; i++) {+ $label = $('<label>').append($('<input>', {+ type: 'checkbox',+ value: this.sourceData[i].value+ }))+ .append($('<span>').text(' '+this.sourceData[i].text));++ $('<div>').append($label).appendTo(this.$tpl);+ }++ this.$input = this.$tpl.find('input[type="checkbox"]');+ this.setClass();+ },++ value2str: function(value) {+ return $.isArray(value) ? value.sort().join($.trim(this.options.separator)) : '';+ },++ //parse separated string+ str2value: function(str) {+ var reg, value = null;+ if(typeof str === 'string' && str.length) {+ reg = new RegExp('\\s*'+$.trim(this.options.separator)+'\\s*');+ value = str.split(reg);+ } else if($.isArray(str)) {+ value = str;+ } else {+ value = [str];+ }+ return value;+ },++ //set checked on required checkboxes+ value2input: function(value) {+ this.$input.prop('checked', false);+ if($.isArray(value) && value.length) {+ this.$input.each(function(i, el) {+ var $el = $(el);+ // cannot use $.inArray as it performs strict comparison+ $.each(value, function(j, val){+ /*jslint eqeq: true*/+ if($el.val() == val) {+ /*jslint eqeq: false*/+ $el.prop('checked', true);+ }+ });+ });+ }+ },++ input2value: function() {+ var checked = [];+ this.$input.filter(':checked').each(function(i, el) {+ checked.push($(el).val());+ });+ return checked;+ },++ //collect text of checked boxes+ value2htmlFinal: function(value, element) {+ var html = [],+ checked = $.fn.editableutils.itemsByValue(value, this.sourceData),+ escape = this.options.escape;++ if(checked.length) {+ $.each(checked, function(i, v) {+ var text = escape ? $.fn.editableutils.escape(v.text) : v.text;+ html.push(text);+ });+ $(element).html(html.join('<br>'));+ } else {+ $(element).empty();+ }+ },++ activate: function() {+ this.$input.first().focus();+ },++ autosubmit: function() {+ this.$input.on('keydown', function(e){+ if (e.which === 13) {+ $(this).closest('form').submit();+ }+ });+ }+ });++ Checklist.defaults = $.extend({}, $.fn.editabletypes.list.defaults, {+ /**+ @property tpl+ @default <div></div>+ **/+ tpl:'<div class="editable-checklist"></div>',++ /**+ @property inputclass+ @type string+ @default null+ **/+ inputclass: null,++ /**+ Separator of values when reading from `data-value` attribute++ @property separator+ @type string+ @default ','+ **/+ separator: ','+ });++ $.fn.editabletypes.checklist = Checklist;++}(window.jQuery));++/**+HTML5 input types.+Following types are supported:++* password+* url+* tel+* number+* range+* time++Learn more about html5 inputs:+http://www.w3.org/wiki/HTML5_form_additions+To check browser compatibility please see:+https://developer.mozilla.org/en-US/docs/HTML/Element/Input++@class html5types+@extends text+@final+@since 1.3.0+@example+<a href="#" id="email" data-type="email" data-pk="1">[email protected]</a>+<script>+$(function(){+ $('#email').editable({+ url: '/post',+ title: 'Enter email'+ });+});+</script>+**/++/**+@property tpl+@default depends on type+**/++/*+Password+*/+(function ($) {+ "use strict";++ var Password = function (options) {+ this.init('password', options, Password.defaults);+ };+ $.fn.editableutils.inherit(Password, $.fn.editabletypes.text);+ $.extend(Password.prototype, {+ //do not display password, show '[hidden]' instead+ value2html: function(value, element) {+ if(value) {+ $(element).text('[hidden]');+ } else {+ $(element).empty();+ }+ },+ //as password not displayed, should not set value by html+ html2value: function(html) {+ return null;+ }+ });+ Password.defaults = $.extend({}, $.fn.editabletypes.text.defaults, {+ tpl: '<input type="password">'+ });+ $.fn.editabletypes.password = Password;+}(window.jQuery));+++/*+*/+(function ($) {+ "use strict";++ var Email = function (options) {+ this.init('email', options, Email.defaults);+ };+ $.fn.editableutils.inherit(Email, $.fn.editabletypes.text);+ Email.defaults = $.extend({}, $.fn.editabletypes.text.defaults, {+ tpl: '<input type="email">'+ });+ $.fn.editabletypes.email = Email;+}(window.jQuery));+++/*+Url+*/+(function ($) {+ "use strict";++ var Url = function (options) {+ this.init('url', options, Url.defaults);+ };+ $.fn.editableutils.inherit(Url, $.fn.editabletypes.text);+ Url.defaults = $.extend({}, $.fn.editabletypes.text.defaults, {+ tpl: '<input type="url">'+ });+ $.fn.editabletypes.url = Url;+}(window.jQuery));+++/*+Tel+*/+(function ($) {+ "use strict";++ var Tel = function (options) {+ this.init('tel', options, Tel.defaults);+ };+ $.fn.editableutils.inherit(Tel, $.fn.editabletypes.text);+ Tel.defaults = $.extend({}, $.fn.editabletypes.text.defaults, {+ tpl: '<input type="tel">'+ });+ $.fn.editabletypes.tel = Tel;+}(window.jQuery));+++/*+Number+*/+(function ($) {+ "use strict";++ var NumberInput = function (options) {+ this.init('number', options, NumberInput.defaults);+ };+ $.fn.editableutils.inherit(NumberInput, $.fn.editabletypes.text);+ $.extend(NumberInput.prototype, {+ render: function () {+ NumberInput.superclass.render.call(this);+ this.setAttr('min');+ this.setAttr('max');+ this.setAttr('step');+ },+ postrender: function() {+ if(this.$clear) {+ //increase right ffset for up/down arrows+ this.$clear.css({right: 24});+ /*+ //can position clear button only here, when form is shown and height can be calculated+ var h = this.$input.outerHeight(true) || 20,+ delta = (h - this.$clear.height()) / 2;++ //add 12px to offset right for up/down arrows+ this.$clear.css({top: delta, right: delta + 16});+ */+ }+ }+ });+ NumberInput.defaults = $.extend({}, $.fn.editabletypes.text.defaults, {+ tpl: '<input type="number">',+ inputclass: 'input-mini',+ min: null,+ max: null,+ step: null+ });+ $.fn.editabletypes.number = NumberInput;+}(window.jQuery));+++/*+Range (inherit from number)+*/+(function ($) {+ "use strict";++ var Range = function (options) {+ this.init('range', options, Range.defaults);+ };+ $.fn.editableutils.inherit(Range, $.fn.editabletypes.number);+ $.extend(Range.prototype, {+ render: function () {+ this.$input = this.$tpl.filter('input');++ this.setClass();+ this.setAttr('min');+ this.setAttr('max');+ this.setAttr('step');++ this.$input.on('input', function(){+ $(this).siblings('output').text($(this).val());+ });+ },+ activate: function() {+ this.$input.focus();+ }+ });+ Range.defaults = $.extend({}, $.fn.editabletypes.number.defaults, {+ tpl: '<input type="range"><output style="width: 30px; display: inline-block"></output>',+ inputclass: 'input-medium'+ });+ $.fn.editabletypes.range = Range;+}(window.jQuery));++/*+Time+*/+(function ($) {+ "use strict";++ var Time = function (options) {+ this.init('time', options, Time.defaults);+ };+ //inherit from abstract, as inheritance from text gives selection error.+ $.fn.editableutils.inherit(Time, $.fn.editabletypes.abstractinput);+ $.extend(Time.prototype, {+ render: function() {+ this.setClass();+ }+ });+ Time.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ tpl: '<input type="time">'+ });+ $.fn.editabletypes.time = Time;+}(window.jQuery));++/**+Select2 input. Based on amazing work of Igor Vaynberg https://github.com/ivaynberg/select2.+Please see [original select2 docs](http://ivaynberg.github.com/select2) for detailed description and options.++You should manually download and include select2 distributive:++ <link href="select2/select2.css" rel="stylesheet" type="text/css"></link>+ <script src="select2/select2.js"></script>++To make it **bootstrap-styled** you can use css from [here](https://github.com/t0m/select2-bootstrap-css):++ <link href="select2-bootstrap.css" rel="stylesheet" type="text/css"></link>++**Note:** currently `autotext` feature does not work for select2 with `ajax` remote source.+You need initially put both `data-value` and element's text youself:++ <a href="#" data-type="select2" data-value="1">Text1</a>+++@class select2+@extends abstractinput+@since 1.4.1+@final+@example+<a href="#" id="country" data-type="select2" data-pk="1" data-value="ru" data-url="/post" data-title="Select country"></a>+<script>+$(function(){+ //local source+ $('#country').editable({+ source: [+ {id: 'gb', text: 'Great Britain'},+ {id: 'us', text: 'United States'},+ {id: 'ru', text: 'Russia'}+ ],+ select2: {+ multiple: true+ }+ });+ //remote source (simple)+ $('#country').editable({+ source: '/getCountries',+ select2: {+ placeholder: 'Select Country',+ minimumInputLength: 1+ }+ });+ //remote source (advanced)+ $('#country').editable({+ select2: {+ placeholder: 'Select Country',+ allowClear: true,+ minimumInputLength: 3,+ id: function (item) {+ return item.CountryId;+ },+ ajax: {+ url: '/getCountries',+ dataType: 'json',+ data: function (term, page) {+ return { query: term };+ },+ results: function (data, page) {+ return { results: data };+ }+ },+ formatResult: function (item) {+ return item.CountryName;+ },+ formatSelection: function (item) {+ return item.CountryName;+ },+ initSelection: function (element, callback) {+ return $.get('/getCountryById', { query: element.val() }, function (data) {+ callback(data);+ });+ }+ }+ });+});+</script>+**/+(function ($) {+ "use strict";++ var Constructor = function (options) {+ this.init('select2', options, Constructor.defaults);++ options.select2 = options.select2 || {};++ this.sourceData = null;++ //placeholder+ if(options.placeholder) {+ options.select2.placeholder = options.placeholder;+ }++ //if not `tags` mode, use source+ if(!options.select2.tags && options.source) {+ var source = options.source;+ //if source is function, call it (once!)+ if ($.isFunction(options.source)) {+ source = options.source.call(options.scope);+ }++ if (typeof source === 'string') {+ options.select2.ajax = options.select2.ajax || {};+ //some default ajax params+ if(!options.select2.ajax.data) {+ options.select2.ajax.data = function(term) {return { query:term };};+ }+ if(!options.select2.ajax.results) {+ options.select2.ajax.results = function(data) { return {results:data };};+ }+ options.select2.ajax.url = source;+ } else {+ //check format and convert x-editable format to select2 format (if needed)+ this.sourceData = this.convertSource(source);+ options.select2.data = this.sourceData;+ }+ }++ //overriding objects in config (as by default jQuery extend() is not recursive)+ this.options.select2 = $.extend({}, Constructor.defaults.select2, options.select2);++ //detect whether it is multi-valued+ this.isMultiple = this.options.select2.tags || this.options.select2.multiple;+ this.isRemote = ('ajax' in this.options.select2);++ //store function returning ID of item+ //should be here as used inautotext for local source+ this.idFunc = this.options.select2.id;+ if (typeof(this.idFunc) !== "function") {+ var idKey = this.idFunc || 'id';+ this.idFunc = function (e) { return e[idKey]; };+ }++ //store function that renders text in select2+ this.formatSelection = this.options.select2.formatSelection;+ if (typeof(this.formatSelection) !== "function") {+ this.formatSelection = function (e) { return e.text; };+ }+ };++ $.fn.editableutils.inherit(Constructor, $.fn.editabletypes.abstractinput);++ $.extend(Constructor.prototype, {+ render: function() {+ this.setClass();++ //can not apply select2 here as it calls initSelection+ //over input that does not have correct value yet.+ //apply select2 only in value2input+ //this.$input.select2(this.options.select2);++ //when data is loaded via ajax, we need to know when it's done to populate listData+ if(this.isRemote) {+ //listen to loaded event to populate data+ this.$input.on('select2-loaded', $.proxy(function(e) {+ this.sourceData = e.items.results;+ }, this));+ }++ //trigger resize of editableform to re-position container in multi-valued mode+ if(this.isMultiple) {+ this.$input.on('change', function() {+ $(this).closest('form').parent().triggerHandler('resize');+ });+ }+ },++ value2html: function(value, element) {+ var text = '', data,+ that = this;++ if(this.options.select2.tags) { //in tags mode just assign value+ data = value;+ //data = $.fn.editableutils.itemsByValue(value, this.options.select2.tags, this.idFunc);+ } else if(this.sourceData) {+ data = $.fn.editableutils.itemsByValue(value, this.sourceData, this.idFunc);+ } else {+ //can not get list of possible values+ //(e.g. autotext for select2 with ajax source)+ }++ //data may be array (when multiple values allowed)+ if($.isArray(data)) {+ //collect selected data and show with separator+ text = [];+ $.each(data, function(k, v){+ text.push(v && typeof v === 'object' ? that.formatSelection(v) : v);+ });+ } else if(data) {+ text = that.formatSelection(data);+ }++ text = $.isArray(text) ? text.join(this.options.viewseparator) : text;++ //$(element).text(text);+ Constructor.superclass.value2html.call(this, text, element);+ },++ html2value: function(html) {+ return this.options.select2.tags ? this.str2value(html, this.options.viewseparator) : null;+ },++ value2input: function(value) {+ // if value array => join it anyway+ if($.isArray(value)) {+ value = value.join(this.getSeparator());+ }++ //for remote source just set value, text is updated by initSelection+ if(!this.$input.data('select2')) {+ this.$input.val(value);+ this.$input.select2(this.options.select2);+ } else {+ //second argument needed to separate initial change from user's click (for autosubmit)+ this.$input.val(value).trigger('change', true);++ //Uncaught Error: cannot call val() if initSelection() is not defined+ //this.$input.select2('val', value);+ }++ // if defined remote source AND no multiple mode AND no user's initSelection provided -->+ // we should somehow get text for provided id.+ // The solution is to use element's text as text for that id (exclude empty)+ if(this.isRemote && !this.isMultiple && !this.options.select2.initSelection) {+ // customId and customText are methods to extract `id` and `text` from data object+ // we can use this workaround only if user did not define these methods+ // otherwise we cant construct data object+ var customId = this.options.select2.id,+ customText = this.options.select2.formatSelection;++ if(!customId && !customText) {+ var $el = $(this.options.scope);+ if (!$el.data('editable').isEmpty) {+ var data = {id: value, text: $el.text()};+ this.$input.select2('data', data);+ }+ }+ }+ },++ input2value: function() {+ return this.$input.select2('val');+ },++ str2value: function(str, separator) {+ if(typeof str !== 'string' || !this.isMultiple) {+ return str;+ }++ separator = separator || this.getSeparator();++ var val, i, l;++ if (str === null || str.length < 1) {+ return null;+ }+ val = str.split(separator);+ for (i = 0, l = val.length; i < l; i = i + 1) {+ val[i] = $.trim(val[i]);+ }++ return val;+ },++ autosubmit: function() {+ this.$input.on('change', function(e, isInitial){+ if(!isInitial) {+ $(this).closest('form').submit();+ }+ });+ },++ getSeparator: function() {+ return this.options.select2.separator || $.fn.select2.defaults.separator;+ },++ /*+ Converts source from x-editable format: {value: 1, text: "1"} to+ select2 format: {id: 1, text: "1"}+ */+ convertSource: function(source) {+ if($.isArray(source) && source.length && source[0].value !== undefined) {+ for(var i = 0; i<source.length; i++) {+ if(source[i].value !== undefined) {+ source[i].id = source[i].value;+ delete source[i].value;+ }+ }+ }+ return source;+ },++ destroy: function() {+ if(this.$input.data('select2')) {+ this.$input.select2('destroy');+ }+ }++ });++ Constructor.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ @property tpl+ @default <input type="hidden">+ **/+ tpl:'<input type="hidden">',+ /**+ Configuration of select2. [Full list of options](http://ivaynberg.github.com/select2).++ @property select2+ @type object+ @default null+ **/+ select2: null,+ /**+ Placeholder attribute of select++ @property placeholder+ @type string+ @default null+ **/+ placeholder: null,+ /**+ Source data for select. It will be assigned to select2 `data` property and kept here just for convenience.+ Please note, that format is different from simple `select` input: use 'id' instead of 'value'.+ E.g. `[{id: 1, text: "text1"}, {id: 2, text: "text2"}, ...]`.++ @property source+ @type array|string|function+ @default null+ **/+ source: null,+ /**+ Separator used to display tags.++ @property viewseparator+ @type string+ @default ', '+ **/+ viewseparator: ', '+ });++ $.fn.editabletypes.select2 = Constructor;++}(window.jQuery));++/**+* Combodate - 1.0.5+* Dropdown date and time picker.+* Converts text input into dropdowns to pick day, month, year, hour, minute and second.+* Uses momentjs as datetime library http://momentjs.com.+* For i18n include corresponding file from https://github.com/timrwood/moment/tree/master/lang+*+* Confusion at noon and midnight - see http://en.wikipedia.org/wiki/12-hour_clock#Confusion_at_noon_and_midnight+* In combodate:+* 12:00 pm --> 12:00 (24-h format, midday)+* 12:00 am --> 00:00 (24-h format, midnight, start of day)+*+* Differs from momentjs parse rules:+* 00:00 pm, 12:00 pm --> 12:00 (24-h format, day not change)+* 00:00 am, 12:00 am --> 00:00 (24-h format, day not change)+*+*+* Author: Vitaliy Potapov+* Project page: http://github.com/vitalets/combodate+* Copyright (c) 2012 Vitaliy Potapov. Released under MIT License.+**/+(function ($) {++ var Combodate = function (element, options) {+ this.$element = $(element);+ if(!this.$element.is('input')) {+ $.error('Combodate should be applied to INPUT element');+ return;+ }+ this.options = $.extend({}, $.fn.combodate.defaults, options, this.$element.data());+ this.init();+ };++ Combodate.prototype = {+ constructor: Combodate,+ init: function () {+ this.map = {+ //key regexp moment.method+ day: ['D', 'date'],+ month: ['M', 'month'],+ year: ['Y', 'year'],+ hour: ['[Hh]', 'hours'],+ minute: ['m', 'minutes'],+ second: ['s', 'seconds'],+ ampm: ['[Aa]', '']+ };++ this.$widget = $('<span class="combodate"></span>').html(this.getTemplate());++ this.initCombos();++ //update original input on change+ this.$widget.on('change', 'select', $.proxy(function(e) {+ this.$element.val(this.getValue()).change();+ // update days count if month or year changes+ if (this.options.smartDays) {+ if ($(e.target).is('.month') || $(e.target).is('.year')) {+ this.fillCombo('day');+ }+ }+ }, this));++ this.$widget.find('select').css('width', 'auto');++ // hide original input and insert widget+ this.$element.hide().after(this.$widget);++ // set initial value+ this.setValue(this.$element.val() || this.options.value);+ },++ /*+ Replace tokens in template with <select> elements+ */+ getTemplate: function() {+ var tpl = this.options.template;++ //first pass+ $.each(this.map, function(k, v) {+ v = v[0];+ var r = new RegExp(v+'+'),+ token = v.length > 1 ? v.substring(1, 2) : v;++ tpl = tpl.replace(r, '{'+token+'}');+ });++ //replace spaces with + tpl = tpl.replace(/ /g, ' ');++ //second pass+ $.each(this.map, function(k, v) {+ v = v[0];+ var token = v.length > 1 ? v.substring(1, 2) : v;++ tpl = tpl.replace('{'+token+'}', '<select class="'+k+'"></select>');+ });++ return tpl;+ },++ /*+ Initialize combos that presents in template+ */+ initCombos: function() {+ for (var k in this.map) {+ var $c = this.$widget.find('.'+k);+ // set properties like this.$day, this.$month etc.+ this['$'+k] = $c.length ? $c : null;+ // fill with items+ this.fillCombo(k);+ }+ },++ /*+ Fill combo with items+ */+ fillCombo: function(k) {+ var $combo = this['$'+k];+ if (!$combo) {+ return;+ }++ // define method name to fill items, e.g `fillDays`+ var f = 'fill' + k.charAt(0).toUpperCase() + k.slice(1);+ var items = this[f]();+ var value = $combo.val();++ $combo.empty();+ for(var i=0; i<items.length; i++) {+ $combo.append('<option value="'+items[i][0]+'">'+items[i][1]+'</option>');+ }++ $combo.val(value);+ },++ /*+ Initialize items of combos. Handles `firstItem` option+ */+ fillCommon: function(key) {+ var values = [],+ relTime;++ if(this.options.firstItem === 'name') {+ //need both to support moment ver < 2 and >= 2+ relTime = moment.relativeTime || moment.langData()._relativeTime;+ var header = typeof relTime[key] === 'function' ? relTime[key](1, true, key, false) : relTime[key];+ //take last entry (see momentjs lang files structure)+ header = header.split(' ').reverse()[0];+ values.push(['', header]);+ } else if(this.options.firstItem === 'empty') {+ values.push(['', '']);+ }+ return values;+ },+++ /*+ fill day+ */+ fillDay: function() {+ var items = this.fillCommon('d'), name, i,+ twoDigit = this.options.template.indexOf('DD') !== -1,+ daysCount = 31;++ // detect days count (depends on month and year)+ // originally https://github.com/vitalets/combodate/pull/7+ if (this.options.smartDays && this.$month && this.$year) {+ var month = parseInt(this.$month.val(), 10);+ var year = parseInt(this.$year.val(), 10);++ if (!isNaN(month) && !isNaN(year)) {+ daysCount = moment([year, month]).daysInMonth();+ }+ }++ for (i = 1; i <= daysCount; i++) {+ name = twoDigit ? this.leadZero(i) : i;+ items.push([i, name]);+ }+ return items;+ },++ /*+ fill month+ */+ fillMonth: function() {+ var items = this.fillCommon('M'), name, i,+ longNames = this.options.template.indexOf('MMMM') !== -1,+ shortNames = this.options.template.indexOf('MMM') !== -1,+ twoDigit = this.options.template.indexOf('MM') !== -1;++ for(i=0; i<=11; i++) {+ if(longNames) {+ //see https://github.com/timrwood/momentjs.com/pull/36+ name = moment().date(1).month(i).format('MMMM');+ } else if(shortNames) {+ name = moment().date(1).month(i).format('MMM');+ } else if(twoDigit) {+ name = this.leadZero(i+1);+ } else {+ name = i+1;+ }+ items.push([i, name]);+ }+ return items;+ },++ /*+ fill year+ */+ fillYear: function() {+ var items = [], name, i,+ longNames = this.options.template.indexOf('YYYY') !== -1;++ for(i=this.options.maxYear; i>=this.options.minYear; i--) {+ name = longNames ? i : (i+'').substring(2);+ items[this.options.yearDescending ? 'push' : 'unshift']([i, name]);+ }++ items = this.fillCommon('y').concat(items);++ return items;+ },++ /*+ fill hour+ */+ fillHour: function() {+ var items = this.fillCommon('h'), name, i,+ h12 = this.options.template.indexOf('h') !== -1,+ h24 = this.options.template.indexOf('H') !== -1,+ twoDigit = this.options.template.toLowerCase().indexOf('hh') !== -1,+ min = h12 ? 1 : 0,+ max = h12 ? 12 : 23;++ for(i=min; i<=max; i++) {+ name = twoDigit ? this.leadZero(i) : i;+ items.push([i, name]);+ }+ return items;+ },++ /*+ fill minute+ */+ fillMinute: function() {+ var items = this.fillCommon('m'), name, i,+ twoDigit = this.options.template.indexOf('mm') !== -1;++ for(i=0; i<=59; i+= this.options.minuteStep) {+ name = twoDigit ? this.leadZero(i) : i;+ items.push([i, name]);+ }+ return items;+ },++ /*+ fill second+ */+ fillSecond: function() {+ var items = this.fillCommon('s'), name, i,+ twoDigit = this.options.template.indexOf('ss') !== -1;++ for(i=0; i<=59; i+= this.options.secondStep) {+ name = twoDigit ? this.leadZero(i) : i;+ items.push([i, name]);+ }+ return items;+ },++ /*+ fill ampm+ */+ fillAmpm: function() {+ var ampmL = this.options.template.indexOf('a') !== -1,+ ampmU = this.options.template.indexOf('A') !== -1,+ items = [+ ['am', ampmL ? 'am' : 'AM'],+ ['pm', ampmL ? 'pm' : 'PM']+ ];+ return items;+ },++ /*+ Returns current date value from combos.+ If format not specified - `options.format` used.+ If format = `null` - Moment object returned.+ */+ getValue: function(format) {+ var dt, values = {},+ that = this,+ notSelected = false;++ //getting selected values+ $.each(this.map, function(k, v) {+ if(k === 'ampm') {+ return;+ }+ var def = k === 'day' ? 1 : 0;++ values[k] = that['$'+k] ? parseInt(that['$'+k].val(), 10) : def;++ if(isNaN(values[k])) {+ notSelected = true;+ return false;+ }+ });++ //if at least one visible combo not selected - return empty string+ if(notSelected) {+ return '';+ }++ //convert hours 12h --> 24h+ if(this.$ampm) {+ //12:00 pm --> 12:00 (24-h format, midday), 12:00 am --> 00:00 (24-h format, midnight, start of day)+ if(values.hour === 12) {+ values.hour = this.$ampm.val() === 'am' ? 0 : 12;+ } else {+ values.hour = this.$ampm.val() === 'am' ? values.hour : values.hour+12;+ }+ }++ dt = moment([values.year, values.month, values.day, values.hour, values.minute, values.second]);++ //highlight invalid date+ this.highlight(dt);++ format = format === undefined ? this.options.format : format;+ if(format === null) {+ return dt.isValid() ? dt : null;+ } else {+ return dt.isValid() ? dt.format(format) : '';+ }+ },++ setValue: function(value) {+ if(!value) {+ return;+ }++ var dt = typeof value === 'string' ? moment(value, this.options.format) : moment(value),+ that = this,+ values = {};++ //function to find nearest value in select options+ function getNearest($select, value) {+ var delta = {};+ $select.children('option').each(function(i, opt){+ var optValue = $(opt).attr('value'),+ distance;++ if(optValue === '') return;+ distance = Math.abs(optValue - value);+ if(typeof delta.distance === 'undefined' || distance < delta.distance) {+ delta = {value: optValue, distance: distance};+ }+ });+ return delta.value;+ }++ if(dt.isValid()) {+ //read values from date object+ $.each(this.map, function(k, v) {+ if(k === 'ampm') {+ return;+ }+ values[k] = dt[v[1]]();+ });++ if(this.$ampm) {+ //12:00 pm --> 12:00 (24-h format, midday), 12:00 am --> 00:00 (24-h format, midnight, start of day)+ if(values.hour >= 12) {+ values.ampm = 'pm';+ if(values.hour > 12) {+ values.hour -= 12;+ }+ } else {+ values.ampm = 'am';+ if(values.hour === 0) {+ values.hour = 12;+ }+ }+ }++ $.each(values, function(k, v) {+ //call val() for each existing combo, e.g. this.$hour.val()+ if(that['$'+k]) {++ if(k === 'minute' && that.options.minuteStep > 1 && that.options.roundTime) {+ v = getNearest(that['$'+k], v);+ }++ if(k === 'second' && that.options.secondStep > 1 && that.options.roundTime) {+ v = getNearest(that['$'+k], v);+ }++ that['$'+k].val(v);+ }+ });++ // update days count+ if (this.options.smartDays) {+ this.fillCombo('day');+ }++ this.$element.val(dt.format(this.options.format)).change();+ }+ },++ /*+ highlight combos if date is invalid+ */+ highlight: function(dt) {+ if(!dt.isValid()) {+ if(this.options.errorClass) {+ this.$widget.addClass(this.options.errorClass);+ } else {+ //store original border color+ if(!this.borderColor) {+ this.borderColor = this.$widget.find('select').css('border-color');+ }+ this.$widget.find('select').css('border-color', 'red');+ }+ } else {+ if(this.options.errorClass) {+ this.$widget.removeClass(this.options.errorClass);+ } else {+ this.$widget.find('select').css('border-color', this.borderColor);+ }+ }+ },++ leadZero: function(v) {+ return v <= 9 ? '0' + v : v;+ },++ destroy: function() {+ this.$widget.remove();+ this.$element.removeData('combodate').show();+ }++ //todo: clear method+ };++ $.fn.combodate = function ( option ) {+ var d, args = Array.apply(null, arguments);+ args.shift();++ //getValue returns date as string / object (not jQuery object)+ if(option === 'getValue' && this.length && (d = this.eq(0).data('combodate'))) {+ return d.getValue.apply(d, args);+ }++ return this.each(function () {+ var $this = $(this),+ data = $this.data('combodate'),+ options = typeof option == 'object' && option;+ if (!data) {+ $this.data('combodate', (data = new Combodate(this, options)));+ }+ if (typeof option == 'string' && typeof data[option] == 'function') {+ data[option].apply(data, args);+ }+ });+ };++ $.fn.combodate.defaults = {+ //in this format value stored in original input+ format: 'DD-MM-YYYY HH:mm',+ //in this format items in dropdowns are displayed+ template: 'D / MMM / YYYY H : mm',+ //initial value, can be `new Date()`+ value: null,+ minYear: 1970,+ maxYear: 2015,+ yearDescending: true,+ minuteStep: 5,+ secondStep: 1,+ firstItem: 'empty', //'name', 'empty', 'none'+ errorClass: null,+ roundTime: true, // whether to round minutes and seconds if step > 1+ smartDays: false // whether days in combo depend on selected month: 31, 30, 28+ };++}(window.jQuery));+/**+Combodate input - dropdown date and time picker.+Based on [combodate](http://vitalets.github.com/combodate) plugin (included). To use it you should manually include [momentjs](http://momentjs.com).++ <script src="js/moment.min.js"></script>++Allows to input:++* only date+* only time+* both date and time++Please note, that format is taken from momentjs and **not compatible** with bootstrap-datepicker / jquery UI datepicker.+Internally value stored as `momentjs` object.++@class combodate+@extends abstractinput+@final+@since 1.4.0+@example+<a href="#" id="dob" data-type="combodate" data-pk="1" data-url="/post" data-value="1984-05-15" data-title="Select date"></a>+<script>+$(function(){+ $('#dob').editable({+ format: 'YYYY-MM-DD',+ viewformat: 'DD.MM.YYYY',+ template: 'D / MMMM / YYYY',+ combodate: {+ minYear: 2000,+ maxYear: 2015,+ minuteStep: 1+ }+ }+ });+});+</script>+**/++/*global moment*/++(function ($) {+ "use strict";++ var Constructor = function (options) {+ this.init('combodate', options, Constructor.defaults);++ //by default viewformat equals to format+ if(!this.options.viewformat) {+ this.options.viewformat = this.options.format;+ }++ //try parse combodate config defined as json string in data-combodate+ options.combodate = $.fn.editableutils.tryParseJson(options.combodate, true);++ //overriding combodate config (as by default jQuery extend() is not recursive)+ this.options.combodate = $.extend({}, Constructor.defaults.combodate, options.combodate, {+ format: this.options.format,+ template: this.options.template+ });+ };++ $.fn.editableutils.inherit(Constructor, $.fn.editabletypes.abstractinput);++ $.extend(Constructor.prototype, {+ render: function () {+ this.$input.combodate(this.options.combodate);++ if($.fn.editableform.engine === 'bs3') {+ this.$input.siblings().find('select').addClass('form-control');+ }++ if(this.options.inputclass) {+ this.$input.siblings().find('select').addClass(this.options.inputclass);+ }+ //"clear" link+ /*+ if(this.options.clear) {+ this.$clear = $('<a href="#"></a>').html(this.options.clear).click($.proxy(function(e){+ e.preventDefault();+ e.stopPropagation();+ this.clear();+ }, this));++ this.$tpl.parent().append($('<div class="editable-clear">').append(this.$clear));+ }+ */+ },++ value2html: function(value, element) {+ var text = value ? value.format(this.options.viewformat) : '';+ //$(element).text(text);+ Constructor.superclass.value2html.call(this, text, element);+ },++ html2value: function(html) {+ return html ? moment(html, this.options.viewformat) : null;+ },++ value2str: function(value) {+ return value ? value.format(this.options.format) : '';+ },++ str2value: function(str) {+ return str ? moment(str, this.options.format) : null;+ },++ value2submit: function(value) {+ return this.value2str(value);+ },++ value2input: function(value) {+ this.$input.combodate('setValue', value);+ },++ input2value: function() {+ return this.$input.combodate('getValue', null);+ },++ activate: function() {+ this.$input.siblings('.combodate').find('select').eq(0).focus();+ },++ /*+ clear: function() {+ this.$input.data('datepicker').date = null;+ this.$input.find('.active').removeClass('active');+ },+ */++ autosubmit: function() {++ }++ });++ Constructor.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ @property tpl+ @default <input type="text">+ **/+ tpl:'<input type="text">',+ /**+ @property inputclass+ @default null+ **/+ inputclass: null,+ /**+ Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>+ See list of tokens in [momentjs docs](http://momentjs.com/docs/#/parsing/string-format)++ @property format+ @type string+ @default YYYY-MM-DD+ **/+ format:'YYYY-MM-DD',+ /**+ Format used for displaying date. Also applied when converting date from element's text on init.+ If not specified equals to `format`.++ @property viewformat+ @type string+ @default null+ **/+ viewformat: null,+ /**+ Template used for displaying dropdowns.++ @property template+ @type string+ @default D / MMM / YYYY+ **/+ template: 'D / MMM / YYYY',+ /**+ Configuration of combodate.+ Full list of options: http://vitalets.github.com/combodate/#docs++ @property combodate+ @type object+ @default null+ **/+ combodate: null++ /*+ (not implemented yet)+ Text shown as clear date button.+ If <code>false</code> clear button will not be rendered.++ @property clear+ @type boolean|string+ @default 'x clear'+ */+ //clear: '× clear'+ });++ $.fn.editabletypes.combodate = Constructor;++}(window.jQuery));++/*+Editableform based on Twitter Bootstrap 3+*/+(function ($) {+ "use strict";++ //store parent methods+ var pInitInput = $.fn.editableform.Constructor.prototype.initInput;++ $.extend($.fn.editableform.Constructor.prototype, {+ initTemplate: function() {+ this.$form = $($.fn.editableform.template);+ this.$form.find('.control-group').addClass('form-group');+ this.$form.find('.editable-error-block').addClass('help-block');+ },+ initInput: function() {+ pInitInput.apply(this);++ //for bs3 set default class `input-sm` to standard inputs+ var emptyInputClass = this.input.options.inputclass === null || this.input.options.inputclass === false;+ var defaultClass = 'input-sm';++ //bs3 add `form-control` class to standard inputs+ var stdtypes = 'text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs'.split(',');+ if(~$.inArray(this.input.type, stdtypes)) {+ this.input.$input.addClass('form-control');+ if(emptyInputClass) {+ this.input.options.inputclass = defaultClass;+ this.input.$input.addClass(defaultClass);+ }+ }++ //apply bs3 size class also to buttons (to fit size of control)+ var $btn = this.$form.find('.editable-buttons');+ var classes = emptyInputClass ? [defaultClass] : this.input.options.inputclass.split(' ');+ for(var i=0; i<classes.length; i++) {+ // `btn-sm` is default now+ /*+ if(classes[i].toLowerCase() === 'input-sm') {+ $btn.find('button').addClass('btn-sm');+ }+ */+ if(classes[i].toLowerCase() === 'input-lg') {+ $btn.find('button').removeClass('btn-sm').addClass('btn-lg');+ }+ }+ }+ });++ //buttons+ $.fn.editableform.buttons =+ '<button type="submit" class="btn btn-primary btn-sm editable-submit">'++ '<i class="glyphicon glyphicon-ok"></i>'++ '</button>'++ '<button type="button" class="btn btn-default btn-sm editable-cancel">'++ '<i class="glyphicon glyphicon-remove"></i>'++ '</button>';++ //error classes+ $.fn.editableform.errorGroupClass = 'has-error';+ $.fn.editableform.errorBlockClass = null;+ //engine+ $.fn.editableform.engine = 'bs3';+}(window.jQuery));+/**+* Editable Popover3 (for Bootstrap 3)+* ---------------------+* requires bootstrap-popover.js+*/+(function ($) {+ "use strict";++ //extend methods+ $.extend($.fn.editableContainer.Popup.prototype, {+ containerName: 'popover',+ containerDataName: 'bs.popover',+ innerCss: '.popover-content',+ defaults: $.fn.popover.Constructor.DEFAULTS,++ initContainer: function(){+ $.extend(this.containerOptions, {+ trigger: 'manual',+ selector: false,+ content: ' ',+ template: this.defaults.template+ });++ //as template property is used in inputs, hide it from popover+ var t;+ if(this.$element.data('template')) {+ t = this.$element.data('template');+ this.$element.removeData('template');+ }++ this.call(this.containerOptions);++ if(t) {+ //restore data('template')+ this.$element.data('template', t);+ }+ },++ /* show */+ innerShow: function () {+ this.call('show');+ },++ /* hide */+ innerHide: function () {+ this.call('hide');+ },++ /* destroy */+ innerDestroy: function() {+ this.call('destroy');+ },++ setContainerOption: function(key, value) {+ this.container().options[key] = value;+ },++ /**+ * move popover to new position. This function mainly copied from bootstrap-popover.+ */+ /*jshint laxcomma: true, eqeqeq: false*/+ setPosition: function () {++ (function() {+ /*+ var $tip = this.tip()+ , inside+ , pos+ , actualWidth+ , actualHeight+ , placement+ , tp+ , tpt+ , tpb+ , tpl+ , tpr;++ placement = typeof this.options.placement === 'function' ?+ this.options.placement.call(this, $tip[0], this.$element[0]) :+ this.options.placement;++ inside = /in/.test(placement);++ $tip+ // .detach()+ //vitalets: remove any placement class because otherwise they dont influence on re-positioning of visible popover+ .removeClass('top right bottom left')+ .css({ top: 0, left: 0, display: 'block' });+ // .insertAfter(this.$element);++ pos = this.getPosition(inside);++ actualWidth = $tip[0].offsetWidth;+ actualHeight = $tip[0].offsetHeight;++ placement = inside ? placement.split(' ')[1] : placement;++ tpb = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2};+ tpt = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2};+ tpl = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth};+ tpr = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width};++ switch (placement) {+ case 'bottom':+ if ((tpb.top + actualHeight) > ($(window).scrollTop() + $(window).height())) {+ if (tpt.top > $(window).scrollTop()) {+ placement = 'top';+ } else if ((tpr.left + actualWidth) < ($(window).scrollLeft() + $(window).width())) {+ placement = 'right';+ } else if (tpl.left > $(window).scrollLeft()) {+ placement = 'left';+ } else {+ placement = 'right';+ }+ }+ break;+ case 'top':+ if (tpt.top < $(window).scrollTop()) {+ if ((tpb.top + actualHeight) < ($(window).scrollTop() + $(window).height())) {+ placement = 'bottom';+ } else if ((tpr.left + actualWidth) < ($(window).scrollLeft() + $(window).width())) {+ placement = 'right';+ } else if (tpl.left > $(window).scrollLeft()) {+ placement = 'left';+ } else {+ placement = 'right';+ }+ }+ break;+ case 'left':+ if (tpl.left < $(window).scrollLeft()) {+ if ((tpr.left + actualWidth) < ($(window).scrollLeft() + $(window).width())) {+ placement = 'right';+ } else if (tpt.top > $(window).scrollTop()) {+ placement = 'top';+ } else if (tpt.top > $(window).scrollTop()) {+ placement = 'bottom';+ } else {+ placement = 'right';+ }+ }+ break;+ case 'right':+ if ((tpr.left + actualWidth) > ($(window).scrollLeft() + $(window).width())) {+ if (tpl.left > $(window).scrollLeft()) {+ placement = 'left';+ } else if (tpt.top > $(window).scrollTop()) {+ placement = 'top';+ } else if (tpt.top > $(window).scrollTop()) {+ placement = 'bottom';+ }+ }+ break;+ }++ switch (placement) {+ case 'bottom':+ tp = tpb;+ break;+ case 'top':+ tp = tpt;+ break;+ case 'left':+ tp = tpl;+ break;+ case 'right':+ tp = tpr;+ break;+ }++ $tip+ .offset(tp)+ .addClass(placement)+ .addClass('in');+ */+++ var $tip = this.tip();++ var placement = typeof this.options.placement == 'function' ?+ this.options.placement.call(this, $tip[0], this.$element[0]) :+ this.options.placement;++ var autoToken = /\s?auto?\s?/i;+ var autoPlace = autoToken.test(placement);+ if (autoPlace) {+ placement = placement.replace(autoToken, '') || 'top';+ }+++ var pos = this.getPosition();+ var actualWidth = $tip[0].offsetWidth;+ var actualHeight = $tip[0].offsetHeight;++ if (autoPlace) {+ var $parent = this.$element.parent();++ var orgPlacement = placement;+ var docScroll = document.documentElement.scrollTop || document.body.scrollTop;+ var parentWidth = this.options.container == 'body' ? window.innerWidth : $parent.outerWidth();+ var parentHeight = this.options.container == 'body' ? window.innerHeight : $parent.outerHeight();+ var parentLeft = this.options.container == 'body' ? 0 : $parent.offset().left;++ placement = placement == 'bottom' && pos.top + pos.height + actualHeight - docScroll > parentHeight ? 'top' :+ placement == 'top' && pos.top - docScroll - actualHeight < 0 ? 'bottom' :+ placement == 'right' && pos.right + actualWidth > parentWidth ? 'left' :+ placement == 'left' && pos.left - actualWidth < parentLeft ? 'right' :+ placement;++ $tip+ .removeClass(orgPlacement)+ .addClass(placement);+ }+++ var calculatedOffset = this.getCalculatedOffset(placement, pos, actualWidth, actualHeight);++ this.applyPlacement(calculatedOffset, placement);+++ }).call(this.container());+ /*jshint laxcomma: false, eqeqeq: true*/+ }+ });++}(window.jQuery));++/* =========================================================+ * bootstrap-datepicker.js+ * http://www.eyecon.ro/bootstrap-datepicker+ * =========================================================+ * Copyright 2012 Stefan Petre+ * Improvements by Andrew Rowls+ *+ * 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.+ * ========================================================= */++(function( $ ) {++ function UTCDate(){+ return new Date(Date.UTC.apply(Date, arguments));+ }+ function UTCToday(){+ var today = new Date();+ return UTCDate(today.getUTCFullYear(), today.getUTCMonth(), today.getUTCDate());+ }++ // Picker object++ var Datepicker = function(element, options) {+ var that = this;++ this._process_options(options);++ this.element = $(element);+ this.isInline = false;+ this.isInput = this.element.is('input');+ this.component = this.element.is('.date') ? this.element.find('.add-on, .btn') : false;+ this.hasInput = this.component && this.element.find('input').length;+ if(this.component && this.component.length === 0)+ this.component = false;++ this.picker = $(DPGlobal.template);+ this._buildEvents();+ this._attachEvents();++ if(this.isInline) {+ this.picker.addClass('datepicker-inline').appendTo(this.element);+ } else {+ this.picker.addClass('datepicker-dropdown dropdown-menu');+ }++ if (this.o.rtl){+ this.picker.addClass('datepicker-rtl');+ this.picker.find('.prev i, .next i')+ .toggleClass('icon-arrow-left icon-arrow-right');+ }+++ this.viewMode = this.o.startView;++ if (this.o.calendarWeeks)+ this.picker.find('tfoot th.today')+ .attr('colspan', function(i, val){+ return parseInt(val) + 1;+ });++ this._allow_update = false;++ this.setStartDate(this.o.startDate);+ this.setEndDate(this.o.endDate);+ this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);++ this.fillDow();+ this.fillMonths();++ this._allow_update = true;++ this.update();+ this.showMode();++ if(this.isInline) {+ this.show();+ }+ };++ Datepicker.prototype = {+ constructor: Datepicker,++ _process_options: function(opts){+ // Store raw options for reference+ this._o = $.extend({}, this._o, opts);+ // Processed options+ var o = this.o = $.extend({}, this._o);++ // Check if "de-DE" style date is available, if not language should+ // fallback to 2 letter code eg "de"+ var lang = o.language;+ if (!dates[lang]) {+ lang = lang.split('-')[0];+ if (!dates[lang])+ lang = defaults.language;+ }+ o.language = lang;++ switch(o.startView){+ case 2:+ case 'decade':+ o.startView = 2;+ break;+ case 1:+ case 'year':+ o.startView = 1;+ break;+ default:+ o.startView = 0;+ }++ switch (o.minViewMode) {+ case 1:+ case 'months':+ o.minViewMode = 1;+ break;+ case 2:+ case 'years':+ o.minViewMode = 2;+ break;+ default:+ o.minViewMode = 0;+ }++ o.startView = Math.max(o.startView, o.minViewMode);++ o.weekStart %= 7;+ o.weekEnd = ((o.weekStart + 6) % 7);++ var format = DPGlobal.parseFormat(o.format)+ if (o.startDate !== -Infinity) {+ o.startDate = DPGlobal.parseDate(o.startDate, format, o.language);+ }+ if (o.endDate !== Infinity) {+ o.endDate = DPGlobal.parseDate(o.endDate, format, o.language);+ }++ o.daysOfWeekDisabled = o.daysOfWeekDisabled||[];+ if (!$.isArray(o.daysOfWeekDisabled))+ o.daysOfWeekDisabled = o.daysOfWeekDisabled.split(/[,\s]*/);+ o.daysOfWeekDisabled = $.map(o.daysOfWeekDisabled, function (d) {+ return parseInt(d, 10);+ });+ },+ _events: [],+ _secondaryEvents: [],+ _applyEvents: function(evs){+ for (var i=0, el, ev; i<evs.length; i++){+ el = evs[i][0];+ ev = evs[i][1];+ el.on(ev);+ }+ },+ _unapplyEvents: function(evs){+ for (var i=0, el, ev; i<evs.length; i++){+ el = evs[i][0];+ ev = evs[i][1];+ el.off(ev);+ }+ },+ _buildEvents: function(){+ if (this.isInput) { // single input+ this._events = [+ [this.element, {+ focus: $.proxy(this.show, this),+ keyup: $.proxy(this.update, this),+ keydown: $.proxy(this.keydown, this)+ }]+ ];+ }+ else if (this.component && this.hasInput){ // component: input + button+ this._events = [+ // For components that are not readonly, allow keyboard nav+ [this.element.find('input'), {+ focus: $.proxy(this.show, this),+ keyup: $.proxy(this.update, this),+ keydown: $.proxy(this.keydown, this)+ }],+ [this.component, {+ click: $.proxy(this.show, this)+ }]+ ];+ }+ else if (this.element.is('div')) { // inline datepicker+ this.isInline = true;+ }+ else {+ this._events = [+ [this.element, {+ click: $.proxy(this.show, this)+ }]+ ];+ }++ this._secondaryEvents = [+ [this.picker, {+ click: $.proxy(this.click, this)+ }],+ [$(window), {+ resize: $.proxy(this.place, this)+ }],+ [$(document), {+ mousedown: $.proxy(function (e) {+ // Clicked outside the datepicker, hide it+ if (!(+ this.element.is(e.target) ||+ this.element.find(e.target).size() ||+ this.picker.is(e.target) ||+ this.picker.find(e.target).size()+ )) {+ this.hide();+ }+ }, this)+ }]+ ];+ },+ _attachEvents: function(){+ this._detachEvents();+ this._applyEvents(this._events);+ },+ _detachEvents: function(){+ this._unapplyEvents(this._events);+ },+ _attachSecondaryEvents: function(){+ this._detachSecondaryEvents();+ this._applyEvents(this._secondaryEvents);+ },+ _detachSecondaryEvents: function(){+ this._unapplyEvents(this._secondaryEvents);+ },+ _trigger: function(event, altdate){+ var date = altdate || this.date,+ local_date = new Date(date.getTime() + (date.getTimezoneOffset()*60000));++ this.element.trigger({+ type: event,+ date: local_date,+ format: $.proxy(function(altformat){+ var format = altformat || this.o.format;+ return DPGlobal.formatDate(date, format, this.o.language);+ }, this)+ });+ },++ show: function(e) {+ if (!this.isInline)+ this.picker.appendTo('body');+ this.picker.show();+ this.height = this.component ? this.component.outerHeight() : this.element.outerHeight();+ this.place();+ this._attachSecondaryEvents();+ if (e) {+ e.preventDefault();+ }+ this._trigger('show');+ },++ hide: function(e){+ if(this.isInline) return;+ if (!this.picker.is(':visible')) return;+ this.picker.hide().detach();+ this._detachSecondaryEvents();+ this.viewMode = this.o.startView;+ this.showMode();++ if (+ this.o.forceParse &&+ (+ this.isInput && this.element.val() ||+ this.hasInput && this.element.find('input').val()+ )+ )+ this.setValue();+ this._trigger('hide');+ },++ remove: function() {+ this.hide();+ this._detachEvents();+ this._detachSecondaryEvents();+ this.picker.remove();+ delete this.element.data().datepicker;+ if (!this.isInput) {+ delete this.element.data().date;+ }+ },++ getDate: function() {+ var d = this.getUTCDate();+ return new Date(d.getTime() + (d.getTimezoneOffset()*60000));+ },++ getUTCDate: function() {+ return this.date;+ },++ setDate: function(d) {+ this.setUTCDate(new Date(d.getTime() - (d.getTimezoneOffset()*60000)));+ },++ setUTCDate: function(d) {+ this.date = d;+ this.setValue();+ },++ setValue: function() {+ var formatted = this.getFormattedDate();+ if (!this.isInput) {+ if (this.component){+ this.element.find('input').val(formatted);+ }+ } else {+ this.element.val(formatted);+ }+ },++ getFormattedDate: function(format) {+ if (format === undefined)+ format = this.o.format;+ return DPGlobal.formatDate(this.date, format, this.o.language);+ },++ setStartDate: function(startDate){+ this._process_options({startDate: startDate});+ this.update();+ this.updateNavArrows();+ },++ setEndDate: function(endDate){+ this._process_options({endDate: endDate});+ this.update();+ this.updateNavArrows();+ },++ setDaysOfWeekDisabled: function(daysOfWeekDisabled){+ this._process_options({daysOfWeekDisabled: daysOfWeekDisabled});+ this.update();+ this.updateNavArrows();+ },++ place: function(){+ if(this.isInline) return;+ var zIndex = parseInt(this.element.parents().filter(function() {+ return $(this).css('z-index') != 'auto';+ }).first().css('z-index'))+10;+ var offset = this.component ? this.component.parent().offset() : this.element.offset();+ var height = this.component ? this.component.outerHeight(true) : this.element.outerHeight(true);+ this.picker.css({+ top: offset.top + height,+ left: offset.left,+ zIndex: zIndex+ });+ },++ _allow_update: true,+ update: function(){+ if (!this._allow_update) return;++ var date, fromArgs = false;+ if(arguments && arguments.length && (typeof arguments[0] === 'string' || arguments[0] instanceof Date)) {+ date = arguments[0];+ fromArgs = true;+ } else {+ date = this.isInput ? this.element.val() : this.element.data('date') || this.element.find('input').val();+ delete this.element.data().date;+ }++ this.date = DPGlobal.parseDate(date, this.o.format, this.o.language);++ if(fromArgs) this.setValue();++ if (this.date < this.o.startDate) {+ this.viewDate = new Date(this.o.startDate);+ } else if (this.date > this.o.endDate) {+ this.viewDate = new Date(this.o.endDate);+ } else {+ this.viewDate = new Date(this.date);+ }+ this.fill();+ },++ fillDow: function(){+ var dowCnt = this.o.weekStart,+ html = '<tr>';+ if(this.o.calendarWeeks){+ var cell = '<th class="cw"> </th>';+ html += cell;+ this.picker.find('.datepicker-days thead tr:first-child').prepend(cell);+ }+ while (dowCnt < this.o.weekStart + 7) {+ html += '<th class="dow">'+dates[this.o.language].daysMin[(dowCnt++)%7]+'</th>';+ }+ html += '</tr>';+ this.picker.find('.datepicker-days thead').append(html);+ },++ fillMonths: function(){+ var html = '',+ i = 0;+ while (i < 12) {+ html += '<span class="month">'+dates[this.o.language].monthsShort[i++]+'</span>';+ }+ this.picker.find('.datepicker-months td').html(html);+ },++ setRange: function(range){+ if (!range || !range.length)+ delete this.range;+ else+ this.range = $.map(range, function(d){ return d.valueOf(); });+ this.fill();+ },++ getClassNames: function(date){+ var cls = [],+ year = this.viewDate.getUTCFullYear(),+ month = this.viewDate.getUTCMonth(),+ currentDate = this.date.valueOf(),+ today = new Date();+ if (date.getUTCFullYear() < year || (date.getUTCFullYear() == year && date.getUTCMonth() < month)) {+ cls.push('old');+ } else if (date.getUTCFullYear() > year || (date.getUTCFullYear() == year && date.getUTCMonth() > month)) {+ cls.push('new');+ }+ // Compare internal UTC date with local today, not UTC today+ if (this.o.todayHighlight &&+ date.getUTCFullYear() == today.getFullYear() &&+ date.getUTCMonth() == today.getMonth() &&+ date.getUTCDate() == today.getDate()) {+ cls.push('today');+ }+ if (currentDate && date.valueOf() == currentDate) {+ cls.push('active');+ }+ if (date.valueOf() < this.o.startDate || date.valueOf() > this.o.endDate ||+ $.inArray(date.getUTCDay(), this.o.daysOfWeekDisabled) !== -1) {+ cls.push('disabled');+ }+ if (this.range){+ if (date > this.range[0] && date < this.range[this.range.length-1]){+ cls.push('range');+ }+ if ($.inArray(date.valueOf(), this.range) != -1){+ cls.push('selected');+ }+ }+ return cls;+ },++ fill: function() {+ var d = new Date(this.viewDate),+ year = d.getUTCFullYear(),+ month = d.getUTCMonth(),+ startYear = this.o.startDate !== -Infinity ? this.o.startDate.getUTCFullYear() : -Infinity,+ startMonth = this.o.startDate !== -Infinity ? this.o.startDate.getUTCMonth() : -Infinity,+ endYear = this.o.endDate !== Infinity ? this.o.endDate.getUTCFullYear() : Infinity,+ endMonth = this.o.endDate !== Infinity ? this.o.endDate.getUTCMonth() : Infinity,+ currentDate = this.date && this.date.valueOf(),+ tooltip;+ this.picker.find('.datepicker-days thead th.datepicker-switch')+ .text(dates[this.o.language].months[month]+' '+year);+ this.picker.find('tfoot th.today')+ .text(dates[this.o.language].today)+ .toggle(this.o.todayBtn !== false);+ this.picker.find('tfoot th.clear')+ .text(dates[this.o.language].clear)+ .toggle(this.o.clearBtn !== false);+ this.updateNavArrows();+ this.fillMonths();+ var prevMonth = UTCDate(year, month-1, 28,0,0,0,0),+ day = DPGlobal.getDaysInMonth(prevMonth.getUTCFullYear(), prevMonth.getUTCMonth());+ prevMonth.setUTCDate(day);+ prevMonth.setUTCDate(day - (prevMonth.getUTCDay() - this.o.weekStart + 7)%7);+ var nextMonth = new Date(prevMonth);+ nextMonth.setUTCDate(nextMonth.getUTCDate() + 42);+ nextMonth = nextMonth.valueOf();+ var html = [];+ var clsName;+ while(prevMonth.valueOf() < nextMonth) {+ if (prevMonth.getUTCDay() == this.o.weekStart) {+ html.push('<tr>');+ if(this.o.calendarWeeks){+ // ISO 8601: First week contains first thursday.+ // ISO also states week starts on Monday, but we can be more abstract here.+ var+ // Start of current week: based on weekstart/current date+ ws = new Date(+prevMonth + (this.o.weekStart - prevMonth.getUTCDay() - 7) % 7 * 864e5),+ // Thursday of this week+ th = new Date(+ws + (7 + 4 - ws.getUTCDay()) % 7 * 864e5),+ // First Thursday of year, year from thursday+ yth = new Date(+(yth = UTCDate(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay())%7*864e5),+ // Calendar week: ms between thursdays, div ms per day, div 7 days+ calWeek = (th - yth) / 864e5 / 7 + 1;+ html.push('<td class="cw">'+ calWeek +'</td>');++ }+ }+ clsName = this.getClassNames(prevMonth);+ clsName.push('day');++ var before = this.o.beforeShowDay(prevMonth);+ if (before === undefined)+ before = {};+ else if (typeof(before) === 'boolean')+ before = {enabled: before};+ else if (typeof(before) === 'string')+ before = {classes: before};+ if (before.enabled === false)+ clsName.push('disabled');+ if (before.classes)+ clsName = clsName.concat(before.classes.split(/\s+/));+ if (before.tooltip)+ tooltip = before.tooltip;++ clsName = $.unique(clsName);+ html.push('<td class="'+clsName.join(' ')+'"' + (tooltip ? ' title="'+tooltip+'"' : '') + '>'+prevMonth.getUTCDate() + '</td>');+ if (prevMonth.getUTCDay() == this.o.weekEnd) {+ html.push('</tr>');+ }+ prevMonth.setUTCDate(prevMonth.getUTCDate()+1);+ }+ this.picker.find('.datepicker-days tbody').empty().append(html.join(''));+ var currentYear = this.date && this.date.getUTCFullYear();++ var months = this.picker.find('.datepicker-months')+ .find('th:eq(1)')+ .text(year)+ .end()+ .find('span').removeClass('active');+ if (currentYear && currentYear == year) {+ months.eq(this.date.getUTCMonth()).addClass('active');+ }+ if (year < startYear || year > endYear) {+ months.addClass('disabled');+ }+ if (year == startYear) {+ months.slice(0, startMonth).addClass('disabled');+ }+ if (year == endYear) {+ months.slice(endMonth+1).addClass('disabled');+ }++ html = '';+ year = parseInt(year/10, 10) * 10;+ var yearCont = this.picker.find('.datepicker-years')+ .find('th:eq(1)')+ .text(year + '-' + (year + 9))+ .end()+ .find('td');+ year -= 1;+ for (var i = -1; i < 11; i++) {+ html += '<span class="year'+(i == -1 ? ' old' : i == 10 ? ' new' : '')+(currentYear == year ? ' active' : '')+(year < startYear || year > endYear ? ' disabled' : '')+'">'+year+'</span>';+ year += 1;+ }+ yearCont.html(html);+ },++ updateNavArrows: function() {+ if (!this._allow_update) return;++ var d = new Date(this.viewDate),+ year = d.getUTCFullYear(),+ month = d.getUTCMonth();+ switch (this.viewMode) {+ case 0:+ if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear() && month <= this.o.startDate.getUTCMonth()) {+ this.picker.find('.prev').css({visibility: 'hidden'});+ } else {+ this.picker.find('.prev').css({visibility: 'visible'});+ }+ if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear() && month >= this.o.endDate.getUTCMonth()) {+ this.picker.find('.next').css({visibility: 'hidden'});+ } else {+ this.picker.find('.next').css({visibility: 'visible'});+ }+ break;+ case 1:+ case 2:+ if (this.o.startDate !== -Infinity && year <= this.o.startDate.getUTCFullYear()) {+ this.picker.find('.prev').css({visibility: 'hidden'});+ } else {+ this.picker.find('.prev').css({visibility: 'visible'});+ }+ if (this.o.endDate !== Infinity && year >= this.o.endDate.getUTCFullYear()) {+ this.picker.find('.next').css({visibility: 'hidden'});+ } else {+ this.picker.find('.next').css({visibility: 'visible'});+ }+ break;+ }+ },++ click: function(e) {+ e.preventDefault();+ var target = $(e.target).closest('span, td, th');+ if (target.length == 1) {+ switch(target[0].nodeName.toLowerCase()) {+ case 'th':+ switch(target[0].className) {+ case 'datepicker-switch':+ this.showMode(1);+ break;+ case 'prev':+ case 'next':+ var dir = DPGlobal.modes[this.viewMode].navStep * (target[0].className == 'prev' ? -1 : 1);+ switch(this.viewMode){+ case 0:+ this.viewDate = this.moveMonth(this.viewDate, dir);+ break;+ case 1:+ case 2:+ this.viewDate = this.moveYear(this.viewDate, dir);+ break;+ }+ this.fill();+ break;+ case 'today':+ var date = new Date();+ date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);++ this.showMode(-2);+ var which = this.o.todayBtn == 'linked' ? null : 'view';+ this._setDate(date, which);+ break;+ case 'clear':+ var element;+ if (this.isInput)+ element = this.element;+ else if (this.component)+ element = this.element.find('input');+ if (element)+ element.val("").change();+ this._trigger('changeDate');+ this.update();+ if (this.o.autoclose)+ this.hide();+ break;+ }+ break;+ case 'span':+ if (!target.is('.disabled')) {+ this.viewDate.setUTCDate(1);+ if (target.is('.month')) {+ var day = 1;+ var month = target.parent().find('span').index(target);+ var year = this.viewDate.getUTCFullYear();+ this.viewDate.setUTCMonth(month);+ this._trigger('changeMonth', this.viewDate);+ if (this.o.minViewMode === 1) {+ this._setDate(UTCDate(year, month, day,0,0,0,0));+ }+ } else {+ var year = parseInt(target.text(), 10)||0;+ var day = 1;+ var month = 0;+ this.viewDate.setUTCFullYear(year);+ this._trigger('changeYear', this.viewDate);+ if (this.o.minViewMode === 2) {+ this._setDate(UTCDate(year, month, day,0,0,0,0));+ }+ }+ this.showMode(-1);+ this.fill();+ }+ break;+ case 'td':+ if (target.is('.day') && !target.is('.disabled')){+ var day = parseInt(target.text(), 10)||1;+ var year = this.viewDate.getUTCFullYear(),+ month = this.viewDate.getUTCMonth();+ if (target.is('.old')) {+ if (month === 0) {+ month = 11;+ year -= 1;+ } else {+ month -= 1;+ }+ } else if (target.is('.new')) {+ if (month == 11) {+ month = 0;+ year += 1;+ } else {+ month += 1;+ }+ }+ this._setDate(UTCDate(year, month, day,0,0,0,0));+ }+ break;+ }+ }+ },++ _setDate: function(date, which){+ if (!which || which == 'date')+ this.date = new Date(date);+ if (!which || which == 'view')+ this.viewDate = new Date(date);+ this.fill();+ this.setValue();+ this._trigger('changeDate');+ var element;+ if (this.isInput) {+ element = this.element;+ } else if (this.component){+ element = this.element.find('input');+ }+ if (element) {+ element.change();+ if (this.o.autoclose && (!which || which == 'date')) {+ this.hide();+ }+ }+ },++ moveMonth: function(date, dir){+ if (!dir) return date;+ var new_date = new Date(date.valueOf()),+ day = new_date.getUTCDate(),+ month = new_date.getUTCMonth(),+ mag = Math.abs(dir),+ new_month, test;+ dir = dir > 0 ? 1 : -1;+ if (mag == 1){+ test = dir == -1+ // If going back one month, make sure month is not current month+ // (eg, Mar 31 -> Feb 31 == Feb 28, not Mar 02)+ ? function(){ return new_date.getUTCMonth() == month; }+ // If going forward one month, make sure month is as expected+ // (eg, Jan 31 -> Feb 31 == Feb 28, not Mar 02)+ : function(){ return new_date.getUTCMonth() != new_month; };+ new_month = month + dir;+ new_date.setUTCMonth(new_month);+ // Dec -> Jan (12) or Jan -> Dec (-1) -- limit expected date to 0-11+ if (new_month < 0 || new_month > 11)+ new_month = (new_month + 12) % 12;+ } else {+ // For magnitudes >1, move one month at a time...+ for (var i=0; i<mag; i++)+ // ...which might decrease the day (eg, Jan 31 to Feb 28, etc)...+ new_date = this.moveMonth(new_date, dir);+ // ...then reset the day, keeping it in the new month+ new_month = new_date.getUTCMonth();+ new_date.setUTCDate(day);+ test = function(){ return new_month != new_date.getUTCMonth(); };+ }+ // Common date-resetting loop -- if date is beyond end of month, make it+ // end of month+ while (test()){+ new_date.setUTCDate(--day);+ new_date.setUTCMonth(new_month);+ }+ return new_date;+ },++ moveYear: function(date, dir){+ return this.moveMonth(date, dir*12);+ },++ dateWithinRange: function(date){+ return date >= this.o.startDate && date <= this.o.endDate;+ },++ keydown: function(e){+ if (this.picker.is(':not(:visible)')){+ if (e.keyCode == 27) // allow escape to hide and re-show picker+ this.show();+ return;+ }+ var dateChanged = false,+ dir, day, month,+ newDate, newViewDate;+ switch(e.keyCode){+ case 27: // escape+ this.hide();+ e.preventDefault();+ break;+ case 37: // left+ case 39: // right+ if (!this.o.keyboardNavigation) break;+ dir = e.keyCode == 37 ? -1 : 1;+ if (e.ctrlKey){+ newDate = this.moveYear(this.date, dir);+ newViewDate = this.moveYear(this.viewDate, dir);+ } else if (e.shiftKey){+ newDate = this.moveMonth(this.date, dir);+ newViewDate = this.moveMonth(this.viewDate, dir);+ } else {+ newDate = new Date(this.date);+ newDate.setUTCDate(this.date.getUTCDate() + dir);+ newViewDate = new Date(this.viewDate);+ newViewDate.setUTCDate(this.viewDate.getUTCDate() + dir);+ }+ if (this.dateWithinRange(newDate)){+ this.date = newDate;+ this.viewDate = newViewDate;+ this.setValue();+ this.update();+ e.preventDefault();+ dateChanged = true;+ }+ break;+ case 38: // up+ case 40: // down+ if (!this.o.keyboardNavigation) break;+ dir = e.keyCode == 38 ? -1 : 1;+ if (e.ctrlKey){+ newDate = this.moveYear(this.date, dir);+ newViewDate = this.moveYear(this.viewDate, dir);+ } else if (e.shiftKey){+ newDate = this.moveMonth(this.date, dir);+ newViewDate = this.moveMonth(this.viewDate, dir);+ } else {+ newDate = new Date(this.date);+ newDate.setUTCDate(this.date.getUTCDate() + dir * 7);+ newViewDate = new Date(this.viewDate);+ newViewDate.setUTCDate(this.viewDate.getUTCDate() + dir * 7);+ }+ if (this.dateWithinRange(newDate)){+ this.date = newDate;+ this.viewDate = newViewDate;+ this.setValue();+ this.update();+ e.preventDefault();+ dateChanged = true;+ }+ break;+ case 13: // enter+ this.hide();+ e.preventDefault();+ break;+ case 9: // tab+ this.hide();+ break;+ }+ if (dateChanged){+ this._trigger('changeDate');+ var element;+ if (this.isInput) {+ element = this.element;+ } else if (this.component){+ element = this.element.find('input');+ }+ if (element) {+ element.change();+ }+ }+ },++ showMode: function(dir) {+ if (dir) {+ this.viewMode = Math.max(this.o.minViewMode, Math.min(2, this.viewMode + dir));+ }+ /*+ vitalets: fixing bug of very special conditions:+ jquery 1.7.1 + webkit + show inline datepicker in bootstrap popover.+ Method show() does not set display css correctly and datepicker is not shown.+ Changed to .css('display', 'block') solve the problem.+ See https://github.com/vitalets/x-editable/issues/37++ In jquery 1.7.2+ everything works fine.+ */+ //this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).show();+ this.picker.find('>div').hide().filter('.datepicker-'+DPGlobal.modes[this.viewMode].clsName).css('display', 'block');+ this.updateNavArrows();+ }+ };++ var DateRangePicker = function(element, options){+ this.element = $(element);+ this.inputs = $.map(options.inputs, function(i){ return i.jquery ? i[0] : i; });+ delete options.inputs;++ $(this.inputs)+ .datepicker(options)+ .bind('changeDate', $.proxy(this.dateUpdated, this));++ this.pickers = $.map(this.inputs, function(i){ return $(i).data('datepicker'); });+ this.updateDates();+ };+ DateRangePicker.prototype = {+ updateDates: function(){+ this.dates = $.map(this.pickers, function(i){ return i.date; });+ this.updateRanges();+ },+ updateRanges: function(){+ var range = $.map(this.dates, function(d){ return d.valueOf(); });+ $.each(this.pickers, function(i, p){+ p.setRange(range);+ });+ },+ dateUpdated: function(e){+ var dp = $(e.target).data('datepicker'),+ new_date = dp.getUTCDate(),+ i = $.inArray(e.target, this.inputs),+ l = this.inputs.length;+ if (i == -1) return;++ if (new_date < this.dates[i]){+ // Date being moved earlier/left+ while (i>=0 && new_date < this.dates[i]){+ this.pickers[i--].setUTCDate(new_date);+ }+ }+ else if (new_date > this.dates[i]){+ // Date being moved later/right+ while (i<l && new_date > this.dates[i]){+ this.pickers[i++].setUTCDate(new_date);+ }+ }+ this.updateDates();+ },+ remove: function(){+ $.map(this.pickers, function(p){ p.remove(); });+ delete this.element.data().datepicker;+ }+ };++ function opts_from_el(el, prefix){+ // Derive options from element data-attrs+ var data = $(el).data(),+ out = {}, inkey,+ replace = new RegExp('^' + prefix.toLowerCase() + '([A-Z])'),+ prefix = new RegExp('^' + prefix.toLowerCase());+ for (var key in data)+ if (prefix.test(key)){+ inkey = key.replace(replace, function(_,a){ return a.toLowerCase(); });+ out[inkey] = data[key];+ }+ return out;+ }++ function opts_from_locale(lang){+ // Derive options from locale plugins+ var out = {};+ // Check if "de-DE" style date is available, if not language should+ // fallback to 2 letter code eg "de"+ if (!dates[lang]) {+ lang = lang.split('-')[0]+ if (!dates[lang])+ return;+ }+ var d = dates[lang];+ $.each(locale_opts, function(i,k){+ if (k in d)+ out[k] = d[k];+ });+ return out;+ }++ var old = $.fn.datepicker;+ var datepicker = $.fn.datepicker = function ( option ) {+ var args = Array.apply(null, arguments);+ args.shift();+ var internal_return,+ this_return;+ this.each(function () {+ var $this = $(this),+ data = $this.data('datepicker'),+ options = typeof option == 'object' && option;+ if (!data) {+ var elopts = opts_from_el(this, 'date'),+ // Preliminary otions+ xopts = $.extend({}, defaults, elopts, options),+ locopts = opts_from_locale(xopts.language),+ // Options priority: js args, data-attrs, locales, defaults+ opts = $.extend({}, defaults, locopts, elopts, options);+ if ($this.is('.input-daterange') || opts.inputs){+ var ropts = {+ inputs: opts.inputs || $this.find('input').toArray()+ };+ $this.data('datepicker', (data = new DateRangePicker(this, $.extend(opts, ropts))));+ }+ else{+ $this.data('datepicker', (data = new Datepicker(this, opts)));+ }+ }+ if (typeof option == 'string' && typeof data[option] == 'function') {+ internal_return = data[option].apply(data, args);+ if (internal_return !== undefined)+ return false;+ }+ });+ if (internal_return !== undefined)+ return internal_return;+ else+ return this;+ };++ var defaults = $.fn.datepicker.defaults = {+ autoclose: false,+ beforeShowDay: $.noop,+ calendarWeeks: false,+ clearBtn: false,+ daysOfWeekDisabled: [],+ endDate: Infinity,+ forceParse: true,+ format: 'mm/dd/yyyy',+ keyboardNavigation: true,+ language: 'en',+ minViewMode: 0,+ rtl: false,+ startDate: -Infinity,+ startView: 0,+ todayBtn: false,+ todayHighlight: false,+ weekStart: 0+ };+ var locale_opts = $.fn.datepicker.locale_opts = [+ 'format',+ 'rtl',+ 'weekStart'+ ];+ $.fn.datepicker.Constructor = Datepicker;+ var dates = $.fn.datepicker.dates = {+ en: {+ days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],+ daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],+ daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"],+ months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],+ monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],+ today: "Today",+ clear: "Clear"+ }+ };++ var DPGlobal = {+ modes: [+ {+ clsName: 'days',+ navFnc: 'Month',+ navStep: 1+ },+ {+ clsName: 'months',+ navFnc: 'FullYear',+ navStep: 1+ },+ {+ clsName: 'years',+ navFnc: 'FullYear',+ navStep: 10+ }],+ isLeapYear: function (year) {+ return (((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0));+ },+ getDaysInMonth: function (year, month) {+ return [31, (DPGlobal.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];+ },+ validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,+ nonpunctuation: /[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,+ parseFormat: function(format){+ // IE treats \0 as a string end in inputs (truncating the value),+ // so it's a bad format delimiter, anyway+ var separators = format.replace(this.validParts, '\0').split('\0'),+ parts = format.match(this.validParts);+ if (!separators || !separators.length || !parts || parts.length === 0){+ throw new Error("Invalid date format.");+ }+ return {separators: separators, parts: parts};+ },+ parseDate: function(date, format, language) {+ if (date instanceof Date) return date;+ if (typeof format === 'string')+ format = DPGlobal.parseFormat(format);+ if (/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(date)) {+ var part_re = /([\-+]\d+)([dmwy])/,+ parts = date.match(/([\-+]\d+)([dmwy])/g),+ part, dir;+ date = new Date();+ for (var i=0; i<parts.length; i++) {+ part = part_re.exec(parts[i]);+ dir = parseInt(part[1]);+ switch(part[2]){+ case 'd':+ date.setUTCDate(date.getUTCDate() + dir);+ break;+ case 'm':+ date = Datepicker.prototype.moveMonth.call(Datepicker.prototype, date, dir);+ break;+ case 'w':+ date.setUTCDate(date.getUTCDate() + dir * 7);+ break;+ case 'y':+ date = Datepicker.prototype.moveYear.call(Datepicker.prototype, date, dir);+ break;+ }+ }+ return UTCDate(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), 0, 0, 0);+ }+ var parts = date && date.match(this.nonpunctuation) || [],+ date = new Date(),+ parsed = {},+ setters_order = ['yyyy', 'yy', 'M', 'MM', 'm', 'mm', 'd', 'dd'],+ setters_map = {+ yyyy: function(d,v){ return d.setUTCFullYear(v); },+ yy: function(d,v){ return d.setUTCFullYear(2000+v); },+ m: function(d,v){+ v -= 1;+ while (v<0) v += 12;+ v %= 12;+ d.setUTCMonth(v);+ while (d.getUTCMonth() != v)+ d.setUTCDate(d.getUTCDate()-1);+ return d;+ },+ d: function(d,v){ return d.setUTCDate(v); }+ },+ val, filtered, part;+ setters_map['M'] = setters_map['MM'] = setters_map['mm'] = setters_map['m'];+ setters_map['dd'] = setters_map['d'];+ date = UTCDate(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);+ var fparts = format.parts.slice();+ // Remove noop parts+ if (parts.length != fparts.length) {+ fparts = $(fparts).filter(function(i,p){+ return $.inArray(p, setters_order) !== -1;+ }).toArray();+ }+ // Process remainder+ if (parts.length == fparts.length) {+ for (var i=0, cnt = fparts.length; i < cnt; i++) {+ val = parseInt(parts[i], 10);+ part = fparts[i];+ if (isNaN(val)) {+ switch(part) {+ case 'MM':+ filtered = $(dates[language].months).filter(function(){+ var m = this.slice(0, parts[i].length),+ p = parts[i].slice(0, m.length);+ return m == p;+ });+ val = $.inArray(filtered[0], dates[language].months) + 1;+ break;+ case 'M':+ filtered = $(dates[language].monthsShort).filter(function(){+ var m = this.slice(0, parts[i].length),+ p = parts[i].slice(0, m.length);+ return m == p;+ });+ val = $.inArray(filtered[0], dates[language].monthsShort) + 1;+ break;+ }+ }+ parsed[part] = val;+ }+ for (var i=0, s; i<setters_order.length; i++){+ s = setters_order[i];+ if (s in parsed && !isNaN(parsed[s]))+ setters_map[s](date, parsed[s]);+ }+ }+ return date;+ },+ formatDate: function(date, format, language){+ if (typeof format === 'string')+ format = DPGlobal.parseFormat(format);+ var val = {+ d: date.getUTCDate(),+ D: dates[language].daysShort[date.getUTCDay()],+ DD: dates[language].days[date.getUTCDay()],+ m: date.getUTCMonth() + 1,+ M: dates[language].monthsShort[date.getUTCMonth()],+ MM: dates[language].months[date.getUTCMonth()],+ yy: date.getUTCFullYear().toString().substring(2),+ yyyy: date.getUTCFullYear()+ };+ val.dd = (val.d < 10 ? '0' : '') + val.d;+ val.mm = (val.m < 10 ? '0' : '') + val.m;+ var date = [],+ seps = $.extend([], format.separators);+ for (var i=0, cnt = format.parts.length; i <= cnt; i++) {+ if (seps.length)+ date.push(seps.shift());+ date.push(val[format.parts[i]]);+ }+ return date.join('');+ },+ headTemplate: '<thead>'++ '<tr>'++ '<th class="prev"><i class="icon-arrow-left"/></th>'++ '<th colspan="5" class="datepicker-switch"></th>'++ '<th class="next"><i class="icon-arrow-right"/></th>'++ '</tr>'++ '</thead>',+ contTemplate: '<tbody><tr><td colspan="7"></td></tr></tbody>',+ footTemplate: '<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'+ };+ DPGlobal.template = '<div class="datepicker">'++ '<div class="datepicker-days">'++ '<table class=" table-condensed">'++ DPGlobal.headTemplate++ '<tbody></tbody>'++ DPGlobal.footTemplate++ '</table>'++ '</div>'++ '<div class="datepicker-months">'++ '<table class="table-condensed">'++ DPGlobal.headTemplate++ DPGlobal.contTemplate++ DPGlobal.footTemplate++ '</table>'++ '</div>'++ '<div class="datepicker-years">'++ '<table class="table-condensed">'++ DPGlobal.headTemplate++ DPGlobal.contTemplate++ DPGlobal.footTemplate++ '</table>'++ '</div>'++ '</div>';++ $.fn.datepicker.DPGlobal = DPGlobal;+++ /* DATEPICKER NO CONFLICT+ * =================== */++ $.fn.datepicker.noConflict = function(){+ $.fn.datepicker = old;+ return this;+ };+++ /* DATEPICKER DATA-API+ * ================== */++ $(document).on(+ 'focus.datepicker.data-api click.datepicker.data-api',+ '[data-provide="datepicker"]',+ function(e){+ var $this = $(this);+ if ($this.data('datepicker')) return;+ e.preventDefault();+ // component click requires us to explicitly show it+ datepicker.call($this, 'show');+ }+ );+ $(function(){+ //$('[data-provide="datepicker-inline"]').datepicker();+ //vit: changed to support noConflict()+ datepicker.call($('[data-provide="datepicker-inline"]'));+ });++}( window.jQuery ));++/**+Bootstrap-datepicker.+Description and examples: https://github.com/eternicode/bootstrap-datepicker.+For **i18n** you should include js file from here: https://github.com/eternicode/bootstrap-datepicker/tree/master/js/locales+and set `language` option.+Since 1.4.0 date has different appearance in **popup** and **inline** modes.++@class date+@extends abstractinput+@final+@example+<a href="#" id="dob" data-type="date" data-pk="1" data-url="/post" data-title="Select date">15/05/1984</a>+<script>+$(function(){+ $('#dob').editable({+ format: 'yyyy-mm-dd',+ viewformat: 'dd/mm/yyyy',+ datepicker: {+ weekStart: 1+ }+ }+ });+});+</script>+**/+(function ($) {+ "use strict";++ //store bootstrap-datepicker as bdateicker to exclude conflict with jQuery UI one+ $.fn.bdatepicker = $.fn.datepicker.noConflict();+ if(!$.fn.datepicker) { //if there were no other datepickers, keep also original name+ $.fn.datepicker = $.fn.bdatepicker;+ }++ var Date = function (options) {+ this.init('date', options, Date.defaults);+ this.initPicker(options, Date.defaults);+ };++ $.fn.editableutils.inherit(Date, $.fn.editabletypes.abstractinput);++ $.extend(Date.prototype, {+ initPicker: function(options, defaults) {+ //'format' is set directly from settings or data-* attributes++ //by default viewformat equals to format+ if(!this.options.viewformat) {+ this.options.viewformat = this.options.format;+ }++ //try parse datepicker config defined as json string in data-datepicker+ options.datepicker = $.fn.editableutils.tryParseJson(options.datepicker, true);++ //overriding datepicker config (as by default jQuery extend() is not recursive)+ //since 1.4 datepicker internally uses viewformat instead of format. Format is for submit only+ this.options.datepicker = $.extend({}, defaults.datepicker, options.datepicker, {+ format: this.options.viewformat+ });++ //language+ this.options.datepicker.language = this.options.datepicker.language || 'en';++ //store DPglobal+ this.dpg = $.fn.bdatepicker.DPGlobal;++ //store parsed formats+ this.parsedFormat = this.dpg.parseFormat(this.options.format);+ this.parsedViewFormat = this.dpg.parseFormat(this.options.viewformat);+ },++ render: function () {+ this.$input.bdatepicker(this.options.datepicker);++ //"clear" link+ if(this.options.clear) {+ this.$clear = $('<a href="#"></a>').html(this.options.clear).click($.proxy(function(e){+ e.preventDefault();+ e.stopPropagation();+ this.clear();+ }, this));++ this.$tpl.parent().append($('<div class="editable-clear">').append(this.$clear));+ }+ },++ value2html: function(value, element) {+ var text = value ? this.dpg.formatDate(value, this.parsedViewFormat, this.options.datepicker.language) : '';+ Date.superclass.value2html.call(this, text, element);+ },++ html2value: function(html) {+ return this.parseDate(html, this.parsedViewFormat);+ },++ value2str: function(value) {+ return value ? this.dpg.formatDate(value, this.parsedFormat, this.options.datepicker.language) : '';+ },++ str2value: function(str) {+ return this.parseDate(str, this.parsedFormat);+ },++ value2submit: function(value) {+ return this.value2str(value);+ },++ value2input: function(value) {+ this.$input.bdatepicker('update', value);+ },++ input2value: function() {+ return this.$input.data('datepicker').date;+ },++ activate: function() {+ },++ clear: function() {+ this.$input.data('datepicker').date = null;+ this.$input.find('.active').removeClass('active');+ if(!this.options.showbuttons) {+ this.$input.closest('form').submit();+ }+ },++ autosubmit: function() {+ this.$input.on('mouseup', '.day', function(e){+ if($(e.currentTarget).is('.old') || $(e.currentTarget).is('.new')) {+ return;+ }+ var $form = $(this).closest('form');+ setTimeout(function() {+ $form.submit();+ }, 200);+ });+ //changedate is not suitable as it triggered when showing datepicker. see #149+ /*+ this.$input.on('changeDate', function(e){+ var $form = $(this).closest('form');+ setTimeout(function() {+ $form.submit();+ }, 200);+ });+ */+ },++ /*+ For incorrect date bootstrap-datepicker returns current date that is not suitable+ for datefield.+ This function returns null for incorrect date.+ */+ parseDate: function(str, format) {+ var date = null, formattedBack;+ if(str) {+ date = this.dpg.parseDate(str, format, this.options.datepicker.language);+ if(typeof str === 'string') {+ formattedBack = this.dpg.formatDate(date, format, this.options.datepicker.language);+ if(str !== formattedBack) {+ date = null;+ }+ }+ }+ return date;+ }++ });++ Date.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ @property tpl+ @default <div></div>+ **/+ tpl:'<div class="editable-date well"></div>',+ /**+ @property inputclass+ @default null+ **/+ inputclass: null,+ /**+ Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>+ Possible tokens are: <code>d, dd, m, mm, yy, yyyy</code>++ @property format+ @type string+ @default yyyy-mm-dd+ **/+ format:'yyyy-mm-dd',+ /**+ Format used for displaying date. Also applied when converting date from element's text on init.+ If not specified equals to <code>format</code>++ @property viewformat+ @type string+ @default null+ **/+ viewformat: null,+ /**+ Configuration of datepicker.+ Full list of options: http://bootstrap-datepicker.readthedocs.org/en/latest/options.html++ @property datepicker+ @type object+ @default {+ weekStart: 0,+ startView: 0,+ minViewMode: 0,+ autoclose: false+ }+ **/+ datepicker:{+ weekStart: 0,+ startView: 0,+ minViewMode: 0,+ autoclose: false+ },+ /**+ Text shown as clear date button.+ If <code>false</code> clear button will not be rendered.++ @property clear+ @type boolean|string+ @default 'x clear'+ **/+ clear: '× clear'+ });++ $.fn.editabletypes.date = Date;++}(window.jQuery));++/**+Bootstrap datefield input - modification for inline mode.+Shows normal <input type="text"> and binds popup datepicker.+Automatically shown in inline mode.++@class datefield+@extends date++@since 1.4.0+**/+(function ($) {+ "use strict";++ var DateField = function (options) {+ this.init('datefield', options, DateField.defaults);+ this.initPicker(options, DateField.defaults);+ };++ $.fn.editableutils.inherit(DateField, $.fn.editabletypes.date);++ $.extend(DateField.prototype, {+ render: function () {+ this.$input = this.$tpl.find('input');+ this.setClass();+ this.setAttr('placeholder');++ //bootstrap-datepicker is set `bdateicker` to exclude conflict with jQuery UI one. (in date.js)+ this.$tpl.bdatepicker(this.options.datepicker);++ //need to disable original event handlers+ this.$input.off('focus keydown');++ //update value of datepicker+ this.$input.keyup($.proxy(function(){+ this.$tpl.removeData('date');+ this.$tpl.bdatepicker('update');+ }, this));++ },++ value2input: function(value) {+ this.$input.val(value ? this.dpg.formatDate(value, this.parsedViewFormat, this.options.datepicker.language) : '');+ this.$tpl.bdatepicker('update');+ },++ input2value: function() {+ return this.html2value(this.$input.val());+ },++ activate: function() {+ $.fn.editabletypes.text.prototype.activate.call(this);+ },++ autosubmit: function() {+ //reset autosubmit to empty+ }+ });++ DateField.defaults = $.extend({}, $.fn.editabletypes.date.defaults, {+ /**+ @property tpl+ **/+ tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',+ /**+ @property inputclass+ @default 'input-small'+ **/+ inputclass: 'input-small',++ /* datepicker config */+ datepicker: {+ weekStart: 0,+ startView: 0,+ minViewMode: 0,+ autoclose: true+ }+ });++ $.fn.editabletypes.datefield = DateField;++}(window.jQuery));+/**+Bootstrap-datetimepicker.+Based on [smalot bootstrap-datetimepicker plugin](https://github.com/smalot/bootstrap-datetimepicker).+Before usage you should manually include dependent js and css:++ <link href="css/datetimepicker.css" rel="stylesheet" type="text/css"></link>+ <script src="js/bootstrap-datetimepicker.js"></script>++For **i18n** you should include js file from here: https://github.com/smalot/bootstrap-datetimepicker/tree/master/js/locales+and set `language` option.++@class datetime+@extends abstractinput+@final+@since 1.4.4+@example+<a href="#" id="last_seen" data-type="datetime" data-pk="1" data-url="/post" title="Select date & time">15/03/2013 12:45</a>+<script>+$(function(){+ $('#last_seen').editable({+ format: 'yyyy-mm-dd hh:ii',+ viewformat: 'dd/mm/yyyy hh:ii',+ datetimepicker: {+ weekStart: 1+ }+ }+ });+});+</script>+**/+(function ($) {+ "use strict";++ var DateTime = function (options) {+ this.init('datetime', options, DateTime.defaults);+ this.initPicker(options, DateTime.defaults);+ };++ $.fn.editableutils.inherit(DateTime, $.fn.editabletypes.abstractinput);++ $.extend(DateTime.prototype, {+ initPicker: function(options, defaults) {+ //'format' is set directly from settings or data-* attributes++ //by default viewformat equals to format+ if(!this.options.viewformat) {+ this.options.viewformat = this.options.format;+ }++ //try parse datetimepicker config defined as json string in data-datetimepicker+ options.datetimepicker = $.fn.editableutils.tryParseJson(options.datetimepicker, true);++ //overriding datetimepicker config (as by default jQuery extend() is not recursive)+ //since 1.4 datetimepicker internally uses viewformat instead of format. Format is for submit only+ this.options.datetimepicker = $.extend({}, defaults.datetimepicker, options.datetimepicker, {+ format: this.options.viewformat+ });++ //language+ this.options.datetimepicker.language = this.options.datetimepicker.language || 'en';++ //store DPglobal+ this.dpg = $.fn.datetimepicker.DPGlobal;++ //store parsed formats+ this.parsedFormat = this.dpg.parseFormat(this.options.format, this.options.formatType);+ this.parsedViewFormat = this.dpg.parseFormat(this.options.viewformat, this.options.formatType);+ },++ render: function () {+ this.$input.datetimepicker(this.options.datetimepicker);++ //adjust container position when viewMode changes+ //see https://github.com/smalot/bootstrap-datetimepicker/pull/80+ this.$input.on('changeMode', function(e) {+ var f = $(this).closest('form').parent();+ //timeout here, otherwise container changes position before form has new size+ setTimeout(function(){+ f.triggerHandler('resize');+ }, 0);+ });++ //"clear" link+ if(this.options.clear) {+ this.$clear = $('<a href="#"></a>').html(this.options.clear).click($.proxy(function(e){+ e.preventDefault();+ e.stopPropagation();+ this.clear();+ }, this));++ this.$tpl.parent().append($('<div class="editable-clear">').append(this.$clear));+ }+ },++ value2html: function(value, element) {+ //formatDate works with UTCDate!+ var text = value ? this.dpg.formatDate(this.toUTC(value), this.parsedViewFormat, this.options.datetimepicker.language, this.options.formatType) : '';+ if(element) {+ DateTime.superclass.value2html.call(this, text, element);+ } else {+ return text;+ }+ },++ html2value: function(html) {+ //parseDate return utc date!+ var value = this.parseDate(html, this.parsedViewFormat);+ return value ? this.fromUTC(value) : null;+ },++ value2str: function(value) {+ //formatDate works with UTCDate!+ return value ? this.dpg.formatDate(this.toUTC(value), this.parsedFormat, this.options.datetimepicker.language, this.options.formatType) : '';+ },++ str2value: function(str) {+ //parseDate return utc date!+ var value = this.parseDate(str, this.parsedFormat);+ return value ? this.fromUTC(value) : null;+ },++ value2submit: function(value) {+ return this.value2str(value);+ },++ value2input: function(value) {+ if(value) {+ this.$input.data('datetimepicker').setDate(value);+ }+ },++ input2value: function() {+ //date may be cleared, in that case getDate() triggers error+ var dt = this.$input.data('datetimepicker');+ return dt.date ? dt.getDate() : null;+ },++ activate: function() {+ },++ clear: function() {+ this.$input.data('datetimepicker').date = null;+ this.$input.find('.active').removeClass('active');+ if(!this.options.showbuttons) {+ this.$input.closest('form').submit();+ }+ },++ autosubmit: function() {+ this.$input.on('mouseup', '.minute', function(e){+ var $form = $(this).closest('form');+ setTimeout(function() {+ $form.submit();+ }, 200);+ });+ },++ //convert date from local to utc+ toUTC: function(value) {+ return value ? new Date(value.valueOf() - value.getTimezoneOffset() * 60000) : value;+ },++ //convert date from utc to local+ fromUTC: function(value) {+ return value ? new Date(value.valueOf() + value.getTimezoneOffset() * 60000) : value;+ },++ /*+ For incorrect date bootstrap-datetimepicker returns current date that is not suitable+ for datetimefield.+ This function returns null for incorrect date.+ */+ parseDate: function(str, format) {+ var date = null, formattedBack;+ if(str) {+ date = this.dpg.parseDate(str, format, this.options.datetimepicker.language, this.options.formatType);+ if(typeof str === 'string') {+ formattedBack = this.dpg.formatDate(date, format, this.options.datetimepicker.language, this.options.formatType);+ if(str !== formattedBack) {+ date = null;+ }+ }+ }+ return date;+ }++ });++ DateTime.defaults = $.extend({}, $.fn.editabletypes.abstractinput.defaults, {+ /**+ @property tpl+ @default <div></div>+ **/+ tpl:'<div class="editable-date well"></div>',+ /**+ @property inputclass+ @default null+ **/+ inputclass: null,+ /**+ Format used for sending value to server. Also applied when converting date from <code>data-value</code> attribute.<br>+ Possible tokens are: <code>d, dd, m, mm, yy, yyyy, h, i</code>++ @property format+ @type string+ @default yyyy-mm-dd hh:ii+ **/+ format:'yyyy-mm-dd hh:ii',+ formatType:'standard',+ /**+ Format used for displaying date. Also applied when converting date from element's text on init.+ If not specified equals to <code>format</code>++ @property viewformat+ @type string+ @default null+ **/+ viewformat: null,+ /**+ Configuration of datetimepicker.+ Full list of options: https://github.com/smalot/bootstrap-datetimepicker++ @property datetimepicker+ @type object+ @default { }+ **/+ datetimepicker:{+ todayHighlight: false,+ autoclose: false+ },+ /**+ Text shown as clear date button.+ If <code>false</code> clear button will not be rendered.++ @property clear+ @type boolean|string+ @default 'x clear'+ **/+ clear: '× clear'+ });++ $.fn.editabletypes.datetime = DateTime;++}(window.jQuery));+/**+Bootstrap datetimefield input - datetime input for inline mode.+Shows normal <input type="text"> and binds popup datetimepicker.+Automatically shown in inline mode.++@class datetimefield+@extends datetime++**/+(function ($) {+ "use strict";++ var DateTimeField = function (options) {+ this.init('datetimefield', options, DateTimeField.defaults);+ this.initPicker(options, DateTimeField.defaults);+ };++ $.fn.editableutils.inherit(DateTimeField, $.fn.editabletypes.datetime);++ $.extend(DateTimeField.prototype, {+ render: function () {+ this.$input = this.$tpl.find('input');+ this.setClass();+ this.setAttr('placeholder');++ this.$tpl.datetimepicker(this.options.datetimepicker);++ //need to disable original event handlers+ this.$input.off('focus keydown');++ //update value of datepicker+ this.$input.keyup($.proxy(function(){+ this.$tpl.removeData('date');+ this.$tpl.datetimepicker('update');+ }, this));++ },++ value2input: function(value) {+ this.$input.val(this.value2html(value));+ this.$tpl.datetimepicker('update');+ },++ input2value: function() {+ return this.html2value(this.$input.val());+ },++ activate: function() {+ $.fn.editabletypes.text.prototype.activate.call(this);+ },++ autosubmit: function() {+ //reset autosubmit to empty+ }+ });++ DateTimeField.defaults = $.extend({}, $.fn.editabletypes.datetime.defaults, {+ /**+ @property tpl+ **/+ tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',+ /**+ @property inputclass+ @default 'input-medium'+ **/+ inputclass: 'input-medium',++ /* datetimepicker config */+ datetimepicker:{+ todayHighlight: false,+ autoclose: true+ }+ });++ $.fn.editabletypes.datetimefield = DateTimeField;++}(window.jQuery));\ No newline at end of filediff --git a/data/devlibs/bootstrap3xeditable/js/bootstrap-editable.min.js b/data/devlibs/bootstrap3xeditable/js/bootstrap-editable.min.jsnew file mode 100644index 000000000..e2703aee8--- /dev/null+++ b/data/devlibs/bootstrap3xeditable/js/bootstrap-editable.min.js@@ -0,0 +1,7 @@+/*! X-editable - v1.5.1+* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery+* http://github.com/vitalets/x-editable+* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */+!function(a){"use strict";var b=function(b,c){this.options=a.extend({},a.fn.editableform.defaults,c),this.$div=a(b),this.options.scope||(this.options.scope=this)};b.prototype={constructor:b,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=a(a.fn.editableform.template)},initButtons:function(){var b=this.$form.find(".editable-buttons");b.append(a.fn.editableform.buttons),"bottom"===this.options.showbuttons&&b.addClass("editable-buttons-bottom")},render:function(){this.$loading=a(a.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),a.when(this.input.render()).then(a.proxy(function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(a.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(a){a.preventDefault()});else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var b=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(b),this.$form.submit(a.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var a,b;this.$form?(a=this.$form.outerWidth(),b=this.$form.outerHeight(),a&&this.$loading.width(a),b&&this.$loading.height(b),this.$form.hide()):(a=this.$loading.parent().width(),a&&this.$loading.width(a)),this.$loading.show()},showForm:function(a){this.$loading.hide(),this.$form.show(),a!==!1&&this.input.activate(),this.$div.triggerHandler("show")},error:function(b){var c,d=this.$form.find(".control-group"),e=this.$form.find(".editable-error-block");if(b===!1)d.removeClass(a.fn.editableform.errorGroupClass),e.removeClass(a.fn.editableform.errorBlockClass).empty().hide();else{if(b){c=(""+b).split("\n");for(var f=0;f<c.length;f++)c[f]=a("<div>").text(c[f]).html();b=c.join("<br>")}d.addClass(a.fn.editableform.errorGroupClass),e.addClass(a.fn.editableform.errorBlockClass).html(b).show()}},submit:function(b){b.stopPropagation(),b.preventDefault();var c=this.input.input2value(),d=this.validate(c);if("object"===a.type(d)&&void 0!==d.newValue){if(c=d.newValue,this.input.value2input(c),"string"==typeof d.msg)return this.error(d.msg),this.showForm(),void 0}else if(d)return this.error(d),this.showForm(),void 0;if(!this.options.savenochange&&this.input.value2str(c)==this.input.value2str(this.value))return this.$div.triggerHandler("nochange"),void 0;var e=this.input.value2submit(c);this.isSaving=!0,a.when(this.save(e)).done(a.proxy(function(a){this.isSaving=!1;var b="function"==typeof this.options.success?this.options.success.call(this.options.scope,a,c):null;return b===!1?(this.error(!1),this.showForm(!1),void 0):"string"==typeof b?(this.error(b),this.showForm(),void 0):(b&&"object"==typeof b&&b.hasOwnProperty("newValue")&&(c=b.newValue),this.error(!1),this.value=c,this.$div.triggerHandler("save",{newValue:c,submitValue:e,response:a}),void 0)},this)).fail(a.proxy(function(a){this.isSaving=!1;var b;b="function"==typeof this.options.error?this.options.error.call(this.options.scope,a,c):"string"==typeof a?a:a.responseText||a.statusText||"Unknown error!",this.error(b),this.showForm()},this))},save:function(b){this.options.pk=a.fn.editableutils.tryParseJson(this.options.pk,!0);var c,d="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk,e=!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!==d&&void 0!==d));return e?(this.showLoading(),c={name:this.options.name||"",value:b,pk:d},"function"==typeof this.options.params?c=this.options.params.call(this.options.scope,c):(this.options.params=a.fn.editableutils.tryParseJson(this.options.params,!0),a.extend(c,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,c):a.ajax(a.extend({url:this.options.url,data:c,type:"POST"},this.options.ajaxOptions))):void 0},validate:function(a){return void 0===a&&(a=this.value),"function"==typeof this.options.validate?this.options.validate.call(this.options.scope,a):void 0},option:function(a,b){a in this.options&&(this.options[a]=b),"value"===a&&this.setValue(b)},setValue:function(a,b){this.value=b?this.input.str2value(a):a,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},a.fn.editableform=function(c){var d=arguments;return this.each(function(){var e=a(this),f=e.data("editableform"),g="object"==typeof c&&c;f||e.data("editableform",f=new b(this,g)),"string"==typeof c&&f[c].apply(f,Array.prototype.slice.call(d,1))})},a.fn.editableform.Constructor=b,a.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},a.fn.editableform.template='<form class="form-inline editableform"><div class="control-group"><div><div class="editable-input"></div><div class="editable-buttons"></div></div><div class="editable-error-block"></div></div></form>',a.fn.editableform.loading='<div class="editableform-loading"></div>',a.fn.editableform.buttons='<button type="submit" class="editable-submit">ok</button><button type="button" class="editable-cancel">cancel</button>',a.fn.editableform.errorGroupClass=null,a.fn.editableform.errorBlockClass="editable-error",a.fn.editableform.engine="jquery"}(window.jQuery),function(a){"use strict";a.fn.editableutils={inherit:function(a,b){var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a,a.superclass=b.prototype},setCursorPosition:function(a,b){if(a.setSelectionRange)a.setSelectionRange(b,b);else if(a.createTextRange){var c=a.createTextRange();c.collapse(!0),c.moveEnd("character",b),c.moveStart("character",b),c.select()}},tryParseJson:function(a,b){if("string"==typeof a&&a.length&&a.match(/^[\{\[].*[\}\]]$/))if(b)try{a=new Function("return "+a)()}catch(c){}finally{return a}else a=new Function("return "+a)();return a},sliceObj:function(b,c,d){var e,f,g={};if(!a.isArray(c)||!c.length)return g;for(var h=0;h<c.length;h++)e=c[h],b.hasOwnProperty(e)&&(g[e]=b[e]),d!==!0&&(f=e.toLowerCase(),b.hasOwnProperty(f)&&(g[e]=b[f]));return g},getConfigData:function(b){var c={};return a.each(b.data(),function(a,b){("object"!=typeof b||b&&"object"==typeof b&&(b.constructor===Object||b.constructor===Array))&&(c[a]=b)}),c},objectKeys:function(a){if(Object.keys)return Object.keys(a);if(a!==Object(a))throw new TypeError("Object.keys called on a non-object");var b,c=[];for(b in a)Object.prototype.hasOwnProperty.call(a,b)&&c.push(b);return c},escape:function(b){return a("<div>").text(b).html()},itemsByValue:function(b,c,d){if(!c||null===b)return[];if("function"!=typeof d){var e=d||"value";d=function(a){return a[e]}}var f=a.isArray(b),g=[],h=this;return a.each(c,function(c,e){if(e.children)g=g.concat(h.itemsByValue(b,e.children,d));else if(f)a.grep(b,function(a){return a==(e&&"object"==typeof e?d(e):e)}).length&&g.push(e);else{var i=e&&"object"==typeof e?d(e):e;b==i&&g.push(e)}}),g},createInput:function(b){var c,d,e,f=b.type;return"date"===f&&("inline"===b.mode?a.fn.editabletypes.datefield?f="datefield":a.fn.editabletypes.dateuifield&&(f="dateuifield"):a.fn.editabletypes.date?f="date":a.fn.editabletypes.dateui&&(f="dateui"),"date"!==f||a.fn.editabletypes.date||(f="combodate")),"datetime"===f&&"inline"===b.mode&&(f="datetimefield"),"wysihtml5"!==f||a.fn.editabletypes[f]||(f="textarea"),"function"==typeof a.fn.editabletypes[f]?(c=a.fn.editabletypes[f],d=this.sliceObj(b,this.objectKeys(c.defaults)),e=new c(d)):(a.error("Unknown type: "+f),!1)},supportsTransitions:function(){var a=document.body||document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}}}(window.jQuery),function(a){"use strict";var b=function(a,b){this.init(a,b)},c=function(a,b){this.init(a,b)};b.prototype={containerName:null,containerDataName:null,innerCss:null,containerClass:"editable-container editable-popup",defaults:{},init:function(c,d){this.$element=a(c),this.options=a.extend({},a.fn.editableContainer.defaults,d),this.splitOptions(),this.formOptions.scope=this.$element[0],this.initContainer(),this.delayedHide=!1,this.$element.on("destroyed",a.proxy(function(){this.destroy()},this)),a(document).data("editable-handlers-attached")||(a(document).on("keyup.editable",function(b){27===b.which&&a(".editable-open").editableContainer("hide")}),a(document).on("click.editable",function(c){var d,e=a(c.target),f=[".editable-container",".ui-datepicker-header",".datepicker",".modal-backdrop",".bootstrap-wysihtml5-insert-image-modal",".bootstrap-wysihtml5-insert-link-modal"];if(a.contains(document.documentElement,c.target)&&!e.is(document)){for(d=0;d<f.length;d++)if(e.is(f[d])||e.parents(f[d]).length)return;b.prototype.closeOthers(c.target)}}),a(document).data("editable-handlers-attached",!0))},splitOptions:function(){if(this.containerOptions={},this.formOptions={},!a.fn[this.containerName])throw new Error(this.containerName+" not found. Have you included corresponding js file?");for(var b in this.options)b in this.defaults?this.containerOptions[b]=this.options[b]:this.formOptions[b]=this.options[b]},tip:function(){return this.container()?this.container().$tip:null},container:function(){var a;return this.containerDataName&&(a=this.$element.data(this.containerDataName))?a:a=this.$element.data(this.containerName)},call:function(){this.$element[this.containerName].apply(this.$element,arguments)},initContainer:function(){this.call(this.containerOptions)},renderForm:function(){this.$form.editableform(this.formOptions).on({save:a.proxy(this.save,this),nochange:a.proxy(function(){this.hide("nochange")},this),cancel:a.proxy(function(){this.hide("cancel")},this),show:a.proxy(function(){this.delayedHide?(this.hide(this.delayedHide.reason),this.delayedHide=!1):this.setPosition()},this),rendering:a.proxy(this.setPosition,this),resize:a.proxy(this.setPosition,this),rendered:a.proxy(function(){this.$element.triggerHandler("shown",a(this.options.scope).data("editable"))},this)}).editableform("render")},show:function(b){this.$element.addClass("editable-open"),b!==!1&&this.closeOthers(this.$element[0]),this.innerShow(),this.tip().addClass(this.containerClass),this.$form,this.$form=a("<div>"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(a){if(this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")){if(this.$form.data("editableform").isSaving)return this.delayedHide={reason:a},void 0;this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",a||"manual")}},innerShow:function(){},innerHide:function(){},toggle:function(a){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(a)},setPosition:function(){},save:function(a,b){this.$element.triggerHandler("save",b),this.hide("save")},option:function(a,b){this.options[a]=b,a in this.containerOptions?(this.containerOptions[a]=b,this.setContainerOption(a,b)):(this.formOptions[a]=b,this.$form&&this.$form.editableform("option",a,b))},setContainerOption:function(a,b){this.call("option",a,b)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(b){a(".editable-open").each(function(c,d){if(d!==b&&!a(d).find(b).length){var e=a(d),f=e.data("editableContainer");f&&("cancel"===f.options.onblur?e.data("editableContainer").hide("onblur"):"submit"===f.options.onblur&&e.data("editableContainer").tip().find("form").submit())}})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},a.fn.editableContainer=function(d){var e=arguments;return this.each(function(){var f=a(this),g="editableContainer",h=f.data(g),i="object"==typeof d&&d,j="inline"===i.mode?c:b;h||f.data(g,h=new j(this,i)),"string"==typeof d&&h[d].apply(h,Array.prototype.slice.call(e,1))})},a.fn.editableContainer.Popup=b,a.fn.editableContainer.Inline=c,a.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(a){a.handler&&a.handler()}}}(window.jQuery),function(a){"use strict";a.extend(a.fn.editableContainer.Inline.prototype,a.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=a("<span></span>"),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,a.proxy(function(){this.$element.show(),this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(a){"use strict";var b=function(b,c){this.$element=a(b),this.options=a.extend({},a.fn.editable.defaults,c,a.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!a.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};b.prototype={constructor:b,init:function(){var b,c=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=a.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(a.trim(this.$element.html())),c=!0):(this.options.value=a.fn.editableutils.tryParseJson(this.options.value,!0),this.value="string"==typeof this.options.value?this.input.str2value(this.options.value):this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",a.proxy(function(a){if(this.options.disabled||a.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var b="click"!==this.options.toggle;this.toggle(b)}},this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":b=!0;break;case"auto":b=!a.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!c;break;default:b=!1}a.when(b?this.render():!0).then(a.proxy(function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)},this))}},initLive:function(){var b=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",b,a.proxy(function(b){var c=a(b.target);c.data("editable")||(c.hasClass(this.options.emptyclass)&&c.empty(),c.editable(this.options).trigger(b))},this))},render:function(a){return this.options.display!==!1?this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,a):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,a):this.input.value2html(this.value,this.$element[0]):void 0},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(b,c){return b&&"object"==typeof b?(a.each(b,a.proxy(function(b,c){this.option(a.trim(b),c)},this)),void 0):(this.options[b]=c,"disabled"===b?c?this.disable():this.enable():("value"===b&&this.setValue(c),this.container&&this.container.option(b,c),this.input.option&&this.input.option(b,c),void 0))},handleEmpty:function(b){this.options.display!==!1&&(this.isEmpty=void 0!==b?b:"function"==typeof this.input.isEmpty?this.input.isEmpty(this.$element):""===a.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(b){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var c=a.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(c),this.$element.on("save.internal",a.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}this.container.show(b)}},hide:function(){this.container&&this.container.hide()},toggle:function(a){this.container&&this.container.tip().is(":visible")?this.hide():this.show(a)},save:function(a,b){if(this.options.unsavedclass){var c=!1;c=c||"function"==typeof this.options.url,c=c||this.options.display===!1,c=c||void 0!==b.response,c=c||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(b.newValue),c?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var d=this.$element,e=d.css("background-color");d.css("background-color",this.options.highlight),setTimeout(function(){"transparent"===e&&(e=""),d.css("background-color",e),d.addClass("editable-bg-transition"),setTimeout(function(){d.removeClass("editable-bg-transition")},1700)},10)}this.setValue(b.newValue,!1,b.response)},validate:function(){return"function"==typeof this.options.validate?this.options.validate.call(this,this.value):void 0},setValue:function(b,c,d){this.value=c?this.input.str2value(b):b,this.container&&this.container.option("value",this.value),a.when(this.render(d)).then(a.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},a.fn.editable=function(c){var d={},e=arguments,f="editable";switch(c){case"validate":return this.each(function(){var b,c=a(this),e=c.data(f);e&&(b=e.validate())&&(d[e.options.name]=b)}),d;case"getValue":return 2===arguments.length&&arguments[1]===!0?d=this.eq(0).data(f).value:this.each(function(){var b=a(this),c=b.data(f);c&&void 0!==c.value&&null!==c.value&&(d[c.options.name]=c.input.value2submit(c.value))}),d;case"submit":var g=arguments[1]||{},h=this,i=this.editable("validate");if(a.isEmptyObject(i)){var j={};if(1===h.length){var k=h.data("editable"),l={name:k.options.name||"",value:k.input.value2submit(k.value),pk:"function"==typeof k.options.pk?k.options.pk.call(k.options.scope):k.options.pk};"function"==typeof k.options.params?l=k.options.params.call(k.options.scope,l):(k.options.params=a.fn.editableutils.tryParseJson(k.options.params,!0),a.extend(l,k.options.params)),j={url:k.options.url,data:l,type:"POST"},g.success=g.success||k.options.success,g.error=g.error||k.options.error}else{var m=this.editable("getValue");j={url:g.url,data:m,type:"POST"}}j.success="function"==typeof g.success?function(a){g.success.call(h,a,g)}:a.noop,j.error="function"==typeof g.error?function(){g.error.apply(h,arguments)}:a.noop,g.ajaxOptions&&a.extend(j,g.ajaxOptions),g.data&&a.extend(j.data,g.data),a.ajax(j)}else"function"==typeof g.error&&g.error.call(h,i);return this}return this.each(function(){var d=a(this),g=d.data(f),h="object"==typeof c&&c;return h&&h.selector?(g=new b(this,h),void 0):(g||d.data(f,g=new b(this,h)),"string"==typeof c&&g[c].apply(g,Array.prototype.slice.call(e,1)),void 0)})},a.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(a){"use strict";a.fn.editabletypes={};var b=function(){};b.prototype={init:function(b,c,d){this.type=b,this.options=a.extend({},d,c)},prerender:function(){this.$tpl=a(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(b,c){a(c)[this.options.escape?"text":"html"](a.trim(b))},html2value:function(b){return a("<div>").html(b).text()},value2str:function(a){return a},str2value:function(a){return a},value2submit:function(a){return a},value2input:function(a){this.$input.val(a)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(b){return a("<div>").text(b).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(a){void 0!==this.options[a]&&null!==this.options[a]&&this.$input.attr(a,this.options[a])},option:function(a,b){this.options[a]=b}},b.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},a.extend(a.fn.editabletypes,{abstractinput:b})}(window.jQuery),function(a){"use strict";var b=function(){};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{render:function(){var b=a.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList(),b.resolve()},function(){this.error=this.options.sourceError,b.resolve()}),b.promise()},html2value:function(){return null},value2html:function(b,c,d,e){var f=a.Deferred(),g=function(){"function"==typeof d?d.call(c,b,this.sourceData,e):this.value2htmlFinal(b,c),f.resolve()};return null===b?g.call(this):this.onSourceReady(g,function(){f.resolve()}),f.promise()},onSourceReady:function(b,c){var d;if(a.isFunction(this.options.source)?(d=this.options.source.call(this.options.scope),this.sourceData=null):d=this.options.source,this.options.sourceCache&&a.isArray(this.sourceData))return b.call(this),void 0;try{d=a.fn.editableutils.tryParseJson(d,!1)}catch(e){return c.call(this),void 0}if("string"==typeof d){if(this.options.sourceCache){var f,g=d;if(a(document).data(g)||a(document).data(g,{}),f=a(document).data(g),f.loading===!1&&f.sourceData)return this.sourceData=f.sourceData,this.doPrepend(),b.call(this),void 0;if(f.loading===!0)return f.callbacks.push(a.proxy(function(){this.sourceData=f.sourceData,this.doPrepend(),b.call(this)},this)),f.err_callbacks.push(a.proxy(c,this)),void 0;f.loading=!0,f.callbacks=[],f.err_callbacks=[]}var h=a.extend({url:d,type:"get",cache:!1,dataType:"json",success:a.proxy(function(d){f&&(f.loading=!1),this.sourceData=this.makeArray(d),a.isArray(this.sourceData)?(f&&(f.sourceData=this.sourceData,a.each(f.callbacks,function(){this.call()})),this.doPrepend(),b.call(this)):(c.call(this),f&&a.each(f.err_callbacks,function(){this.call()}))},this),error:a.proxy(function(){c.call(this),f&&(f.loading=!1,a.each(f.err_callbacks,function(){this.call()}))},this)},this.options.sourceOptions);a.ajax(h)}else this.sourceData=this.makeArray(d),a.isArray(this.sourceData)?(this.doPrepend(),b.call(this)):c.call(this)},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(a.isArray(this.prependData)||(a.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=a.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),a.isArray(this.prependData)&&a.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(){},makeArray:function(b){var c,d,e,f,g=[];if(!b||"string"==typeof b)return null;if(a.isArray(b)){f=function(a,b){return d={value:a,text:b},c++>=2?!1:void 0};for(var h=0;h<b.length;h++)e=b[h],"object"==typeof e?(c=0,a.each(e,f),1===c?g.push(d):c>1&&(e.children&&(e.children=this.makeArray(e.children)),g.push(e))):g.push({value:e,text:e})}else a.each(b,function(a,b){g.push({value:a,text:b})});return g},option:function(a,b){this.options[a]=b,"source"===a&&(this.sourceData=null),"prepend"===a&&(this.prependData=null)}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null}),a.fn.editabletypes.list=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("text",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),a.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=a('<span class="editable-clear-x"></span>'),this.$input.after(this.$clear).css("padding-right",24).keyup(a.proxy(function(b){if(!~a.inArray(b.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var c=this;this.t=setTimeout(function(){c.toggleClear(b)},100)}},this)).parent().css("position","relative"),this.$clear.click(a.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(){if(this.$clear){var a=this.$input.val().length,b=this.$clear.is(":visible");a&&!b&&this.$clear.show(),!a&&b&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',placeholder:null,clear:!0}),a.fn.editabletypes.text=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("textarea",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown(function(b){b.ctrlKey&&13===b.which&&a(this).closest("form").submit()})},activate:function(){a.fn.editabletypes.text.prototype.activate.call(this)}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:"<textarea></textarea>",inputclass:"input-large",placeholder:null,rows:7}),a.fn.editabletypes.textarea=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("select",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.list),a.extend(b.prototype,{renderList:function(){this.$input.empty();var b=function(c,d){var e;if(a.isArray(d))for(var f=0;f<d.length;f++)e={},d[f].children?(e.label=d[f].text,c.append(b(a("<optgroup>",e),d[f].children))):(e.value=d[f].value,d[f].disabled&&(e.disabled=!0),c.append(a("<option>",e).text(d[f].text)));return c};b(this.$input,this.sourceData),this.setClass(),this.$input.on("keydown.editable",function(b){13===b.which&&a(this).closest("form").submit()})},value2htmlFinal:function(b,c){var d="",e=a.fn.editableutils.itemsByValue(b,this.sourceData);e.length&&(d=e[0].text),a.fn.editabletypes.abstractinput.prototype.value2html.call(this,d,c)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",function(){a(this).closest("form").submit()})}}),b.defaults=a.extend({},a.fn.editabletypes.list.defaults,{tpl:"<select></select>"}),a.fn.editabletypes.select=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("checklist",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.list),a.extend(b.prototype,{renderList:function(){var b;if(this.$tpl.empty(),a.isArray(this.sourceData)){for(var c=0;c<this.sourceData.length;c++)b=a("<label>").append(a("<input>",{type:"checkbox",value:this.sourceData[c].value})).append(a("<span>").text(" "+this.sourceData[c].text)),a("<div>").append(b).appendTo(this.$tpl);this.$input=this.$tpl.find('input[type="checkbox"]'),this.setClass()}},value2str:function(b){return a.isArray(b)?b.sort().join(a.trim(this.options.separator)):""},str2value:function(b){var c,d=null;return"string"==typeof b&&b.length?(c=new RegExp("\\s*"+a.trim(this.options.separator)+"\\s*"),d=b.split(c)):d=a.isArray(b)?b:[b],d},value2input:function(b){this.$input.prop("checked",!1),a.isArray(b)&&b.length&&this.$input.each(function(c,d){var e=a(d);a.each(b,function(a,b){e.val()==b&&e.prop("checked",!0)})})},input2value:function(){var b=[];return this.$input.filter(":checked").each(function(c,d){b.push(a(d).val())}),b},value2htmlFinal:function(b,c){var d=[],e=a.fn.editableutils.itemsByValue(b,this.sourceData),f=this.options.escape;e.length?(a.each(e,function(b,c){var e=f?a.fn.editableutils.escape(c.text):c.text;d.push(e)}),a(c).html(d.join("<br>"))):a(c).empty()},activate:function(){this.$input.first().focus()},autosubmit:function(){this.$input.on("keydown",function(b){13===b.which&&a(this).closest("form").submit()})}}),b.defaults=a.extend({},a.fn.editabletypes.list.defaults,{tpl:'<div class="editable-checklist"></div>',inputclass:null,separator:","}),a.fn.editabletypes.checklist=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("password",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.text),a.extend(b.prototype,{value2html:function(b,c){b?a(c).text("[hidden]"):a(c).empty()},html2value:function(){return null}}),b.defaults=a.extend({},a.fn.editabletypes.text.defaults,{tpl:'<input type="password">'}),a.fn.editabletypes.password=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("email",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.text),b.defaults=a.extend({},a.fn.editabletypes.text.defaults,{tpl:'<input type="email">'}),a.fn.editabletypes.email=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("url",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.text),b.defaults=a.extend({},a.fn.editabletypes.text.defaults,{tpl:'<input type="url">'}),a.fn.editabletypes.url=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("tel",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.text),b.defaults=a.extend({},a.fn.editabletypes.text.defaults,{tpl:'<input type="tel">'}),a.fn.editabletypes.tel=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("number",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.text),a.extend(b.prototype,{render:function(){b.superclass.render.call(this),this.setAttr("min"),this.setAttr("max"),this.setAttr("step")},postrender:function(){this.$clear&&this.$clear.css({right:24})}}),b.defaults=a.extend({},a.fn.editabletypes.text.defaults,{tpl:'<input type="number">',inputclass:"input-mini",min:null,max:null,step:null}),a.fn.editabletypes.number=b}(window.jQuery),function(a){"use strict";+var b=function(a){this.init("range",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.number),a.extend(b.prototype,{render:function(){this.$input=this.$tpl.filter("input"),this.setClass(),this.setAttr("min"),this.setAttr("max"),this.setAttr("step"),this.$input.on("input",function(){a(this).siblings("output").text(a(this).val())})},activate:function(){this.$input.focus()}}),b.defaults=a.extend({},a.fn.editabletypes.number.defaults,{tpl:'<input type="range"><output style="width: 30px; display: inline-block"></output>',inputclass:"input-medium"}),a.fn.editabletypes.range=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("time",a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{render:function(){this.setClass()}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="time">'}),a.fn.editabletypes.time=b}(window.jQuery),function(a){"use strict";var b=function(c){if(this.init("select2",c,b.defaults),c.select2=c.select2||{},this.sourceData=null,c.placeholder&&(c.select2.placeholder=c.placeholder),!c.select2.tags&&c.source){var d=c.source;a.isFunction(c.source)&&(d=c.source.call(c.scope)),"string"==typeof d?(c.select2.ajax=c.select2.ajax||{},c.select2.ajax.data||(c.select2.ajax.data=function(a){return{query:a}}),c.select2.ajax.results||(c.select2.ajax.results=function(a){return{results:a}}),c.select2.ajax.url=d):(this.sourceData=this.convertSource(d),c.select2.data=this.sourceData)}if(this.options.select2=a.extend({},b.defaults.select2,c.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2,this.idFunc=this.options.select2.id,"function"!=typeof this.idFunc){var e=this.idFunc||"id";this.idFunc=function(a){return a[e]}}this.formatSelection=this.options.select2.formatSelection,"function"!=typeof this.formatSelection&&(this.formatSelection=function(a){return a.text})};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{render:function(){this.setClass(),this.isRemote&&this.$input.on("select2-loaded",a.proxy(function(a){this.sourceData=a.items.results},this)),this.isMultiple&&this.$input.on("change",function(){a(this).closest("form").parent().triggerHandler("resize")})},value2html:function(c,d){var e,f="",g=this;this.options.select2.tags?e=c:this.sourceData&&(e=a.fn.editableutils.itemsByValue(c,this.sourceData,this.idFunc)),a.isArray(e)?(f=[],a.each(e,function(a,b){f.push(b&&"object"==typeof b?g.formatSelection(b):b)})):e&&(f=g.formatSelection(e)),f=a.isArray(f)?f.join(this.options.viewseparator):f,b.superclass.value2html.call(this,f,d)},html2value:function(a){return this.options.select2.tags?this.str2value(a,this.options.viewseparator):null},value2input:function(b){if(a.isArray(b)&&(b=b.join(this.getSeparator())),this.$input.data("select2")?this.$input.val(b).trigger("change",!0):(this.$input.val(b),this.$input.select2(this.options.select2)),this.isRemote&&!this.isMultiple&&!this.options.select2.initSelection){var c=this.options.select2.id,d=this.options.select2.formatSelection;if(!c&&!d){var e=a(this.options.scope);if(!e.data("editable").isEmpty){var f={id:b,text:e.text()};this.$input.select2("data",f)}}}},input2value:function(){return this.$input.select2("val")},str2value:function(b,c){if("string"!=typeof b||!this.isMultiple)return b;c=c||this.getSeparator();var d,e,f;if(null===b||b.length<1)return null;for(d=b.split(c),e=0,f=d.length;f>e;e+=1)d[e]=a.trim(d[e]);return d},autosubmit:function(){this.$input.on("change",function(b,c){c||a(this).closest("form").submit()})},getSeparator:function(){return this.options.select2.separator||a.fn.select2.defaults.separator},convertSource:function(b){if(a.isArray(b)&&b.length&&void 0!==b[0].value)for(var c=0;c<b.length;c++)void 0!==b[c].value&&(b[c].id=b[c].value,delete b[c].value);return b},destroy:function(){this.$input.data("select2")&&this.$input.select2("destroy")}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="hidden">',select2:null,placeholder:null,source:null,viewseparator:", "}),a.fn.editabletypes.select2=b}(window.jQuery),function(a){var b=function(b,c){return this.$element=a(b),this.$element.is("input")?(this.options=a.extend({},a.fn.combodate.defaults,c,this.$element.data()),this.init(),void 0):(a.error("Combodate should be applied to INPUT element"),void 0)};b.prototype={constructor:b,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]},this.$widget=a('<span class="combodate"></span>').html(this.getTemplate()),this.initCombos(),this.$widget.on("change","select",a.proxy(function(b){this.$element.val(this.getValue()).change(),this.options.smartDays&&(a(b.target).is(".month")||a(b.target).is(".year"))&&this.fillCombo("day")},this)),this.$widget.find("select").css("width","auto"),this.$element.hide().after(this.$widget),this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var b=this.options.template;return a.each(this.map,function(a,c){c=c[0];var d=new RegExp(c+"+"),e=c.length>1?c.substring(1,2):c;b=b.replace(d,"{"+e+"}")}),b=b.replace(/ /g," "),a.each(this.map,function(a,c){c=c[0];var d=c.length>1?c.substring(1,2):c;b=b.replace("{"+d+"}",'<select class="'+a+'"></select>')}),b},initCombos:function(){for(var a in this.map){var b=this.$widget.find("."+a);this["$"+a]=b.length?b:null,this.fillCombo(a)}},fillCombo:function(a){var b=this["$"+a];if(b){var c="fill"+a.charAt(0).toUpperCase()+a.slice(1),d=this[c](),e=b.val();b.empty();for(var f=0;f<d.length;f++)b.append('<option value="'+d[f][0]+'">'+d[f][1]+"</option>");b.val(e)}},fillCommon:function(a){var b,c=[];if("name"===this.options.firstItem){b=moment.relativeTime||moment.langData()._relativeTime;var d="function"==typeof b[a]?b[a](1,!0,a,!1):b[a];d=d.split(" ").reverse()[0],c.push(["",d])}else"empty"===this.options.firstItem&&c.push(["",""]);return c},fillDay:function(){var a,b,c=this.fillCommon("d"),d=-1!==this.options.template.indexOf("DD"),e=31;if(this.options.smartDays&&this.$month&&this.$year){var f=parseInt(this.$month.val(),10),g=parseInt(this.$year.val(),10);isNaN(f)||isNaN(g)||(e=moment([g,f]).daysInMonth())}for(b=1;e>=b;b++)a=d?this.leadZero(b):b,c.push([b,a]);return c},fillMonth:function(){var a,b,c=this.fillCommon("M"),d=-1!==this.options.template.indexOf("MMMM"),e=-1!==this.options.template.indexOf("MMM"),f=-1!==this.options.template.indexOf("MM");for(b=0;11>=b;b++)a=d?moment().date(1).month(b).format("MMMM"):e?moment().date(1).month(b).format("MMM"):f?this.leadZero(b+1):b+1,c.push([b,a]);return c},fillYear:function(){var a,b,c=[],d=-1!==this.options.template.indexOf("YYYY");for(b=this.options.maxYear;b>=this.options.minYear;b--)a=d?b:(b+"").substring(2),c[this.options.yearDescending?"push":"unshift"]([b,a]);return c=this.fillCommon("y").concat(c)},fillHour:function(){var a,b,c=this.fillCommon("h"),d=-1!==this.options.template.indexOf("h"),e=(-1!==this.options.template.indexOf("H"),-1!==this.options.template.toLowerCase().indexOf("hh")),f=d?1:0,g=d?12:23;for(b=f;g>=b;b++)a=e?this.leadZero(b):b,c.push([b,a]);return c},fillMinute:function(){var a,b,c=this.fillCommon("m"),d=-1!==this.options.template.indexOf("mm");for(b=0;59>=b;b+=this.options.minuteStep)a=d?this.leadZero(b):b,c.push([b,a]);return c},fillSecond:function(){var a,b,c=this.fillCommon("s"),d=-1!==this.options.template.indexOf("ss");for(b=0;59>=b;b+=this.options.secondStep)a=d?this.leadZero(b):b,c.push([b,a]);return c},fillAmpm:function(){var a=-1!==this.options.template.indexOf("a"),b=(-1!==this.options.template.indexOf("A"),[["am",a?"am":"AM"],["pm",a?"pm":"PM"]]);return b},getValue:function(b){var c,d={},e=this,f=!1;return a.each(this.map,function(a){if("ampm"!==a){var b="day"===a?1:0;return d[a]=e["$"+a]?parseInt(e["$"+a].val(),10):b,isNaN(d[a])?(f=!0,!1):void 0}}),f?"":(this.$ampm&&(d.hour=12===d.hour?"am"===this.$ampm.val()?0:12:"am"===this.$ampm.val()?d.hour:d.hour+12),c=moment([d.year,d.month,d.day,d.hour,d.minute,d.second]),this.highlight(c),b=void 0===b?this.options.format:b,null===b?c.isValid()?c:null:c.isValid()?c.format(b):"")},setValue:function(b){function c(b,c){var d={};return b.children("option").each(function(b,e){var f,g=a(e).attr("value");""!==g&&(f=Math.abs(g-c),("undefined"==typeof d.distance||f<d.distance)&&(d={value:g,distance:f}))}),d.value}if(b){var d="string"==typeof b?moment(b,this.options.format):moment(b),e=this,f={};d.isValid()&&(a.each(this.map,function(a,b){"ampm"!==a&&(f[a]=d[b[1]]())}),this.$ampm&&(f.hour>=12?(f.ampm="pm",f.hour>12&&(f.hour-=12)):(f.ampm="am",0===f.hour&&(f.hour=12))),a.each(f,function(a,b){e["$"+a]&&("minute"===a&&e.options.minuteStep>1&&e.options.roundTime&&(b=c(e["$"+a],b)),"second"===a&&e.options.secondStep>1&&e.options.roundTime&&(b=c(e["$"+a],b)),e["$"+a].val(b))}),this.options.smartDays&&this.fillCombo("day"),this.$element.val(d.format(this.options.format)).change())}},highlight:function(a){a.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(a){return 9>=a?"0"+a:a},destroy:function(){this.$widget.remove(),this.$element.removeData("combodate").show()}},a.fn.combodate=function(c){var d,e=Array.apply(null,arguments);return e.shift(),"getValue"===c&&this.length&&(d=this.eq(0).data("combodate"))?d.getValue.apply(d,e):this.each(function(){var d=a(this),f=d.data("combodate"),g="object"==typeof c&&c;f||d.data("combodate",f=new b(this,g)),"string"==typeof c&&"function"==typeof f[c]&&f[c].apply(f,e)})},a.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,roundTime:!0,smartDays:!1}}(window.jQuery),function(a){"use strict";var b=function(c){this.init("combodate",c,b.defaults),this.options.viewformat||(this.options.viewformat=this.options.format),c.combodate=a.fn.editableutils.tryParseJson(c.combodate,!0),this.options.combodate=a.extend({},b.defaults.combodate,c.combodate,{format:this.options.format,template:this.options.template})};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{render:function(){this.$input.combodate(this.options.combodate),"bs3"===a.fn.editableform.engine&&this.$input.siblings().find("select").addClass("form-control"),this.options.inputclass&&this.$input.siblings().find("select").addClass(this.options.inputclass)},value2html:function(a,c){var d=a?a.format(this.options.viewformat):"";b.superclass.value2html.call(this,d,c)},html2value:function(a){return a?moment(a,this.options.viewformat):null},value2str:function(a){return a?a.format(this.options.format):""},str2value:function(a){return a?moment(a,this.options.format):null},value2submit:function(a){return this.value2str(a)},value2input:function(a){this.$input.combodate("setValue",a)},input2value:function(){return this.$input.combodate("getValue",null)},activate:function(){this.$input.siblings(".combodate").find("select").eq(0).focus()},autosubmit:function(){}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',inputclass:null,format:"YYYY-MM-DD",viewformat:null,template:"D / MMM / YYYY",combodate:null}),a.fn.editabletypes.combodate=b}(window.jQuery),function(a){"use strict";var b=a.fn.editableform.Constructor.prototype.initInput;a.extend(a.fn.editableform.Constructor.prototype,{initTemplate:function(){this.$form=a(a.fn.editableform.template),this.$form.find(".control-group").addClass("form-group"),this.$form.find(".editable-error-block").addClass("help-block")},initInput:function(){b.apply(this);var c=null===this.input.options.inputclass||this.input.options.inputclass===!1,d="input-sm",e="text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs".split(",");~a.inArray(this.input.type,e)&&(this.input.$input.addClass("form-control"),c&&(this.input.options.inputclass=d,this.input.$input.addClass(d)));for(var f=this.$form.find(".editable-buttons"),g=c?[d]:this.input.options.inputclass.split(" "),h=0;h<g.length;h++)"input-lg"===g[h].toLowerCase()&&f.find("button").removeClass("btn-sm").addClass("btn-lg")}}),a.fn.editableform.buttons='<button type="submit" class="btn btn-primary btn-sm editable-submit"><i class="glyphicon glyphicon-ok"></i></button><button type="button" class="btn btn-default btn-sm editable-cancel"><i class="glyphicon glyphicon-remove"></i></button>',a.fn.editableform.errorGroupClass="has-error",a.fn.editableform.errorBlockClass=null,a.fn.editableform.engine="bs3"}(window.jQuery),function(a){"use strict";a.extend(a.fn.editableContainer.Popup.prototype,{containerName:"popover",containerDataName:"bs.popover",innerCss:".popover-content",defaults:a.fn.popover.Constructor.DEFAULTS,initContainer:function(){a.extend(this.containerOptions,{trigger:"manual",selector:!1,content:" ",template:this.defaults.template});var b;this.$element.data("template")&&(b=this.$element.data("template"),this.$element.removeData("template")),this.call(this.containerOptions),b&&this.$element.data("template",b)},innerShow:function(){this.call("show")},innerHide:function(){this.call("hide")},innerDestroy:function(){this.call("destroy")},setContainerOption:function(a,b){this.container().options[a]=b},setPosition:function(){!function(){var a=this.tip(),b="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,d=c.test(b);d&&(b=b.replace(c,"")||"top");var e=this.getPosition(),f=a[0].offsetWidth,g=a[0].offsetHeight;if(d){var h=this.$element.parent(),i=b,j=document.documentElement.scrollTop||document.body.scrollTop,k="body"==this.options.container?window.innerWidth:h.outerWidth(),l="body"==this.options.container?window.innerHeight:h.outerHeight(),m="body"==this.options.container?0:h.offset().left;b="bottom"==b&&e.top+e.height+g-j>l?"top":"top"==b&&e.top-j-g<0?"bottom":"right"==b&&e.right+f>k?"left":"left"==b&&e.left-f<m?"right":b,a.removeClass(i).addClass(b)}var n=this.getCalculatedOffset(b,e,f,g);this.applyPlacement(n,b)}.call(this.container())}})}(window.jQuery),function(a){function b(){return new Date(Date.UTC.apply(Date,arguments))}function c(b,c){var d,e=a(b).data(),f={},g=new RegExp("^"+c.toLowerCase()+"([A-Z])"),c=new RegExp("^"+c.toLowerCase());for(var h in e)c.test(h)&&(d=h.replace(g,function(a,b){return b.toLowerCase()}),f[d]=e[h]);return f}function d(b){var c={};if(k[b]||(b=b.split("-")[0],k[b])){var d=k[b];return a.each(j,function(a,b){b in d&&(c[b]=d[b])}),c}}var e=function(b,c){this._process_options(c),this.element=a(b),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.is(".date")?this.element.find(".add-on, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=a(l.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right")),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(a,b){return parseInt(b)+1}),this._allow_update=!1,this.setStartDate(this.o.startDate),this.setEndDate(this.o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};e.prototype={constructor:e,_process_options:function(b){this._o=a.extend({},this._o,b);var c=this.o=a.extend({},this._o),d=c.language;switch(k[d]||(d=d.split("-")[0],k[d]||(d=i.language)),c.language=d,c.startView){case 2:case"decade":c.startView=2;break;case 1:case"year":c.startView=1;break;default:c.startView=0}switch(c.minViewMode){case 1:case"months":c.minViewMode=1;break;case 2:case"years":c.minViewMode=2;break;default:c.minViewMode=0}c.startView=Math.max(c.startView,c.minViewMode),c.weekStart%=7,c.weekEnd=(c.weekStart+6)%7;var e=l.parseFormat(c.format);c.startDate!==-1/0&&(c.startDate=l.parseDate(c.startDate,e,c.language)),1/0!==c.endDate&&(c.endDate=l.parseDate(c.endDate,e,c.language)),c.daysOfWeekDisabled=c.daysOfWeekDisabled||[],a.isArray(c.daysOfWeekDisabled)||(c.daysOfWeekDisabled=c.daysOfWeekDisabled.split(/[,\s]*/)),c.daysOfWeekDisabled=a.map(c.daysOfWeekDisabled,function(a){return parseInt(a,10)})},_events:[],_secondaryEvents:[],_applyEvents:function(a){for(var b,c,d=0;d<a.length;d++)b=a[d][0],c=a[d][1],b.on(c)},_unapplyEvents:function(a){for(var b,c,d=0;d<a.length;d++)b=a[d][0],c=a[d][1],b.off(c)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:a.proxy(this.show,this),keyup:a.proxy(this.update,this),keydown:a.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:a.proxy(this.show,this),keyup:a.proxy(this.update,this),keydown:a.proxy(this.keydown,this)}],[this.component,{click:a.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:a.proxy(this.show,this)}]],this._secondaryEvents=[[this.picker,{click:a.proxy(this.click,this)}],[a(window),{resize:a.proxy(this.place,this)}],[a(document),{mousedown:a.proxy(function(a){this.element.is(a.target)||this.element.find(a.target).size()||this.picker.is(a.target)||this.picker.find(a.target).size()||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(b,c){var d=c||this.date,e=new Date(d.getTime()+6e4*d.getTimezoneOffset());this.element.trigger({type:b,date:e,format:a.proxy(function(a){var b=a||this.o.format;return l.formatDate(d,b,this.o.language)},this)})},show:function(a){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.place(),this._attachSecondaryEvents(),a&&a.preventDefault(),this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},getDate:function(){var a=this.getUTCDate();return new Date(a.getTime()+6e4*a.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(a){this.setUTCDate(new Date(a.getTime()-6e4*a.getTimezoneOffset()))},setUTCDate:function(a){this.date=a,this.setValue()},setValue:function(){var a=this.getFormattedDate();this.isInput?this.element.val(a):this.component&&this.element.find("input").val(a)},getFormattedDate:function(a){return void 0===a&&(a=this.o.format),l.formatDate(this.date,a,this.o.language)},setStartDate:function(a){this._process_options({startDate:a}),this.update(),this.updateNavArrows()},setEndDate:function(a){this._process_options({endDate:a}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(a){this._process_options({daysOfWeekDisabled:a}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var b=parseInt(this.element.parents().filter(function(){return"auto"!=a(this).css("z-index")}).first().css("z-index"))+10,c=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:c.top+d,left:c.left,zIndex:b})}},_allow_update:!0,update:function(){if(this._allow_update){var a,b=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(a=arguments[0],b=!0):(a=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date),this.date=l.parseDate(a,this.o.format,this.o.language),b&&this.setValue(),this.viewDate=this.date<this.o.startDate?new Date(this.o.startDate):this.date>this.o.endDate?new Date(this.o.endDate):new Date(this.date),this.fill()}},fillDow:function(){var a=this.o.weekStart,b="<tr>";if(this.o.calendarWeeks){var c='<th class="cw"> </th>';b+=c,this.picker.find(".datepicker-days thead tr:first-child").prepend(c)}for(;a<this.o.weekStart+7;)b+='<th class="dow">'+k[this.o.language].daysMin[a++%7]+"</th>";b+="</tr>",this.picker.find(".datepicker-days thead").append(b)},fillMonths:function(){for(var a="",b=0;12>b;)a+='<span class="month">'+k[this.o.language].monthsShort[b++]+"</span>";this.picker.find(".datepicker-months td").html(a)},setRange:function(b){b&&b.length?this.range=a.map(b,function(a){return a.valueOf()}):delete this.range,this.fill()},getClassNames:function(b){var c=[],d=this.viewDate.getUTCFullYear(),e=this.viewDate.getUTCMonth(),f=this.date.valueOf(),g=new Date;return b.getUTCFullYear()<d||b.getUTCFullYear()==d&&b.getUTCMonth()<e?c.push("old"):(b.getUTCFullYear()>d||b.getUTCFullYear()==d&&b.getUTCMonth()>e)&&c.push("new"),this.o.todayHighlight&&b.getUTCFullYear()==g.getFullYear()&&b.getUTCMonth()==g.getMonth()&&b.getUTCDate()==g.getDate()&&c.push("today"),f&&b.valueOf()==f&&c.push("active"),(b.valueOf()<this.o.startDate||b.valueOf()>this.o.endDate||-1!==a.inArray(b.getUTCDay(),this.o.daysOfWeekDisabled))&&c.push("disabled"),this.range&&(b>this.range[0]&&b<this.range[this.range.length-1]&&c.push("range"),-1!=a.inArray(b.valueOf(),this.range)&&c.push("selected")),c},fill:function(){var c,d=new Date(this.viewDate),e=d.getUTCFullYear(),f=d.getUTCMonth(),g=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,i=1/0!==this.o.endDate?this.o.endDate.getUTCFullYear():1/0,j=1/0!==this.o.endDate?this.o.endDate.getUTCMonth():1/0;this.date&&this.date.valueOf(),this.picker.find(".datepicker-days thead th.datepicker-switch").text(k[this.o.language].months[f]+" "+e),this.picker.find("tfoot th.today").text(k[this.o.language].today).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(k[this.o.language].clear).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths();var m=b(e,f-1,28,0,0,0,0),n=l.getDaysInMonth(m.getUTCFullYear(),m.getUTCMonth());m.setUTCDate(n),m.setUTCDate(n-(m.getUTCDay()-this.o.weekStart+7)%7);var o=new Date(m);o.setUTCDate(o.getUTCDate()+42),o=o.valueOf();for(var p,q=[];m.valueOf()<o;){if(m.getUTCDay()==this.o.weekStart&&(q.push("<tr>"),this.o.calendarWeeks)){var r=new Date(+m+864e5*((this.o.weekStart-m.getUTCDay()-7)%7)),s=new Date(+r+864e5*((11-r.getUTCDay())%7)),t=new Date(+(t=b(s.getUTCFullYear(),0,1))+864e5*((11-t.getUTCDay())%7)),u=(s-t)/864e5/7+1;q.push('<td class="cw">'+u+"</td>")}p=this.getClassNames(m),p.push("day");var v=this.o.beforeShowDay(m);void 0===v?v={}:"boolean"==typeof v?v={enabled:v}:"string"==typeof v&&(v={classes:v}),v.enabled===!1&&p.push("disabled"),v.classes&&(p=p.concat(v.classes.split(/\s+/))),v.tooltip&&(c=v.tooltip),p=a.unique(p),q.push('<td class="'+p.join(" ")+'"'+(c?' title="'+c+'"':"")+">"+m.getUTCDate()+"</td>"),m.getUTCDay()==this.o.weekEnd&&q.push("</tr>"),m.setUTCDate(m.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(q.join(""));var w=this.date&&this.date.getUTCFullYear(),x=this.picker.find(".datepicker-months").find("th:eq(1)").text(e).end().find("span").removeClass("active");w&&w==e&&x.eq(this.date.getUTCMonth()).addClass("active"),(g>e||e>i)&&x.addClass("disabled"),e==g&&x.slice(0,h).addClass("disabled"),e==i&&x.slice(j+1).addClass("disabled"),q="",e=10*parseInt(e/10,10);var y=this.picker.find(".datepicker-years").find("th:eq(1)").text(e+"-"+(e+9)).end().find("td");e-=1;for(var z=-1;11>z;z++)q+='<span class="year'+(-1==z?" old":10==z?" new":"")+(w==e?" active":"")+(g>e||e>i?" disabled":"")+'">'+e+"</span>",e+=1;y.html(q)},updateNavArrows:function(){if(this._allow_update){var a=new Date(this.viewDate),b=a.getUTCFullYear(),c=a.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&b<=this.o.startDate.getUTCFullYear()&&c<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),1/0!==this.o.endDate&&b>=this.o.endDate.getUTCFullYear()&&c>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&b<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),1/0!==this.o.endDate&&b>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(c){c.preventDefault();var d=a(c.target).closest("span, td, th");if(1==d.length)switch(d[0].nodeName.toLowerCase()){case"th":switch(d[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var e=l.modes[this.viewMode].navStep*("prev"==d[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,e);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,e)}this.fill();break;case"today":var f=new Date;f=b(f.getFullYear(),f.getMonth(),f.getDate(),0,0,0),this.showMode(-2);var g="linked"==this.o.todayBtn?null:"view";this._setDate(f,g);break;case"clear":var h;this.isInput?h=this.element:this.component&&(h=this.element.find("input")),h&&h.val("").change(),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()}break;case"span":if(!d.is(".disabled")){if(this.viewDate.setUTCDate(1),d.is(".month")){var i=1,j=d.parent().find("span").index(d),k=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(j),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(b(k,j,i,0,0,0,0))}else{var k=parseInt(d.text(),10)||0,i=1,j=0;this.viewDate.setUTCFullYear(k),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(b(k,j,i,0,0,0,0))}this.showMode(-1),this.fill()}break;case"td":if(d.is(".day")&&!d.is(".disabled")){var i=parseInt(d.text(),10)||1,k=this.viewDate.getUTCFullYear(),j=this.viewDate.getUTCMonth();d.is(".old")?0===j?(j=11,k-=1):j-=1:d.is(".new")&&(11==j?(j=0,k+=1):j+=1),this._setDate(b(k,j,i,0,0,0,0))}}},_setDate:function(a,b){b&&"date"!=b||(this.date=new Date(a)),b&&"view"!=b||(this.viewDate=new Date(a)),this.fill(),this.setValue(),this._trigger("changeDate");var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&(c.change(),!this.o.autoclose||b&&"date"!=b||this.hide())},moveMonth:function(a,b){if(!b)return a;var c,d,e=new Date(a.valueOf()),f=e.getUTCDate(),g=e.getUTCMonth(),h=Math.abs(b);if(b=b>0?1:-1,1==h)d=-1==b?function(){return e.getUTCMonth()==g}:function(){return e.getUTCMonth()!=c},c=g+b,e.setUTCMonth(c),(0>c||c>11)&&(c=(c+12)%12);else{for(var i=0;h>i;i++)e=this.moveMonth(e,b);c=e.getUTCMonth(),e.setUTCDate(f),d=function(){return c!=e.getUTCMonth()}}for(;d();)e.setUTCDate(--f),e.setUTCMonth(c);return e},moveYear:function(a,b){return this.moveMonth(a,12*b)},dateWithinRange:function(a){return a>=this.o.startDate&&a<=this.o.endDate},keydown:function(a){if(this.picker.is(":not(:visible)"))return 27==a.keyCode&&this.show(),void 0;var b,c,d,e=!1;switch(a.keyCode){case 27:this.hide(),a.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;b=37==a.keyCode?-1:1,a.ctrlKey?(c=this.moveYear(this.date,b),d=this.moveYear(this.viewDate,b)):a.shiftKey?(c=this.moveMonth(this.date,b),d=this.moveMonth(this.viewDate,b)):(c=new Date(this.date),c.setUTCDate(this.date.getUTCDate()+b),d=new Date(this.viewDate),d.setUTCDate(this.viewDate.getUTCDate()+b)),this.dateWithinRange(c)&&(this.date=c,this.viewDate=d,this.setValue(),this.update(),a.preventDefault(),e=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;b=38==a.keyCode?-1:1,a.ctrlKey?(c=this.moveYear(this.date,b),d=this.moveYear(this.viewDate,b)):a.shiftKey?(c=this.moveMonth(this.date,b),d=this.moveMonth(this.viewDate,b)):(c=new Date(this.date),c.setUTCDate(this.date.getUTCDate()+7*b),d=new Date(this.viewDate),d.setUTCDate(this.viewDate.getUTCDate()+7*b)),this.dateWithinRange(c)&&(this.date=c,this.viewDate=d,this.setValue(),this.update(),a.preventDefault(),e=!0);break;case 13:this.hide(),a.preventDefault();break;case 9:this.hide()}if(e){this._trigger("changeDate");var f;this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change()}},showMode:function(a){a&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+a))),this.picker.find(">div").hide().filter(".datepicker-"+l.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var f=function(b,c){this.element=a(b),this.inputs=a.map(c.inputs,function(a){return a.jquery?a[0]:a}),delete c.inputs,a(this.inputs).datepicker(c).bind("changeDate",a.proxy(this.dateUpdated,this)),this.pickers=a.map(this.inputs,function(b){return a(b).data("datepicker")}),this.updateDates()};f.prototype={updateDates:function(){this.dates=a.map(this.pickers,function(a){return a.date}),this.updateRanges()},updateRanges:function(){var b=a.map(this.dates,function(a){return a.valueOf()});a.each(this.pickers,function(a,c){c.setRange(b)})},dateUpdated:function(b){var c=a(b.target).data("datepicker"),d=c.getUTCDate(),e=a.inArray(b.target,this.inputs),f=this.inputs.length;if(-1!=e){if(d<this.dates[e])for(;e>=0&&d<this.dates[e];)this.pickers[e--].setUTCDate(d);else if(d>this.dates[e])for(;f>e&&d>this.dates[e];)this.pickers[e++].setUTCDate(d);this.updateDates()}},remove:function(){a.map(this.pickers,function(a){a.remove()}),delete this.element.data().datepicker}};var g=a.fn.datepicker,h=a.fn.datepicker=function(b){var g=Array.apply(null,arguments);g.shift();var h;return this.each(function(){var j=a(this),k=j.data("datepicker"),l="object"==typeof b&&b;if(!k){var m=c(this,"date"),n=a.extend({},i,m,l),o=d(n.language),p=a.extend({},i,o,m,l);if(j.is(".input-daterange")||p.inputs){var q={inputs:p.inputs||j.find("input").toArray()};j.data("datepicker",k=new f(this,a.extend(p,q)))}else j.data("datepicker",k=new e(this,p))}return"string"==typeof b&&"function"==typeof k[b]&&(h=k[b].apply(k,g),void 0!==h)?!1:void 0}),void 0!==h?h:this},i=a.fn.datepicker.defaults={autoclose:!1,beforeShowDay:a.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},j=a.fn.datepicker.locale_opts=["format","rtl","weekStart"];a.fn.datepicker.Constructor=e;var k=a.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},l={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(a){return 0===a%4&&0!==a%100||0===a%400+},getDaysInMonth:function(a,b){return[31,l.isLeapYear(a)?29:28,31,30,31,30,31,31,30,31,30,31][b]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(a){var b=a.replace(this.validParts,"\0").split("\0"),c=a.match(this.validParts);if(!b||!b.length||!c||0===c.length)throw new Error("Invalid date format.");return{separators:b,parts:c}},parseDate:function(c,d,f){if(c instanceof Date)return c;if("string"==typeof d&&(d=l.parseFormat(d)),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(c)){var g,h,i=/([\-+]\d+)([dmwy])/,j=c.match(/([\-+]\d+)([dmwy])/g);c=new Date;for(var m=0;m<j.length;m++)switch(g=i.exec(j[m]),h=parseInt(g[1]),g[2]){case"d":c.setUTCDate(c.getUTCDate()+h);break;case"m":c=e.prototype.moveMonth.call(e.prototype,c,h);break;case"w":c.setUTCDate(c.getUTCDate()+7*h);break;case"y":c=e.prototype.moveYear.call(e.prototype,c,h)}return b(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),0,0,0)}var n,o,g,j=c&&c.match(this.nonpunctuation)||[],c=new Date,p={},q=["yyyy","yy","M","MM","m","mm","d","dd"],r={yyyy:function(a,b){return a.setUTCFullYear(b)},yy:function(a,b){return a.setUTCFullYear(2e3+b)},m:function(a,b){for(b-=1;0>b;)b+=12;for(b%=12,a.setUTCMonth(b);a.getUTCMonth()!=b;)a.setUTCDate(a.getUTCDate()-1);return a},d:function(a,b){return a.setUTCDate(b)}};r.M=r.MM=r.mm=r.m,r.dd=r.d,c=b(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0);var s=d.parts.slice();if(j.length!=s.length&&(s=a(s).filter(function(b,c){return-1!==a.inArray(c,q)}).toArray()),j.length==s.length){for(var m=0,t=s.length;t>m;m++){if(n=parseInt(j[m],10),g=s[m],isNaN(n))switch(g){case"MM":o=a(k[f].months).filter(function(){var a=this.slice(0,j[m].length),b=j[m].slice(0,a.length);return a==b}),n=a.inArray(o[0],k[f].months)+1;break;case"M":o=a(k[f].monthsShort).filter(function(){var a=this.slice(0,j[m].length),b=j[m].slice(0,a.length);return a==b}),n=a.inArray(o[0],k[f].monthsShort)+1}p[g]=n}for(var u,m=0;m<q.length;m++)u=q[m],u in p&&!isNaN(p[u])&&r[u](c,p[u])}return c},formatDate:function(b,c,d){"string"==typeof c&&(c=l.parseFormat(c));var e={d:b.getUTCDate(),D:k[d].daysShort[b.getUTCDay()],DD:k[d].days[b.getUTCDay()],m:b.getUTCMonth()+1,M:k[d].monthsShort[b.getUTCMonth()],MM:k[d].months[b.getUTCMonth()],yy:b.getUTCFullYear().toString().substring(2),yyyy:b.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m;for(var b=[],f=a.extend([],c.separators),g=0,h=c.parts.length;h>=g;g++)f.length&&b.push(f.shift()),b.push(e[c.parts[g]]);return b.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/></th><th colspan="5" class="datepicker-switch"></th><th class="next"><i class="icon-arrow-right"/></th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};l.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+l.headTemplate+"<tbody></tbody>"+l.footTemplate+"</table>"+"</div>"+'<div class="datepicker-months">'+'<table class="table-condensed">'+l.headTemplate+l.contTemplate+l.footTemplate+"</table>"+"</div>"+'<div class="datepicker-years">'+'<table class="table-condensed">'+l.headTemplate+l.contTemplate+l.footTemplate+"</table>"+"</div>"+"</div>",a.fn.datepicker.DPGlobal=l,a.fn.datepicker.noConflict=function(){return a.fn.datepicker=g,this},a(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(b){var c=a(this);c.data("datepicker")||(b.preventDefault(),h.call(c,"show"))}),a(function(){h.call(a('[data-provide="datepicker-inline"]'))})}(window.jQuery),function(a){"use strict";a.fn.bdatepicker=a.fn.datepicker.noConflict(),a.fn.datepicker||(a.fn.datepicker=a.fn.bdatepicker);var b=function(a){this.init("date",a,b.defaults),this.initPicker(a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{initPicker:function(b,c){this.options.viewformat||(this.options.viewformat=this.options.format),b.datepicker=a.fn.editableutils.tryParseJson(b.datepicker,!0),this.options.datepicker=a.extend({},c.datepicker,b.datepicker,{format:this.options.viewformat}),this.options.datepicker.language=this.options.datepicker.language||"en",this.dpg=a.fn.bdatepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat)},render:function(){this.$input.bdatepicker(this.options.datepicker),this.options.clear&&(this.$clear=a('<a href="#"></a>').html(this.options.clear).click(a.proxy(function(a){a.preventDefault(),a.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(a('<div class="editable-clear">').append(this.$clear)))},value2html:function(a,c){var d=a?this.dpg.formatDate(a,this.parsedViewFormat,this.options.datepicker.language):"";b.superclass.value2html.call(this,d,c)},html2value:function(a){return this.parseDate(a,this.parsedViewFormat)},value2str:function(a){return a?this.dpg.formatDate(a,this.parsedFormat,this.options.datepicker.language):""},str2value:function(a){return this.parseDate(a,this.parsedFormat)},value2submit:function(a){return this.value2str(a)},value2input:function(a){this.$input.bdatepicker("update",a)},input2value:function(){return this.$input.data("datepicker").date},activate:function(){},clear:function(){this.$input.data("datepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".day",function(b){if(!a(b.currentTarget).is(".old")&&!a(b.currentTarget).is(".new")){var c=a(this).closest("form");setTimeout(function(){c.submit()},200)}})},parseDate:function(a,b){var c,d=null;return a&&(d=this.dpg.parseDate(a,b,this.options.datepicker.language),"string"==typeof a&&(c=this.dpg.formatDate(d,b,this.options.datepicker.language),a!==c&&(d=null))),d}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!1},clear:"× clear"}),a.fn.editabletypes.date=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("datefield",a,b.defaults),this.initPicker(a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.date),a.extend(b.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.bdatepicker(this.options.datepicker),this.$input.off("focus keydown"),this.$input.keyup(a.proxy(function(){this.$tpl.removeData("date"),this.$tpl.bdatepicker("update")},this))},value2input:function(a){this.$input.val(a?this.dpg.formatDate(a,this.parsedViewFormat,this.options.datepicker.language):""),this.$tpl.bdatepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){a.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),b.defaults=a.extend({},a.fn.editabletypes.date.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-small",datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!0}}),a.fn.editabletypes.datefield=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("datetime",a,b.defaults),this.initPicker(a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.abstractinput),a.extend(b.prototype,{initPicker:function(b,c){this.options.viewformat||(this.options.viewformat=this.options.format),b.datetimepicker=a.fn.editableutils.tryParseJson(b.datetimepicker,!0),this.options.datetimepicker=a.extend({},c.datetimepicker,b.datetimepicker,{format:this.options.viewformat}),this.options.datetimepicker.language=this.options.datetimepicker.language||"en",this.dpg=a.fn.datetimepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format,this.options.formatType),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat,this.options.formatType)},render:function(){this.$input.datetimepicker(this.options.datetimepicker),this.$input.on("changeMode",function(){var b=a(this).closest("form").parent();setTimeout(function(){b.triggerHandler("resize")},0)}),this.options.clear&&(this.$clear=a('<a href="#"></a>').html(this.options.clear).click(a.proxy(function(a){a.preventDefault(),a.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(a('<div class="editable-clear">').append(this.$clear)))},value2html:function(a,c){var d=a?this.dpg.formatDate(this.toUTC(a),this.parsedViewFormat,this.options.datetimepicker.language,this.options.formatType):"";return c?(b.superclass.value2html.call(this,d,c),void 0):d},html2value:function(a){var b=this.parseDate(a,this.parsedViewFormat);return b?this.fromUTC(b):null},value2str:function(a){return a?this.dpg.formatDate(this.toUTC(a),this.parsedFormat,this.options.datetimepicker.language,this.options.formatType):""},str2value:function(a){var b=this.parseDate(a,this.parsedFormat);return b?this.fromUTC(b):null},value2submit:function(a){return this.value2str(a)},value2input:function(a){a&&this.$input.data("datetimepicker").setDate(a)},input2value:function(){var a=this.$input.data("datetimepicker");return a.date?a.getDate():null},activate:function(){},clear:function(){this.$input.data("datetimepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".minute",function(){var b=a(this).closest("form");setTimeout(function(){b.submit()},200)})},toUTC:function(a){return a?new Date(a.valueOf()-6e4*a.getTimezoneOffset()):a},fromUTC:function(a){return a?new Date(a.valueOf()+6e4*a.getTimezoneOffset()):a},parseDate:function(a,b){var c,d=null;return a&&(d=this.dpg.parseDate(a,b,this.options.datetimepicker.language,this.options.formatType),"string"==typeof a&&(c=this.dpg.formatDate(d,b,this.options.datetimepicker.language,this.options.formatType),a!==c&&(d=null))),d}}),b.defaults=a.extend({},a.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd hh:ii",formatType:"standard",viewformat:null,datetimepicker:{todayHighlight:!1,autoclose:!1},clear:"× clear"}),a.fn.editabletypes.datetime=b}(window.jQuery),function(a){"use strict";var b=function(a){this.init("datetimefield",a,b.defaults),this.initPicker(a,b.defaults)};a.fn.editableutils.inherit(b,a.fn.editabletypes.datetime),a.extend(b.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.datetimepicker(this.options.datetimepicker),this.$input.off("focus keydown"),this.$input.keyup(a.proxy(function(){this.$tpl.removeData("date"),this.$tpl.datetimepicker("update")},this))},value2input:function(a){this.$input.val(this.value2html(a)),this.$tpl.datetimepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){a.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),b.defaults=a.extend({},a.fn.editabletypes.datetime.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-medium",datetimepicker:{todayHighlight:!1,autoclose:!0}}),a.fn.editabletypes.datetimefield=b}(window.jQuery);\ No newline at end of filediff --git a/data/devlibs/font-awesome-4.0.3/css/font-awesome.css b/data/devlibs/font-awesome-4.0.3/css/font-awesome.cssnew file mode 100644index 000000000..048cff973--- /dev/null+++ b/data/devlibs/font-awesome-4.0.3/css/font-awesome.css@@ -0,0 +1,1338 @@+/*!+ * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)+ */+/* FONT PATH+ * -------------------------- */+@font-face {+ font-family: 'FontAwesome';+ src: url('../fonts/fontawesome-webfont.eot?v=4.0.3');+ src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');+ font-weight: normal;+ font-style: normal;+}+.fa {+ display: inline-block;+ font-family: FontAwesome;+ font-style: normal;+ font-weight: normal;+ line-height: 1;+ -webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;+}+/* makes the font 33% larger relative to the icon container */+.fa-lg {+ font-size: 1.3333333333333333em;+ line-height: 0.75em;+ vertical-align: -15%;+}+.fa-2x {+ font-size: 2em;+}+.fa-3x {+ font-size: 3em;+}+.fa-4x {+ font-size: 4em;+}+.fa-5x {+ font-size: 5em;+}+.fa-fw {+ width: 1.2857142857142858em;+ text-align: center;+}+.fa-ul {+ padding-left: 0;+ margin-left: 2.142857142857143em;+ list-style-type: none;+}+.fa-ul > li {+ position: relative;+}+.fa-li {+ position: absolute;+ left: -2.142857142857143em;+ width: 2.142857142857143em;+ top: 0.14285714285714285em;+ text-align: center;+}+.fa-li.fa-lg {+ left: -1.8571428571428572em;+}+.fa-border {+ padding: .2em .25em .15em;+ border: solid 0.08em #eeeeee;+ border-radius: .1em;+}+.pull-right {+ float: right;+}+.pull-left {+ float: left;+}+.fa.pull-left {+ margin-right: .3em;+}+.fa.pull-right {+ margin-left: .3em;+}+.fa-spin {+ -webkit-animation: spin 2s infinite linear;+ -moz-animation: spin 2s infinite linear;+ -o-animation: spin 2s infinite linear;+ animation: spin 2s infinite linear;+}+@-moz-keyframes spin {+ 0% {+ -moz-transform: rotate(0deg);+ }+ 100% {+ -moz-transform: rotate(359deg);+ }+}+@-webkit-keyframes spin {+ 0% {+ -webkit-transform: rotate(0deg);+ }+ 100% {+ -webkit-transform: rotate(359deg);+ }+}+@-o-keyframes spin {+ 0% {+ -o-transform: rotate(0deg);+ }+ 100% {+ -o-transform: rotate(359deg);+ }+}+@-ms-keyframes spin {+ 0% {+ -ms-transform: rotate(0deg);+ }+ 100% {+ -ms-transform: rotate(359deg);+ }+}+@keyframes spin {+ 0% {+ transform: rotate(0deg);+ }+ 100% {+ transform: rotate(359deg);+ }+}+.fa-rotate-90 {+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);+ -webkit-transform: rotate(90deg);+ -moz-transform: rotate(90deg);+ -ms-transform: rotate(90deg);+ -o-transform: rotate(90deg);+ transform: rotate(90deg);+}+.fa-rotate-180 {+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);+ -webkit-transform: rotate(180deg);+ -moz-transform: rotate(180deg);+ -ms-transform: rotate(180deg);+ -o-transform: rotate(180deg);+ transform: rotate(180deg);+}+.fa-rotate-270 {+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);+ -webkit-transform: rotate(270deg);+ -moz-transform: rotate(270deg);+ -ms-transform: rotate(270deg);+ -o-transform: rotate(270deg);+ transform: rotate(270deg);+}+.fa-flip-horizontal {+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);+ -webkit-transform: scale(-1, 1);+ -moz-transform: scale(-1, 1);+ -ms-transform: scale(-1, 1);+ -o-transform: scale(-1, 1);+ transform: scale(-1, 1);+}+.fa-flip-vertical {+ filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);+ -webkit-transform: scale(1, -1);+ -moz-transform: scale(1, -1);+ -ms-transform: scale(1, -1);+ -o-transform: scale(1, -1);+ transform: scale(1, -1);+}+.fa-stack {+ position: relative;+ display: inline-block;+ width: 2em;+ height: 2em;+ line-height: 2em;+ vertical-align: middle;+}+.fa-stack-1x,+.fa-stack-2x {+ position: absolute;+ left: 0;+ width: 100%;+ text-align: center;+}+.fa-stack-1x {+ line-height: inherit;+}+.fa-stack-2x {+ font-size: 2em;+}+.fa-inverse {+ color: #ffffff;+}+/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen+ readers do not read off random characters that represent icons */+.fa-glass:before {+ content: "\f000";+}+.fa-music:before {+ content: "\f001";+}+.fa-search:before {+ content: "\f002";+}+.fa-envelope-o:before {+ content: "\f003";+}+.fa-heart:before {+ content: "\f004";+}+.fa-star:before {+ content: "\f005";+}+.fa-star-o:before {+ content: "\f006";+}+.fa-user:before {+ content: "\f007";+}+.fa-film:before {+ content: "\f008";+}+.fa-th-large:before {+ content: "\f009";+}+.fa-th:before {+ content: "\f00a";+}+.fa-th-list:before {+ content: "\f00b";+}+.fa-check:before {+ content: "\f00c";+}+.fa-times:before {+ content: "\f00d";+}+.fa-search-plus:before {+ content: "\f00e";+}+.fa-search-minus:before {+ content: "\f010";+}+.fa-power-off:before {+ content: "\f011";+}+.fa-signal:before {+ content: "\f012";+}+.fa-gear:before,+.fa-cog:before {+ content: "\f013";+}+.fa-trash-o:before {+ content: "\f014";+}+.fa-home:before {+ content: "\f015";+}+.fa-file-o:before {+ content: "\f016";+}+.fa-clock-o:before {+ content: "\f017";+}+.fa-road:before {+ content: "\f018";+}+.fa-download:before {+ content: "\f019";+}+.fa-arrow-circle-o-down:before {+ content: "\f01a";+}+.fa-arrow-circle-o-up:before {+ content: "\f01b";+}+.fa-inbox:before {+ content: "\f01c";+}+.fa-play-circle-o:before {+ content: "\f01d";+}+.fa-rotate-right:before,+.fa-repeat:before {+ content: "\f01e";+}+.fa-refresh:before {+ content: "\f021";+}+.fa-list-alt:before {+ content: "\f022";+}+.fa-lock:before {+ content: "\f023";+}+.fa-flag:before {+ content: "\f024";+}+.fa-headphones:before {+ content: "\f025";+}+.fa-volume-off:before {+ content: "\f026";+}+.fa-volume-down:before {+ content: "\f027";+}+.fa-volume-up:before {+ content: "\f028";+}+.fa-qrcode:before {+ content: "\f029";+}+.fa-barcode:before {+ content: "\f02a";+}+.fa-tag:before {+ content: "\f02b";+}+.fa-tags:before {+ content: "\f02c";+}+.fa-book:before {+ content: "\f02d";+}+.fa-bookmark:before {+ content: "\f02e";+}+.fa-print:before {+ content: "\f02f";+}+.fa-camera:before {+ content: "\f030";+}+.fa-font:before {+ content: "\f031";+}+.fa-bold:before {+ content: "\f032";+}+.fa-italic:before {+ content: "\f033";+}+.fa-text-height:before {+ content: "\f034";+}+.fa-text-width:before {+ content: "\f035";+}+.fa-align-left:before {+ content: "\f036";+}+.fa-align-center:before {+ content: "\f037";+}+.fa-align-right:before {+ content: "\f038";+}+.fa-align-justify:before {+ content: "\f039";+}+.fa-list:before {+ content: "\f03a";+}+.fa-dedent:before,+.fa-outdent:before {+ content: "\f03b";+}+.fa-indent:before {+ content: "\f03c";+}+.fa-video-camera:before {+ content: "\f03d";+}+.fa-picture-o:before {+ content: "\f03e";+}+.fa-pencil:before {+ content: "\f040";+}+.fa-map-marker:before {+ content: "\f041";+}+.fa-adjust:before {+ content: "\f042";+}+.fa-tint:before {+ content: "\f043";+}+.fa-edit:before,+.fa-pencil-square-o:before {+ content: "\f044";+}+.fa-share-square-o:before {+ content: "\f045";+}+.fa-check-square-o:before {+ content: "\f046";+}+.fa-arrows:before {+ content: "\f047";+}+.fa-step-backward:before {+ content: "\f048";+}+.fa-fast-backward:before {+ content: "\f049";+}+.fa-backward:before {+ content: "\f04a";+}+.fa-play:before {+ content: "\f04b";+}+.fa-pause:before {+ content: "\f04c";+}+.fa-stop:before {+ content: "\f04d";+}+.fa-forward:before {+ content: "\f04e";+}+.fa-fast-forward:before {+ content: "\f050";+}+.fa-step-forward:before {+ content: "\f051";+}+.fa-eject:before {+ content: "\f052";+}+.fa-chevron-left:before {+ content: "\f053";+}+.fa-chevron-right:before {+ content: "\f054";+}+.fa-plus-circle:before {+ content: "\f055";+}+.fa-minus-circle:before {+ content: "\f056";+}+.fa-times-circle:before {+ content: "\f057";+}+.fa-check-circle:before {+ content: "\f058";+}+.fa-question-circle:before {+ content: "\f059";+}+.fa-info-circle:before {+ content: "\f05a";+}+.fa-crosshairs:before {+ content: "\f05b";+}+.fa-times-circle-o:before {+ content: "\f05c";+}+.fa-check-circle-o:before {+ content: "\f05d";+}+.fa-ban:before {+ content: "\f05e";+}+.fa-arrow-left:before {+ content: "\f060";+}+.fa-arrow-right:before {+ content: "\f061";+}+.fa-arrow-up:before {+ content: "\f062";+}+.fa-arrow-down:before {+ content: "\f063";+}+.fa-mail-forward:before,+.fa-share:before {+ content: "\f064";+}+.fa-expand:before {+ content: "\f065";+}+.fa-compress:before {+ content: "\f066";+}+.fa-plus:before {+ content: "\f067";+}+.fa-minus:before {+ content: "\f068";+}+.fa-asterisk:before {+ content: "\f069";+}+.fa-exclamation-circle:before {+ content: "\f06a";+}+.fa-gift:before {+ content: "\f06b";+}+.fa-leaf:before {+ content: "\f06c";+}+.fa-fire:before {+ content: "\f06d";+}+.fa-eye:before {+ content: "\f06e";+}+.fa-eye-slash:before {+ content: "\f070";+}+.fa-warning:before,+.fa-exclamation-triangle:before {+ content: "\f071";+}+.fa-plane:before {+ content: "\f072";+}+.fa-calendar:before {+ content: "\f073";+}+.fa-random:before {+ content: "\f074";+}+.fa-comment:before {+ content: "\f075";+}+.fa-magnet:before {+ content: "\f076";+}+.fa-chevron-up:before {+ content: "\f077";+}+.fa-chevron-down:before {+ content: "\f078";+}+.fa-retweet:before {+ content: "\f079";+}+.fa-shopping-cart:before {+ content: "\f07a";+}+.fa-folder:before {+ content: "\f07b";+}+.fa-folder-open:before {+ content: "\f07c";+}+.fa-arrows-v:before {+ content: "\f07d";+}+.fa-arrows-h:before {+ content: "\f07e";+}+.fa-bar-chart-o:before {+ content: "\f080";+}+.fa-twitter-square:before {+ content: "\f081";+}+.fa-facebook-square:before {+ content: "\f082";+}+.fa-camera-retro:before {+ content: "\f083";+}+.fa-key:before {+ content: "\f084";+}+.fa-gears:before,+.fa-cogs:before {+ content: "\f085";+}+.fa-comments:before {+ content: "\f086";+}+.fa-thumbs-o-up:before {+ content: "\f087";+}+.fa-thumbs-o-down:before {+ content: "\f088";+}+.fa-star-half:before {+ content: "\f089";+}+.fa-heart-o:before {+ content: "\f08a";+}+.fa-sign-out:before {+ content: "\f08b";+}+.fa-linkedin-square:before {+ content: "\f08c";+}+.fa-thumb-tack:before {+ content: "\f08d";+}+.fa-external-link:before {+ content: "\f08e";+}+.fa-sign-in:before {+ content: "\f090";+}+.fa-trophy:before {+ content: "\f091";+}+.fa-github-square:before {+ content: "\f092";+}+.fa-upload:before {+ content: "\f093";+}+.fa-lemon-o:before {+ content: "\f094";+}+.fa-phone:before {+ content: "\f095";+}+.fa-square-o:before {+ content: "\f096";+}+.fa-bookmark-o:before {+ content: "\f097";+}+.fa-phone-square:before {+ content: "\f098";+}+.fa-twitter:before {+ content: "\f099";+}+.fa-facebook:before {+ content: "\f09a";+}+.fa-github:before {+ content: "\f09b";+}+.fa-unlock:before {+ content: "\f09c";+}+.fa-credit-card:before {+ content: "\f09d";+}+.fa-rss:before {+ content: "\f09e";+}+.fa-hdd-o:before {+ content: "\f0a0";+}+.fa-bullhorn:before {+ content: "\f0a1";+}+.fa-bell:before {+ content: "\f0f3";+}+.fa-certificate:before {+ content: "\f0a3";+}+.fa-hand-o-right:before {+ content: "\f0a4";+}+.fa-hand-o-left:before {+ content: "\f0a5";+}+.fa-hand-o-up:before {+ content: "\f0a6";+}+.fa-hand-o-down:before {+ content: "\f0a7";+}+.fa-arrow-circle-left:before {+ content: "\f0a8";+}+.fa-arrow-circle-right:before {+ content: "\f0a9";+}+.fa-arrow-circle-up:before {+ content: "\f0aa";+}+.fa-arrow-circle-down:before {+ content: "\f0ab";+}+.fa-globe:before {+ content: "\f0ac";+}+.fa-wrench:before {+ content: "\f0ad";+}+.fa-tasks:before {+ content: "\f0ae";+}+.fa-filter:before {+ content: "\f0b0";+}+.fa-briefcase:before {+ content: "\f0b1";+}+.fa-arrows-alt:before {+ content: "\f0b2";+}+.fa-group:before,+.fa-users:before {+ content: "\f0c0";+}+.fa-chain:before,+.fa-link:before {+ content: "\f0c1";+}+.fa-cloud:before {+ content: "\f0c2";+}+.fa-flask:before {+ content: "\f0c3";+}+.fa-cut:before,+.fa-scissors:before {+ content: "\f0c4";+}+.fa-copy:before,+.fa-files-o:before {+ content: "\f0c5";+}+.fa-paperclip:before {+ content: "\f0c6";+}+.fa-save:before,+.fa-floppy-o:before {+ content: "\f0c7";+}+.fa-square:before {+ content: "\f0c8";+}+.fa-bars:before {+ content: "\f0c9";+}+.fa-list-ul:before {+ content: "\f0ca";+}+.fa-list-ol:before {+ content: "\f0cb";+}+.fa-strikethrough:before {+ content: "\f0cc";+}+.fa-underline:before {+ content: "\f0cd";+}+.fa-table:before {+ content: "\f0ce";+}+.fa-magic:before {+ content: "\f0d0";+}+.fa-truck:before {+ content: "\f0d1";+}+.fa-pinterest:before {+ content: "\f0d2";+}+.fa-pinterest-square:before {+ content: "\f0d3";+}+.fa-google-plus-square:before {+ content: "\f0d4";+}+.fa-google-plus:before {+ content: "\f0d5";+}+.fa-money:before {+ content: "\f0d6";+}+.fa-caret-down:before {+ content: "\f0d7";+}+.fa-caret-up:before {+ content: "\f0d8";+}+.fa-caret-left:before {+ content: "\f0d9";+}+.fa-caret-right:before {+ content: "\f0da";+}+.fa-columns:before {+ content: "\f0db";+}+.fa-unsorted:before,+.fa-sort:before {+ content: "\f0dc";+}+.fa-sort-down:before,+.fa-sort-asc:before {+ content: "\f0dd";+}+.fa-sort-up:before,+.fa-sort-desc:before {+ content: "\f0de";+}+.fa-envelope:before {+ content: "\f0e0";+}+.fa-linkedin:before {+ content: "\f0e1";+}+.fa-rotate-left:before,+.fa-undo:before {+ content: "\f0e2";+}+.fa-legal:before,+.fa-gavel:before {+ content: "\f0e3";+}+.fa-dashboard:before,+.fa-tachometer:before {+ content: "\f0e4";+}+.fa-comment-o:before {+ content: "\f0e5";+}+.fa-comments-o:before {+ content: "\f0e6";+}+.fa-flash:before,+.fa-bolt:before {+ content: "\f0e7";+}+.fa-sitemap:before {+ content: "\f0e8";+}+.fa-umbrella:before {+ content: "\f0e9";+}+.fa-paste:before,+.fa-clipboard:before {+ content: "\f0ea";+}+.fa-lightbulb-o:before {+ content: "\f0eb";+}+.fa-exchange:before {+ content: "\f0ec";+}+.fa-cloud-download:before {+ content: "\f0ed";+}+.fa-cloud-upload:before {+ content: "\f0ee";+}+.fa-user-md:before {+ content: "\f0f0";+}+.fa-stethoscope:before {+ content: "\f0f1";+}+.fa-suitcase:before {+ content: "\f0f2";+}+.fa-bell-o:before {+ content: "\f0a2";+}+.fa-coffee:before {+ content: "\f0f4";+}+.fa-cutlery:before {+ content: "\f0f5";+}+.fa-file-text-o:before {+ content: "\f0f6";+}+.fa-building-o:before {+ content: "\f0f7";+}+.fa-hospital-o:before {+ content: "\f0f8";+}+.fa-ambulance:before {+ content: "\f0f9";+}+.fa-medkit:before {+ content: "\f0fa";+}+.fa-fighter-jet:before {+ content: "\f0fb";+}+.fa-beer:before {+ content: "\f0fc";+}+.fa-h-square:before {+ content: "\f0fd";+}+.fa-plus-square:before {+ content: "\f0fe";+}+.fa-angle-double-left:before {+ content: "\f100";+}+.fa-angle-double-right:before {+ content: "\f101";+}+.fa-angle-double-up:before {+ content: "\f102";+}+.fa-angle-double-down:before {+ content: "\f103";+}+.fa-angle-left:before {+ content: "\f104";+}+.fa-angle-right:before {+ content: "\f105";+}+.fa-angle-up:before {+ content: "\f106";+}+.fa-angle-down:before {+ content: "\f107";+}+.fa-desktop:before {+ content: "\f108";+}+.fa-laptop:before {+ content: "\f109";+}+.fa-tablet:before {+ content: "\f10a";+}+.fa-mobile-phone:before,+.fa-mobile:before {+ content: "\f10b";+}+.fa-circle-o:before {+ content: "\f10c";+}+.fa-quote-left:before {+ content: "\f10d";+}+.fa-quote-right:before {+ content: "\f10e";+}+.fa-spinner:before {+ content: "\f110";+}+.fa-circle:before {+ content: "\f111";+}+.fa-mail-reply:before,+.fa-reply:before {+ content: "\f112";+}+.fa-github-alt:before {+ content: "\f113";+}+.fa-folder-o:before {+ content: "\f114";+}+.fa-folder-open-o:before {+ content: "\f115";+}+.fa-smile-o:before {+ content: "\f118";+}+.fa-frown-o:before {+ content: "\f119";+}+.fa-meh-o:before {+ content: "\f11a";+}+.fa-gamepad:before {+ content: "\f11b";+}+.fa-keyboard-o:before {+ content: "\f11c";+}+.fa-flag-o:before {+ content: "\f11d";+}+.fa-flag-checkered:before {+ content: "\f11e";+}+.fa-terminal:before {+ content: "\f120";+}+.fa-code:before {+ content: "\f121";+}+.fa-reply-all:before {+ content: "\f122";+}+.fa-mail-reply-all:before {+ content: "\f122";+}+.fa-star-half-empty:before,+.fa-star-half-full:before,+.fa-star-half-o:before {+ content: "\f123";+}+.fa-location-arrow:before {+ content: "\f124";+}+.fa-crop:before {+ content: "\f125";+}+.fa-code-fork:before {+ content: "\f126";+}+.fa-unlink:before,+.fa-chain-broken:before {+ content: "\f127";+}+.fa-question:before {+ content: "\f128";+}+.fa-info:before {+ content: "\f129";+}+.fa-exclamation:before {+ content: "\f12a";+}+.fa-superscript:before {+ content: "\f12b";+}+.fa-subscript:before {+ content: "\f12c";+}+.fa-eraser:before {+ content: "\f12d";+}+.fa-puzzle-piece:before {+ content: "\f12e";+}+.fa-microphone:before {+ content: "\f130";+}+.fa-microphone-slash:before {+ content: "\f131";+}+.fa-shield:before {+ content: "\f132";+}+.fa-calendar-o:before {+ content: "\f133";+}+.fa-fire-extinguisher:before {+ content: "\f134";+}+.fa-rocket:before {+ content: "\f135";+}+.fa-maxcdn:before {+ content: "\f136";+}+.fa-chevron-circle-left:before {+ content: "\f137";+}+.fa-chevron-circle-right:before {+ content: "\f138";+}+.fa-chevron-circle-up:before {+ content: "\f139";+}+.fa-chevron-circle-down:before {+ content: "\f13a";+}+.fa-html5:before {+ content: "\f13b";+}+.fa-css3:before {+ content: "\f13c";+}+.fa-anchor:before {+ content: "\f13d";+}+.fa-unlock-alt:before {+ content: "\f13e";+}+.fa-bullseye:before {+ content: "\f140";+}+.fa-ellipsis-h:before {+ content: "\f141";+}+.fa-ellipsis-v:before {+ content: "\f142";+}+.fa-rss-square:before {+ content: "\f143";+}+.fa-play-circle:before {+ content: "\f144";+}+.fa-ticket:before {+ content: "\f145";+}+.fa-minus-square:before {+ content: "\f146";+}+.fa-minus-square-o:before {+ content: "\f147";+}+.fa-level-up:before {+ content: "\f148";+}+.fa-level-down:before {+ content: "\f149";+}+.fa-check-square:before {+ content: "\f14a";+}+.fa-pencil-square:before {+ content: "\f14b";+}+.fa-external-link-square:before {+ content: "\f14c";+}+.fa-share-square:before {+ content: "\f14d";+}+.fa-compass:before {+ content: "\f14e";+}+.fa-toggle-down:before,+.fa-caret-square-o-down:before {+ content: "\f150";+}+.fa-toggle-up:before,+.fa-caret-square-o-up:before {+ content: "\f151";+}+.fa-toggle-right:before,+.fa-caret-square-o-right:before {+ content: "\f152";+}+.fa-euro:before,+.fa-eur:before {+ content: "\f153";+}+.fa-gbp:before {+ content: "\f154";+}+.fa-dollar:before,+.fa-usd:before {+ content: "\f155";+}+.fa-rupee:before,+.fa-inr:before {+ content: "\f156";+}+.fa-cny:before,+.fa-rmb:before,+.fa-yen:before,+.fa-jpy:before {+ content: "\f157";+}+.fa-ruble:before,+.fa-rouble:before,+.fa-rub:before {+ content: "\f158";+}+.fa-won:before,+.fa-krw:before {+ content: "\f159";+}+.fa-bitcoin:before,+.fa-btc:before {+ content: "\f15a";+}+.fa-file:before {+ content: "\f15b";+}+.fa-file-text:before {+ content: "\f15c";+}+.fa-sort-alpha-asc:before {+ content: "\f15d";+}+.fa-sort-alpha-desc:before {+ content: "\f15e";+}+.fa-sort-amount-asc:before {+ content: "\f160";+}+.fa-sort-amount-desc:before {+ content: "\f161";+}+.fa-sort-numeric-asc:before {+ content: "\f162";+}+.fa-sort-numeric-desc:before {+ content: "\f163";+}+.fa-thumbs-up:before {+ content: "\f164";+}+.fa-thumbs-down:before {+ content: "\f165";+}+.fa-youtube-square:before {+ content: "\f166";+}+.fa-youtube:before {+ content: "\f167";+}+.fa-xing:before {+ content: "\f168";+}+.fa-xing-square:before {+ content: "\f169";+}+.fa-youtube-play:before {+ content: "\f16a";+}+.fa-dropbox:before {+ content: "\f16b";+}+.fa-stack-overflow:before {+ content: "\f16c";+}+.fa-instagram:before {+ content: "\f16d";+}+.fa-flickr:before {+ content: "\f16e";+}+.fa-adn:before {+ content: "\f170";+}+.fa-bitbucket:before {+ content: "\f171";+}+.fa-bitbucket-square:before {+ content: "\f172";+}+.fa-tumblr:before {+ content: "\f173";+}+.fa-tumblr-square:before {+ content: "\f174";+}+.fa-long-arrow-down:before {+ content: "\f175";+}+.fa-long-arrow-up:before {+ content: "\f176";+}+.fa-long-arrow-left:before {+ content: "\f177";+}+.fa-long-arrow-right:before {+ content: "\f178";+}+.fa-apple:before {+ content: "\f179";+}+.fa-windows:before {+ content: "\f17a";+}+.fa-android:before {+ content: "\f17b";+}+.fa-linux:before {+ content: "\f17c";+}+.fa-dribbble:before {+ content: "\f17d";+}+.fa-skype:before {+ content: "\f17e";+}+.fa-foursquare:before {+ content: "\f180";+}+.fa-trello:before {+ content: "\f181";+}+.fa-female:before {+ content: "\f182";+}+.fa-male:before {+ content: "\f183";+}+.fa-gittip:before {+ content: "\f184";+}+.fa-sun-o:before {+ content: "\f185";+}+.fa-moon-o:before {+ content: "\f186";+}+.fa-archive:before {+ content: "\f187";+}+.fa-bug:before {+ content: "\f188";+}+.fa-vk:before {+ content: "\f189";+}+.fa-weibo:before {+ content: "\f18a";+}+.fa-renren:before {+ content: "\f18b";+}+.fa-pagelines:before {+ content: "\f18c";+}+.fa-stack-exchange:before {+ content: "\f18d";+}+.fa-arrow-circle-o-right:before {+ content: "\f18e";+}+.fa-arrow-circle-o-left:before {+ content: "\f190";+}+.fa-toggle-left:before,+.fa-caret-square-o-left:before {+ content: "\f191";+}+.fa-dot-circle-o:before {+ content: "\f192";+}+.fa-wheelchair:before {+ content: "\f193";+}+.fa-vimeo-square:before {+ content: "\f194";+}+.fa-turkish-lira:before,+.fa-try:before {+ content: "\f195";+}+.fa-plus-square-o:before {+ content: "\f196";+}diff --git a/data/devlibs/font-awesome-4.0.3/css/font-awesome.min.css b/data/devlibs/font-awesome-4.0.3/css/font-awesome.min.cssnew file mode 100644index 000000000..449d6ac55--- /dev/null+++ b/data/devlibs/font-awesome-4.0.3/css/font-awesome.min.css@@ -0,0 +1,4 @@+/*!+ * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)+ */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.0.3');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.3333333333333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.2857142857142858em;text-align:center}.fa-ul{padding-left:0;margin-left:2.142857142857143em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;top:.14285714285714285em;text-align:center}.fa-li.fa-lg{left:-1.8571428571428572em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0,mirror=1);-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2,mirror=1);-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-asc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-desc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-reply-all:before{content:"\f122"}.fa-mail-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}\ No newline at end of filediff --git a/data/devlibs/font-awesome-4.0.3/fonts/FontAwesome.otf b/data/devlibs/font-awesome-4.0.3/fonts/FontAwesome.otfnew file mode 100644index 000000000..8b0f54e47Binary files /dev/null and b/data/devlibs/font-awesome-4.0.3/fonts/FontAwesome.otf differdiff --git a/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.eot b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.eotnew file mode 100644index 000000000..7c79c6a6bBinary files /dev/null and b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.eot differdiff --git a/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.svg b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.svgnew file mode 100644index 000000000..45fdf3383--- /dev/null+++ b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.svg@@ -0,0 +1,414 @@+<?xml version="1.0" standalone="no"?>+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >+<svg xmlns="http://www.w3.org/2000/svg">+<metadata></metadata>+<defs>+<font id="fontawesomeregular" horiz-adv-x="1536" >+<font-face units-per-em="1792" ascent="1536" descent="-256" />+<missing-glyph horiz-adv-x="448" />+<glyph unicode=" " horiz-adv-x="448" />+<glyph unicode="	" horiz-adv-x="448" />+<glyph unicode=" " horiz-adv-x="448" />+<glyph unicode="¨" horiz-adv-x="1792" />+<glyph unicode="©" horiz-adv-x="1792" />+<glyph unicode="®" horiz-adv-x="1792" />+<glyph unicode="´" horiz-adv-x="1792" />+<glyph unicode="Æ" horiz-adv-x="1792" />+<glyph unicode=" " horiz-adv-x="768" />+<glyph unicode=" " />+<glyph unicode=" " horiz-adv-x="768" />+<glyph unicode=" " />+<glyph unicode=" " horiz-adv-x="512" />+<glyph unicode=" " horiz-adv-x="384" />+<glyph unicode=" " horiz-adv-x="256" />+<glyph unicode=" " horiz-adv-x="256" />+<glyph unicode=" " horiz-adv-x="192" />+<glyph unicode=" " horiz-adv-x="307" />+<glyph unicode=" " horiz-adv-x="85" />+<glyph unicode=" " horiz-adv-x="307" />+<glyph unicode=" " horiz-adv-x="384" />+<glyph unicode="™" horiz-adv-x="1792" />+<glyph unicode="∞" horiz-adv-x="1792" />+<glyph unicode="≠" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="500" d="M0 0z" />+<glyph unicode="" horiz-adv-x="1792" d="M1699 1350q0 -35 -43 -78l-632 -632v-768h320q26 0 45 -19t19 -45t-19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45t45 19h320v768l-632 632q-43 43 -43 78q0 23 18 36.5t38 17.5t43 4h1408q23 0 43 -4t38 -17.5t18 -36.5z" />+<glyph unicode="" d="M1536 1312v-1120q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v537l-768 -237v-709q0 -50 -34 -89t-86 -60.5t-103.5 -32t-96.5 -10.5t-96.5 10.5t-103.5 32t-86 60.5t-34 89 t34 89t86 60.5t103.5 32t96.5 10.5q105 0 192 -39v967q0 31 19 56.5t49 35.5l832 256q12 4 28 4q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="1664" d="M1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -52 -38 -90t-90 -38q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5 t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />+<glyph unicode="" horiz-adv-x="1792" d="M1664 32v768q-32 -36 -69 -66q-268 -206 -426 -338q-51 -43 -83 -67t-86.5 -48.5t-102.5 -24.5h-1h-1q-48 0 -102.5 24.5t-86.5 48.5t-83 67q-158 132 -426 338q-37 30 -69 66v-768q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1664 1083v11v13.5t-0.5 13 t-3 12.5t-5.5 9t-9 7.5t-14 2.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5q0 -168 147 -284q193 -152 401 -317q6 -5 35 -29.5t46 -37.5t44.5 -31.5t50.5 -27.5t43 -9h1h1q20 0 43 9t50.5 27.5t44.5 31.5t46 37.5t35 29.5q208 165 401 317q54 43 100.5 115.5t46.5 131.5z M1792 1120v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47t47 -113z" />+<glyph unicode="" horiz-adv-x="1792" d="M896 -128q-26 0 -44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5q224 0 351 -124t127 -344q0 -221 -229 -450l-623 -600 q-18 -18 -44 -18z" />+<glyph unicode="" horiz-adv-x="1664" d="M1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -21 -10.5 -35.5t-30.5 -14.5q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455 l502 -73q56 -9 56 -46z" />+<glyph unicode="" horiz-adv-x="1664" d="M1137 532l306 297l-422 62l-189 382l-189 -382l-422 -62l306 -297l-73 -421l378 199l377 -199zM1664 889q0 -22 -26 -48l-363 -354l86 -500q1 -7 1 -20q0 -50 -41 -50q-19 0 -40 12l-449 236l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500 l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41t49 -41l225 -455l502 -73q56 -9 56 -46z" />+<glyph unicode="" horiz-adv-x="1408" d="M1408 131q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5t43 97.5t62 81t85.5 53.5t111.5 20q9 0 42 -21.5t74.5 -48t108 -48t133.5 -21.5t133.5 21.5t108 48t74.5 48t42 21.5q61 0 111.5 -20t85.5 -53.5t62 -81 t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M384 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 320v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM384 704v128q0 26 -19 45t-45 19h-128 q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 -64v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM384 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45 t45 -19h128q26 0 45 19t19 45zM1792 -64v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1408 704v512q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-512q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1792 320v128 q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 704v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1792 1088v128q0 26 -19 45t-45 19h-128q-26 0 -45 -19 t-19 -45v-128q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1920 1248v-1344q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1344q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />+<glyph unicode="" horiz-adv-x="1664" d="M768 512v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM768 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 512v-384q0 -52 -38 -90t-90 -38 h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90zM1664 1280v-384q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v384q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />+<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 288v-192q0 -40 -28 -68t-68 -28h-320 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1152 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="1792" d="M512 288v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM512 800v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 288v-192q0 -40 -28 -68t-68 -28h-960 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68zM512 1312v-192q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h320q40 0 68 -28t28 -68zM1792 800v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28 h960q40 0 68 -28t28 -68zM1792 1312v-192q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h960q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="1792" d="M1671 970q0 -40 -28 -68l-724 -724l-136 -136q-28 -28 -68 -28t-68 28l-136 136l-362 362q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -295l656 657q28 28 68 28t68 -28l136 -136q28 -28 28 -68z" />+<glyph unicode="" horiz-adv-x="1408" d="M1298 214q0 -40 -28 -68l-136 -136q-28 -28 -68 -28t-68 28l-294 294l-294 -294q-28 -28 -68 -28t-68 28l-136 136q-28 28 -28 68t28 68l294 294l-294 294q-28 28 -28 68t28 68l136 136q28 28 68 28t68 -28l294 -294l294 294q28 28 68 28t68 -28l136 -136q28 -28 28 -68 t-28 -68l-294 -294l294 -294q28 -28 28 -68z" />+<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-224q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v224h-224q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h224v224q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5v-224h224 q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5zM1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5 t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z" />+<glyph unicode="" horiz-adv-x="1664" d="M1024 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-576q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h576q13 0 22.5 -9.5t9.5 -22.5zM1152 704q0 185 -131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5t316.5 131.5t131.5 316.5z M1664 -128q0 -53 -37.5 -90.5t-90.5 -37.5q-54 0 -90 38l-343 342q-179 -124 -399 -124q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5t55.5 273.5t150 225t225 150t273.5 55.5t273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -220 -124 -399l343 -343q37 -37 37 -90z " />+<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61t-298 61t-245 164t-164 245t-61 298q0 182 80.5 343t226.5 270q43 32 95.5 25t83.5 -50q32 -42 24.5 -94.5t-49.5 -84.5q-98 -74 -151.5 -181t-53.5 -228q0 -104 40.5 -198.5t109.5 -163.5t163.5 -109.5 t198.5 -40.5t198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5q0 121 -53.5 228t-151.5 181q-42 32 -49.5 84.5t24.5 94.5q31 43 84 50t95 -25q146 -109 226.5 -270t80.5 -343zM896 1408v-640q0 -52 -38 -90t-90 -38t-90 38t-38 90v640q0 52 38 90t90 38t90 -38t38 -90z" />+<glyph unicode="" horiz-adv-x="1792" d="M256 96v-192q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM640 224v-320q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1024 480v-576q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23 v576q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1408 864v-960q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v960q0 14 9 23t23 9h192q14 0 23 -9t9 -23zM1792 1376v-1472q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1472q0 14 9 23t23 9h192q14 0 23 -9t9 -23z" />+<glyph unicode="" d="M1024 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1536 749v-222q0 -12 -8 -23t-20 -13l-185 -28q-19 -54 -39 -91q35 -50 107 -138q10 -12 10 -25t-9 -23q-27 -37 -99 -108t-94 -71q-12 0 -26 9l-138 108q-44 -23 -91 -38 q-16 -136 -29 -186q-7 -28 -36 -28h-222q-14 0 -24.5 8.5t-11.5 21.5l-28 184q-49 16 -90 37l-141 -107q-10 -9 -25 -9q-14 0 -25 11q-126 114 -165 168q-7 10 -7 23q0 12 8 23q15 21 51 66.5t54 70.5q-27 50 -41 99l-183 27q-13 2 -21 12.5t-8 23.5v222q0 12 8 23t19 13 l186 28q14 46 39 92q-40 57 -107 138q-10 12 -10 24q0 10 9 23q26 36 98.5 107.5t94.5 71.5q13 0 26 -10l138 -107q44 23 91 38q16 136 29 186q7 28 36 28h222q14 0 24.5 -8.5t11.5 -21.5l28 -184q49 -16 90 -37l142 107q9 9 24 9q13 0 25 -10q129 -119 165 -170q7 -8 7 -22 q0 -12 -8 -23q-15 -21 -51 -66.5t-54 -70.5q26 -50 41 -98l183 -28q13 -2 21 -12.5t8 -23.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M512 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM768 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1024 800v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1152 76v948h-896v-948q0 -22 7 -40.5t14.5 -27t10.5 -8.5h832q3 0 10.5 8.5t14.5 27t7 40.5zM480 1152h448l-48 117q-7 9 -17 11h-317q-10 -2 -17 -11zM1408 1120v-64q0 -14 -9 -23t-23 -9h-96v-948q0 -83 -47 -143.5t-113 -60.5h-832 q-66 0 -113 58.5t-47 141.5v952h-96q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h309l70 167q15 37 54 63t79 26h320q40 0 79 -26t54 -63l70 -167h309q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1664" d="M1408 544v-480q0 -26 -19 -45t-45 -19h-384v384h-256v-384h-384q-26 0 -45 19t-19 45v480q0 1 0.5 3t0.5 3l575 474l575 -474q1 -2 1 -6zM1631 613l-62 -74q-8 -9 -21 -11h-3q-13 0 -21 7l-692 577l-692 -577q-12 -8 -24 -7q-13 2 -21 11l-62 74q-8 10 -7 23.5t11 21.5 l719 599q32 26 76 26t76 -26l244 -204v195q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-408l219 -182q10 -8 11 -21.5t-7 -23.5z" />+<glyph unicode="" horiz-adv-x="1280" d="M128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280zM768 896h376q-10 29 -22 41l-313 313q-12 12 -41 22v-376zM1280 864v-896q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h640q40 0 88 -20t76 -48l312 -312q28 -28 48 -76t20 -88z " />+<glyph unicode="" d="M896 992v-448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h224v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M1111 540v4l-24 320q-1 13 -11 22.5t-23 9.5h-186q-13 0 -23 -9.5t-11 -22.5l-24 -320v-4q-1 -12 8 -20t21 -8h244q12 0 21 8t8 20zM1870 73q0 -73 -46 -73h-704q13 0 22 9.5t8 22.5l-20 256q-1 13 -11 22.5t-23 9.5h-272q-13 0 -23 -9.5t-11 -22.5l-20 -256 q-1 -13 8 -22.5t22 -9.5h-704q-46 0 -46 73q0 54 26 116l417 1044q8 19 26 33t38 14h339q-13 0 -23 -9.5t-11 -22.5l-15 -192q-1 -14 8 -23t22 -9h166q13 0 22 9t8 23l-15 192q-1 13 -11 22.5t-23 9.5h339q20 0 38 -14t26 -33l417 -1044q26 -62 26 -116z" />+<glyph unicode="" horiz-adv-x="1664" d="M1280 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 416v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h465l135 -136 q58 -56 136 -56t136 56l136 136h464q40 0 68 -28t28 -68zM1339 985q17 -41 -14 -70l-448 -448q-18 -19 -45 -19t-45 19l-448 448q-31 29 -14 70q17 39 59 39h256v448q0 26 19 45t45 19h256q26 0 45 -19t19 -45v-448h256q42 0 59 -39z" />+<glyph unicode="" d="M1120 608q0 -12 -10 -24l-319 -319q-11 -9 -23 -9t-23 9l-320 320q-15 16 -7 35q8 20 30 20h192v352q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-352h192q14 0 23 -9t9 -23zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273 t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1118 660q-8 -20 -30 -20h-192v-352q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v352h-192q-14 0 -23 9t-9 23q0 12 10 24l319 319q11 9 23 9t23 -9l320 -320q15 -16 7 -35zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198 t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1023 576h316q-1 3 -2.5 8t-2.5 8l-212 496h-708l-212 -496q-1 -2 -2.5 -8t-2.5 -8h316l95 -192h320zM1536 546v-482q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v482q0 62 25 123l238 552q10 25 36.5 42t52.5 17h832q26 0 52.5 -17t36.5 -42l238 -552 q25 -61 25 -123z" />+<glyph unicode="" d="M1184 640q0 -37 -32 -55l-544 -320q-15 -9 -32 -9q-16 0 -32 8q-32 19 -32 56v640q0 37 32 56q33 18 64 -1l544 -320q32 -18 32 -55zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l138 138q-148 137 -349 137q-104 0 -198.5 -40.5t-163.5 -109.5t-109.5 -163.5t-40.5 -198.5t40.5 -198.5t109.5 -163.5t163.5 -109.5t198.5 -40.5q119 0 225 52t179 147q7 10 23 12q14 0 25 -9 l137 -138q9 -8 9.5 -20.5t-7.5 -22.5q-109 -132 -264 -204.5t-327 -72.5q-156 0 -298 61t-245 164t-164 245t-61 298t61 298t164 245t245 164t298 61q147 0 284.5 -55.5t244.5 -156.5l130 129q29 31 70 14q39 -17 39 -59z" />+<glyph unicode="" d="M1511 480q0 -5 -1 -7q-64 -268 -268 -434.5t-478 -166.5q-146 0 -282.5 55t-243.5 157l-129 -129q-19 -19 -45 -19t-45 19t-19 45v448q0 26 19 45t45 19h448q26 0 45 -19t19 -45t-19 -45l-137 -137q71 -66 161 -102t187 -36q134 0 250 65t186 179q11 17 53 117 q8 23 30 23h192q13 0 22.5 -9.5t9.5 -22.5zM1536 1280v-448q0 -26 -19 -45t-45 -19h-448q-26 0 -45 19t-19 45t19 45l138 138q-148 137 -349 137q-134 0 -250 -65t-186 -179q-11 -17 -53 -117q-8 -23 -30 -23h-199q-13 0 -22.5 9.5t-9.5 22.5v7q65 268 270 434.5t480 166.5 q146 0 284 -55.5t245 -156.5l130 129q19 19 45 19t45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M384 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M384 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1536 352v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5z M1536 608v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5t9.5 -22.5zM1536 864v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h960q13 0 22.5 -9.5 t9.5 -22.5zM1664 160v832q0 13 -9.5 22.5t-22.5 9.5h-1472q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1472q13 0 22.5 9.5t9.5 22.5zM1792 1248v-1088q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1472q66 0 113 -47 t47 -113z" />+<glyph unicode="" horiz-adv-x="1152" d="M320 768h512v192q0 106 -75 181t-181 75t-181 -75t-75 -181v-192zM1152 672v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v192q0 184 132 316t316 132t316 -132t132 -316v-192h32q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="1792" d="M320 1280q0 -72 -64 -110v-1266q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v1266q-64 38 -64 110q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -25 -12.5 -38.5t-39.5 -27.5q-215 -116 -369 -116q-61 0 -123.5 22t-108.5 48 t-115.5 48t-142.5 22q-192 0 -464 -146q-17 -9 -33 -9q-26 0 -45 19t-19 45v742q0 32 31 55q21 14 79 43q236 120 421 120q107 0 200 -29t219 -88q38 -19 88 -19q54 0 117.5 21t110 47t88 47t54.5 21q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M1664 650q0 -166 -60 -314l-20 -49l-185 -33q-22 -83 -90.5 -136.5t-156.5 -53.5v-32q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v576q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-32q71 0 130 -35.5t93 -95.5l68 12q29 95 29 193q0 148 -88 279t-236.5 209t-315.5 78 t-315.5 -78t-236.5 -209t-88 -279q0 -98 29 -193l68 -12q34 60 93 95.5t130 35.5v32q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-576q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v32q-88 0 -156.5 53.5t-90.5 136.5l-185 33l-20 49q-60 148 -60 314q0 151 67 291t179 242.5 t266 163.5t320 61t320 -61t266 -163.5t179 -242.5t67 -291z" />+<glyph unicode="" horiz-adv-x="768" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1152" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142z" />+<glyph unicode="" horiz-adv-x="1664" d="M768 1184v-1088q0 -26 -19 -45t-45 -19t-45 19l-333 333h-262q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h262l333 333q19 19 45 19t45 -19t19 -45zM1152 640q0 -76 -42.5 -141.5t-112.5 -93.5q-10 -5 -25 -5q-26 0 -45 18.5t-19 45.5q0 21 12 35.5t29 25t34 23t29 35.5 t12 57t-12 57t-29 35.5t-34 23t-29 25t-12 35.5q0 27 19 45.5t45 18.5q15 0 25 -5q70 -27 112.5 -93t42.5 -142zM1408 640q0 -153 -85 -282.5t-225 -188.5q-13 -5 -25 -5q-27 0 -46 19t-19 45q0 39 39 59q56 29 76 44q74 54 115.5 135.5t41.5 173.5t-41.5 173.5 t-115.5 135.5q-20 15 -76 44q-39 20 -39 59q0 26 19 45t45 19q13 0 26 -5q140 -59 225 -188.5t85 -282.5zM1664 640q0 -230 -127 -422.5t-338 -283.5q-13 -5 -26 -5q-26 0 -45 19t-19 45q0 36 39 59q7 4 22.5 10.5t22.5 10.5q46 25 82 51q123 91 192 227t69 289t-69 289 t-192 227q-36 26 -82 51q-7 4 -22.5 10.5t-22.5 10.5q-39 23 -39 59q0 26 19 45t45 19q13 0 26 -5q211 -91 338 -283.5t127 -422.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M384 384v-128h-128v128h128zM384 1152v-128h-128v128h128zM1152 1152v-128h-128v128h128zM128 129h384v383h-384v-383zM128 896h384v384h-384v-384zM896 896h384v384h-384v-384zM640 640v-640h-640v640h640zM1152 128v-128h-128v128h128zM1408 128v-128h-128v128h128z M1408 640v-384h-384v128h-128v-384h-128v640h384v-128h128v128h128zM640 1408v-640h-640v640h640zM1408 1408v-640h-640v640h640z" />+<glyph unicode="" horiz-adv-x="1792" d="M63 0h-63v1408h63v-1408zM126 1h-32v1407h32v-1407zM220 1h-31v1407h31v-1407zM377 1h-31v1407h31v-1407zM534 1h-62v1407h62v-1407zM660 1h-31v1407h31v-1407zM723 1h-31v1407h31v-1407zM786 1h-31v1407h31v-1407zM943 1h-63v1407h63v-1407zM1100 1h-63v1407h63v-1407z M1226 1h-63v1407h63v-1407zM1352 1h-63v1407h63v-1407zM1446 1h-63v1407h63v-1407zM1635 1h-94v1407h94v-1407zM1698 1h-32v1407h32v-1407zM1792 0h-63v1408h63v-1408z" />+<glyph unicode="" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1920" d="M448 1088q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1515 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-53 0 -90 37l-715 716q-38 37 -64.5 101t-26.5 117v416q0 52 38 90t90 38h416q53 0 117 -26.5t102 -64.5 l715 -714q37 -39 37 -91zM1899 512q0 -53 -37 -90l-491 -492q-39 -37 -91 -37q-36 0 -59 14t-53 45l470 470q37 37 37 90q0 52 -37 91l-715 714q-38 38 -102 64.5t-117 26.5h224q53 0 117 -26.5t102 -64.5l715 -714q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1664" d="M1639 1058q40 -57 18 -129l-275 -906q-19 -64 -76.5 -107.5t-122.5 -43.5h-923q-77 0 -148.5 53.5t-99.5 131.5q-24 67 -2 127q0 4 3 27t4 37q1 8 -3 21.5t-3 19.5q2 11 8 21t16.5 23.5t16.5 23.5q23 38 45 91.5t30 91.5q3 10 0.5 30t-0.5 28q3 11 17 28t17 23 q21 36 42 92t25 90q1 9 -2.5 32t0.5 28q4 13 22 30.5t22 22.5q19 26 42.5 84.5t27.5 96.5q1 8 -3 25.5t-2 26.5q2 8 9 18t18 23t17 21q8 12 16.5 30.5t15 35t16 36t19.5 32t26.5 23.5t36 11.5t47.5 -5.5l-1 -3q38 9 51 9h761q74 0 114 -56t18 -130l-274 -906 q-36 -119 -71.5 -153.5t-128.5 -34.5h-869q-27 0 -38 -15q-11 -16 -1 -43q24 -70 144 -70h923q29 0 56 15.5t35 41.5l300 987q7 22 5 57q38 -15 59 -43zM575 1056q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5 t-16.5 -22.5zM492 800q-4 -13 2 -22.5t20 -9.5h608q13 0 25.5 9.5t16.5 22.5l21 64q4 13 -2 22.5t-20 9.5h-608q-13 0 -25.5 -9.5t-16.5 -22.5z" />+<glyph unicode="" horiz-adv-x="1280" d="M1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />+<glyph unicode="" horiz-adv-x="1664" d="M384 0h896v256h-896v-256zM384 640h896v384h-160q-40 0 -68 28t-28 68v160h-640v-640zM1536 576q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 576v-416q0 -13 -9.5 -22.5t-22.5 -9.5h-224v-160q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68 v160h-224q-13 0 -22.5 9.5t-9.5 22.5v416q0 79 56.5 135.5t135.5 56.5h64v544q0 40 28 68t68 28h672q40 0 88 -20t76 -48l152 -152q28 -28 48 -76t20 -88v-256h64q79 0 135.5 -56.5t56.5 -135.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M960 864q119 0 203.5 -84.5t84.5 -203.5t-84.5 -203.5t-203.5 -84.5t-203.5 84.5t-84.5 203.5t84.5 203.5t203.5 84.5zM1664 1280q106 0 181 -75t75 -181v-896q0 -106 -75 -181t-181 -75h-1408q-106 0 -181 75t-75 181v896q0 106 75 181t181 75h224l51 136 q19 49 69.5 84.5t103.5 35.5h512q53 0 103.5 -35.5t69.5 -84.5l51 -136h224zM960 128q185 0 316.5 131.5t131.5 316.5t-131.5 316.5t-316.5 131.5t-316.5 -131.5t-131.5 -316.5t131.5 -316.5t316.5 -131.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M725 977l-170 -450q73 -1 153.5 -2t119 -1.5t52.5 -0.5l29 2q-32 95 -92 241q-53 132 -92 211zM21 -128h-21l2 79q22 7 80 18q89 16 110 31q20 16 48 68l237 616l280 724h75h53l11 -21l205 -480q103 -242 124 -297q39 -102 96 -235q26 -58 65 -164q24 -67 65 -149 q22 -49 35 -57q22 -19 69 -23q47 -6 103 -27q6 -39 6 -57q0 -14 -1 -26q-80 0 -192 8q-93 8 -189 8q-79 0 -135 -2l-200 -11l-58 -2q0 45 4 78l131 28q56 13 68 23q12 12 12 27t-6 32l-47 114l-92 228l-450 2q-29 -65 -104 -274q-23 -64 -23 -84q0 -31 17 -43 q26 -21 103 -32q3 0 13.5 -2t30 -5t40.5 -6q1 -28 1 -58q0 -17 -2 -27q-66 0 -349 20l-48 -8q-81 -14 -167 -14z" />+<glyph unicode="" horiz-adv-x="1408" d="M555 15q76 -32 140 -32q131 0 216 41t122 113q38 70 38 181q0 114 -41 180q-58 94 -141 126q-80 32 -247 32q-74 0 -101 -10v-144l-1 -173l3 -270q0 -15 12 -44zM541 761q43 -7 109 -7q175 0 264 65t89 224q0 112 -85 187q-84 75 -255 75q-52 0 -130 -13q0 -44 2 -77 q7 -122 6 -279l-1 -98q0 -43 1 -77zM0 -128l2 94q45 9 68 12q77 12 123 31q17 27 21 51q9 66 9 194l-2 497q-5 256 -9 404q-1 87 -11 109q-1 4 -12 12q-18 12 -69 15q-30 2 -114 13l-4 83l260 6l380 13l45 1q5 0 14 0.5t14 0.5q1 0 21.5 -0.5t40.5 -0.5h74q88 0 191 -27 q43 -13 96 -39q57 -29 102 -76q44 -47 65 -104t21 -122q0 -70 -32 -128t-95 -105q-26 -20 -150 -77q177 -41 267 -146q92 -106 92 -236q0 -76 -29 -161q-21 -62 -71 -117q-66 -72 -140 -108q-73 -36 -203 -60q-82 -15 -198 -11l-197 4q-84 2 -298 -11q-33 -3 -272 -11z" />+<glyph unicode="" horiz-adv-x="1024" d="M0 -126l17 85q4 1 77 20q76 19 116 39q29 37 41 101l27 139l56 268l12 64q8 44 17 84.5t16 67t12.5 46.5t9 30.5t3.5 11.5l29 157l16 63l22 135l8 50v38q-41 22 -144 28q-28 2 -38 4l19 103l317 -14q39 -2 73 -2q66 0 214 9q33 2 68 4.5t36 2.5q-2 -19 -6 -38 q-7 -29 -13 -51q-55 -19 -109 -31q-64 -16 -101 -31q-12 -31 -24 -88q-9 -44 -13 -82q-44 -199 -66 -306l-61 -311l-38 -158l-43 -235l-12 -45q-2 -7 1 -27q64 -15 119 -21q36 -5 66 -10q-1 -29 -7 -58q-7 -31 -9 -41q-18 0 -23 -1q-24 -2 -42 -2q-9 0 -28 3q-19 4 -145 17 l-198 2q-41 1 -174 -11q-74 -7 -98 -9z" />+<glyph unicode="" horiz-adv-x="1792" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l215 -1h293l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -42.5 2t-103.5 -1t-111 -1 q-34 0 -67 -5q-10 -97 -8 -136l1 -152v-332l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-88 0 -233 -14q-48 -4 -70 -4q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q8 192 6 433l-5 428q-1 62 -0.5 118.5t0.5 102.5t-2 57t-6 15q-6 5 -14 6q-38 6 -148 6q-43 0 -100 -13.5t-73 -24.5q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1744 128q33 0 42 -18.5t-11 -44.5 l-126 -162q-20 -26 -49 -26t-49 26l-126 162q-20 26 -11 44.5t42 18.5h80v1024h-80q-33 0 -42 18.5t11 44.5l126 162q20 26 49 26t49 -26l126 -162q20 -26 11 -44.5t-42 -18.5h-80v-1024h80z" />+<glyph unicode="" d="M81 1407l54 -27q20 -5 211 -5h130l19 3l115 1l446 -1h318l34 -2q14 -1 28 7t21 16l7 8l42 1q15 0 28 -1v-104.5t1 -131.5l1 -100l-1 -58q0 -32 -4 -51q-39 -15 -68 -18q-25 43 -54 128q-8 24 -15.5 62.5t-11.5 65.5t-6 29q-13 15 -27 19q-7 2 -58.5 2t-138.5 -1t-128 -1 q-94 0 -127 -5q-10 -97 -8 -136l1 -152v52l3 -359l-1 -147q-1 -46 11 -85q49 -25 89 -32q2 0 18 -5t44 -13t43 -12q30 -8 50 -18q5 -45 5 -50q0 -10 -3 -29q-14 -1 -34 -1q-110 0 -187 10q-72 8 -238 8q-82 0 -233 -13q-45 -5 -70 -5q-2 22 -2 26l-1 26v9q21 33 79 49 q139 38 159 50q9 21 12 56q6 137 6 433l-5 44q0 265 -2 278q-2 11 -6 15q-6 5 -14 6q-38 6 -148 6q-50 0 -168.5 -14t-132.5 -24q-13 -9 -22 -33t-22 -75t-24 -84q-6 -19 -19.5 -32t-20.5 -13q-44 27 -56 44v297v86zM1505 113q26 -20 26 -49t-26 -49l-162 -126 q-26 -20 -44.5 -11t-18.5 42v80h-1024v-80q0 -33 -18.5 -42t-44.5 11l-162 126q-26 20 -26 49t26 49l162 126q26 20 44.5 11t18.5 -42v-80h1024v80q0 33 18.5 42t44.5 -11z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1408 576v-128q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h896q26 0 45 -19t19 -45zM1664 960v-128q0 -26 -19 -45t-45 -19 h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1280 1344v-128q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h640q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1280q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1536q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1536q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1152q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 192v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 576v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 960v-128q0 -26 -19 -45 t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-128q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M256 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM256 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5 t9.5 -22.5zM256 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344 q13 0 22.5 -9.5t9.5 -22.5zM256 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-192q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5 -9.5t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v192 q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M384 992v-576q0 -13 -9.5 -22.5t-22.5 -9.5q-14 0 -23 9l-288 288q-9 9 -9 23t9 23l288 288q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M352 704q0 -14 -9 -23l-288 -288q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v576q0 13 9.5 22.5t22.5 9.5q14 0 23 -9l288 -288q9 -9 9 -23zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5 t9.5 -22.5zM1792 608v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088q13 0 22.5 -9.5t9.5 -22.5zM1792 992v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1088q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1088 q13 0 22.5 -9.5t9.5 -22.5zM1792 1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1728q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1728q13 0 22.5 -9.5t9.5 -22.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 1184v-1088q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-403 403v-166q0 -119 -84.5 -203.5t-203.5 -84.5h-704q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h704q119 0 203.5 -84.5t84.5 -203.5v-165l403 402q18 19 45 19q12 0 25 -5 q39 -17 39 -59z" />+<glyph unicode="" horiz-adv-x="1920" d="M640 960q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1664 576v-448h-1408v192l320 320l160 -160l512 512zM1760 1280h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5v1216 q0 13 -9.5 22.5t-22.5 9.5zM1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />+<glyph unicode="" d="M363 0l91 91l-235 235l-91 -91v-107h128v-128h107zM886 928q0 22 -22 22q-10 0 -17 -7l-542 -542q-7 -7 -7 -17q0 -22 22 -22q10 0 17 7l542 542q7 7 7 17zM832 1120l416 -416l-832 -832h-416v416zM1515 1024q0 -53 -37 -90l-166 -166l-416 416l166 165q36 38 90 38 q53 0 91 -38l235 -234q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1024" d="M768 896q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1024 896q0 -109 -33 -179l-364 -774q-16 -33 -47.5 -52t-67.5 -19t-67.5 19t-46.5 52l-365 774q-33 70 -33 179q0 212 150 362t362 150t362 -150t150 -362z" />+<glyph unicode="" d="M768 96v1088q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M512 384q0 36 -20 69q-1 1 -15.5 22.5t-25.5 38t-25 44t-21 50.5q-4 16 -21 16t-21 -16q-7 -23 -21 -50.5t-25 -44t-25.5 -38t-15.5 -22.5q-20 -33 -20 -69q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 512q0 -212 -150 -362t-362 -150t-362 150t-150 362 q0 145 81 275q6 9 62.5 90.5t101 151t99.5 178t83 201.5q9 30 34 47t51 17t51.5 -17t33.5 -47q28 -93 83 -201.5t99.5 -178t101 -151t62.5 -90.5q81 -127 81 -275z" />+<glyph unicode="" horiz-adv-x="1792" d="M888 352l116 116l-152 152l-116 -116v-56h96v-96h56zM1328 1072q-16 16 -33 -1l-350 -350q-17 -17 -1 -33t33 1l350 350q17 17 1 33zM1408 478v-190q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-14 -14 -32 -8q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v126q0 13 9 22l64 64q15 15 35 7t20 -29zM1312 1216l288 -288l-672 -672h-288v288zM1756 1084l-92 -92 l-288 288l92 92q28 28 68 28t68 -28l152 -152q28 -28 28 -68t-28 -68z" />+<glyph unicode="" horiz-adv-x="1664" d="M1408 547v-259q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h255v0q13 0 22.5 -9.5t9.5 -22.5q0 -27 -26 -32q-77 -26 -133 -60q-10 -4 -16 -4h-112q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832 q66 0 113 47t47 113v214q0 19 18 29q28 13 54 37q16 16 35 8q21 -9 21 -29zM1645 1043l-384 -384q-18 -19 -45 -19q-12 0 -25 5q-39 17 -39 59v192h-160q-323 0 -438 -131q-119 -137 -74 -473q3 -23 -20 -34q-8 -2 -12 -2q-16 0 -26 13q-10 14 -21 31t-39.5 68.5t-49.5 99.5 t-38.5 114t-17.5 122q0 49 3.5 91t14 90t28 88t47 81.5t68.5 74t94.5 61.5t124.5 48.5t159.5 30.5t196.5 11h160v192q0 42 39 59q13 5 25 5q26 0 45 -19l384 -384q19 -19 19 -45t-19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M1408 606v-318q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q63 0 117 -25q15 -7 18 -23q3 -17 -9 -29l-49 -49q-10 -10 -23 -10q-3 0 -9 2q-23 6 -45 6h-832q-66 0 -113 -47t-47 -113v-832 q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v254q0 13 9 22l64 64q10 10 23 10q6 0 12 -3q20 -8 20 -29zM1639 1095l-814 -814q-24 -24 -57 -24t-57 24l-430 430q-24 24 -24 57t24 57l110 110q24 24 57 24t57 -24l263 -263l647 647q24 24 57 24t57 -24l110 -110 q24 -24 24 -57t-24 -57z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-384v-384h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v384h-384v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45 t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h384v384h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45t-19 -45t-45 -19h-128v-384h384v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="1024" d="M979 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19z" />+<glyph unicode="" horiz-adv-x="1792" d="M1747 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-9 9 -13 19v-678q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-678q4 11 13 19l710 710 q19 19 32 13t13 -32v-710q4 11 13 19z" />+<glyph unicode="" horiz-adv-x="1664" d="M1619 1395q19 19 32 13t13 -32v-1472q0 -26 -13 -32t-32 13l-710 710q-8 9 -13 19v-710q0 -26 -13 -32t-32 13l-710 710q-19 19 -19 45t19 45l710 710q19 19 32 13t13 -32v-710q5 11 13 19z" />+<glyph unicode="" horiz-adv-x="1408" d="M1384 609l-1328 -738q-23 -13 -39.5 -3t-16.5 36v1472q0 26 16.5 36t39.5 -3l1328 -738q23 -13 23 -31t-23 -31z" />+<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45zM640 1344v-1408q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h512q26 0 45 -19t19 -45z" />+<glyph unicode="" d="M1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q19 -19 19 -45t-19 -45l-710 -710q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />+<glyph unicode="" horiz-adv-x="1792" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v710q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19l-710 -710 q-19 -19 -32 -13t-13 32v710q-5 -10 -13 -19z" />+<glyph unicode="" horiz-adv-x="1024" d="M45 -115q-19 -19 -32 -13t-13 32v1472q0 26 13 32t32 -13l710 -710q8 -8 13 -19v678q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-1408q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v678q-5 -10 -13 -19z" />+<glyph unicode="" horiz-adv-x="1538" d="M14 557l710 710q19 19 45 19t45 -19l710 -710q19 -19 13 -32t-32 -13h-1472q-26 0 -32 13t13 32zM1473 0h-1408q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1408q26 0 45 -19t19 -45v-256q0 -26 -19 -45t-45 -19z" />+<glyph unicode="" horiz-adv-x="1152" d="M742 -37l-652 651q-37 37 -37 90.5t37 90.5l652 651q37 37 90.5 37t90.5 -37l75 -75q37 -37 37 -90.5t-37 -90.5l-486 -486l486 -485q37 -38 37 -91t-37 -90l-75 -75q-37 -37 -90.5 -37t-90.5 37z" />+<glyph unicode="" horiz-adv-x="1152" d="M1099 704q0 -52 -37 -91l-652 -651q-37 -37 -90 -37t-90 37l-76 75q-37 39 -37 91q0 53 37 90l486 486l-486 485q-37 39 -37 91q0 53 37 90l76 75q36 38 90 38t90 -38l652 -651q37 -37 37 -90z" />+<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-256v256q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-256h-256q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h256v-256q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v256h256q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5 t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1216 576v128q0 26 -19 45t-45 19h-768q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h768q26 0 45 19t19 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5 t103 -385.5z" />+<glyph unicode="" d="M1149 414q0 26 -19 45l-181 181l181 181q19 19 19 45q0 27 -19 46l-90 90q-19 19 -46 19q-26 0 -45 -19l-181 -181l-181 181q-19 19 -45 19q-27 0 -46 -19l-90 -90q-19 -19 -19 -46q0 -26 19 -45l181 -181l-181 -181q-19 -19 -19 -45q0 -27 19 -46l90 -90q19 -19 46 -19 q26 0 45 19l181 181l181 -181q19 -19 45 -19q27 0 46 19l90 90q19 19 19 46zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1284 802q0 28 -18 46l-91 90q-19 19 -45 19t-45 -19l-408 -407l-226 226q-19 19 -45 19t-45 -19l-91 -90q-18 -18 -18 -46q0 -27 18 -45l362 -362q19 -19 45 -19q27 0 46 19l543 543q18 18 18 45zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M896 160v192q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h192q14 0 23 9t9 23zM1152 832q0 88 -55.5 163t-138.5 116t-170 41q-243 0 -371 -213q-15 -24 8 -42l132 -100q7 -6 19 -6q16 0 25 12q53 68 86 92q34 24 86 24q48 0 85.5 -26t37.5 -59 q0 -38 -20 -61t-68 -45q-63 -28 -115.5 -86.5t-52.5 -125.5v-36q0 -14 9 -23t23 -9h192q14 0 23 9t9 23q0 19 21.5 49.5t54.5 49.5q32 18 49 28.5t46 35t44.5 48t28 60.5t12.5 81zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1024 160v160q0 14 -9 23t-23 9h-96v512q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h96v-320h-96q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23t23 -9h448q14 0 23 9t9 23zM896 1056v160q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-160q0 -14 9 -23 t23 -9h192q14 0 23 9t9 23zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1197 512h-109q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h109q-32 108 -112.5 188.5t-188.5 112.5v-109q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v109q-108 -32 -188.5 -112.5t-112.5 -188.5h109q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-109 q32 -108 112.5 -188.5t188.5 -112.5v109q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-109q108 32 188.5 112.5t112.5 188.5zM1536 704v-128q0 -26 -19 -45t-45 -19h-143q-37 -161 -154.5 -278.5t-278.5 -154.5v-143q0 -26 -19 -45t-45 -19h-128q-26 0 -45 19t-19 45v143 q-161 37 -278.5 154.5t-154.5 278.5h-143q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h143q37 161 154.5 278.5t278.5 154.5v143q0 26 19 45t45 19h128q26 0 45 -19t19 -45v-143q161 -37 278.5 -154.5t154.5 -278.5h143q26 0 45 -19t19 -45z" />+<glyph unicode="" d="M1097 457l-146 -146q-10 -10 -23 -10t-23 10l-137 137l-137 -137q-10 -10 -23 -10t-23 10l-146 146q-10 10 -10 23t10 23l137 137l-137 137q-10 10 -10 23t10 23l146 146q10 10 23 10t23 -10l137 -137l137 137q10 10 23 10t23 -10l146 -146q10 -10 10 -23t-10 -23 l-137 -137l137 -137q10 -10 10 -23t-10 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5 t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1171 723l-422 -422q-19 -19 -45 -19t-45 19l-294 294q-19 19 -19 45t19 45l102 102q19 19 45 19t45 -19l147 -147l275 275q19 19 45 19t45 -19l102 -102q19 -19 19 -45t-19 -45zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198 t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1312 643q0 161 -87 295l-754 -753q137 -89 297 -89q111 0 211.5 43.5t173.5 116.5t116 174.5t43 212.5zM313 344l755 754q-135 91 -300 91q-148 0 -273 -73t-198 -199t-73 -274q0 -162 89 -299zM1536 643q0 -157 -61 -300t-163.5 -246t-245 -164t-298.5 -61t-298.5 61 t-245 164t-163.5 246t-61 300t61 299.5t163.5 245.5t245 164t298.5 61t298.5 -61t245 -164t163.5 -245.5t61 -299.5z" />+<glyph unicode="" d="M1536 640v-128q0 -53 -32.5 -90.5t-84.5 -37.5h-704l293 -294q38 -36 38 -90t-38 -90l-75 -76q-37 -37 -90 -37q-52 0 -91 37l-651 652q-37 37 -37 90q0 52 37 91l651 650q38 38 91 38q52 0 90 -38l75 -74q38 -38 38 -91t-38 -91l-293 -293h704q52 0 84.5 -37.5 t32.5 -90.5z" />+<glyph unicode="" d="M1472 576q0 -54 -37 -91l-651 -651q-39 -37 -91 -37q-51 0 -90 37l-75 75q-38 38 -38 91t38 91l293 293h-704q-52 0 -84.5 37.5t-32.5 90.5v128q0 53 32.5 90.5t84.5 37.5h704l-293 294q-38 36 -38 90t38 90l75 75q38 38 90 38q53 0 91 -38l651 -651q37 -35 37 -90z" />+<glyph unicode="" horiz-adv-x="1664" d="M1611 565q0 -51 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-294 293v-704q0 -52 -37.5 -84.5t-90.5 -32.5h-128q-53 0 -90.5 32.5t-37.5 84.5v704l-294 -293q-36 -38 -90 -38t-90 38l-75 75q-38 38 -38 90q0 53 38 91l651 651q35 37 90 37q54 0 91 -37l651 -651 q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1664" d="M1611 704q0 -53 -37 -90l-651 -652q-39 -37 -91 -37q-53 0 -90 37l-651 652q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l294 -294v704q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-704l294 294q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 896q0 -26 -19 -45l-512 -512q-19 -19 -45 -19t-45 19t-19 45v256h-224q-98 0 -175.5 -6t-154 -21.5t-133 -42.5t-105.5 -69.5t-80 -101t-48.5 -138.5t-17.5 -181q0 -55 5 -123q0 -6 2.5 -23.5t2.5 -26.5q0 -15 -8.5 -25t-23.5 -10q-16 0 -28 17q-7 9 -13 22 t-13.5 30t-10.5 24q-127 285 -127 451q0 199 53 333q162 403 875 403h224v256q0 26 19 45t45 19t45 -19l512 -512q19 -19 19 -45z" />+<glyph unicode="" d="M755 480q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23zM1536 1344v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332 q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45z" />+<glyph unicode="" d="M768 576v-448q0 -26 -19 -45t-45 -19t-45 19l-144 144l-332 -332q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l332 332l-144 144q-19 19 -19 45t19 45t45 19h448q26 0 45 -19t19 -45zM1523 1248q0 -13 -10 -23l-332 -332l144 -144q19 -19 19 -45t-19 -45 t-45 -19h-448q-26 0 -45 19t-19 45v448q0 26 19 45t45 19t45 -19l144 -144l332 332q10 10 23 10t23 -10l114 -114q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-416v-416q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v416h-416q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h416v416q0 40 28 68t68 28h192q40 0 68 -28t28 -68v-416h416q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="1408" d="M1408 800v-192q0 -40 -28 -68t-68 -28h-1216q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h1216q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="1664" d="M1482 486q46 -26 59.5 -77.5t-12.5 -97.5l-64 -110q-26 -46 -77.5 -59.5t-97.5 12.5l-266 153v-307q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v307l-266 -153q-46 -26 -97.5 -12.5t-77.5 59.5l-64 110q-26 46 -12.5 97.5t59.5 77.5l266 154l-266 154 q-46 26 -59.5 77.5t12.5 97.5l64 110q26 46 77.5 59.5t97.5 -12.5l266 -153v307q0 52 38 90t90 38h128q52 0 90 -38t38 -90v-307l266 153q46 26 97.5 12.5t77.5 -59.5l64 -110q26 -46 12.5 -97.5t-59.5 -77.5l-266 -154z" />+<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM896 161v190q0 14 -9 23.5t-22 9.5h-192q-13 0 -23 -10t-10 -23v-190q0 -13 10 -23t23 -10h192 q13 0 22 9.5t9 23.5zM894 505l18 621q0 12 -10 18q-10 8 -24 8h-220q-14 0 -24 -8q-10 -6 -10 -18l17 -621q0 -10 10 -17.5t24 -7.5h185q14 0 23.5 7.5t10.5 17.5z" />+<glyph unicode="" d="M928 180v56v468v192h-320v-192v-468v-56q0 -25 18 -38.5t46 -13.5h192q28 0 46 13.5t18 38.5zM472 1024h195l-126 161q-26 31 -69 31q-40 0 -68 -28t-28 -68t28 -68t68 -28zM1160 1120q0 40 -28 68t-68 28q-43 0 -69 -31l-125 -161h194q40 0 68 28t28 68zM1536 864v-320 q0 -14 -9 -23t-23 -9h-96v-416q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v416h-96q-14 0 -23 9t-9 23v320q0 14 9 23t23 9h440q-93 0 -158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5q107 0 168 -77l128 -165l128 165q61 77 168 77q93 0 158.5 -65.5t65.5 -158.5 t-65.5 -158.5t-158.5 -65.5h440q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1792" d="M1280 832q0 26 -19 45t-45 19q-172 0 -318 -49.5t-259.5 -134t-235.5 -219.5q-19 -21 -19 -45q0 -26 19 -45t45 -19q24 0 45 19q27 24 74 71t67 66q137 124 268.5 176t313.5 52q26 0 45 19t19 45zM1792 1030q0 -95 -20 -193q-46 -224 -184.5 -383t-357.5 -268 q-214 -108 -438 -108q-148 0 -286 47q-15 5 -88 42t-96 37q-16 0 -39.5 -32t-45 -70t-52.5 -70t-60 -32q-30 0 -51 11t-31 24t-27 42q-2 4 -6 11t-5.5 10t-3 9.5t-1.5 13.5q0 35 31 73.5t68 65.5t68 56t31 48q0 4 -14 38t-16 44q-9 51 -9 104q0 115 43.5 220t119 184.5 t170.5 139t204 95.5q55 18 145 25.5t179.5 9t178.5 6t163.5 24t113.5 56.5l29.5 29.5t29.5 28t27 20t36.5 16t43.5 4.5q39 0 70.5 -46t47.5 -112t24 -124t8 -96z" />+<glyph unicode="" horiz-adv-x="1408" d="M1408 -160v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-1344q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h1344q13 0 22.5 -9.5t9.5 -22.5zM1152 896q0 -78 -24.5 -144t-64 -112.5t-87.5 -88t-96 -77.5t-87.5 -72t-64 -81.5t-24.5 -96.5q0 -96 67 -224l-4 1l1 -1 q-90 41 -160 83t-138.5 100t-113.5 122.5t-72.5 150.5t-27.5 184q0 78 24.5 144t64 112.5t87.5 88t96 77.5t87.5 72t64 81.5t24.5 96.5q0 94 -66 224l3 -1l-1 1q90 -41 160 -83t138.5 -100t113.5 -122.5t72.5 -150.5t27.5 -184z" />+<glyph unicode="" horiz-adv-x="1792" d="M1664 576q-152 236 -381 353q61 -104 61 -225q0 -185 -131.5 -316.5t-316.5 -131.5t-316.5 131.5t-131.5 316.5q0 121 61 225q-229 -117 -381 -353q133 -205 333.5 -326.5t434.5 -121.5t434.5 121.5t333.5 326.5zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5 t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1792 576q0 -34 -20 -69q-140 -230 -376.5 -368.5t-499.5 -138.5t-499.5 139t-376.5 368q-20 35 -20 69t20 69q140 229 376.5 368t499.5 139t499.5 -139t376.5 -368q20 -35 20 -69z" />+<glyph unicode="" horiz-adv-x="1792" d="M555 201l78 141q-87 63 -136 159t-49 203q0 121 61 225q-229 -117 -381 -353q167 -258 427 -375zM944 960q0 20 -14 34t-34 14q-125 0 -214.5 -89.5t-89.5 -214.5q0 -20 14 -34t34 -14t34 14t14 34q0 86 61 147t147 61q20 0 34 14t14 34zM1307 1151q0 -7 -1 -9 q-105 -188 -315 -566t-316 -567l-49 -89q-10 -16 -28 -16q-12 0 -134 70q-16 10 -16 28q0 12 44 87q-143 65 -263.5 173t-208.5 245q-20 31 -20 69t20 69q153 235 380 371t496 136q89 0 180 -17l54 97q10 16 28 16q5 0 18 -6t31 -15.5t33 -18.5t31.5 -18.5t19.5 -11.5 q16 -10 16 -27zM1344 704q0 -139 -79 -253.5t-209 -164.5l280 502q8 -45 8 -84zM1792 576q0 -35 -20 -69q-39 -64 -109 -145q-150 -172 -347.5 -267t-419.5 -95l74 132q212 18 392.5 137t301.5 307q-115 179 -282 294l63 112q95 -64 182.5 -153t144.5 -184q20 -34 20 -69z " />+<glyph unicode="" horiz-adv-x="1792" d="M1024 161v190q0 14 -9.5 23.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -23.5v-190q0 -14 9.5 -23.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 23.5zM1022 535l18 459q0 12 -10 19q-13 11 -24 11h-220q-11 0 -24 -11q-10 -7 -10 -21l17 -457q0 -10 10 -16.5t24 -6.5h185 q14 0 23.5 6.5t10.5 16.5zM1008 1469l768 -1408q35 -63 -2 -126q-17 -29 -46.5 -46t-63.5 -17h-1536q-34 0 -63.5 17t-46.5 46q-37 63 -2 126l768 1408q17 31 47 49t65 18t65 -18t47 -49z" />+<glyph unicode="" horiz-adv-x="1408" d="M1376 1376q44 -52 12 -148t-108 -172l-161 -161l160 -696q5 -19 -12 -33l-128 -96q-7 -6 -19 -6q-4 0 -7 1q-15 3 -21 16l-279 508l-259 -259l53 -194q5 -17 -8 -31l-96 -96q-9 -9 -23 -9h-2q-15 2 -24 13l-189 252l-252 189q-11 7 -13 23q-1 13 9 25l96 97q9 9 23 9 q6 0 8 -1l194 -53l259 259l-508 279q-14 8 -17 24q-2 16 9 27l128 128q14 13 30 8l665 -159l160 160q76 76 172 108t148 -12z" />+<glyph unicode="" horiz-adv-x="1664" d="M128 -128h288v288h-288v-288zM480 -128h320v288h-320v-288zM128 224h288v320h-288v-320zM480 224h320v320h-320v-320zM128 608h288v288h-288v-288zM864 -128h320v288h-320v-288zM480 608h320v288h-320v-288zM1248 -128h288v288h-288v-288zM864 224h320v320h-320v-320z M512 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1248 224h288v320h-288v-320zM864 608h320v288h-320v-288zM1248 608h288v288h-288v-288zM1280 1088v288q0 13 -9.5 22.5t-22.5 9.5h-64 q-13 0 -22.5 -9.5t-9.5 -22.5v-288q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1664 1152v-1280q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47 h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />+<glyph unicode="" horiz-adv-x="1792" d="M666 1055q-60 -92 -137 -273q-22 45 -37 72.5t-40.5 63.5t-51 56.5t-63 35t-81.5 14.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q250 0 410 -225zM1792 256q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192q-32 0 -85 -0.5t-81 -1t-73 1 t-71 5t-64 10.5t-63 18.5t-58 28.5t-59 40t-55 53.5t-56 69.5q59 93 136 273q22 -45 37 -72.5t40.5 -63.5t51 -56.5t63 -35t81.5 -14.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1792 1152q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5 v192h-256q-48 0 -87 -15t-69 -45t-51 -61.5t-45 -77.5q-32 -62 -78 -171q-29 -66 -49.5 -111t-54 -105t-64 -100t-74 -83t-90 -68.5t-106.5 -42t-128 -16.5h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224q48 0 87 15t69 45t51 61.5t45 77.5q32 62 78 171q29 66 49.5 111 t54 105t64 100t74 83t90 68.5t106.5 42t128 16.5h256v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22q-17 -2 -30.5 9t-17.5 29v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281 q0 130 71 248.5t191 204.5t286 136.5t348 50.5q244 0 450 -85.5t326 -233t120 -321.5z" />+<glyph unicode="" d="M1536 704v-128q0 -201 -98.5 -362t-274 -251.5t-395.5 -90.5t-395.5 90.5t-274 251.5t-98.5 362v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-128q0 -52 23.5 -90t53.5 -57t71 -30t64 -13t44 -2t44 2t64 13t71 30t53.5 57t23.5 90v128q0 26 19 45t45 19h384 q26 0 45 -19t19 -45zM512 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45zM1536 1344v-384q0 -26 -19 -45t-45 -19h-384q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h384q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M1611 320q0 -53 -37 -90l-75 -75q-38 -38 -91 -38q-54 0 -90 38l-486 485l-486 -485q-36 -38 -90 -38t-90 38l-75 75q-38 36 -38 90q0 53 38 91l651 651q37 37 90 37q52 0 91 -37l650 -651q38 -38 38 -91z" />+<glyph unicode="" horiz-adv-x="1664" d="M1611 832q0 -53 -37 -90l-651 -651q-38 -38 -91 -38q-54 0 -90 38l-651 651q-38 36 -38 90q0 53 38 91l74 75q39 37 91 37q53 0 90 -37l486 -486l486 486q37 37 90 37q52 0 91 -37l75 -75q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1920" d="M1280 32q0 -13 -9.5 -22.5t-22.5 -9.5h-960q-8 0 -13.5 2t-9 7t-5.5 8t-3 11.5t-1 11.5v13v11v160v416h-192q-26 0 -45 19t-19 45q0 24 15 41l320 384q19 22 49 22t49 -22l320 -384q15 -17 15 -41q0 -26 -19 -45t-45 -19h-192v-384h576q16 0 25 -11l160 -192q7 -11 7 -21 zM1920 448q0 -24 -15 -41l-320 -384q-20 -23 -49 -23t-49 23l-320 384q-15 17 -15 41q0 26 19 45t45 19h192v384h-576q-16 0 -25 12l-160 192q-7 9 -7 20q0 13 9.5 22.5t22.5 9.5h960q8 0 13.5 -2t9 -7t5.5 -8t3 -11.5t1 -11.5v-13v-11v-160v-416h192q26 0 45 -19t19 -45z " />+<glyph unicode="" horiz-adv-x="1664" d="M640 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1536 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1664 1088v-512q0 -24 -16 -42.5t-41 -21.5 l-1044 -122q1 -7 4.5 -21.5t6 -26.5t2.5 -22q0 -16 -24 -64h920q26 0 45 -19t19 -45t-19 -45t-45 -19h-1024q-26 0 -45 19t-19 45q0 14 11 39.5t29.5 59.5t20.5 38l-177 823h-204q-26 0 -45 19t-19 45t19 45t45 19h256q16 0 28.5 -6.5t20 -15.5t13 -24.5t7.5 -26.5 t5.5 -29.5t4.5 -25.5h1201q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />+<glyph unicode="" horiz-adv-x="1920" d="M1879 584q0 -31 -31 -66l-336 -396q-43 -51 -120.5 -86.5t-143.5 -35.5h-1088q-34 0 -60.5 13t-26.5 43q0 31 31 66l336 396q43 51 120.5 86.5t143.5 35.5h1088q34 0 60.5 -13t26.5 -43zM1536 928v-160h-832q-94 0 -197 -47.5t-164 -119.5l-337 -396l-5 -6q0 4 -0.5 12.5 t-0.5 12.5v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158z" />+<glyph unicode="" horiz-adv-x="768" d="M704 1216q0 -26 -19 -45t-45 -19h-128v-1024h128q26 0 45 -19t19 -45t-19 -45l-256 -256q-19 -19 -45 -19t-45 19l-256 256q-19 19 -19 45t19 45t45 19h128v1024h-128q-26 0 -45 19t-19 45t19 45l256 256q19 19 45 19t45 -19l256 -256q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 640q0 -26 -19 -45l-256 -256q-19 -19 -45 -19t-45 19t-19 45v128h-1024v-128q0 -26 -19 -45t-45 -19t-45 19l-256 256q-19 19 -19 45t19 45l256 256q19 19 45 19t45 -19t19 -45v-128h1024v128q0 26 19 45t45 19t45 -19l256 -256q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="1920" d="M512 512v-384h-256v384h256zM896 1024v-896h-256v896h256zM1280 768v-640h-256v640h256zM1664 1152v-1024h-256v1024h256zM1792 32v1216q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-1216q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5z M1920 1248v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />+<glyph unicode="" d="M1280 926q-56 -25 -121 -34q68 40 93 117q-65 -38 -134 -51q-61 66 -153 66q-87 0 -148.5 -61.5t-61.5 -148.5q0 -29 5 -48q-129 7 -242 65t-192 155q-29 -50 -29 -106q0 -114 91 -175q-47 1 -100 26v-2q0 -75 50 -133.5t123 -72.5q-29 -8 -51 -8q-13 0 -39 4 q21 -63 74.5 -104t121.5 -42q-116 -90 -261 -90q-26 0 -50 3q148 -94 322 -94q112 0 210 35.5t168 95t120.5 137t75 162t24.5 168.5q0 18 -1 27q63 45 105 109zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5 t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1307 618l23 219h-198v109q0 49 15.5 68.5t71.5 19.5h110v219h-175q-152 0 -218 -72t-66 -213v-131h-131v-219h131v-635h262v635h175zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960 q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M928 704q0 14 -9 23t-23 9q-66 0 -113 -47t-47 -113q0 -14 9 -23t23 -9t23 9t9 23q0 40 28 68t68 28q14 0 23 9t9 23zM1152 574q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM128 0h1536v128h-1536v-128zM1280 574q0 159 -112.5 271.5 t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM256 1216h384v128h-384v-128zM128 1024h1536v118v138h-828l-64 -128h-644v-128zM1792 1280v-1280q0 -53 -37.5 -90.5t-90.5 -37.5h-1536q-53 0 -90.5 37.5t-37.5 90.5v1280 q0 53 37.5 90.5t90.5 37.5h1536q53 0 90.5 -37.5t37.5 -90.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M832 1024q0 80 -56 136t-136 56t-136 -56t-56 -136q0 -42 19 -83q-41 19 -83 19q-80 0 -136 -56t-56 -136t56 -136t136 -56t136 56t56 136q0 42 -19 83q41 -19 83 -19q80 0 136 56t56 136zM1683 320q0 -17 -49 -66t-66 -49q-9 0 -28.5 16t-36.5 33t-38.5 40t-24.5 26 l-96 -96l220 -220q28 -28 28 -68q0 -42 -39 -81t-81 -39q-40 0 -68 28l-671 671q-176 -131 -365 -131q-163 0 -265.5 102.5t-102.5 265.5q0 160 95 313t248 248t313 95q163 0 265.5 -102.5t102.5 -265.5q0 -189 -131 -365l355 -355l96 96q-3 3 -26 24.5t-40 38.5t-33 36.5 t-16 28.5q0 17 49 66t66 49q13 0 23 -10q6 -6 46 -44.5t82 -79.5t86.5 -86t73 -78t28.5 -41z" />+<glyph unicode="" horiz-adv-x="1920" d="M896 640q0 106 -75 181t-181 75t-181 -75t-75 -181t75 -181t181 -75t181 75t75 181zM1664 128q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 1152q0 52 -38 90t-90 38t-90 -38t-38 -90q0 -53 37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1280 731v-185q0 -10 -7 -19.5t-16 -10.5l-155 -24q-11 -35 -32 -76q34 -48 90 -115q7 -10 7 -20q0 -12 -7 -19q-23 -30 -82.5 -89.5t-78.5 -59.5q-11 0 -21 7l-115 90q-37 -19 -77 -31q-11 -108 -23 -155q-7 -24 -30 -24h-186q-11 0 -20 7.5t-10 17.5 l-23 153q-34 10 -75 31l-118 -89q-7 -7 -20 -7q-11 0 -21 8q-144 133 -144 160q0 9 7 19q10 14 41 53t47 61q-23 44 -35 82l-152 24q-10 1 -17 9.5t-7 19.5v185q0 10 7 19.5t16 10.5l155 24q11 35 32 76q-34 48 -90 115q-7 11 -7 20q0 12 7 20q22 30 82 89t79 59q11 0 21 -7 l115 -90q34 18 77 32q11 108 23 154q7 24 30 24h186q11 0 20 -7.5t10 -17.5l23 -153q34 -10 75 -31l118 89q8 7 20 7q11 0 21 -8q144 -133 144 -160q0 -9 -7 -19q-12 -16 -42 -54t-45 -60q23 -48 34 -82l152 -23q10 -2 17 -10.5t7 -19.5zM1920 198v-140q0 -16 -149 -31 q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20 t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31zM1920 1222v-140q0 -16 -149 -31q-12 -27 -30 -52q51 -113 51 -138q0 -4 -4 -7q-122 -71 -124 -71q-8 0 -46 47t-52 68 q-20 -2 -30 -2t-30 2q-14 -21 -52 -68t-46 -47q-2 0 -124 71q-4 3 -4 7q0 25 51 138q-18 25 -30 52q-149 15 -149 31v140q0 16 149 31q13 29 30 52q-51 113 -51 138q0 4 4 7q4 2 35 20t59 34t30 16q8 0 46 -46.5t52 -67.5q20 2 30 2t30 -2q51 71 92 112l6 2q4 0 124 -70 q4 -3 4 -7q0 -25 -51 -138q17 -23 30 -52q149 -15 149 -31z" />+<glyph unicode="" horiz-adv-x="1792" d="M1408 768q0 -139 -94 -257t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224 q0 139 94 257t256.5 186.5t353.5 68.5t353.5 -68.5t256.5 -186.5t94 -257zM1792 512q0 -120 -71 -224.5t-195 -176.5q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7 q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230z" />+<glyph unicode="" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 768q0 51 -39 89.5t-89 38.5h-352q0 58 48 159.5t48 160.5q0 98 -32 145t-128 47q-26 -26 -38 -85t-30.5 -125.5t-59.5 -109.5q-22 -23 -77 -91q-4 -5 -23 -30t-31.5 -41t-34.5 -42.5 t-40 -44t-38.5 -35.5t-40 -27t-35.5 -9h-32v-640h32q13 0 31.5 -3t33 -6.5t38 -11t35 -11.5t35.5 -12.5t29 -10.5q211 -73 342 -73h121q192 0 192 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5q32 1 53.5 47t21.5 81zM1536 769 q0 -89 -49 -163q9 -33 9 -69q0 -77 -38 -144q3 -21 3 -43q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5h-36h-93q-96 0 -189.5 22.5t-216.5 65.5q-116 40 -138 40h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h274q36 24 137 155q58 75 107 128 q24 25 35.5 85.5t30.5 126.5t62 108q39 37 90 37q84 0 151 -32.5t102 -101.5t35 -186q0 -93 -48 -192h176q104 0 180 -76t76 -179z" />+<glyph unicode="" d="M256 1088q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 512q0 35 -21.5 81t-53.5 47q15 17 25 47.5t10 55.5q0 69 -53 119q18 32 18 69t-17.5 73.5t-47.5 52.5q5 30 5 56q0 85 -49 126t-136 41h-128q-131 0 -342 -73q-5 -2 -29 -10.5 t-35.5 -12.5t-35 -11.5t-38 -11t-33 -6.5t-31.5 -3h-32v-640h32q16 0 35.5 -9t40 -27t38.5 -35.5t40 -44t34.5 -42.5t31.5 -41t23 -30q55 -68 77 -91q41 -43 59.5 -109.5t30.5 -125.5t38 -85q96 0 128 47t32 145q0 59 -48 160.5t-48 159.5h352q50 0 89 38.5t39 89.5z M1536 511q0 -103 -76 -179t-180 -76h-176q48 -99 48 -192q0 -118 -35 -186q-35 -69 -102 -101.5t-151 -32.5q-51 0 -90 37q-34 33 -54 82t-25.5 90.5t-17.5 84.5t-31 64q-48 50 -107 127q-101 131 -137 155h-274q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5 h288q22 0 138 40q128 44 223 66t200 22h112q140 0 226.5 -79t85.5 -216v-5q60 -77 60 -178q0 -22 -3 -43q38 -67 38 -144q0 -36 -9 -69q49 -74 49 -163z" />+<glyph unicode="" horiz-adv-x="896" d="M832 1504v-1339l-449 -236q-22 -12 -40 -12q-21 0 -31.5 14.5t-10.5 35.5q0 6 2 20l86 500l-364 354q-25 27 -25 48q0 37 56 46l502 73l225 455q19 41 49 41z" />+<glyph unicode="" horiz-adv-x="1792" d="M1664 940q0 81 -21.5 143t-55 98.5t-81.5 59.5t-94 31t-98 8t-112 -25.5t-110.5 -64t-86.5 -72t-60 -61.5q-18 -22 -49 -22t-49 22q-24 28 -60 61.5t-86.5 72t-110.5 64t-112 25.5t-98 -8t-94 -31t-81.5 -59.5t-55 -98.5t-21.5 -143q0 -168 187 -355l581 -560l580 559 q188 188 188 356zM1792 940q0 -221 -229 -450l-623 -600q-18 -18 -44 -18t-44 18l-624 602q-10 8 -27.5 26t-55.5 65.5t-68 97.5t-53.5 121t-23.5 138q0 220 127 344t351 124q62 0 126.5 -21.5t120 -58t95.5 -68.5t76 -68q36 36 76 68t95.5 68.5t120 58t126.5 21.5 q224 0 351 -124t127 -344z" />+<glyph unicode="" horiz-adv-x="1664" d="M640 96q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-119 0 -203.5 84.5t-84.5 203.5v704q0 119 84.5 203.5t203.5 84.5h320q13 0 22.5 -9.5t9.5 -22.5q0 -4 1 -20t0.5 -26.5t-3 -23.5t-10 -19.5t-20.5 -6.5h-320q-66 0 -113 -47t-47 -113v-704 q0 -66 47 -113t113 -47h288h11h13t11.5 -1t11.5 -3t8 -5.5t7 -9t2 -13.5zM1568 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45z" />+<glyph unicode="" d="M237 122h231v694h-231v-694zM483 1030q-1 52 -36 86t-93 34t-94.5 -34t-36.5 -86q0 -51 35.5 -85.5t92.5 -34.5h1q59 0 95 34.5t36 85.5zM1068 122h231v398q0 154 -73 233t-193 79q-136 0 -209 -117h2v101h-231q3 -66 0 -694h231v388q0 38 7 56q15 35 45 59.5t74 24.5 q116 0 116 -157v-371zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1152" d="M480 672v448q0 14 -9 23t-23 9t-23 -9t-9 -23v-448q0 -14 9 -23t23 -9t23 9t9 23zM1152 320q0 -26 -19 -45t-45 -19h-429l-51 -483q-2 -12 -10.5 -20.5t-20.5 -8.5h-1q-27 0 -32 27l-76 485h-404q-26 0 -45 19t-19 45q0 123 78.5 221.5t177.5 98.5v512q-52 0 -90 38 t-38 90t38 90t90 38h640q52 0 90 -38t38 -90t-38 -90t-90 -38v-512q99 0 177.5 -98.5t78.5 -221.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320 q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" />+<glyph unicode="" d="M1184 640q0 -26 -19 -45l-544 -544q-19 -19 -45 -19t-45 19t-19 45v288h-448q-26 0 -45 19t-19 45v384q0 26 19 45t45 19h448v288q0 26 19 45t45 19t45 -19l544 -544q19 -19 19 -45zM1536 992v-704q0 -119 -84.5 -203.5t-203.5 -84.5h-320q-13 0 -22.5 9.5t-9.5 22.5 q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q66 0 113 47t47 113v704q0 66 -47 113t-113 47h-288h-11h-13t-11.5 1t-11.5 3t-8 5.5t-7 9t-2 13.5q0 4 -1 20t-0.5 26.5t3 23.5t10 19.5t20.5 6.5h320q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M458 653q-74 162 -74 371h-256v-96q0 -78 94.5 -162t235.5 -113zM1536 928v96h-256q0 -209 -74 -371q141 29 235.5 113t94.5 162zM1664 1056v-128q0 -71 -41.5 -143t-112 -130t-173 -97.5t-215.5 -44.5q-42 -54 -95 -95q-38 -34 -52.5 -72.5t-14.5 -89.5q0 -54 30.5 -91 t97.5 -37q75 0 133.5 -45.5t58.5 -114.5v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 69 58.5 114.5t133.5 45.5q67 0 97.5 37t30.5 91q0 51 -14.5 89.5t-52.5 72.5q-53 41 -95 95q-113 5 -215.5 44.5t-173 97.5t-112 130t-41.5 143v128q0 40 28 68t68 28h288v96 q0 66 47 113t113 47h576q66 0 113 -47t47 -113v-96h288q40 0 68 -28t28 -68z" />+<glyph unicode="" d="M394 184q-8 -9 -20 3q-13 11 -4 19q8 9 20 -3q12 -11 4 -19zM352 245q9 -12 0 -19q-8 -6 -17 7t0 18q9 7 17 -6zM291 305q-5 -7 -13 -2q-10 5 -7 12q3 5 13 2q10 -5 7 -12zM322 271q-6 -7 -16 3q-9 11 -2 16q6 6 16 -3q9 -11 2 -16zM451 159q-4 -12 -19 -6q-17 4 -13 15 t19 7q16 -5 13 -16zM514 154q0 -11 -16 -11q-17 -2 -17 11q0 11 16 11q17 2 17 -11zM572 164q2 -10 -14 -14t-18 8t14 15q16 2 18 -9zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-224q-16 0 -24.5 1t-19.5 5t-16 14.5t-5 27.5v239q0 97 -52 142q57 6 102.5 18t94 39 t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103 q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -103t0.5 -68q0 -22 -11 -33.5t-22 -13t-33 -1.5 h-224q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M1280 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 288v-320q0 -40 -28 -68t-68 -28h-1472q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h427q21 -56 70.5 -92 t110.5 -36h256q61 0 110.5 36t70.5 92h427q40 0 68 -28t28 -68zM1339 936q-17 -40 -59 -40h-256v-448q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v448h-256q-42 0 -59 40q-17 39 14 69l448 448q18 19 45 19t45 -19l448 -448q31 -30 14 -69z" />+<glyph unicode="" d="M1407 710q0 44 -7 113.5t-18 96.5q-12 30 -17 44t-9 36.5t-4 48.5q0 23 5 68.5t5 67.5q0 37 -10 55q-4 1 -13 1q-19 0 -58 -4.5t-59 -4.5q-60 0 -176 24t-175 24q-43 0 -94.5 -11.5t-85 -23.5t-89.5 -34q-137 -54 -202 -103q-96 -73 -159.5 -189.5t-88 -236t-24.5 -248.5 q0 -40 12.5 -120t12.5 -121q0 -23 -11 -66.5t-11 -65.5t12 -36.5t34 -14.5q24 0 72.5 11t73.5 11q57 0 169.5 -15.5t169.5 -15.5q181 0 284 36q129 45 235.5 152.5t166 245.5t59.5 275zM1535 712q0 -165 -70 -327.5t-196 -288t-281 -180.5q-124 -44 -326 -44 q-57 0 -170 14.5t-169 14.5q-24 0 -72.5 -14.5t-73.5 -14.5q-73 0 -123.5 55.5t-50.5 128.5q0 24 11 68t11 67q0 40 -12.5 120.5t-12.5 121.5q0 111 18 217.5t54.5 209.5t100.5 194t150 156q78 59 232 120q194 78 316 78q60 0 175.5 -24t173.5 -24q19 0 57 5t58 5 q81 0 118 -50.5t37 -134.5q0 -23 -5 -68t-5 -68q0 -10 1 -18.5t3 -17t4 -13.5t6.5 -16t6.5 -17q16 -40 25 -118.5t9 -136.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M1408 296q0 -27 -10 -70.5t-21 -68.5q-21 -50 -122 -106q-94 -51 -186 -51q-27 0 -52.5 3.5t-57.5 12.5t-47.5 14.5t-55.5 20.5t-49 18q-98 35 -175 83q-128 79 -264.5 215.5t-215.5 264.5q-48 77 -83 175q-3 9 -18 49t-20.5 55.5t-14.5 47.5t-12.5 57.5t-3.5 52.5 q0 92 51 186q56 101 106 122q25 11 68.5 21t70.5 10q14 0 21 -3q18 -6 53 -76q11 -19 30 -54t35 -63.5t31 -53.5q3 -4 17.5 -25t21.5 -35.5t7 -28.5q0 -20 -28.5 -50t-62 -55t-62 -53t-28.5 -46q0 -9 5 -22.5t8.5 -20.5t14 -24t11.5 -19q76 -137 174 -235t235 -174 q2 -1 19 -11.5t24 -14t20.5 -8.5t22.5 -5q18 0 46 28.5t53 62t55 62t50 28.5q14 0 28.5 -7t35.5 -21.5t25 -17.5q25 -15 53.5 -31t63.5 -35t54 -30q70 -35 76 -53q3 -7 3 -21z" />+<glyph unicode="" horiz-adv-x="1408" d="M1120 1280h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v832q0 66 -47 113t-113 47zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832 q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1280" d="M1152 1280h-1024v-1242l423 406l89 85l89 -85l423 -406v1242zM1164 1408q23 0 44 -9q33 -13 52.5 -41t19.5 -62v-1289q0 -34 -19.5 -62t-52.5 -41q-19 -8 -44 -8q-48 0 -83 32l-441 424l-441 -424q-36 -33 -83 -33q-23 0 -44 9q-33 13 -52.5 41t-19.5 62v1289 q0 34 19.5 62t52.5 41q21 9 44 9h1048z" />+<glyph unicode="" d="M1280 343q0 11 -2 16q-3 8 -38.5 29.5t-88.5 49.5l-53 29q-5 3 -19 13t-25 15t-21 5q-18 0 -47 -32.5t-57 -65.5t-44 -33q-7 0 -16.5 3.5t-15.5 6.5t-17 9.5t-14 8.5q-99 55 -170.5 126.5t-126.5 170.5q-2 3 -8.5 14t-9.5 17t-6.5 15.5t-3.5 16.5q0 13 20.5 33.5t45 38.5 t45 39.5t20.5 36.5q0 10 -5 21t-15 25t-13 19q-3 6 -15 28.5t-25 45.5t-26.5 47.5t-25 40.5t-16.5 18t-16 2q-48 0 -101 -22q-46 -21 -80 -94.5t-34 -130.5q0 -16 2.5 -34t5 -30.5t9 -33t10 -29.5t12.5 -33t11 -30q60 -164 216.5 -320.5t320.5 -216.5q6 -2 30 -11t33 -12.5 t29.5 -10t33 -9t30.5 -5t34 -2.5q57 0 130.5 34t94.5 80q22 53 22 101zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M1620 1128q-67 -98 -162 -167q1 -14 1 -42q0 -130 -38 -259.5t-115.5 -248.5t-184.5 -210.5t-258 -146t-323 -54.5q-271 0 -496 145q35 -4 78 -4q225 0 401 138q-105 2 -188 64.5t-114 159.5q33 -5 61 -5q43 0 85 11q-112 23 -185.5 111.5t-73.5 205.5v4q68 -38 146 -41 q-66 44 -105 115t-39 154q0 88 44 163q121 -149 294.5 -238.5t371.5 -99.5q-8 38 -8 74q0 134 94.5 228.5t228.5 94.5q140 0 236 -102q109 21 205 78q-37 -115 -142 -178q93 10 186 50z" />+<glyph unicode="" horiz-adv-x="768" d="M511 980h257l-30 -284h-227v-824h-341v824h-170v284h170v171q0 182 86 275.5t283 93.5h227v-284h-142q-39 0 -62.5 -6.5t-34 -23.5t-13.5 -34.5t-3 -49.5v-142z" />+<glyph unicode="" d="M1536 640q0 -251 -146.5 -451.5t-378.5 -277.5q-27 -5 -39.5 7t-12.5 30v211q0 97 -52 142q57 6 102.5 18t94 39t81 66.5t53 105t20.5 150.5q0 121 -79 206q37 91 -8 204q-28 9 -81 -11t-92 -44l-38 -24q-93 26 -192 26t-192 -26q-16 11 -42.5 27t-83.5 38.5t-86 13.5 q-44 -113 -7 -204q-79 -85 -79 -206q0 -85 20.5 -150t52.5 -105t80.5 -67t94 -39t102.5 -18q-40 -36 -49 -103q-21 -10 -45 -15t-57 -5t-65.5 21.5t-55.5 62.5q-19 32 -48.5 52t-49.5 24l-20 3q-21 0 -29 -4.5t-5 -11.5t9 -14t13 -12l7 -5q22 -10 43.5 -38t31.5 -51l10 -23 q13 -38 44 -61.5t67 -30t69.5 -7t55.5 3.5l23 4q0 -38 0.5 -89t0.5 -54q0 -18 -13 -30t-40 -7q-232 77 -378.5 277.5t-146.5 451.5q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M1664 960v-256q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45v256q0 106 -75 181t-181 75t-181 -75t-75 -181v-192h96q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h672v192q0 185 131.5 316.5t316.5 131.5 t316.5 -131.5t131.5 -316.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M1760 1408q66 0 113 -47t47 -113v-1216q0 -66 -47 -113t-113 -47h-1600q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1600zM160 1280q-13 0 -22.5 -9.5t-9.5 -22.5v-224h1664v224q0 13 -9.5 22.5t-22.5 9.5h-1600zM1760 0q13 0 22.5 9.5t9.5 22.5v608h-1664v-608 q0 -13 9.5 -22.5t22.5 -9.5h1600zM256 128v128h256v-128h-256zM640 128v128h384v-128h-384z" />+<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM896 69q2 -28 -17 -48q-18 -21 -47 -21h-135q-25 0 -43 16.5t-20 41.5q-22 229 -184.5 391.5t-391.5 184.5q-25 2 -41.5 20t-16.5 43v135q0 29 21 47q17 17 43 17h5q160 -13 306 -80.5 t259 -181.5q114 -113 181.5 -259t80.5 -306zM1408 67q2 -27 -18 -47q-18 -20 -46 -20h-143q-26 0 -44.5 17.5t-19.5 42.5q-12 215 -101 408.5t-231.5 336t-336 231.5t-408.5 102q-25 1 -42.5 19.5t-17.5 43.5v143q0 28 20 46q18 18 44 18h3q262 -13 501.5 -120t425.5 -294 q187 -186 294 -425.5t120 -501.5z" />+<glyph unicode="" d="M1040 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1296 320q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5zM1408 160v320q0 13 -9.5 22.5t-22.5 9.5 h-1216q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h1216q13 0 22.5 9.5t9.5 22.5zM178 640h1180l-157 482q-4 13 -16 21.5t-26 8.5h-782q-14 0 -26 -8.5t-16 -21.5zM1536 480v-320q0 -66 -47 -113t-113 -47h-1216q-66 0 -113 47t-47 113v320q0 25 16 75 l197 606q17 53 63 86t101 33h782q55 0 101 -33t63 -86l197 -606q16 -50 16 -75z" />+<glyph unicode="" horiz-adv-x="1792" d="M1664 896q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5v-384q0 -52 -38 -90t-90 -38q-417 347 -812 380q-58 -19 -91 -66t-31 -100.5t40 -92.5q-20 -33 -23 -65.5t6 -58t33.5 -55t48 -50t61.5 -50.5q-29 -58 -111.5 -83t-168.5 -11.5t-132 55.5q-7 23 -29.5 87.5 t-32 94.5t-23 89t-15 101t3.5 98.5t22 110.5h-122q-66 0 -113 47t-47 113v192q0 66 47 113t113 47h480q435 0 896 384q52 0 90 -38t38 -90v-384zM1536 292v954q-394 -302 -768 -343v-270q377 -42 768 -341z" />+<glyph unicode="" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM183 128h1298q-164 181 -246.5 411.5t-82.5 484.5q0 256 -320 256t-320 -256q0 -254 -82.5 -484.5t-246.5 -411.5zM1664 128q0 -52 -38 -90t-90 -38 h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />+<glyph unicode="" d="M1376 640l138 -135q30 -28 20 -70q-12 -41 -52 -51l-188 -48l53 -186q12 -41 -19 -70q-29 -31 -70 -19l-186 53l-48 -188q-10 -40 -51 -52q-12 -2 -19 -2q-31 0 -51 22l-135 138l-135 -138q-28 -30 -70 -20q-41 11 -51 52l-48 188l-186 -53q-41 -12 -70 19q-31 29 -19 70 l53 186l-188 48q-40 10 -52 51q-10 42 20 70l138 135l-138 135q-30 28 -20 70q12 41 52 51l188 48l-53 186q-12 41 19 70q29 31 70 19l186 -53l48 188q10 41 51 51q41 12 70 -19l135 -139l135 139q29 30 70 19q41 -10 51 -51l48 -188l186 53q41 12 70 -19q31 -29 19 -70 l-53 -186l188 -48q40 -10 52 -51q10 -42 -20 -70z" />+<glyph unicode="" horiz-adv-x="1792" d="M256 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1664 768q0 51 -39 89.5t-89 38.5h-576q0 20 15 48.5t33 55t33 68t15 84.5q0 67 -44.5 97.5t-115.5 30.5q-24 0 -90 -139q-24 -44 -37 -65q-40 -64 -112 -145q-71 -81 -101 -106 q-69 -57 -140 -57h-32v-640h32q72 0 167 -32t193.5 -64t179.5 -32q189 0 189 167q0 26 -5 56q30 16 47.5 52.5t17.5 73.5t-18 69q53 50 53 119q0 25 -10 55.5t-25 47.5h331q52 0 90 38t38 90zM1792 769q0 -105 -75.5 -181t-180.5 -76h-169q-4 -62 -37 -119q3 -21 3 -43 q0 -101 -60 -178q1 -139 -85 -219.5t-227 -80.5q-133 0 -322 69q-164 59 -223 59h-288q-53 0 -90.5 37.5t-37.5 90.5v640q0 53 37.5 90.5t90.5 37.5h288q10 0 21.5 4.5t23.5 14t22.5 18t24 22.5t20.5 21.5t19 21.5t14 17q65 74 100 129q13 21 33 62t37 72t40.5 63t55 49.5 t69.5 17.5q125 0 206.5 -67t81.5 -189q0 -68 -22 -128h374q104 0 180 -76t76 -179z" />+<glyph unicode="" horiz-adv-x="1792" d="M1376 128h32v640h-32q-35 0 -67.5 12t-62.5 37t-50 46t-49 54q-2 3 -3.5 4.5t-4 4.5t-4.5 5q-72 81 -112 145q-14 22 -38 68q-1 3 -10.5 22.5t-18.5 36t-20 35.5t-21.5 30.5t-18.5 11.5q-71 0 -115.5 -30.5t-44.5 -97.5q0 -43 15 -84.5t33 -68t33 -55t15 -48.5h-576 q-50 0 -89 -38.5t-39 -89.5q0 -52 38 -90t90 -38h331q-15 -17 -25 -47.5t-10 -55.5q0 -69 53 -119q-18 -32 -18 -69t17.5 -73.5t47.5 -52.5q-4 -24 -4 -56q0 -85 48.5 -126t135.5 -41q84 0 183 32t194 64t167 32zM1664 192q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45 t45 -19t45 19t19 45zM1792 768v-640q0 -53 -37.5 -90.5t-90.5 -37.5h-288q-59 0 -223 -59q-190 -69 -317 -69q-142 0 -230 77.5t-87 217.5l1 5q-61 76 -61 178q0 22 3 43q-33 57 -37 119h-169q-105 0 -180.5 76t-75.5 181q0 103 76 179t180 76h374q-22 60 -22 128 q0 122 81.5 189t206.5 67q38 0 69.5 -17.5t55 -49.5t40.5 -63t37 -72t33 -62q35 -55 100 -129q2 -3 14 -17t19 -21.5t20.5 -21.5t24 -22.5t22.5 -18t23.5 -14t21.5 -4.5h288q53 0 90.5 -37.5t37.5 -90.5z" />+<glyph unicode="" d="M1280 -64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 700q0 189 -167 189q-26 0 -56 -5q-16 30 -52.5 47.5t-73.5 17.5t-69 -18q-50 53 -119 53q-25 0 -55.5 -10t-47.5 -25v331q0 52 -38 90t-90 38q-51 0 -89.5 -39t-38.5 -89v-576 q-20 0 -48.5 15t-55 33t-68 33t-84.5 15q-67 0 -97.5 -44.5t-30.5 -115.5q0 -24 139 -90q44 -24 65 -37q64 -40 145 -112q81 -71 106 -101q57 -69 57 -140v-32h640v32q0 72 32 167t64 193.5t32 179.5zM1536 705q0 -133 -69 -322q-59 -164 -59 -223v-288q0 -53 -37.5 -90.5 t-90.5 -37.5h-640q-53 0 -90.5 37.5t-37.5 90.5v288q0 10 -4.5 21.5t-14 23.5t-18 22.5t-22.5 24t-21.5 20.5t-21.5 19t-17 14q-74 65 -129 100q-21 13 -62 33t-72 37t-63 40.5t-49.5 55t-17.5 69.5q0 125 67 206.5t189 81.5q68 0 128 -22v374q0 104 76 180t179 76 q105 0 181 -75.5t76 -180.5v-169q62 -4 119 -37q21 3 43 3q101 0 178 -60q139 1 219.5 -85t80.5 -227z" />+<glyph unicode="" d="M1408 576q0 84 -32 183t-64 194t-32 167v32h-640v-32q0 -35 -12 -67.5t-37 -62.5t-46 -50t-54 -49q-9 -8 -14 -12q-81 -72 -145 -112q-22 -14 -68 -38q-3 -1 -22.5 -10.5t-36 -18.5t-35.5 -20t-30.5 -21.5t-11.5 -18.5q0 -71 30.5 -115.5t97.5 -44.5q43 0 84.5 15t68 33 t55 33t48.5 15v-576q0 -50 38.5 -89t89.5 -39q52 0 90 38t38 90v331q46 -35 103 -35q69 0 119 53q32 -18 69 -18t73.5 17.5t52.5 47.5q24 -4 56 -4q85 0 126 48.5t41 135.5zM1280 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1536 580 q0 -142 -77.5 -230t-217.5 -87l-5 1q-76 -61 -178 -61q-22 0 -43 3q-54 -30 -119 -37v-169q0 -105 -76 -180.5t-181 -75.5q-103 0 -179 76t-76 180v374q-54 -22 -128 -22q-121 0 -188.5 81.5t-67.5 206.5q0 38 17.5 69.5t49.5 55t63 40.5t72 37t62 33q55 35 129 100 q3 2 17 14t21.5 19t21.5 20.5t22.5 24t18 22.5t14 23.5t4.5 21.5v288q0 53 37.5 90.5t90.5 37.5h640q53 0 90.5 -37.5t37.5 -90.5v-288q0 -59 59 -223q69 -190 69 -317z" />+<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-502l189 189q19 19 19 45t-19 45l-91 91q-18 18 -45 18t-45 -18l-362 -362l-91 -91q-18 -18 -18 -45t18 -45l91 -91l362 -362q18 -18 45 -18t45 18l91 91q18 18 18 45t-18 45l-189 189h502q26 0 45 19t19 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1285 640q0 27 -18 45l-91 91l-362 362q-18 18 -45 18t-45 -18l-91 -91q-18 -18 -18 -45t18 -45l189 -189h-502q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h502l-189 -189q-19 -19 -19 -45t19 -45l91 -91q18 -18 45 -18t45 18l362 362l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1284 641q0 27 -18 45l-362 362l-91 91q-18 18 -45 18t-45 -18l-91 -91l-362 -362q-18 -18 -18 -45t18 -45l91 -91q18 -18 45 -18t45 18l189 189v-502q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v502l189 -189q19 -19 45 -19t45 19l91 91q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1284 639q0 27 -18 45l-91 91q-18 18 -45 18t-45 -18l-189 -189v502q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-502l-189 189q-19 19 -45 19t-45 -19l-91 -91q-18 -18 -18 -45t18 -45l362 -362l91 -91q18 -18 45 -18t45 18l91 91l362 362q18 18 18 45zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1042 887q-2 -1 -9.5 -9.5t-13.5 -9.5q2 0 4.5 5t5 11t3.5 7q6 7 22 15q14 6 52 12q34 8 51 -11 q-2 2 9.5 13t14.5 12q3 2 15 4.5t15 7.5l2 22q-12 -1 -17.5 7t-6.5 21q0 -2 -6 -8q0 7 -4.5 8t-11.5 -1t-9 -1q-10 3 -15 7.5t-8 16.5t-4 15q-2 5 -9.5 10.5t-9.5 10.5q-1 2 -2.5 5.5t-3 6.5t-4 5.5t-5.5 2.5t-7 -5t-7.5 -10t-4.5 -5q-3 2 -6 1.5t-4.5 -1t-4.5 -3t-5 -3.5 q-3 -2 -8.5 -3t-8.5 -2q15 5 -1 11q-10 4 -16 3q9 4 7.5 12t-8.5 14h5q-1 4 -8.5 8.5t-17.5 8.5t-13 6q-8 5 -34 9.5t-33 0.5q-5 -6 -4.5 -10.5t4 -14t3.5 -12.5q1 -6 -5.5 -13t-6.5 -12q0 -7 14 -15.5t10 -21.5q-3 -8 -16 -16t-16 -12q-5 -8 -1.5 -18.5t10.5 -16.5 q2 -2 1.5 -4t-3.5 -4.5t-5.5 -4t-6.5 -3.5l-3 -2q-11 -5 -20.5 6t-13.5 26q-7 25 -16 30q-23 8 -29 -1q-5 13 -41 26q-25 9 -58 4q6 1 0 15q-7 15 -19 12q3 6 4 17.5t1 13.5q3 13 12 23q1 1 7 8.5t9.5 13.5t0.5 6q35 -4 50 11q5 5 11.5 17t10.5 17q9 6 14 5.5t14.5 -5.5 t14.5 -5q14 -1 15.5 11t-7.5 20q12 -1 3 17q-5 7 -8 9q-12 4 -27 -5q-8 -4 2 -8q-1 1 -9.5 -10.5t-16.5 -17.5t-16 5q-1 1 -5.5 13.5t-9.5 13.5q-8 0 -16 -15q3 8 -11 15t-24 8q19 12 -8 27q-7 4 -20.5 5t-19.5 -4q-5 -7 -5.5 -11.5t5 -8t10.5 -5.5t11.5 -4t8.5 -3 q14 -10 8 -14q-2 -1 -8.5 -3.5t-11.5 -4.5t-6 -4q-3 -4 0 -14t-2 -14q-5 5 -9 17.5t-7 16.5q7 -9 -25 -6l-10 1q-4 0 -16 -2t-20.5 -1t-13.5 8q-4 8 0 20q1 4 4 2q-4 3 -11 9.5t-10 8.5q-46 -15 -94 -41q6 -1 12 1q5 2 13 6.5t10 5.5q34 14 42 7l5 5q14 -16 20 -25 q-7 4 -30 1q-20 -6 -22 -12q7 -12 5 -18q-4 3 -11.5 10t-14.5 11t-15 5q-16 0 -22 -1q-146 -80 -235 -222q7 -7 12 -8q4 -1 5 -9t2.5 -11t11.5 3q9 -8 3 -19q1 1 44 -27q19 -17 21 -21q3 -11 -10 -18q-1 2 -9 9t-9 4q-3 -5 0.5 -18.5t10.5 -12.5q-7 0 -9.5 -16t-2.5 -35.5 t-1 -23.5l2 -1q-3 -12 5.5 -34.5t21.5 -19.5q-13 -3 20 -43q6 -8 8 -9q3 -2 12 -7.5t15 -10t10 -10.5q4 -5 10 -22.5t14 -23.5q-2 -6 9.5 -20t10.5 -23q-1 0 -2.5 -1t-2.5 -1q3 -7 15.5 -14t15.5 -13q1 -3 2 -10t3 -11t8 -2q2 20 -24 62q-15 25 -17 29q-3 5 -5.5 15.5 t-4.5 14.5q2 0 6 -1.5t8.5 -3.5t7.5 -4t2 -3q-3 -7 2 -17.5t12 -18.5t17 -19t12 -13q6 -6 14 -19.5t0 -13.5q9 0 20 -10t17 -20q5 -8 8 -26t5 -24q2 -7 8.5 -13.5t12.5 -9.5l16 -8t13 -7q5 -2 18.5 -10.5t21.5 -11.5q10 -4 16 -4t14.5 2.5t13.5 3.5q15 2 29 -15t21 -21 q36 -19 55 -11q-2 -1 0.5 -7.5t8 -15.5t9 -14.5t5.5 -8.5q5 -6 18 -15t18 -15q6 4 7 9q-3 -8 7 -20t18 -10q14 3 14 32q-31 -15 -49 18q0 1 -2.5 5.5t-4 8.5t-2.5 8.5t0 7.5t5 3q9 0 10 3.5t-2 12.5t-4 13q-1 8 -11 20t-12 15q-5 -9 -16 -8t-16 9q0 -1 -1.5 -5.5t-1.5 -6.5 q-13 0 -15 1q1 3 2.5 17.5t3.5 22.5q1 4 5.5 12t7.5 14.5t4 12.5t-4.5 9.5t-17.5 2.5q-19 -1 -26 -20q-1 -3 -3 -10.5t-5 -11.5t-9 -7q-7 -3 -24 -2t-24 5q-13 8 -22.5 29t-9.5 37q0 10 2.5 26.5t3 25t-5.5 24.5q3 2 9 9.5t10 10.5q2 1 4.5 1.5t4.5 0t4 1.5t3 6q-1 1 -4 3 q-3 3 -4 3q7 -3 28.5 1.5t27.5 -1.5q15 -11 22 2q0 1 -2.5 9.5t-0.5 13.5q5 -27 29 -9q3 -3 15.5 -5t17.5 -5q3 -2 7 -5.5t5.5 -4.5t5 0.5t8.5 6.5q10 -14 12 -24q11 -40 19 -44q7 -3 11 -2t4.5 9.5t0 14t-1.5 12.5l-1 8v18l-1 8q-15 3 -18.5 12t1.5 18.5t15 18.5q1 1 8 3.5 t15.5 6.5t12.5 8q21 19 15 35q7 0 11 9q-1 0 -5 3t-7.5 5t-4.5 2q9 5 2 16q5 3 7.5 11t7.5 10q9 -12 21 -2q7 8 1 16q5 7 20.5 10.5t18.5 9.5q7 -2 8 2t1 12t3 12q4 5 15 9t13 5l17 11q3 4 0 4q18 -2 31 11q10 11 -6 20q3 6 -3 9.5t-15 5.5q3 1 11.5 0.5t10.5 1.5 q15 10 -7 16q-17 5 -43 -12zM879 10q206 36 351 189q-3 3 -12.5 4.5t-12.5 3.5q-18 7 -24 8q1 7 -2.5 13t-8 9t-12.5 8t-11 7q-2 2 -7 6t-7 5.5t-7.5 4.5t-8.5 2t-10 -1l-3 -1q-3 -1 -5.5 -2.5t-5.5 -3t-4 -3t0 -2.5q-21 17 -36 22q-5 1 -11 5.5t-10.5 7t-10 1.5t-11.5 -7 q-5 -5 -6 -15t-2 -13q-7 5 0 17.5t2 18.5q-3 6 -10.5 4.5t-12 -4.5t-11.5 -8.5t-9 -6.5t-8.5 -5.5t-8.5 -7.5q-3 -4 -6 -12t-5 -11q-2 4 -11.5 6.5t-9.5 5.5q2 -10 4 -35t5 -38q7 -31 -12 -48q-27 -25 -29 -40q-4 -22 12 -26q0 -7 -8 -20.5t-7 -21.5q0 -6 2 -16z" />+<glyph unicode="" horiz-adv-x="1664" d="M384 64q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1028 484l-682 -682q-37 -37 -90 -37q-52 0 -91 37l-106 108q-38 36 -38 90q0 53 38 91l681 681q39 -98 114.5 -173.5t173.5 -114.5zM1662 919q0 -39 -23 -106q-47 -134 -164.5 -217.5 t-258.5 -83.5q-185 0 -316.5 131.5t-131.5 316.5t131.5 316.5t316.5 131.5q58 0 121.5 -16.5t107.5 -46.5q16 -11 16 -28t-16 -28l-293 -169v-224l193 -107q5 3 79 48.5t135.5 81t70.5 35.5q15 0 23.5 -10t8.5 -25z" />+<glyph unicode="" horiz-adv-x="1792" d="M1024 128h640v128h-640v-128zM640 640h1024v128h-1024v-128zM1280 1152h384v128h-384v-128zM1792 320v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 832v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19 t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45zM1792 1344v-256q0 -26 -19 -45t-45 -19h-1664q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1664q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1408" d="M1403 1241q17 -41 -14 -70l-493 -493v-742q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-256 256q-19 19 -19 45v486l-493 493q-31 29 -14 70q17 39 59 39h1280q42 0 59 -39z" />+<glyph unicode="" horiz-adv-x="1792" d="M640 1280h512v128h-512v-128zM1792 640v-480q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v480h672v-160q0 -26 19 -45t45 -19h320q26 0 45 19t19 45v160h672zM1024 640v-128h-256v128h256zM1792 1120v-384h-1792v384q0 66 47 113t113 47h352v160q0 40 28 68 t68 28h576q40 0 68 -28t28 -68v-160h352q66 0 113 -47t47 -113z" />+<glyph unicode="" d="M1283 995l-355 -355l355 -355l144 144q29 31 70 14q39 -17 39 -59v-448q0 -26 -19 -45t-45 -19h-448q-42 0 -59 40q-17 39 14 69l144 144l-355 355l-355 -355l144 -144q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l144 -144 l355 355l-355 355l-144 -144q-19 -19 -45 -19q-12 0 -24 5q-40 17 -40 59v448q0 26 19 45t45 19h448q42 0 59 -40q17 -39 -14 -69l-144 -144l355 -355l355 355l-144 144q-31 30 -14 69q17 40 59 40h448q26 0 45 -19t19 -45v-448q0 -42 -39 -59q-13 -5 -25 -5q-26 0 -45 19z " />+<glyph unicode="" horiz-adv-x="1920" d="M593 640q-162 -5 -265 -128h-134q-82 0 -138 40.5t-56 118.5q0 353 124 353q6 0 43.5 -21t97.5 -42.5t119 -21.5q67 0 133 23q-5 -37 -5 -66q0 -139 81 -256zM1664 3q0 -120 -73 -189.5t-194 -69.5h-874q-121 0 -194 69.5t-73 189.5q0 53 3.5 103.5t14 109t26.5 108.5 t43 97.5t62 81t85.5 53.5t111.5 20q10 0 43 -21.5t73 -48t107 -48t135 -21.5t135 21.5t107 48t73 48t43 21.5q61 0 111.5 -20t85.5 -53.5t62 -81t43 -97.5t26.5 -108.5t14 -109t3.5 -103.5zM640 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75 t75 -181zM1344 896q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5t271.5 -112.5t112.5 -271.5zM1920 671q0 -78 -56 -118.5t-138 -40.5h-134q-103 123 -265 128q81 117 81 256q0 29 -5 66q66 -23 133 -23q59 0 119 21.5t97.5 42.5 t43.5 21q124 0 124 -353zM1792 1280q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181z" />+<glyph unicode="" horiz-adv-x="1664" d="M1456 320q0 40 -28 68l-208 208q-28 28 -68 28q-42 0 -72 -32q3 -3 19 -18.5t21.5 -21.5t15 -19t13 -25.5t3.5 -27.5q0 -40 -28 -68t-68 -28q-15 0 -27.5 3.5t-25.5 13t-19 15t-21.5 21.5t-18.5 19q-33 -31 -33 -73q0 -40 28 -68l206 -207q27 -27 68 -27q40 0 68 26 l147 146q28 28 28 67zM753 1025q0 40 -28 68l-206 207q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l208 -208q27 -27 68 -27q42 0 72 31q-3 3 -19 18.5t-21.5 21.5t-15 19t-13 25.5t-3.5 27.5q0 40 28 68t68 28q15 0 27.5 -3.5t25.5 -13t19 -15 t21.5 -21.5t18.5 -19q33 31 33 73zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-206 207q-83 83 -83 203q0 123 88 209l-88 88q-86 -88 -208 -88q-120 0 -204 84l-208 208q-84 84 -84 204t85 203l147 146q83 83 203 83q121 0 204 -85l206 -207 q83 -83 83 -203q0 -123 -88 -209l88 -88q86 88 208 88q120 0 204 -84l208 -208q84 -84 84 -204z" />+<glyph unicode="" horiz-adv-x="1920" d="M1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088q-185 0 -316.5 131.5t-131.5 316.5q0 132 71 241.5t187 163.5q-2 28 -2 43q0 212 150 362t362 150q158 0 286.5 -88t187.5 -230q70 62 166 62q106 0 181 -75t75 -181q0 -75 -41 -138q129 -30 213 -134.5t84 -239.5z " />+<glyph unicode="" horiz-adv-x="1664" d="M1527 88q56 -89 21.5 -152.5t-140.5 -63.5h-1152q-106 0 -140.5 63.5t21.5 152.5l503 793v399h-64q-26 0 -45 19t-19 45t19 45t45 19h512q26 0 45 -19t19 -45t-19 -45t-45 -19h-64v-399zM748 813l-272 -429h712l-272 429l-20 31v37v399h-128v-399v-37z" />+<glyph unicode="" horiz-adv-x="1792" d="M960 640q26 0 45 -19t19 -45t-19 -45t-45 -19t-45 19t-19 45t19 45t45 19zM1260 576l507 -398q28 -20 25 -56q-5 -35 -35 -51l-128 -64q-13 -7 -29 -7q-17 0 -31 8l-690 387l-110 -66q-8 -4 -12 -5q14 -49 10 -97q-7 -77 -56 -147.5t-132 -123.5q-132 -84 -277 -84 q-136 0 -222 78q-90 84 -79 207q7 76 56 147t131 124q132 84 278 84q83 0 151 -31q9 13 22 22l122 73l-122 73q-13 9 -22 22q-68 -31 -151 -31q-146 0 -278 84q-82 53 -131 124t-56 147q-5 59 15.5 113t63.5 93q85 79 222 79q145 0 277 -84q83 -52 132 -123t56 -148 q4 -48 -10 -97q4 -1 12 -5l110 -66l690 387q14 8 31 8q16 0 29 -7l128 -64q30 -16 35 -51q3 -36 -25 -56zM579 836q46 42 21 108t-106 117q-92 59 -192 59q-74 0 -113 -36q-46 -42 -21 -108t106 -117q92 -59 192 -59q74 0 113 36zM494 91q81 51 106 117t-21 108 q-39 36 -113 36q-100 0 -192 -59q-81 -51 -106 -117t21 -108q39 -36 113 -36q100 0 192 59zM672 704l96 -58v11q0 36 33 56l14 8l-79 47l-26 -26q-3 -3 -10 -11t-12 -12q-2 -2 -4 -3.5t-3 -2.5zM896 480l96 -32l736 576l-128 64l-768 -431v-113l-160 -96l9 -8q2 -2 7 -6 q4 -4 11 -12t11 -12l26 -26zM1600 64l128 64l-520 408l-177 -138q-2 -3 -13 -7z" />+<glyph unicode="" horiz-adv-x="1792" d="M1696 1152q40 0 68 -28t28 -68v-1216q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v288h-544q-40 0 -68 28t-28 68v672q0 40 20 88t48 76l408 408q28 28 76 48t88 20h416q40 0 68 -28t28 -68v-328q68 40 128 40h416zM1152 939l-299 -299h299v299zM512 1323l-299 -299 h299v299zM708 676l316 316v416h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h512v256q0 40 20 88t48 76zM1664 -128v1152h-384v-416q0 -40 -28 -68t-68 -28h-416v-640h896z" />+<glyph unicode="" horiz-adv-x="1408" d="M1404 151q0 -117 -79 -196t-196 -79q-135 0 -235 100l-777 776q-113 115 -113 271q0 159 110 270t269 111q158 0 273 -113l605 -606q10 -10 10 -22q0 -16 -30.5 -46.5t-46.5 -30.5q-13 0 -23 10l-606 607q-79 77 -181 77q-106 0 -179 -75t-73 -181q0 -105 76 -181 l776 -777q63 -63 145 -63q64 0 106 42t42 106q0 82 -63 145l-581 581q-26 24 -60 24q-29 0 -48 -19t-19 -48q0 -32 25 -59l410 -410q10 -10 10 -22q0 -16 -31 -47t-47 -31q-12 0 -22 10l-410 410q-63 61 -63 149q0 82 57 139t139 57q88 0 149 -63l581 -581q100 -98 100 -235 z" />+<glyph unicode="" d="M384 0h768v384h-768v-384zM1280 0h128v896q0 14 -10 38.5t-20 34.5l-281 281q-10 10 -34 20t-39 10v-416q0 -40 -28 -68t-68 -28h-576q-40 0 -68 28t-28 68v416h-128v-1280h128v416q0 40 28 68t68 28h832q40 0 68 -28t28 -68v-416zM896 928v320q0 13 -9.5 22.5t-22.5 9.5 h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5zM1536 896v-928q0 -40 -28 -68t-68 -28h-1344q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h928q40 0 88 -20t76 -48l280 -280q28 -28 48 -76t20 -88z" />+<glyph unicode="" d="M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1536 192v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 704v-128q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1536 1216v-128q0 -26 -19 -45 t-45 -19h-1408q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M384 128q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM384 640q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 224v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5 t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1152q0 -80 -56 -136t-136 -56t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z M1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M381 -84q0 -80 -54.5 -126t-135.5 -46q-106 0 -172 66l57 88q49 -45 106 -45q29 0 50.5 14.5t21.5 42.5q0 64 -105 56l-26 56q8 10 32.5 43.5t42.5 54t37 38.5v1q-16 0 -48.5 -1t-48.5 -1v-53h-106v152h333v-88l-95 -115q51 -12 81 -49t30 -88zM383 543v-159h-362 q-6 36 -6 54q0 51 23.5 93t56.5 68t66 47.5t56.5 43.5t23.5 45q0 25 -14.5 38.5t-39.5 13.5q-46 0 -81 -58l-85 59q24 51 71.5 79.5t105.5 28.5q73 0 123 -41.5t50 -112.5q0 -50 -34 -91.5t-75 -64.5t-75.5 -50.5t-35.5 -52.5h127v60h105zM1792 224v-192q0 -13 -9.5 -22.5 t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM384 1123v-99h-335v99h107q0 41 0.5 122t0.5 121v12h-2q-8 -17 -50 -54l-71 76l136 127h106v-404h108zM1792 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5 t-9.5 22.5v192q0 14 9 23t23 9h1216q13 0 22.5 -9.5t9.5 -22.5zM1792 1248v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1216q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1216q13 0 22.5 -9.5t9.5 -22.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1760 640q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-1728q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h1728zM483 704q-28 35 -51 80q-48 97 -48 188q0 181 134 309q133 127 393 127q50 0 167 -19q66 -12 177 -48q10 -38 21 -118q14 -123 14 -183q0 -18 -5 -45l-12 -3l-84 6 l-14 2q-50 149 -103 205q-88 91 -210 91q-114 0 -182 -59q-67 -58 -67 -146q0 -73 66 -140t279 -129q69 -20 173 -66q58 -28 95 -52h-743zM990 448h411q7 -39 7 -92q0 -111 -41 -212q-23 -55 -71 -104q-37 -35 -109 -81q-80 -48 -153 -66q-80 -21 -203 -21q-114 0 -195 23 l-140 40q-57 16 -72 28q-8 8 -8 22v13q0 108 -2 156q-1 30 0 68l2 37v44l102 2q15 -34 30 -71t22.5 -56t12.5 -27q35 -57 80 -94q43 -36 105 -57q59 -22 132 -22q64 0 139 27q77 26 122 86q47 61 47 129q0 84 -81 157q-34 29 -137 71z" />+<glyph unicode="" d="M48 1313q-37 2 -45 4l-3 88q13 1 40 1q60 0 112 -4q132 -7 166 -7q86 0 168 3q116 4 146 5q56 0 86 2l-1 -14l2 -64v-9q-60 -9 -124 -9q-60 0 -79 -25q-13 -14 -13 -132q0 -13 0.5 -32.5t0.5 -25.5l1 -229l14 -280q6 -124 51 -202q35 -59 96 -92q88 -47 177 -47 q104 0 191 28q56 18 99 51q48 36 65 64q36 56 53 114q21 73 21 229q0 79 -3.5 128t-11 122.5t-13.5 159.5l-4 59q-5 67 -24 88q-34 35 -77 34l-100 -2l-14 3l2 86h84l205 -10q76 -3 196 10l18 -2q6 -38 6 -51q0 -7 -4 -31q-45 -12 -84 -13q-73 -11 -79 -17q-15 -15 -15 -41 q0 -7 1.5 -27t1.5 -31q8 -19 22 -396q6 -195 -15 -304q-15 -76 -41 -122q-38 -65 -112 -123q-75 -57 -182 -89q-109 -33 -255 -33q-167 0 -284 46q-119 47 -179 122q-61 76 -83 195q-16 80 -16 237v333q0 188 -17 213q-25 36 -147 39zM1536 -96v64q0 14 -9 23t-23 9h-1472 q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h1472q14 0 23 9t9 23z" />+<glyph unicode="" horiz-adv-x="1664" d="M512 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 160v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23 v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM512 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 160v192 q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1024 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 544v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192 q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1536 928v192q0 14 -9 23t-23 9h-320q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h320q14 0 23 9t9 23zM1664 1248v-1088q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1344q66 0 113 -47t47 -113 z" />+<glyph unicode="" horiz-adv-x="1664" d="M1190 955l293 293l-107 107l-293 -293zM1637 1248q0 -27 -18 -45l-1286 -1286q-18 -18 -45 -18t-45 18l-198 198q-18 18 -18 45t18 45l1286 1286q18 18 45 18t45 -18l198 -198q18 -18 18 -45zM286 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM636 1276 l196 -60l-196 -60l-60 -196l-60 196l-196 60l196 60l60 196zM1566 798l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98zM926 1438l98 -30l-98 -30l-30 -98l-30 98l-98 30l98 30l30 98z" />+<glyph unicode="" horiz-adv-x="1792" d="M640 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM256 640h384v256h-158q-13 0 -22 -9l-195 -195q-9 -9 -9 -22v-30zM1536 128q0 52 -38 90t-90 38t-90 -38t-38 -90t38 -90t90 -38t90 38t38 90zM1792 1216v-1024q0 -15 -4 -26.5t-13.5 -18.5 t-16.5 -11.5t-23.5 -6t-22.5 -2t-25.5 0t-22.5 0.5q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-64q-3 0 -22.5 -0.5t-25.5 0t-22.5 2t-23.5 6t-16.5 11.5t-13.5 18.5t-4 26.5q0 26 19 45t45 19v320q0 8 -0.5 35t0 38 t2.5 34.5t6.5 37t14 30.5t22.5 30l198 198q19 19 50.5 32t58.5 13h160v192q0 26 19 45t45 19h1024q26 0 45 -19t19 -45z" />+<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103q-111 0 -218 32q59 93 78 164q9 34 54 211q20 -39 73 -67.5t114 -28.5q121 0 216 68.5t147 188.5t52 270q0 114 -59.5 214t-172.5 163t-255 63q-105 0 -196 -29t-154.5 -77t-109 -110.5t-67 -129.5t-21.5 -134 q0 -104 40 -183t117 -111q30 -12 38 20q2 7 8 31t8 30q6 23 -11 43q-51 61 -51 151q0 151 104.5 259.5t273.5 108.5q151 0 235.5 -82t84.5 -213q0 -170 -68.5 -289t-175.5 -119q-61 0 -98 43.5t-23 104.5q8 35 26.5 93.5t30 103t11.5 75.5q0 50 -27 83t-77 33 q-62 0 -105 -57t-43 -142q0 -73 25 -122l-99 -418q-17 -70 -13 -177q-206 91 -333 281t-127 423q0 209 103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-725q85 122 108 210q9 34 53 209q21 -39 73.5 -67t112.5 -28q181 0 295.5 147.5t114.5 373.5q0 84 -35 162.5t-96.5 139t-152.5 97t-197 36.5q-104 0 -194.5 -28.5t-153 -76.5 t-107.5 -109.5t-66.5 -128t-21.5 -132.5q0 -102 39.5 -180t116.5 -110q13 -5 23.5 0t14.5 19q10 44 15 61q6 23 -11 42q-50 62 -50 150q0 150 103.5 256.5t270.5 106.5q149 0 232.5 -81t83.5 -210q0 -168 -67.5 -286t-173.5 -118q-60 0 -97 43.5t-23 103.5q8 34 26.5 92.5 t29.5 102t11 74.5q0 49 -26.5 81.5t-75.5 32.5q-61 0 -103.5 -56.5t-42.5 -139.5q0 -72 24 -121l-98 -414q-24 -100 -7 -254h-183q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960z" />+<glyph unicode="" d="M678 -57q0 -38 -10 -71h-380q-95 0 -171.5 56.5t-103.5 147.5q24 45 69 77.5t100 49.5t107 24t107 7q32 0 49 -2q6 -4 30.5 -21t33 -23t31 -23t32 -25.5t27.5 -25.5t26.5 -29.5t21 -30.5t17.5 -34.5t9.5 -36t4.5 -40.5zM385 294q-234 -7 -385 -85v433q103 -118 273 -118 q32 0 70 5q-21 -61 -21 -86q0 -67 63 -149zM558 805q0 -100 -43.5 -160.5t-140.5 -60.5q-51 0 -97 26t-78 67.5t-56 93.5t-35.5 104t-11.5 99q0 96 51.5 165t144.5 69q66 0 119 -41t84 -104t47 -130t16 -128zM1536 896v-736q0 -119 -84.5 -203.5t-203.5 -84.5h-468 q39 73 39 157q0 66 -22 122.5t-55.5 93t-72 71t-72 59.5t-55.5 54.5t-22 59.5q0 36 23 68t56 61.5t65.5 64.5t55.5 93t23 131t-26.5 145.5t-75.5 118.5q-6 6 -14 11t-12.5 7.5t-10 9.5t-10.5 17h135l135 64h-437q-138 0 -244.5 -38.5t-182.5 -133.5q0 126 81 213t207 87h960 q119 0 203.5 -84.5t84.5 -203.5v-96h-256v256h-128v-256h-256v-128h256v-256h128v256h256z" />+<glyph unicode="" horiz-adv-x="1664" d="M876 71q0 21 -4.5 40.5t-9.5 36t-17.5 34.5t-21 30.5t-26.5 29.5t-27.5 25.5t-32 25.5t-31 23t-33 23t-30.5 21q-17 2 -50 2q-54 0 -106 -7t-108 -25t-98 -46t-69 -75t-27 -107q0 -68 35.5 -121.5t93 -84t120.5 -45.5t127 -15q59 0 112.5 12.5t100.5 39t74.5 73.5 t27.5 110zM756 933q0 60 -16.5 127.5t-47 130.5t-84 104t-119.5 41q-93 0 -144 -69t-51 -165q0 -47 11.5 -99t35.5 -104t56 -93.5t78 -67.5t97 -26q97 0 140.5 60.5t43.5 160.5zM625 1408h437l-135 -79h-135q71 -45 110 -126t39 -169q0 -74 -23 -131.5t-56 -92.5t-66 -64.5 t-56 -61t-23 -67.5q0 -26 16.5 -51t43 -48t58.5 -48t64 -55.5t58.5 -66t43 -85t16.5 -106.5q0 -160 -140 -282q-152 -131 -420 -131q-59 0 -119.5 10t-122 33.5t-108.5 58t-77 89t-30 121.5q0 61 37 135q32 64 96 110.5t145 71t155 36t150 13.5q-64 83 -64 149q0 12 2 23.5 t5 19.5t8 21.5t7 21.5q-40 -5 -70 -5q-149 0 -255.5 98t-106.5 246q0 140 95 250.5t234 141.5q94 20 187 20zM1664 1152v-128h-256v-256h-128v256h-256v128h256v256h128v-256h256z" />+<glyph unicode="" horiz-adv-x="1920" d="M768 384h384v96h-128v448h-114l-148 -137l77 -80q42 37 55 57h2v-288h-128v-96zM1280 640q0 -70 -21 -142t-59.5 -134t-101.5 -101t-138 -39t-138 39t-101.5 101t-59.5 134t-21 142t21 142t59.5 134t101.5 101t138 39t138 -39t101.5 -101t59.5 -134t21 -142zM1792 384 v512q-106 0 -181 75t-75 181h-1152q0 -106 -75 -181t-181 -75v-512q106 0 181 -75t75 -181h1152q0 106 75 181t181 75zM1920 1216v-1152q0 -26 -19 -45t-45 -19h-1792q-26 0 -45 19t-19 45v1152q0 26 19 45t45 19h1792q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1024" d="M1024 320q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="640" d="M640 1088v-896q0 -26 -19 -45t-45 -19t-45 19l-448 448q-19 19 -19 45t19 45l448 448q19 19 45 19t45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="640" d="M576 640q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19t-19 45v896q0 26 19 45t45 19t45 -19l448 -448q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M160 0h608v1152h-640v-1120q0 -13 9.5 -22.5t22.5 -9.5zM1536 32v1120h-640v-1152h608q13 0 22.5 9.5t9.5 22.5zM1664 1248v-1216q0 -66 -47 -113t-113 -47h-1344q-66 0 -113 47t-47 113v1216q0 66 47 113t113 47h1344q66 0 113 -47t47 -113z" />+<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45zM1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="1024" d="M1024 448q0 -26 -19 -45l-448 -448q-19 -19 -45 -19t-45 19l-448 448q-19 19 -19 45t19 45t45 19h896q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1024" d="M1024 832q0 -26 -19 -45t-45 -19h-896q-26 0 -45 19t-19 45t19 45l448 448q19 19 45 19t45 -19l448 -448q19 -19 19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 826v-794q0 -66 -47 -113t-113 -47h-1472q-66 0 -113 47t-47 113v794q44 -49 101 -87q362 -246 497 -345q57 -42 92.5 -65.5t94.5 -48t110 -24.5h1h1q51 0 110 24.5t94.5 48t92.5 65.5q170 123 498 345q57 39 100 87zM1792 1120q0 -79 -49 -151t-122 -123 q-376 -261 -468 -325q-10 -7 -42.5 -30.5t-54 -38t-52 -32.5t-57.5 -27t-50 -9h-1h-1q-23 0 -50 9t-57.5 27t-52 32.5t-54 38t-42.5 30.5q-91 64 -262 182.5t-205 142.5q-62 42 -117 115.5t-55 136.5q0 78 41.5 130t118.5 52h1472q65 0 112.5 -47t47.5 -113z" />+<glyph unicode="" d="M349 911v-991h-330v991h330zM370 1217q1 -73 -50.5 -122t-135.5 -49h-2q-82 0 -132 49t-50 122q0 74 51.5 122.5t134.5 48.5t133 -48.5t51 -122.5zM1536 488v-568h-329v530q0 105 -40.5 164.5t-126.5 59.5q-63 0 -105.5 -34.5t-63.5 -85.5q-11 -30 -11 -81v-553h-329 q2 399 2 647t-1 296l-1 48h329v-144h-2q20 32 41 56t56.5 52t87 43.5t114.5 15.5q171 0 275 -113.5t104 -332.5z" />+<glyph unicode="" d="M1536 640q0 -156 -61 -298t-164 -245t-245 -164t-298 -61q-172 0 -327 72.5t-264 204.5q-7 10 -6.5 22.5t8.5 20.5l137 138q10 9 25 9q16 -2 23 -12q73 -95 179 -147t225 -52q104 0 198.5 40.5t163.5 109.5t109.5 163.5t40.5 198.5t-40.5 198.5t-109.5 163.5 t-163.5 109.5t-198.5 40.5q-98 0 -188 -35.5t-160 -101.5l137 -138q31 -30 14 -69q-17 -40 -59 -40h-448q-26 0 -45 19t-19 45v448q0 42 40 59q39 17 69 -14l130 -129q107 101 244.5 156.5t284.5 55.5q156 0 298 -61t245 -164t164 -245t61 -298z" />+<glyph unicode="" horiz-adv-x="1792" d="M1771 0q0 -53 -37 -90l-107 -108q-39 -37 -91 -37q-53 0 -90 37l-363 364q-38 36 -38 90q0 53 43 96l-256 256l-126 -126q-14 -14 -34 -14t-34 14q2 -2 12.5 -12t12.5 -13t10 -11.5t10 -13.5t6 -13.5t5.5 -16.5t1.5 -18q0 -38 -28 -68q-3 -3 -16.5 -18t-19 -20.5 t-18.5 -16.5t-22 -15.5t-22 -9t-26 -4.5q-40 0 -68 28l-408 408q-28 28 -28 68q0 13 4.5 26t9 22t15.5 22t16.5 18.5t20.5 19t18 16.5q30 28 68 28q10 0 18 -1.5t16.5 -5.5t13.5 -6t13.5 -10t11.5 -10t13 -12.5t12 -12.5q-14 14 -14 34t14 34l348 348q14 14 34 14t34 -14 q-2 2 -12.5 12t-12.5 13t-10 11.5t-10 13.5t-6 13.5t-5.5 16.5t-1.5 18q0 38 28 68q3 3 16.5 18t19 20.5t18.5 16.5t22 15.5t22 9t26 4.5q40 0 68 -28l408 -408q28 -28 28 -68q0 -13 -4.5 -26t-9 -22t-15.5 -22t-16.5 -18.5t-20.5 -19t-18 -16.5q-30 -28 -68 -28 q-10 0 -18 1.5t-16.5 5.5t-13.5 6t-13.5 10t-11.5 10t-13 12.5t-12 12.5q14 -14 14 -34t-14 -34l-126 -126l256 -256q43 43 96 43q52 0 91 -37l363 -363q37 -39 37 -91z" />+<glyph unicode="" horiz-adv-x="1792" d="M384 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM576 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1004 351l101 382q6 26 -7.5 48.5t-38.5 29.5 t-48 -6.5t-30 -39.5l-101 -382q-60 -5 -107 -43.5t-63 -98.5q-20 -77 20 -146t117 -89t146 20t89 117q16 60 -6 117t-72 91zM1664 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1024 1024q0 53 -37.5 90.5 t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1472 832q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1792 384q0 -261 -141 -483q-19 -29 -54 -29h-1402q-35 0 -54 29 q-141 221 -141 483q0 182 71 348t191 286t286 191t348 71t348 -71t286 -191t191 -286t71 -348z" />+<glyph unicode="" horiz-adv-x="1792" d="M896 1152q-204 0 -381.5 -69.5t-282 -187.5t-104.5 -255q0 -112 71.5 -213.5t201.5 -175.5l87 -50l-27 -96q-24 -91 -70 -172q152 63 275 171l43 38l57 -6q69 -8 130 -8q204 0 381.5 69.5t282 187.5t104.5 255t-104.5 255t-282 187.5t-381.5 69.5zM1792 640 q0 -174 -120 -321.5t-326 -233t-450 -85.5q-70 0 -145 8q-198 -175 -460 -242q-49 -14 -114 -22h-5q-15 0 -27 10.5t-16 27.5v1q-3 4 -0.5 12t2 10t4.5 9.5l6 9t7 8.5t8 9q7 8 31 34.5t34.5 38t31 39.5t32.5 51t27 59t26 76q-157 89 -247.5 220t-90.5 281q0 174 120 321.5 t326 233t450 85.5t450 -85.5t326 -233t120 -321.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M704 1152q-153 0 -286 -52t-211.5 -141t-78.5 -191q0 -82 53 -158t149 -132l97 -56l-35 -84q34 20 62 39l44 31l53 -10q78 -14 153 -14q153 0 286 52t211.5 141t78.5 191t-78.5 191t-211.5 141t-286 52zM704 1280q191 0 353.5 -68.5t256.5 -186.5t94 -257t-94 -257 t-256.5 -186.5t-353.5 -68.5q-86 0 -176 16q-124 -88 -278 -128q-36 -9 -86 -16h-3q-11 0 -20.5 8t-11.5 21q-1 3 -1 6.5t0.5 6.5t2 6l2.5 5t3.5 5.5t4 5t4.5 5t4 4.5q5 6 23 25t26 29.5t22.5 29t25 38.5t20.5 44q-124 72 -195 177t-71 224q0 139 94 257t256.5 186.5 t353.5 68.5zM1526 111q10 -24 20.5 -44t25 -38.5t22.5 -29t26 -29.5t23 -25q1 -1 4 -4.5t4.5 -5t4 -5t3.5 -5.5l2.5 -5t2 -6t0.5 -6.5t-1 -6.5q-3 -14 -13 -22t-22 -7q-50 7 -86 16q-154 40 -278 128q-90 -16 -176 -16q-271 0 -472 132q58 -4 88 -4q161 0 309 45t264 129 q125 92 192 212t67 254q0 77 -23 152q129 -71 204 -178t75 -230q0 -120 -71 -224.5t-195 -176.5z" />+<glyph unicode="" horiz-adv-x="896" d="M885 970q18 -20 7 -44l-540 -1157q-13 -25 -42 -25q-4 0 -14 2q-17 5 -25.5 19t-4.5 30l197 808l-406 -101q-4 -1 -12 -1q-18 0 -31 11q-18 15 -13 39l201 825q4 14 16 23t28 9h328q19 0 32 -12.5t13 -29.5q0 -8 -5 -18l-171 -463l396 98q8 2 12 2q19 0 34 -15z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 288v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192h-512v-192h96q40 0 68 -28t28 -68v-320 q0 -40 -28 -68t-68 -28h-320q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h96v192q0 52 38 90t90 38h512v192h-96q-40 0 -68 28t-28 68v320q0 40 28 68t68 28h320q40 0 68 -28t28 -68v-320q0 -40 -28 -68t-68 -28h-96v-192h512q52 0 90 -38t38 -90v-192h96q40 0 68 -28t28 -68 z" />+<glyph unicode="" horiz-adv-x="1664" d="M896 708v-580q0 -104 -76 -180t-180 -76t-180 76t-76 180q0 26 19 45t45 19t45 -19t19 -45q0 -50 39 -89t89 -39t89 39t39 89v580q33 11 64 11t64 -11zM1664 681q0 -13 -9.5 -22.5t-22.5 -9.5q-11 0 -23 10q-49 46 -93 69t-102 23q-68 0 -128 -37t-103 -97 q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -28 -17q-18 0 -29 17q-4 6 -14.5 24t-17.5 28q-43 60 -102.5 97t-127.5 37t-127.5 -37t-102.5 -97q-7 -10 -17.5 -28t-14.5 -24q-11 -17 -29 -17q-17 0 -28 17q-4 6 -14.5 24t-17.5 28q-43 60 -103 97t-128 37q-58 0 -102 -23t-93 -69 q-12 -10 -23 -10q-13 0 -22.5 9.5t-9.5 22.5q0 5 1 7q45 183 172.5 319.5t298 204.5t360.5 68q140 0 274.5 -40t246.5 -113.5t194.5 -187t115.5 -251.5q1 -2 1 -7zM896 1408v-98q-42 2 -64 2t-64 -2v98q0 26 19 45t45 19t45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M768 -128h896v640h-416q-40 0 -68 28t-28 68v416h-384v-1152zM1024 1312v64q0 13 -9.5 22.5t-22.5 9.5h-704q-13 0 -22.5 -9.5t-9.5 -22.5v-64q0 -13 9.5 -22.5t22.5 -9.5h704q13 0 22.5 9.5t9.5 22.5zM1280 640h299l-299 299v-299zM1792 512v-672q0 -40 -28 -68t-68 -28 h-960q-40 0 -68 28t-28 68v160h-544q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h1088q40 0 68 -28t28 -68v-328q21 -13 36 -28l408 -408q28 -28 48 -76t20 -88z" />+<glyph unicode="" horiz-adv-x="1024" d="M736 960q0 -13 -9.5 -22.5t-22.5 -9.5t-22.5 9.5t-9.5 22.5q0 46 -54 71t-106 25q-13 0 -22.5 9.5t-9.5 22.5t9.5 22.5t22.5 9.5q50 0 99.5 -16t87 -54t37.5 -90zM896 960q0 72 -34.5 134t-90 101.5t-123 62t-136.5 22.5t-136.5 -22.5t-123 -62t-90 -101.5t-34.5 -134 q0 -101 68 -180q10 -11 30.5 -33t30.5 -33q128 -153 141 -298h228q13 145 141 298q10 11 30.5 33t30.5 33q68 79 68 180zM1024 960q0 -155 -103 -268q-45 -49 -74.5 -87t-59.5 -95.5t-34 -107.5q47 -28 47 -82q0 -37 -25 -64q25 -27 25 -64q0 -52 -45 -81q13 -23 13 -47 q0 -46 -31.5 -71t-77.5 -25q-20 -44 -60 -70t-87 -26t-87 26t-60 70q-46 0 -77.5 25t-31.5 71q0 24 13 47q-45 29 -45 81q0 37 25 64q-25 27 -25 64q0 54 47 82q-4 50 -34 107.5t-59.5 95.5t-74.5 87q-103 113 -103 268q0 99 44.5 184.5t117 142t164 89t186.5 32.5 t186.5 -32.5t164 -89t117 -142t44.5 -184.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 352v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-1376v-192q0 -13 -9.5 -22.5t-22.5 -9.5q-12 0 -24 10l-319 320q-9 9 -9 22q0 14 9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h1376q13 0 22.5 -9.5t9.5 -22.5zM1792 896q0 -14 -9 -23l-320 -320q-9 -9 -23 -9 q-13 0 -22.5 9.5t-9.5 22.5v192h-1376q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h1376v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23z" />+<glyph unicode="" horiz-adv-x="1920" d="M1280 608q0 14 -9 23t-23 9h-224v352q0 13 -9.5 22.5t-22.5 9.5h-192q-13 0 -22.5 -9.5t-9.5 -22.5v-352h-224q-13 0 -22.5 -9.5t-9.5 -22.5q0 -14 9 -23l352 -352q9 -9 23 -9t23 9l351 351q10 12 10 24zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M1280 672q0 14 -9 23l-352 352q-9 9 -23 9t-23 -9l-351 -351q-10 -12 -10 -24q0 -14 9 -23t23 -9h224v-352q0 -13 9.5 -22.5t22.5 -9.5h192q13 0 22.5 9.5t9.5 22.5v352h224q13 0 22.5 9.5t9.5 22.5zM1920 384q0 -159 -112.5 -271.5t-271.5 -112.5h-1088 q-185 0 -316.5 131.5t-131.5 316.5q0 130 70 240t188 165q-2 30 -2 43q0 212 150 362t362 150q156 0 285.5 -87t188.5 -231q71 62 166 62q106 0 181 -75t75 -181q0 -76 -41 -138q130 -31 213.5 -135.5t83.5 -238.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M384 192q0 -26 -19 -45t-45 -19t-45 19t-19 45t19 45t45 19t45 -19t19 -45zM1408 131q0 -121 -73 -190t-194 -69h-874q-121 0 -194 69t-73 190q0 68 5.5 131t24 138t47.5 132.5t81 103t120 60.5q-22 -52 -22 -120v-203q-58 -20 -93 -70t-35 -111q0 -80 56 -136t136 -56 t136 56t56 136q0 61 -35.5 111t-92.5 70v203q0 62 25 93q132 -104 295 -104t295 104q25 -31 25 -93v-64q-106 0 -181 -75t-75 -181v-89q-32 -29 -32 -71q0 -40 28 -68t68 -28t68 28t28 68q0 42 -32 71v89q0 52 38 90t90 38t90 -38t38 -90v-89q-32 -29 -32 -71q0 -40 28 -68 t68 -28t68 28t28 68q0 42 -32 71v89q0 68 -34.5 127.5t-93.5 93.5q0 10 0.5 42.5t0 48t-2.5 41.5t-7 47t-13 40q68 -15 120 -60.5t81 -103t47.5 -132.5t24 -138t5.5 -131zM1088 1024q0 -159 -112.5 -271.5t-271.5 -112.5t-271.5 112.5t-112.5 271.5t112.5 271.5t271.5 112.5 t271.5 -112.5t112.5 -271.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M1280 832q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 832q0 -62 -35.5 -111t-92.5 -70v-395q0 -159 -131.5 -271.5t-316.5 -112.5t-316.5 112.5t-131.5 271.5v132q-164 20 -274 128t-110 252v512q0 26 19 45t45 19q6 0 16 -2q17 30 47 48 t65 18q53 0 90.5 -37.5t37.5 -90.5t-37.5 -90.5t-90.5 -37.5q-33 0 -64 18v-402q0 -106 94 -181t226 -75t226 75t94 181v402q-31 -18 -64 -18q-53 0 -90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5q35 0 65 -18t47 -48q10 2 16 2q26 0 45 -19t19 -45v-512q0 -144 -110 -252 t-274 -128v-132q0 -106 94 -181t226 -75t226 75t94 181v395q-57 21 -92.5 70t-35.5 111q0 80 56 136t136 56t136 -56t56 -136z" />+<glyph unicode="" horiz-adv-x="1792" d="M640 1152h512v128h-512v-128zM288 1152v-1280h-64q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h64zM1408 1152v-1280h-1024v1280h128v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h128zM1792 928v-832q0 -92 -66 -158t-158 -66h-64v1280h64q92 0 158 -66 t66 -158z" />+<glyph unicode="" horiz-adv-x="1664" d="M848 -160q0 16 -16 16q-59 0 -101.5 42.5t-42.5 101.5q0 16 -16 16t-16 -16q0 -73 51.5 -124.5t124.5 -51.5q16 0 16 16zM1664 128q0 -52 -38 -90t-90 -38h-448q0 -106 -75 -181t-181 -75t-181 75t-75 181h-448q-52 0 -90 38t-38 90q190 161 287 397.5t97 498.5 q0 165 96 262t264 117q-8 18 -8 37q0 40 28 68t68 28t68 -28t28 -68q0 -19 -8 -37q168 -20 264 -117t96 -262q0 -262 97 -498.5t287 -397.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45 t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M640 1472v-640q0 -61 -35.5 -111t-92.5 -70v-779q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v779q-57 20 -92.5 70t-35.5 111v640q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45v-416q0 -26 19 -45 t45 -19t45 19t19 45v416q0 26 19 45t45 19t45 -19t19 -45zM1408 1472v-1600q0 -52 -38 -90t-90 -38h-128q-52 0 -90 38t-38 90v512h-224q-13 0 -22.5 9.5t-9.5 22.5v800q0 132 94 226t226 94h256q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1280" d="M1024 352v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM1024 608v-64q0 -14 -9 -23t-23 -9h-704q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h704q14 0 23 -9t9 -23zM128 0h1024v768h-416q-40 0 -68 28t-28 68v416h-512v-1280z M768 896h376q-10 29 -22 41l-313 313q-12 12 -41 22v-376zM1280 864v-896q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h640q40 0 88 -20t76 -48l312 -312q28 -28 48 -76t20 -88z" />+<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 992v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 1248v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1536h-1152v-1536h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM1408 1472v-1664q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1664q0 26 19 45t45 19h1280q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1408" d="M384 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM384 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M1152 224v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM896 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M640 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 480v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5zM1152 736v-64q0 -13 -9.5 -22.5t-22.5 -9.5h-64q-13 0 -22.5 9.5t-9.5 22.5v64q0 13 9.5 22.5t22.5 9.5h64q13 0 22.5 -9.5t9.5 -22.5z M896 -128h384v1152h-256v-32q0 -40 -28 -68t-68 -28h-448q-40 0 -68 28t-28 68v32h-256v-1152h384v224q0 13 9.5 22.5t22.5 9.5h320q13 0 22.5 -9.5t9.5 -22.5v-224zM896 1056v320q0 13 -9.5 22.5t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-96h-128v96q0 13 -9.5 22.5 t-22.5 9.5h-64q-13 0 -22.5 -9.5t-9.5 -22.5v-320q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5v96h128v-96q0 -13 9.5 -22.5t22.5 -9.5h64q13 0 22.5 9.5t9.5 22.5zM1408 1088v-1280q0 -26 -19 -45t-45 -19h-1280q-26 0 -45 19t-19 45v1280q0 26 19 45t45 19h320 v288q0 40 28 68t68 28h448q40 0 68 -28t28 -68v-288h320q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1920" d="M640 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM256 640h384v256h-158q-14 -2 -22 -9l-195 -195q-7 -12 -9 -22v-30zM1536 128q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5 t90.5 37.5t37.5 90.5zM1664 800v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM1920 1344v-1152 q0 -26 -19 -45t-45 -19h-192q0 -106 -75 -181t-181 -75t-181 75t-75 181h-384q0 -106 -75 -181t-181 -75t-181 75t-75 181h-128q-26 0 -45 19t-19 45t19 45t45 19v416q0 26 13 58t32 51l198 198q19 19 51 32t58 13h160v320q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1792" d="M1280 416v192q0 14 -9 23t-23 9h-224v224q0 14 -9 23t-23 9h-192q-14 0 -23 -9t-9 -23v-224h-224q-14 0 -23 -9t-9 -23v-192q0 -14 9 -23t23 -9h224v-224q0 -14 9 -23t23 -9h192q14 0 23 9t9 23v224h224q14 0 23 9t9 23zM640 1152h512v128h-512v-128zM256 1152v-1280h-32 q-92 0 -158 66t-66 158v832q0 92 66 158t158 66h32zM1440 1152v-1280h-1088v1280h160v160q0 40 28 68t68 28h576q40 0 68 -28t28 -68v-160h160zM1792 928v-832q0 -92 -66 -158t-158 -66h-32v1280h32q92 0 158 -66t66 -158z" />+<glyph unicode="" horiz-adv-x="1920" d="M1920 576q-1 -32 -288 -96l-352 -32l-224 -64h-64l-293 -352h69q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-96h-160h-64v32h64v416h-160l-192 -224h-96l-32 32v192h32v32h128v8l-192 24v128l192 24v8h-128v32h-32v192l32 32h96l192 -224h160v416h-64v32h64h160h96 q26 0 45 -4.5t19 -11.5t-19 -11.5t-45 -4.5h-69l293 -352h64l224 -64l352 -32q261 -58 287 -93z" />+<glyph unicode="" horiz-adv-x="1664" d="M640 640v384h-256v-256q0 -53 37.5 -90.5t90.5 -37.5h128zM1664 192v-192h-1152v192l128 192h-128q-159 0 -271.5 112.5t-112.5 271.5v320l-64 64l32 128h480l32 128h960l32 -192l-64 -32v-800z" />+<glyph unicode="" d="M1280 192v896q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-512v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-896q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h512v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M627 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23zM1011 160q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1024" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM979 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23 l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1152" d="M1075 224q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23zM1075 608q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393 q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1152" d="M1075 672q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23zM1075 1056q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23 t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="640" d="M627 992q0 -13 -10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="640" d="M595 576q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1152" d="M1075 352q0 -13 -10 -23l-50 -50q-10 -10 -23 -10t-23 10l-393 393l-393 -393q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l466 -466q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1152" d="M1075 800q0 -13 -10 -23l-466 -466q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l393 -393l393 393q10 10 23 10t23 -10l50 -50q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1920" d="M1792 544v832q0 13 -9.5 22.5t-22.5 9.5h-1600q-13 0 -22.5 -9.5t-9.5 -22.5v-832q0 -13 9.5 -22.5t22.5 -9.5h1600q13 0 22.5 9.5t9.5 22.5zM1920 1376v-1088q0 -66 -47 -113t-113 -47h-544q0 -37 16 -77.5t32 -71t16 -43.5q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19 t-19 45q0 14 16 44t32 70t16 78h-544q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h1600q66 0 113 -47t47 -113z" />+<glyph unicode="" horiz-adv-x="1920" d="M416 256q-66 0 -113 47t-47 113v704q0 66 47 113t113 47h1088q66 0 113 -47t47 -113v-704q0 -66 -47 -113t-113 -47h-1088zM384 1120v-704q0 -13 9.5 -22.5t22.5 -9.5h1088q13 0 22.5 9.5t9.5 22.5v704q0 13 -9.5 22.5t-22.5 9.5h-1088q-13 0 -22.5 -9.5t-9.5 -22.5z M1760 192h160v-96q0 -40 -47 -68t-113 -28h-1600q-66 0 -113 28t-47 68v96h160h1600zM1040 96q16 0 16 16t-16 16h-160q-16 0 -16 -16t16 -16h160z" />+<glyph unicode="" horiz-adv-x="1152" d="M640 128q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1024 288v960q0 13 -9.5 22.5t-22.5 9.5h-832q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h832q13 0 22.5 9.5t9.5 22.5zM1152 1248v-1088q0 -66 -47 -113t-113 -47h-832 q-66 0 -113 47t-47 113v1088q0 66 47 113t113 47h832q66 0 113 -47t47 -113z" />+<glyph unicode="" horiz-adv-x="768" d="M464 128q0 33 -23.5 56.5t-56.5 23.5t-56.5 -23.5t-23.5 -56.5t23.5 -56.5t56.5 -23.5t56.5 23.5t23.5 56.5zM672 288v704q0 13 -9.5 22.5t-22.5 9.5h-512q-13 0 -22.5 -9.5t-9.5 -22.5v-704q0 -13 9.5 -22.5t22.5 -9.5h512q13 0 22.5 9.5t9.5 22.5zM480 1136 q0 16 -16 16h-160q-16 0 -16 -16t16 -16h160q16 0 16 16zM768 1152v-1024q0 -52 -38 -90t-90 -38h-512q-52 0 -90 38t-38 90v1024q0 52 38 90t90 38h512q52 0 90 -38t38 -90z" />+<glyph unicode="" d="M768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103 t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M768 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z M1664 576v-384q0 -80 -56 -136t-136 -56h-384q-80 0 -136 56t-56 136v704q0 104 40.5 198.5t109.5 163.5t163.5 109.5t198.5 40.5h64q26 0 45 -19t19 -45v-128q0 -26 -19 -45t-45 -19h-64q-106 0 -181 -75t-75 -181v-32q0 -40 28 -68t68 -28h224q80 0 136 -56t56 -136z" />+<glyph unicode="" horiz-adv-x="1664" d="M768 1216v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136zM1664 1216 v-704q0 -104 -40.5 -198.5t-109.5 -163.5t-163.5 -109.5t-198.5 -40.5h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64q106 0 181 75t75 181v32q0 40 -28 68t-68 28h-224q-80 0 -136 56t-56 136v384q0 80 56 136t136 56h384q80 0 136 -56t56 -136z" />+<glyph unicode="" horiz-adv-x="1568" d="M496 192q0 -60 -42.5 -102t-101.5 -42q-60 0 -102 42t-42 102t42 102t102 42q59 0 101.5 -42t42.5 -102zM928 0q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM320 640q0 -66 -47 -113t-113 -47t-113 47t-47 113 t47 113t113 47t113 -47t47 -113zM1360 192q0 -46 -33 -79t-79 -33t-79 33t-33 79t33 79t79 33t79 -33t33 -79zM528 1088q0 -73 -51.5 -124.5t-124.5 -51.5t-124.5 51.5t-51.5 124.5t51.5 124.5t124.5 51.5t124.5 -51.5t51.5 -124.5zM992 1280q0 -80 -56 -136t-136 -56 t-136 56t-56 136t56 136t136 56t136 -56t56 -136zM1536 640q0 -40 -28 -68t-68 -28t-68 28t-28 68t28 68t68 28t68 -28t28 -68zM1328 1088q0 -33 -23.5 -56.5t-56.5 -23.5t-56.5 23.5t-23.5 56.5t23.5 56.5t56.5 23.5t56.5 -23.5t23.5 -56.5z" />+<glyph unicode="" d="M1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 416q0 -166 -127 -451q-3 -7 -10.5 -24t-13.5 -30t-13 -22q-12 -17 -28 -17q-15 0 -23.5 10t-8.5 25q0 9 2.5 26.5t2.5 23.5q5 68 5 123q0 101 -17.5 181t-48.5 138.5t-80 101t-105.5 69.5t-133 42.5t-154 21.5t-175.5 6h-224v-256q0 -26 -19 -45t-45 -19t-45 19 l-512 512q-19 19 -19 45t19 45l512 512q19 19 45 19t45 -19t19 -45v-256h224q713 0 875 -403q53 -134 53 -333z" />+<glyph unicode="" horiz-adv-x="1664" d="M640 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1280 320q0 -40 -12.5 -82t-43 -76t-72.5 -34t-72.5 34t-43 76t-12.5 82t12.5 82t43 76t72.5 34t72.5 -34t43 -76t12.5 -82zM1440 320 q0 120 -69 204t-187 84q-41 0 -195 -21q-71 -11 -157 -11t-157 11q-152 21 -195 21q-118 0 -187 -84t-69 -204q0 -88 32 -153.5t81 -103t122 -60t140 -29.5t149 -7h168q82 0 149 7t140 29.5t122 60t81 103t32 153.5zM1664 496q0 -207 -61 -331q-38 -77 -105.5 -133t-141 -86 t-170 -47.5t-171.5 -22t-167 -4.5q-78 0 -142 3t-147.5 12.5t-152.5 30t-137 51.5t-121 81t-86 115q-62 123 -62 331q0 237 136 396q-27 82 -27 170q0 116 51 218q108 0 190 -39.5t189 -123.5q147 35 309 35q148 0 280 -32q105 82 187 121t189 39q51 -102 51 -218 q0 -87 -27 -168q136 -160 136 -398z" />+<glyph unicode="" horiz-adv-x="1664" d="M1536 224v704q0 40 -28 68t-68 28h-704q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68v-960q0 -40 28 -68t68 -28h1216q40 0 68 28t28 68zM1664 928v-704q0 -92 -66 -158t-158 -66h-1216q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320 q92 0 158 -66t66 -158v-32h672q92 0 158 -66t66 -158z" />+<glyph unicode="" horiz-adv-x="1920" d="M1781 605q0 35 -53 35h-1088q-40 0 -85.5 -21.5t-71.5 -52.5l-294 -363q-18 -24 -18 -40q0 -35 53 -35h1088q40 0 86 22t71 53l294 363q18 22 18 39zM640 768h768v160q0 40 -28 68t-68 28h-576q-40 0 -68 28t-28 68v64q0 40 -28 68t-68 28h-320q-40 0 -68 -28t-28 -68 v-853l256 315q44 53 116 87.5t140 34.5zM1909 605q0 -62 -46 -120l-295 -363q-43 -53 -116 -87.5t-140 -34.5h-1088q-92 0 -158 66t-66 158v960q0 92 66 158t158 66h320q92 0 158 -66t66 -158v-32h544q92 0 158 -66t66 -158v-160h192q54 0 99 -24.5t67 -70.5q15 -32 15 -68z " />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" d="M1134 461q-37 -121 -138 -195t-228 -74t-228 74t-138 195q-8 25 4 48.5t38 31.5q25 8 48.5 -4t31.5 -38q25 -80 92.5 -129.5t151.5 -49.5t151.5 49.5t92.5 129.5q8 26 32 38t49 4t37 -31.5t4 -48.5zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5 t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5 t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1134 307q8 -25 -4 -48.5t-37 -31.5t-49 4t-32 38q-25 80 -92.5 129.5t-151.5 49.5t-151.5 -49.5t-92.5 -129.5q-8 -26 -31.5 -38t-48.5 -4q-26 8 -38 31.5t-4 48.5q37 121 138 195t228 74t228 -74t138 -195zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204 t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1152 448q0 -26 -19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h640q26 0 45 -19t19 -45zM640 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1152 896q0 -53 -37.5 -90.5t-90.5 -37.5t-90.5 37.5 t-37.5 90.5t37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M832 448v128q0 14 -9 23t-23 9h-192v192q0 14 -9 23t-23 9h-128q-14 0 -23 -9t-9 -23v-192h-192q-14 0 -23 -9t-9 -23v-128q0 -14 9 -23t23 -9h192v-192q0 -14 9 -23t23 -9h128q14 0 23 9t9 23v192h192q14 0 23 9t9 23zM1408 384q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5 t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1664 640q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM1920 512q0 -212 -150 -362t-362 -150q-192 0 -338 128h-220q-146 -128 -338 -128q-212 0 -362 150 t-150 362t150 362t362 150h896q212 0 362 -150t150 -362z" />+<glyph unicode="" horiz-adv-x="1920" d="M384 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM512 624v-96q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h224q16 0 16 -16zM384 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 368v-96q0 -16 -16 -16 h-864q-16 0 -16 16v96q0 16 16 16h864q16 0 16 -16zM768 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM640 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1024 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16 h96q16 0 16 -16zM896 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1280 624v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 368v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1152 880v-96 q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1408 880v-96q0 -16 -16 -16h-96q-16 0 -16 16v96q0 16 16 16h96q16 0 16 -16zM1664 880v-352q0 -16 -16 -16h-224q-16 0 -16 16v96q0 16 16 16h112v240q0 16 16 16h96q16 0 16 -16zM1792 128v896h-1664v-896 h1664zM1920 1024v-896q0 -53 -37.5 -90.5t-90.5 -37.5h-1664q-53 0 -90.5 37.5t-37.5 90.5v896q0 53 37.5 90.5t90.5 37.5h1664q53 0 90.5 -37.5t37.5 -90.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1664 491v616q-169 -91 -306 -91q-82 0 -145 32q-100 49 -184 76.5t-178 27.5q-173 0 -403 -127v-599q245 113 433 113q55 0 103.5 -7.5t98 -26t77 -31t82.5 -39.5l28 -14q44 -22 101 -22q120 0 293 92zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9 h-64q-14 0 -23 9t-9 23v1266q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102 q-15 -9 -33 -9q-16 0 -32 8q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />+<glyph unicode="" horiz-adv-x="1792" d="M832 536v192q-181 -16 -384 -117v-185q205 96 384 110zM832 954v197q-172 -8 -384 -126v-189q215 111 384 118zM1664 491v184q-235 -116 -384 -71v224q-20 6 -39 15q-5 3 -33 17t-34.5 17t-31.5 15t-34.5 15.5t-32.5 13t-36 12.5t-35 8.5t-39.5 7.5t-39.5 4t-44 2 q-23 0 -49 -3v-222h19q102 0 192.5 -29t197.5 -82q19 -9 39 -15v-188q42 -17 91 -17q120 0 293 92zM1664 918v189q-169 -91 -306 -91q-45 0 -78 8v-196q148 -42 384 90zM320 1280q0 -35 -17.5 -64t-46.5 -46v-1266q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v1266 q-29 17 -46.5 46t-17.5 64q0 53 37.5 90.5t90.5 37.5t90.5 -37.5t37.5 -90.5zM1792 1216v-763q0 -39 -35 -57q-10 -5 -17 -9q-218 -116 -369 -116q-88 0 -158 35l-28 14q-64 33 -99 48t-91 29t-114 14q-102 0 -235.5 -44t-228.5 -102q-15 -9 -33 -9q-16 0 -32 8 q-32 19 -32 56v742q0 35 31 55q35 21 78.5 42.5t114 52t152.5 49.5t155 19q112 0 209 -31t209 -86q38 -19 89 -19q122 0 310 112q22 12 31 17q31 16 62 -2q31 -20 31 -55z" />+<glyph unicode="" horiz-adv-x="1664" d="M585 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23zM1664 96v-64q0 -14 -9 -23t-23 -9h-960q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h960q14 0 23 -9 t9 -23z" />+<glyph unicode="" horiz-adv-x="1920" d="M617 137l-50 -50q-10 -10 -23 -10t-23 10l-466 466q-10 10 -10 23t10 23l466 466q10 10 23 10t23 -10l50 -50q10 -10 10 -23t-10 -23l-393 -393l393 -393q10 -10 10 -23t-10 -23zM1208 1204l-373 -1291q-4 -13 -15.5 -19.5t-23.5 -2.5l-62 17q-13 4 -19.5 15.5t-2.5 24.5 l373 1291q4 13 15.5 19.5t23.5 2.5l62 -17q13 -4 19.5 -15.5t2.5 -24.5zM1865 553l-466 -466q-10 -10 -23 -10t-23 10l-50 50q-10 10 -10 23t10 23l393 393l-393 393q-10 10 -10 23t10 23l50 50q10 10 23 10t23 -10l466 -466q10 -10 10 -23t-10 -23z" />+<glyph unicode="" horiz-adv-x="1792" d="M640 454v-70q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-69l-397 -398q-19 -19 -19 -45t19 -45zM1792 416q0 -58 -17 -133.5t-38.5 -138t-48 -125t-40.5 -90.5l-20 -40q-8 -17 -28 -17q-6 0 -9 1 q-25 8 -23 34q43 400 -106 565q-64 71 -170.5 110.5t-267.5 52.5v-251q0 -42 -39 -59q-13 -5 -25 -5q-27 0 -45 19l-512 512q-19 19 -19 45t19 45l512 512q29 31 70 14q39 -17 39 -59v-262q411 -28 599 -221q169 -173 169 -509z" />+<glyph unicode="" horiz-adv-x="1664" d="M1186 579l257 250l-356 52l-66 10l-30 60l-159 322v-963l59 -31l318 -168l-60 355l-12 66zM1638 841l-363 -354l86 -500q5 -33 -6 -51.5t-34 -18.5q-17 0 -40 12l-449 236l-449 -236q-23 -12 -40 -12q-23 0 -34 18.5t-6 51.5l86 500l-364 354q-32 32 -23 59.5t54 34.5 l502 73l225 455q20 41 49 41q28 0 49 -41l225 -455l502 -73q45 -7 54 -34.5t-24 -59.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M1401 1187l-640 -1280q-17 -35 -57 -35q-5 0 -15 2q-22 5 -35.5 22.5t-13.5 39.5v576h-576q-22 0 -39.5 13.5t-22.5 35.5t4 42t29 30l1280 640q13 7 29 7q27 0 45 -19q15 -14 18.5 -34.5t-6.5 -39.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M557 256h595v595zM512 301l595 595h-595v-595zM1664 224v-192q0 -14 -9 -23t-23 -9h-224v-224q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v224h-864q-14 0 -23 9t-9 23v864h-224q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h224v224q0 14 9 23t23 9h192q14 0 23 -9t9 -23 v-224h851l246 247q10 9 23 9t23 -9q9 -10 9 -23t-9 -23l-247 -246v-851h224q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1024" d="M288 64q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM288 1216q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM928 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1024 1088q0 -52 -26 -96.5t-70 -69.5 q-2 -287 -226 -414q-68 -38 -203 -81q-128 -40 -169.5 -71t-41.5 -100v-26q44 -25 70 -69.5t26 -96.5q0 -80 -56 -136t-136 -56t-136 56t-56 136q0 52 26 96.5t70 69.5v820q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136q0 -52 -26 -96.5t-70 -69.5v-497 q54 26 154 57q55 17 87.5 29.5t70.5 31t59 39.5t40.5 51t28 69.5t8.5 91.5q-44 25 -70 69.5t-26 96.5q0 80 56 136t136 56t136 -56t56 -136z" />+<glyph unicode="" horiz-adv-x="1664" d="M439 265l-256 -256q-10 -9 -23 -9q-12 0 -23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23zM608 224v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM384 448q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9t-9 23t9 23t23 9h320 q14 0 23 -9t9 -23zM1648 320q0 -120 -85 -203l-147 -146q-83 -83 -203 -83q-121 0 -204 85l-334 335q-21 21 -42 56l239 18l273 -274q27 -27 68 -27.5t68 26.5l147 146q28 28 28 67q0 40 -28 68l-274 275l18 239q35 -21 56 -42l336 -336q84 -86 84 -204zM1031 1044l-239 -18 l-273 274q-28 28 -68 28q-39 0 -68 -27l-147 -146q-28 -28 -28 -67q0 -40 28 -68l274 -274l-18 -240q-35 21 -56 42l-336 336q-84 86 -84 204q0 120 85 203l147 146q83 83 203 83q121 0 204 -85l334 -335q21 -21 42 -56zM1664 960q0 -14 -9 -23t-23 -9h-320q-14 0 -23 9 t-9 23t9 23t23 9h320q14 0 23 -9t9 -23zM1120 1504v-320q0 -14 -9 -23t-23 -9t-23 9t-9 23v320q0 14 9 23t23 9t23 -9t9 -23zM1527 1353l-256 -256q-11 -9 -23 -9t-23 9q-9 10 -9 23t9 23l256 256q10 9 23 9t23 -9q9 -10 9 -23t-9 -23z" />+<glyph unicode="" horiz-adv-x="1024" d="M704 280v-240q0 -16 -12 -28t-28 -12h-240q-16 0 -28 12t-12 28v240q0 16 12 28t28 12h240q16 0 28 -12t12 -28zM1020 880q0 -54 -15.5 -101t-35 -76.5t-55 -59.5t-57.5 -43.5t-61 -35.5q-41 -23 -68.5 -65t-27.5 -67q0 -17 -12 -32.5t-28 -15.5h-240q-15 0 -25.5 18.5 t-10.5 37.5v45q0 83 65 156.5t143 108.5q59 27 84 56t25 76q0 42 -46.5 74t-107.5 32q-65 0 -108 -29q-35 -25 -107 -115q-13 -16 -31 -16q-12 0 -25 8l-164 125q-13 10 -15.5 25t5.5 28q160 266 464 266q80 0 161 -31t146 -83t106 -127.5t41 -158.5z" />+<glyph unicode="" horiz-adv-x="640" d="M640 192v-128q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h64v384h-64q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h384q26 0 45 -19t19 -45v-576h64q26 0 45 -19t19 -45zM512 1344v-192q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v192 q0 26 19 45t45 19h256q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="640" d="M512 288v-224q0 -26 -19 -45t-45 -19h-256q-26 0 -45 19t-19 45v224q0 26 19 45t45 19h256q26 0 45 -19t19 -45zM542 1344l-28 -768q-1 -26 -20.5 -45t-45.5 -19h-256q-26 0 -45.5 19t-20.5 45l-28 768q-1 26 17.5 45t44.5 19h320q26 0 44.5 -19t17.5 -45z" />+<glyph unicode="" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1534 846v-206h-514l-3 27 q-4 28 -4 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q83 65 188 65q110 0 178 -59.5t68 -158.5q0 -56 -24.5 -103t-62 -76.5t-81.5 -58.5t-82 -50.5t-65.5 -51.5t-30.5 -63h232v80 h126z" />+<glyph unicode="" d="M897 167v-167h-248l-159 252l-24 42q-8 9 -11 21h-3l-9 -21q-10 -20 -25 -44l-155 -250h-258v167h128l197 291l-185 272h-137v168h276l139 -228q2 -4 23 -42q8 -9 11 -21h3q3 9 11 21l25 42l140 228h257v-168h-125l-184 -267l204 -296h109zM1536 -50v-206h-514l-4 27 q-3 45 -3 46q0 64 26 117t65 86.5t84 65t84 54.5t65 54t26 64q0 38 -29.5 62.5t-70.5 24.5q-51 0 -97 -39q-14 -11 -36 -38l-105 92q26 37 63 66q80 65 188 65q110 0 178 -59.5t68 -158.5q0 -66 -34.5 -118.5t-84 -86t-99.5 -62.5t-87 -63t-41 -73h232v80h126z" />+<glyph unicode="" horiz-adv-x="1920" d="M896 128l336 384h-768l-336 -384h768zM1909 1205q15 -34 9.5 -71.5t-30.5 -65.5l-896 -1024q-38 -44 -96 -44h-768q-38 0 -69.5 20.5t-47.5 54.5q-15 34 -9.5 71.5t30.5 65.5l896 1024q38 44 96 44h768q38 0 69.5 -20.5t47.5 -54.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M1664 438q0 -81 -44.5 -135t-123.5 -54q-41 0 -77.5 17.5t-59 38t-56.5 38t-71 17.5q-110 0 -110 -124q0 -39 16 -115t15 -115v-5q-22 0 -33 -1q-34 -3 -97.5 -11.5t-115.5 -13.5t-98 -5q-61 0 -103 26.5t-42 83.5q0 37 17.5 71t38 56.5t38 59t17.5 77.5q0 79 -54 123.5 t-135 44.5q-84 0 -143 -45.5t-59 -127.5q0 -43 15 -83t33.5 -64.5t33.5 -53t15 -50.5q0 -45 -46 -89q-37 -35 -117 -35q-95 0 -245 24q-9 2 -27.5 4t-27.5 4l-13 2q-1 0 -3 1q-2 0 -2 1v1024q2 -1 17.5 -3.5t34 -5t21.5 -3.5q150 -24 245 -24q80 0 117 35q46 44 46 89 q0 22 -15 50.5t-33.5 53t-33.5 64.5t-15 83q0 82 59 127.5t144 45.5q80 0 134 -44.5t54 -123.5q0 -41 -17.5 -77.5t-38 -59t-38 -56.5t-17.5 -71q0 -57 42 -83.5t103 -26.5q64 0 180 15t163 17v-2q-1 -2 -3.5 -17.5t-5 -34t-3.5 -21.5q-24 -150 -24 -245q0 -80 35 -117 q44 -46 89 -46q22 0 50.5 15t53 33.5t64.5 33.5t83 15q82 0 127.5 -59t45.5 -143z" />+<glyph unicode="" horiz-adv-x="1152" d="M1152 832v-128q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-217 24 -364.5 187.5t-147.5 384.5v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -185 131.5 -316.5t316.5 -131.5 t316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45zM896 1216v-512q0 -132 -94 -226t-226 -94t-226 94t-94 226v512q0 132 94 226t226 94t226 -94t94 -226z" />+<glyph unicode="" horiz-adv-x="1408" d="M271 591l-101 -101q-42 103 -42 214v128q0 26 19 45t45 19t45 -19t19 -45v-128q0 -53 15 -113zM1385 1193l-361 -361v-128q0 -132 -94 -226t-226 -94q-55 0 -109 19l-96 -96q97 -51 205 -51q185 0 316.5 131.5t131.5 316.5v128q0 26 19 45t45 19t45 -19t19 -45v-128 q0 -221 -147.5 -384.5t-364.5 -187.5v-132h256q26 0 45 -19t19 -45t-19 -45t-45 -19h-640q-26 0 -45 19t-19 45t19 45t45 19h256v132q-125 13 -235 81l-254 -254q-10 -10 -23 -10t-23 10l-82 82q-10 10 -10 23t10 23l1234 1234q10 10 23 10t23 -10l82 -82q10 -10 10 -23 t-10 -23zM1005 1325l-621 -621v512q0 132 94 226t226 94q102 0 184.5 -59t116.5 -152z" />+<glyph unicode="" horiz-adv-x="1280" d="M1088 576v640h-448v-1137q119 63 213 137q235 184 235 360zM1280 1344v-768q0 -86 -33.5 -170.5t-83 -150t-118 -127.5t-126.5 -103t-121 -77.5t-89.5 -49.5t-42.5 -20q-12 -6 -26 -6t-26 6q-16 7 -42.5 20t-89.5 49.5t-121 77.5t-126.5 103t-118 127.5t-83 150 t-33.5 170.5v768q0 26 19 45t45 19h1152q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M128 -128h1408v1024h-1408v-1024zM512 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1280 1088v288q0 14 -9 23t-23 9h-64q-14 0 -23 -9t-9 -23v-288q0 -14 9 -23t23 -9h64q14 0 23 9t9 23zM1664 1152v-1280 q0 -52 -38 -90t-90 -38h-1408q-52 0 -90 38t-38 90v1280q0 52 38 90t90 38h128v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h384v96q0 66 47 113t113 47h64q66 0 113 -47t47 -113v-96h128q52 0 90 -38t38 -90z" />+<glyph unicode="" horiz-adv-x="1408" d="M512 1344q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1408 1376v-320q0 -16 -12 -25q-8 -7 -20 -7q-4 0 -7 1l-448 96q-11 2 -18 11t-7 20h-256v-102q111 -23 183.5 -111t72.5 -203v-800q0 -26 -19 -45t-45 -19h-512q-26 0 -45 19t-19 45v800 q0 106 62.5 190.5t161.5 114.5v111h-32q-59 0 -115 -23.5t-91.5 -53t-66 -66.5t-40.5 -53.5t-14 -24.5q-17 -35 -57 -35q-16 0 -29 7q-23 12 -31.5 37t3.5 49q5 10 14.5 26t37.5 53.5t60.5 70t85 67t108.5 52.5q-25 42 -25 86q0 66 47 113t113 47t113 -47t47 -113 q0 -33 -14 -64h302q0 11 7 20t18 11l448 96q3 1 7 1q12 0 20 -7q12 -9 12 -25z" />+<glyph unicode="" horiz-adv-x="1664" d="M1440 1088q0 40 -28 68t-68 28t-68 -28t-28 -68t28 -68t68 -28t68 28t28 68zM1664 1376q0 -249 -75.5 -430.5t-253.5 -360.5q-81 -80 -195 -176l-20 -379q-2 -16 -16 -26l-384 -224q-7 -4 -16 -4q-12 0 -23 9l-64 64q-13 14 -8 32l85 276l-281 281l-276 -85q-3 -1 -9 -1 q-14 0 -23 9l-64 64q-17 19 -5 39l224 384q10 14 26 16l379 20q96 114 176 195q188 187 358 258t431 71q14 0 24 -9.5t10 -22.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1745 763l-164 -763h-334l178 832q13 56 -15 88q-27 33 -83 33h-169l-204 -953h-334l204 953h-286l-204 -953h-334l204 953l-153 327h1276q101 0 189.5 -40.5t147.5 -113.5q60 -73 81 -168.5t0 -194.5z" />+<glyph unicode="" d="M909 141l102 102q19 19 19 45t-19 45l-307 307l307 307q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M717 141l454 454q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l307 -307l-307 -307q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1165 397l102 102q19 19 19 45t-19 45l-454 454q-19 19 -45 19t-45 -19l-454 -454q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l307 307l307 -307q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M813 237l454 454q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-307 -307l-307 307q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l454 -454q19 -19 45 -19t45 19zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5 t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M1130 939l16 175h-884l47 -534h612l-22 -228l-197 -53l-196 53l-13 140h-175l22 -278l362 -100h4v1l359 99l50 544h-644l-15 181h674zM0 1408h1408l-128 -1438l-578 -162l-574 162z" />+<glyph unicode="" horiz-adv-x="1792" d="M275 1408h1505l-266 -1333l-804 -267l-698 267l71 356h297l-29 -147l422 -161l486 161l68 339h-1208l58 297h1209l38 191h-1208z" />+<glyph unicode="" horiz-adv-x="1792" d="M960 1280q0 26 -19 45t-45 19t-45 -19t-19 -45t19 -45t45 -19t45 19t19 45zM1792 352v-352q0 -22 -20 -30q-8 -2 -12 -2q-13 0 -23 9l-93 93q-119 -143 -318.5 -226.5t-429.5 -83.5t-429.5 83.5t-318.5 226.5l-93 -93q-9 -9 -23 -9q-4 0 -12 2q-20 8 -20 30v352 q0 14 9 23t23 9h352q22 0 30 -20q8 -19 -7 -35l-100 -100q67 -91 189.5 -153.5t271.5 -82.5v647h-192q-26 0 -45 19t-19 45v128q0 26 19 45t45 19h192v163q-58 34 -93 92.5t-35 128.5q0 106 75 181t181 75t181 -75t75 -181q0 -70 -35 -128.5t-93 -92.5v-163h192q26 0 45 -19 t19 -45v-128q0 -26 -19 -45t-45 -19h-192v-647q149 20 271.5 82.5t189.5 153.5l-100 100q-15 16 -7 35q8 20 30 20h352q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1152" d="M1056 768q40 0 68 -28t28 -68v-576q0 -40 -28 -68t-68 -28h-960q-40 0 -68 28t-28 68v576q0 40 28 68t68 28h32v320q0 185 131.5 316.5t316.5 131.5t316.5 -131.5t131.5 -316.5q0 -26 -19 -45t-45 -19h-64q-26 0 -45 19t-19 45q0 106 -75 181t-181 75t-181 -75t-75 -181 v-320h736z" />+<glyph unicode="" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM1152 640q0 159 -112.5 271.5t-271.5 112.5t-271.5 -112.5t-112.5 -271.5t112.5 -271.5t271.5 -112.5t271.5 112.5t112.5 271.5zM1280 640q0 -212 -150 -362t-362 -150t-362 150 t-150 362t150 362t362 150t362 -150t150 -362zM1408 640q0 130 -51 248.5t-136.5 204t-204 136.5t-248.5 51t-248.5 -51t-204 -136.5t-136.5 -204t-51 -248.5t51 -248.5t136.5 -204t204 -136.5t248.5 -51t248.5 51t204 136.5t136.5 204t51 248.5zM1536 640 q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM896 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM1408 800v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />+<glyph unicode="" horiz-adv-x="384" d="M384 288v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 800v-192q0 -40 -28 -68t-68 -28h-192q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68zM384 1312v-192q0 -40 -28 -68t-68 -28h-192 q-40 0 -68 28t-28 68v192q0 40 28 68t68 28h192q40 0 68 -28t28 -68z" />+<glyph unicode="" d="M512 256q0 53 -37.5 90.5t-90.5 37.5t-90.5 -37.5t-37.5 -90.5t37.5 -90.5t90.5 -37.5t90.5 37.5t37.5 90.5zM863 162q-13 232 -177 396t-396 177q-14 1 -24 -9t-10 -23v-128q0 -13 8.5 -22t21.5 -10q154 -11 264 -121t121 -264q1 -13 10 -21.5t22 -8.5h128q13 0 23 10 t9 24zM1247 161q-5 154 -56 297.5t-139.5 260t-205 205t-260 139.5t-297.5 56q-14 1 -23 -9q-10 -10 -10 -23v-128q0 -13 9 -22t22 -10q204 -7 378 -111.5t278.5 -278.5t111.5 -378q1 -13 10 -22t22 -9h128q13 0 23 10q11 9 9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M768 1408q209 0 385.5 -103t279.5 -279.5t103 -385.5t-103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103zM1152 585q32 18 32 55t-32 55l-544 320q-31 19 -64 1q-32 -19 -32 -56v-640q0 -37 32 -56 q16 -8 32 -8q17 0 32 9z" />+<glyph unicode="" horiz-adv-x="1792" d="M1024 1084l316 -316l-572 -572l-316 316zM813 105l618 618q19 19 19 45t-19 45l-362 362q-18 18 -45 18t-45 -18l-618 -618q-19 -19 -19 -45t19 -45l362 -362q18 -18 45 -18t45 18zM1702 742l-907 -908q-37 -37 -90.5 -37t-90.5 37l-126 126q56 56 56 136t-56 136 t-136 56t-136 -56l-125 126q-37 37 -37 90.5t37 90.5l907 906q37 37 90.5 37t90.5 -37l125 -125q-56 -56 -56 -136t56 -136t136 -56t136 56l126 -125q37 -37 37 -90.5t-37 -90.5z" />+<glyph unicode="" d="M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h832q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5 t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M1018 933q-18 -37 -58 -37h-192v-864q0 -14 -9 -23t-23 -9h-704q-21 0 -29 18q-8 20 4 35l160 192q9 11 25 11h320v640h-192q-40 0 -58 37q-17 37 9 68l320 384q18 22 49 22t49 -22l320 -384q27 -32 9 -68z" />+<glyph unicode="" horiz-adv-x="1024" d="M32 1280h704q13 0 22.5 -9.5t9.5 -23.5v-863h192q40 0 58 -37t-9 -69l-320 -384q-18 -22 -49 -22t-49 22l-320 384q-26 31 -9 69q18 37 58 37h192v640h-320q-14 0 -25 11l-160 192q-13 14 -4 34q9 19 29 19z" />+<glyph unicode="" d="M685 237l614 614q19 19 19 45t-19 45l-102 102q-19 19 -45 19t-45 -19l-467 -467l-211 211q-19 19 -45 19t-45 -19l-102 -102q-19 -19 -19 -45t19 -45l358 -358q19 -19 45 -19t45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5 t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M404 428l152 -152l-52 -52h-56v96h-96v56zM818 818q14 -13 -3 -30l-291 -291q-17 -17 -30 -3q-14 13 3 30l291 291q17 17 30 3zM544 128l544 544l-288 288l-544 -544v-288h288zM1152 736l92 92q28 28 28 68t-28 68l-152 152q-28 28 -68 28t-68 -28l-92 -92zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1280 608v480q0 26 -19 45t-45 19h-480q-42 0 -59 -39q-17 -41 14 -70l144 -144l-534 -534q-19 -19 -19 -45t19 -45l102 -102q19 -19 45 -19t45 19l534 534l144 -144q18 -19 45 -19q12 0 25 5q39 17 39 59zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1005 435l352 352q19 19 19 45t-19 45l-352 352q-30 31 -69 14q-40 -17 -40 -59v-160q-119 0 -216 -19.5t-162.5 -51t-114 -79t-76.5 -95.5t-44.5 -109t-21.5 -111.5t-5 -110.5q0 -181 167 -404q10 -12 25 -12q7 0 13 3q22 9 19 33q-44 354 62 473q46 52 130 75.5 t224 23.5v-160q0 -42 40 -59q12 -5 24 -5q26 0 45 19zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M640 448l256 128l-256 128v-256zM1024 1039v-542l-512 -256v542zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1145 861q18 -35 -5 -66l-320 -448q-19 -27 -52 -27t-52 27l-320 448q-23 31 -5 66q17 35 57 35h640q40 0 57 -35zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1145 419q-17 -35 -57 -35h-640q-40 0 -57 35q-18 35 5 66l320 448q19 27 52 27t52 -27l320 -448q23 -31 5 -66zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1088 640q0 -33 -27 -52l-448 -320q-31 -23 -66 -5q-35 17 -35 57v640q0 40 35 57q35 18 66 -5l448 -320q27 -19 27 -52zM1280 160v960q0 14 -9 23t-23 9h-960q-14 0 -23 -9t-9 -23v-960q0 -14 9 -23t23 -9h960q14 0 23 9t9 23zM1536 1120v-960q0 -119 -84.5 -203.5 t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M976 229l35 -159q3 -12 -3 -22.5t-17 -14.5l-5 -1q-4 -2 -10.5 -3.5t-16 -4.5t-21.5 -5.5t-25.5 -5t-30 -5t-33.5 -4.5t-36.5 -3t-38.5 -1q-234 0 -409 130.5t-238 351.5h-95q-13 0 -22.5 9.5t-9.5 22.5v113q0 13 9.5 22.5t22.5 9.5h66q-2 57 1 105h-67q-14 0 -23 9 t-9 23v114q0 14 9 23t23 9h98q67 210 243.5 338t400.5 128q102 0 194 -23q11 -3 20 -15q6 -11 3 -24l-43 -159q-3 -13 -14 -19.5t-24 -2.5l-4 1q-4 1 -11.5 2.5l-17.5 3.5t-22.5 3.5t-26 3t-29 2.5t-29.5 1q-126 0 -226 -64t-150 -176h468q16 0 25 -12q10 -12 7 -26 l-24 -114q-5 -26 -32 -26h-488q-3 -37 0 -105h459q15 0 25 -12q9 -12 6 -27l-24 -112q-2 -11 -11 -18.5t-20 -7.5h-387q48 -117 149.5 -185.5t228.5 -68.5q18 0 36 1.5t33.5 3.5t29.5 4.5t24.5 5t18.5 4.5l12 3l5 2q13 5 26 -2q12 -7 15 -21z" />+<glyph unicode="" horiz-adv-x="1024" d="M1020 399v-367q0 -14 -9 -23t-23 -9h-956q-14 0 -23 9t-9 23v150q0 13 9.5 22.5t22.5 9.5h97v383h-95q-14 0 -23 9.5t-9 22.5v131q0 14 9 23t23 9h95v223q0 171 123.5 282t314.5 111q185 0 335 -125q9 -8 10 -20.5t-7 -22.5l-103 -127q-9 -11 -22 -12q-13 -2 -23 7 q-5 5 -26 19t-69 32t-93 18q-85 0 -137 -47t-52 -123v-215h305q13 0 22.5 -9t9.5 -23v-131q0 -13 -9.5 -22.5t-22.5 -9.5h-305v-379h414v181q0 13 9 22.5t23 9.5h162q14 0 23 -9.5t9 -22.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M978 351q0 -153 -99.5 -263.5t-258.5 -136.5v-175q0 -14 -9 -23t-23 -9h-135q-13 0 -22.5 9.5t-9.5 22.5v175q-66 9 -127.5 31t-101.5 44.5t-74 48t-46.5 37.5t-17.5 18q-17 21 -2 41l103 135q7 10 23 12q15 2 24 -9l2 -2q113 -99 243 -125q37 -8 74 -8q81 0 142.5 43 t61.5 122q0 28 -15 53t-33.5 42t-58.5 37.5t-66 32t-80 32.5q-39 16 -61.5 25t-61.5 26.5t-62.5 31t-56.5 35.5t-53.5 42.5t-43.5 49t-35.5 58t-21 66.5t-8.5 78q0 138 98 242t255 134v180q0 13 9.5 22.5t22.5 9.5h135q14 0 23 -9t9 -23v-176q57 -6 110.5 -23t87 -33.5 t63.5 -37.5t39 -29t15 -14q17 -18 5 -38l-81 -146q-8 -15 -23 -16q-14 -3 -27 7q-3 3 -14.5 12t-39 26.5t-58.5 32t-74.5 26t-85.5 11.5q-95 0 -155 -43t-60 -111q0 -26 8.5 -48t29.5 -41.5t39.5 -33t56 -31t60.5 -27t70 -27.5q53 -20 81 -31.5t76 -35t75.5 -42.5t62 -50 t53 -63.5t31.5 -76.5t13 -94z" />+<glyph unicode="" horiz-adv-x="898" d="M898 1066v-102q0 -14 -9 -23t-23 -9h-168q-23 -144 -129 -234t-276 -110q167 -178 459 -536q14 -16 4 -34q-8 -18 -29 -18h-195q-16 0 -25 12q-306 367 -498 571q-9 9 -9 22v127q0 13 9.5 22.5t22.5 9.5h112q132 0 212.5 43t102.5 125h-427q-14 0 -23 9t-9 23v102 q0 14 9 23t23 9h413q-57 113 -268 113h-145q-13 0 -22.5 9.5t-9.5 22.5v133q0 14 9 23t23 9h832q14 0 23 -9t9 -23v-102q0 -14 -9 -23t-23 -9h-233q47 -61 64 -144h171q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1027" d="M603 0h-172q-13 0 -22.5 9t-9.5 23v330h-288q-13 0 -22.5 9t-9.5 23v103q0 13 9.5 22.5t22.5 9.5h288v85h-288q-13 0 -22.5 9t-9.5 23v104q0 13 9.5 22.5t22.5 9.5h214l-321 578q-8 16 0 32q10 16 28 16h194q19 0 29 -18l215 -425q19 -38 56 -125q10 24 30.5 68t27.5 61 l191 420q8 19 29 19h191q17 0 27 -16q9 -14 1 -31l-313 -579h215q13 0 22.5 -9.5t9.5 -22.5v-104q0 -14 -9.5 -23t-22.5 -9h-290v-85h290q13 0 22.5 -9.5t9.5 -22.5v-103q0 -14 -9.5 -23t-22.5 -9h-290v-330q0 -13 -9.5 -22.5t-22.5 -9.5z" />+<glyph unicode="" horiz-adv-x="1280" d="M1043 971q0 100 -65 162t-171 62h-320v-448h320q106 0 171 62t65 162zM1280 971q0 -193 -126.5 -315t-326.5 -122h-340v-118h505q14 0 23 -9t9 -23v-128q0 -14 -9 -23t-23 -9h-505v-192q0 -14 -9.5 -23t-22.5 -9h-167q-14 0 -23 9t-9 23v192h-224q-14 0 -23 9t-9 23v128 q0 14 9 23t23 9h224v118h-224q-14 0 -23 9t-9 23v149q0 13 9 22.5t23 9.5h224v629q0 14 9 23t23 9h539q200 0 326.5 -122t126.5 -315z" />+<glyph unicode="" horiz-adv-x="1792" d="M514 341l81 299h-159l75 -300q1 -1 1 -3t1 -3q0 1 0.5 3.5t0.5 3.5zM630 768l35 128h-292l32 -128h225zM822 768h139l-35 128h-70zM1271 340l78 300h-162l81 -299q0 -1 0.5 -3.5t1.5 -3.5q0 1 0.5 3t0.5 3zM1382 768l33 128h-297l34 -128h230zM1792 736v-64q0 -14 -9 -23 t-23 -9h-213l-164 -616q-7 -24 -31 -24h-159q-24 0 -31 24l-166 616h-209l-167 -616q-7 -24 -31 -24h-159q-11 0 -19.5 7t-10.5 17l-160 616h-208q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h175l-33 128h-142q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h109l-89 344q-5 15 5 28 q10 12 26 12h137q26 0 31 -24l90 -360h359l97 360q7 24 31 24h126q24 0 31 -24l98 -360h365l93 360q5 24 31 24h137q16 0 26 -12q10 -13 5 -28l-91 -344h111q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-145l-34 -128h179q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1280" d="M1167 896q18 -182 -131 -258q117 -28 175 -103t45 -214q-7 -71 -32.5 -125t-64.5 -89t-97 -58.5t-121.5 -34.5t-145.5 -15v-255h-154v251q-80 0 -122 1v-252h-154v255q-18 0 -54 0.5t-55 0.5h-200l31 183h111q50 0 58 51v402h16q-6 1 -16 1v287q-13 68 -89 68h-111v164 l212 -1q64 0 97 1v252h154v-247q82 2 122 2v245h154v-252q79 -7 140 -22.5t113 -45t82.5 -78t36.5 -114.5zM952 351q0 36 -15 64t-37 46t-57.5 30.5t-65.5 18.5t-74 9t-69 3t-64.5 -1t-47.5 -1v-338q8 0 37 -0.5t48 -0.5t53 1.5t58.5 4t57 8.5t55.5 14t47.5 21t39.5 30 t24.5 40t9.5 51zM881 827q0 33 -12.5 58.5t-30.5 42t-48 28t-55 16.5t-61.5 8t-58 2.5t-54 -1t-39.5 -0.5v-307q5 0 34.5 -0.5t46.5 0t50 2t55 5.5t51.5 11t48.5 18.5t37 27t27 38.5t9 51z" />+<glyph unicode="" horiz-adv-x="1280" d="M1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28t-28 68v1344q0 40 28 68t68 28h544v-544q0 -40 28 -68t68 -28h544zM1277 896h-509v509q82 -15 132 -65l312 -312q50 -50 65 -132z" />+<glyph unicode="" horiz-adv-x="1280" d="M1024 160v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1024 416v64q0 14 -9 23t-23 9h-704q-14 0 -23 -9t-9 -23v-64q0 -14 9 -23t23 -9h704q14 0 23 9t9 23zM1280 768v-800q0 -40 -28 -68t-68 -28h-1088q-40 0 -68 28 t-28 68v1344q0 40 28 68t68 28h544v-544q0 -40 28 -68t68 -28h544zM1277 896h-509v509q82 -15 132 -65l312 -312q50 -50 65 -132z" />+<glyph unicode="" horiz-adv-x="1664" d="M1191 1128h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1572 -23 v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -11v-2l14 2q9 2 30 2h248v119h121zM1661 874v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162 l230 -662h70z" />+<glyph unicode="" horiz-adv-x="1664" d="M1191 104h177l-72 218l-12 47q-2 16 -2 20h-4l-3 -20q0 -1 -3.5 -18t-7.5 -29zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1661 -150 v-106h-288v106h75l-47 144h-243l-47 -144h75v-106h-287v106h70l230 662h162l230 -662h70zM1572 1001v-233h-584v90l369 529q12 18 21 27l11 9v3q-2 0 -6.5 -0.5t-7.5 -0.5q-12 -3 -30 -3h-232v-115h-120v229h567v-89l-369 -530q-6 -8 -21 -26l-11 -10v-3l14 3q9 1 30 1h248 v119h121z" />+<glyph unicode="" horiz-adv-x="1792" d="M736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23zM1792 -32v-192q0 -14 -9 -23t-23 -9h-832q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832 q14 0 23 -9t9 -23zM1600 480v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1408 992v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1216 1504v-192q0 -14 -9 -23t-23 -9h-256 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1792" d="M1216 -32v-192q0 -14 -9 -23t-23 -9h-256q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h256q14 0 23 -9t9 -23zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192 q14 0 23 -9t9 -23zM1408 480v-192q0 -14 -9 -23t-23 -9h-448q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h448q14 0 23 -9t9 -23zM1600 992v-192q0 -14 -9 -23t-23 -9h-640q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h640q14 0 23 -9t9 -23zM1792 1504v-192q0 -14 -9 -23t-23 -9h-832 q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h832q14 0 23 -9t9 -23z" />+<glyph unicode="" d="M1346 223q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9t9 -23 zM1486 165q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5 t82 -252.5zM1456 882v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165z" />+<glyph unicode="" d="M1346 1247q0 63 -44 116t-103 53q-52 0 -83 -37t-31 -94t36.5 -95t104.5 -38q50 0 85 27t35 68zM736 96q0 -12 -10 -24l-319 -319q-10 -9 -23 -9q-12 0 -23 9l-320 320q-15 16 -7 35q8 20 30 20h192v1376q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1376h192q14 0 23 -9 t9 -23zM1456 -142v-114h-469v114h167v432q0 7 0.5 19t0.5 17v16h-2l-7 -12q-8 -13 -26 -31l-62 -58l-82 86l192 185h123v-654h165zM1486 1189q0 -62 -13 -121.5t-41 -114t-68 -95.5t-98.5 -65.5t-127.5 -24.5q-62 0 -108 16q-24 8 -42 15l39 113q15 -7 31 -11q37 -13 75 -13 q84 0 134.5 58.5t66.5 145.5h-2q-21 -23 -61.5 -37t-84.5 -14q-106 0 -173 71.5t-67 172.5q0 105 72 178t181 73q123 0 205 -94.5t82 -252.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M256 192q0 26 -19 45t-45 19q-27 0 -45.5 -19t-18.5 -45q0 -27 18.5 -45.5t45.5 -18.5q26 0 45 18.5t19 45.5zM416 704v-640q0 -26 -19 -45t-45 -19h-288q-26 0 -45 19t-19 45v640q0 26 19 45t45 19h288q26 0 45 -19t19 -45zM1600 704q0 -86 -55 -149q15 -44 15 -76 q3 -76 -43 -137q17 -56 0 -117q-15 -57 -54 -94q9 -112 -49 -181q-64 -76 -197 -78h-36h-76h-17q-66 0 -144 15.5t-121.5 29t-120.5 39.5q-123 43 -158 44q-26 1 -45 19.5t-19 44.5v641q0 25 18 43.5t43 20.5q24 2 76 59t101 121q68 87 101 120q18 18 31 48t17.5 48.5 t13.5 60.5q7 39 12.5 61t19.5 52t34 50q19 19 45 19q46 0 82.5 -10.5t60 -26t40 -40.5t24 -45t12 -50t5 -45t0.5 -39q0 -38 -9.5 -76t-19 -60t-27.5 -56q-3 -6 -10 -18t-11 -22t-8 -24h277q78 0 135 -57t57 -135z" />+<glyph unicode="" horiz-adv-x="1664" d="M256 960q0 -26 -19 -45t-45 -19q-27 0 -45.5 19t-18.5 45q0 27 18.5 45.5t45.5 18.5q26 0 45 -18.5t19 -45.5zM416 448v640q0 26 -19 45t-45 19h-288q-26 0 -45 -19t-19 -45v-640q0 -26 19 -45t45 -19h288q26 0 45 19t19 45zM1545 597q55 -61 55 -149q-1 -78 -57.5 -135 t-134.5 -57h-277q4 -14 8 -24t11 -22t10 -18q18 -37 27 -57t19 -58.5t10 -76.5q0 -24 -0.5 -39t-5 -45t-12 -50t-24 -45t-40 -40.5t-60 -26t-82.5 -10.5q-26 0 -45 19q-20 20 -34 50t-19.5 52t-12.5 61q-9 42 -13.5 60.5t-17.5 48.5t-31 48q-33 33 -101 120q-49 64 -101 121 t-76 59q-25 2 -43 20.5t-18 43.5v641q0 26 19 44.5t45 19.5q35 1 158 44q77 26 120.5 39.5t121.5 29t144 15.5h17h76h36q133 -2 197 -78q58 -69 49 -181q39 -37 54 -94q17 -61 0 -117q46 -61 43 -137q0 -32 -15 -76z" />+<glyph unicode="" d="M919 233v157q0 50 -29 50q-17 0 -33 -16v-224q16 -16 33 -16q29 0 29 49zM1103 355h66v34q0 51 -33 51t-33 -51v-34zM532 621v-70h-80v-423h-74v423h-78v70h232zM733 495v-367h-67v40q-39 -45 -76 -45q-33 0 -42 28q-6 16 -6 54v290h66v-270q0 -24 1 -26q1 -15 15 -15 q20 0 42 31v280h67zM985 384v-146q0 -52 -7 -73q-12 -42 -53 -42q-35 0 -68 41v-36h-67v493h67v-161q32 40 68 40q41 0 53 -42q7 -21 7 -74zM1236 255v-9q0 -29 -2 -43q-3 -22 -15 -40q-27 -40 -80 -40q-52 0 -81 38q-21 27 -21 86v129q0 59 20 86q29 38 80 38t78 -38 q21 -28 21 -86v-76h-133v-65q0 -51 34 -51q24 0 30 26q0 1 0.5 7t0.5 16.5v21.5h68zM785 1079v-156q0 -51 -32 -51t-32 51v156q0 52 32 52t32 -52zM1318 366q0 177 -19 260q-10 44 -43 73.5t-76 34.5q-136 15 -412 15q-275 0 -411 -15q-44 -5 -76.5 -34.5t-42.5 -73.5 q-20 -87 -20 -260q0 -176 20 -260q10 -43 42.5 -73t75.5 -35q137 -15 412 -15t412 15q43 5 75.5 35t42.5 73q20 84 20 260zM563 1017l90 296h-75l-51 -195l-53 195h-78l24 -69t23 -69q35 -103 46 -158v-201h74v201zM852 936v130q0 58 -21 87q-29 38 -78 38q-51 0 -78 -38 q-21 -29 -21 -87v-130q0 -58 21 -87q27 -38 78 -38q49 0 78 38q21 27 21 87zM1033 816h67v370h-67v-283q-22 -31 -42 -31q-15 0 -16 16q-1 2 -1 26v272h-67v-293q0 -37 6 -55q11 -27 43 -27q36 0 77 45v-40zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960 q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M971 292v-211q0 -67 -39 -67q-23 0 -45 22v301q22 22 45 22q39 0 39 -67zM1309 291v-46h-90v46q0 68 45 68t45 -68zM343 509h107v94h-312v-94h105v-569h100v569zM631 -60h89v494h-89v-378q-30 -42 -57 -42q-18 0 -21 21q-1 3 -1 35v364h-89v-391q0 -49 8 -73 q12 -37 58 -37q48 0 102 61v-54zM1060 88v197q0 73 -9 99q-17 56 -71 56q-50 0 -93 -54v217h-89v-663h89v48q45 -55 93 -55q54 0 71 55q9 27 9 100zM1398 98v13h-91q0 -51 -2 -61q-7 -36 -40 -36q-46 0 -46 69v87h179v103q0 79 -27 116q-39 51 -106 51q-68 0 -107 -51 q-28 -37 -28 -116v-173q0 -79 29 -116q39 -51 108 -51q72 0 108 53q18 27 21 54q2 9 2 58zM790 1011v210q0 69 -43 69t-43 -69v-210q0 -70 43 -70t43 70zM1509 260q0 -234 -26 -350q-14 -59 -58 -99t-102 -46q-184 -21 -555 -21t-555 21q-58 6 -102.5 46t-57.5 99 q-26 112 -26 350q0 234 26 350q14 59 58 99t103 47q183 20 554 20t555 -20q58 -7 102.5 -47t57.5 -99q26 -112 26 -350zM511 1536h102l-121 -399v-271h-100v271q-14 74 -61 212q-37 103 -65 187h106l71 -263zM881 1203v-175q0 -81 -28 -118q-37 -51 -106 -51q-67 0 -105 51 q-28 38 -28 118v175q0 80 28 117q38 51 105 51q69 0 106 -51q28 -37 28 -117zM1216 1365v-499h-91v55q-53 -62 -103 -62q-46 0 -59 37q-8 24 -8 75v394h91v-367q0 -33 1 -35q3 -22 21 -22q27 0 57 43v381h91z" />+<glyph unicode="" horiz-adv-x="1408" d="M597 869q-10 -18 -257 -456q-27 -46 -65 -46h-239q-21 0 -31 17t0 36l253 448q1 0 0 1l-161 279q-12 22 -1 37q9 15 32 15h239q40 0 66 -45zM1403 1511q11 -16 0 -37l-528 -934v-1l336 -615q11 -20 1 -37q-10 -15 -32 -15h-239q-42 0 -66 45l-339 622q18 32 531 942 q25 45 64 45h241q22 0 31 -15z" />+<glyph unicode="" d="M685 771q0 1 -126 222q-21 34 -52 34h-184q-18 0 -26 -11q-7 -12 1 -29l125 -216v-1l-196 -346q-9 -14 0 -28q8 -13 24 -13h185q31 0 50 36zM1309 1268q-7 12 -24 12h-187q-30 0 -49 -35l-411 -729q1 -2 262 -481q20 -35 52 -35h184q18 0 25 12q8 13 -1 28l-260 476v1 l409 723q8 16 0 28zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1280 640q0 37 -30 54l-512 320q-31 20 -65 2q-33 -18 -33 -56v-640q0 -38 33 -56q16 -8 31 -8q20 0 34 10l512 320q30 17 30 54zM1792 640q0 -96 -1 -150t-8.5 -136.5t-22.5 -147.5q-16 -73 -69 -123t-124 -58q-222 -25 -671 -25t-671 25q-71 8 -124.5 58t-69.5 123 q-14 65 -21.5 147.5t-8.5 136.5t-1 150t1 150t8.5 136.5t22.5 147.5q16 73 69 123t124 58q222 25 671 25t671 -25q71 -8 124.5 -58t69.5 -123q14 -65 21.5 -147.5t8.5 -136.5t1 -150z" />+<glyph unicode="" horiz-adv-x="1792" d="M402 829l494 -305l-342 -285l-490 319zM1388 274v-108l-490 -293v-1l-1 1l-1 -1v1l-489 293v108l147 -96l342 284v2l1 -1l1 1v-2l343 -284zM554 1418l342 -285l-494 -304l-338 270zM1390 829l338 -271l-489 -319l-343 285zM1239 1418l489 -319l-338 -270l-494 304z" />+<glyph unicode="" horiz-adv-x="1408" d="M928 135v-151l-707 -1v151zM1169 481v-701l-1 -35v-1h-1132l-35 1h-1v736h121v-618h928v618h120zM241 393l704 -65l-13 -150l-705 65zM309 709l683 -183l-39 -146l-683 183zM472 1058l609 -360l-77 -130l-609 360zM832 1389l398 -585l-124 -85l-399 584zM1285 1536 l121 -697l-149 -26l-121 697z" />+<glyph unicode="" d="M1362 110v648h-135q20 -63 20 -131q0 -126 -64 -232.5t-174 -168.5t-240 -62q-197 0 -337 135.5t-140 327.5q0 68 20 131h-141v-648q0 -26 17.5 -43.5t43.5 -17.5h1069q25 0 43 17.5t18 43.5zM1078 643q0 124 -90.5 211.5t-218.5 87.5q-127 0 -217.5 -87.5t-90.5 -211.5 t90.5 -211.5t217.5 -87.5q128 0 218.5 87.5t90.5 211.5zM1362 1003v165q0 28 -20 48.5t-49 20.5h-174q-29 0 -49 -20.5t-20 -48.5v-165q0 -29 20 -49t49 -20h174q29 0 49 20t20 49zM1536 1211v-1142q0 -81 -58 -139t-139 -58h-1142q-81 0 -139 58t-58 139v1142q0 81 58 139 t139 58h1142q81 0 139 -58t58 -139z" />+<glyph unicode="" d="M1248 1408q119 0 203.5 -84.5t84.5 -203.5v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960zM698 640q0 88 -62 150t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150zM1262 640q0 88 -62 150 t-150 62t-150 -62t-62 -150t62 -150t150 -62t150 62t62 150z" />+<glyph unicode="" d="M768 914l201 -306h-402zM1133 384h94l-459 691l-459 -691h94l104 160h522zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M815 677q8 -63 -50.5 -101t-111.5 -6q-39 17 -53.5 58t-0.5 82t52 58q36 18 72.5 12t64 -35.5t27.5 -67.5zM926 698q-14 107 -113 164t-197 13q-63 -28 -100.5 -88.5t-34.5 -129.5q4 -91 77.5 -155t165.5 -56q91 8 152 84t50 168zM1165 1240q-20 27 -56 44.5t-58 22 t-71 12.5q-291 47 -566 -2q-43 -7 -66 -12t-55 -22t-50 -43q30 -28 76 -45.5t73.5 -22t87.5 -11.5q228 -29 448 -1q63 8 89.5 12t72.5 21.5t75 46.5zM1222 205q-8 -26 -15.5 -76.5t-14 -84t-28.5 -70t-58 -56.5q-86 -48 -189.5 -71.5t-202 -22t-201.5 18.5q-46 8 -81.5 18 t-76.5 27t-73 43.5t-52 61.5q-25 96 -57 292l6 16l18 9q223 -148 506.5 -148t507.5 148q21 -6 24 -23t-5 -45t-8 -37zM1403 1166q-26 -167 -111 -655q-5 -30 -27 -56t-43.5 -40t-54.5 -31q-252 -126 -610 -88q-248 27 -394 139q-15 12 -25.5 26.5t-17 35t-9 34t-6 39.5 t-5.5 35q-9 50 -26.5 150t-28 161.5t-23.5 147.5t-22 158q3 26 17.5 48.5t31.5 37.5t45 30t46 22.5t48 18.5q125 46 313 64q379 37 676 -50q155 -46 215 -122q16 -20 16.5 -51t-5.5 -54z" />+<glyph unicode="" d="M848 666q0 43 -41 66t-77 1q-43 -20 -42.5 -72.5t43.5 -70.5q39 -23 81 4t36 72zM928 682q8 -66 -36 -121t-110 -61t-119 40t-56 113q-2 49 25.5 93t72.5 64q70 31 141.5 -10t81.5 -118zM1100 1073q-20 -21 -53.5 -34t-53 -16t-63.5 -8q-155 -20 -324 0q-44 6 -63 9.5 t-52.5 16t-54.5 32.5q13 19 36 31t40 15.5t47 8.5q198 35 408 1q33 -5 51 -8.5t43 -16t39 -31.5zM1142 327q0 7 5.5 26.5t3 32t-17.5 16.5q-161 -106 -365 -106t-366 106l-12 -6l-5 -12q26 -154 41 -210q47 -81 204 -108q249 -46 428 53q34 19 49 51.5t22.5 85.5t12.5 71z M1272 1020q9 53 -8 75q-43 55 -155 88q-216 63 -487 36q-132 -12 -226 -46q-38 -15 -59.5 -25t-47 -34t-29.5 -54q8 -68 19 -138t29 -171t24 -137q1 -5 5 -31t7 -36t12 -27t22 -28q105 -80 284 -100q259 -28 440 63q24 13 39.5 23t31 29t19.5 40q48 267 80 473zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M390 1408h219v-388h364v-241h-364v-394q0 -136 14 -172q13 -37 52 -60q50 -31 117 -31q117 0 232 76v-242q-102 -48 -178 -65q-77 -19 -173 -19q-105 0 -186 27q-78 25 -138 75q-58 51 -79 105q-22 54 -22 161v539h-170v217q91 30 155 84q64 55 103 132q39 78 54 196z " />+<glyph unicode="" d="M1123 127v181q-88 -56 -174 -56q-51 0 -88 23q-29 17 -39 45q-11 30 -11 129v295h274v181h-274v291h-164q-11 -90 -40 -147t-78 -99q-48 -40 -116 -63v-163h127v-404q0 -78 17 -121q17 -42 59 -78q43 -37 104 -57q62 -20 140 -20q67 0 129 14q57 13 134 49zM1536 1120 v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="768" d="M765 237q8 -19 -5 -35l-350 -384q-10 -10 -23 -10q-14 0 -24 10l-355 384q-13 16 -5 35q9 19 29 19h224v1248q0 14 9 23t23 9h192q14 0 23 -9t9 -23v-1248h224q21 0 29 -19z" />+<glyph unicode="" horiz-adv-x="768" d="M765 1043q-9 -19 -29 -19h-224v-1248q0 -14 -9 -23t-23 -9h-192q-14 0 -23 9t-9 23v1248h-224q-21 0 -29 19t5 35l350 384q10 10 23 10q14 0 24 -10l355 -384q13 -16 5 -35z" />+<glyph unicode="" horiz-adv-x="1792" d="M1792 736v-192q0 -14 -9 -23t-23 -9h-1248v-224q0 -21 -19 -29t-35 5l-384 350q-10 10 -10 23q0 14 10 24l384 354q16 14 35 6q19 -9 19 -29v-224h1248q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1792" d="M1728 643q0 -14 -10 -24l-384 -354q-16 -14 -35 -6q-19 9 -19 29v224h-1248q-14 0 -23 9t-9 23v192q0 14 9 23t23 9h1248v224q0 21 19 29t35 -5l384 -350q10 -10 10 -23z" />+<glyph unicode="" horiz-adv-x="1408" d="M1393 321q-39 -125 -123 -250q-129 -196 -257 -196q-49 0 -140 32q-86 32 -151 32q-61 0 -142 -33q-81 -34 -132 -34q-152 0 -301 259q-147 261 -147 503q0 228 113 374q112 144 284 144q72 0 177 -30q104 -30 138 -30q45 0 143 34q102 34 173 34q119 0 213 -65 q52 -36 104 -100q-79 -67 -114 -118q-65 -94 -65 -207q0 -124 69 -223t158 -126zM1017 1494q0 -61 -29 -136q-30 -75 -93 -138q-54 -54 -108 -72q-37 -11 -104 -17q3 149 78 257q74 107 250 148q1 -3 2.5 -11t2.5 -11q0 -4 0.5 -10t0.5 -10z" />+<glyph unicode="" horiz-adv-x="1664" d="M682 530v-651l-682 94v557h682zM682 1273v-659h-682v565zM1664 530v-786l-907 125v661h907zM1664 1408v-794h-907v669z" />+<glyph unicode="" horiz-adv-x="1408" d="M493 1053q16 0 27.5 11.5t11.5 27.5t-11.5 27.5t-27.5 11.5t-27 -11.5t-11 -27.5t11 -27.5t27 -11.5zM915 1053q16 0 27 11.5t11 27.5t-11 27.5t-27 11.5t-27.5 -11.5t-11.5 -27.5t11.5 -27.5t27.5 -11.5zM103 869q42 0 72 -30t30 -72v-430q0 -43 -29.5 -73t-72.5 -30 t-73 30t-30 73v430q0 42 30 72t73 30zM1163 850v-666q0 -46 -32 -78t-77 -32h-75v-227q0 -43 -30 -73t-73 -30t-73 30t-30 73v227h-138v-227q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73l-1 227h-74q-46 0 -78 32t-32 78v666h918zM931 1255q107 -55 171 -153.5t64 -215.5 h-925q0 117 64 215.5t172 153.5l-71 131q-7 13 5 20q13 6 20 -6l72 -132q95 42 201 42t201 -42l72 132q7 12 20 6q12 -7 5 -20zM1408 767v-430q0 -43 -30 -73t-73 -30q-42 0 -72 30t-30 73v430q0 43 30 72.5t72 29.5q43 0 73 -29.5t30 -72.5z" />+<glyph unicode="" d="M663 1125q-11 -1 -15.5 -10.5t-8.5 -9.5q-5 -1 -5 5q0 12 19 15h10zM750 1111q-4 -1 -11.5 6.5t-17.5 4.5q24 11 32 -2q3 -6 -3 -9zM399 684q-4 1 -6 -3t-4.5 -12.5t-5.5 -13.5t-10 -13q-7 -10 -1 -12q4 -1 12.5 7t12.5 18q1 3 2 7t2 6t1.5 4.5t0.5 4v3t-1 2.5t-3 2z M1254 325q0 18 -55 42q4 15 7.5 27.5t5 26t3 21.5t0.5 22.5t-1 19.5t-3.5 22t-4 20.5t-5 25t-5.5 26.5q-10 48 -47 103t-72 75q24 -20 57 -83q87 -162 54 -278q-11 -40 -50 -42q-31 -4 -38.5 18.5t-8 83.5t-11.5 107q-9 39 -19.5 69t-19.5 45.5t-15.5 24.5t-13 15t-7.5 7 q-14 62 -31 103t-29.5 56t-23.5 33t-15 40q-4 21 6 53.5t4.5 49.5t-44.5 25q-15 3 -44.5 18t-35.5 16q-8 1 -11 26t8 51t36 27q37 3 51 -30t4 -58q-11 -19 -2 -26.5t30 -0.5q13 4 13 36v37q-5 30 -13.5 50t-21 30.5t-23.5 15t-27 7.5q-107 -8 -89 -134q0 -15 -1 -15 q-9 9 -29.5 10.5t-33 -0.5t-15.5 5q1 57 -16 90t-45 34q-27 1 -41.5 -27.5t-16.5 -59.5q-1 -15 3.5 -37t13 -37.5t15.5 -13.5q10 3 16 14q4 9 -7 8q-7 0 -15.5 14.5t-9.5 33.5q-1 22 9 37t34 14q17 0 27 -21t9.5 -39t-1.5 -22q-22 -15 -31 -29q-8 -12 -27.5 -23.5 t-20.5 -12.5q-13 -14 -15.5 -27t7.5 -18q14 -8 25 -19.5t16 -19t18.5 -13t35.5 -6.5q47 -2 102 15q2 1 23 7t34.5 10.5t29.5 13t21 17.5q9 14 20 8q5 -3 6.5 -8.5t-3 -12t-16.5 -9.5q-20 -6 -56.5 -21.5t-45.5 -19.5q-44 -19 -70 -23q-25 -5 -79 2q-10 2 -9 -2t17 -19 q25 -23 67 -22q17 1 36 7t36 14t33.5 17.5t30 17t24.5 12t17.5 2.5t8.5 -11q0 -2 -1 -4.5t-4 -5t-6 -4.5t-8.5 -5t-9 -4.5t-10 -5t-9.5 -4.5q-28 -14 -67.5 -44t-66.5 -43t-49 -1q-21 11 -63 73q-22 31 -25 22q-1 -3 -1 -10q0 -25 -15 -56.5t-29.5 -55.5t-21 -58t11.5 -63 q-23 -6 -62.5 -90t-47.5 -141q-2 -18 -1.5 -69t-5.5 -59q-8 -24 -29 -3q-32 31 -36 94q-2 28 4 56q4 19 -1 18l-4 -5q-36 -65 10 -166q5 -12 25 -28t24 -20q20 -23 104 -90.5t93 -76.5q16 -15 17.5 -38t-14 -43t-45.5 -23q8 -15 29 -44.5t28 -54t7 -70.5q46 24 7 92 q-4 8 -10.5 16t-9.5 12t-2 6q3 5 13 9.5t20 -2.5q46 -52 166 -36q133 15 177 87q23 38 34 30q12 -6 10 -52q-1 -25 -23 -92q-9 -23 -6 -37.5t24 -15.5q3 19 14.5 77t13.5 90q2 21 -6.5 73.5t-7.5 97t23 70.5q15 18 51 18q1 37 34.5 53t72.5 10.5t60 -22.5zM626 1152 q3 17 -2.5 30t-11.5 15q-9 2 -9 -7q2 -5 5 -6q10 0 7 -15q-3 -20 8 -20q3 0 3 3zM1045 955q-2 8 -6.5 11.5t-13 5t-14.5 5.5q-5 3 -9.5 8t-7 8t-5.5 6.5t-4 4t-4 -1.5q-14 -16 7 -43.5t39 -31.5q9 -1 14.5 8t3.5 20zM867 1168q0 11 -5 19.5t-11 12.5t-9 3q-14 -1 -7 -7l4 -2 q14 -4 18 -31q0 -3 8 2zM921 1401q0 2 -2.5 5t-9 7t-9.5 6q-15 15 -24 15q-9 -1 -11.5 -7.5t-1 -13t-0.5 -12.5q-1 -4 -6 -10.5t-6 -9t3 -8.5q4 -3 8 0t11 9t15 9q1 1 9 1t15 2t9 7zM1486 60q20 -12 31 -24.5t12 -24t-2.5 -22.5t-15.5 -22t-23.5 -19.5t-30 -18.5 t-31.5 -16.5t-32 -15.5t-27 -13q-38 -19 -85.5 -56t-75.5 -64q-17 -16 -68 -19.5t-89 14.5q-18 9 -29.5 23.5t-16.5 25.5t-22 19.5t-47 9.5q-44 1 -130 1q-19 0 -57 -1.5t-58 -2.5q-44 -1 -79.5 -15t-53.5 -30t-43.5 -28.5t-53.5 -11.5q-29 1 -111 31t-146 43q-19 4 -51 9.5 t-50 9t-39.5 9.5t-33.5 14.5t-17 19.5q-10 23 7 66.5t18 54.5q1 16 -4 40t-10 42.5t-4.5 36.5t10.5 27q14 12 57 14t60 12q30 18 42 35t12 51q21 -73 -32 -106q-32 -20 -83 -15q-34 3 -43 -10q-13 -15 5 -57q2 -6 8 -18t8.5 -18t4.5 -17t1 -22q0 -15 -17 -49t-14 -48 q3 -17 37 -26q20 -6 84.5 -18.5t99.5 -20.5q24 -6 74 -22t82.5 -23t55.5 -4q43 6 64.5 28t23 48t-7.5 58.5t-19 52t-20 36.5q-121 190 -169 242q-68 74 -113 40q-11 -9 -15 15q-3 16 -2 38q1 29 10 52t24 47t22 42q8 21 26.5 72t29.5 78t30 61t39 54q110 143 124 195 q-12 112 -16 310q-2 90 24 151.5t106 104.5q39 21 104 21q53 1 106 -13.5t89 -41.5q57 -42 91.5 -121.5t29.5 -147.5q-5 -95 30 -214q34 -113 133 -218q55 -59 99.5 -163t59.5 -191q8 -49 5 -84.5t-12 -55.5t-20 -22q-10 -2 -23.5 -19t-27 -35.5t-40.5 -33.5t-61 -14 q-18 1 -31.5 5t-22.5 13.5t-13.5 15.5t-11.5 20.5t-9 19.5q-22 37 -41 30t-28 -49t7 -97q20 -70 1 -195q-10 -65 18 -100.5t73 -33t85 35.5q59 49 89.5 66.5t103.5 42.5q53 18 77 36.5t18.5 34.5t-25 28.5t-51.5 23.5q-33 11 -49.5 48t-15 72.5t15.5 47.5q1 -31 8 -56.5 t14.5 -40.5t20.5 -28.5t21 -19t21.5 -13t16.5 -9.5z" />+<glyph unicode="" d="M1024 36q-42 241 -140 498h-2l-2 -1q-16 -6 -43 -16.5t-101 -49t-137 -82t-131 -114.5t-103 -148l-15 11q184 -150 418 -150q132 0 256 52zM839 643q-21 49 -53 111q-311 -93 -673 -93q-1 -7 -1 -21q0 -124 44 -236.5t124 -201.5q50 89 123.5 166.5t142.5 124.5t130.5 81 t99.5 48l37 13q4 1 13 3.5t13 4.5zM732 855q-120 213 -244 378q-138 -65 -234 -186t-128 -272q302 0 606 80zM1416 536q-210 60 -409 29q87 -239 128 -469q111 75 185 189.5t96 250.5zM611 1277q-1 0 -2 -1q1 1 2 1zM1201 1132q-185 164 -433 164q-76 0 -155 -19 q131 -170 246 -382q69 26 130 60.5t96.5 61.5t65.5 57t37.5 40.5zM1424 647q-3 232 -149 410l-1 -1q-9 -12 -19 -24.5t-43.5 -44.5t-71 -60.5t-100 -65t-131.5 -64.5q25 -53 44 -95q2 -6 6.5 -17.5t7.5 -16.5q36 5 74.5 7t73.5 2t69 -1.5t64 -4t56.5 -5.5t48 -6.5t36.5 -6 t25 -4.5zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1173 473q0 50 -19.5 91.5t-48.5 68.5t-73 49t-82.5 34t-87.5 23l-104 24q-30 7 -44 10.5t-35 11.5t-30 16t-16.5 21t-7.5 30q0 77 144 77q43 0 77 -12t54 -28.5t38 -33.5t40 -29t48 -12q47 0 75.5 32t28.5 77q0 55 -56 99.5t-142 67.5t-182 23q-68 0 -132 -15.5 t-119.5 -47t-89 -87t-33.5 -128.5q0 -61 19 -106.5t56 -75.5t80 -48.5t103 -32.5l146 -36q90 -22 112 -36q32 -20 32 -60q0 -39 -40 -64.5t-105 -25.5q-51 0 -91.5 16t-65 38.5t-45.5 45t-46 38.5t-54 16q-50 0 -75.5 -30t-25.5 -75q0 -92 122 -157.5t291 -65.5 q73 0 140 18.5t122.5 53.5t88.5 93.5t33 131.5zM1536 256q0 -159 -112.5 -271.5t-271.5 -112.5q-130 0 -234 80q-77 -16 -150 -16q-143 0 -273.5 55.5t-225 150t-150 225t-55.5 273.5q0 73 16 150q-80 104 -80 234q0 159 112.5 271.5t271.5 112.5q130 0 234 -80 q77 16 150 16q143 0 273.5 -55.5t225 -150t150 -225t55.5 -273.5q0 -73 -16 -150q80 -104 80 -234z" />+<glyph unicode="" horiz-adv-x="1664" d="M1483 512l-587 -587q-52 -53 -127.5 -53t-128.5 53l-587 587q-53 53 -53 128t53 128l587 587q53 53 128 53t128 -53l265 -265l-398 -399l-188 188q-42 42 -99 42q-59 0 -100 -41l-120 -121q-42 -40 -42 -99q0 -58 42 -100l406 -408q30 -28 67 -37l6 -4h28q60 0 99 41 l619 619l2 -3q53 -53 53 -128t-53 -128zM1406 1138l120 -120q14 -15 14 -36t-14 -36l-730 -730q-17 -15 -37 -15v0q-4 0 -6 1q-18 2 -30 14l-407 408q-14 15 -14 36t14 35l121 120q13 15 35 15t36 -15l252 -252l574 575q15 15 36 15t36 -15z" />+<glyph unicode="" d="M704 192v1024q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-1024q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1376 576v640q0 14 -9 23t-23 9h-480q-14 0 -23 -9t-9 -23v-640q0 -14 9 -23t23 -9h480q14 0 23 9t9 23zM1536 1344v-1408q0 -26 -19 -45t-45 -19h-1408 q-26 0 -45 19t-19 45v1408q0 26 19 45t45 19h1408q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1280" d="M1280 480q0 -40 -28 -68t-68 -28q-51 0 -80 43l-227 341h-45v-132l247 -411q9 -15 9 -33q0 -26 -19 -45t-45 -19h-192v-272q0 -46 -33 -79t-79 -33h-160q-46 0 -79 33t-33 79v272h-192q-26 0 -45 19t-19 45q0 18 9 33l247 411v132h-45l-227 -341q-29 -43 -80 -43 q-40 0 -68 28t-28 68q0 29 16 53l256 384q73 107 176 107h384q103 0 176 -107l256 -384q16 -24 16 -53zM864 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />+<glyph unicode="" horiz-adv-x="1024" d="M1024 832v-416q0 -40 -28 -68t-68 -28t-68 28t-28 68v352h-64v-912q0 -46 -33 -79t-79 -33t-79 33t-33 79v464h-64v-464q0 -46 -33 -79t-79 -33t-79 33t-33 79v912h-64v-352q0 -40 -28 -68t-68 -28t-68 28t-28 68v416q0 80 56 136t136 56h640q80 0 136 -56t56 -136z M736 1280q0 -93 -65.5 -158.5t-158.5 -65.5t-158.5 65.5t-65.5 158.5t65.5 158.5t158.5 65.5t158.5 -65.5t65.5 -158.5z" />+<glyph unicode="" d="M773 234l350 473q16 22 24.5 59t-6 85t-61.5 79q-40 26 -83 25.5t-73.5 -17.5t-54.5 -45q-36 -40 -96 -40q-59 0 -95 40q-24 28 -54.5 45t-73.5 17.5t-84 -25.5q-46 -31 -60.5 -79t-6 -85t24.5 -59zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103 t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M1472 640q0 117 -45.5 223.5t-123 184t-184 123t-223.5 45.5t-223.5 -45.5t-184 -123t-123 -184t-45.5 -223.5t45.5 -223.5t123 -184t184 -123t223.5 -45.5t223.5 45.5t184 123t123 184t45.5 223.5zM1748 363q-4 -15 -20 -20l-292 -96v-306q0 -16 -13 -26q-15 -10 -29 -4 l-292 94l-180 -248q-10 -13 -26 -13t-26 13l-180 248l-292 -94q-14 -6 -29 4q-13 10 -13 26v306l-292 96q-16 5 -20 20q-5 17 4 29l180 248l-180 248q-9 13 -4 29q4 15 20 20l292 96v306q0 16 13 26q15 10 29 4l292 -94l180 248q9 12 26 12t26 -12l180 -248l292 94 q14 6 29 -4q13 -10 13 -26v-306l292 -96q16 -5 20 -20q5 -16 -4 -29l-180 -248l180 -248q9 -12 4 -29z" />+<glyph unicode="" d="M1262 233q-54 -9 -110 -9q-182 0 -337 90t-245 245t-90 337q0 192 104 357q-201 -60 -328.5 -229t-127.5 -384q0 -130 51 -248.5t136.5 -204t204 -136.5t248.5 -51q144 0 273.5 61.5t220.5 171.5zM1465 318q-94 -203 -283.5 -324.5t-413.5 -121.5q-156 0 -298 61 t-245 164t-164 245t-61 298q0 153 57.5 292.5t156 241.5t235.5 164.5t290 68.5q44 2 61 -39q18 -41 -15 -72q-86 -78 -131.5 -181.5t-45.5 -218.5q0 -148 73 -273t198 -198t273 -73q118 0 228 51q41 18 72 -13q14 -14 17.5 -34t-4.5 -38z" />+<glyph unicode="" horiz-adv-x="1792" d="M1088 704q0 26 -19 45t-45 19h-256q-26 0 -45 -19t-19 -45t19 -45t45 -19h256q26 0 45 19t19 45zM1664 896v-960q0 -26 -19 -45t-45 -19h-1408q-26 0 -45 19t-19 45v960q0 26 19 45t45 19h1408q26 0 45 -19t19 -45zM1728 1344v-256q0 -26 -19 -45t-45 -19h-1536 q-26 0 -45 19t-19 45v256q0 26 19 45t45 19h1536q26 0 45 -19t19 -45z" />+<glyph unicode="" horiz-adv-x="1664" d="M1632 576q0 -26 -19 -45t-45 -19h-224q0 -171 -67 -290l208 -209q19 -19 19 -45t-19 -45q-18 -19 -45 -19t-45 19l-198 197q-5 -5 -15 -13t-42 -28.5t-65 -36.5t-82 -29t-97 -13v896h-128v-896q-51 0 -101.5 13.5t-87 33t-66 39t-43.5 32.5l-15 14l-183 -207 q-20 -21 -48 -21q-24 0 -43 16q-19 18 -20.5 44.5t15.5 46.5l202 227q-58 114 -58 274h-224q-26 0 -45 19t-19 45t19 45t45 19h224v294l-173 173q-19 19 -19 45t19 45t45 19t45 -19l173 -173h844l173 173q19 19 45 19t45 -19t19 -45t-19 -45l-173 -173v-294h224q26 0 45 -19 t19 -45zM1152 1152h-640q0 133 93.5 226.5t226.5 93.5t226.5 -93.5t93.5 -226.5z" />+<glyph unicode="" horiz-adv-x="1920" d="M1917 1016q23 -64 -150 -294q-24 -32 -65 -85q-78 -100 -90 -131q-17 -41 14 -81q17 -21 81 -82h1l1 -1l1 -1l2 -2q141 -131 191 -221q3 -5 6.5 -12.5t7 -26.5t-0.5 -34t-25 -27.5t-59 -12.5l-256 -4q-24 -5 -56 5t-52 22l-20 12q-30 21 -70 64t-68.5 77.5t-61 58 t-56.5 15.5q-3 -1 -8 -3.5t-17 -14.5t-21.5 -29.5t-17 -52t-6.5 -77.5q0 -15 -3.5 -27.5t-7.5 -18.5l-4 -5q-18 -19 -53 -22h-115q-71 -4 -146 16.5t-131.5 53t-103 66t-70.5 57.5l-25 24q-10 10 -27.5 30t-71.5 91t-106 151t-122.5 211t-130.5 272q-6 16 -6 27t3 16l4 6 q15 19 57 19l274 2q12 -2 23 -6.5t16 -8.5l5 -3q16 -11 24 -32q20 -50 46 -103.5t41 -81.5l16 -29q29 -60 56 -104t48.5 -68.5t41.5 -38.5t34 -14t27 5q2 1 5 5t12 22t13.5 47t9.5 81t0 125q-2 40 -9 73t-14 46l-6 12q-25 34 -85 43q-13 2 5 24q17 19 38 30q53 26 239 24 q82 -1 135 -13q20 -5 33.5 -13.5t20.5 -24t10.5 -32t3.5 -45.5t-1 -55t-2.5 -70.5t-1.5 -82.5q0 -11 -1 -42t-0.5 -48t3.5 -40.5t11.5 -39t22.5 -24.5q8 -2 17 -4t26 11t38 34.5t52 67t68 107.5q60 104 107 225q4 10 10 17.5t11 10.5l4 3l5 2.5t13 3t20 0.5l288 2 q39 5 64 -2.5t31 -16.5z" />+<glyph unicode="" horiz-adv-x="1792" d="M675 252q21 34 11 69t-45 50q-34 14 -73 1t-60 -46q-22 -34 -13 -68.5t43 -50.5t74.5 -2.5t62.5 47.5zM769 373q8 13 3.5 26.5t-17.5 18.5q-14 5 -28.5 -0.5t-21.5 -18.5q-17 -31 13 -45q14 -5 29 0.5t22 18.5zM943 266q-45 -102 -158 -150t-224 -12 q-107 34 -147.5 126.5t6.5 187.5q47 93 151.5 139t210.5 19q111 -29 158.5 -119.5t2.5 -190.5zM1255 426q-9 96 -89 170t-208.5 109t-274.5 21q-223 -23 -369.5 -141.5t-132.5 -264.5q9 -96 89 -170t208.5 -109t274.5 -21q223 23 369.5 141.5t132.5 264.5zM1563 422 q0 -68 -37 -139.5t-109 -137t-168.5 -117.5t-226 -83t-270.5 -31t-275 33.5t-240.5 93t-171.5 151t-65 199.5q0 115 69.5 245t197.5 258q169 169 341.5 236t246.5 -7q65 -64 20 -209q-4 -14 -1 -20t10 -7t14.5 0.5t13.5 3.5l6 2q139 59 246 59t153 -61q45 -63 0 -178 q-2 -13 -4.5 -20t4.5 -12.5t12 -7.5t17 -6q57 -18 103 -47t80 -81.5t34 -116.5zM1489 1046q42 -47 54.5 -108.5t-6.5 -117.5q-8 -23 -29.5 -34t-44.5 -4q-23 8 -34 29.5t-4 44.5q20 63 -24 111t-107 35q-24 -5 -45 8t-25 37q-5 24 8 44.5t37 25.5q60 13 119 -5.5t101 -65.5z M1670 1209q87 -96 112.5 -222.5t-13.5 -241.5q-9 -27 -34 -40t-52 -4t-40 34t-5 52q28 82 10 172t-80 158q-62 69 -148 95.5t-173 8.5q-28 -6 -52 9.5t-30 43.5t9.5 51.5t43.5 29.5q123 26 244 -11.5t208 -134.5z" />+<glyph unicode="" d="M1133 -34q-171 -94 -368 -94q-196 0 -367 94q138 87 235.5 211t131.5 268q35 -144 132.5 -268t235.5 -211zM638 1394v-485q0 -252 -126.5 -459.5t-330.5 -306.5q-181 215 -181 495q0 187 83.5 349.5t229.5 269.5t325 137zM1536 638q0 -280 -181 -495 q-204 99 -330.5 306.5t-126.5 459.5v485q179 -30 325 -137t229.5 -269.5t83.5 -349.5z" />+<glyph unicode="" horiz-adv-x="1408" d="M1402 433q-32 -80 -76 -138t-91 -88.5t-99 -46.5t-101.5 -14.5t-96.5 8.5t-86.5 22t-69.5 27.5t-46 22.5l-17 10q-113 -228 -289.5 -359.5t-384.5 -132.5q-19 0 -32 13t-13 32t13 31.5t32 12.5q173 1 322.5 107.5t251.5 294.5q-36 -14 -72 -23t-83 -13t-91 2.5t-93 28.5 t-92 59t-84.5 100t-74.5 146q114 47 214 57t167.5 -7.5t124.5 -56.5t88.5 -77t56.5 -82q53 131 79 291q-7 -1 -18 -2.5t-46.5 -2.5t-69.5 0.5t-81.5 10t-88.5 23t-84 42.5t-75 65t-54.5 94.5t-28.5 127.5q70 28 133.5 36.5t112.5 -1t92 -30t73.5 -50t56 -61t42 -63t27.5 -56 t16 -39.5l4 -16q12 122 12 195q-8 6 -21.5 16t-49 44.5t-63.5 71.5t-54 93t-33 112.5t12 127t70 138.5q73 -25 127.5 -61.5t84.5 -76.5t48 -85t20.5 -89t-0.5 -85.5t-13 -76.5t-19 -62t-17 -42l-7 -15q1 -5 1 -50.5t-1 -71.5q3 7 10 18.5t30.5 43t50.5 58t71 55.5t91.5 44.5 t112 14.5t132.5 -24q-2 -78 -21.5 -141.5t-50 -104.5t-69.5 -71.5t-81.5 -45.5t-84.5 -24t-80 -9.5t-67.5 1t-46.5 4.5l-17 3q-23 -147 -73 -283q6 7 18 18.5t49.5 41t77.5 52.5t99.5 42t117.5 20t129 -23.5t137 -77.5z" />+<glyph unicode="" horiz-adv-x="1280" d="M1259 283v-66q0 -85 -57.5 -144.5t-138.5 -59.5h-57l-260 -269v269h-529q-81 0 -138.5 59.5t-57.5 144.5v66h1238zM1259 609v-255h-1238v255h1238zM1259 937v-255h-1238v255h1238zM1259 1077v-67h-1238v67q0 84 57.5 143.5t138.5 59.5h846q81 0 138.5 -59.5t57.5 -143.5z " />+<glyph unicode="" d="M1152 640q0 -14 -9 -23l-320 -320q-9 -9 -23 -9q-13 0 -22.5 9.5t-9.5 22.5v192h-352q-13 0 -22.5 9.5t-9.5 22.5v192q0 13 9.5 22.5t22.5 9.5h352v192q0 14 9 23t23 9q12 0 24 -10l319 -319q9 -9 9 -23zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1152 736v-192q0 -13 -9.5 -22.5t-22.5 -9.5h-352v-192q0 -14 -9 -23t-23 -9q-12 0 -24 10l-319 319q-9 9 -9 23t9 23l320 320q9 9 23 9q13 0 22.5 -9.5t9.5 -22.5v-192h352q13 0 22.5 -9.5t9.5 -22.5zM1312 640q0 148 -73 273t-198 198t-273 73t-273 -73t-198 -198 t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273zM1536 640q0 -209 -103 -385.5t-279.5 -279.5t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" d="M1024 960v-640q0 -26 -19 -45t-45 -19q-20 0 -37 12l-448 320q-27 19 -27 52t27 52l448 320q17 12 37 12q26 0 45 -19t19 -45zM1280 160v960q0 13 -9.5 22.5t-22.5 9.5h-960q-13 0 -22.5 -9.5t-9.5 -22.5v-960q0 -13 9.5 -22.5t22.5 -9.5h960q13 0 22.5 9.5t9.5 22.5z M1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" d="M1024 640q0 -106 -75 -181t-181 -75t-181 75t-75 181t75 181t181 75t181 -75t75 -181zM768 1184q-148 0 -273 -73t-198 -198t-73 -273t73 -273t198 -198t273 -73t273 73t198 198t73 273t-73 273t-198 198t-273 73zM1536 640q0 -209 -103 -385.5t-279.5 -279.5 t-385.5 -103t-385.5 103t-279.5 279.5t-103 385.5t103 385.5t279.5 279.5t385.5 103t385.5 -103t279.5 -279.5t103 -385.5z" />+<glyph unicode="" horiz-adv-x="1664" d="M1023 349l102 -204q-58 -179 -210 -290t-339 -111q-156 0 -288.5 77.5t-210 210t-77.5 288.5q0 181 104.5 330t274.5 211l17 -131q-122 -54 -195 -165.5t-73 -244.5q0 -185 131.5 -316.5t316.5 -131.5q126 0 232.5 65t165 175.5t49.5 236.5zM1571 249l58 -114l-256 -128 q-13 -7 -29 -7q-40 0 -57 35l-239 477h-472q-24 0 -42.5 16.5t-21.5 40.5l-96 779q-2 16 6 42q14 51 57 82.5t97 31.5q66 0 113 -47t47 -113q0 -69 -52 -117.5t-120 -41.5l37 -289h423v-128h-407l16 -128h455q40 0 57 -35l228 -455z" />+<glyph unicode="" d="M1254 899q16 85 -21 132q-52 65 -187 45q-17 -3 -41 -12.5t-57.5 -30.5t-64.5 -48.5t-59.5 -70t-44.5 -91.5q80 7 113.5 -16t26.5 -99q-5 -52 -52 -143q-43 -78 -71 -99q-44 -32 -87 14q-23 24 -37.5 64.5t-19 73t-10 84t-8.5 71.5q-23 129 -34 164q-12 37 -35.5 69 t-50.5 40q-57 16 -127 -25q-54 -32 -136.5 -106t-122.5 -102v-7q16 -8 25.5 -26t21.5 -20q21 -3 54.5 8.5t58 10.5t41.5 -30q11 -18 18.5 -38.5t15 -48t12.5 -40.5q17 -46 53 -187q36 -146 57 -197q42 -99 103 -125q43 -12 85 -1.5t76 31.5q131 77 250 237 q104 139 172.5 292.5t82.5 226.5zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1152" d="M1152 704q0 -191 -94.5 -353t-256.5 -256.5t-353 -94.5h-160q-14 0 -23 9t-9 23v611l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v93l-215 -66q-3 -1 -9 -1q-10 0 -19 6q-13 10 -13 26v128q0 23 23 31l233 71v250q0 14 9 23t23 9h160 q14 0 23 -9t9 -23v-181l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-93l375 116q15 5 28 -5t13 -26v-128q0 -23 -23 -31l-393 -121v-487q188 13 318 151t130 328q0 14 9 23t23 9h160q14 0 23 -9t9 -23z" />+<glyph unicode="" horiz-adv-x="1408" d="M1152 736v-64q0 -14 -9 -23t-23 -9h-352v-352q0 -14 -9 -23t-23 -9h-64q-14 0 -23 9t-9 23v352h-352q-14 0 -23 9t-9 23v64q0 14 9 23t23 9h352v352q0 14 9 23t23 9h64q14 0 23 -9t9 -23v-352h352q14 0 23 -9t9 -23zM1280 288v832q0 66 -47 113t-113 47h-832 q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113zM1408 1120v-832q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h832q119 0 203.5 -84.5t84.5 -203.5z" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+<glyph unicode="" horiz-adv-x="1792" />+</font>+</defs></svg>\ No newline at end of filediff --git a/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.ttf b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.ttfnew file mode 100644index 000000000..e89738de5Binary files /dev/null and b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.ttf differdiff --git a/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.woff b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.woffnew file mode 100644index 000000000..8c1748aabBinary files /dev/null and b/data/devlibs/font-awesome-4.0.3/fonts/fontawesome-webfont.woff differdiff --git a/data/devlibs/i18next/i18next-1.7.1.js b/data/devlibs/i18next/i18next-1.7.1.jsnew file mode 100644index 000000000..2f531ae03--- /dev/null+++ b/data/devlibs/i18next/i18next-1.7.1.js@@ -0,0 +1,2662 @@+// i18next, v1.7.1+// Copyright (c)2013 Jan Mühlemann (jamuhl).+// Distributed under MIT license+// http://i18next.com+(function() {++ // add indexOf to non ECMA-262 standard compliant browsers+ if (!Array.prototype.indexOf) {+ Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {+ "use strict";+ if (this == null) {+ throw new TypeError();+ }+ var t = Object(this);+ var len = t.length >>> 0;+ if (len === 0) {+ return -1;+ }+ var n = 0;+ if (arguments.length > 0) {+ n = Number(arguments[1]);+ if (n != n) { // shortcut for verifying if it's NaN+ n = 0;+ } else if (n != 0 && n != Infinity && n != -Infinity) {+ n = (n > 0 || -1) * Math.floor(Math.abs(n));+ }+ }+ if (n >= len) {+ return -1;+ }+ var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);+ for (; k < len; k++) {+ if (k in t && t[k] === searchElement) {+ return k;+ }+ }+ return -1;+ }+ }++ // add lastIndexOf to non ECMA-262 standard compliant browsers+ if (!Array.prototype.lastIndexOf) {+ Array.prototype.lastIndexOf = function(searchElement /*, fromIndex*/) {+ "use strict";+ if (this == null) {+ throw new TypeError();+ }+ var t = Object(this);+ var len = t.length >>> 0;+ if (len === 0) {+ return -1;+ }+ var n = len;+ if (arguments.length > 1) {+ n = Number(arguments[1]);+ if (n != n) {+ n = 0;+ } else if (n != 0 && n != (1 / 0) && n != -(1 / 0)) {+ n = (n > 0 || -1) * Math.floor(Math.abs(n));+ }+ }+ var k = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);+ for (; k >= 0; k--) {+ if (k in t && t[k] === searchElement) {+ return k;+ }+ }+ return -1;+ };+ }++ var root = this+ , $ = root.jQuery || root.Zepto+ , i18n = {}+ , resStore = {}+ , currentLng+ , replacementCounter = 0+ , languages = []+ , initialized = false;+++ // Export the i18next object for **CommonJS**.+ // If we're not in CommonJS, add `i18n` to the+ // global object or to jquery.+ if (typeof module !== 'undefined' && module.exports) {+ module.exports = i18n;+ } else {+ if ($) {+ $.i18n = $.i18n || i18n;+ }++ root.i18n = root.i18n || i18n;+ }+ // defaults+ var o = {+ lng: undefined,+ load: 'all',+ preload: [],+ lowerCaseLng: false,+ returnObjectTrees: false,+ fallbackLng: 'dev',+ fallbackNS: [],+ detectLngQS: 'setLng',+ ns: 'translation',+ fallbackOnNull: true,+ fallbackToDefaultNS: false,+ nsseparator: ':',+ keyseparator: '.',+ selectorAttr: 'data-i18n',+ debug: false,++ resGetPath: 'locales/__lng__/__ns__.json',+ resPostPath: 'locales/add/__lng__/__ns__',++ getAsync: true,+ postAsync: true,++ resStore: undefined,+ useLocalStorage: false,+ localStorageExpirationTime: 7*24*60*60*1000,++ dynamicLoad: false,+ sendMissing: false,+ sendMissingTo: 'fallback', // current | all+ sendType: 'POST',++ interpolationPrefix: '__',+ interpolationSuffix: '__',+ reusePrefix: '$t(',+ reuseSuffix: ')',+ pluralSuffix: '_plural',+ pluralNotFound: ['plural_not_found', Math.random()].join(''),+ contextNotFound: ['context_not_found', Math.random()].join(''),+ escapeInterpolation: false,++ setJqueryExt: true,+ defaultValueFromContent: true,+ useDataAttrOptions: false,+ cookieExpirationTime: undefined,+ useCookie: true,+ cookieName: 'i18next',+ cookieDomain: undefined,++ postProcess: undefined,+ parseMissingKey: undefined,++ shortcutFunction: 'sprintf' // or: defaultValue+ };+ function _extend(target, source) {+ if (!source || typeof source === 'function') {+ return target;+ }++ for (var attr in source) { target[attr] = source[attr]; }+ return target;+ }++ function _each(object, callback, args) {+ var name, i = 0,+ length = object.length,+ isObj = length === undefined || typeof object === "function";++ if (args) {+ if (isObj) {+ 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 (isObj) {+ for (name in object) {+ if (callback.call(object[name], name, object[name]) === false) {+ break;+ }+ }+ } else {+ for ( ; i < length; ) {+ if (callback.call(object[i], i, object[i++]) === false) {+ break;+ }+ }+ }+ }++ return object;+ }++ var _entityMap = {+ "&": "&",+ "<": "<",+ ">": ">",+ '"': '"',+ "'": ''',+ "/": '/'+ };++ function _escape(data) {+ if (typeof data === 'string') {+ return data.replace(/[&<>"'\/]/g, function (s) {+ return _entityMap[s];+ });+ }else{+ return data;+ }+ }++ function _ajax(options) {++ // v0.5.0 of https://github.com/goloroden/http.js+ var getXhr = function (callback) {+ // Use the native XHR object if the browser supports it.+ if (window.XMLHttpRequest) {+ return callback(null, new XMLHttpRequest());+ } else if (window.ActiveXObject) {+ // In Internet Explorer check for ActiveX versions of the XHR object.+ try {+ return callback(null, new ActiveXObject("Msxml2.XMLHTTP"));+ } catch (e) {+ return callback(null, new ActiveXObject("Microsoft.XMLHTTP"));+ }+ }++ // If no XHR support was found, throw an error.+ return callback(new Error());+ };++ var encodeUsingUrlEncoding = function (data) {+ if(typeof data === 'string') {+ return data;+ }++ var result = [];+ for(var dataItem in data) {+ if(data.hasOwnProperty(dataItem)) {+ result.push(encodeURIComponent(dataItem) + '=' + encodeURIComponent(data[dataItem]));+ }+ }++ return result.join('&');+ };++ var utf8 = function (text) {+ text = text.replace(/\r\n/g, '\n');+ var result = '';++ for(var i = 0; i < text.length; i++) {+ var c = text.charCodeAt(i);++ if(c < 128) {+ result += String.fromCharCode(c);+ } else if((c > 127) && (c < 2048)) {+ result += String.fromCharCode((c >> 6) | 192);+ result += String.fromCharCode((c & 63) | 128);+ } else {+ result += String.fromCharCode((c >> 12) | 224);+ result += String.fromCharCode(((c >> 6) & 63) | 128);+ result += String.fromCharCode((c & 63) | 128);+ }+ }++ return result;+ };++ var base64 = function (text) {+ var keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';++ text = utf8(text);+ var result = '',+ chr1, chr2, chr3,+ enc1, enc2, enc3, enc4,+ i = 0;++ do {+ chr1 = text.charCodeAt(i++);+ chr2 = text.charCodeAt(i++);+ chr3 = text.charCodeAt(i++);++ enc1 = chr1 >> 2;+ enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);+ enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);+ enc4 = chr3 & 63;++ if(isNaN(chr2)) {+ enc3 = enc4 = 64;+ } else if(isNaN(chr3)) {+ enc4 = 64;+ }++ result +=+ keyStr.charAt(enc1) ++ keyStr.charAt(enc2) ++ keyStr.charAt(enc3) ++ keyStr.charAt(enc4);+ chr1 = chr2 = chr3 = '';+ enc1 = enc2 = enc3 = enc4 = '';+ } while(i < text.length);++ return result;+ };++ var mergeHeaders = function () {+ // Use the first header object as base.+ var result = arguments[0];++ // Iterate through the remaining header objects and add them.+ for(var i = 1; i < arguments.length; i++) {+ var currentHeaders = arguments[i];+ for(var header in currentHeaders) {+ if(currentHeaders.hasOwnProperty(header)) {+ result[header] = currentHeaders[header];+ }+ }+ }++ // Return the merged headers.+ return result;+ };++ var ajax = function (method, url, options, callback) {+ // Adjust parameters.+ if(typeof options === 'function') {+ callback = options;+ options = {};+ }++ // Set default parameter values.+ options.cache = options.cache || false;+ options.data = options.data || {};+ options.headers = options.headers || {};+ options.jsonp = options.jsonp || false;+ options.async = options.async === undefined ? true : options.async;++ // Merge the various header objects.+ var headers = mergeHeaders({+ 'accept': '*/*',+ 'content-type': 'application/x-www-form-urlencoded;charset=UTF-8'+ }, ajax.headers, options.headers);++ // Encode the data according to the content-type.+ var payload;+ if (headers['content-type'] === 'application/json') {+ payload = JSON.stringify(options.data);+ } else {+ payload = encodeUsingUrlEncoding(options.data);+ }++ // Specially prepare GET requests: Setup the query string, handle caching and make a JSONP call+ // if neccessary.+ if(method === 'GET') {+ // Setup the query string.+ var queryString = [];+ if(payload) {+ queryString.push(payload);+ payload = null;+ }++ // Handle caching.+ if(!options.cache) {+ queryString.push('_=' + (new Date()).getTime());+ }++ // If neccessary prepare the query string for a JSONP call.+ if(options.jsonp) {+ queryString.push('callback=' + options.jsonp);+ queryString.push('jsonp=' + options.jsonp);+ }++ // Merge the query string and attach it to the url.+ queryString = queryString.join('&');+ if (queryString.length > 1) {+ if (url.indexOf('?') > -1) {+ url += '&' + queryString;+ } else {+ url += '?' + queryString;+ }+ }++ // Make a JSONP call if neccessary.+ if(options.jsonp) {+ var head = document.getElementsByTagName('head')[0];+ var script = document.createElement('script');+ script.type = 'text/javascript';+ script.src = url;+ head.appendChild(script);+ return;+ }+ }++ // Since we got here, it is no JSONP request, so make a normal XHR request.+ getXhr(function (err, xhr) {+ if(err) return callback(err);++ // Open the request.+ xhr.open(method, url, options.async);++ // Set the request headers.+ for(var header in headers) {+ if(headers.hasOwnProperty(header)) {+ xhr.setRequestHeader(header, headers[header]);+ }+ }++ // Handle the request events.+ xhr.onreadystatechange = function () {+ if(xhr.readyState === 4) {+ var data = xhr.responseText || '';++ // If no callback is given, return.+ if(!callback) {+ return;+ }++ // Return an object that provides access to the data as text and JSON.+ callback(xhr.status, {+ text: function () {+ return data;+ },++ json: function () {+ return JSON.parse(data);+ }+ });+ }+ };++ // Actually send the XHR request.+ xhr.send(payload);+ });+ };++ // Define the external interface.+ var http = {+ authBasic: function (username, password) {+ ajax.headers['Authorization'] = 'Basic ' + base64(username + ':' + password);+ },++ connect: function (url, options, callback) {+ return ajax('CONNECT', url, options, callback);+ },++ del: function (url, options, callback) {+ return ajax('DELETE', url, options, callback);+ },++ get: function (url, options, callback) {+ return ajax('GET', url, options, callback);+ },++ head: function (url, options, callback) {+ return ajax('HEAD', url, options, callback);+ },++ headers: function (headers) {+ ajax.headers = headers || {};+ },++ isAllowed: function (url, verb, callback) {+ this.options(url, function (status, data) {+ callback(data.text().indexOf(verb) !== -1);+ });+ },++ options: function (url, options, callback) {+ return ajax('OPTIONS', url, options, callback);+ },++ patch: function (url, options, callback) {+ return ajax('PATCH', url, options, callback);+ },++ post: function (url, options, callback) {+ return ajax('POST', url, options, callback);+ },++ put: function (url, options, callback) {+ return ajax('PUT', url, options, callback);+ },++ trace: function (url, options, callback) {+ return ajax('TRACE', url, options, callback);+ }+ };+++ var methode = options.type ? options.type.toLowerCase() : 'get';++ http[methode](options.url, options, function (status, data) {+ if (status === 200) {+ options.success(data.json(), status, null);+ } else {+ options.error(data.text(), status, null);+ }+ });+ }++ var _cookie = {+ create: function(name,value,minutes,domain) {+ var expires;+ if (minutes) {+ var date = new Date();+ date.setTime(date.getTime()+(minutes*60*1000));+ expires = "; expires="+date.toGMTString();+ }+ else expires = "";+ domain = (domain)? "domain="+domain+";" : "";+ document.cookie = name+"="+value+expires+";"+domain+"path=/";+ },++ read: function(name) {+ var nameEQ = name + "=";+ var ca = document.cookie.split(';');+ for(var i=0;i < ca.length;i++) {+ var c = ca[i];+ while (c.charAt(0)==' ') c = c.substring(1,c.length);+ if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length,c.length);+ }+ return null;+ },++ remove: function(name) {+ this.create(name,"",-1);+ }+ };++ var cookie_noop = {+ create: function(name,value,minutes,domain) {},+ read: function(name) { return null; },+ remove: function(name) {}+ };++++ // move dependent functions to a container so that+ // they can be overriden easier in no jquery environment (node.js)+ var f = {+ extend: $ ? $.extend : _extend,+ each: $ ? $.each : _each,+ ajax: $ ? $.ajax : _ajax,+ cookie: typeof document !== 'undefined' ? _cookie : cookie_noop,+ detectLanguage: detectLanguage,+ escape: _escape,+ log: function(str) {+ if (o.debug && typeof console !== "undefined") console.log(str);+ },+ toLanguages: function(lng) {+ var languages = [];+ if (typeof lng === 'string' && lng.indexOf('-') > -1) {+ var parts = lng.split('-');++ lng = o.lowerCaseLng ?+ parts[0].toLowerCase() + '-' + parts[1].toLowerCase() :+ parts[0].toLowerCase() + '-' + parts[1].toUpperCase();++ if (o.load !== 'unspecific') languages.push(lng);+ if (o.load !== 'current') languages.push(parts[0]);+ } else {+ languages.push(lng);+ }++ if (languages.indexOf(o.fallbackLng) === -1 && o.fallbackLng) languages.push(o.fallbackLng);++ return languages;+ },+ regexEscape: function(str) {+ return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");+ }+ };+ function init(options, cb) {++ if (typeof options === 'function') {+ cb = options;+ options = {};+ }+ options = options || {};++ // override defaults with passed in options+ f.extend(o, options);+ delete o.fixLng; /* passed in each time */++ // create namespace object if namespace is passed in as string+ if (typeof o.ns == 'string') {+ o.ns = { namespaces: [o.ns], defaultNs: o.ns};+ }++ // fallback namespaces+ if (typeof o.fallbackNS == 'string') {+ o.fallbackNS = [o.fallbackNS];+ }++ // escape prefix/suffix+ o.interpolationPrefixEscaped = f.regexEscape(o.interpolationPrefix);+ o.interpolationSuffixEscaped = f.regexEscape(o.interpolationSuffix);++ if (!o.lng) o.lng = f.detectLanguage();+ if (o.lng) {+ // set cookie with lng set (as detectLanguage will set cookie on need)+ if (o.useCookie) f.cookie.create(o.cookieName, o.lng, o.cookieExpirationTime, o.cookieDomain);+ } else {+ o.lng = o.fallbackLng;+ if (o.useCookie) f.cookie.remove(o.cookieName);+ }++ languages = f.toLanguages(o.lng);+ currentLng = languages[0];+ f.log('currentLng set to: ' + currentLng);++ var lngTranslate = translate;+ if (options.fixLng) {+ lngTranslate = function(key, options) {+ options = options || {};+ options.lng = options.lng || lngTranslate.lng;+ return translate(key, options);+ };+ lngTranslate.lng = currentLng;+ }++ pluralExtensions.setCurrentLng(currentLng);++ // add JQuery extensions+ if ($ && o.setJqueryExt) addJqueryFunct();++ // jQuery deferred+ var deferred;+ if ($ && $.Deferred) {+ deferred = $.Deferred();+ }++ // return immidiatly if res are passed in+ if (o.resStore) {+ resStore = o.resStore;+ initialized = true;+ if (cb) cb(lngTranslate);+ if (deferred) deferred.resolve(lngTranslate);+ if (deferred) return deferred.promise();+ return;+ }++ // languages to load+ var lngsToLoad = f.toLanguages(o.lng);+ if (typeof o.preload === 'string') o.preload = [o.preload];+ for (var i = 0, l = o.preload.length; i < l; i++) {+ var pres = f.toLanguages(o.preload[i]);+ for (var y = 0, len = pres.length; y < len; y++) {+ if (lngsToLoad.indexOf(pres[y]) < 0) {+ lngsToLoad.push(pres[y]);+ }+ }+ }++ // else load them+ i18n.sync.load(lngsToLoad, o, function(err, store) {+ resStore = store;+ initialized = true;++ if (cb) cb(lngTranslate);+ if (deferred) deferred.resolve(lngTranslate);+ });++ if (deferred) return deferred.promise();+ }+ function preload(lngs, cb) {+ if (typeof lngs === 'string') lngs = [lngs];+ for (var i = 0, l = lngs.length; i < l; i++) {+ if (o.preload.indexOf(lngs[i]) < 0) {+ o.preload.push(lngs[i]);+ }+ }+ return init(cb);+ }++ function addResourceBundle(lng, ns, resources) {+ if (typeof ns !== 'string') {+ resources = ns;+ ns = o.ns.defaultNs;+ } else if (o.ns.namespaces.indexOf(ns) < 0) {+ o.ns.namespaces.push(ns);+ }++ resStore[lng] = resStore[lng] || {};+ resStore[lng][ns] = resStore[lng][ns] || {};++ f.extend(resStore[lng][ns], resources);+ }++ function setDefaultNamespace(ns) {+ o.ns.defaultNs = ns;+ }++ function loadNamespace(namespace, cb) {+ loadNamespaces([namespace], cb);+ }++ function loadNamespaces(namespaces, cb) {+ var opts = {+ dynamicLoad: o.dynamicLoad,+ resGetPath: o.resGetPath,+ getAsync: o.getAsync,+ customLoad: o.customLoad,+ ns: { namespaces: namespaces, defaultNs: ''} /* new namespaces to load */+ };++ // languages to load+ var lngsToLoad = f.toLanguages(o.lng);+ if (typeof o.preload === 'string') o.preload = [o.preload];+ for (var i = 0, l = o.preload.length; i < l; i++) {+ var pres = f.toLanguages(o.preload[i]);+ for (var y = 0, len = pres.length; y < len; y++) {+ if (lngsToLoad.indexOf(pres[y]) < 0) {+ lngsToLoad.push(pres[y]);+ }+ }+ }++ // check if we have to load+ var lngNeedLoad = [];+ for (var a = 0, lenA = lngsToLoad.length; a < lenA; a++) {+ var needLoad = false;+ var resSet = resStore[lngsToLoad[a]];+ if (resSet) {+ for (var b = 0, lenB = namespaces.length; b < lenB; b++) {+ if (!resSet[namespaces[b]]) needLoad = true;+ }+ } else {+ needLoad = true;+ }++ if (needLoad) lngNeedLoad.push(lngsToLoad[a]);+ }++ if (lngNeedLoad.length) {+ i18n.sync._fetch(lngNeedLoad, opts, function(err, store) {+ var todo = namespaces.length * lngNeedLoad.length;++ // load each file individual+ f.each(namespaces, function(nsIndex, nsValue) {++ // append namespace to namespace array+ if (o.ns.namespaces.indexOf(nsValue) < 0) {+ o.ns.namespaces.push(nsValue);+ }++ f.each(lngNeedLoad, function(lngIndex, lngValue) {+ resStore[lngValue] = resStore[lngValue] || {};+ resStore[lngValue][nsValue] = store[lngValue][nsValue];++ todo--; // wait for all done befor callback+ if (todo === 0 && cb) {+ if (o.useLocalStorage) i18n.sync._storeLocal(resStore);+ cb();+ }+ });+ });+ });+ } else {+ if (cb) cb();+ }+ }++ function setLng(lng, options, cb) {+ if (typeof options === 'function') {+ cb = options;+ options = {};+ }+ options.lng = lng;+ return init(options, cb);+ }++ function lng() {+ return currentLng;+ }+ function addJqueryFunct() {+ // $.t shortcut+ $.t = $.t || translate;++ function parse(ele, key, options) {+ if (key.length === 0) return;++ var attr = 'text';++ if (key.indexOf('[') === 0) {+ var parts = key.split(']');+ key = parts[1];+ attr = parts[0].substr(1, parts[0].length-1);+ }++ if (key.indexOf(';') === key.length-1) {+ key = key.substr(0, key.length-2);+ }++ var optionsToUse;+ if (attr === 'html') {+ optionsToUse = o.defaultValueFromContent ? $.extend({ defaultValue: ele.html() }, options) : options;+ ele.html($.t(key, optionsToUse));+ }+ else if (attr === 'text') {+ optionsToUse = o.defaultValueFromContent ? $.extend({ defaultValue: ele.text() }, options) : options;+ ele.text($.t(key, optionsToUse));+ } else {+ optionsToUse = o.defaultValueFromContent ? $.extend({ defaultValue: ele.attr(attr) }, options) : options;+ ele.attr(attr, $.t(key, optionsToUse));+ }+ }++ function localize(ele, options) {+ var key = ele.attr(o.selectorAttr);+ if (!key && typeof key !== 'undefined' && key !== false) key = ele.text() || ele.val();+ if (!key) return;++ var target = ele+ , targetSelector = ele.data("i18n-target");+ if (targetSelector) {+ target = ele.find(targetSelector) || ele;+ }++ if (!options && o.useDataAttrOptions === true) {+ options = ele.data("i18n-options");+ }+ options = options || {};++ if (key.indexOf(';') >= 0) {+ var keys = key.split(';');++ $.each(keys, function(m, k) {+ if (k !== '') parse(target, k, options);+ });++ } else {+ parse(target, key, options);+ }++ if (o.useDataAttrOptions === true) ele.data("i18n-options", options);+ }++ // fn+ $.fn.i18n = function (options) {+ return this.each(function() {+ // localize element itself+ localize($(this), options);++ // localize childs+ var elements = $(this).find('[' + o.selectorAttr + ']');+ elements.each(function() {+ localize($(this), options);+ });+ });+ };+ }+ function applyReplacement(str, replacementHash, nestedKey, options) {+ if (!str) return str;++ options = options || replacementHash; // first call uses replacement hash combined with options+ if (str.indexOf(options.interpolationPrefix || o.interpolationPrefix) < 0) return str;++ var prefix = options.interpolationPrefix ? f.regexEscape(options.interpolationPrefix) : o.interpolationPrefixEscaped+ , suffix = options.interpolationSuffix ? f.regexEscape(options.interpolationSuffix) : o.interpolationSuffixEscaped+ , unEscapingSuffix = 'HTML'+suffix;++ f.each(replacementHash, function(key, value) {+ var nextKey = nestedKey ? nestedKey + o.keyseparator + key : key;+ if (typeof value === 'object' && value !== null) {+ str = applyReplacement(str, value, nextKey, options);+ } else {+ if (options.escapeInterpolation || o.escapeInterpolation) {+ str = str.replace(new RegExp([prefix, nextKey, unEscapingSuffix].join(''), 'g'), value);+ str = str.replace(new RegExp([prefix, nextKey, suffix].join(''), 'g'), f.escape(value));+ } else {+ str = str.replace(new RegExp([prefix, nextKey, suffix].join(''), 'g'), value);+ }+ // str = options.escapeInterpolation;+ }+ });+ return str;+ }++ // append it to functions+ f.applyReplacement = applyReplacement;++ function applyReuse(translated, options) {+ var comma = ',';+ var options_open = '{';+ var options_close = '}';++ var opts = f.extend({}, options);+ delete opts.postProcess;++ while (translated.indexOf(o.reusePrefix) != -1) {+ replacementCounter++;+ if (replacementCounter > o.maxRecursion) { break; } // safety net for too much recursion+ var index_of_opening = translated.lastIndexOf(o.reusePrefix);+ var index_of_end_of_closing = translated.indexOf(o.reuseSuffix, index_of_opening) + o.reuseSuffix.length;+ var token = translated.substring(index_of_opening, index_of_end_of_closing);+ var token_without_symbols = token.replace(o.reusePrefix, '').replace(o.reuseSuffix, '');+++ if (token_without_symbols.indexOf(comma) != -1) {+ var index_of_token_end_of_closing = token_without_symbols.indexOf(comma);+ if (token_without_symbols.indexOf(options_open, index_of_token_end_of_closing) != -1 && token_without_symbols.indexOf(options_close, index_of_token_end_of_closing) != -1) {+ var index_of_opts_opening = token_without_symbols.indexOf(options_open, index_of_token_end_of_closing);+ var index_of_opts_end_of_closing = token_without_symbols.indexOf(options_close, index_of_opts_opening) + options_close.length;+ try {+ opts = f.extend(opts, JSON.parse(token_without_symbols.substring(index_of_opts_opening, index_of_opts_end_of_closing)));+ token_without_symbols = token_without_symbols.substring(0, index_of_token_end_of_closing);+ } catch (e) {+ }+ }+ }++ var translated_token = _translate(token_without_symbols, opts);+ translated = translated.replace(token, translated_token);+ }+ return translated;+ }++ function hasContext(options) {+ return (options.context && typeof options.context == 'string');+ }++ function needsPlural(options) {+ return (options.count !== undefined && typeof options.count != 'string' && options.count !== 1);+ }++ function exists(key, options) {+ options = options || {};++ var notFound = _getDefaultValue(key, options)+ , found = _find(key, options);++ return found !== undefined || found === notFound;+ }++ function translate(key, options) {+ if (!initialized) {+ f.log('i18next not finished initialization. you might have called t function before loading resources finished.')+ return options.defaultValue || '';+ };+ replacementCounter = 0;+ return _translate.apply(null, arguments);+ }++ function _getDefaultValue(key, options) {+ return (options.defaultValue !== undefined) ? options.defaultValue : key;+ }++ function _injectSprintfProcessor() {++ var values = [];++ // mh: build array from second argument onwards+ for (var i = 1; i < arguments.length; i++) {+ values.push(arguments[i]);+ }++ return {+ postProcess: 'sprintf',+ sprintf: values+ };+ }++ function _translate(potentialKeys, options) {+ if (typeof options == 'string') {+ if (o.shortcutFunction === 'sprintf') {+ // mh: gettext like sprintf syntax found, automatically create sprintf processor+ options = _injectSprintfProcessor.apply(null, arguments);+ } else if (o.shortcutFunction === 'defaultValue') {+ options = {+ defaultValue: options+ }+ }+ } else {+ options = options || {};+ }++ if (typeof potentialKeys == 'string') {+ potentialKeys = [potentialKeys];+ }++ var key = null;++ for (var i = 0; i < potentialKeys.length; i++) {+ key = potentialKeys[i];+ if (exists(key)) {+ break;+ }+ }++ var notFound = _getDefaultValue(key, options)+ , found = _find(key, options)+ , lngs = options.lng ? f.toLanguages(options.lng) : languages+ , ns = options.ns || o.ns.defaultNs+ , parts;++ // split ns and key+ if (key.indexOf(o.nsseparator) > -1) {+ parts = key.split(o.nsseparator);+ ns = parts[0];+ key = parts[1];+ }++ if (found === undefined && o.sendMissing) {+ if (options.lng) {+ sync.postMissing(lngs[0], ns, key, notFound, lngs);+ } else {+ sync.postMissing(o.lng, ns, key, notFound, lngs);+ }+ }++ var postProcessor = options.postProcess || o.postProcess;+ if (found !== undefined && postProcessor) {+ if (postProcessors[postProcessor]) {+ found = postProcessors[postProcessor](found, key, options);+ }+ }++ // process notFound if function exists+ var splitNotFound = notFound;+ if (notFound.indexOf(o.nsseparator) > -1) {+ parts = notFound.split(o.nsseparator);+ splitNotFound = parts[1];+ }+ if (splitNotFound === key && o.parseMissingKey) {+ notFound = o.parseMissingKey(notFound);+ }++ if (found === undefined) {+ notFound = applyReplacement(notFound, options);+ notFound = applyReuse(notFound, options);++ if (postProcessor && postProcessors[postProcessor]) {+ var val = _getDefaultValue(key, options);+ found = postProcessors[postProcessor](val, key, options);+ }+ }++ return (found !== undefined) ? found : notFound;+ }++ function _find(key, options){+ options = options || {};++ var optionWithoutCount, translated+ , notFound = _getDefaultValue(key, options)+ , lngs = languages;++ if (!resStore) { return notFound; } // no resStore to translate from++ if (options.lng) {+ lngs = f.toLanguages(options.lng);++ if (!resStore[lngs[0]]) {+ var oldAsync = o.getAsync;+ o.getAsync = false;++ i18n.sync.load(lngs, o, function(err, store) {+ f.extend(resStore, store);+ o.getAsync = oldAsync;+ });+ }+ }++ var ns = options.ns || o.ns.defaultNs;+ if (key.indexOf(o.nsseparator) > -1) {+ var parts = key.split(o.nsseparator);+ ns = parts[0];+ key = parts[1];+ }++ if (hasContext(options)) {+ optionWithoutCount = f.extend({}, options);+ delete optionWithoutCount.context;+ optionWithoutCount.defaultValue = o.contextNotFound;++ var contextKey = ns + o.nsseparator + key + '_' + options.context;++ translated = translate(contextKey, optionWithoutCount);+ if (translated != o.contextNotFound) {+ return applyReplacement(translated, { context: options.context }); // apply replacement for context only+ } // else continue translation with original/nonContext key+ }++ if (needsPlural(options)) {+ optionWithoutCount = f.extend({}, options);+ delete optionWithoutCount.count;+ optionWithoutCount.defaultValue = o.pluralNotFound;++ var pluralKey = ns + o.nsseparator + key + o.pluralSuffix;+ var pluralExtension = pluralExtensions.get(lngs[0], options.count);+ if (pluralExtension >= 0) {+ pluralKey = pluralKey + '_' + pluralExtension;+ } else if (pluralExtension === 1) {+ pluralKey = ns + o.nsseparator + key; // singular+ }++ translated = translate(pluralKey, optionWithoutCount);+ if (translated != o.pluralNotFound) {+ return applyReplacement(translated, {+ count: options.count,+ interpolationPrefix: options.interpolationPrefix,+ interpolationSuffix: options.interpolationSuffix+ }); // apply replacement for count only+ } // else continue translation with original/singular key+ }++ var found;+ var keys = key.split(o.keyseparator);+ for (var i = 0, len = lngs.length; i < len; i++ ) {+ if (found !== undefined) break;++ var l = lngs[i];++ var x = 0;+ var value = resStore[l] && resStore[l][ns];+ while (keys[x]) {+ value = value && value[keys[x]];+ x++;+ }+ if (value !== undefined) {+ if (typeof value === 'string') {+ value = applyReplacement(value, options);+ value = applyReuse(value, options);+ } else if (Object.prototype.toString.apply(value) === '[object Array]' && !o.returnObjectTrees && !options.returnObjectTrees) {+ value = value.join('\n');+ value = applyReplacement(value, options);+ value = applyReuse(value, options);+ } else if (value === null && o.fallbackOnNull === true) {+ value = undefined;+ } else if (value !== null) {+ if (!o.returnObjectTrees && !options.returnObjectTrees) {+ value = 'key \'' + ns + ':' + key + ' (' + l + ')\' ' ++ 'returned a object instead of string.';+ f.log(value);+ } else if (typeof value !== 'number') {+ var copy = {}; // apply child translation on a copy+ f.each(value, function(m) {+ copy[m] = _translate(ns + o.nsseparator + key + o.keyseparator + m, options);+ });+ value = copy;+ }+ }+ found = value;+ }+ }++ if (found === undefined && !options.isFallbackLookup && (o.fallbackToDefaultNS === true || (o.fallbackNS && o.fallbackNS.length > 0))) {+ // set flag for fallback lookup - avoid recursion+ options.isFallbackLookup = true;++ if (o.fallbackNS.length) {++ for (var y = 0, lenY = o.fallbackNS.length; y < lenY; y++) {+ found = _find(o.fallbackNS[y] + o.nsseparator + key, options);++ if (found) {+ /* compare value without namespace */+ var foundValue = found.indexOf(o.nsseparator) > -1 ? found.split(o.nsseparator)[1] : found+ , notFoundValue = notFound.indexOf(o.nsseparator) > -1 ? notFound.split(o.nsseparator)[1] : notFound;++ if (foundValue !== notFoundValue) break;+ }+ }+ } else {+ found = _find(key, options); // fallback to default NS+ }+ }++ return found;+ }+ function detectLanguage() {+ var detectedLng;++ // get from qs+ var qsParm = [];+ if (typeof window !== 'undefined') {+ (function() {+ var query = window.location.search.substring(1);+ var parms = query.split('&');+ for (var i=0; i<parms.length; i++) {+ var pos = parms[i].indexOf('=');+ if (pos > 0) {+ var key = parms[i].substring(0,pos);+ var val = parms[i].substring(pos+1);+ qsParm[key] = val;+ }+ }+ })();+ if (qsParm[o.detectLngQS]) {+ detectedLng = qsParm[o.detectLngQS];+ }+ }++ // get from cookie+ if (!detectedLng && typeof document !== 'undefined' && o.useCookie ) {+ var c = f.cookie.read(o.cookieName);+ if (c) detectedLng = c;+ }++ // get from navigator+ if (!detectedLng && typeof navigator !== 'undefined') {+ detectedLng = (navigator.language) ? navigator.language : navigator.userLanguage;+ }++ return detectedLng;+ }+ var sync = {++ load: function(lngs, options, cb) {+ if (options.useLocalStorage) {+ sync._loadLocal(lngs, options, function(err, store) {+ var missingLngs = [];+ for (var i = 0, len = lngs.length; i < len; i++) {+ if (!store[lngs[i]]) missingLngs.push(lngs[i]);+ }++ if (missingLngs.length > 0) {+ sync._fetch(missingLngs, options, function(err, fetched) {+ f.extend(store, fetched);+ sync._storeLocal(fetched);++ cb(null, store);+ });+ } else {+ cb(null, store);+ }+ });+ } else {+ sync._fetch(lngs, options, function(err, store){+ cb(null, store);+ });+ }+ },++ _loadLocal: function(lngs, options, cb) {+ var store = {}+ , nowMS = new Date().getTime();++ if(window.localStorage) {++ var todo = lngs.length;++ f.each(lngs, function(key, lng) {+ var local = window.localStorage.getItem('res_' + lng);++ if (local) {+ local = JSON.parse(local);++ if (local.i18nStamp && local.i18nStamp + options.localStorageExpirationTime > nowMS) {+ store[lng] = local;+ }+ }++ todo--; // wait for all done befor callback+ if (todo === 0) cb(null, store);+ });+ }+ },++ _storeLocal: function(store) {+ if(window.localStorage) {+ for (var m in store) {+ store[m].i18nStamp = new Date().getTime();+ window.localStorage.setItem('res_' + m, JSON.stringify(store[m]));+ }+ }+ return;+ },++ _fetch: function(lngs, options, cb) {+ var ns = options.ns+ , store = {};++ if (!options.dynamicLoad) {+ var todo = ns.namespaces.length * lngs.length+ , errors;++ // load each file individual+ f.each(ns.namespaces, function(nsIndex, nsValue) {+ f.each(lngs, function(lngIndex, lngValue) {++ // Call this once our translation has returned.+ var loadComplete = function(err, data) {+ if (err) {+ errors = errors || [];+ errors.push(err);+ }+ store[lngValue] = store[lngValue] || {};+ store[lngValue][nsValue] = data;++ todo--; // wait for all done befor callback+ if (todo === 0) cb(errors, store);+ };++ if(typeof options.customLoad == 'function'){+ // Use the specified custom callback.+ options.customLoad(lngValue, nsValue, options, loadComplete);+ } else {+ //~ // Use our inbuilt sync.+ sync._fetchOne(lngValue, nsValue, options, loadComplete);+ }+ });+ });+ } else {+ // Call this once our translation has returned.+ var loadComplete = function(err, data) {+ cb(null, data);+ };++ if(typeof options.customLoad == 'function'){+ // Use the specified custom callback.+ options.customLoad(lngs, ns.namespaces, options, loadComplete);+ } else {+ var url = applyReplacement(options.resGetPath, { lng: lngs.join('+'), ns: ns.namespaces.join('+') });+ // load all needed stuff once+ f.ajax({+ url: url,+ success: function(data, status, xhr) {+ f.log('loaded: ' + url);+ loadComplete(null, data);+ },+ error : function(xhr, status, error) {+ f.log('failed loading: ' + url);+ loadComplete('failed loading resource.json error: ' + error);+ },+ dataType: "json",+ async : options.getAsync+ });+ }+ }+ },++ _fetchOne: function(lng, ns, options, done) {+ var url = applyReplacement(options.resGetPath, { lng: lng, ns: ns });+ f.ajax({+ url: url,+ success: function(data, status, xhr) {+ f.log('loaded: ' + url);+ done(null, data);+ },+ error : function(xhr, status, error) {+ f.log('failed loading: ' + url);+ done(error, {});+ },+ dataType: "json",+ async : options.getAsync+ });+ },++ postMissing: function(lng, ns, key, defaultValue, lngs) {+ var payload = {};+ payload[key] = defaultValue;++ var urls = [];++ if (o.sendMissingTo === 'fallback' && o.fallbackLng !== false) {+ urls.push({lng: o.fallbackLng, url: applyReplacement(o.resPostPath, { lng: o.fallbackLng, ns: ns })});+ } else if (o.sendMissingTo === 'current' || (o.sendMissingTo === 'fallback' && o.fallbackLng === false) ) {+ urls.push({lng: lng, url: applyReplacement(o.resPostPath, { lng: lng, ns: ns })});+ } else if (o.sendMissingTo === 'all') {+ for (var i = 0, l = lngs.length; i < l; i++) {+ urls.push({lng: lngs[i], url: applyReplacement(o.resPostPath, { lng: lngs[i], ns: ns })});+ }+ }++ for (var y = 0, len = urls.length; y < len; y++) {+ var item = urls[y];+ f.ajax({+ url: item.url,+ type: o.sendType,+ data: payload,+ success: function(data, status, xhr) {+ f.log('posted missing key \'' + key + '\' to: ' + item.url);++ // add key to resStore+ var keys = key.split('.');+ var x = 0;+ var value = resStore[item.lng][ns];+ while (keys[x]) {+ if (x === keys.length - 1) {+ value = value[keys[x]] = defaultValue;+ } else {+ value = value[keys[x]] = value[keys[x]] || {};+ }+ x++;+ }+ },+ error : function(xhr, status, error) {+ f.log('failed posting missing key \'' + key + '\' to: ' + item.url);+ },+ dataType: "json",+ async : o.postAsync+ });+ }+ }+ };+ // definition http://translate.sourceforge.net/wiki/l10n/pluralforms+ var pluralExtensions = {++ rules: {+ "ach": {+ "name": "Acholi",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "af": {+ "name": "Afrikaans",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ak": {+ "name": "Akan",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "am": {+ "name": "Amharic",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "an": {+ "name": "Aragonese",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ar": {+ "name": "Arabic",+ "numbers": [+ 0,+ 1,+ 2,+ 3,+ 11,+ 100+ ],+ "plurals": function(n) { return Number(n===0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 ? 4 : 5); }+ },+ "arn": {+ "name": "Mapudungun",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "ast": {+ "name": "Asturian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ay": {+ "name": "Aymar\u00e1",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "az": {+ "name": "Azerbaijani",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "be": {+ "name": "Belarusian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "bg": {+ "name": "Bulgarian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "bn": {+ "name": "Bengali",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "bo": {+ "name": "Tibetan",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "br": {+ "name": "Breton",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "bs": {+ "name": "Bosnian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "ca": {+ "name": "Catalan",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "cgg": {+ "name": "Chiga",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "cs": {+ "name": "Czech",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2); }+ },+ "csb": {+ "name": "Kashubian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "cy": {+ "name": "Welsh",+ "numbers": [+ 1,+ 2,+ 3,+ 8+ ],+ "plurals": function(n) { return Number((n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3); }+ },+ "da": {+ "name": "Danish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "de": {+ "name": "German",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "dz": {+ "name": "Dzongkha",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "el": {+ "name": "Greek",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "en": {+ "name": "English",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "eo": {+ "name": "Esperanto",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "es": {+ "name": "Spanish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "es_ar": {+ "name": "Argentinean Spanish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "et": {+ "name": "Estonian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "eu": {+ "name": "Basque",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "fa": {+ "name": "Persian",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "fi": {+ "name": "Finnish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "fil": {+ "name": "Filipino",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "fo": {+ "name": "Faroese",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "fr": {+ "name": "French",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "fur": {+ "name": "Friulian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "fy": {+ "name": "Frisian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ga": {+ "name": "Irish",+ "numbers": [+ 1,+ 2,+ 3,+ 7,+ 11+ ],+ "plurals": function(n) { return Number(n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4) ;}+ },+ "gd": {+ "name": "Scottish Gaelic",+ "numbers": [+ 1,+ 2,+ 3,+ 20+ ],+ "plurals": function(n) { return Number((n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3); }+ },+ "gl": {+ "name": "Galician",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "gu": {+ "name": "Gujarati",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "gun": {+ "name": "Gun",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "ha": {+ "name": "Hausa",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "he": {+ "name": "Hebrew",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "hi": {+ "name": "Hindi",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "hr": {+ "name": "Croatian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "hu": {+ "name": "Hungarian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "hy": {+ "name": "Armenian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ia": {+ "name": "Interlingua",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "id": {+ "name": "Indonesian",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "is": {+ "name": "Icelandic",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n%10!=1 || n%100==11); }+ },+ "it": {+ "name": "Italian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ja": {+ "name": "Japanese",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "jbo": {+ "name": "Lojban",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "jv": {+ "name": "Javanese",+ "numbers": [+ 0,+ 1+ ],+ "plurals": function(n) { return Number(n !== 0); }+ },+ "ka": {+ "name": "Georgian",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "kk": {+ "name": "Kazakh",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "km": {+ "name": "Khmer",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "kn": {+ "name": "Kannada",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ko": {+ "name": "Korean",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "ku": {+ "name": "Kurdish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "kw": {+ "name": "Cornish",+ "numbers": [+ 1,+ 2,+ 3,+ 4+ ],+ "plurals": function(n) { return Number((n==1) ? 0 : (n==2) ? 1 : (n == 3) ? 2 : 3); }+ },+ "ky": {+ "name": "Kyrgyz",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "lb": {+ "name": "Letzeburgesch",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ln": {+ "name": "Lingala",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "lo": {+ "name": "Lao",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "lt": {+ "name": "Lithuanian",+ "numbers": [+ 1,+ 2,+ 10+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "lv": {+ "name": "Latvian",+ "numbers": [+ 0,+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n !== 0 ? 1 : 2); }+ },+ "mai": {+ "name": "Maithili",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "mfe": {+ "name": "Mauritian Creole",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "mg": {+ "name": "Malagasy",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "mi": {+ "name": "Maori",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "mk": {+ "name": "Macedonian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n==1 || n%10==1 ? 0 : 1); }+ },+ "ml": {+ "name": "Malayalam",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "mn": {+ "name": "Mongolian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "mnk": {+ "name": "Mandinka",+ "numbers": [+ 0,+ 1,+ 2+ ],+ "plurals": function(n) { return Number(0 ? 0 : n==1 ? 1 : 2); }+ },+ "mr": {+ "name": "Marathi",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ms": {+ "name": "Malay",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "mt": {+ "name": "Maltese",+ "numbers": [+ 1,+ 2,+ 11,+ 20+ ],+ "plurals": function(n) { return Number(n==1 ? 0 : n===0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3); }+ },+ "nah": {+ "name": "Nahuatl",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "nap": {+ "name": "Neapolitan",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "nb": {+ "name": "Norwegian Bokmal",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ne": {+ "name": "Nepali",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "nl": {+ "name": "Dutch",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "nn": {+ "name": "Norwegian Nynorsk",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "no": {+ "name": "Norwegian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "nso": {+ "name": "Northern Sotho",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "oc": {+ "name": "Occitan",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "or": {+ "name": "Oriya",+ "numbers": [+ 2,+ 1+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "pa": {+ "name": "Punjabi",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "pap": {+ "name": "Papiamento",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "pl": {+ "name": "Polish",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "pms": {+ "name": "Piemontese",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ps": {+ "name": "Pashto",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "pt": {+ "name": "Portuguese",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "pt_br": {+ "name": "Brazilian Portuguese",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "rm": {+ "name": "Romansh",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ro": {+ "name": "Romanian",+ "numbers": [+ 1,+ 2,+ 20+ ],+ "plurals": function(n) { return Number(n==1 ? 0 : (n===0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2); }+ },+ "ru": {+ "name": "Russian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "sah": {+ "name": "Yakut",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "sco": {+ "name": "Scots",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "se": {+ "name": "Northern Sami",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "si": {+ "name": "Sinhala",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "sk": {+ "name": "Slovak",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2); }+ },+ "sl": {+ "name": "Slovenian",+ "numbers": [+ 5,+ 1,+ 2,+ 3+ ],+ "plurals": function(n) { return Number(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0); }+ },+ "so": {+ "name": "Somali",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "son": {+ "name": "Songhay",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "sq": {+ "name": "Albanian",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "sr": {+ "name": "Serbian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "su": {+ "name": "Sundanese",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "sv": {+ "name": "Swedish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "sw": {+ "name": "Swahili",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "ta": {+ "name": "Tamil",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "te": {+ "name": "Telugu",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "tg": {+ "name": "Tajik",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "th": {+ "name": "Thai",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "ti": {+ "name": "Tigrinya",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "tk": {+ "name": "Turkmen",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "tr": {+ "name": "Turkish",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "tt": {+ "name": "Tatar",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "ug": {+ "name": "Uyghur",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "uk": {+ "name": "Ukrainian",+ "numbers": [+ 1,+ 2,+ 5+ ],+ "plurals": function(n) { return Number(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); }+ },+ "ur": {+ "name": "Urdu",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "uz": {+ "name": "Uzbek",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "vi": {+ "name": "Vietnamese",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "wa": {+ "name": "Walloon",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n > 1); }+ },+ "wo": {+ "name": "Wolof",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ },+ "yo": {+ "name": "Yoruba",+ "numbers": [+ 1,+ 2+ ],+ "plurals": function(n) { return Number(n != 1); }+ },+ "zh": {+ "name": "Chinese",+ "numbers": [+ 1+ ],+ "plurals": function(n) { return 0; }+ }+ },++ // for demonstration only sl and ar is added but you can add your own pluralExtensions+ addRule: function(lng, obj) {+ pluralExtensions.rules[lng] = obj;+ },++ setCurrentLng: function(lng) {+ if (!pluralExtensions.currentRule || pluralExtensions.currentRule.lng !== lng) {+ var parts = lng.split('-');++ pluralExtensions.currentRule = {+ lng: lng,+ rule: pluralExtensions.rules[parts[0]]+ };+ }+ },++ get: function(lng, count) {+ var parts = lng.split('-');++ function getResult(l, c) {+ var ext;+ if (pluralExtensions.currentRule && pluralExtensions.currentRule.lng === lng) {+ ext = pluralExtensions.currentRule.rule;+ } else {+ ext = pluralExtensions.rules[l];+ }+ if (ext) {+ var i = ext.plurals(c);+ var number = ext.numbers[i];+ if (ext.numbers.length === 2 && ext.numbers[0] === 1) {+ if (number === 2) {+ number = -1; // regular plural+ } else if (number === 1) {+ number = 1; // singular+ }+ }//console.log(count + '-' + number);+ return number;+ } else {+ return c === 1 ? '1' : '-1';+ }+ }++ return getResult(parts[0], count);+ }++ };+ var postProcessors = {};+ var addPostProcessor = function(name, fc) {+ postProcessors[name] = fc;+ };+ // sprintf support+ var sprintf = (function() {+ function get_type(variable) {+ return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();+ }+ function str_repeat(input, multiplier) {+ for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */}+ return output.join('');+ }++ var str_format = function() {+ if (!str_format.cache.hasOwnProperty(arguments[0])) {+ str_format.cache[arguments[0]] = str_format.parse(arguments[0]);+ }+ return str_format.format.call(null, str_format.cache[arguments[0]], arguments);+ };++ str_format.format = function(parse_tree, argv) {+ var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length;+ for (i = 0; i < tree_length; i++) {+ node_type = get_type(parse_tree[i]);+ if (node_type === 'string') {+ output.push(parse_tree[i]);+ }+ else if (node_type === 'array') {+ match = parse_tree[i]; // convenience purposes only+ if (match[2]) { // keyword argument+ arg = argv[cursor];+ for (k = 0; k < match[2].length; k++) {+ if (!arg.hasOwnProperty(match[2][k])) {+ throw(sprintf('[sprintf] property "%s" does not exist', match[2][k]));+ }+ arg = arg[match[2][k]];+ }+ }+ else if (match[1]) { // positional argument (explicit)+ arg = argv[match[1]];+ }+ else { // positional argument (implicit)+ arg = argv[cursor++];+ }++ if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) {+ throw(sprintf('[sprintf] expecting number but found %s', get_type(arg)));+ }+ switch (match[8]) {+ case 'b': arg = arg.toString(2); break;+ case 'c': arg = String.fromCharCode(arg); break;+ case 'd': arg = parseInt(arg, 10); break;+ case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break;+ case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break;+ case 'o': arg = arg.toString(8); break;+ case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break;+ case 'u': arg = Math.abs(arg); break;+ case 'x': arg = arg.toString(16); break;+ case 'X': arg = arg.toString(16).toUpperCase(); break;+ }+ arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg);+ pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' ';+ pad_length = match[6] - String(arg).length;+ pad = match[6] ? str_repeat(pad_character, pad_length) : '';+ output.push(match[5] ? arg + pad : pad + arg);+ }+ }+ return output.join('');+ };++ str_format.cache = {};++ str_format.parse = function(fmt) {+ var _fmt = fmt, match = [], parse_tree = [], arg_names = 0;+ while (_fmt) {+ if ((match = /^[^\x25]+/.exec(_fmt)) !== null) {+ parse_tree.push(match[0]);+ }+ else if ((match = /^\x25{2}/.exec(_fmt)) !== null) {+ parse_tree.push('%');+ }+ else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {+ if (match[2]) {+ arg_names |= 1;+ var field_list = [], replacement_field = match[2], field_match = [];+ if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {+ field_list.push(field_match[1]);+ while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {+ if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {+ field_list.push(field_match[1]);+ }+ else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {+ field_list.push(field_match[1]);+ }+ else {+ throw('[sprintf] huh?');+ }+ }+ }+ else {+ throw('[sprintf] huh?');+ }+ match[2] = field_list;+ }+ else {+ arg_names |= 2;+ }+ if (arg_names === 3) {+ throw('[sprintf] mixing positional and named placeholders is not (yet) supported');+ }+ parse_tree.push(match);+ }+ else {+ throw('[sprintf] huh?');+ }+ _fmt = _fmt.substring(match[0].length);+ }+ return parse_tree;+ };++ return str_format;+ })();++ var vsprintf = function(fmt, argv) {+ argv.unshift(fmt);+ return sprintf.apply(null, argv);+ };++ addPostProcessor("sprintf", function(val, key, opts) {+ if (!opts.sprintf) return val;++ if (Object.prototype.toString.apply(opts.sprintf) === '[object Array]') {+ return vsprintf(val, opts.sprintf);+ } else if (typeof opts.sprintf === 'object') {+ return sprintf(val, opts.sprintf);+ }++ return val;+ });+ // public api interface+ i18n.init = init;+ i18n.setLng = setLng;+ i18n.preload = preload;+ i18n.addResourceBundle = addResourceBundle;+ i18n.loadNamespace = loadNamespace;+ i18n.loadNamespaces = loadNamespaces;+ i18n.setDefaultNamespace = setDefaultNamespace;+ i18n.t = translate;+ i18n.translate = translate;+ i18n.exists = exists;+ i18n.detectLanguage = f.detectLanguage;+ i18n.pluralExtensions = pluralExtensions;+ i18n.sync = sync;+ i18n.functions = f;+ i18n.lng = lng;+ i18n.addPostProcessor = addPostProcessor;+ i18n.options = o;++})();\ No newline at end of filediff --git a/data/devlibs/jquery-ui-latest.js b/data/devlibs/jquery-ui-latest.jsnew file mode 100644index 000000000..89ce40997--- /dev/null+++ b/data/devlibs/jquery-ui-latest.js@@ -0,0 +1,14879 @@+/*! jQuery UI - v1.9.2 - 2012-11-23+* http://jqueryui.com+* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.effect.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.progressbar.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.slider.js, jquery.ui.sortable.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js+* Copyright (c) 2012 jQuery Foundation and other contributors Licensed MIT */++(function( $, undefined ) {++var uuid = 0,+ runiqueId = /^ui-id-\d+$/;++// prevent duplicate loading+// this is only a problem because we proxy existing functions+// and we don't want to double proxy them+$.ui = $.ui || {};+if ( $.ui.version ) {+ return;+}++$.extend( $.ui, {+ version: "1.9.2",++ keyCode: {+ BACKSPACE: 8,+ COMMA: 188,+ DELETE: 46,+ DOWN: 40,+ END: 35,+ ENTER: 13,+ ESCAPE: 27,+ HOME: 36,+ LEFT: 37,+ 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,+ SPACE: 32,+ TAB: 9,+ UP: 38+ }+});++// plugins+$.fn.extend({+ _focus: $.fn.focus,+ focus: function( delay, fn ) {+ return typeof delay === "number" ?+ this.each(function() {+ var elem = this;+ setTimeout(function() {+ $( elem ).focus();+ if ( fn ) {+ fn.call( elem );+ }+ }, delay );+ }) :+ this._focus.apply( this, arguments );+ },++ scrollParent: function() {+ var scrollParent;+ if (($.ui.ie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {+ scrollParent = this.parents().filter(function() {+ return (/(relative|absolute|fixed)/).test($.css(this,'position')) && (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));+ }).eq(0);+ } else {+ scrollParent = this.parents().filter(function() {+ return (/(auto|scroll)/).test($.css(this,'overflow')+$.css(this,'overflow-y')+$.css(this,'overflow-x'));+ }).eq(0);+ }++ return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;+ },++ zIndex: function( zIndex ) {+ if ( zIndex !== undefined ) {+ return this.css( "zIndex", zIndex );+ }++ if ( this.length ) {+ var elem = $( this[ 0 ] ), position, value;+ while ( elem.length && elem[ 0 ] !== document ) {+ // Ignore z-index if position is set to a value where z-index is ignored by the browser+ // This makes behavior of this function consistent across browsers+ // WebKit always returns auto if the element is positioned+ position = elem.css( "position" );+ if ( position === "absolute" || position === "relative" || position === "fixed" ) {+ // IE returns 0 when zIndex is not specified+ // other browsers return a string+ // we ignore the case of nested elements with an explicit value of 0+ // <div style="z-index: -10;"><div style="z-index: 0;"></div></div>+ value = parseInt( elem.css( "zIndex" ), 10 );+ if ( !isNaN( value ) && value !== 0 ) {+ return value;+ }+ }+ elem = elem.parent();+ }+ }++ return 0;+ },++ uniqueId: function() {+ return this.each(function() {+ if ( !this.id ) {+ this.id = "ui-id-" + (++uuid);+ }+ });+ },++ removeUniqueId: function() {+ return this.each(function() {+ if ( runiqueId.test( this.id ) ) {+ $( this ).removeAttr( "id" );+ }+ });+ }+});++// selectors+function focusable( element, isTabIndexNotNaN ) {+ var map, mapName, img,+ nodeName = element.nodeName.toLowerCase();+ if ( "area" === nodeName ) {+ map = element.parentNode;+ mapName = map.name;+ if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {+ return false;+ }+ img = $( "img[usemap=#" + mapName + "]" )[0];+ return !!img && visible( img );+ }+ return ( /input|select|textarea|button|object/.test( nodeName ) ?+ !element.disabled :+ "a" === nodeName ?+ element.href || isTabIndexNotNaN :+ isTabIndexNotNaN) &&+ // the element and all of its ancestors must be visible+ visible( element );+}++function visible( element ) {+ return $.expr.filters.visible( element ) &&+ !$( element ).parents().andSelf().filter(function() {+ return $.css( this, "visibility" ) === "hidden";+ }).length;+}++$.extend( $.expr[ ":" ], {+ data: $.expr.createPseudo ?+ $.expr.createPseudo(function( dataName ) {+ return function( elem ) {+ return !!$.data( elem, dataName );+ };+ }) :+ // support: jQuery <1.8+ function( elem, i, match ) {+ return !!$.data( elem, match[ 3 ] );+ },++ focusable: function( element ) {+ return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );+ },++ tabbable: function( element ) {+ var tabIndex = $.attr( element, "tabindex" ),+ isTabIndexNaN = isNaN( tabIndex );+ return ( isTabIndexNaN || tabIndex >= 0 ) && focusable( element, !isTabIndexNaN );+ }+});++// support+$(function() {+ var body = document.body,+ div = body.appendChild( div = document.createElement( "div" ) );++ // access offsetHeight before setting the style to prevent a layout bug+ // in IE 9 which causes the element to continue to take up space even+ // after it is removed from the DOM (#8026)+ div.offsetHeight;++ $.extend( div.style, {+ minHeight: "100px",+ height: "auto",+ padding: 0,+ borderWidth: 0+ });++ $.support.minHeight = div.offsetHeight === 100;+ $.support.selectstart = "onselectstart" in div;++ // set display to none to avoid a layout bug in IE+ // http://dev.jquery.com/ticket/4014+ body.removeChild( div ).style.display = "none";+});++// support: jQuery <1.8+if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {+ $.each( [ "Width", "Height" ], function( i, name ) {+ var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],+ type = name.toLowerCase(),+ orig = {+ innerWidth: $.fn.innerWidth,+ innerHeight: $.fn.innerHeight,+ outerWidth: $.fn.outerWidth,+ outerHeight: $.fn.outerHeight+ };++ function reduce( elem, size, border, margin ) {+ $.each( side, function() {+ size -= parseFloat( $.css( elem, "padding" + this ) ) || 0;+ if ( border ) {+ size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0;+ }+ if ( margin ) {+ size -= parseFloat( $.css( elem, "margin" + this ) ) || 0;+ }+ });+ return size;+ }++ $.fn[ "inner" + name ] = function( size ) {+ if ( size === undefined ) {+ return orig[ "inner" + name ].call( this );+ }++ return this.each(function() {+ $( this ).css( type, reduce( this, size ) + "px" );+ });+ };++ $.fn[ "outer" + name] = function( size, margin ) {+ if ( typeof size !== "number" ) {+ return orig[ "outer" + name ].call( this, size );+ }++ return this.each(function() {+ $( this).css( type, reduce( this, size, true, margin ) + "px" );+ });+ };+ });+}++// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)+if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {+ $.fn.removeData = (function( removeData ) {+ return function( key ) {+ if ( arguments.length ) {+ return removeData.call( this, $.camelCase( key ) );+ } else {+ return removeData.call( this );+ }+ };+ })( $.fn.removeData );+}++++++// deprecated++(function() {+ var uaMatch = /msie ([\w.]+)/.exec( navigator.userAgent.toLowerCase() ) || [];+ $.ui.ie = uaMatch.length ? true : false;+ $.ui.ie6 = parseFloat( uaMatch[ 1 ], 10 ) === 6;+})();++$.fn.extend({+ disableSelection: function() {+ return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) ++ ".ui-disableSelection", function( event ) {+ event.preventDefault();+ });+ },++ enableSelection: function() {+ return this.unbind( ".ui-disableSelection" );+ }+});++$.extend( $.ui, {+ // $.ui.plugin is deprecated. Use the proxy pattern instead.+ plugin: {+ add: function( module, option, set ) {+ var i,+ proto = $.ui[ module ].prototype;+ for ( i in set ) {+ proto.plugins[ i ] = proto.plugins[ i ] || [];+ proto.plugins[ i ].push( [ option, set[ i ] ] );+ }+ },+ call: function( instance, name, args ) {+ var i,+ set = instance.plugins[ name ];+ if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) {+ return;+ }++ for ( i = 0; i < set.length; i++ ) {+ if ( instance.options[ set[ i ][ 0 ] ] ) {+ set[ i ][ 1 ].apply( instance.element, args );+ }+ }+ }+ },++ contains: $.contains,++ // only used by resizable+ hasScroll: function( el, a ) {++ //If overflow is hidden, the element might have extra content, but the user wants to hide it+ if ( $( el ).css( "overflow" ) === "hidden") {+ return false;+ }++ var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop",+ has = false;++ if ( el[ scroll ] > 0 ) {+ return true;+ }++ // TODO: determine which cases actually cause this to happen+ // if the element doesn't have the scroll set, see if it's possible to+ // set the scroll+ el[ scroll ] = 1;+ has = ( el[ scroll ] > 0 );+ el[ scroll ] = 0;+ return has;+ },++ // these are odd functions, fix the API or move into individual plugins+ isOverAxis: function( x, reference, size ) {+ //Determines when x coordinate is over "b" element axis+ return ( x > reference ) && ( x < ( reference + size ) );+ },+ isOver: function( y, x, top, left, height, width ) {+ //Determines when x, y coordinates is over "b" element+ return $.ui.isOverAxis( y, top, height ) && $.ui.isOverAxis( x, left, width );+ }+});++})( jQuery );+(function( $, undefined ) {++var uuid = 0,+ slice = Array.prototype.slice,+ _cleanData = $.cleanData;+$.cleanData = function( elems ) {+ for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {+ try {+ $( elem ).triggerHandler( "remove" );+ // http://bugs.jquery.com/ticket/8235+ } catch( e ) {}+ }+ _cleanData( elems );+};++$.widget = function( name, base, prototype ) {+ var fullName, existingConstructor, constructor, basePrototype,+ namespace = name.split( "." )[ 0 ];++ name = name.split( "." )[ 1 ];+ fullName = namespace + "-" + name;++ if ( !prototype ) {+ prototype = base;+ base = $.Widget;+ }++ // create selector for plugin+ $.expr[ ":" ][ fullName.toLowerCase() ] = function( elem ) {+ return !!$.data( elem, fullName );+ };++ $[ namespace ] = $[ namespace ] || {};+ existingConstructor = $[ namespace ][ name ];+ constructor = $[ namespace ][ name ] = function( options, element ) {+ // allow instantiation without "new" keyword+ if ( !this._createWidget ) {+ return new constructor( options, element );+ }++ // allow instantiation without initializing for simple inheritance+ // must use "new" keyword (the code above always passes args)+ if ( arguments.length ) {+ this._createWidget( options, element );+ }+ };+ // extend with the existing constructor to carry over any static properties+ $.extend( constructor, existingConstructor, {+ version: prototype.version,+ // copy the object used to create the prototype in case we need to+ // redefine the widget later+ _proto: $.extend( {}, prototype ),+ // track widgets that inherit from this widget in case this widget is+ // redefined after a widget inherits from it+ _childConstructors: []+ });++ basePrototype = new base();+ // we need to make the options hash a property directly on the new instance+ // otherwise we'll modify the options hash on the prototype that we're+ // inheriting from+ basePrototype.options = $.widget.extend( {}, basePrototype.options );+ $.each( prototype, function( prop, value ) {+ if ( $.isFunction( value ) ) {+ prototype[ prop ] = (function() {+ var _super = function() {+ return base.prototype[ prop ].apply( this, arguments );+ },+ _superApply = function( args ) {+ return base.prototype[ prop ].apply( this, args );+ };+ return function() {+ var __super = this._super,+ __superApply = this._superApply,+ returnValue;++ this._super = _super;+ this._superApply = _superApply;++ returnValue = value.apply( this, arguments );++ this._super = __super;+ this._superApply = __superApply;++ return returnValue;+ };+ })();+ }+ });+ constructor.prototype = $.widget.extend( basePrototype, {+ // TODO: remove support for widgetEventPrefix+ // always use the name + a colon as the prefix, e.g., draggable:start+ // don't prefix for widgets that aren't DOM-based+ widgetEventPrefix: existingConstructor ? basePrototype.widgetEventPrefix : name+ }, prototype, {+ constructor: constructor,+ namespace: namespace,+ widgetName: name,+ // TODO remove widgetBaseClass, see #8155+ widgetBaseClass: fullName,+ widgetFullName: fullName+ });++ // If this widget is being redefined then we need to find all widgets that+ // are inheriting from it and redefine all of them so that they inherit from+ // the new version of this widget. We're essentially trying to replace one+ // level in the prototype chain.+ if ( existingConstructor ) {+ $.each( existingConstructor._childConstructors, function( i, child ) {+ var childPrototype = child.prototype;++ // redefine the child widget using the same prototype that was+ // originally used, but inherit from the new version of the base+ $.widget( childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto );+ });+ // remove the list of existing child constructors from the old constructor+ // so the old child constructors can be garbage collected+ delete existingConstructor._childConstructors;+ } else {+ base._childConstructors.push( constructor );+ }++ $.widget.bridge( name, constructor );+};++$.widget.extend = function( target ) {+ var input = slice.call( arguments, 1 ),+ inputIndex = 0,+ inputLength = input.length,+ key,+ value;+ for ( ; inputIndex < inputLength; inputIndex++ ) {+ for ( key in input[ inputIndex ] ) {+ value = input[ inputIndex ][ key ];+ if ( input[ inputIndex ].hasOwnProperty( key ) && value !== undefined ) {+ // Clone objects+ if ( $.isPlainObject( value ) ) {+ target[ key ] = $.isPlainObject( target[ key ] ) ?+ $.widget.extend( {}, target[ key ], value ) :+ // Don't extend strings, arrays, etc. with objects+ $.widget.extend( {}, value );+ // Copy everything else by reference+ } else {+ target[ key ] = value;+ }+ }+ }+ }+ return target;+};++$.widget.bridge = function( name, object ) {+ var fullName = object.prototype.widgetFullName || name;+ $.fn[ name ] = function( options ) {+ var isMethodCall = typeof options === "string",+ args = slice.call( arguments, 1 ),+ returnValue = this;++ // allow multiple hashes to be passed on init+ options = !isMethodCall && args.length ?+ $.widget.extend.apply( null, [ options ].concat(args) ) :+ options;++ if ( isMethodCall ) {+ this.each(function() {+ var methodValue,+ instance = $.data( this, fullName );+ if ( !instance ) {+ return $.error( "cannot call methods on " + name + " prior to initialization; " ++ "attempted to call method '" + options + "'" );+ }+ if ( !$.isFunction( instance[options] ) || options.charAt( 0 ) === "_" ) {+ return $.error( "no such method '" + options + "' for " + name + " widget instance" );+ }+ methodValue = instance[ options ].apply( instance, args );+ if ( methodValue !== instance && methodValue !== undefined ) {+ returnValue = methodValue && methodValue.jquery ?+ returnValue.pushStack( methodValue.get() ) :+ methodValue;+ return false;+ }+ });+ } else {+ this.each(function() {+ var instance = $.data( this, fullName );+ if ( instance ) {+ instance.option( options || {} )._init();+ } else {+ $.data( this, fullName, new object( options, this ) );+ }+ });+ }++ return returnValue;+ };+};++$.Widget = function( /* options, element */ ) {};+$.Widget._childConstructors = [];++$.Widget.prototype = {+ widgetName: "widget",+ widgetEventPrefix: "",+ defaultElement: "<div>",+ options: {+ disabled: false,++ // callbacks+ create: null+ },+ _createWidget: function( options, element ) {+ element = $( element || this.defaultElement || this )[ 0 ];+ this.element = $( element );+ this.uuid = uuid++;+ this.eventNamespace = "." + this.widgetName + this.uuid;+ this.options = $.widget.extend( {},+ this.options,+ this._getCreateOptions(),+ options );++ this.bindings = $();+ this.hoverable = $();+ this.focusable = $();++ if ( element !== this ) {+ // 1.9 BC for #7810+ // TODO remove dual storage+ $.data( element, this.widgetName, this );+ $.data( element, this.widgetFullName, this );+ this._on( true, this.element, {+ remove: function( event ) {+ if ( event.target === element ) {+ this.destroy();+ }+ }+ });+ this.document = $( element.style ?+ // element within the document+ element.ownerDocument :+ // element is window or document+ element.document || element );+ this.window = $( this.document[0].defaultView || this.document[0].parentWindow );+ }++ this._create();+ this._trigger( "create", null, this._getCreateEventData() );+ this._init();+ },+ _getCreateOptions: $.noop,+ _getCreateEventData: $.noop,+ _create: $.noop,+ _init: $.noop,++ destroy: function() {+ this._destroy();+ // we can probably remove the unbind calls in 2.0+ // all event bindings should go through this._on()+ this.element+ .unbind( this.eventNamespace )+ // 1.9 BC for #7810+ // TODO remove dual storage+ .removeData( this.widgetName )+ .removeData( this.widgetFullName )+ // support: jquery <1.6.3+ // http://bugs.jquery.com/ticket/9413+ .removeData( $.camelCase( this.widgetFullName ) );+ this.widget()+ .unbind( this.eventNamespace )+ .removeAttr( "aria-disabled" )+ .removeClass(+ this.widgetFullName + "-disabled " ++ "ui-state-disabled" );++ // clean up events and states+ this.bindings.unbind( this.eventNamespace );+ this.hoverable.removeClass( "ui-state-hover" );+ this.focusable.removeClass( "ui-state-focus" );+ },+ _destroy: $.noop,++ widget: function() {+ return this.element;+ },++ option: function( key, value ) {+ var options = key,+ parts,+ curOption,+ i;++ if ( arguments.length === 0 ) {+ // don't return a reference to the internal hash+ return $.widget.extend( {}, this.options );+ }++ if ( typeof key === "string" ) {+ // handle nested keys, e.g., "foo.bar" => { foo: { bar: ___ } }+ options = {};+ parts = key.split( "." );+ key = parts.shift();+ if ( parts.length ) {+ curOption = options[ key ] = $.widget.extend( {}, this.options[ key ] );+ for ( i = 0; i < parts.length - 1; i++ ) {+ curOption[ parts[ i ] ] = curOption[ parts[ i ] ] || {};+ curOption = curOption[ parts[ i ] ];+ }+ key = parts.pop();+ if ( value === undefined ) {+ return curOption[ key ] === undefined ? null : curOption[ key ];+ }+ curOption[ key ] = value;+ } else {+ if ( value === undefined ) {+ return this.options[ key ] === undefined ? null : this.options[ key ];+ }+ options[ key ] = value;+ }+ }++ this._setOptions( options );++ return this;+ },+ _setOptions: function( options ) {+ var key;++ for ( key in options ) {+ this._setOption( key, options[ key ] );+ }++ return this;+ },+ _setOption: function( key, value ) {+ this.options[ key ] = value;++ if ( key === "disabled" ) {+ this.widget()+ .toggleClass( this.widgetFullName + "-disabled ui-state-disabled", !!value )+ .attr( "aria-disabled", value );+ this.hoverable.removeClass( "ui-state-hover" );+ this.focusable.removeClass( "ui-state-focus" );+ }++ return this;+ },++ enable: function() {+ return this._setOption( "disabled", false );+ },+ disable: function() {+ return this._setOption( "disabled", true );+ },++ _on: function( suppressDisabledCheck, element, handlers ) {+ var delegateElement,+ instance = this;++ // no suppressDisabledCheck flag, shuffle arguments+ if ( typeof suppressDisabledCheck !== "boolean" ) {+ handlers = element;+ element = suppressDisabledCheck;+ suppressDisabledCheck = false;+ }++ // no element argument, shuffle and use this.element+ if ( !handlers ) {+ handlers = element;+ element = this.element;+ delegateElement = this.widget();+ } else {+ // accept selectors, DOM elements+ element = delegateElement = $( element );+ this.bindings = this.bindings.add( element );+ }++ $.each( handlers, function( event, handler ) {+ function handlerProxy() {+ // allow widgets to customize the disabled handling+ // - disabled as an array instead of boolean+ // - disabled class as method for disabling individual parts+ if ( !suppressDisabledCheck &&+ ( instance.options.disabled === true ||+ $( this ).hasClass( "ui-state-disabled" ) ) ) {+ return;+ }+ return ( typeof handler === "string" ? instance[ handler ] : handler )+ .apply( instance, arguments );+ }++ // copy the guid so direct unbinding works+ if ( typeof handler !== "string" ) {+ handlerProxy.guid = handler.guid =+ handler.guid || handlerProxy.guid || $.guid++;+ }++ var match = event.match( /^(\w+)\s*(.*)$/ ),+ eventName = match[1] + instance.eventNamespace,+ selector = match[2];+ if ( selector ) {+ delegateElement.delegate( selector, eventName, handlerProxy );+ } else {+ element.bind( eventName, handlerProxy );+ }+ });+ },++ _off: function( element, eventName ) {+ eventName = (eventName || "").split( " " ).join( this.eventNamespace + " " ) + this.eventNamespace;+ element.unbind( eventName ).undelegate( eventName );+ },++ _delay: function( handler, delay ) {+ function handlerProxy() {+ return ( typeof handler === "string" ? instance[ handler ] : handler )+ .apply( instance, arguments );+ }+ var instance = this;+ return setTimeout( handlerProxy, delay || 0 );+ },++ _hoverable: function( element ) {+ this.hoverable = this.hoverable.add( element );+ this._on( element, {+ mouseenter: function( event ) {+ $( event.currentTarget ).addClass( "ui-state-hover" );+ },+ mouseleave: function( event ) {+ $( event.currentTarget ).removeClass( "ui-state-hover" );+ }+ });+ },++ _focusable: function( element ) {+ this.focusable = this.focusable.add( element );+ this._on( element, {+ focusin: function( event ) {+ $( event.currentTarget ).addClass( "ui-state-focus" );+ },+ focusout: function( event ) {+ $( event.currentTarget ).removeClass( "ui-state-focus" );+ }+ });+ },++ _trigger: function( type, event, data ) {+ var prop, orig,+ callback = this.options[ type ];++ data = data || {};+ event = $.Event( event );+ event.type = ( type === this.widgetEventPrefix ?+ type :+ this.widgetEventPrefix + type ).toLowerCase();+ // the original event may come from any element+ // so we need to reset the target on the new event+ event.target = this.element[ 0 ];++ // copy original event properties over to the new event+ orig = event.originalEvent;+ if ( orig ) {+ for ( prop in orig ) {+ if ( !( prop in event ) ) {+ event[ prop ] = orig[ prop ];+ }+ }+ }++ this.element.trigger( event, data );+ return !( $.isFunction( callback ) &&+ callback.apply( this.element[0], [ event ].concat( data ) ) === false ||+ event.isDefaultPrevented() );+ }+};++$.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) {+ $.Widget.prototype[ "_" + method ] = function( element, options, callback ) {+ if ( typeof options === "string" ) {+ options = { effect: options };+ }+ var hasOptions,+ effectName = !options ?+ method :+ options === true || typeof options === "number" ?+ defaultEffect :+ options.effect || defaultEffect;+ options = options || {};+ if ( typeof options === "number" ) {+ options = { duration: options };+ }+ hasOptions = !$.isEmptyObject( options );+ options.complete = callback;+ if ( options.delay ) {+ element.delay( options.delay );+ }+ if ( hasOptions && $.effects && ( $.effects.effect[ effectName ] || $.uiBackCompat !== false && $.effects[ effectName ] ) ) {+ element[ method ]( options );+ } else if ( effectName !== method && element[ effectName ] ) {+ element[ effectName ]( options.duration, options.easing, callback );+ } else {+ element.queue(function( next ) {+ $( this )[ method ]();+ if ( callback ) {+ callback.call( element[ 0 ] );+ }+ next();+ });+ }+ };+});++// DEPRECATED+if ( $.uiBackCompat !== false ) {+ $.Widget.prototype._getCreateOptions = function() {+ return $.metadata && $.metadata.get( this.element[0] )[ this.widgetName ];+ };+}++})( jQuery );+(function( $, undefined ) {++var mouseHandled = false;+$( document ).mouseup( function( e ) {+ mouseHandled = false;+});++$.widget("ui.mouse", {+ version: "1.9.2",+ options: {+ cancel: 'input,textarea,button,select,option',+ distance: 1,+ delay: 0+ },+ _mouseInit: function() {+ var that = this;++ this.element+ .bind('mousedown.'+this.widgetName, function(event) {+ return that._mouseDown(event);+ })+ .bind('click.'+this.widgetName, function(event) {+ if (true === $.data(event.target, that.widgetName + '.preventClickEvent')) {+ $.removeData(event.target, that.widgetName + '.preventClickEvent');+ event.stopImmediatePropagation();+ return false;+ }+ });++ this.started = false;+ },++ // TODO: make sure destroying one instance of mouse doesn't mess with+ // other instances of mouse+ _mouseDestroy: function() {+ this.element.unbind('.'+this.widgetName);+ if ( this._mouseMoveDelegate ) {+ $(document)+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);+ }+ },++ _mouseDown: function(event) {+ // don't let more than one widget handle mouseStart+ if( mouseHandled ) { return; }++ // we may have missed mouseup (out of window)+ (this._mouseStarted && this._mouseUp(event));++ this._mouseDownEvent = event;++ var that = this,+ btnIsLeft = (event.which === 1),+ // event.target.nodeName works around a bug in IE 8 with+ // disabled inputs (#7620)+ elIsCancel = (typeof this.options.cancel === "string" && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);+ if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {+ return true;+ }++ this.mouseDelayMet = !this.options.delay;+ if (!this.mouseDelayMet) {+ this._mouseDelayTimer = setTimeout(function() {+ that.mouseDelayMet = true;+ }, this.options.delay);+ }++ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {+ this._mouseStarted = (this._mouseStart(event) !== false);+ if (!this._mouseStarted) {+ event.preventDefault();+ return true;+ }+ }++ // Click event may never have fired (Gecko & Opera)+ if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) {+ $.removeData(event.target, this.widgetName + '.preventClickEvent');+ }++ // these delegates are required to keep context+ this._mouseMoveDelegate = function(event) {+ return that._mouseMove(event);+ };+ this._mouseUpDelegate = function(event) {+ return that._mouseUp(event);+ };+ $(document)+ .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)+ .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);++ event.preventDefault();++ mouseHandled = true;+ return true;+ },++ _mouseMove: function(event) {+ // IE mouseup check - mouseup happened when mouse was out of window+ if ($.ui.ie && !(document.documentMode >= 9) && !event.button) {+ return this._mouseUp(event);+ }++ if (this._mouseStarted) {+ this._mouseDrag(event);+ return event.preventDefault();+ }++ if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {+ this._mouseStarted =+ (this._mouseStart(this._mouseDownEvent, event) !== false);+ (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event));+ }++ return !this._mouseStarted;+ },++ _mouseUp: function(event) {+ $(document)+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);++ if (this._mouseStarted) {+ this._mouseStarted = false;++ if (event.target === this._mouseDownEvent.target) {+ $.data(event.target, this.widgetName + '.preventClickEvent', true);+ }++ this._mouseStop(event);+ }++ return false;+ },++ _mouseDistanceMet: function(event) {+ return (Math.max(+ Math.abs(this._mouseDownEvent.pageX - event.pageX),+ Math.abs(this._mouseDownEvent.pageY - event.pageY)+ ) >= this.options.distance+ );+ },++ _mouseDelayMet: function(event) {+ return this.mouseDelayMet;+ },++ // These are placeholder methods, to be overriden by extending plugin+ _mouseStart: function(event) {},+ _mouseDrag: function(event) {},+ _mouseStop: function(event) {},+ _mouseCapture: function(event) { return true; }+});++})(jQuery);+(function( $, undefined ) {++$.ui = $.ui || {};++var cachedScrollbarWidth,+ max = Math.max,+ abs = Math.abs,+ round = Math.round,+ rhorizontal = /left|center|right/,+ rvertical = /top|center|bottom/,+ roffset = /[\+\-]\d+%?/,+ rposition = /^\w+/,+ rpercent = /%$/,+ _position = $.fn.position;++function getOffsets( offsets, width, height ) {+ return [+ parseInt( offsets[ 0 ], 10 ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),+ parseInt( offsets[ 1 ], 10 ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )+ ];+}+function parseCss( element, property ) {+ return parseInt( $.css( element, property ), 10 ) || 0;+}++$.position = {+ scrollbarWidth: function() {+ if ( cachedScrollbarWidth !== undefined ) {+ return cachedScrollbarWidth;+ }+ var w1, w2,+ div = $( "<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),+ innerDiv = div.children()[0];++ $( "body" ).append( div );+ w1 = innerDiv.offsetWidth;+ div.css( "overflow", "scroll" );++ w2 = innerDiv.offsetWidth;++ if ( w1 === w2 ) {+ w2 = div[0].clientWidth;+ }++ div.remove();++ return (cachedScrollbarWidth = w1 - w2);+ },+ getScrollInfo: function( within ) {+ var overflowX = within.isWindow ? "" : within.element.css( "overflow-x" ),+ overflowY = within.isWindow ? "" : within.element.css( "overflow-y" ),+ hasOverflowX = overflowX === "scroll" ||+ ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),+ hasOverflowY = overflowY === "scroll" ||+ ( overflowY === "auto" && within.height < within.element[0].scrollHeight );+ return {+ width: hasOverflowX ? $.position.scrollbarWidth() : 0,+ height: hasOverflowY ? $.position.scrollbarWidth() : 0+ };+ },+ getWithinInfo: function( element ) {+ var withinElement = $( element || window ),+ isWindow = $.isWindow( withinElement[0] );+ return {+ element: withinElement,+ isWindow: isWindow,+ offset: withinElement.offset() || { left: 0, top: 0 },+ scrollLeft: withinElement.scrollLeft(),+ scrollTop: withinElement.scrollTop(),+ width: isWindow ? withinElement.width() : withinElement.outerWidth(),+ height: isWindow ? withinElement.height() : withinElement.outerHeight()+ };+ }+};++$.fn.position = function( options ) {+ if ( !options || !options.of ) {+ return _position.apply( this, arguments );+ }++ // make a copy, we don't want to modify arguments+ options = $.extend( {}, options );++ var atOffset, targetWidth, targetHeight, targetOffset, basePosition,+ target = $( options.of ),+ within = $.position.getWithinInfo( options.within ),+ scrollInfo = $.position.getScrollInfo( within ),+ targetElem = target[0],+ collision = ( options.collision || "flip" ).split( " " ),+ offsets = {};++ if ( targetElem.nodeType === 9 ) {+ targetWidth = target.width();+ targetHeight = target.height();+ targetOffset = { top: 0, left: 0 };+ } else if ( $.isWindow( targetElem ) ) {+ targetWidth = target.width();+ targetHeight = target.height();+ targetOffset = { top: target.scrollTop(), left: target.scrollLeft() };+ } else if ( targetElem.preventDefault ) {+ // force left top to allow flipping+ options.at = "left top";+ targetWidth = targetHeight = 0;+ targetOffset = { top: targetElem.pageY, left: targetElem.pageX };+ } else {+ targetWidth = target.outerWidth();+ targetHeight = target.outerHeight();+ targetOffset = target.offset();+ }+ // clone to reuse original targetOffset later+ basePosition = $.extend( {}, targetOffset );++ // force my and at to have valid horizontal and vertical positions+ // if a value is missing or invalid, it will be converted to center+ $.each( [ "my", "at" ], function() {+ var pos = ( options[ this ] || "" ).split( " " ),+ horizontalOffset,+ verticalOffset;++ if ( pos.length === 1) {+ pos = rhorizontal.test( pos[ 0 ] ) ?+ pos.concat( [ "center" ] ) :+ rvertical.test( pos[ 0 ] ) ?+ [ "center" ].concat( pos ) :+ [ "center", "center" ];+ }+ pos[ 0 ] = rhorizontal.test( pos[ 0 ] ) ? pos[ 0 ] : "center";+ pos[ 1 ] = rvertical.test( pos[ 1 ] ) ? pos[ 1 ] : "center";++ // calculate offsets+ horizontalOffset = roffset.exec( pos[ 0 ] );+ verticalOffset = roffset.exec( pos[ 1 ] );+ offsets[ this ] = [+ horizontalOffset ? horizontalOffset[ 0 ] : 0,+ verticalOffset ? verticalOffset[ 0 ] : 0+ ];++ // reduce to just the positions without the offsets+ options[ this ] = [+ rposition.exec( pos[ 0 ] )[ 0 ],+ rposition.exec( pos[ 1 ] )[ 0 ]+ ];+ });++ // normalize collision option+ if ( collision.length === 1 ) {+ collision[ 1 ] = collision[ 0 ];+ }++ if ( options.at[ 0 ] === "right" ) {+ basePosition.left += targetWidth;+ } else if ( options.at[ 0 ] === "center" ) {+ basePosition.left += targetWidth / 2;+ }++ if ( options.at[ 1 ] === "bottom" ) {+ basePosition.top += targetHeight;+ } else if ( options.at[ 1 ] === "center" ) {+ basePosition.top += targetHeight / 2;+ }++ atOffset = getOffsets( offsets.at, targetWidth, targetHeight );+ basePosition.left += atOffset[ 0 ];+ basePosition.top += atOffset[ 1 ];++ return this.each(function() {+ var collisionPosition, using,+ elem = $( this ),+ elemWidth = elem.outerWidth(),+ elemHeight = elem.outerHeight(),+ marginLeft = parseCss( this, "marginLeft" ),+ marginTop = parseCss( this, "marginTop" ),+ collisionWidth = elemWidth + marginLeft + parseCss( this, "marginRight" ) + scrollInfo.width,+ collisionHeight = elemHeight + marginTop + parseCss( this, "marginBottom" ) + scrollInfo.height,+ position = $.extend( {}, basePosition ),+ myOffset = getOffsets( offsets.my, elem.outerWidth(), elem.outerHeight() );++ if ( options.my[ 0 ] === "right" ) {+ position.left -= elemWidth;+ } else if ( options.my[ 0 ] === "center" ) {+ position.left -= elemWidth / 2;+ }++ if ( options.my[ 1 ] === "bottom" ) {+ position.top -= elemHeight;+ } else if ( options.my[ 1 ] === "center" ) {+ position.top -= elemHeight / 2;+ }++ position.left += myOffset[ 0 ];+ position.top += myOffset[ 1 ];++ // if the browser doesn't support fractions, then round for consistent results+ if ( !$.support.offsetFractions ) {+ position.left = round( position.left );+ position.top = round( position.top );+ }++ collisionPosition = {+ marginLeft: marginLeft,+ marginTop: marginTop+ };++ $.each( [ "left", "top" ], function( i, dir ) {+ if ( $.ui.position[ collision[ i ] ] ) {+ $.ui.position[ collision[ i ] ][ dir ]( position, {+ targetWidth: targetWidth,+ targetHeight: targetHeight,+ elemWidth: elemWidth,+ elemHeight: elemHeight,+ collisionPosition: collisionPosition,+ collisionWidth: collisionWidth,+ collisionHeight: collisionHeight,+ offset: [ atOffset[ 0 ] + myOffset[ 0 ], atOffset [ 1 ] + myOffset[ 1 ] ],+ my: options.my,+ at: options.at,+ within: within,+ elem : elem+ });+ }+ });++ if ( $.fn.bgiframe ) {+ elem.bgiframe();+ }++ if ( options.using ) {+ // adds feedback as second argument to using callback, if present+ using = function( props ) {+ var left = targetOffset.left - position.left,+ right = left + targetWidth - elemWidth,+ top = targetOffset.top - position.top,+ bottom = top + targetHeight - elemHeight,+ feedback = {+ target: {+ element: target,+ left: targetOffset.left,+ top: targetOffset.top,+ width: targetWidth,+ height: targetHeight+ },+ element: {+ element: elem,+ left: position.left,+ top: position.top,+ width: elemWidth,+ height: elemHeight+ },+ horizontal: right < 0 ? "left" : left > 0 ? "right" : "center",+ vertical: bottom < 0 ? "top" : top > 0 ? "bottom" : "middle"+ };+ if ( targetWidth < elemWidth && abs( left + right ) < targetWidth ) {+ feedback.horizontal = "center";+ }+ if ( targetHeight < elemHeight && abs( top + bottom ) < targetHeight ) {+ feedback.vertical = "middle";+ }+ if ( max( abs( left ), abs( right ) ) > max( abs( top ), abs( bottom ) ) ) {+ feedback.important = "horizontal";+ } else {+ feedback.important = "vertical";+ }+ options.using.call( this, props, feedback );+ };+ }++ elem.offset( $.extend( position, { using: using } ) );+ });+};++$.ui.position = {+ fit: {+ left: function( position, data ) {+ var within = data.within,+ withinOffset = within.isWindow ? within.scrollLeft : within.offset.left,+ outerWidth = within.width,+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,+ overLeft = withinOffset - collisionPosLeft,+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - withinOffset,+ newOverRight;++ // element is wider than within+ if ( data.collisionWidth > outerWidth ) {+ // element is initially over the left side of within+ if ( overLeft > 0 && overRight <= 0 ) {+ newOverRight = position.left + overLeft + data.collisionWidth - outerWidth - withinOffset;+ position.left += overLeft - newOverRight;+ // element is initially over right side of within+ } else if ( overRight > 0 && overLeft <= 0 ) {+ position.left = withinOffset;+ // element is initially over both left and right sides of within+ } else {+ if ( overLeft > overRight ) {+ position.left = withinOffset + outerWidth - data.collisionWidth;+ } else {+ position.left = withinOffset;+ }+ }+ // too far left -> align with left edge+ } else if ( overLeft > 0 ) {+ position.left += overLeft;+ // too far right -> align with right edge+ } else if ( overRight > 0 ) {+ position.left -= overRight;+ // adjust based on position and margin+ } else {+ position.left = max( position.left - collisionPosLeft, position.left );+ }+ },+ top: function( position, data ) {+ var within = data.within,+ withinOffset = within.isWindow ? within.scrollTop : within.offset.top,+ outerHeight = data.within.height,+ collisionPosTop = position.top - data.collisionPosition.marginTop,+ overTop = withinOffset - collisionPosTop,+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - withinOffset,+ newOverBottom;++ // element is taller than within+ if ( data.collisionHeight > outerHeight ) {+ // element is initially over the top of within+ if ( overTop > 0 && overBottom <= 0 ) {+ newOverBottom = position.top + overTop + data.collisionHeight - outerHeight - withinOffset;+ position.top += overTop - newOverBottom;+ // element is initially over bottom of within+ } else if ( overBottom > 0 && overTop <= 0 ) {+ position.top = withinOffset;+ // element is initially over both top and bottom of within+ } else {+ if ( overTop > overBottom ) {+ position.top = withinOffset + outerHeight - data.collisionHeight;+ } else {+ position.top = withinOffset;+ }+ }+ // too far up -> align with top+ } else if ( overTop > 0 ) {+ position.top += overTop;+ // too far down -> align with bottom edge+ } else if ( overBottom > 0 ) {+ position.top -= overBottom;+ // adjust based on position and margin+ } else {+ position.top = max( position.top - collisionPosTop, position.top );+ }+ }+ },+ flip: {+ left: function( position, data ) {+ var within = data.within,+ withinOffset = within.offset.left + within.scrollLeft,+ outerWidth = within.width,+ offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,+ collisionPosLeft = position.left - data.collisionPosition.marginLeft,+ overLeft = collisionPosLeft - offsetLeft,+ overRight = collisionPosLeft + data.collisionWidth - outerWidth - offsetLeft,+ myOffset = data.my[ 0 ] === "left" ?+ -data.elemWidth :+ data.my[ 0 ] === "right" ?+ data.elemWidth :+ 0,+ atOffset = data.at[ 0 ] === "left" ?+ data.targetWidth :+ data.at[ 0 ] === "right" ?+ -data.targetWidth :+ 0,+ offset = -2 * data.offset[ 0 ],+ newOverRight,+ newOverLeft;++ if ( overLeft < 0 ) {+ newOverRight = position.left + myOffset + atOffset + offset + data.collisionWidth - outerWidth - withinOffset;+ if ( newOverRight < 0 || newOverRight < abs( overLeft ) ) {+ position.left += myOffset + atOffset + offset;+ }+ }+ else if ( overRight > 0 ) {+ newOverLeft = position.left - data.collisionPosition.marginLeft + myOffset + atOffset + offset - offsetLeft;+ if ( newOverLeft > 0 || abs( newOverLeft ) < overRight ) {+ position.left += myOffset + atOffset + offset;+ }+ }+ },+ top: function( position, data ) {+ var within = data.within,+ withinOffset = within.offset.top + within.scrollTop,+ outerHeight = within.height,+ offsetTop = within.isWindow ? within.scrollTop : within.offset.top,+ collisionPosTop = position.top - data.collisionPosition.marginTop,+ overTop = collisionPosTop - offsetTop,+ overBottom = collisionPosTop + data.collisionHeight - outerHeight - offsetTop,+ top = data.my[ 1 ] === "top",+ myOffset = top ?+ -data.elemHeight :+ data.my[ 1 ] === "bottom" ?+ data.elemHeight :+ 0,+ atOffset = data.at[ 1 ] === "top" ?+ data.targetHeight :+ data.at[ 1 ] === "bottom" ?+ -data.targetHeight :+ 0,+ offset = -2 * data.offset[ 1 ],+ newOverTop,+ newOverBottom;+ if ( overTop < 0 ) {+ newOverBottom = position.top + myOffset + atOffset + offset + data.collisionHeight - outerHeight - withinOffset;+ if ( ( position.top + myOffset + atOffset + offset) > overTop && ( newOverBottom < 0 || newOverBottom < abs( overTop ) ) ) {+ position.top += myOffset + atOffset + offset;+ }+ }+ else if ( overBottom > 0 ) {+ newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;+ if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {+ position.top += myOffset + atOffset + offset;+ }+ }+ }+ },+ flipfit: {+ left: function() {+ $.ui.position.flip.left.apply( this, arguments );+ $.ui.position.fit.left.apply( this, arguments );+ },+ top: function() {+ $.ui.position.flip.top.apply( this, arguments );+ $.ui.position.fit.top.apply( this, arguments );+ }+ }+};++// fraction support test+(function () {+ var testElement, testElementParent, testElementStyle, offsetLeft, i,+ body = document.getElementsByTagName( "body" )[ 0 ],+ div = document.createElement( "div" );++ //Create a "fake body" for testing based on method used in jQuery.support+ testElement = document.createElement( body ? "div" : "body" );+ testElementStyle = {+ visibility: "hidden",+ width: 0,+ height: 0,+ border: 0,+ margin: 0,+ background: "none"+ };+ if ( body ) {+ $.extend( testElementStyle, {+ position: "absolute",+ left: "-1000px",+ top: "-1000px"+ });+ }+ for ( i in testElementStyle ) {+ testElement.style[ i ] = testElementStyle[ i ];+ }+ testElement.appendChild( div );+ testElementParent = body || document.documentElement;+ testElementParent.insertBefore( testElement, testElementParent.firstChild );++ div.style.cssText = "position: absolute; left: 10.7432222px;";++ offsetLeft = $( div ).offset().left;+ $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11;++ testElement.innerHTML = "";+ testElementParent.removeChild( testElement );+})();++// DEPRECATED+if ( $.uiBackCompat !== false ) {+ // offset option+ (function( $ ) {+ var _position = $.fn.position;+ $.fn.position = function( options ) {+ if ( !options || !options.offset ) {+ return _position.call( this, options );+ }+ var offset = options.offset.split( " " ),+ at = options.at.split( " " );+ if ( offset.length === 1 ) {+ offset[ 1 ] = offset[ 0 ];+ }+ if ( /^\d/.test( offset[ 0 ] ) ) {+ offset[ 0 ] = "+" + offset[ 0 ];+ }+ if ( /^\d/.test( offset[ 1 ] ) ) {+ offset[ 1 ] = "+" + offset[ 1 ];+ }+ if ( at.length === 1 ) {+ if ( /left|center|right/.test( at[ 0 ] ) ) {+ at[ 1 ] = "center";+ } else {+ at[ 1 ] = at[ 0 ];+ at[ 0 ] = "center";+ }+ }+ return _position.call( this, $.extend( options, {+ at: at[ 0 ] + offset[ 0 ] + " " + at[ 1 ] + offset[ 1 ],+ offset: undefined+ } ) );+ };+ }( jQuery ) );+}++}( jQuery ) );+(function( $, undefined ) {++var uid = 0,+ hideProps = {},+ showProps = {};++hideProps.height = hideProps.paddingTop = hideProps.paddingBottom =+ hideProps.borderTopWidth = hideProps.borderBottomWidth = "hide";+showProps.height = showProps.paddingTop = showProps.paddingBottom =+ showProps.borderTopWidth = showProps.borderBottomWidth = "show";++$.widget( "ui.accordion", {+ version: "1.9.2",+ options: {+ active: 0,+ animate: {},+ collapsible: false,+ event: "click",+ header: "> li > :first-child,> :not(li):even",+ heightStyle: "auto",+ icons: {+ activeHeader: "ui-icon-triangle-1-s",+ header: "ui-icon-triangle-1-e"+ },++ // callbacks+ activate: null,+ beforeActivate: null+ },++ _create: function() {+ var accordionId = this.accordionId = "ui-accordion-" ++ (this.element.attr( "id" ) || ++uid),+ options = this.options;++ this.prevShow = this.prevHide = $();+ this.element.addClass( "ui-accordion ui-widget ui-helper-reset" );++ this.headers = this.element.find( options.header )+ .addClass( "ui-accordion-header ui-helper-reset ui-state-default ui-corner-all" );+ this._hoverable( this.headers );+ this._focusable( this.headers );++ this.headers.next()+ .addClass( "ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom" )+ .hide();++ // don't allow collapsible: false and active: false / null+ if ( !options.collapsible && (options.active === false || options.active == null) ) {+ options.active = 0;+ }+ // handle negative values+ if ( options.active < 0 ) {+ options.active += this.headers.length;+ }+ this.active = this._findActive( options.active )+ .addClass( "ui-accordion-header-active ui-state-active" )+ .toggleClass( "ui-corner-all ui-corner-top" );+ this.active.next()+ .addClass( "ui-accordion-content-active" )+ .show();++ this._createIcons();+ this.refresh();++ // ARIA+ this.element.attr( "role", "tablist" );++ this.headers+ .attr( "role", "tab" )+ .each(function( i ) {+ var header = $( this ),+ headerId = header.attr( "id" ),+ panel = header.next(),+ panelId = panel.attr( "id" );+ if ( !headerId ) {+ headerId = accordionId + "-header-" + i;+ header.attr( "id", headerId );+ }+ if ( !panelId ) {+ panelId = accordionId + "-panel-" + i;+ panel.attr( "id", panelId );+ }+ header.attr( "aria-controls", panelId );+ panel.attr( "aria-labelledby", headerId );+ })+ .next()+ .attr( "role", "tabpanel" );++ this.headers+ .not( this.active )+ .attr({+ "aria-selected": "false",+ tabIndex: -1+ })+ .next()+ .attr({+ "aria-expanded": "false",+ "aria-hidden": "true"+ })+ .hide();++ // make sure at least one header is in the tab order+ if ( !this.active.length ) {+ this.headers.eq( 0 ).attr( "tabIndex", 0 );+ } else {+ this.active.attr({+ "aria-selected": "true",+ tabIndex: 0+ })+ .next()+ .attr({+ "aria-expanded": "true",+ "aria-hidden": "false"+ });+ }++ this._on( this.headers, { keydown: "_keydown" });+ this._on( this.headers.next(), { keydown: "_panelKeyDown" });+ this._setupEvents( options.event );+ },++ _getCreateEventData: function() {+ return {+ header: this.active,+ content: !this.active.length ? $() : this.active.next()+ };+ },++ _createIcons: function() {+ var icons = this.options.icons;+ if ( icons ) {+ $( "<span>" )+ .addClass( "ui-accordion-header-icon ui-icon " + icons.header )+ .prependTo( this.headers );+ this.active.children( ".ui-accordion-header-icon" )+ .removeClass( icons.header )+ .addClass( icons.activeHeader );+ this.headers.addClass( "ui-accordion-icons" );+ }+ },++ _destroyIcons: function() {+ this.headers+ .removeClass( "ui-accordion-icons" )+ .children( ".ui-accordion-header-icon" )+ .remove();+ },++ _destroy: function() {+ var contents;++ // clean up main element+ this.element+ .removeClass( "ui-accordion ui-widget ui-helper-reset" )+ .removeAttr( "role" );++ // clean up headers+ this.headers+ .removeClass( "ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top" )+ .removeAttr( "role" )+ .removeAttr( "aria-selected" )+ .removeAttr( "aria-controls" )+ .removeAttr( "tabIndex" )+ .each(function() {+ if ( /^ui-accordion/.test( this.id ) ) {+ this.removeAttribute( "id" );+ }+ });+ this._destroyIcons();++ // clean up content panels+ contents = this.headers.next()+ .css( "display", "" )+ .removeAttr( "role" )+ .removeAttr( "aria-expanded" )+ .removeAttr( "aria-hidden" )+ .removeAttr( "aria-labelledby" )+ .removeClass( "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled" )+ .each(function() {+ if ( /^ui-accordion/.test( this.id ) ) {+ this.removeAttribute( "id" );+ }+ });+ if ( this.options.heightStyle !== "content" ) {+ contents.css( "height", "" );+ }+ },++ _setOption: function( key, value ) {+ if ( key === "active" ) {+ // _activate() will handle invalid values and update this.options+ this._activate( value );+ return;+ }++ if ( key === "event" ) {+ if ( this.options.event ) {+ this._off( this.headers, this.options.event );+ }+ this._setupEvents( value );+ }++ this._super( key, value );++ // setting collapsible: false while collapsed; open first panel+ if ( key === "collapsible" && !value && this.options.active === false ) {+ this._activate( 0 );+ }++ if ( key === "icons" ) {+ this._destroyIcons();+ if ( value ) {+ this._createIcons();+ }+ }++ // #5332 - opacity doesn't cascade to positioned elements in IE+ // so we need to add the disabled class to the headers and panels+ if ( key === "disabled" ) {+ this.headers.add( this.headers.next() )+ .toggleClass( "ui-state-disabled", !!value );+ }+ },++ _keydown: function( event ) {+ if ( event.altKey || event.ctrlKey ) {+ return;+ }++ var keyCode = $.ui.keyCode,+ length = this.headers.length,+ currentIndex = this.headers.index( event.target ),+ toFocus = false;++ switch ( event.keyCode ) {+ case keyCode.RIGHT:+ case keyCode.DOWN:+ toFocus = this.headers[ ( currentIndex + 1 ) % length ];+ break;+ case keyCode.LEFT:+ case keyCode.UP:+ toFocus = this.headers[ ( currentIndex - 1 + length ) % length ];+ break;+ case keyCode.SPACE:+ case keyCode.ENTER:+ this._eventHandler( event );+ break;+ case keyCode.HOME:+ toFocus = this.headers[ 0 ];+ break;+ case keyCode.END:+ toFocus = this.headers[ length - 1 ];+ break;+ }++ if ( toFocus ) {+ $( event.target ).attr( "tabIndex", -1 );+ $( toFocus ).attr( "tabIndex", 0 );+ toFocus.focus();+ event.preventDefault();+ }+ },++ _panelKeyDown : function( event ) {+ if ( event.keyCode === $.ui.keyCode.UP && event.ctrlKey ) {+ $( event.currentTarget ).prev().focus();+ }+ },++ refresh: function() {+ var maxHeight, overflow,+ heightStyle = this.options.heightStyle,+ parent = this.element.parent();+++ if ( heightStyle === "fill" ) {+ // IE 6 treats height like minHeight, so we need to turn off overflow+ // in order to get a reliable height+ // we use the minHeight support test because we assume that only+ // browsers that don't support minHeight will treat height as minHeight+ if ( !$.support.minHeight ) {+ overflow = parent.css( "overflow" );+ parent.css( "overflow", "hidden");+ }+ maxHeight = parent.height();+ this.element.siblings( ":visible" ).each(function() {+ var elem = $( this ),+ position = elem.css( "position" );++ if ( position === "absolute" || position === "fixed" ) {+ return;+ }+ maxHeight -= elem.outerHeight( true );+ });+ if ( overflow ) {+ parent.css( "overflow", overflow );+ }++ this.headers.each(function() {+ maxHeight -= $( this ).outerHeight( true );+ });++ this.headers.next()+ .each(function() {+ $( this ).height( Math.max( 0, maxHeight -+ $( this ).innerHeight() + $( this ).height() ) );+ })+ .css( "overflow", "auto" );+ } else if ( heightStyle === "auto" ) {+ maxHeight = 0;+ this.headers.next()+ .each(function() {+ maxHeight = Math.max( maxHeight, $( this ).css( "height", "" ).height() );+ })+ .height( maxHeight );+ }+ },++ _activate: function( index ) {+ var active = this._findActive( index )[ 0 ];++ // trying to activate the already active panel+ if ( active === this.active[ 0 ] ) {+ return;+ }++ // trying to collapse, simulate a click on the currently active header+ active = active || this.active[ 0 ];++ this._eventHandler({+ target: active,+ currentTarget: active,+ preventDefault: $.noop+ });+ },++ _findActive: function( selector ) {+ return typeof selector === "number" ? this.headers.eq( selector ) : $();+ },++ _setupEvents: function( event ) {+ var events = {};+ if ( !event ) {+ return;+ }+ $.each( event.split(" "), function( index, eventName ) {+ events[ eventName ] = "_eventHandler";+ });+ this._on( this.headers, events );+ },++ _eventHandler: function( event ) {+ var options = this.options,+ active = this.active,+ clicked = $( event.currentTarget ),+ clickedIsActive = clicked[ 0 ] === active[ 0 ],+ collapsing = clickedIsActive && options.collapsible,+ toShow = collapsing ? $() : clicked.next(),+ toHide = active.next(),+ eventData = {+ oldHeader: active,+ oldPanel: toHide,+ newHeader: collapsing ? $() : clicked,+ newPanel: toShow+ };++ event.preventDefault();++ if (+ // click on active header, but not collapsible+ ( clickedIsActive && !options.collapsible ) ||+ // allow canceling activation+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {+ return;+ }++ options.active = collapsing ? false : this.headers.index( clicked );++ // when the call to ._toggle() comes after the class changes+ // it causes a very odd bug in IE 8 (see #6720)+ this.active = clickedIsActive ? $() : clicked;+ this._toggle( eventData );++ // switch classes+ // corner classes on the previously active header stay after the animation+ active.removeClass( "ui-accordion-header-active ui-state-active" );+ if ( options.icons ) {+ active.children( ".ui-accordion-header-icon" )+ .removeClass( options.icons.activeHeader )+ .addClass( options.icons.header );+ }++ if ( !clickedIsActive ) {+ clicked+ .removeClass( "ui-corner-all" )+ .addClass( "ui-accordion-header-active ui-state-active ui-corner-top" );+ if ( options.icons ) {+ clicked.children( ".ui-accordion-header-icon" )+ .removeClass( options.icons.header )+ .addClass( options.icons.activeHeader );+ }++ clicked+ .next()+ .addClass( "ui-accordion-content-active" );+ }+ },++ _toggle: function( data ) {+ var toShow = data.newPanel,+ toHide = this.prevShow.length ? this.prevShow : data.oldPanel;++ // handle activating a panel during the animation for another activation+ this.prevShow.add( this.prevHide ).stop( true, true );+ this.prevShow = toShow;+ this.prevHide = toHide;++ if ( this.options.animate ) {+ this._animate( toShow, toHide, data );+ } else {+ toHide.hide();+ toShow.show();+ this._toggleComplete( data );+ }++ toHide.attr({+ "aria-expanded": "false",+ "aria-hidden": "true"+ });+ toHide.prev().attr( "aria-selected", "false" );+ // if we're switching panels, remove the old header from the tab order+ // if we're opening from collapsed state, remove the previous header from the tab order+ // if we're collapsing, then keep the collapsing header in the tab order+ if ( toShow.length && toHide.length ) {+ toHide.prev().attr( "tabIndex", -1 );+ } else if ( toShow.length ) {+ this.headers.filter(function() {+ return $( this ).attr( "tabIndex" ) === 0;+ })+ .attr( "tabIndex", -1 );+ }++ toShow+ .attr({+ "aria-expanded": "true",+ "aria-hidden": "false"+ })+ .prev()+ .attr({+ "aria-selected": "true",+ tabIndex: 0+ });+ },++ _animate: function( toShow, toHide, data ) {+ var total, easing, duration,+ that = this,+ adjust = 0,+ down = toShow.length &&+ ( !toHide.length || ( toShow.index() < toHide.index() ) ),+ animate = this.options.animate || {},+ options = down && animate.down || animate,+ complete = function() {+ that._toggleComplete( data );+ };++ if ( typeof options === "number" ) {+ duration = options;+ }+ if ( typeof options === "string" ) {+ easing = options;+ }+ // fall back from options to animation in case of partial down settings+ easing = easing || options.easing || animate.easing;+ duration = duration || options.duration || animate.duration;++ if ( !toHide.length ) {+ return toShow.animate( showProps, duration, easing, complete );+ }+ if ( !toShow.length ) {+ return toHide.animate( hideProps, duration, easing, complete );+ }++ total = toShow.show().outerHeight();+ toHide.animate( hideProps, {+ duration: duration,+ easing: easing,+ step: function( now, fx ) {+ fx.now = Math.round( now );+ }+ });+ toShow+ .hide()+ .animate( showProps, {+ duration: duration,+ easing: easing,+ complete: complete,+ step: function( now, fx ) {+ fx.now = Math.round( now );+ if ( fx.prop !== "height" ) {+ adjust += fx.now;+ } else if ( that.options.heightStyle !== "content" ) {+ fx.now = Math.round( total - toHide.outerHeight() - adjust );+ adjust = 0;+ }+ }+ });+ },++ _toggleComplete: function( data ) {+ var toHide = data.oldPanel;++ toHide+ .removeClass( "ui-accordion-content-active" )+ .prev()+ .removeClass( "ui-corner-top" )+ .addClass( "ui-corner-all" );++ // Work around for rendering bug in IE (#5421)+ if ( toHide.length ) {+ toHide.parent()[0].className = toHide.parent()[0].className;+ }++ this._trigger( "activate", null, data );+ }+});++++// DEPRECATED+if ( $.uiBackCompat !== false ) {+ // navigation options+ (function( $, prototype ) {+ $.extend( prototype.options, {+ navigation: false,+ navigationFilter: function() {+ return this.href.toLowerCase() === location.href.toLowerCase();+ }+ });++ var _create = prototype._create;+ prototype._create = function() {+ if ( this.options.navigation ) {+ var that = this,+ headers = this.element.find( this.options.header ),+ content = headers.next(),+ current = headers.add( content )+ .find( "a" )+ .filter( this.options.navigationFilter )+ [ 0 ];+ if ( current ) {+ headers.add( content ).each( function( index ) {+ if ( $.contains( this, current ) ) {+ that.options.active = Math.floor( index / 2 );+ return false;+ }+ });+ }+ }+ _create.call( this );+ };+ }( jQuery, jQuery.ui.accordion.prototype ) );++ // height options+ (function( $, prototype ) {+ $.extend( prototype.options, {+ heightStyle: null, // remove default so we fall back to old values+ autoHeight: true, // use heightStyle: "auto"+ clearStyle: false, // use heightStyle: "content"+ fillSpace: false // use heightStyle: "fill"+ });++ var _create = prototype._create,+ _setOption = prototype._setOption;++ $.extend( prototype, {+ _create: function() {+ this.options.heightStyle = this.options.heightStyle ||+ this._mergeHeightStyle();++ _create.call( this );+ },++ _setOption: function( key ) {+ if ( key === "autoHeight" || key === "clearStyle" || key === "fillSpace" ) {+ this.options.heightStyle = this._mergeHeightStyle();+ }+ _setOption.apply( this, arguments );+ },++ _mergeHeightStyle: function() {+ var options = this.options;++ if ( options.fillSpace ) {+ return "fill";+ }++ if ( options.clearStyle ) {+ return "content";+ }++ if ( options.autoHeight ) {+ return "auto";+ }+ }+ });+ }( jQuery, jQuery.ui.accordion.prototype ) );++ // icon options+ (function( $, prototype ) {+ $.extend( prototype.options.icons, {+ activeHeader: null, // remove default so we fall back to old values+ headerSelected: "ui-icon-triangle-1-s"+ });++ var _createIcons = prototype._createIcons;+ prototype._createIcons = function() {+ if ( this.options.icons ) {+ this.options.icons.activeHeader = this.options.icons.activeHeader ||+ this.options.icons.headerSelected;+ }+ _createIcons.call( this );+ };+ }( jQuery, jQuery.ui.accordion.prototype ) );++ // expanded active option, activate method+ (function( $, prototype ) {+ prototype.activate = prototype._activate;++ var _findActive = prototype._findActive;+ prototype._findActive = function( index ) {+ if ( index === -1 ) {+ index = false;+ }+ if ( index && typeof index !== "number" ) {+ index = this.headers.index( this.headers.filter( index ) );+ if ( index === -1 ) {+ index = false;+ }+ }+ return _findActive.call( this, index );+ };+ }( jQuery, jQuery.ui.accordion.prototype ) );++ // resize method+ jQuery.ui.accordion.prototype.resize = jQuery.ui.accordion.prototype.refresh;++ // change events+ (function( $, prototype ) {+ $.extend( prototype.options, {+ change: null,+ changestart: null+ });++ var _trigger = prototype._trigger;+ prototype._trigger = function( type, event, data ) {+ var ret = _trigger.apply( this, arguments );+ if ( !ret ) {+ return false;+ }++ if ( type === "beforeActivate" ) {+ ret = _trigger.call( this, "changestart", event, {+ oldHeader: data.oldHeader,+ oldContent: data.oldPanel,+ newHeader: data.newHeader,+ newContent: data.newPanel+ });+ } else if ( type === "activate" ) {+ ret = _trigger.call( this, "change", event, {+ oldHeader: data.oldHeader,+ oldContent: data.oldPanel,+ newHeader: data.newHeader,+ newContent: data.newPanel+ });+ }+ return ret;+ };+ }( jQuery, jQuery.ui.accordion.prototype ) );++ // animated option+ // NOTE: this only provides support for "slide", "bounceslide", and easings+ // not the full $.ui.accordion.animations API+ (function( $, prototype ) {+ $.extend( prototype.options, {+ animate: null,+ animated: "slide"+ });++ var _create = prototype._create;+ prototype._create = function() {+ var options = this.options;+ if ( options.animate === null ) {+ if ( !options.animated ) {+ options.animate = false;+ } else if ( options.animated === "slide" ) {+ options.animate = 300;+ } else if ( options.animated === "bounceslide" ) {+ options.animate = {+ duration: 200,+ down: {+ easing: "easeOutBounce",+ duration: 1000+ }+ };+ } else {+ options.animate = options.animated;+ }+ }++ _create.call( this );+ };+ }( jQuery, jQuery.ui.accordion.prototype ) );+}++})( jQuery );+(function( $, undefined ) {++// used to prevent race conditions with remote data sources+var requestIndex = 0;++$.widget( "ui.autocomplete", {+ version: "1.9.2",+ defaultElement: "<input>",+ options: {+ appendTo: "body",+ autoFocus: false,+ delay: 300,+ minLength: 1,+ position: {+ my: "left top",+ at: "left bottom",+ collision: "none"+ },+ source: null,++ // callbacks+ change: null,+ close: null,+ focus: null,+ open: null,+ response: null,+ search: null,+ select: null+ },++ pending: 0,++ _create: function() {+ // Some browsers only repeat keydown events, not keypress events,+ // so we use the suppressKeyPress flag to determine if we've already+ // handled the keydown event. #7269+ // Unfortunately the code for & in keypress is the same as the up arrow,+ // so we use the suppressKeyPressRepeat flag to avoid handling keypress+ // events when we know the keydown event was used to modify the+ // search term. #7799+ var suppressKeyPress, suppressKeyPressRepeat, suppressInput;++ this.isMultiLine = this._isMultiLine();+ this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ];+ this.isNewMenu = true;++ this.element+ .addClass( "ui-autocomplete-input" )+ .attr( "autocomplete", "off" );++ this._on( this.element, {+ keydown: function( event ) {+ if ( this.element.prop( "readOnly" ) ) {+ suppressKeyPress = true;+ suppressInput = true;+ suppressKeyPressRepeat = true;+ return;+ }++ suppressKeyPress = false;+ suppressInput = false;+ suppressKeyPressRepeat = false;+ var keyCode = $.ui.keyCode;+ switch( event.keyCode ) {+ case keyCode.PAGE_UP:+ suppressKeyPress = true;+ this._move( "previousPage", event );+ break;+ case keyCode.PAGE_DOWN:+ suppressKeyPress = true;+ this._move( "nextPage", event );+ break;+ case keyCode.UP:+ suppressKeyPress = true;+ this._keyEvent( "previous", event );+ break;+ case keyCode.DOWN:+ suppressKeyPress = true;+ this._keyEvent( "next", event );+ break;+ case keyCode.ENTER:+ case keyCode.NUMPAD_ENTER:+ // when menu is open and has focus+ if ( this.menu.active ) {+ // #6055 - Opera still allows the keypress to occur+ // which causes forms to submit+ suppressKeyPress = true;+ event.preventDefault();+ this.menu.select( event );+ }+ break;+ case keyCode.TAB:+ if ( this.menu.active ) {+ this.menu.select( event );+ }+ break;+ case keyCode.ESCAPE:+ if ( this.menu.element.is( ":visible" ) ) {+ this._value( this.term );+ this.close( event );+ // Different browsers have different default behavior for escape+ // Single press can mean undo or clear+ // Double press in IE means clear the whole form+ event.preventDefault();+ }+ break;+ default:+ suppressKeyPressRepeat = true;+ // search timeout should be triggered before the input value is changed+ this._searchTimeout( event );+ break;+ }+ },+ keypress: function( event ) {+ if ( suppressKeyPress ) {+ suppressKeyPress = false;+ event.preventDefault();+ return;+ }+ if ( suppressKeyPressRepeat ) {+ return;+ }++ // replicate some key handlers to allow them to repeat in Firefox and Opera+ var keyCode = $.ui.keyCode;+ switch( event.keyCode ) {+ case keyCode.PAGE_UP:+ this._move( "previousPage", event );+ break;+ case keyCode.PAGE_DOWN:+ this._move( "nextPage", event );+ break;+ case keyCode.UP:+ this._keyEvent( "previous", event );+ break;+ case keyCode.DOWN:+ this._keyEvent( "next", event );+ break;+ }+ },+ input: function( event ) {+ if ( suppressInput ) {+ suppressInput = false;+ event.preventDefault();+ return;+ }+ this._searchTimeout( event );+ },+ focus: function() {+ this.selectedItem = null;+ this.previous = this._value();+ },+ blur: function( event ) {+ if ( this.cancelBlur ) {+ delete this.cancelBlur;+ return;+ }++ clearTimeout( this.searching );+ this.close( event );+ this._change( event );+ }+ });++ this._initSource();+ this.menu = $( "<ul>" )+ .addClass( "ui-autocomplete" )+ .appendTo( this.document.find( this.options.appendTo || "body" )[ 0 ] )+ .menu({+ // custom key handling for now+ input: $(),+ // disable ARIA support, the live region takes care of that+ role: null+ })+ .zIndex( this.element.zIndex() + 1 )+ .hide()+ .data( "menu" );++ this._on( this.menu.element, {+ mousedown: function( event ) {+ // prevent moving focus out of the text field+ event.preventDefault();++ // IE doesn't prevent moving focus even with event.preventDefault()+ // so we set a flag to know when we should ignore the blur event+ this.cancelBlur = true;+ this._delay(function() {+ delete this.cancelBlur;+ });++ // clicking on the scrollbar causes focus to shift to the body+ // but we can't detect a mouseup or a click immediately afterward+ // so we have to track the next mousedown and close the menu if+ // the user clicks somewhere outside of the autocomplete+ var menuElement = this.menu.element[ 0 ];+ if ( !$( event.target ).closest( ".ui-menu-item" ).length ) {+ this._delay(function() {+ var that = this;+ this.document.one( "mousedown", function( event ) {+ if ( event.target !== that.element[ 0 ] &&+ event.target !== menuElement &&+ !$.contains( menuElement, event.target ) ) {+ that.close();+ }+ });+ });+ }+ },+ menufocus: function( event, ui ) {+ // #7024 - Prevent accidental activation of menu items in Firefox+ if ( this.isNewMenu ) {+ this.isNewMenu = false;+ if ( event.originalEvent && /^mouse/.test( event.originalEvent.type ) ) {+ this.menu.blur();++ this.document.one( "mousemove", function() {+ $( event.target ).trigger( event.originalEvent );+ });++ return;+ }+ }++ // back compat for _renderItem using item.autocomplete, via #7810+ // TODO remove the fallback, see #8156+ var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" );+ if ( false !== this._trigger( "focus", event, { item: item } ) ) {+ // use value to match what will end up in the input, if it was a key event+ if ( event.originalEvent && /^key/.test( event.originalEvent.type ) ) {+ this._value( item.value );+ }+ } else {+ // Normally the input is populated with the item's value as the+ // menu is navigated, causing screen readers to notice a change and+ // announce the item. Since the focus event was canceled, this doesn't+ // happen, so we update the live region so that screen readers can+ // still notice the change and announce it.+ this.liveRegion.text( item.value );+ }+ },+ menuselect: function( event, ui ) {+ // back compat for _renderItem using item.autocomplete, via #7810+ // TODO remove the fallback, see #8156+ var item = ui.item.data( "ui-autocomplete-item" ) || ui.item.data( "item.autocomplete" ),+ previous = this.previous;++ // only trigger when focus was lost (click on menu)+ if ( this.element[0] !== this.document[0].activeElement ) {+ this.element.focus();+ this.previous = previous;+ // #6109 - IE triggers two focus events and the second+ // is asynchronous, so we need to reset the previous+ // term synchronously and asynchronously :-(+ this._delay(function() {+ this.previous = previous;+ this.selectedItem = item;+ });+ }++ if ( false !== this._trigger( "select", event, { item: item } ) ) {+ this._value( item.value );+ }+ // reset the term after the select event+ // this allows custom select handling to work properly+ this.term = this._value();++ this.close( event );+ this.selectedItem = item;+ }+ });++ this.liveRegion = $( "<span>", {+ role: "status",+ "aria-live": "polite"+ })+ .addClass( "ui-helper-hidden-accessible" )+ .insertAfter( this.element );++ if ( $.fn.bgiframe ) {+ this.menu.element.bgiframe();+ }++ // turning off autocomplete prevents the browser from remembering the+ // value when navigating through history, so we re-enable autocomplete+ // if the page is unloaded before the widget is destroyed. #7790+ this._on( this.window, {+ beforeunload: function() {+ this.element.removeAttr( "autocomplete" );+ }+ });+ },++ _destroy: function() {+ clearTimeout( this.searching );+ this.element+ .removeClass( "ui-autocomplete-input" )+ .removeAttr( "autocomplete" );+ this.menu.element.remove();+ this.liveRegion.remove();+ },++ _setOption: function( key, value ) {+ this._super( key, value );+ if ( key === "source" ) {+ this._initSource();+ }+ if ( key === "appendTo" ) {+ this.menu.element.appendTo( this.document.find( value || "body" )[0] );+ }+ if ( key === "disabled" && value && this.xhr ) {+ this.xhr.abort();+ }+ },++ _isMultiLine: function() {+ // Textareas are always multi-line+ if ( this.element.is( "textarea" ) ) {+ return true;+ }+ // Inputs are always single-line, even if inside a contentEditable element+ // IE also treats inputs as contentEditable+ if ( this.element.is( "input" ) ) {+ return false;+ }+ // All other element types are determined by whether or not they're contentEditable+ return this.element.prop( "isContentEditable" );+ },++ _initSource: function() {+ var array, url,+ that = this;+ if ( $.isArray(this.options.source) ) {+ array = this.options.source;+ this.source = function( request, response ) {+ response( $.ui.autocomplete.filter( array, request.term ) );+ };+ } else if ( typeof this.options.source === "string" ) {+ url = this.options.source;+ this.source = function( request, response ) {+ if ( that.xhr ) {+ that.xhr.abort();+ }+ that.xhr = $.ajax({+ url: url,+ data: request,+ dataType: "json",+ success: function( data ) {+ response( data );+ },+ error: function() {+ response( [] );+ }+ });+ };+ } else {+ this.source = this.options.source;+ }+ },++ _searchTimeout: function( event ) {+ clearTimeout( this.searching );+ this.searching = this._delay(function() {+ // only search if the value has changed+ if ( this.term !== this._value() ) {+ this.selectedItem = null;+ this.search( null, event );+ }+ }, this.options.delay );+ },++ search: function( value, event ) {+ value = value != null ? value : this._value();++ // always save the actual value, not the one passed as an argument+ this.term = this._value();++ if ( value.length < this.options.minLength ) {+ return this.close( event );+ }++ if ( this._trigger( "search", event ) === false ) {+ return;+ }++ return this._search( value );+ },++ _search: function( value ) {+ this.pending++;+ this.element.addClass( "ui-autocomplete-loading" );+ this.cancelSearch = false;++ this.source( { term: value }, this._response() );+ },++ _response: function() {+ var that = this,+ index = ++requestIndex;++ return function( content ) {+ if ( index === requestIndex ) {+ that.__response( content );+ }++ that.pending--;+ if ( !that.pending ) {+ that.element.removeClass( "ui-autocomplete-loading" );+ }+ };+ },++ __response: function( content ) {+ if ( content ) {+ content = this._normalize( content );+ }+ this._trigger( "response", null, { content: content } );+ if ( !this.options.disabled && content && content.length && !this.cancelSearch ) {+ this._suggest( content );+ this._trigger( "open" );+ } else {+ // use ._close() instead of .close() so we don't cancel future searches+ this._close();+ }+ },++ close: function( event ) {+ this.cancelSearch = true;+ this._close( event );+ },++ _close: function( event ) {+ if ( this.menu.element.is( ":visible" ) ) {+ this.menu.element.hide();+ this.menu.blur();+ this.isNewMenu = true;+ this._trigger( "close", event );+ }+ },++ _change: function( event ) {+ if ( this.previous !== this._value() ) {+ this._trigger( "change", event, { item: this.selectedItem } );+ }+ },++ _normalize: function( items ) {+ // assume all items have the right format when the first item is complete+ if ( items.length && items[0].label && items[0].value ) {+ return items;+ }+ return $.map( items, function( item ) {+ if ( typeof item === "string" ) {+ return {+ label: item,+ value: item+ };+ }+ return $.extend({+ label: item.label || item.value,+ value: item.value || item.label+ }, item );+ });+ },++ _suggest: function( items ) {+ var ul = this.menu.element+ .empty()+ .zIndex( this.element.zIndex() + 1 );+ this._renderMenu( ul, items );+ this.menu.refresh();++ // size and position menu+ ul.show();+ this._resizeMenu();+ ul.position( $.extend({+ of: this.element+ }, this.options.position ));++ if ( this.options.autoFocus ) {+ this.menu.next();+ }+ },++ _resizeMenu: function() {+ var ul = this.menu.element;+ ul.outerWidth( Math.max(+ // Firefox wraps long text (possibly a rounding bug)+ // so we add 1px to avoid the wrapping (#7513)+ ul.width( "" ).outerWidth() + 1,+ this.element.outerWidth()+ ) );+ },++ _renderMenu: function( ul, items ) {+ var that = this;+ $.each( items, function( index, item ) {+ that._renderItemData( ul, item );+ });+ },++ _renderItemData: function( ul, item ) {+ return this._renderItem( ul, item ).data( "ui-autocomplete-item", item );+ },++ _renderItem: function( ul, item ) {+ return $( "<li>" )+ .append( $( "<a>" ).text( item.label ) )+ .appendTo( ul );+ },++ _move: function( direction, event ) {+ if ( !this.menu.element.is( ":visible" ) ) {+ this.search( null, event );+ return;+ }+ if ( this.menu.isFirstItem() && /^previous/.test( direction ) ||+ this.menu.isLastItem() && /^next/.test( direction ) ) {+ this._value( this.term );+ this.menu.blur();+ return;+ }+ this.menu[ direction ]( event );+ },++ widget: function() {+ return this.menu.element;+ },++ _value: function() {+ return this.valueMethod.apply( this.element, arguments );+ },++ _keyEvent: function( keyEvent, event ) {+ if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) {+ this._move( keyEvent, event );++ // prevents moving cursor to beginning/end of the text field in some browsers+ event.preventDefault();+ }+ }+});++$.extend( $.ui.autocomplete, {+ escapeRegex: function( value ) {+ return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");+ },+ filter: function(array, term) {+ var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" );+ return $.grep( array, function(value) {+ return matcher.test( value.label || value.value || value );+ });+ }+});+++// live region extension, adding a `messages` option+// NOTE: This is an experimental API. We are still investigating+// a full solution for string manipulation and internationalization.+$.widget( "ui.autocomplete", $.ui.autocomplete, {+ options: {+ messages: {+ noResults: "No search results.",+ results: function( amount ) {+ return amount + ( amount > 1 ? " results are" : " result is" ) ++ " available, use up and down arrow keys to navigate.";+ }+ }+ },++ __response: function( content ) {+ var message;+ this._superApply( arguments );+ if ( this.options.disabled || this.cancelSearch ) {+ return;+ }+ if ( content && content.length ) {+ message = this.options.messages.results( content.length );+ } else {+ message = this.options.messages.noResults;+ }+ this.liveRegion.text( message );+ }+});+++}( jQuery ));+(function( $, undefined ) {++var lastActive, startXPos, startYPos, clickDragged,+ baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",+ stateClasses = "ui-state-hover ui-state-active ",+ typeClasses = "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",+ formResetHandler = function() {+ var buttons = $( this ).find( ":ui-button" );+ setTimeout(function() {+ buttons.button( "refresh" );+ }, 1 );+ },+ radioGroup = function( radio ) {+ var name = radio.name,+ form = radio.form,+ radios = $( [] );+ if ( name ) {+ if ( form ) {+ radios = $( form ).find( "[name='" + name + "']" );+ } else {+ radios = $( "[name='" + name + "']", radio.ownerDocument )+ .filter(function() {+ return !this.form;+ });+ }+ }+ return radios;+ };++$.widget( "ui.button", {+ version: "1.9.2",+ defaultElement: "<button>",+ options: {+ disabled: null,+ text: true,+ label: null,+ icons: {+ primary: null,+ secondary: null+ }+ },+ _create: function() {+ this.element.closest( "form" )+ .unbind( "reset" + this.eventNamespace )+ .bind( "reset" + this.eventNamespace, formResetHandler );++ if ( typeof this.options.disabled !== "boolean" ) {+ this.options.disabled = !!this.element.prop( "disabled" );+ } else {+ this.element.prop( "disabled", this.options.disabled );+ }++ this._determineButtonType();+ this.hasTitle = !!this.buttonElement.attr( "title" );++ var that = this,+ options = this.options,+ toggleButton = this.type === "checkbox" || this.type === "radio",+ activeClass = !toggleButton ? "ui-state-active" : "",+ focusClass = "ui-state-focus";++ if ( options.label === null ) {+ options.label = (this.type === "input" ? this.buttonElement.val() : this.buttonElement.html());+ }++ this._hoverable( this.buttonElement );++ this.buttonElement+ .addClass( baseClasses )+ .attr( "role", "button" )+ .bind( "mouseenter" + this.eventNamespace, function() {+ if ( options.disabled ) {+ return;+ }+ if ( this === lastActive ) {+ $( this ).addClass( "ui-state-active" );+ }+ })+ .bind( "mouseleave" + this.eventNamespace, function() {+ if ( options.disabled ) {+ return;+ }+ $( this ).removeClass( activeClass );+ })+ .bind( "click" + this.eventNamespace, function( event ) {+ if ( options.disabled ) {+ event.preventDefault();+ event.stopImmediatePropagation();+ }+ });++ this.element+ .bind( "focus" + this.eventNamespace, function() {+ // no need to check disabled, focus won't be triggered anyway+ that.buttonElement.addClass( focusClass );+ })+ .bind( "blur" + this.eventNamespace, function() {+ that.buttonElement.removeClass( focusClass );+ });++ if ( toggleButton ) {+ this.element.bind( "change" + this.eventNamespace, function() {+ if ( clickDragged ) {+ return;+ }+ that.refresh();+ });+ // if mouse moves between mousedown and mouseup (drag) set clickDragged flag+ // prevents issue where button state changes but checkbox/radio checked state+ // does not in Firefox (see ticket #6970)+ this.buttonElement+ .bind( "mousedown" + this.eventNamespace, function( event ) {+ if ( options.disabled ) {+ return;+ }+ clickDragged = false;+ startXPos = event.pageX;+ startYPos = event.pageY;+ })+ .bind( "mouseup" + this.eventNamespace, function( event ) {+ if ( options.disabled ) {+ return;+ }+ if ( startXPos !== event.pageX || startYPos !== event.pageY ) {+ clickDragged = true;+ }+ });+ }++ if ( this.type === "checkbox" ) {+ this.buttonElement.bind( "click" + this.eventNamespace, function() {+ if ( options.disabled || clickDragged ) {+ return false;+ }+ $( this ).toggleClass( "ui-state-active" );+ that.buttonElement.attr( "aria-pressed", that.element[0].checked );+ });+ } else if ( this.type === "radio" ) {+ this.buttonElement.bind( "click" + this.eventNamespace, function() {+ if ( options.disabled || clickDragged ) {+ return false;+ }+ $( this ).addClass( "ui-state-active" );+ that.buttonElement.attr( "aria-pressed", "true" );++ var radio = that.element[ 0 ];+ radioGroup( radio )+ .not( radio )+ .map(function() {+ return $( this ).button( "widget" )[ 0 ];+ })+ .removeClass( "ui-state-active" )+ .attr( "aria-pressed", "false" );+ });+ } else {+ this.buttonElement+ .bind( "mousedown" + this.eventNamespace, function() {+ if ( options.disabled ) {+ return false;+ }+ $( this ).addClass( "ui-state-active" );+ lastActive = this;+ that.document.one( "mouseup", function() {+ lastActive = null;+ });+ })+ .bind( "mouseup" + this.eventNamespace, function() {+ if ( options.disabled ) {+ return false;+ }+ $( this ).removeClass( "ui-state-active" );+ })+ .bind( "keydown" + this.eventNamespace, function(event) {+ if ( options.disabled ) {+ return false;+ }+ if ( event.keyCode === $.ui.keyCode.SPACE || event.keyCode === $.ui.keyCode.ENTER ) {+ $( this ).addClass( "ui-state-active" );+ }+ })+ .bind( "keyup" + this.eventNamespace, function() {+ $( this ).removeClass( "ui-state-active" );+ });++ if ( this.buttonElement.is("a") ) {+ this.buttonElement.keyup(function(event) {+ if ( event.keyCode === $.ui.keyCode.SPACE ) {+ // TODO pass through original event correctly (just as 2nd argument doesn't work)+ $( this ).click();+ }+ });+ }+ }++ // TODO: pull out $.Widget's handling for the disabled option into+ // $.Widget.prototype._setOptionDisabled so it's easy to proxy and can+ // be overridden by individual plugins+ this._setOption( "disabled", options.disabled );+ this._resetButton();+ },++ _determineButtonType: function() {+ var ancestor, labelSelector, checked;++ if ( this.element.is("[type=checkbox]") ) {+ this.type = "checkbox";+ } else if ( this.element.is("[type=radio]") ) {+ this.type = "radio";+ } else if ( this.element.is("input") ) {+ this.type = "input";+ } else {+ this.type = "button";+ }++ if ( this.type === "checkbox" || this.type === "radio" ) {+ // we don't search against the document in case the element+ // is disconnected from the DOM+ ancestor = this.element.parents().last();+ labelSelector = "label[for='" + this.element.attr("id") + "']";+ this.buttonElement = ancestor.find( labelSelector );+ if ( !this.buttonElement.length ) {+ ancestor = ancestor.length ? ancestor.siblings() : this.element.siblings();+ this.buttonElement = ancestor.filter( labelSelector );+ if ( !this.buttonElement.length ) {+ this.buttonElement = ancestor.find( labelSelector );+ }+ }+ this.element.addClass( "ui-helper-hidden-accessible" );++ checked = this.element.is( ":checked" );+ if ( checked ) {+ this.buttonElement.addClass( "ui-state-active" );+ }+ this.buttonElement.prop( "aria-pressed", checked );+ } else {+ this.buttonElement = this.element;+ }+ },++ widget: function() {+ return this.buttonElement;+ },++ _destroy: function() {+ this.element+ .removeClass( "ui-helper-hidden-accessible" );+ this.buttonElement+ .removeClass( baseClasses + " " + stateClasses + " " + typeClasses )+ .removeAttr( "role" )+ .removeAttr( "aria-pressed" )+ .html( this.buttonElement.find(".ui-button-text").html() );++ if ( !this.hasTitle ) {+ this.buttonElement.removeAttr( "title" );+ }+ },++ _setOption: function( key, value ) {+ this._super( key, value );+ if ( key === "disabled" ) {+ if ( value ) {+ this.element.prop( "disabled", true );+ } else {+ this.element.prop( "disabled", false );+ }+ return;+ }+ this._resetButton();+ },++ refresh: function() {+ //See #8237 & #8828+ var isDisabled = this.element.is( "input, button" ) ? this.element.is( ":disabled" ) : this.element.hasClass( "ui-button-disabled" );++ if ( isDisabled !== this.options.disabled ) {+ this._setOption( "disabled", isDisabled );+ }+ if ( this.type === "radio" ) {+ radioGroup( this.element[0] ).each(function() {+ if ( $( this ).is( ":checked" ) ) {+ $( this ).button( "widget" )+ .addClass( "ui-state-active" )+ .attr( "aria-pressed", "true" );+ } else {+ $( this ).button( "widget" )+ .removeClass( "ui-state-active" )+ .attr( "aria-pressed", "false" );+ }+ });+ } else if ( this.type === "checkbox" ) {+ if ( this.element.is( ":checked" ) ) {+ this.buttonElement+ .addClass( "ui-state-active" )+ .attr( "aria-pressed", "true" );+ } else {+ this.buttonElement+ .removeClass( "ui-state-active" )+ .attr( "aria-pressed", "false" );+ }+ }+ },++ _resetButton: function() {+ if ( this.type === "input" ) {+ if ( this.options.label ) {+ this.element.val( this.options.label );+ }+ return;+ }+ var buttonElement = this.buttonElement.removeClass( typeClasses ),+ buttonText = $( "<span></span>", this.document[0] )+ .addClass( "ui-button-text" )+ .html( this.options.label )+ .appendTo( buttonElement.empty() )+ .text(),+ icons = this.options.icons,+ multipleIcons = icons.primary && icons.secondary,+ buttonClasses = [];++ if ( icons.primary || icons.secondary ) {+ if ( this.options.text ) {+ buttonClasses.push( "ui-button-text-icon" + ( multipleIcons ? "s" : ( icons.primary ? "-primary" : "-secondary" ) ) );+ }++ if ( icons.primary ) {+ buttonElement.prepend( "<span class='ui-button-icon-primary ui-icon " + icons.primary + "'></span>" );+ }++ if ( icons.secondary ) {+ buttonElement.append( "<span class='ui-button-icon-secondary ui-icon " + icons.secondary + "'></span>" );+ }++ if ( !this.options.text ) {+ buttonClasses.push( multipleIcons ? "ui-button-icons-only" : "ui-button-icon-only" );++ if ( !this.hasTitle ) {+ buttonElement.attr( "title", $.trim( buttonText ) );+ }+ }+ } else {+ buttonClasses.push( "ui-button-text-only" );+ }+ buttonElement.addClass( buttonClasses.join( " " ) );+ }+});++$.widget( "ui.buttonset", {+ version: "1.9.2",+ options: {+ items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(button)"+ },++ _create: function() {+ this.element.addClass( "ui-buttonset" );+ },++ _init: function() {+ this.refresh();+ },++ _setOption: function( key, value ) {+ if ( key === "disabled" ) {+ this.buttons.button( "option", key, value );+ }++ this._super( key, value );+ },++ refresh: function() {+ var rtl = this.element.css( "direction" ) === "rtl";++ this.buttons = this.element.find( this.options.items )+ .filter( ":ui-button" )+ .button( "refresh" )+ .end()+ .not( ":ui-button" )+ .button()+ .end()+ .map(function() {+ return $( this ).button( "widget" )[ 0 ];+ })+ .removeClass( "ui-corner-all ui-corner-left ui-corner-right" )+ .filter( ":first" )+ .addClass( rtl ? "ui-corner-right" : "ui-corner-left" )+ .end()+ .filter( ":last" )+ .addClass( rtl ? "ui-corner-left" : "ui-corner-right" )+ .end()+ .end();+ },++ _destroy: function() {+ this.element.removeClass( "ui-buttonset" );+ this.buttons+ .map(function() {+ return $( this ).button( "widget" )[ 0 ];+ })+ .removeClass( "ui-corner-left ui-corner-right" )+ .end()+ .button( "destroy" );+ }+});++}( jQuery ) );+(function( $, undefined ) {++$.extend($.ui, { datepicker: { version: "1.9.2" } });++var PROP_NAME = 'datepicker';+var dpuuid = new Date().getTime();+var instActive;++/* Date picker manager.+ Use the singleton instance of this class, $.datepicker, to interact with the date picker.+ Settings for (groups of) date pickers are maintained in an instance object,+ allowing multiple different settings on the same page. */++function Datepicker() {+ this.debug = false; // Change this to true to start debugging+ this._curInst = null; // The current instance in use+ this._keyEvent = false; // If the last event was a key event+ this._disabledInputs = []; // List of date picker inputs that have been disabled+ this._datepickerShowing = false; // True if the popup picker is showing , false if not+ this._inDialog = false; // True if showing within a "dialog", false if not+ this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division+ this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class+ this._appendClass = 'ui-datepicker-append'; // The name of the append marker class+ this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class+ this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class+ this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class+ this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class+ this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class+ this._dayOverClass = 'ui-datepicker-days-cell-over'; // The name of the day hover marker class+ this.regional = []; // Available regional settings, indexed by language code+ this.regional[''] = { // Default regional settings+ closeText: 'Done', // Display text for close link+ prevText: 'Prev', // Display text for previous month link+ nextText: 'Next', // Display text for next month link+ currentText: 'Today', // Display text for current month link+ monthNames: ['January','February','March','April','May','June',+ 'July','August','September','October','November','December'], // Names of months for drop-down and formatting+ monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting+ dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting+ dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting+ dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday+ weekHeader: 'Wk', // Column header for week of the year+ dateFormat: 'mm/dd/yy', // See format options on parseDate+ firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...+ isRTL: false, // True if right-to-left language, false if left-to-right+ showMonthAfterYear: false, // True if the year select precedes month, false for month then year+ yearSuffix: '' // Additional text to append to the year in the month headers+ };+ this._defaults = { // Global defaults for all the date picker instances+ showOn: 'focus', // 'focus' for popup on focus,+ // 'button' for trigger button, or 'both' for either+ showAnim: 'fadeIn', // Name of jQuery animation for popup+ showOptions: {}, // Options for enhanced animations+ defaultDate: null, // Used when field is blank: actual date,+ // +/-number for offset from today, null for today+ appendText: '', // Display text following the input box, e.g. showing the format+ buttonText: '...', // Text for trigger button+ buttonImage: '', // URL for trigger button image+ buttonImageOnly: false, // True if the image appears alone, false if it appears on a button+ hideIfNoPrevNext: false, // True to hide next/previous month links+ // if not applicable, false to just disable them+ navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links+ gotoCurrent: false, // True if today link goes back to current selection instead+ changeMonth: false, // True if month can be selected directly, false if only prev/next+ changeYear: false, // True if year can be selected directly, false if only prev/next+ yearRange: 'c-10:c+10', // Range of years to display in drop-down,+ // either relative to today's year (-nn:+nn), relative to currently displayed year+ // (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)+ showOtherMonths: false, // True to show dates in other months, false to leave blank+ selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable+ showWeek: false, // True to show week of the year, false to not show it+ calculateWeek: this.iso8601Week, // How to calculate the week of the year,+ // takes a Date and returns the number of the week for it+ shortYearCutoff: '+10', // Short year values < this are in the current century,+ // > this are in the previous century,+ // string value starting with '+' for current year + value+ minDate: null, // The earliest selectable date, or null for no limit+ maxDate: null, // The latest selectable date, or null for no limit+ duration: 'fast', // Duration of display/closure+ beforeShowDay: null, // Function that takes a date and returns an array with+ // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '',+ // [2] = cell title (optional), e.g. $.datepicker.noWeekends+ beforeShow: null, // Function that takes an input field and+ // returns a set of custom settings for the date picker+ onSelect: null, // Define a callback function when a date is selected+ onChangeMonthYear: null, // Define a callback function when the month or year is changed+ onClose: null, // Define a callback function when the datepicker is closed+ numberOfMonths: 1, // Number of months to show at a time+ showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)+ stepMonths: 1, // Number of months to step back/forward+ stepBigMonths: 12, // Number of months to step back/forward for the big links+ altField: '', // Selector for an alternate field to store selected dates into+ altFormat: '', // The date format to use for the alternate field+ constrainInput: true, // The input is constrained by the current date format+ showButtonPanel: false, // True to show button panel, false to not show it+ autoSize: false, // True to size the input for the date format, false to leave as is+ disabled: false // The initial disabled state+ };+ $.extend(this._defaults, this.regional['']);+ this.dpDiv = bindHover($('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'));+}++$.extend(Datepicker.prototype, {+ /* Class name added to elements to indicate already configured with a date picker. */+ markerClassName: 'hasDatepicker',++ //Keep track of the maximum number of rows displayed (see #7043)+ maxRows: 4,++ /* Debug logging (if enabled). */+ log: function () {+ if (this.debug)+ console.log.apply('', arguments);+ },++ // TODO rename to "widget" when switching to widget factory+ _widgetDatepicker: function() {+ return this.dpDiv;+ },++ /* Override the default settings for all instances of the date picker.+ @param settings object - the new settings to use as defaults (anonymous object)+ @return the manager object */+ setDefaults: function(settings) {+ extendRemove(this._defaults, settings || {});+ return this;+ },++ /* Attach the date picker to a jQuery selection.+ @param target element - the target input field or division or span+ @param settings object - the new settings to use for this date picker instance (anonymous) */+ _attachDatepicker: function(target, settings) {+ // check for settings on the control itself - in namespace 'date:'+ var inlineSettings = null;+ for (var attrName in this._defaults) {+ var attrValue = target.getAttribute('date:' + attrName);+ if (attrValue) {+ inlineSettings = inlineSettings || {};+ try {+ inlineSettings[attrName] = eval(attrValue);+ } catch (err) {+ inlineSettings[attrName] = attrValue;+ }+ }+ }+ var nodeName = target.nodeName.toLowerCase();+ var inline = (nodeName == 'div' || nodeName == 'span');+ if (!target.id) {+ this.uuid += 1;+ target.id = 'dp' + this.uuid;+ }+ var inst = this._newInst($(target), inline);+ inst.settings = $.extend({}, settings || {}, inlineSettings || {});+ if (nodeName == 'input') {+ this._connectDatepicker(target, inst);+ } else if (inline) {+ this._inlineDatepicker(target, inst);+ }+ },++ /* Create a new instance object. */+ _newInst: function(target, inline) {+ var id = target[0].id.replace(/([^A-Za-z0-9_-])/g, '\\\\$1'); // escape jQuery meta chars+ return {id: id, input: target, // associated target+ selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection+ drawMonth: 0, drawYear: 0, // month being drawn+ inline: inline, // is datepicker inline or not+ dpDiv: (!inline ? this.dpDiv : // presentation div+ bindHover($('<div class="' + this._inlineClass + ' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')))};+ },++ /* Attach the date picker to an input field. */+ _connectDatepicker: function(target, inst) {+ var input = $(target);+ inst.append = $([]);+ inst.trigger = $([]);+ if (input.hasClass(this.markerClassName))+ return;+ this._attachments(input, inst);+ input.addClass(this.markerClassName).keydown(this._doKeyDown).+ keypress(this._doKeyPress).keyup(this._doKeyUp).+ bind("setData.datepicker", function(event, key, value) {+ inst.settings[key] = value;+ }).bind("getData.datepicker", function(event, key) {+ return this._get(inst, key);+ });+ this._autoSize(inst);+ $.data(target, PROP_NAME, inst);+ //If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)+ if( inst.settings.disabled ) {+ this._disableDatepicker( target );+ }+ },++ /* Make attachments based on settings. */+ _attachments: function(input, inst) {+ var appendText = this._get(inst, 'appendText');+ var isRTL = this._get(inst, 'isRTL');+ if (inst.append)+ inst.append.remove();+ if (appendText) {+ inst.append = $('<span class="' + this._appendClass + '">' + appendText + '</span>');+ input[isRTL ? 'before' : 'after'](inst.append);+ }+ input.unbind('focus', this._showDatepicker);+ if (inst.trigger)+ inst.trigger.remove();+ var showOn = this._get(inst, 'showOn');+ if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field+ input.focus(this._showDatepicker);+ if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked+ var buttonText = this._get(inst, 'buttonText');+ var buttonImage = this._get(inst, 'buttonImage');+ inst.trigger = $(this._get(inst, 'buttonImageOnly') ?+ $('<img/>').addClass(this._triggerClass).+ attr({ src: buttonImage, alt: buttonText, title: buttonText }) :+ $('<button type="button"></button>').addClass(this._triggerClass).+ html(buttonImage == '' ? buttonText : $('<img/>').attr(+ { src:buttonImage, alt:buttonText, title:buttonText })));+ input[isRTL ? 'before' : 'after'](inst.trigger);+ inst.trigger.click(function() {+ if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0])+ $.datepicker._hideDatepicker();+ else if ($.datepicker._datepickerShowing && $.datepicker._lastInput != input[0]) {+ $.datepicker._hideDatepicker();+ $.datepicker._showDatepicker(input[0]);+ } else+ $.datepicker._showDatepicker(input[0]);+ return false;+ });+ }+ },++ /* Apply the maximum length for the date format. */+ _autoSize: function(inst) {+ if (this._get(inst, 'autoSize') && !inst.inline) {+ var date = new Date(2009, 12 - 1, 20); // Ensure double digits+ var dateFormat = this._get(inst, 'dateFormat');+ if (dateFormat.match(/[DM]/)) {+ var findMax = function(names) {+ var max = 0;+ var maxI = 0;+ for (var i = 0; i < names.length; i++) {+ if (names[i].length > max) {+ max = names[i].length;+ maxI = i;+ }+ }+ return maxI;+ };+ date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?+ 'monthNames' : 'monthNamesShort'))));+ date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?+ 'dayNames' : 'dayNamesShort'))) + 20 - date.getDay());+ }+ inst.input.attr('size', this._formatDate(inst, date).length);+ }+ },++ /* Attach an inline date picker to a div. */+ _inlineDatepicker: function(target, inst) {+ var divSpan = $(target);+ if (divSpan.hasClass(this.markerClassName))+ return;+ divSpan.addClass(this.markerClassName).append(inst.dpDiv).+ bind("setData.datepicker", function(event, key, value){+ inst.settings[key] = value;+ }).bind("getData.datepicker", function(event, key){+ return this._get(inst, key);+ });+ $.data(target, PROP_NAME, inst);+ this._setDate(inst, this._getDefaultDate(inst), true);+ this._updateDatepicker(inst);+ this._updateAlternate(inst);+ //If disabled option is true, disable the datepicker before showing it (see ticket #5665)+ if( inst.settings.disabled ) {+ this._disableDatepicker( target );+ }+ // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements+ // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height+ inst.dpDiv.css( "display", "block" );+ },++ /* Pop-up the date picker in a "dialog" box.+ @param input element - ignored+ @param date string or Date - the initial date to display+ @param onSelect function - the function to call when a date is selected+ @param settings object - update the dialog date picker instance's settings (anonymous object)+ @param pos int[2] - coordinates for the dialog's position within the screen or+ event - with x/y coordinates or+ leave empty for default (screen centre)+ @return the manager object */+ _dialogDatepicker: function(input, date, onSelect, settings, pos) {+ var inst = this._dialogInst; // internal instance+ if (!inst) {+ this.uuid += 1;+ var id = 'dp' + this.uuid;+ this._dialogInput = $('<input type="text" id="' + id ++ '" style="position: absolute; top: -100px; width: 0px;"/>');+ this._dialogInput.keydown(this._doKeyDown);+ $('body').append(this._dialogInput);+ inst = this._dialogInst = this._newInst(this._dialogInput, false);+ inst.settings = {};+ $.data(this._dialogInput[0], PROP_NAME, inst);+ }+ extendRemove(inst.settings, settings || {});+ date = (date && date.constructor == Date ? this._formatDate(inst, date) : date);+ this._dialogInput.val(date);++ this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);+ if (!this._pos) {+ var browserWidth = document.documentElement.clientWidth;+ var browserHeight = document.documentElement.clientHeight;+ var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;+ var scrollY = document.documentElement.scrollTop || document.body.scrollTop;+ this._pos = // should use actual width/height below+ [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];+ }++ // move input on screen for focus, but hidden behind dialog+ this._dialogInput.css('left', (this._pos[0] + 20) + 'px').css('top', this._pos[1] + 'px');+ inst.settings.onSelect = onSelect;+ this._inDialog = true;+ this.dpDiv.addClass(this._dialogClass);+ this._showDatepicker(this._dialogInput[0]);+ if ($.blockUI)+ $.blockUI(this.dpDiv);+ $.data(this._dialogInput[0], PROP_NAME, inst);+ return this;+ },++ /* Detach a datepicker from its control.+ @param target element - the target input field or division or span */+ _destroyDatepicker: function(target) {+ var $target = $(target);+ var inst = $.data(target, PROP_NAME);+ if (!$target.hasClass(this.markerClassName)) {+ return;+ }+ var nodeName = target.nodeName.toLowerCase();+ $.removeData(target, PROP_NAME);+ if (nodeName == 'input') {+ inst.append.remove();+ inst.trigger.remove();+ $target.removeClass(this.markerClassName).+ unbind('focus', this._showDatepicker).+ unbind('keydown', this._doKeyDown).+ unbind('keypress', this._doKeyPress).+ unbind('keyup', this._doKeyUp);+ } else if (nodeName == 'div' || nodeName == 'span')+ $target.removeClass(this.markerClassName).empty();+ },++ /* Enable the date picker to a jQuery selection.+ @param target element - the target input field or division or span */+ _enableDatepicker: function(target) {+ var $target = $(target);+ var inst = $.data(target, PROP_NAME);+ if (!$target.hasClass(this.markerClassName)) {+ return;+ }+ var nodeName = target.nodeName.toLowerCase();+ if (nodeName == 'input') {+ target.disabled = false;+ inst.trigger.filter('button').+ each(function() { this.disabled = false; }).end().+ filter('img').css({opacity: '1.0', cursor: ''});+ }+ else if (nodeName == 'div' || nodeName == 'span') {+ var inline = $target.children('.' + this._inlineClass);+ inline.children().removeClass('ui-state-disabled');+ inline.find("select.ui-datepicker-month, select.ui-datepicker-year").+ prop("disabled", false);+ }+ this._disabledInputs = $.map(this._disabledInputs,+ function(value) { return (value == target ? null : value); }); // delete entry+ },++ /* Disable the date picker to a jQuery selection.+ @param target element - the target input field or division or span */+ _disableDatepicker: function(target) {+ var $target = $(target);+ var inst = $.data(target, PROP_NAME);+ if (!$target.hasClass(this.markerClassName)) {+ return;+ }+ var nodeName = target.nodeName.toLowerCase();+ if (nodeName == 'input') {+ target.disabled = true;+ inst.trigger.filter('button').+ each(function() { this.disabled = true; }).end().+ filter('img').css({opacity: '0.5', cursor: 'default'});+ }+ else if (nodeName == 'div' || nodeName == 'span') {+ var inline = $target.children('.' + this._inlineClass);+ inline.children().addClass('ui-state-disabled');+ inline.find("select.ui-datepicker-month, select.ui-datepicker-year").+ prop("disabled", true);+ }+ this._disabledInputs = $.map(this._disabledInputs,+ function(value) { return (value == target ? null : value); }); // delete entry+ this._disabledInputs[this._disabledInputs.length] = target;+ },++ /* Is the first field in a jQuery collection disabled as a datepicker?+ @param target element - the target input field or division or span+ @return boolean - true if disabled, false if enabled */+ _isDisabledDatepicker: function(target) {+ if (!target) {+ return false;+ }+ for (var i = 0; i < this._disabledInputs.length; i++) {+ if (this._disabledInputs[i] == target)+ return true;+ }+ return false;+ },++ /* Retrieve the instance data for the target control.+ @param target element - the target input field or division or span+ @return object - the associated instance data+ @throws error if a jQuery problem getting data */+ _getInst: function(target) {+ try {+ return $.data(target, PROP_NAME);+ }+ catch (err) {+ throw 'Missing instance data for this datepicker';+ }+ },++ /* Update or retrieve the settings for a date picker attached to an input field or division.+ @param target element - the target input field or division or span+ @param name object - the new settings to update or+ string - the name of the setting to change or retrieve,+ when retrieving also 'all' for all instance settings or+ 'defaults' for all global defaults+ @param value any - the new value for the setting+ (omit if above is an object or to retrieve a value) */+ _optionDatepicker: function(target, name, value) {+ var inst = this._getInst(target);+ if (arguments.length == 2 && typeof name == 'string') {+ return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :+ (inst ? (name == 'all' ? $.extend({}, inst.settings) :+ this._get(inst, name)) : null));+ }+ var settings = name || {};+ if (typeof name == 'string') {+ settings = {};+ settings[name] = value;+ }+ if (inst) {+ if (this._curInst == inst) {+ this._hideDatepicker();+ }+ var date = this._getDateDatepicker(target, true);+ var minDate = this._getMinMaxDate(inst, 'min');+ var maxDate = this._getMinMaxDate(inst, 'max');+ extendRemove(inst.settings, settings);+ // reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided+ if (minDate !== null && settings['dateFormat'] !== undefined && settings['minDate'] === undefined)+ inst.settings.minDate = this._formatDate(inst, minDate);+ if (maxDate !== null && settings['dateFormat'] !== undefined && settings['maxDate'] === undefined)+ inst.settings.maxDate = this._formatDate(inst, maxDate);+ this._attachments($(target), inst);+ this._autoSize(inst);+ this._setDate(inst, date);+ this._updateAlternate(inst);+ this._updateDatepicker(inst);+ }+ },++ // change method deprecated+ _changeDatepicker: function(target, name, value) {+ this._optionDatepicker(target, name, value);+ },++ /* Redraw the date picker attached to an input field or division.+ @param target element - the target input field or division or span */+ _refreshDatepicker: function(target) {+ var inst = this._getInst(target);+ if (inst) {+ this._updateDatepicker(inst);+ }+ },++ /* Set the dates for a jQuery selection.+ @param target element - the target input field or division or span+ @param date Date - the new date */+ _setDateDatepicker: function(target, date) {+ var inst = this._getInst(target);+ if (inst) {+ this._setDate(inst, date);+ this._updateDatepicker(inst);+ this._updateAlternate(inst);+ }+ },++ /* Get the date(s) for the first entry in a jQuery selection.+ @param target element - the target input field or division or span+ @param noDefault boolean - true if no default date is to be used+ @return Date - the current date */+ _getDateDatepicker: function(target, noDefault) {+ var inst = this._getInst(target);+ if (inst && !inst.inline)+ this._setDateFromField(inst, noDefault);+ return (inst ? this._getDate(inst) : null);+ },++ /* Handle keystrokes. */+ _doKeyDown: function(event) {+ var inst = $.datepicker._getInst(event.target);+ var handled = true;+ var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');+ inst._keyEvent = true;+ if ($.datepicker._datepickerShowing)+ switch (event.keyCode) {+ case 9: $.datepicker._hideDatepicker();+ handled = false;+ break; // hide on tab out+ case 13: var sel = $('td.' + $.datepicker._dayOverClass + ':not(.' ++ $.datepicker._currentClass + ')', inst.dpDiv);+ if (sel[0])+ $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);+ var onSelect = $.datepicker._get(inst, 'onSelect');+ if (onSelect) {+ var dateStr = $.datepicker._formatDate(inst);++ // trigger custom callback+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);+ }+ else+ $.datepicker._hideDatepicker();+ return false; // don't submit the form+ break; // select the value on enter+ case 27: $.datepicker._hideDatepicker();+ break; // hide on escape+ case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?+ -$.datepicker._get(inst, 'stepBigMonths') :+ -$.datepicker._get(inst, 'stepMonths')), 'M');+ break; // previous month/year on page up/+ ctrl+ case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?+ +$.datepicker._get(inst, 'stepBigMonths') :+ +$.datepicker._get(inst, 'stepMonths')), 'M');+ break; // next month/year on page down/+ ctrl+ case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target);+ handled = event.ctrlKey || event.metaKey;+ break; // clear on ctrl or command +end+ case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target);+ handled = event.ctrlKey || event.metaKey;+ break; // current on ctrl or command +home+ case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), 'D');+ handled = event.ctrlKey || event.metaKey;+ // -1 day on ctrl or command +left+ if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ?+ -$.datepicker._get(inst, 'stepBigMonths') :+ -$.datepicker._get(inst, 'stepMonths')), 'M');+ // next month/year on alt +left on Mac+ break;+ case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D');+ handled = event.ctrlKey || event.metaKey;+ break; // -1 week on ctrl or command +up+ case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), 'D');+ handled = event.ctrlKey || event.metaKey;+ // +1 day on ctrl or command +right+ if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ?+ +$.datepicker._get(inst, 'stepBigMonths') :+ +$.datepicker._get(inst, 'stepMonths')), 'M');+ // next month/year on alt +right+ break;+ case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D');+ handled = event.ctrlKey || event.metaKey;+ break; // +1 week on ctrl or command +down+ default: handled = false;+ }+ else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home+ $.datepicker._showDatepicker(this);+ else {+ handled = false;+ }+ if (handled) {+ event.preventDefault();+ event.stopPropagation();+ }+ },++ /* Filter entered characters - based on date format. */+ _doKeyPress: function(event) {+ var inst = $.datepicker._getInst(event.target);+ if ($.datepicker._get(inst, 'constrainInput')) {+ var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat'));+ var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode);+ return event.ctrlKey || event.metaKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);+ }+ },++ /* Synchronise manual entry and field/alternate field. */+ _doKeyUp: function(event) {+ var inst = $.datepicker._getInst(event.target);+ if (inst.input.val() != inst.lastVal) {+ try {+ var date = $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),+ (inst.input ? inst.input.val() : null),+ $.datepicker._getFormatConfig(inst));+ if (date) { // only if valid+ $.datepicker._setDateFromField(inst);+ $.datepicker._updateAlternate(inst);+ $.datepicker._updateDatepicker(inst);+ }+ }+ catch (err) {+ $.datepicker.log(err);+ }+ }+ return true;+ },++ /* Pop-up the date picker for a given input field.+ If false returned from beforeShow event handler do not show.+ @param input element - the input field attached to the date picker or+ event - if triggered by focus */+ _showDatepicker: function(input) {+ input = input.target || input;+ if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger+ input = $('input', input.parentNode)[0];+ if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here+ return;+ var inst = $.datepicker._getInst(input);+ if ($.datepicker._curInst && $.datepicker._curInst != inst) {+ $.datepicker._curInst.dpDiv.stop(true, true);+ if ( inst && $.datepicker._datepickerShowing ) {+ $.datepicker._hideDatepicker( $.datepicker._curInst.input[0] );+ }+ }+ var beforeShow = $.datepicker._get(inst, 'beforeShow');+ var beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};+ if(beforeShowSettings === false){+ //false+ return;+ }+ extendRemove(inst.settings, beforeShowSettings);+ inst.lastVal = null;+ $.datepicker._lastInput = input;+ $.datepicker._setDateFromField(inst);+ if ($.datepicker._inDialog) // hide cursor+ input.value = '';+ if (!$.datepicker._pos) { // position below input+ $.datepicker._pos = $.datepicker._findPos(input);+ $.datepicker._pos[1] += input.offsetHeight; // add the height+ }+ var isFixed = false;+ $(input).parents().each(function() {+ isFixed |= $(this).css('position') == 'fixed';+ return !isFixed;+ });+ var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};+ $.datepicker._pos = null;+ //to avoid flashes on Firefox+ inst.dpDiv.empty();+ // determine sizing offscreen+ inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'});+ $.datepicker._updateDatepicker(inst);+ // fix width for dynamic number of date pickers+ // and adjust position before showing+ offset = $.datepicker._checkOffset(inst, offset, isFixed);+ inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?+ 'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none',+ left: offset.left + 'px', top: offset.top + 'px'});+ if (!inst.inline) {+ var showAnim = $.datepicker._get(inst, 'showAnim');+ var duration = $.datepicker._get(inst, 'duration');+ var postProcess = function() {+ var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only+ if( !! cover.length ){+ var borders = $.datepicker._getBorders(inst.dpDiv);+ cover.css({left: -borders[0], top: -borders[1],+ width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()});+ }+ };+ inst.dpDiv.zIndex($(input).zIndex()+1);+ $.datepicker._datepickerShowing = true;++ // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed+ if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )+ inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);+ else+ inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);+ if (!showAnim || !duration)+ postProcess();+ if (inst.input.is(':visible') && !inst.input.is(':disabled'))+ inst.input.focus();+ $.datepicker._curInst = inst;+ }+ },++ /* Generate the date picker content. */+ _updateDatepicker: function(inst) {+ this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)+ var borders = $.datepicker._getBorders(inst.dpDiv);+ instActive = inst; // for delegate hover events+ inst.dpDiv.empty().append(this._generateHTML(inst));+ this._attachHandlers(inst);+ var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only+ if( !!cover.length ){ //avoid call to outerXXXX() when not in IE6+ cover.css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()})+ }+ inst.dpDiv.find('.' + this._dayOverClass + ' a').mouseover();+ var numMonths = this._getNumberOfMonths(inst);+ var cols = numMonths[1];+ var width = 17;+ inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('');+ if (cols > 1)+ inst.dpDiv.addClass('ui-datepicker-multi-' + cols).css('width', (width * cols) + 'em');+ inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') ++ 'Class']('ui-datepicker-multi');+ inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') ++ 'Class']('ui-datepicker-rtl');+ if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&+ // #6694 - don't focus the input if it's already focused+ // this breaks the change event in IE+ inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)+ inst.input.focus();+ // deffered render of the years select (to avoid flashes on Firefox)+ if( inst.yearshtml ){+ var origyearshtml = inst.yearshtml;+ setTimeout(function(){+ //assure that inst.yearshtml didn't change.+ if( origyearshtml === inst.yearshtml && inst.yearshtml ){+ inst.dpDiv.find('select.ui-datepicker-year:first').replaceWith(inst.yearshtml);+ }+ origyearshtml = inst.yearshtml = null;+ }, 0);+ }+ },++ /* Retrieve the size of left and top borders for an element.+ @param elem (jQuery object) the element of interest+ @return (number[2]) the left and top borders */+ _getBorders: function(elem) {+ var convert = function(value) {+ return {thin: 1, medium: 2, thick: 3}[value] || value;+ };+ return [parseFloat(convert(elem.css('border-left-width'))),+ parseFloat(convert(elem.css('border-top-width')))];+ },++ /* Check positioning to remain on screen. */+ _checkOffset: function(inst, offset, isFixed) {+ var dpWidth = inst.dpDiv.outerWidth();+ var dpHeight = inst.dpDiv.outerHeight();+ var inputWidth = inst.input ? inst.input.outerWidth() : 0;+ var inputHeight = inst.input ? inst.input.outerHeight() : 0;+ var viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft());+ var viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());++ offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0);+ offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;+ offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;++ // now check if datepicker is showing outside window viewport - move to a better place if so.+ offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?+ Math.abs(offset.left + dpWidth - viewWidth) : 0);+ offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?+ Math.abs(dpHeight + inputHeight) : 0);++ return offset;+ },++ /* Find an object's position on the screen. */+ _findPos: function(obj) {+ var inst = this._getInst(obj);+ var isRTL = this._get(inst, 'isRTL');+ while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {+ obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];+ }+ var position = $(obj).offset();+ return [position.left, position.top];+ },++ /* Hide the date picker from view.+ @param input element - the input field attached to the date picker */+ _hideDatepicker: function(input) {+ var inst = this._curInst;+ if (!inst || (input && inst != $.data(input, PROP_NAME)))+ return;+ if (this._datepickerShowing) {+ var showAnim = this._get(inst, 'showAnim');+ var duration = this._get(inst, 'duration');+ var postProcess = function() {+ $.datepicker._tidyDialog(inst);+ };++ // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed+ if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) )+ inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);+ else+ inst.dpDiv[(showAnim == 'slideDown' ? 'slideUp' :+ (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess);+ if (!showAnim)+ postProcess();+ this._datepickerShowing = false;+ var onClose = this._get(inst, 'onClose');+ if (onClose)+ onClose.apply((inst.input ? inst.input[0] : null),+ [(inst.input ? inst.input.val() : ''), inst]);+ this._lastInput = null;+ if (this._inDialog) {+ this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });+ if ($.blockUI) {+ $.unblockUI();+ $('body').append(this.dpDiv);+ }+ }+ this._inDialog = false;+ }+ },++ /* Tidy up after a dialog display. */+ _tidyDialog: function(inst) {+ inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar');+ },++ /* Close date picker if clicked elsewhere. */+ _checkExternalClick: function(event) {+ if (!$.datepicker._curInst)+ return;++ var $target = $(event.target),+ inst = $.datepicker._getInst($target[0]);++ if ( ( ( $target[0].id != $.datepicker._mainDivId &&+ $target.parents('#' + $.datepicker._mainDivId).length == 0 &&+ !$target.hasClass($.datepicker.markerClassName) &&+ !$target.closest("." + $.datepicker._triggerClass).length &&+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI) ) ) ||+ ( $target.hasClass($.datepicker.markerClassName) && $.datepicker._curInst != inst ) )+ $.datepicker._hideDatepicker();+ },++ /* Adjust one of the date sub-fields. */+ _adjustDate: function(id, offset, period) {+ var target = $(id);+ var inst = this._getInst(target[0]);+ if (this._isDisabledDatepicker(target[0])) {+ return;+ }+ this._adjustInstDate(inst, offset ++ (period == 'M' ? this._get(inst, 'showCurrentAtPos') : 0), // undo positioning+ period);+ this._updateDatepicker(inst);+ },++ /* Action for current link. */+ _gotoToday: function(id) {+ var target = $(id);+ var inst = this._getInst(target[0]);+ if (this._get(inst, 'gotoCurrent') && inst.currentDay) {+ inst.selectedDay = inst.currentDay;+ inst.drawMonth = inst.selectedMonth = inst.currentMonth;+ inst.drawYear = inst.selectedYear = inst.currentYear;+ }+ else {+ var date = new Date();+ inst.selectedDay = date.getDate();+ inst.drawMonth = inst.selectedMonth = date.getMonth();+ inst.drawYear = inst.selectedYear = date.getFullYear();+ }+ this._notifyChange(inst);+ this._adjustDate(target);+ },++ /* Action for selecting a new month/year. */+ _selectMonthYear: function(id, select, period) {+ var target = $(id);+ var inst = this._getInst(target[0]);+ inst['selected' + (period == 'M' ? 'Month' : 'Year')] =+ inst['draw' + (period == 'M' ? 'Month' : 'Year')] =+ parseInt(select.options[select.selectedIndex].value,10);+ this._notifyChange(inst);+ this._adjustDate(target);+ },++ /* Action for selecting a day. */+ _selectDay: function(id, month, year, td) {+ var target = $(id);+ if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {+ return;+ }+ var inst = this._getInst(target[0]);+ inst.selectedDay = inst.currentDay = $('a', td).html();+ inst.selectedMonth = inst.currentMonth = month;+ inst.selectedYear = inst.currentYear = year;+ this._selectDate(id, this._formatDate(inst,+ inst.currentDay, inst.currentMonth, inst.currentYear));+ },++ /* Erase the input field and hide the date picker. */+ _clearDate: function(id) {+ var target = $(id);+ var inst = this._getInst(target[0]);+ this._selectDate(target, '');+ },++ /* Update the input field with the selected date. */+ _selectDate: function(id, dateStr) {+ var target = $(id);+ var inst = this._getInst(target[0]);+ dateStr = (dateStr != null ? dateStr : this._formatDate(inst));+ if (inst.input)+ inst.input.val(dateStr);+ this._updateAlternate(inst);+ var onSelect = this._get(inst, 'onSelect');+ if (onSelect)+ onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback+ else if (inst.input)+ inst.input.trigger('change'); // fire the change event+ if (inst.inline)+ this._updateDatepicker(inst);+ else {+ this._hideDatepicker();+ this._lastInput = inst.input[0];+ if (typeof(inst.input[0]) != 'object')+ inst.input.focus(); // restore focus+ this._lastInput = null;+ }+ },++ /* Update any alternate field to synchronise with the main field. */+ _updateAlternate: function(inst) {+ var altField = this._get(inst, 'altField');+ if (altField) { // update alternate field too+ var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat');+ var date = this._getDate(inst);+ var dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));+ $(altField).each(function() { $(this).val(dateStr); });+ }+ },++ /* Set as beforeShowDay function to prevent selection of weekends.+ @param date Date - the date to customise+ @return [boolean, string] - is this date selectable?, what is its CSS class? */+ noWeekends: function(date) {+ var day = date.getDay();+ return [(day > 0 && day < 6), ''];+ },++ /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.+ @param date Date - the date to get the week for+ @return number - the number of the week within the year that contains this date */+ iso8601Week: function(date) {+ var checkDate = new Date(date.getTime());+ // Find Thursday of this week starting on Monday+ checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));+ var time = checkDate.getTime();+ checkDate.setMonth(0); // Compare with Jan 1+ checkDate.setDate(1);+ return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;+ },++ /* Parse a string value into a date object.+ See formatDate below for the possible formats.++ @param format string - the expected format of the date+ @param value string - the date in the above format+ @param settings Object - attributes include:+ shortYearCutoff number - the cutoff year for determining the century (optional)+ dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)+ dayNames string[7] - names of the days from Sunday (optional)+ monthNamesShort string[12] - abbreviated names of the months (optional)+ monthNames string[12] - names of the months (optional)+ @return Date - the extracted date value or null if value is blank */+ parseDate: function (format, value, settings) {+ if (format == null || value == null)+ throw 'Invalid arguments';+ value = (typeof value == 'object' ? value.toString() : value + '');+ if (value == '')+ return null;+ var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;+ var year = -1;+ var month = -1;+ var day = -1;+ var doy = -1;+ var literal = false;+ // Check whether a format character is doubled+ var lookAhead = function(match) {+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);+ if (matches)+ iFormat++;+ return matches;+ };+ // Extract a number from the string value+ var getNumber = function(match) {+ var isDoubled = lookAhead(match);+ var size = (match == '@' ? 14 : (match == '!' ? 20 :+ (match == 'y' && isDoubled ? 4 : (match == 'o' ? 3 : 2))));+ var digits = new RegExp('^\\d{1,' + size + '}');+ var num = value.substring(iValue).match(digits);+ if (!num)+ throw 'Missing number at position ' + iValue;+ iValue += num[0].length;+ return parseInt(num[0], 10);+ };+ // Extract a name from the string value and convert to an index+ var getName = function(match, shortNames, longNames) {+ var names = $.map(lookAhead(match) ? longNames : shortNames, function (v, k) {+ return [ [k, v] ];+ }).sort(function (a, b) {+ return -(a[1].length - b[1].length);+ });+ var index = -1;+ $.each(names, function (i, pair) {+ var name = pair[1];+ if (value.substr(iValue, name.length).toLowerCase() == name.toLowerCase()) {+ index = pair[0];+ iValue += name.length;+ return false;+ }+ });+ if (index != -1)+ return index + 1;+ else+ throw 'Unknown name at position ' + iValue;+ };+ // Confirm that a literal character matches the string value+ var checkLiteral = function() {+ if (value.charAt(iValue) != format.charAt(iFormat))+ throw 'Unexpected literal at position ' + iValue;+ iValue++;+ };+ var iValue = 0;+ for (var iFormat = 0; iFormat < format.length; iFormat++) {+ if (literal)+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))+ literal = false;+ else+ checkLiteral();+ else+ switch (format.charAt(iFormat)) {+ case 'd':+ day = getNumber('d');+ break;+ case 'D':+ getName('D', dayNamesShort, dayNames);+ break;+ case 'o':+ doy = getNumber('o');+ break;+ case 'm':+ month = getNumber('m');+ break;+ case 'M':+ month = getName('M', monthNamesShort, monthNames);+ break;+ case 'y':+ year = getNumber('y');+ break;+ case '@':+ var date = new Date(getNumber('@'));+ year = date.getFullYear();+ month = date.getMonth() + 1;+ day = date.getDate();+ break;+ case '!':+ var date = new Date((getNumber('!') - this._ticksTo1970) / 10000);+ year = date.getFullYear();+ month = date.getMonth() + 1;+ day = date.getDate();+ break;+ case "'":+ if (lookAhead("'"))+ checkLiteral();+ else+ literal = true;+ break;+ default:+ checkLiteral();+ }+ }+ if (iValue < value.length){+ var extra = value.substr(iValue);+ if (!/^\s+/.test(extra)) {+ throw "Extra/unparsed characters found in date: " + extra;+ }+ }+ if (year == -1)+ year = new Date().getFullYear();+ else if (year < 100)+ year += new Date().getFullYear() - new Date().getFullYear() % 100 ++ (year <= shortYearCutoff ? 0 : -100);+ if (doy > -1) {+ month = 1;+ day = doy;+ do {+ var dim = this._getDaysInMonth(year, month - 1);+ if (day <= dim)+ break;+ month++;+ day -= dim;+ } while (true);+ }+ var date = this._daylightSavingAdjust(new Date(year, month - 1, day));+ if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day)+ throw 'Invalid date'; // E.g. 31/02/00+ return date;+ },++ /* Standard date formats. */+ ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601)+ 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', // RFC 822+ TICKS: '!',+ TIMESTAMP: '@',+ W3C: 'yy-mm-dd', // ISO 8601++ _ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) ++ Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),++ /* Format a date object into a string value.+ The format can be combinations of the following:+ d - day of month (no leading zero)+ dd - day of month (two digit)+ o - day of year (no leading zeros)+ oo - day of year (three digit)+ D - day name short+ DD - day name long+ m - month of year (no leading zero)+ mm - month of year (two digit)+ M - month name short+ MM - month name long+ y - year (two digit)+ yy - year (four digit)+ @ - Unix timestamp (ms since 01/01/1970)+ ! - Windows ticks (100ns since 01/01/0001)+ '...' - literal text+ '' - single quote++ @param format string - the desired format of the date+ @param date Date - the date value to format+ @param settings Object - attributes include:+ dayNamesShort string[7] - abbreviated names of the days from Sunday (optional)+ dayNames string[7] - names of the days from Sunday (optional)+ monthNamesShort string[12] - abbreviated names of the months (optional)+ monthNames string[12] - names of the months (optional)+ @return string - the date in the above format */+ formatDate: function (format, date, settings) {+ if (!date)+ return '';+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;+ // Check whether a format character is doubled+ var lookAhead = function(match) {+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);+ if (matches)+ iFormat++;+ return matches;+ };+ // Format a number, with leading zero if necessary+ var formatNumber = function(match, value, len) {+ var num = '' + value;+ if (lookAhead(match))+ while (num.length < len)+ num = '0' + num;+ return num;+ };+ // Format a name, short or long as requested+ var formatName = function(match, value, shortNames, longNames) {+ return (lookAhead(match) ? longNames[value] : shortNames[value]);+ };+ var output = '';+ var literal = false;+ if (date)+ for (var iFormat = 0; iFormat < format.length; iFormat++) {+ if (literal)+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))+ literal = false;+ else+ output += format.charAt(iFormat);+ else+ switch (format.charAt(iFormat)) {+ case 'd':+ output += formatNumber('d', date.getDate(), 2);+ break;+ case 'D':+ output += formatName('D', date.getDay(), dayNamesShort, dayNames);+ break;+ case 'o':+ output += formatNumber('o',+ Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);+ break;+ case 'm':+ output += formatNumber('m', date.getMonth() + 1, 2);+ break;+ case 'M':+ output += formatName('M', date.getMonth(), monthNamesShort, monthNames);+ break;+ case 'y':+ output += (lookAhead('y') ? date.getFullYear() :+ (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);+ break;+ case '@':+ output += date.getTime();+ break;+ case '!':+ output += date.getTime() * 10000 + this._ticksTo1970;+ break;+ case "'":+ if (lookAhead("'"))+ output += "'";+ else+ literal = true;+ break;+ default:+ output += format.charAt(iFormat);+ }+ }+ return output;+ },++ /* Extract all possible characters from the date format. */+ _possibleChars: function (format) {+ var chars = '';+ var literal = false;+ // Check whether a format character is doubled+ var lookAhead = function(match) {+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);+ if (matches)+ iFormat++;+ return matches;+ };+ for (var iFormat = 0; iFormat < format.length; iFormat++)+ if (literal)+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))+ literal = false;+ else+ chars += format.charAt(iFormat);+ else+ switch (format.charAt(iFormat)) {+ case 'd': case 'm': case 'y': case '@':+ chars += '0123456789';+ break;+ case 'D': case 'M':+ return null; // Accept anything+ case "'":+ if (lookAhead("'"))+ chars += "'";+ else+ literal = true;+ break;+ default:+ chars += format.charAt(iFormat);+ }+ return chars;+ },++ /* Get a setting value, defaulting if necessary. */+ _get: function(inst, name) {+ return inst.settings[name] !== undefined ?+ inst.settings[name] : this._defaults[name];+ },++ /* Parse existing date and initialise date picker. */+ _setDateFromField: function(inst, noDefault) {+ if (inst.input.val() == inst.lastVal) {+ return;+ }+ var dateFormat = this._get(inst, 'dateFormat');+ var dates = inst.lastVal = inst.input ? inst.input.val() : null;+ var date, defaultDate;+ date = defaultDate = this._getDefaultDate(inst);+ var settings = this._getFormatConfig(inst);+ try {+ date = this.parseDate(dateFormat, dates, settings) || defaultDate;+ } catch (event) {+ this.log(event);+ dates = (noDefault ? '' : dates);+ }+ inst.selectedDay = date.getDate();+ inst.drawMonth = inst.selectedMonth = date.getMonth();+ inst.drawYear = inst.selectedYear = date.getFullYear();+ inst.currentDay = (dates ? date.getDate() : 0);+ inst.currentMonth = (dates ? date.getMonth() : 0);+ inst.currentYear = (dates ? date.getFullYear() : 0);+ this._adjustInstDate(inst);+ },++ /* Retrieve the default date shown on opening. */+ _getDefaultDate: function(inst) {+ return this._restrictMinMax(inst,+ this._determineDate(inst, this._get(inst, 'defaultDate'), new Date()));+ },++ /* A date may be specified as an exact value or a relative one. */+ _determineDate: function(inst, date, defaultDate) {+ var offsetNumeric = function(offset) {+ var date = new Date();+ date.setDate(date.getDate() + offset);+ return date;+ };+ var offsetString = function(offset) {+ try {+ return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),+ offset, $.datepicker._getFormatConfig(inst));+ }+ catch (e) {+ // Ignore+ }+ var date = (offset.toLowerCase().match(/^c/) ?+ $.datepicker._getDate(inst) : null) || new Date();+ var year = date.getFullYear();+ var month = date.getMonth();+ var day = date.getDate();+ var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;+ var matches = pattern.exec(offset);+ while (matches) {+ switch (matches[2] || 'd') {+ case 'd' : case 'D' :+ day += parseInt(matches[1],10); break;+ case 'w' : case 'W' :+ day += parseInt(matches[1],10) * 7; break;+ case 'm' : case 'M' :+ month += parseInt(matches[1],10);+ day = Math.min(day, $.datepicker._getDaysInMonth(year, month));+ break;+ case 'y': case 'Y' :+ year += parseInt(matches[1],10);+ day = Math.min(day, $.datepicker._getDaysInMonth(year, month));+ break;+ }+ matches = pattern.exec(offset);+ }+ return new Date(year, month, day);+ };+ var newDate = (date == null || date === '' ? defaultDate : (typeof date == 'string' ? offsetString(date) :+ (typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : new Date(date.getTime()))));+ newDate = (newDate && newDate.toString() == 'Invalid Date' ? defaultDate : newDate);+ if (newDate) {+ newDate.setHours(0);+ newDate.setMinutes(0);+ newDate.setSeconds(0);+ newDate.setMilliseconds(0);+ }+ return this._daylightSavingAdjust(newDate);+ },++ /* Handle switch to/from daylight saving.+ Hours may be non-zero on daylight saving cut-over:+ > 12 when midnight changeover, but then cannot generate+ midnight datetime, so jump to 1AM, otherwise reset.+ @param date (Date) the date to check+ @return (Date) the corrected date */+ _daylightSavingAdjust: function(date) {+ if (!date) return null;+ date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);+ return date;+ },++ /* Set the date(s) directly. */+ _setDate: function(inst, date, noChange) {+ var clear = !date;+ var origMonth = inst.selectedMonth;+ var origYear = inst.selectedYear;+ var newDate = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));+ inst.selectedDay = inst.currentDay = newDate.getDate();+ inst.drawMonth = inst.selectedMonth = inst.currentMonth = newDate.getMonth();+ inst.drawYear = inst.selectedYear = inst.currentYear = newDate.getFullYear();+ if ((origMonth != inst.selectedMonth || origYear != inst.selectedYear) && !noChange)+ this._notifyChange(inst);+ this._adjustInstDate(inst);+ if (inst.input) {+ inst.input.val(clear ? '' : this._formatDate(inst));+ }+ },++ /* Retrieve the date(s) directly. */+ _getDate: function(inst) {+ var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null :+ this._daylightSavingAdjust(new Date(+ inst.currentYear, inst.currentMonth, inst.currentDay)));+ return startDate;+ },++ /* Attach the onxxx handlers. These are declared statically so+ * they work with static code transformers like Caja.+ */+ _attachHandlers: function(inst) {+ var stepMonths = this._get(inst, 'stepMonths');+ var id = '#' + inst.id.replace( /\\\\/g, "\\" );+ inst.dpDiv.find('[data-handler]').map(function () {+ var handler = {+ prev: function () {+ window['DP_jQuery_' + dpuuid].datepicker._adjustDate(id, -stepMonths, 'M');+ },+ next: function () {+ window['DP_jQuery_' + dpuuid].datepicker._adjustDate(id, +stepMonths, 'M');+ },+ hide: function () {+ window['DP_jQuery_' + dpuuid].datepicker._hideDatepicker();+ },+ today: function () {+ window['DP_jQuery_' + dpuuid].datepicker._gotoToday(id);+ },+ selectDay: function () {+ window['DP_jQuery_' + dpuuid].datepicker._selectDay(id, +this.getAttribute('data-month'), +this.getAttribute('data-year'), this);+ return false;+ },+ selectMonth: function () {+ window['DP_jQuery_' + dpuuid].datepicker._selectMonthYear(id, this, 'M');+ return false;+ },+ selectYear: function () {+ window['DP_jQuery_' + dpuuid].datepicker._selectMonthYear(id, this, 'Y');+ return false;+ }+ };+ $(this).bind(this.getAttribute('data-event'), handler[this.getAttribute('data-handler')]);+ });+ },++ /* Generate the HTML for the current state of the date picker. */+ _generateHTML: function(inst) {+ var today = new Date();+ today = this._daylightSavingAdjust(+ new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time+ var isRTL = this._get(inst, 'isRTL');+ var showButtonPanel = this._get(inst, 'showButtonPanel');+ var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext');+ var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat');+ var numMonths = this._getNumberOfMonths(inst);+ var showCurrentAtPos = this._get(inst, 'showCurrentAtPos');+ var stepMonths = this._get(inst, 'stepMonths');+ var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);+ var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :+ new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));+ var minDate = this._getMinMaxDate(inst, 'min');+ var maxDate = this._getMinMaxDate(inst, 'max');+ var drawMonth = inst.drawMonth - showCurrentAtPos;+ var drawYear = inst.drawYear;+ if (drawMonth < 0) {+ drawMonth += 12;+ drawYear--;+ }+ if (maxDate) {+ var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),+ maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));+ maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);+ while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {+ drawMonth--;+ if (drawMonth < 0) {+ drawMonth = 11;+ drawYear--;+ }+ }+ }+ inst.drawMonth = drawMonth;+ inst.drawYear = drawYear;+ var prevText = this._get(inst, 'prevText');+ prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,+ this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),+ this._getFormatConfig(inst)));+ var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?+ '<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click"' ++ ' title="' + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>' :+ (hideIfNoPrevNext ? '' : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+ prevText +'"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>'));+ var nextText = this._get(inst, 'nextText');+ nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,+ this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),+ this._getFormatConfig(inst)));+ var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?+ '<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click"' ++ ' title="' + nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '">' + nextText + '</span></a>' :+ (hideIfNoPrevNext ? '' : '<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+ nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '">' + nextText + '</span></a>'));+ var currentText = this._get(inst, 'currentText');+ var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today);+ currentText = (!navigationAsDateFormat ? currentText :+ this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));+ var controls = (!inst.inline ? '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">' ++ this._get(inst, 'closeText') + '</button>' : '');+ var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') ++ (this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click"' ++ '>' + currentText + '</button>' : '') + (isRTL ? '' : controls) + '</div>' : '';+ var firstDay = parseInt(this._get(inst, 'firstDay'),10);+ firstDay = (isNaN(firstDay) ? 0 : firstDay);+ var showWeek = this._get(inst, 'showWeek');+ var dayNames = this._get(inst, 'dayNames');+ var dayNamesShort = this._get(inst, 'dayNamesShort');+ var dayNamesMin = this._get(inst, 'dayNamesMin');+ var monthNames = this._get(inst, 'monthNames');+ var monthNamesShort = this._get(inst, 'monthNamesShort');+ var beforeShowDay = this._get(inst, 'beforeShowDay');+ var showOtherMonths = this._get(inst, 'showOtherMonths');+ var selectOtherMonths = this._get(inst, 'selectOtherMonths');+ var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week;+ var defaultDate = this._getDefaultDate(inst);+ var html = '';+ for (var row = 0; row < numMonths[0]; row++) {+ var group = '';+ this.maxRows = 4;+ for (var col = 0; col < numMonths[1]; col++) {+ var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));+ var cornerClass = ' ui-corner-all';+ var calender = '';+ if (isMultiMonth) {+ calender += '<div class="ui-datepicker-group';+ if (numMonths[1] > 1)+ switch (col) {+ case 0: calender += ' ui-datepicker-group-first';+ cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;+ case numMonths[1]-1: calender += ' ui-datepicker-group-last';+ cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;+ default: calender += ' ui-datepicker-group-middle'; cornerClass = ''; break;+ }+ calender += '">';+ }+ calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' ++ (/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') ++ (/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') ++ this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,+ row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers+ '</div><table class="ui-datepicker-calendar"><thead>' ++ '<tr>';+ var thead = (showWeek ? '<th class="ui-datepicker-week-col">' + this._get(inst, 'weekHeader') + '</th>' : '');+ for (var dow = 0; dow < 7; dow++) { // days of the week+ var day = (dow + firstDay) % 7;+ thead += '<th' + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end"' : '') + '>' ++ '<span title="' + dayNames[day] + '">' + dayNamesMin[day] + '</span></th>';+ }+ calender += thead + '</tr></thead><tbody>';+ var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);+ if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)+ inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);+ var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;+ var curRows = Math.ceil((leadDays + daysInMonth) / 7); // calculate the number of rows to generate+ var numRows = (isMultiMonth ? this.maxRows > curRows ? this.maxRows : curRows : curRows); //If multiple months, use the higher number of rows (see #7043)+ this.maxRows = numRows;+ var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));+ for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows+ calender += '<tr>';+ var tbody = (!showWeek ? '' : '<td class="ui-datepicker-week-col">' ++ this._get(inst, 'calculateWeek')(printDate) + '</td>');+ for (var dow = 0; dow < 7; dow++) { // create date picker days+ var daySettings = (beforeShowDay ?+ beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']);+ var otherMonth = (printDate.getMonth() != drawMonth);+ var unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||+ (minDate && printDate < minDate) || (maxDate && printDate > maxDate);+ tbody += '<td class="' ++ ((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end' : '') + // highlight weekends+ (otherMonth ? ' ui-datepicker-other-month' : '') + // highlight days from other months+ ((printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth && inst._keyEvent) || // user pressed key+ (defaultDate.getTime() == printDate.getTime() && defaultDate.getTime() == selectedDate.getTime()) ?+ // or defaultDate is current printedDate and defaultDate is selectedDate+ ' ' + this._dayOverClass : '') + // highlight selected day+ (unselectable ? ' ' + this._unselectableClass + ' ui-state-disabled': '') + // highlight unselectable days+ (otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates+ (printDate.getTime() == currentDate.getTime() ? ' ' + this._currentClass : '') + // highlight selected day+ (printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)+ ((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title+ (unselectable ? '' : ' data-handler="selectDay" data-event="click" data-month="' + printDate.getMonth() + '" data-year="' + printDate.getFullYear() + '"') + '>' + // actions+ (otherMonth && !showOtherMonths ? ' ' : // display for other months+ (unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' ++ (printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') ++ (printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day+ (otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months+ '" href="#">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date+ printDate.setDate(printDate.getDate() + 1);+ printDate = this._daylightSavingAdjust(printDate);+ }+ calender += tbody + '</tr>';+ }+ drawMonth++;+ if (drawMonth > 11) {+ drawMonth = 0;+ drawYear++;+ }+ calender += '</tbody></table>' + (isMultiMonth ? '</div>' ++ ((numMonths[0] > 0 && col == numMonths[1]-1) ? '<div class="ui-datepicker-row-break"></div>' : '') : '');+ group += calender;+ }+ html += group;+ }+ html += buttonPanel + ($.ui.ie6 && !inst.inline ?+ '<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>' : '');+ inst._keyEvent = false;+ return html;+ },++ /* Generate the month and year header. */+ _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,+ secondary, monthNames, monthNamesShort) {+ var changeMonth = this._get(inst, 'changeMonth');+ var changeYear = this._get(inst, 'changeYear');+ var showMonthAfterYear = this._get(inst, 'showMonthAfterYear');+ var html = '<div class="ui-datepicker-title">';+ var monthHtml = '';+ // month selection+ if (secondary || !changeMonth)+ monthHtml += '<span class="ui-datepicker-month">' + monthNames[drawMonth] + '</span>';+ else {+ var inMinYear = (minDate && minDate.getFullYear() == drawYear);+ var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);+ monthHtml += '<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';+ for (var month = 0; month < 12; month++) {+ if ((!inMinYear || month >= minDate.getMonth()) &&+ (!inMaxYear || month <= maxDate.getMonth()))+ monthHtml += '<option value="' + month + '"' ++ (month == drawMonth ? ' selected="selected"' : '') ++ '>' + monthNamesShort[month] + '</option>';+ }+ monthHtml += '</select>';+ }+ if (!showMonthAfterYear)+ html += monthHtml + (secondary || !(changeMonth && changeYear) ? ' ' : '');+ // year selection+ if ( !inst.yearshtml ) {+ inst.yearshtml = '';+ if (secondary || !changeYear)+ html += '<span class="ui-datepicker-year">' + drawYear + '</span>';+ else {+ // determine range of years to display+ var years = this._get(inst, 'yearRange').split(':');+ var thisYear = new Date().getFullYear();+ var determineYear = function(value) {+ var year = (value.match(/c[+-].*/) ? drawYear + parseInt(value.substring(1), 10) :+ (value.match(/[+-].*/) ? thisYear + parseInt(value, 10) :+ parseInt(value, 10)));+ return (isNaN(year) ? thisYear : year);+ };+ var year = determineYear(years[0]);+ var endYear = Math.max(year, determineYear(years[1] || ''));+ year = (minDate ? Math.max(year, minDate.getFullYear()) : year);+ endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);+ inst.yearshtml += '<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';+ for (; year <= endYear; year++) {+ inst.yearshtml += '<option value="' + year + '"' ++ (year == drawYear ? ' selected="selected"' : '') ++ '>' + year + '</option>';+ }+ inst.yearshtml += '</select>';++ html += inst.yearshtml;+ inst.yearshtml = null;+ }+ }+ html += this._get(inst, 'yearSuffix');+ if (showMonthAfterYear)+ html += (secondary || !(changeMonth && changeYear) ? ' ' : '') + monthHtml;+ html += '</div>'; // Close datepicker_header+ return html;+ },++ /* Adjust one of the date sub-fields. */+ _adjustInstDate: function(inst, offset, period) {+ var year = inst.drawYear + (period == 'Y' ? offset : 0);+ var month = inst.drawMonth + (period == 'M' ? offset : 0);+ var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) ++ (period == 'D' ? offset : 0);+ var date = this._restrictMinMax(inst,+ this._daylightSavingAdjust(new Date(year, month, day)));+ inst.selectedDay = date.getDate();+ inst.drawMonth = inst.selectedMonth = date.getMonth();+ inst.drawYear = inst.selectedYear = date.getFullYear();+ if (period == 'M' || period == 'Y')+ this._notifyChange(inst);+ },++ /* Ensure a date is within any min/max bounds. */+ _restrictMinMax: function(inst, date) {+ var minDate = this._getMinMaxDate(inst, 'min');+ var maxDate = this._getMinMaxDate(inst, 'max');+ var newDate = (minDate && date < minDate ? minDate : date);+ newDate = (maxDate && newDate > maxDate ? maxDate : newDate);+ return newDate;+ },++ /* Notify change of month/year. */+ _notifyChange: function(inst) {+ var onChange = this._get(inst, 'onChangeMonthYear');+ if (onChange)+ onChange.apply((inst.input ? inst.input[0] : null),+ [inst.selectedYear, inst.selectedMonth + 1, inst]);+ },++ /* Determine the number of months to show. */+ _getNumberOfMonths: function(inst) {+ var numMonths = this._get(inst, 'numberOfMonths');+ return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));+ },++ /* Determine the current maximum date - ensure no time components are set. */+ _getMinMaxDate: function(inst, minMax) {+ return this._determineDate(inst, this._get(inst, minMax + 'Date'), null);+ },++ /* Find the number of days in a given month. */+ _getDaysInMonth: function(year, month) {+ return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();+ },++ /* Find the day of the week of the first of a month. */+ _getFirstDayOfMonth: function(year, month) {+ return new Date(year, month, 1).getDay();+ },++ /* Determines if we should allow a "next/prev" month display change. */+ _canAdjustMonth: function(inst, offset, curYear, curMonth) {+ var numMonths = this._getNumberOfMonths(inst);+ var date = this._daylightSavingAdjust(new Date(curYear,+ curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));+ if (offset < 0)+ date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));+ return this._isInRange(inst, date);+ },++ /* Is the given date in the accepted range? */+ _isInRange: function(inst, date) {+ var minDate = this._getMinMaxDate(inst, 'min');+ var maxDate = this._getMinMaxDate(inst, 'max');+ return ((!minDate || date.getTime() >= minDate.getTime()) &&+ (!maxDate || date.getTime() <= maxDate.getTime()));+ },++ /* Provide the configuration settings for formatting/parsing. */+ _getFormatConfig: function(inst) {+ var shortYearCutoff = this._get(inst, 'shortYearCutoff');+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));+ return {shortYearCutoff: shortYearCutoff,+ dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'),+ monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')};+ },++ /* Format the given date for display. */+ _formatDate: function(inst, day, month, year) {+ if (!day) {+ inst.currentDay = inst.selectedDay;+ inst.currentMonth = inst.selectedMonth;+ inst.currentYear = inst.selectedYear;+ }+ var date = (day ? (typeof day == 'object' ? day :+ this._daylightSavingAdjust(new Date(year, month, day))) :+ this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));+ return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst));+ }+});++/*+ * Bind hover events for datepicker elements.+ * Done via delegate so the binding only occurs once in the lifetime of the parent div.+ * Global instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.+ */+function bindHover(dpDiv) {+ var selector = 'button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a';+ return dpDiv.delegate(selector, 'mouseout', function() {+ $(this).removeClass('ui-state-hover');+ if (this.className.indexOf('ui-datepicker-prev') != -1) $(this).removeClass('ui-datepicker-prev-hover');+ if (this.className.indexOf('ui-datepicker-next') != -1) $(this).removeClass('ui-datepicker-next-hover');+ })+ .delegate(selector, 'mouseover', function(){+ if (!$.datepicker._isDisabledDatepicker( instActive.inline ? dpDiv.parent()[0] : instActive.input[0])) {+ $(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover');+ $(this).addClass('ui-state-hover');+ if (this.className.indexOf('ui-datepicker-prev') != -1) $(this).addClass('ui-datepicker-prev-hover');+ if (this.className.indexOf('ui-datepicker-next') != -1) $(this).addClass('ui-datepicker-next-hover');+ }+ });+}++/* jQuery extend now ignores nulls! */+function extendRemove(target, props) {+ $.extend(target, props);+ for (var name in props)+ if (props[name] == null || props[name] == undefined)+ target[name] = props[name];+ return target;+};++/* Invoke the datepicker functionality.+ @param options string - a command, optionally followed by additional parameters or+ Object - settings for attaching new datepicker functionality+ @return jQuery object */+$.fn.datepicker = function(options){++ /* Verify an empty collection wasn't passed - Fixes #6976 */+ if ( !this.length ) {+ return this;+ }++ /* Initialise the date picker. */+ if (!$.datepicker.initialized) {+ $(document).mousedown($.datepicker._checkExternalClick).+ find(document.body).append($.datepicker.dpDiv);+ $.datepicker.initialized = true;+ }++ var otherArgs = Array.prototype.slice.call(arguments, 1);+ if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate' || options == 'widget'))+ return $.datepicker['_' + options + 'Datepicker'].+ apply($.datepicker, [this[0]].concat(otherArgs));+ if (options == 'option' && arguments.length == 2 && typeof arguments[1] == 'string')+ return $.datepicker['_' + options + 'Datepicker'].+ apply($.datepicker, [this[0]].concat(otherArgs));+ return this.each(function() {+ typeof options == 'string' ?+ $.datepicker['_' + options + 'Datepicker'].+ apply($.datepicker, [this].concat(otherArgs)) :+ $.datepicker._attachDatepicker(this, options);+ });+};++$.datepicker = new Datepicker(); // singleton instance+$.datepicker.initialized = false;+$.datepicker.uuid = new Date().getTime();+$.datepicker.version = "1.9.2";++// Workaround for #4055+// Add another global to avoid noConflict issues with inline event handlers+window['DP_jQuery_' + dpuuid] = $;++})(jQuery);+(function( $, undefined ) {++var uiDialogClasses = "ui-dialog ui-widget ui-widget-content ui-corner-all ",+ sizeRelatedOptions = {+ buttons: true,+ height: true,+ maxHeight: true,+ maxWidth: true,+ minHeight: true,+ minWidth: true,+ width: true+ },+ resizableRelatedOptions = {+ maxHeight: true,+ maxWidth: true,+ minHeight: true,+ minWidth: true+ };++$.widget("ui.dialog", {+ version: "1.9.2",+ 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",+ of: window,+ collision: "fit",+ // ensure that the titlebar is never outside the document+ using: function( pos ) {+ var topOffset = $( this ).css( pos ).offset().top;+ if ( topOffset < 0 ) {+ $( this ).css( "top", pos.top - topOffset );+ }+ }+ },+ resizable: true,+ show: null,+ stack: true,+ title: "",+ width: 300,+ zIndex: 1000+ },++ _create: function() {+ this.originalTitle = this.element.attr( "title" );+ // #5742 - .attr() might return a DOMElement+ if ( typeof this.originalTitle !== "string" ) {+ this.originalTitle = "";+ }+ this.oldPosition = {+ parent: this.element.parent(),+ index: this.element.parent().children().index( this.element )+ };+ this.options.title = this.options.title || this.originalTitle;+ var that = this,+ options = this.options,++ title = options.title || " ",+ uiDialog,+ uiDialogTitlebar,+ uiDialogTitlebarClose,+ uiDialogTitle,+ uiDialogButtonPane;++ uiDialog = ( this.uiDialog = $( "<div>" ) )+ .addClass( uiDialogClasses + options.dialogClass )+ .css({+ display: "none",+ outline: 0, // TODO: move to stylesheet+ zIndex: options.zIndex+ })+ // setting tabIndex makes the div focusable+ .attr( "tabIndex", -1)+ .keydown(function( event ) {+ if ( options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&+ event.keyCode === $.ui.keyCode.ESCAPE ) {+ that.close( event );+ event.preventDefault();+ }+ })+ .mousedown(function( event ) {+ that.moveToTop( false, event );+ })+ .appendTo( "body" );++ this.element+ .show()+ .removeAttr( "title" )+ .addClass( "ui-dialog-content ui-widget-content" )+ .appendTo( uiDialog );++ uiDialogTitlebar = ( this.uiDialogTitlebar = $( "<div>" ) )+ .addClass( "ui-dialog-titlebar ui-widget-header " ++ "ui-corner-all ui-helper-clearfix" )+ .bind( "mousedown", function() {+ // Dialog isn't getting focus when dragging (#8063)+ uiDialog.focus();+ })+ .prependTo( uiDialog );++ uiDialogTitlebarClose = $( "<a href='#'></a>" )+ .addClass( "ui-dialog-titlebar-close ui-corner-all" )+ .attr( "role", "button" )+ .click(function( event ) {+ event.preventDefault();+ that.close( event );+ })+ .appendTo( uiDialogTitlebar );++ ( this.uiDialogTitlebarCloseText = $( "<span>" ) )+ .addClass( "ui-icon ui-icon-closethick" )+ .text( options.closeText )+ .appendTo( uiDialogTitlebarClose );++ uiDialogTitle = $( "<span>" )+ .uniqueId()+ .addClass( "ui-dialog-title" )+ .html( title )+ .prependTo( uiDialogTitlebar );++ uiDialogButtonPane = ( this.uiDialogButtonPane = $( "<div>" ) )+ .addClass( "ui-dialog-buttonpane ui-widget-content ui-helper-clearfix" );++ ( this.uiButtonSet = $( "<div>" ) )+ .addClass( "ui-dialog-buttonset" )+ .appendTo( uiDialogButtonPane );++ uiDialog.attr({+ role: "dialog",+ "aria-labelledby": uiDialogTitle.attr( "id" )+ });++ uiDialogTitlebar.find( "*" ).add( uiDialogTitlebar ).disableSelection();+ this._hoverable( uiDialogTitlebarClose );+ this._focusable( uiDialogTitlebarClose );++ if ( options.draggable && $.fn.draggable ) {+ this._makeDraggable();+ }+ if ( options.resizable && $.fn.resizable ) {+ this._makeResizable();+ }++ this._createButtons( options.buttons );+ this._isOpen = false;++ if ( $.fn.bgiframe ) {+ uiDialog.bgiframe();+ }++ // prevent tabbing out of modal dialogs+ this._on( uiDialog, { keydown: function( event ) {+ if ( !options.modal || event.keyCode !== $.ui.keyCode.TAB ) {+ return;+ }++ var tabbables = $( ":tabbable", uiDialog ),+ first = tabbables.filter( ":first" ),+ last = tabbables.filter( ":last" );++ if ( event.target === last[0] && !event.shiftKey ) {+ first.focus( 1 );+ return false;+ } else if ( event.target === first[0] && event.shiftKey ) {+ last.focus( 1 );+ return false;+ }+ }});+ },++ _init: function() {+ if ( this.options.autoOpen ) {+ this.open();+ }+ },++ _destroy: function() {+ var next,+ oldPosition = this.oldPosition;++ if ( this.overlay ) {+ this.overlay.destroy();+ }+ this.uiDialog.hide();+ this.element+ .removeClass( "ui-dialog-content ui-widget-content" )+ .hide()+ .appendTo( "body" );+ this.uiDialog.remove();++ if ( this.originalTitle ) {+ this.element.attr( "title", this.originalTitle );+ }++ next = oldPosition.parent.children().eq( oldPosition.index );+ // Don't try to place the dialog next to itself (#8613)+ if ( next.length && next[ 0 ] !== this.element[ 0 ] ) {+ next.before( this.element );+ } else {+ oldPosition.parent.append( this.element );+ }+ },++ widget: function() {+ return this.uiDialog;+ },++ close: function( event ) {+ var that = this,+ maxZ, thisZ;++ if ( !this._isOpen ) {+ return;+ }++ if ( false === this._trigger( "beforeClose", event ) ) {+ return;+ }++ this._isOpen = false;++ if ( this.overlay ) {+ this.overlay.destroy();+ }++ if ( this.options.hide ) {+ this._hide( this.uiDialog, this.options.hide, function() {+ that._trigger( "close", event );+ });+ } else {+ this.uiDialog.hide();+ this._trigger( "close", event );+ }++ $.ui.dialog.overlay.resize();++ // adjust the maxZ to allow other modal dialogs to continue to work (see #4309)+ if ( this.options.modal ) {+ maxZ = 0;+ $( ".ui-dialog" ).each(function() {+ if ( this !== that.uiDialog[0] ) {+ thisZ = $( this ).css( "z-index" );+ if ( !isNaN( thisZ ) ) {+ maxZ = Math.max( maxZ, thisZ );+ }+ }+ });+ $.ui.dialog.maxZ = maxZ;+ }++ return this;+ },++ isOpen: function() {+ return this._isOpen;+ },++ // the force parameter allows us to move modal dialogs to their correct+ // position on open+ moveToTop: function( force, event ) {+ var options = this.options,+ saveScroll;++ if ( ( options.modal && !force ) ||+ ( !options.stack && !options.modal ) ) {+ return this._trigger( "focus", event );+ }++ if ( options.zIndex > $.ui.dialog.maxZ ) {+ $.ui.dialog.maxZ = options.zIndex;+ }+ if ( this.overlay ) {+ $.ui.dialog.maxZ += 1;+ $.ui.dialog.overlay.maxZ = $.ui.dialog.maxZ;+ this.overlay.$el.css( "z-index", $.ui.dialog.overlay.maxZ );+ }++ // Save and then restore scroll+ // Opera 9.5+ resets when parent z-index is changed.+ // http://bugs.jqueryui.com/ticket/3193+ saveScroll = {+ scrollTop: this.element.scrollTop(),+ scrollLeft: this.element.scrollLeft()+ };+ $.ui.dialog.maxZ += 1;+ this.uiDialog.css( "z-index", $.ui.dialog.maxZ );+ this.element.attr( saveScroll );+ this._trigger( "focus", event );++ return this;+ },++ open: function() {+ if ( this._isOpen ) {+ return;+ }++ var hasFocus,+ options = this.options,+ uiDialog = this.uiDialog;++ this._size();+ this._position( options.position );+ uiDialog.show( options.show );+ this.overlay = options.modal ? new $.ui.dialog.overlay( this ) : null;+ this.moveToTop( true );++ // set focus to the first tabbable element in the content area or the first button+ // if there are no tabbable elements, set focus on the dialog itself+ hasFocus = this.element.find( ":tabbable" );+ if ( !hasFocus.length ) {+ hasFocus = this.uiDialogButtonPane.find( ":tabbable" );+ if ( !hasFocus.length ) {+ hasFocus = uiDialog;+ }+ }+ hasFocus.eq( 0 ).focus();++ this._isOpen = true;+ this._trigger( "open" );++ return this;+ },++ _createButtons: function( buttons ) {+ var that = this,+ hasButtons = false;++ // if we already have a button pane, remove it+ this.uiDialogButtonPane.remove();+ this.uiButtonSet.empty();++ if ( typeof buttons === "object" && buttons !== null ) {+ $.each( buttons, function() {+ return !(hasButtons = true);+ });+ }+ if ( hasButtons ) {+ $.each( buttons, function( name, props ) {+ var button, click;+ props = $.isFunction( props ) ?+ { click: props, text: name } :+ props;+ // Default to a non-submitting button+ props = $.extend( { type: "button" }, props );+ // Change the context for the click callback to be the main element+ click = props.click;+ props.click = function() {+ click.apply( that.element[0], arguments );+ };+ button = $( "<button></button>", props )+ .appendTo( that.uiButtonSet );+ if ( $.fn.button ) {+ button.button();+ }+ });+ this.uiDialog.addClass( "ui-dialog-buttons" );+ this.uiDialogButtonPane.appendTo( this.uiDialog );+ } else {+ this.uiDialog.removeClass( "ui-dialog-buttons" );+ }+ },++ _makeDraggable: function() {+ var that = this,+ options = this.options;++ function filteredUi( ui ) {+ return {+ position: ui.position,+ offset: ui.offset+ };+ }++ this.uiDialog.draggable({+ cancel: ".ui-dialog-content, .ui-dialog-titlebar-close",+ handle: ".ui-dialog-titlebar",+ containment: "document",+ start: function( event, ui ) {+ $( this )+ .addClass( "ui-dialog-dragging" );+ that._trigger( "dragStart", event, filteredUi( ui ) );+ },+ drag: function( event, ui ) {+ that._trigger( "drag", event, filteredUi( ui ) );+ },+ stop: function( event, ui ) {+ options.position = [+ ui.position.left - that.document.scrollLeft(),+ ui.position.top - that.document.scrollTop()+ ];+ $( this )+ .removeClass( "ui-dialog-dragging" );+ that._trigger( "dragStop", event, filteredUi( ui ) );+ $.ui.dialog.overlay.resize();+ }+ });+ },++ _makeResizable: function( handles ) {+ handles = (handles === undefined ? this.options.resizable : handles);+ var that = this,+ options = this.options,+ // .ui-resizable has position: relative defined in the stylesheet+ // but dialogs have to use absolute or fixed positioning+ position = this.uiDialog.css( "position" ),+ resizeHandles = typeof handles === 'string' ?+ handles :+ "n,e,s,w,se,sw,ne,nw";++ function filteredUi( ui ) {+ return {+ originalPosition: ui.originalPosition,+ originalSize: ui.originalSize,+ position: ui.position,+ size: ui.size+ };+ }++ this.uiDialog.resizable({+ cancel: ".ui-dialog-content",+ containment: "document",+ alsoResize: this.element,+ maxWidth: options.maxWidth,+ maxHeight: options.maxHeight,+ minWidth: options.minWidth,+ minHeight: this._minHeight(),+ handles: resizeHandles,+ start: function( event, ui ) {+ $( this ).addClass( "ui-dialog-resizing" );+ that._trigger( "resizeStart", event, filteredUi( ui ) );+ },+ resize: function( event, ui ) {+ that._trigger( "resize", event, filteredUi( ui ) );+ },+ stop: function( event, ui ) {+ $( this ).removeClass( "ui-dialog-resizing" );+ options.height = $( this ).height();+ options.width = $( this ).width();+ that._trigger( "resizeStop", event, filteredUi( ui ) );+ $.ui.dialog.overlay.resize();+ }+ })+ .css( "position", position )+ .find( ".ui-resizable-se" )+ .addClass( "ui-icon ui-icon-grip-diagonal-se" );+ },++ _minHeight: function() {+ var options = this.options;++ if ( options.height === "auto" ) {+ return options.minHeight;+ } else {+ return Math.min( options.minHeight, options.height );+ }+ },++ _position: function( position ) {+ var myAt = [],+ offset = [ 0, 0 ],+ isVisible;++ if ( position ) {+ // deep extending converts arrays to objects in jQuery <= 1.3.2 :-(+ // if (typeof position == 'string' || $.isArray(position)) {+ // myAt = $.isArray(position) ? position : position.split(' ');++ if ( typeof position === "string" || (typeof position === "object" && "0" in position ) ) {+ myAt = position.split ? position.split( " " ) : [ position[ 0 ], position[ 1 ] ];+ if ( myAt.length === 1 ) {+ myAt[ 1 ] = myAt[ 0 ];+ }++ $.each( [ "left", "top" ], function( i, offsetPosition ) {+ if ( +myAt[ i ] === myAt[ i ] ) {+ offset[ i ] = myAt[ i ];+ myAt[ i ] = offsetPosition;+ }+ });++ position = {+ my: myAt[0] + (offset[0] < 0 ? offset[0] : "+" + offset[0]) + " " ++ myAt[1] + (offset[1] < 0 ? offset[1] : "+" + offset[1]),+ at: myAt.join( " " )+ };+ }++ position = $.extend( {}, $.ui.dialog.prototype.options.position, position );+ } else {+ position = $.ui.dialog.prototype.options.position;+ }++ // need to show the dialog to get the actual offset in the position plugin+ isVisible = this.uiDialog.is( ":visible" );+ if ( !isVisible ) {+ this.uiDialog.show();+ }+ this.uiDialog.position( position );+ if ( !isVisible ) {+ this.uiDialog.hide();+ }+ },++ _setOptions: function( options ) {+ var that = this,+ resizableOptions = {},+ resize = false;++ $.each( options, function( key, value ) {+ that._setOption( key, value );++ if ( key in sizeRelatedOptions ) {+ resize = true;+ }+ if ( key in resizableRelatedOptions ) {+ resizableOptions[ key ] = value;+ }+ });++ if ( resize ) {+ this._size();+ }+ if ( this.uiDialog.is( ":data(resizable)" ) ) {+ this.uiDialog.resizable( "option", resizableOptions );+ }+ },++ _setOption: function( key, value ) {+ var isDraggable, isResizable,+ uiDialog = this.uiDialog;++ switch ( key ) {+ case "buttons":+ this._createButtons( value );+ break;+ case "closeText":+ // ensure that we always pass a string+ this.uiDialogTitlebarCloseText.text( "" + value );+ break;+ case "dialogClass":+ uiDialog+ .removeClass( this.options.dialogClass )+ .addClass( uiDialogClasses + value );+ break;+ case "disabled":+ if ( value ) {+ uiDialog.addClass( "ui-dialog-disabled" );+ } else {+ uiDialog.removeClass( "ui-dialog-disabled" );+ }+ break;+ case "draggable":+ isDraggable = uiDialog.is( ":data(draggable)" );+ if ( isDraggable && !value ) {+ uiDialog.draggable( "destroy" );+ }++ if ( !isDraggable && value ) {+ this._makeDraggable();+ }+ break;+ case "position":+ this._position( value );+ break;+ case "resizable":+ // currently resizable, becoming non-resizable+ isResizable = uiDialog.is( ":data(resizable)" );+ if ( isResizable && !value ) {+ uiDialog.resizable( "destroy" );+ }++ // currently resizable, changing handles+ if ( isResizable && typeof value === "string" ) {+ uiDialog.resizable( "option", "handles", value );+ }++ // currently non-resizable, becoming resizable+ if ( !isResizable && value !== false ) {+ this._makeResizable( value );+ }+ break;+ case "title":+ // convert whatever was passed in o a string, for html() to not throw up+ $( ".ui-dialog-title", this.uiDialogTitlebar )+ .html( "" + ( value || " " ) );+ break;+ }++ this._super( key, value );+ },++ _size: function() {+ /* If the user has resized the dialog, the .ui-dialog and .ui-dialog-content+ * divs will both have width and height set, so we need to reset them+ */+ var nonContentHeight, minContentHeight, autoHeight,+ options = this.options,+ isVisible = this.uiDialog.is( ":visible" );++ // reset content sizing+ this.element.show().css({+ width: "auto",+ minHeight: 0,+ height: 0+ });++ if ( options.minWidth > options.width ) {+ options.width = options.minWidth;+ }++ // reset wrapper sizing+ // determine the height of all the non-content elements+ nonContentHeight = this.uiDialog.css({+ height: "auto",+ width: options.width+ })+ .outerHeight();+ minContentHeight = Math.max( 0, options.minHeight - nonContentHeight );++ if ( options.height === "auto" ) {+ // only needed for IE6 support+ if ( $.support.minHeight ) {+ this.element.css({+ minHeight: minContentHeight,+ height: "auto"+ });+ } else {+ this.uiDialog.show();+ autoHeight = this.element.css( "height", "auto" ).height();+ if ( !isVisible ) {+ this.uiDialog.hide();+ }+ this.element.height( Math.max( autoHeight, minContentHeight ) );+ }+ } else {+ this.element.height( Math.max( options.height - nonContentHeight, 0 ) );+ }++ if (this.uiDialog.is( ":data(resizable)" ) ) {+ this.uiDialog.resizable( "option", "minHeight", this._minHeight() );+ }+ }+});++$.extend($.ui.dialog, {+ uuid: 0,+ maxZ: 0,++ getTitleId: function($el) {+ var id = $el.attr( "id" );+ if ( !id ) {+ this.uuid += 1;+ id = this.uuid;+ }+ return "ui-dialog-title-" + id;+ },++ overlay: function( dialog ) {+ this.$el = $.ui.dialog.overlay.create( dialog );+ }+});++$.extend( $.ui.dialog.overlay, {+ instances: [],+ // reuse old instances due to IE memory leak with alpha transparency (see #5185)+ oldInstances: [],+ maxZ: 0,+ events: $.map(+ "focus,mousedown,mouseup,keydown,keypress,click".split( "," ),+ function( event ) {+ return event + ".dialog-overlay";+ }+ ).join( " " ),+ create: function( dialog ) {+ if ( this.instances.length === 0 ) {+ // prevent use of anchors and inputs+ // we use a setTimeout in case the overlay is created from an+ // event that we're going to be cancelling (see #2804)+ setTimeout(function() {+ // handle $(el).dialog().dialog('close') (see #4065)+ if ( $.ui.dialog.overlay.instances.length ) {+ $( document ).bind( $.ui.dialog.overlay.events, function( event ) {+ // stop events if the z-index of the target is < the z-index of the overlay+ // we cannot return true when we don't want to cancel the event (#3523)+ if ( $( event.target ).zIndex() < $.ui.dialog.overlay.maxZ ) {+ return false;+ }+ });+ }+ }, 1 );++ // handle window resize+ $( window ).bind( "resize.dialog-overlay", $.ui.dialog.overlay.resize );+ }++ var $el = ( this.oldInstances.pop() || $( "<div>" ).addClass( "ui-widget-overlay" ) );++ // allow closing by pressing the escape key+ $( document ).bind( "keydown.dialog-overlay", function( event ) {+ var instances = $.ui.dialog.overlay.instances;+ // only react to the event if we're the top overlay+ if ( instances.length !== 0 && instances[ instances.length - 1 ] === $el &&+ dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode &&+ event.keyCode === $.ui.keyCode.ESCAPE ) {++ dialog.close( event );+ event.preventDefault();+ }+ });++ $el.appendTo( document.body ).css({+ width: this.width(),+ height: this.height()+ });++ if ( $.fn.bgiframe ) {+ $el.bgiframe();+ }++ this.instances.push( $el );+ return $el;+ },++ destroy: function( $el ) {+ var indexOf = $.inArray( $el, this.instances ),+ maxZ = 0;++ if ( indexOf !== -1 ) {+ this.oldInstances.push( this.instances.splice( indexOf, 1 )[ 0 ] );+ }++ if ( this.instances.length === 0 ) {+ $( [ document, window ] ).unbind( ".dialog-overlay" );+ }++ $el.height( 0 ).width( 0 ).remove();++ // adjust the maxZ to allow other modal dialogs to continue to work (see #4309)+ $.each( this.instances, function() {+ maxZ = Math.max( maxZ, this.css( "z-index" ) );+ });+ this.maxZ = maxZ;+ },++ height: function() {+ var scrollHeight,+ offsetHeight;+ // handle IE+ if ( $.ui.ie ) {+ scrollHeight = Math.max(+ document.documentElement.scrollHeight,+ document.body.scrollHeight+ );+ offsetHeight = Math.max(+ document.documentElement.offsetHeight,+ document.body.offsetHeight+ );++ if ( scrollHeight < offsetHeight ) {+ return $( window ).height() + "px";+ } else {+ return scrollHeight + "px";+ }+ // handle "good" browsers+ } else {+ return $( document ).height() + "px";+ }+ },++ width: function() {+ var scrollWidth,+ offsetWidth;+ // handle IE+ if ( $.ui.ie ) {+ scrollWidth = Math.max(+ document.documentElement.scrollWidth,+ document.body.scrollWidth+ );+ offsetWidth = Math.max(+ document.documentElement.offsetWidth,+ document.body.offsetWidth+ );++ if ( scrollWidth < offsetWidth ) {+ return $( window ).width() + "px";+ } else {+ return scrollWidth + "px";+ }+ // handle "good" browsers+ } else {+ return $( document ).width() + "px";+ }+ },++ resize: function() {+ /* If the dialog is draggable and the user drags it past the+ * right edge of the window, the document becomes wider so we+ * need to stretch the overlay. If the user then drags the+ * dialog back to the left, the document will become narrower,+ * so we need to shrink the overlay to the appropriate size.+ * This is handled by shrinking the overlay before setting it+ * to the full document size.+ */+ var $overlays = $( [] );+ $.each( $.ui.dialog.overlay.instances, function() {+ $overlays = $overlays.add( this );+ });++ $overlays.css({+ width: 0,+ height: 0+ }).css({+ width: $.ui.dialog.overlay.width(),+ height: $.ui.dialog.overlay.height()+ });+ }+});++$.extend( $.ui.dialog.overlay.prototype, {+ destroy: function() {+ $.ui.dialog.overlay.destroy( this.$el );+ }+});++}( jQuery ) );+(function( $, undefined ) {++$.widget("ui.draggable", $.ui.mouse, {+ version: "1.9.2",+ 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() {+ this.element.removeClass( "ui-draggable ui-draggable-dragging ui-draggable-disabled" );+ this._mouseDestroy();+ },++ _mouseCapture: function(event) {++ var o = this.options;++ // among others, prevent a drag on a resizable-handle+ if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle'))+ return false;++ //Quit if we're not on a valid handle+ this.handle = this._getHandle(event);+ if (!this.handle)+ return false;++ $(o.iframeFix === true ? "iframe" : o.iframeFix).each(function() {+ $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')+ .css({+ width: this.offsetWidth+"px", height: this.offsetHeight+"px",+ position: "absolute", opacity: "0.001", zIndex: 1000+ })+ .css($(this).offset())+ .appendTo("body");+ });++ return true;++ },++ _mouseStart: function(event) {++ var o = this.options;++ //Create and append the visible helper+ this.helper = this._createHelper(event);++ this.helper.addClass("ui-draggable-dragging");++ //Cache the helper size+ this._cacheHelperProportions();++ //If ddmanager is used for droppables, set the global draggable+ if($.ui.ddmanager)+ $.ui.ddmanager.current = this;++ /*+ * - Position generation -+ * This block generates everything position related - it's the core of draggables.+ */++ //Cache the margins of the original element+ this._cacheMargins();++ //Store the helper's css position+ this.cssPosition = this.helper.css("position");+ this.scrollParent = this.helper.scrollParent();++ //The element's absolute position on the page minus margins+ this.offset = this.positionAbs = this.element.offset();+ this.offset = {+ top: this.offset.top - this.margins.top,+ left: this.offset.left - this.margins.left+ };++ $.extend(this.offset, {+ click: { //Where the click happened, relative to the element+ left: event.pageX - this.offset.left,+ top: event.pageY - this.offset.top+ },+ parent: this._getParentOffset(),+ relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper+ });++ //Generate the original position+ this.originalPosition = this.position = this._generatePosition(event);+ this.originalPageX = event.pageX;+ this.originalPageY = event.pageY;++ //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));++ //Set a containment if given in the options+ if(o.containment)+ this._setContainment();++ //Trigger event + callbacks+ if(this._trigger("start", event) === false) {+ this._clear();+ return false;+ }++ //Recache the helper size+ this._cacheHelperProportions();++ //Prepare the droppable offsets+ if ($.ui.ddmanager && !o.dropBehaviour)+ $.ui.ddmanager.prepareOffsets(this, event);+++ this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position++ //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)+ if ( $.ui.ddmanager ) $.ui.ddmanager.dragStart(this, event);++ return true;+ },++ _mouseDrag: function(event, noPropagation) {++ //Compute the helpers position+ this.position = this._generatePosition(event);+ this.positionAbs = this._convertPositionTo("absolute");++ //Call plugins and callbacks and use the resulting position if something is returned+ if (!noPropagation) {+ var ui = this._uiHash();+ if(this._trigger('drag', event, ui) === false) {+ this._mouseUp({});+ return false;+ }+ this.position = ui.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';+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, event);++ return false;+ },++ _mouseStop: function(event) {++ //If we are using droppables, inform the manager about the drop+ var dropped = false;+ if ($.ui.ddmanager && !this.options.dropBehaviour)+ dropped = $.ui.ddmanager.drop(this, event);++ //if a drop comes from outside (a sortable)+ if(this.dropped) {+ dropped = this.dropped;+ this.dropped = false;+ }++ //if the original element is no longer in the DOM don't bother to continue (see #8269)+ var element = this.element[0], elementInDom = false;+ while ( element && (element = element.parentNode) ) {+ if (element == document ) {+ elementInDom = true;+ }+ }+ if ( !elementInDom && this.options.helper === "original" )+ return false;++ if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {+ var that = this;+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function() {+ if(that._trigger("stop", event) !== false) {+ that._clear();+ }+ });+ } else {+ if(this._trigger("stop", event) !== false) {+ this._clear();+ }+ }++ return false;+ },++ _mouseUp: function(event) {+ //Remove frame helpers+ $("div.ui-draggable-iframeFix").each(function() {+ this.parentNode.removeChild(this);+ });++ //If the ddmanager is used for droppables, inform the manager that dragging has stopped (see #5003)+ if( $.ui.ddmanager ) $.ui.ddmanager.dragStop(this, event);++ return $.ui.mouse.prototype._mouseUp.call(this, event);+ },++ cancel: function() {++ if(this.helper.is(".ui-draggable-dragging")) {+ this._mouseUp({});+ } else {+ this._clear();+ }++ return this;++ },++ _getHandle: function(event) {++ var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;+ $(this.options.handle, this.element)+ .find("*")+ .andSelf()+ .each(function() {+ if(this == event.target) handle = true;+ });++ return handle;++ },++ _createHelper: function(event) {++ var o = this.options;+ var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event])) : (o.helper == 'clone' ? this.element.clone().removeAttr('id') : this.element);++ if(!helper.parents('body').length)+ helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));++ if(helper[0] != this.element[0] && !(/(fixed|absolute)/).test(helper.css("position")))+ helper.css("position", "absolute");++ return helper;++ },++ _adjustOffsetFromHelper: function(obj) {+ if (typeof obj == 'string') {+ obj = obj.split(' ');+ }+ if ($.isArray(obj)) {+ obj = {left: +obj[0], top: +obj[1] || 0};+ }+ if ('left' in obj) {+ this.offset.click.left = obj.left + this.margins.left;+ }+ if ('right' in obj) {+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;+ }+ if ('top' in obj) {+ this.offset.click.top = obj.top + this.margins.top;+ }+ if ('bottom' in obj) {+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;+ }+ },++ _getParentOffset: function() {++ //Get the offsetParent and cache its position+ this.offsetParent = this.helper.offsetParent();+ var po = this.offsetParent.offset();++ // This is a special case where we need to modify a offset calculated on start, since the following happened:+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag+ if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) {+ po.left += this.scrollParent.scrollLeft();+ po.top += this.scrollParent.scrollTop();+ }++ if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information+ || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.ui.ie)) //Ugly IE fix+ po = { top: 0, left: 0 };++ return {+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)+ };++ },++ _getRelativeOffset: function() {++ if(this.cssPosition == "relative") {+ var p = this.element.position();+ return {+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),+ left: p.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),+ right: (parseInt(this.element.css("marginRight"),10) || 0),+ bottom: (parseInt(this.element.css("marginBottom"),10) || 0)+ };+ },++ _cacheHelperProportions: function() {+ this.helperProportions = {+ width: this.helper.outerWidth(),+ height: this.helper.outerHeight()+ };+ },++ _setContainment: function() {++ var o = this.options;+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;+ if(o.containment == 'document' || o.containment == 'window') this.containment = [+ o.containment == 'document' ? 0 : $(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left,+ o.containment == 'document' ? 0 : $(window).scrollTop() - this.offset.relative.top - this.offset.parent.top,+ (o.containment == 'document' ? 0 : $(window).scrollLeft()) + $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left,+ (o.containment == 'document' ? 0 : $(window).scrollTop()) + ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top+ ];++ if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {+ var c = $(o.containment);+ var ce = c[0]; if(!ce) return;+ var co = c.offset();+ var over = ($(ce).css("overflow") != 'hidden');++ this.containment = [+ (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0),+ (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0),+ (over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right,+ (over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom+ ];+ this.relative_container = c;++ } else if(o.containment.constructor == Array) {+ this.containment = o.containment;+ }++ },++ _convertPositionTo: function(d, pos) {++ if(!pos) pos = this.position;+ var mod = d == "absolute" ? 1 : -1;+ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);++ return {+ top: (+ pos.top // The absolute mouse position+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)+ - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)+ ),+ left: (+ pos.left // The absolute mouse position+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)+ - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)+ )+ };++ },++ _generatePosition: function(event) {++ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);+ var pageX = event.pageX;+ var pageY = event.pageY;++ /*+ * - Position constraining -+ * Constrain the position to a mix of grid, containment.+ */++ if(this.originalPosition) { //If we are not dragging yet, we won't check for options+ var containment;+ if(this.containment) {+ if (this.relative_container){+ var co = this.relative_container.offset();+ containment = [ this.containment[0] + co.left,+ this.containment[1] + co.top,+ this.containment[2] + co.left,+ this.containment[3] + co.top ];+ }+ else {+ containment = this.containment;+ }++ if(event.pageX - this.offset.click.left < containment[0]) pageX = containment[0] + this.offset.click.left;+ if(event.pageY - this.offset.click.top < containment[1]) pageY = containment[1] + this.offset.click.top;+ if(event.pageX - this.offset.click.left > containment[2]) pageX = containment[2] + this.offset.click.left;+ if(event.pageY - this.offset.click.top > containment[3]) pageY = containment[3] + this.offset.click.top;+ }++ if(o.grid) {+ //Check for grid elements set to 0 to prevent divide by 0 error causing invalid argument errors in IE (see ticket #6950)+ var top = o.grid[1] ? this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1] : this.originalPageY;+ pageY = containment ? (!(top - this.offset.click.top < containment[1] || top - this.offset.click.top > containment[3]) ? top : (!(top - this.offset.click.top < containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;++ var left = o.grid[0] ? this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0] : this.originalPageX;+ pageX = containment ? (!(left - this.offset.click.left < containment[0] || left - this.offset.click.left > containment[2]) ? left : (!(left - this.offset.click.left < containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;+ }++ }++ return {+ top: (+ pageY // The absolute mouse position+ - this.offset.click.top // Click offset (relative to the element)+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)+ + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))+ ),+ left: (+ pageX // The absolute mouse position+ - this.offset.click.left // Click offset (relative to the element)+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)+ + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))+ )+ };++ },++ _clear: function() {+ this.helper.removeClass("ui-draggable-dragging");+ if(this.helper[0] != this.element[0] && !this.cancelHelperRemoval) this.helper.remove();+ //if($.ui.ddmanager) $.ui.ddmanager.current = null;+ this.helper = null;+ this.cancelHelperRemoval = false;+ },++ // From now on bulk stuff - mainly helpers++ _trigger: function(type, event, ui) {+ ui = ui || this._uiHash();+ $.ui.plugin.call(this, type, [event, ui]);+ if(type == "drag") this.positionAbs = this._convertPositionTo("absolute"); //The absolute position has to be recalculated after plugins+ return $.Widget.prototype._trigger.call(this, type, event, ui);+ },++ plugins: {},++ _uiHash: function(event) {+ return {+ helper: this.helper,+ position: this.position,+ originalPosition: this.originalPosition,+ offset: this.positionAbs+ };+ }++});++$.ui.plugin.add("draggable", "connectToSortable", {+ start: function(event, ui) {++ var inst = $(this).data("draggable"), o = inst.options,+ uiSortable = $.extend({}, ui, { item: inst.element });+ inst.sortables = [];+ $(o.connectToSortable).each(function() {+ var sortable = $.data(this, 'sortable');+ if (sortable && !sortable.options.disabled) {+ inst.sortables.push({+ instance: sortable,+ shouldRevert: sortable.options.revert+ });+ sortable.refreshPositions(); // Call the sortable's refreshPositions at drag start to refresh the containerCache since the sortable container cache is used in drag and needs to be up to date (this will ensure it's initialised as well as being kept in step with any changes that might have happened on the page).+ sortable._trigger("activate", event, uiSortable);+ }+ });++ },+ stop: function(event, ui) {++ //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper+ var inst = $(this).data("draggable"),+ uiSortable = $.extend({}, ui, { item: inst.element });++ $.each(inst.sortables, function() {+ if(this.instance.isOver) {++ this.instance.isOver = 0;++ inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance+ this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)++ //The sortable revert is supported, and we have to set a temporary dropped variable on the draggable to support revert: 'valid/invalid'+ if(this.shouldRevert) this.instance.options.revert = true;++ //Trigger the stop of the sortable+ this.instance._mouseStop(event);++ this.instance.options.helper = this.instance.options._helper;++ //If the helper has been the original item, restore properties in the sortable+ if(inst.options.helper == 'original')+ this.instance.currentItem.css({ top: 'auto', left: 'auto' });++ } else {+ this.instance.cancelHelperRemoval = false; //Remove the helper in the sortable instance+ this.instance._trigger("deactivate", event, uiSortable);+ }++ });++ },+ drag: function(event, ui) {++ var inst = $(this).data("draggable"), that = this;++ var checkPos = function(o) {+ var dyClick = this.offset.click.top, dxClick = this.offset.click.left;+ var helperTop = this.positionAbs.top, helperLeft = this.positionAbs.left;+ var itemHeight = o.height, itemWidth = o.width;+ var itemTop = o.top, itemLeft = o.left;++ return $.ui.isOver(helperTop + dyClick, helperLeft + dxClick, itemTop, itemLeft, itemHeight, itemWidth);+ };++ $.each(inst.sortables, function(i) {++ var innermostIntersecting = false;+ var thisSortable = this;+ //Copy over some variables to allow calling the sortable's native _intersectsWith+ this.instance.positionAbs = inst.positionAbs;+ this.instance.helperProportions = inst.helperProportions;+ this.instance.offset.click = inst.offset.click;++ if(this.instance._intersectsWith(this.instance.containerCache)) {+ innermostIntersecting = true;+ $.each(inst.sortables, function () {+ this.instance.positionAbs = inst.positionAbs;+ this.instance.helperProportions = inst.helperProportions;+ this.instance.offset.click = inst.offset.click;+ if (this != thisSortable+ && this.instance._intersectsWith(this.instance.containerCache)+ && $.ui.contains(thisSortable.instance.element[0], this.instance.element[0]))+ innermostIntersecting = false;+ return innermostIntersecting;+ });+ }+++ if(innermostIntersecting) {+ //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once+ if(!this.instance.isOver) {++ this.instance.isOver = 1;+ //Now we fake the start of dragging for the sortable instance,+ //by cloning the list group item, appending it to the sortable and using it as inst.currentItem+ //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)+ this.instance.currentItem = $(that).clone().removeAttr('id').appendTo(this.instance.element).data("sortable-item", true);+ this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it+ this.instance.options.helper = function() { return ui.helper[0]; };++ event.target = this.instance.currentItem[0];+ this.instance._mouseCapture(event, true);+ this.instance._mouseStart(event, true, true);++ //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes+ this.instance.offset.click.top = inst.offset.click.top;+ this.instance.offset.click.left = inst.offset.click.left;+ this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;+ this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;++ inst._trigger("toSortable", event);+ inst.dropped = this.instance.element; //draggable revert needs that+ //hack so receive/update callbacks work (mostly)+ inst.currentItem = inst.element;+ this.instance.fromOutside = inst;++ }++ //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable+ if(this.instance.currentItem) this.instance._mouseDrag(event);++ } else {++ //If it doesn't intersect with the sortable, and it intersected before,+ //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval+ if(this.instance.isOver) {++ this.instance.isOver = 0;+ this.instance.cancelHelperRemoval = true;++ //Prevent reverting on this forced stop+ this.instance.options.revert = false;++ // The out event needs to be triggered independently+ this.instance._trigger('out', event, this.instance._uiHash(this.instance));++ this.instance._mouseStop(event, true);+ this.instance.options.helper = this.instance.options._helper;++ //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size+ this.instance.currentItem.remove();+ if(this.instance.placeholder) this.instance.placeholder.remove();++ inst._trigger("fromSortable", event);+ inst.dropped = false; //draggable revert needs that+ }++ };++ });++ }+});++$.ui.plugin.add("draggable", "cursor", {+ start: function(event, ui) {+ var t = $('body'), o = $(this).data('draggable').options;+ if (t.css("cursor")) o._cursor = t.css("cursor");+ t.css("cursor", o.cursor);+ },+ stop: function(event, ui) {+ var o = $(this).data('draggable').options;+ if (o._cursor) $('body').css("cursor", o._cursor);+ }+});++$.ui.plugin.add("draggable", "opacity", {+ start: function(event, ui) {+ var t = $(ui.helper), o = $(this).data('draggable').options;+ if(t.css("opacity")) o._opacity = t.css("opacity");+ t.css('opacity', o.opacity);+ },+ stop: function(event, ui) {+ var o = $(this).data('draggable').options;+ if(o._opacity) $(ui.helper).css('opacity', o._opacity);+ }+});++$.ui.plugin.add("draggable", "scroll", {+ start: function(event, ui) {+ var i = $(this).data("draggable");+ if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') i.overflowOffset = i.scrollParent.offset();+ },+ drag: function(event, ui) {++ var i = $(this).data("draggable"), o = i.options, scrolled = false;++ if(i.scrollParent[0] != document && i.scrollParent[0].tagName != 'HTML') {++ if(!o.axis || o.axis != 'x') {+ if((i.overflowOffset.top + i.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)+ i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop + o.scrollSpeed;+ else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity)+ i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;+ }++ if(!o.axis || o.axis != 'y') {+ if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)+ i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;+ else if(event.pageX - i.overflowOffset.left < o.scrollSensitivity)+ i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft - o.scrollSpeed;+ }++ } else {++ if(!o.axis || o.axis != 'x') {+ if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);+ else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);+ }++ if(!o.axis || o.axis != 'y') {+ if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);+ else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);+ }++ }++ if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)+ $.ui.ddmanager.prepareOffsets(i, event);++ }+});++$.ui.plugin.add("draggable", "snap", {+ start: function(event, ui) {++ var i = $(this).data("draggable"), o = i.options;+ i.snapElements = [];++ $(o.snap.constructor != String ? ( o.snap.items || ':data(draggable)' ) : o.snap).each(function() {+ var $t = $(this); var $o = $t.offset();+ if(this != i.element[0]) i.snapElements.push({+ item: this,+ width: $t.outerWidth(), height: $t.outerHeight(),+ top: $o.top, left: $o.left+ });+ });++ },+ drag: function(event, ui) {++ var inst = $(this).data("draggable"), o = inst.options;+ var d = o.snapTolerance;++ var x1 = ui.offset.left, x2 = x1 + inst.helperProportions.width,+ y1 = ui.offset.top, y2 = y1 + inst.helperProportions.height;++ for (var i = inst.snapElements.length - 1; i >= 0; i--){++ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,+ t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;++ //Yes, I know, this is insane ;)+ if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {+ if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));+ inst.snapElements[i].snapping = false;+ continue;+ }++ if(o.snapMode != 'inner') {+ var ts = Math.abs(t - y2) <= d;+ var bs = Math.abs(b - y1) <= d;+ var ls = Math.abs(l - x2) <= d;+ var rs = Math.abs(r - x1) <= d;+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top - inst.margins.top;+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b, left: 0 }).top - inst.margins.top;+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left - inst.margins.left;+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r }).left - inst.margins.left;+ }++ var first = (ts || bs || ls || rs);++ if(o.snapMode != 'outer') {+ var ts = Math.abs(t - y1) <= d;+ var bs = Math.abs(b - y2) <= d;+ var ls = Math.abs(l - x1) <= d;+ var rs = Math.abs(r - x2) <= d;+ if(ts) ui.position.top = inst._convertPositionTo("relative", { top: t, left: 0 }).top - inst.margins.top;+ if(bs) ui.position.top = inst._convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top - inst.margins.top;+ if(ls) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: l }).left - inst.margins.left;+ if(rs) ui.position.left = inst._convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left - inst.margins.left;+ }++ if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst._uiHash(), { snapItem: inst.snapElements[i].item })));+ inst.snapElements[i].snapping = (ts || bs || ls || rs || first);++ };++ }+});++$.ui.plugin.add("draggable", "stack", {+ start: function(event, ui) {++ var o = $(this).data("draggable").options;++ var group = $.makeArray($(o.stack)).sort(function(a,b) {+ return (parseInt($(a).css("zIndex"),10) || 0) - (parseInt($(b).css("zIndex"),10) || 0);+ });+ if (!group.length) { return; }++ var min = parseInt(group[0].style.zIndex) || 0;+ $(group).each(function(i) {+ this.style.zIndex = min + i;+ });++ this[0].style.zIndex = min + group.length;++ }+});++$.ui.plugin.add("draggable", "zIndex", {+ start: function(event, ui) {+ var t = $(ui.helper), o = $(this).data("draggable").options;+ if(t.css("zIndex")) o._zIndex = t.css("zIndex");+ t.css('zIndex', o.zIndex);+ },+ stop: function(event, ui) {+ var o = $(this).data("draggable").options;+ if(o._zIndex) $(ui.helper).css('zIndex', o._zIndex);+ }+});++})(jQuery);+(function( $, undefined ) {++$.widget("ui.droppable", {+ version: "1.9.2",+ widgetEventPrefix: "drop",+ options: {+ accept: '*',+ activeClass: false,+ addClasses: true,+ greedy: false,+ hoverClass: false,+ scope: 'default',+ tolerance: 'intersect'+ },+ _create: function() {++ var o = this.options, accept = o.accept;+ this.isover = 0; this.isout = 1;++ this.accept = $.isFunction(accept) ? accept : function(d) {+ return d.is(accept);+ };++ //Store the droppable's proportions+ this.proportions = { width: this.element[0].offsetWidth, height: this.element[0].offsetHeight };++ // Add the reference and positions to the manager+ $.ui.ddmanager.droppables[o.scope] = $.ui.ddmanager.droppables[o.scope] || [];+ $.ui.ddmanager.droppables[o.scope].push(this);++ (o.addClasses && this.element.addClass("ui-droppable"));++ },++ _destroy: function() {+ var drop = $.ui.ddmanager.droppables[this.options.scope];+ for ( var i = 0; i < drop.length; i++ )+ if ( drop[i] == this )+ drop.splice(i, 1);++ this.element.removeClass("ui-droppable ui-droppable-disabled");+ },++ _setOption: function(key, value) {++ if(key == 'accept') {+ this.accept = $.isFunction(value) ? value : function(d) {+ return d.is(value);+ };+ }+ $.Widget.prototype._setOption.apply(this, arguments);+ },++ _activate: function(event) {+ var draggable = $.ui.ddmanager.current;+ if(this.options.activeClass) this.element.addClass(this.options.activeClass);+ (draggable && this._trigger('activate', event, this.ui(draggable)));+ },++ _deactivate: function(event) {+ var draggable = $.ui.ddmanager.current;+ if(this.options.activeClass) this.element.removeClass(this.options.activeClass);+ (draggable && this._trigger('deactivate', event, this.ui(draggable)));+ },++ _over: function(event) {++ var draggable = $.ui.ddmanager.current;+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element++ if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {+ if(this.options.hoverClass) this.element.addClass(this.options.hoverClass);+ this._trigger('over', event, this.ui(draggable));+ }++ },++ _out: function(event) {++ var draggable = $.ui.ddmanager.current;+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element++ if (this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {+ if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass);+ this._trigger('out', event, this.ui(draggable));+ }++ },++ _drop: function(event,custom) {++ var draggable = custom || $.ui.ddmanager.current;+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element++ var childrenIntersection = false;+ this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function() {+ var inst = $.data(this, 'droppable');+ if(+ inst.options.greedy+ && !inst.options.disabled+ && inst.options.scope == draggable.options.scope+ && inst.accept.call(inst.element[0], (draggable.currentItem || draggable.element))+ && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)+ ) { childrenIntersection = true; return false; }+ });+ if(childrenIntersection) return false;++ if(this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {+ if(this.options.activeClass) this.element.removeClass(this.options.activeClass);+ if(this.options.hoverClass) this.element.removeClass(this.options.hoverClass);+ this._trigger('drop', event, this.ui(draggable));+ return this.element;+ }++ return false;++ },++ ui: function(c) {+ return {+ draggable: (c.currentItem || c.element),+ helper: c.helper,+ position: c.position,+ offset: c.positionAbs+ };+ }++});++$.ui.intersect = function(draggable, droppable, toleranceMode) {++ if (!droppable.offset) return false;++ var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,+ y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height;+ var l = droppable.offset.left, r = l + droppable.proportions.width,+ t = droppable.offset.top, b = t + droppable.proportions.height;++ switch (toleranceMode) {+ case 'fit':+ return (l <= x1 && x2 <= r+ && t <= y1 && y2 <= b);+ break;+ case 'intersect':+ return (l < x1 + (draggable.helperProportions.width / 2) // Right Half+ && x2 - (draggable.helperProportions.width / 2) < r // Left Half+ && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half+ && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half+ break;+ case 'pointer':+ var draggableLeft = ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left),+ draggableTop = ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top),+ isOver = $.ui.isOver(draggableTop, draggableLeft, t, l, droppable.proportions.height, droppable.proportions.width);+ return isOver;+ break;+ case 'touch':+ return (+ (y1 >= t && y1 <= b) || // Top edge touching+ (y2 >= t && y2 <= b) || // Bottom edge touching+ (y1 < t && y2 > b) // Surrounded vertically+ ) && (+ (x1 >= l && x1 <= r) || // Left edge touching+ (x2 >= l && x2 <= r) || // Right edge touching+ (x1 < l && x2 > r) // Surrounded horizontally+ );+ break;+ default:+ return false;+ break;+ }++};++/*+ This manager tracks offsets of draggables and droppables+*/+$.ui.ddmanager = {+ current: null,+ droppables: { 'default': [] },+ prepareOffsets: function(t, event) {++ var m = $.ui.ddmanager.droppables[t.options.scope] || [];+ var type = event ? event.type : null; // workaround for #2317+ var list = (t.currentItem || t.element).find(":data(droppable)").andSelf();++ droppablesLoop: for (var i = 0; i < m.length; i++) {++ if(m[i].options.disabled || (t && !m[i].accept.call(m[i].element[0],(t.currentItem || t.element)))) continue; //No disabled and non-accepted+ for (var j=0; j < list.length; j++) { if(list[j] == m[i].element[0]) { m[i].proportions.height = 0; continue droppablesLoop; } }; //Filter out elements in the current dragged item+ m[i].visible = m[i].element.css("display") != "none"; if(!m[i].visible) continue; //If the element is not visible, continue++ if(type == "mousedown") m[i]._activate.call(m[i], event); //Activate the droppable if used directly from draggables++ m[i].offset = m[i].element.offset();+ m[i].proportions = { width: m[i].element[0].offsetWidth, height: m[i].element[0].offsetHeight };++ }++ },+ drop: function(draggable, event) {++ var dropped = false;+ $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {++ if(!this.options) return;+ if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))+ dropped = this._drop.call(this, event) || dropped;++ if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {+ this.isout = 1; this.isover = 0;+ this._deactivate.call(this, event);+ }++ });+ return dropped;++ },+ dragStart: function( draggable, event ) {+ //Listen for scrolling so that if the dragging causes scrolling the position of the droppables can be recalculated (see #5003)+ draggable.element.parentsUntil( "body" ).bind( "scroll.droppable", function() {+ if( !draggable.options.refreshPositions ) $.ui.ddmanager.prepareOffsets( draggable, event );+ });+ },+ drag: function(draggable, event) {++ //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.+ if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, event);++ //Run through all droppables and check their positions based on specific tolerance options+ $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {++ if(this.options.disabled || this.greedyChild || !this.visible) return;+ var intersects = $.ui.intersect(draggable, this, this.options.tolerance);++ var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null);+ if(!c) return;++ var parentInstance;+ if (this.options.greedy) {+ // find droppable parents with same scope+ var scope = this.options.scope;+ var parent = this.element.parents(':data(droppable)').filter(function () {+ return $.data(this, 'droppable').options.scope === scope;+ });++ if (parent.length) {+ parentInstance = $.data(parent[0], 'droppable');+ parentInstance.greedyChild = (c == 'isover' ? 1 : 0);+ }+ }++ // we just moved into a greedy child+ if (parentInstance && c == 'isover') {+ parentInstance['isover'] = 0;+ parentInstance['isout'] = 1;+ parentInstance._out.call(parentInstance, event);+ }++ this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0;+ this[c == "isover" ? "_over" : "_out"].call(this, event);++ // we just moved out of a greedy child+ if (parentInstance && c == 'isout') {+ parentInstance['isout'] = 0;+ parentInstance['isover'] = 1;+ parentInstance._over.call(parentInstance, event);+ }+ });++ },+ dragStop: function( draggable, event ) {+ draggable.element.parentsUntil( "body" ).unbind( "scroll.droppable" );+ //Call prepareOffsets one final time since IE does not fire return scroll events when overflow was caused by drag (see #5003)+ if( !draggable.options.refreshPositions ) $.ui.ddmanager.prepareOffsets( draggable, event );+ }+};++})(jQuery);+;(jQuery.effects || (function($, undefined) {++var backCompat = $.uiBackCompat !== false,+ // prefix used for storing data on .data()+ dataSpace = "ui-effects-";++$.effects = {+ effect: {}+};++/*!+ * jQuery Color Animations v2.0.0+ * http://jquery.com/+ *+ * Copyright 2012 jQuery Foundation and other contributors+ * Released under the MIT license.+ * http://jquery.org/license+ *+ * Date: Mon Aug 13 13:41:02 2012 -0500+ */+(function( jQuery, undefined ) {++ var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),++ // plusequals test for += 100 -= 100+ rplusequals = /^([\-+])=\s*(\d+\.?\d*)/,+ // a set of RE's that can match strings and generate color tuples.+ stringParsers = [{+ re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,+ parse: function( execResult ) {+ return [+ execResult[ 1 ],+ execResult[ 2 ],+ execResult[ 3 ],+ execResult[ 4 ]+ ];+ }+ }, {+ re: /rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,+ parse: function( execResult ) {+ return [+ execResult[ 1 ] * 2.55,+ execResult[ 2 ] * 2.55,+ execResult[ 3 ] * 2.55,+ execResult[ 4 ]+ ];+ }+ }, {+ // this regex ignores A-F because it's compared against an already lowercased string+ re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,+ parse: function( execResult ) {+ return [+ parseInt( execResult[ 1 ], 16 ),+ parseInt( execResult[ 2 ], 16 ),+ parseInt( execResult[ 3 ], 16 )+ ];+ }+ }, {+ // this regex ignores A-F because it's compared against an already lowercased string+ re: /#([a-f0-9])([a-f0-9])([a-f0-9])/,+ parse: function( execResult ) {+ return [+ parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ),+ parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ),+ parseInt( execResult[ 3 ] + execResult[ 3 ], 16 )+ ];+ }+ }, {+ re: /hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,+ space: "hsla",+ parse: function( execResult ) {+ return [+ execResult[ 1 ],+ execResult[ 2 ] / 100,+ execResult[ 3 ] / 100,+ execResult[ 4 ]+ ];+ }+ }],++ // jQuery.Color( )+ color = jQuery.Color = function( color, green, blue, alpha ) {+ return new jQuery.Color.fn.parse( color, green, blue, alpha );+ },+ spaces = {+ rgba: {+ props: {+ red: {+ idx: 0,+ type: "byte"+ },+ green: {+ idx: 1,+ type: "byte"+ },+ blue: {+ idx: 2,+ type: "byte"+ }+ }+ },++ hsla: {+ props: {+ hue: {+ idx: 0,+ type: "degrees"+ },+ saturation: {+ idx: 1,+ type: "percent"+ },+ lightness: {+ idx: 2,+ type: "percent"+ }+ }+ }+ },+ propTypes = {+ "byte": {+ floor: true,+ max: 255+ },+ "percent": {+ max: 1+ },+ "degrees": {+ mod: 360,+ floor: true+ }+ },+ support = color.support = {},++ // element for support tests+ supportElem = jQuery( "<p>" )[ 0 ],++ // colors = jQuery.Color.names+ colors,++ // local aliases of functions called often+ each = jQuery.each;++// determine rgba support immediately+supportElem.style.cssText = "background-color:rgba(1,1,1,.5)";+support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1;++// define cache name and alpha properties+// for rgba and hsla spaces+each( spaces, function( spaceName, space ) {+ space.cache = "_" + spaceName;+ space.props.alpha = {+ idx: 3,+ type: "percent",+ def: 1+ };+});++function clamp( value, prop, allowEmpty ) {+ var type = propTypes[ prop.type ] || {};++ if ( value == null ) {+ return (allowEmpty || !prop.def) ? null : prop.def;+ }++ // ~~ is an short way of doing floor for positive numbers+ value = type.floor ? ~~value : parseFloat( value );++ // IE will pass in empty strings as value for alpha,+ // which will hit this case+ if ( isNaN( value ) ) {+ return prop.def;+ }++ if ( type.mod ) {+ // we add mod before modding to make sure that negatives values+ // get converted properly: -10 -> 350+ return (value + type.mod) % type.mod;+ }++ // for now all property types without mod have min and max+ return 0 > value ? 0 : type.max < value ? type.max : value;+}++function stringParse( string ) {+ var inst = color(),+ rgba = inst._rgba = [];++ string = string.toLowerCase();++ each( stringParsers, function( i, parser ) {+ var parsed,+ match = parser.re.exec( string ),+ values = match && parser.parse( match ),+ spaceName = parser.space || "rgba";++ if ( values ) {+ parsed = inst[ spaceName ]( values );++ // if this was an rgba parse the assignment might happen twice+ // oh well....+ inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ];+ rgba = inst._rgba = parsed._rgba;++ // exit each( stringParsers ) here because we matched+ return false;+ }+ });++ // Found a stringParser that handled it+ if ( rgba.length ) {++ // if this came from a parsed string, force "transparent" when alpha is 0+ // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0)+ if ( rgba.join() === "0,0,0,0" ) {+ jQuery.extend( rgba, colors.transparent );+ }+ return inst;+ }++ // named colors+ return colors[ string ];+}++color.fn = jQuery.extend( color.prototype, {+ parse: function( red, green, blue, alpha ) {+ if ( red === undefined ) {+ this._rgba = [ null, null, null, null ];+ return this;+ }+ if ( red.jquery || red.nodeType ) {+ red = jQuery( red ).css( green );+ green = undefined;+ }++ var inst = this,+ type = jQuery.type( red ),+ rgba = this._rgba = [];++ // more than 1 argument specified - assume ( red, green, blue, alpha )+ if ( green !== undefined ) {+ red = [ red, green, blue, alpha ];+ type = "array";+ }++ if ( type === "string" ) {+ return this.parse( stringParse( red ) || colors._default );+ }++ if ( type === "array" ) {+ each( spaces.rgba.props, function( key, prop ) {+ rgba[ prop.idx ] = clamp( red[ prop.idx ], prop );+ });+ return this;+ }++ if ( type === "object" ) {+ if ( red instanceof color ) {+ each( spaces, function( spaceName, space ) {+ if ( red[ space.cache ] ) {+ inst[ space.cache ] = red[ space.cache ].slice();+ }+ });+ } else {+ each( spaces, function( spaceName, space ) {+ var cache = space.cache;+ each( space.props, function( key, prop ) {++ // if the cache doesn't exist, and we know how to convert+ if ( !inst[ cache ] && space.to ) {++ // if the value was null, we don't need to copy it+ // if the key was alpha, we don't need to copy it either+ if ( key === "alpha" || red[ key ] == null ) {+ return;+ }+ inst[ cache ] = space.to( inst._rgba );+ }++ // this is the only case where we allow nulls for ALL properties.+ // call clamp with alwaysAllowEmpty+ inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true );+ });++ // everything defined but alpha?+ if ( inst[ cache ] && $.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) {+ // use the default of 1+ inst[ cache ][ 3 ] = 1;+ if ( space.from ) {+ inst._rgba = space.from( inst[ cache ] );+ }+ }+ });+ }+ return this;+ }+ },+ is: function( compare ) {+ var is = color( compare ),+ same = true,+ inst = this;++ each( spaces, function( _, space ) {+ var localCache,+ isCache = is[ space.cache ];+ if (isCache) {+ localCache = inst[ space.cache ] || space.to && space.to( inst._rgba ) || [];+ each( space.props, function( _, prop ) {+ if ( isCache[ prop.idx ] != null ) {+ same = ( isCache[ prop.idx ] === localCache[ prop.idx ] );+ return same;+ }+ });+ }+ return same;+ });+ return same;+ },+ _space: function() {+ var used = [],+ inst = this;+ each( spaces, function( spaceName, space ) {+ if ( inst[ space.cache ] ) {+ used.push( spaceName );+ }+ });+ return used.pop();+ },+ transition: function( other, distance ) {+ var end = color( other ),+ spaceName = end._space(),+ space = spaces[ spaceName ],+ startColor = this.alpha() === 0 ? color( "transparent" ) : this,+ start = startColor[ space.cache ] || space.to( startColor._rgba ),+ result = start.slice();++ end = end[ space.cache ];+ each( space.props, function( key, prop ) {+ var index = prop.idx,+ startValue = start[ index ],+ endValue = end[ index ],+ type = propTypes[ prop.type ] || {};++ // if null, don't override start value+ if ( endValue === null ) {+ return;+ }+ // if null - use end+ if ( startValue === null ) {+ result[ index ] = endValue;+ } else {+ if ( type.mod ) {+ if ( endValue - startValue > type.mod / 2 ) {+ startValue += type.mod;+ } else if ( startValue - endValue > type.mod / 2 ) {+ startValue -= type.mod;+ }+ }+ result[ index ] = clamp( ( endValue - startValue ) * distance + startValue, prop );+ }+ });+ return this[ spaceName ]( result );+ },+ blend: function( opaque ) {+ // if we are already opaque - return ourself+ if ( this._rgba[ 3 ] === 1 ) {+ return this;+ }++ var rgb = this._rgba.slice(),+ a = rgb.pop(),+ blend = color( opaque )._rgba;++ return color( jQuery.map( rgb, function( v, i ) {+ return ( 1 - a ) * blend[ i ] + a * v;+ }));+ },+ toRgbaString: function() {+ var prefix = "rgba(",+ rgba = jQuery.map( this._rgba, function( v, i ) {+ return v == null ? ( i > 2 ? 1 : 0 ) : v;+ });++ if ( rgba[ 3 ] === 1 ) {+ rgba.pop();+ prefix = "rgb(";+ }++ return prefix + rgba.join() + ")";+ },+ toHslaString: function() {+ var prefix = "hsla(",+ hsla = jQuery.map( this.hsla(), function( v, i ) {+ if ( v == null ) {+ v = i > 2 ? 1 : 0;+ }++ // catch 1 and 2+ if ( i && i < 3 ) {+ v = Math.round( v * 100 ) + "%";+ }+ return v;+ });++ if ( hsla[ 3 ] === 1 ) {+ hsla.pop();+ prefix = "hsl(";+ }+ return prefix + hsla.join() + ")";+ },+ toHexString: function( includeAlpha ) {+ var rgba = this._rgba.slice(),+ alpha = rgba.pop();++ if ( includeAlpha ) {+ rgba.push( ~~( alpha * 255 ) );+ }++ return "#" + jQuery.map( rgba, function( v ) {++ // default to 0 when nulls exist+ v = ( v || 0 ).toString( 16 );+ return v.length === 1 ? "0" + v : v;+ }).join("");+ },+ toString: function() {+ return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString();+ }+});+color.fn.parse.prototype = color.fn;++// hsla conversions adapted from:+// https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021++function hue2rgb( p, q, h ) {+ h = ( h + 1 ) % 1;+ if ( h * 6 < 1 ) {+ return p + (q - p) * h * 6;+ }+ if ( h * 2 < 1) {+ return q;+ }+ if ( h * 3 < 2 ) {+ return p + (q - p) * ((2/3) - h) * 6;+ }+ return p;+}++spaces.hsla.to = function ( rgba ) {+ if ( rgba[ 0 ] == null || rgba[ 1 ] == null || rgba[ 2 ] == null ) {+ return [ null, null, null, rgba[ 3 ] ];+ }+ var r = rgba[ 0 ] / 255,+ g = rgba[ 1 ] / 255,+ b = rgba[ 2 ] / 255,+ a = rgba[ 3 ],+ max = Math.max( r, g, b ),+ min = Math.min( r, g, b ),+ diff = max - min,+ add = max + min,+ l = add * 0.5,+ h, s;++ if ( min === max ) {+ h = 0;+ } else if ( r === max ) {+ h = ( 60 * ( g - b ) / diff ) + 360;+ } else if ( g === max ) {+ h = ( 60 * ( b - r ) / diff ) + 120;+ } else {+ h = ( 60 * ( r - g ) / diff ) + 240;+ }++ if ( l === 0 || l === 1 ) {+ s = l;+ } else if ( l <= 0.5 ) {+ s = diff / add;+ } else {+ s = diff / ( 2 - add );+ }+ return [ Math.round(h) % 360, s, l, a == null ? 1 : a ];+};++spaces.hsla.from = function ( hsla ) {+ if ( hsla[ 0 ] == null || hsla[ 1 ] == null || hsla[ 2 ] == null ) {+ return [ null, null, null, hsla[ 3 ] ];+ }+ var h = hsla[ 0 ] / 360,+ s = hsla[ 1 ],+ l = hsla[ 2 ],+ a = hsla[ 3 ],+ q = l <= 0.5 ? l * ( 1 + s ) : l + s - l * s,+ p = 2 * l - q;++ return [+ Math.round( hue2rgb( p, q, h + ( 1 / 3 ) ) * 255 ),+ Math.round( hue2rgb( p, q, h ) * 255 ),+ Math.round( hue2rgb( p, q, h - ( 1 / 3 ) ) * 255 ),+ a+ ];+};+++each( spaces, function( spaceName, space ) {+ var props = space.props,+ cache = space.cache,+ to = space.to,+ from = space.from;++ // makes rgba() and hsla()+ color.fn[ spaceName ] = function( value ) {++ // generate a cache for this space if it doesn't exist+ if ( to && !this[ cache ] ) {+ this[ cache ] = to( this._rgba );+ }+ if ( value === undefined ) {+ return this[ cache ].slice();+ }++ var ret,+ type = jQuery.type( value ),+ arr = ( type === "array" || type === "object" ) ? value : arguments,+ local = this[ cache ].slice();++ each( props, function( key, prop ) {+ var val = arr[ type === "object" ? key : prop.idx ];+ if ( val == null ) {+ val = local[ prop.idx ];+ }+ local[ prop.idx ] = clamp( val, prop );+ });++ if ( from ) {+ ret = color( from( local ) );+ ret[ cache ] = local;+ return ret;+ } else {+ return color( local );+ }+ };++ // makes red() green() blue() alpha() hue() saturation() lightness()+ each( props, function( key, prop ) {+ // alpha is included in more than one space+ if ( color.fn[ key ] ) {+ return;+ }+ color.fn[ key ] = function( value ) {+ var vtype = jQuery.type( value ),+ fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ),+ local = this[ fn ](),+ cur = local[ prop.idx ],+ match;++ if ( vtype === "undefined" ) {+ return cur;+ }++ if ( vtype === "function" ) {+ value = value.call( this, cur );+ vtype = jQuery.type( value );+ }+ if ( value == null && prop.empty ) {+ return this;+ }+ if ( vtype === "string" ) {+ match = rplusequals.exec( value );+ if ( match ) {+ value = cur + parseFloat( match[ 2 ] ) * ( match[ 1 ] === "+" ? 1 : -1 );+ }+ }+ local[ prop.idx ] = value;+ return this[ fn ]( local );+ };+ });+});++// add .fx.step functions+each( stepHooks, function( i, hook ) {+ jQuery.cssHooks[ hook ] = {+ set: function( elem, value ) {+ var parsed, curElem,+ backgroundColor = "";++ if ( jQuery.type( value ) !== "string" || ( parsed = stringParse( value ) ) ) {+ value = color( parsed || value );+ if ( !support.rgba && value._rgba[ 3 ] !== 1 ) {+ curElem = hook === "backgroundColor" ? elem.parentNode : elem;+ while (+ (backgroundColor === "" || backgroundColor === "transparent") &&+ curElem && curElem.style+ ) {+ try {+ backgroundColor = jQuery.css( curElem, "backgroundColor" );+ curElem = curElem.parentNode;+ } catch ( e ) {+ }+ }++ value = value.blend( backgroundColor && backgroundColor !== "transparent" ?+ backgroundColor :+ "_default" );+ }++ value = value.toRgbaString();+ }+ try {+ elem.style[ hook ] = value;+ } catch( error ) {+ // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'+ }+ }+ };+ jQuery.fx.step[ hook ] = function( fx ) {+ if ( !fx.colorInit ) {+ fx.start = color( fx.elem, hook );+ fx.end = color( fx.end );+ fx.colorInit = true;+ }+ jQuery.cssHooks[ hook ].set( fx.elem, fx.start.transition( fx.end, fx.pos ) );+ };+});++jQuery.cssHooks.borderColor = {+ expand: function( value ) {+ var expanded = {};++ each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {+ expanded[ "border" + part + "Color" ] = value;+ });+ return expanded;+ }+};++// Basic color names only.+// Usage of any of the other color names requires adding yourself or including+// jquery.color.svg-names.js.+colors = jQuery.Color.names = {+ // 4.1. Basic color keywords+ aqua: "#00ffff",+ black: "#000000",+ blue: "#0000ff",+ fuchsia: "#ff00ff",+ gray: "#808080",+ green: "#008000",+ lime: "#00ff00",+ maroon: "#800000",+ navy: "#000080",+ olive: "#808000",+ purple: "#800080",+ red: "#ff0000",+ silver: "#c0c0c0",+ teal: "#008080",+ white: "#ffffff",+ yellow: "#ffff00",++ // 4.2.3. "transparent" color keyword+ transparent: [ null, null, null, 0 ],++ _default: "#ffffff"+};++})( jQuery );++++/******************************************************************************/+/****************************** CLASS ANIMATIONS ******************************/+/******************************************************************************/+(function() {++var classAnimationActions = [ "add", "remove", "toggle" ],+ shorthandStyles = {+ border: 1,+ borderBottom: 1,+ borderColor: 1,+ borderLeft: 1,+ borderRight: 1,+ borderTop: 1,+ borderWidth: 1,+ margin: 1,+ padding: 1+ };++$.each([ "borderLeftStyle", "borderRightStyle", "borderBottomStyle", "borderTopStyle" ], function( _, prop ) {+ $.fx.step[ prop ] = function( fx ) {+ if ( fx.end !== "none" && !fx.setAttr || fx.pos === 1 && !fx.setAttr ) {+ jQuery.style( fx.elem, prop, fx.end );+ fx.setAttr = true;+ }+ };+});++function getElementStyles() {+ var style = this.ownerDocument.defaultView ?+ this.ownerDocument.defaultView.getComputedStyle( this, null ) :+ this.currentStyle,+ newStyle = {},+ key,+ len;++ // webkit enumerates style porperties+ if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) {+ len = style.length;+ while ( len-- ) {+ key = style[ len ];+ if ( typeof style[ key ] === "string" ) {+ newStyle[ $.camelCase( key ) ] = style[ key ];+ }+ }+ } else {+ for ( key in style ) {+ if ( typeof style[ key ] === "string" ) {+ newStyle[ key ] = style[ key ];+ }+ }+ }++ return newStyle;+}+++function styleDifference( oldStyle, newStyle ) {+ var diff = {},+ name, value;++ for ( name in newStyle ) {+ value = newStyle[ name ];+ if ( oldStyle[ name ] !== value ) {+ if ( !shorthandStyles[ name ] ) {+ if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {+ diff[ name ] = value;+ }+ }+ }+ }++ return diff;+}++$.effects.animateClass = function( value, duration, easing, callback ) {+ var o = $.speed( duration, easing, callback );++ return this.queue( function() {+ var animated = $( this ),+ baseClass = animated.attr( "class" ) || "",+ applyClassChange,+ allAnimations = o.children ? animated.find( "*" ).andSelf() : animated;++ // map the animated objects to store the original styles.+ allAnimations = allAnimations.map(function() {+ var el = $( this );+ return {+ el: el,+ start: getElementStyles.call( this )+ };+ });++ // apply class change+ applyClassChange = function() {+ $.each( classAnimationActions, function(i, action) {+ if ( value[ action ] ) {+ animated[ action + "Class" ]( value[ action ] );+ }+ });+ };+ applyClassChange();++ // map all animated objects again - calculate new styles and diff+ allAnimations = allAnimations.map(function() {+ this.end = getElementStyles.call( this.el[ 0 ] );+ this.diff = styleDifference( this.start, this.end );+ return this;+ });++ // apply original class+ animated.attr( "class", baseClass );++ // map all animated objects again - this time collecting a promise+ allAnimations = allAnimations.map(function() {+ var styleInfo = this,+ dfd = $.Deferred(),+ opts = jQuery.extend({}, o, {+ queue: false,+ complete: function() {+ dfd.resolve( styleInfo );+ }+ });++ this.el.animate( this.diff, opts );+ return dfd.promise();+ });++ // once all animations have completed:+ $.when.apply( $, allAnimations.get() ).done(function() {++ // set the final class+ applyClassChange();++ // for each animated element,+ // clear all css properties that were animated+ $.each( arguments, function() {+ var el = this.el;+ $.each( this.diff, function(key) {+ el.css( key, '' );+ });+ });++ // this is guarnteed to be there if you use jQuery.speed()+ // it also handles dequeuing the next anim...+ o.complete.call( animated[ 0 ] );+ });+ });+};++$.fn.extend({+ _addClass: $.fn.addClass,+ addClass: function( classNames, speed, easing, callback ) {+ return speed ?+ $.effects.animateClass.call( this,+ { add: classNames }, speed, easing, callback ) :+ this._addClass( classNames );+ },++ _removeClass: $.fn.removeClass,+ removeClass: function( classNames, speed, easing, callback ) {+ return speed ?+ $.effects.animateClass.call( this,+ { remove: classNames }, speed, easing, callback ) :+ this._removeClass( classNames );+ },++ _toggleClass: $.fn.toggleClass,+ toggleClass: function( classNames, force, speed, easing, callback ) {+ if ( typeof force === "boolean" || force === undefined ) {+ if ( !speed ) {+ // without speed parameter+ return this._toggleClass( classNames, force );+ } else {+ return $.effects.animateClass.call( this,+ (force ? { add: classNames } : { remove: classNames }),+ speed, easing, callback );+ }+ } else {+ // without force parameter+ return $.effects.animateClass.call( this,+ { toggle: classNames }, force, speed, easing );+ }+ },++ switchClass: function( remove, add, speed, easing, callback) {+ return $.effects.animateClass.call( this, {+ add: add,+ remove: remove+ }, speed, easing, callback );+ }+});++})();++/******************************************************************************/+/*********************************** EFFECTS **********************************/+/******************************************************************************/++(function() {++$.extend( $.effects, {+ version: "1.9.2",++ // Saves a set of properties in a data storage+ save: function( element, set ) {+ for( var i=0; i < set.length; i++ ) {+ if ( set[ i ] !== null ) {+ element.data( dataSpace + set[ i ], element[ 0 ].style[ set[ i ] ] );+ }+ }+ },++ // Restores a set of previously saved properties from a data storage+ restore: function( element, set ) {+ var val, i;+ for( i=0; i < set.length; i++ ) {+ if ( set[ i ] !== null ) {+ val = element.data( dataSpace + set[ i ] );+ // support: jQuery 1.6.2+ // http://bugs.jquery.com/ticket/9917+ // jQuery 1.6.2 incorrectly returns undefined for any falsy value.+ // We can't differentiate between "" and 0 here, so we just assume+ // empty string since it's likely to be a more common value...+ if ( val === undefined ) {+ val = "";+ }+ element.css( set[ i ], val );+ }+ }+ },++ setMode: function( el, mode ) {+ if (mode === "toggle") {+ mode = el.is( ":hidden" ) ? "show" : "hide";+ }+ return mode;+ },++ // Translates a [top,left] array into a baseline value+ // this should be a little more flexible in the future to handle a string & hash+ getBaseline: function( origin, original ) {+ var y, x;+ switch ( origin[ 0 ] ) {+ case "top": y = 0; break;+ case "middle": y = 0.5; break;+ case "bottom": y = 1; break;+ default: y = origin[ 0 ] / original.height;+ }+ switch ( origin[ 1 ] ) {+ case "left": x = 0; break;+ case "center": x = 0.5; break;+ case "right": x = 1; break;+ default: x = origin[ 1 ] / original.width;+ }+ return {+ x: x,+ y: y+ };+ },++ // Wraps the element around a wrapper that copies position properties+ createWrapper: function( element ) {++ // if the element is already wrapped, return it+ if ( element.parent().is( ".ui-effects-wrapper" )) {+ return element.parent();+ }++ // wrap the element+ var props = {+ width: element.outerWidth(true),+ height: element.outerHeight(true),+ "float": element.css( "float" )+ },+ wrapper = $( "<div></div>" )+ .addClass( "ui-effects-wrapper" )+ .css({+ fontSize: "100%",+ background: "transparent",+ border: "none",+ margin: 0,+ padding: 0+ }),+ // Store the size in case width/height are defined in % - Fixes #5245+ size = {+ width: element.width(),+ height: element.height()+ },+ active = document.activeElement;++ // support: Firefox+ // Firefox incorrectly exposes anonymous content+ // https://bugzilla.mozilla.org/show_bug.cgi?id=561664+ try {+ active.id;+ } catch( e ) {+ active = document.body;+ }++ element.wrap( wrapper );++ // Fixes #7595 - Elements lose focus when wrapped.+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {+ $( active ).focus();+ }++ wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element++ // transfer positioning properties to the wrapper+ if ( element.css( "position" ) === "static" ) {+ wrapper.css({ position: "relative" });+ element.css({ position: "relative" });+ } else {+ $.extend( props, {+ position: element.css( "position" ),+ zIndex: element.css( "z-index" )+ });+ $.each([ "top", "left", "bottom", "right" ], function(i, pos) {+ props[ pos ] = element.css( pos );+ if ( isNaN( parseInt( props[ pos ], 10 ) ) ) {+ props[ pos ] = "auto";+ }+ });+ element.css({+ position: "relative",+ top: 0,+ left: 0,+ right: "auto",+ bottom: "auto"+ });+ }+ element.css(size);++ return wrapper.css( props ).show();+ },++ removeWrapper: function( element ) {+ var active = document.activeElement;++ if ( element.parent().is( ".ui-effects-wrapper" ) ) {+ element.parent().replaceWith( element );++ // Fixes #7595 - Elements lose focus when wrapped.+ if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {+ $( active ).focus();+ }+ }+++ return element;+ },++ setTransition: function( element, list, factor, value ) {+ value = value || {};+ $.each( list, function( i, x ) {+ var unit = element.cssUnit( x );+ if ( unit[ 0 ] > 0 ) {+ value[ x ] = unit[ 0 ] * factor + unit[ 1 ];+ }+ });+ return value;+ }+});++// return an effect options object for the given parameters:+function _normalizeArguments( effect, options, speed, callback ) {++ // allow passing all options as the first parameter+ if ( $.isPlainObject( effect ) ) {+ options = effect;+ effect = effect.effect;+ }++ // convert to an object+ effect = { effect: effect };++ // catch (effect, null, ...)+ if ( options == null ) {+ options = {};+ }++ // catch (effect, callback)+ if ( $.isFunction( options ) ) {+ callback = options;+ speed = null;+ options = {};+ }++ // catch (effect, speed, ?)+ if ( typeof options === "number" || $.fx.speeds[ options ] ) {+ callback = speed;+ speed = options;+ options = {};+ }++ // catch (effect, options, callback)+ if ( $.isFunction( speed ) ) {+ callback = speed;+ speed = null;+ }++ // add options to effect+ if ( options ) {+ $.extend( effect, options );+ }++ speed = speed || options.duration;+ effect.duration = $.fx.off ? 0 :+ typeof speed === "number" ? speed :+ speed in $.fx.speeds ? $.fx.speeds[ speed ] :+ $.fx.speeds._default;++ effect.complete = callback || options.complete;++ return effect;+}++function standardSpeed( speed ) {+ // valid standard speeds+ if ( !speed || typeof speed === "number" || $.fx.speeds[ speed ] ) {+ return true;+ }++ // invalid strings - treat as "normal" speed+ if ( typeof speed === "string" && !$.effects.effect[ speed ] ) {+ // TODO: remove in 2.0 (#7115)+ if ( backCompat && $.effects[ speed ] ) {+ return false;+ }+ return true;+ }++ return false;+}++$.fn.extend({+ effect: function( /* effect, options, speed, callback */ ) {+ var args = _normalizeArguments.apply( this, arguments ),+ mode = args.mode,+ queue = args.queue,+ effectMethod = $.effects.effect[ args.effect ],++ // DEPRECATED: remove in 2.0 (#7115)+ oldEffectMethod = !effectMethod && backCompat && $.effects[ args.effect ];++ if ( $.fx.off || !( effectMethod || oldEffectMethod ) ) {+ // delegate to the original method (e.g., .show()) if possible+ if ( mode ) {+ return this[ mode ]( args.duration, args.complete );+ } else {+ return this.each( function() {+ if ( args.complete ) {+ args.complete.call( this );+ }+ });+ }+ }++ function run( next ) {+ var elem = $( this ),+ complete = args.complete,+ mode = args.mode;++ function done() {+ if ( $.isFunction( complete ) ) {+ complete.call( elem[0] );+ }+ if ( $.isFunction( next ) ) {+ next();+ }+ }++ // if the element is hiddden and mode is hide,+ // or element is visible and mode is show+ if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {+ done();+ } else {+ effectMethod.call( elem[0], args, done );+ }+ }++ // TODO: remove this check in 2.0, effectMethod will always be true+ if ( effectMethod ) {+ return queue === false ? this.each( run ) : this.queue( queue || "fx", run );+ } else {+ // DEPRECATED: remove in 2.0 (#7115)+ return oldEffectMethod.call(this, {+ options: args,+ duration: args.duration,+ callback: args.complete,+ mode: args.mode+ });+ }+ },++ _show: $.fn.show,+ show: function( speed ) {+ if ( standardSpeed( speed ) ) {+ return this._show.apply( this, arguments );+ } else {+ var args = _normalizeArguments.apply( this, arguments );+ args.mode = "show";+ return this.effect.call( this, args );+ }+ },++ _hide: $.fn.hide,+ hide: function( speed ) {+ if ( standardSpeed( speed ) ) {+ return this._hide.apply( this, arguments );+ } else {+ var args = _normalizeArguments.apply( this, arguments );+ args.mode = "hide";+ return this.effect.call( this, args );+ }+ },++ // jQuery core overloads toggle and creates _toggle+ __toggle: $.fn.toggle,+ toggle: function( speed ) {+ if ( standardSpeed( speed ) || typeof speed === "boolean" || $.isFunction( speed ) ) {+ return this.__toggle.apply( this, arguments );+ } else {+ var args = _normalizeArguments.apply( this, arguments );+ args.mode = "toggle";+ return this.effect.call( this, args );+ }+ },++ // helper functions+ cssUnit: function(key) {+ var style = this.css( key ),+ val = [];++ $.each( [ "em", "px", "%", "pt" ], function( i, unit ) {+ if ( style.indexOf( unit ) > 0 ) {+ val = [ parseFloat( style ), unit ];+ }+ });+ return val;+ }+});++})();++/******************************************************************************/+/*********************************** EASING ***********************************/+/******************************************************************************/++(function() {++// based on easing equations from Robert Penner (http://www.robertpenner.com/easing)++var baseEasings = {};++$.each( [ "Quad", "Cubic", "Quart", "Quint", "Expo" ], function( i, name ) {+ baseEasings[ name ] = function( p ) {+ return Math.pow( p, i + 2 );+ };+});++$.extend( baseEasings, {+ Sine: function ( p ) {+ return 1 - Math.cos( p * Math.PI / 2 );+ },+ Circ: function ( p ) {+ return 1 - Math.sqrt( 1 - p * p );+ },+ Elastic: function( p ) {+ return p === 0 || p === 1 ? p :+ -Math.pow( 2, 8 * (p - 1) ) * Math.sin( ( (p - 1) * 80 - 7.5 ) * Math.PI / 15 );+ },+ Back: function( p ) {+ return p * p * ( 3 * p - 2 );+ },+ Bounce: function ( p ) {+ var pow2,+ bounce = 4;++ while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {}+ return 1 / Math.pow( 4, 3 - bounce ) - 7.5625 * Math.pow( ( pow2 * 3 - 2 ) / 22 - p, 2 );+ }+});++$.each( baseEasings, function( name, easeIn ) {+ $.easing[ "easeIn" + name ] = easeIn;+ $.easing[ "easeOut" + name ] = function( p ) {+ return 1 - easeIn( 1 - p );+ };+ $.easing[ "easeInOut" + name ] = function( p ) {+ return p < 0.5 ?+ easeIn( p * 2 ) / 2 :+ 1 - easeIn( p * -2 + 2 ) / 2;+ };+});++})();++})(jQuery));+(function( $, undefined ) {++var rvertical = /up|down|vertical/,+ rpositivemotion = /up|left|vertical|horizontal/;++$.effects.effect.blind = function( o, done ) {+ // Create element+ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],+ mode = $.effects.setMode( el, o.mode || "hide" ),+ direction = o.direction || "up",+ vertical = rvertical.test( direction ),+ ref = vertical ? "height" : "width",+ ref2 = vertical ? "top" : "left",+ motion = rpositivemotion.test( direction ),+ animation = {},+ show = mode === "show",+ wrapper, distance, margin;++ // if already wrapped, the wrapper's properties are my property. #6245+ if ( el.parent().is( ".ui-effects-wrapper" ) ) {+ $.effects.save( el.parent(), props );+ } else {+ $.effects.save( el, props );+ }+ el.show();+ wrapper = $.effects.createWrapper( el ).css({+ overflow: "hidden"+ });++ distance = wrapper[ ref ]();+ margin = parseFloat( wrapper.css( ref2 ) ) || 0;++ animation[ ref ] = show ? distance : 0;+ if ( !motion ) {+ el+ .css( vertical ? "bottom" : "right", 0 )+ .css( vertical ? "top" : "left", "auto" )+ .css({ position: "absolute" });++ animation[ ref2 ] = show ? margin : distance + margin;+ }++ // start at 0 if we are showing+ if ( show ) {+ wrapper.css( ref, 0 );+ if ( ! motion ) {+ wrapper.css( ref2, margin + distance );+ }+ }++ // Animate+ wrapper.animate( animation, {+ duration: o.duration,+ easing: o.easing,+ queue: false,+ complete: function() {+ if ( mode === "hide" ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ }+ });++};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.bounce = function( o, done ) {+ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],++ // defaults:+ mode = $.effects.setMode( el, o.mode || "effect" ),+ hide = mode === "hide",+ show = mode === "show",+ direction = o.direction || "up",+ distance = o.distance,+ times = o.times || 5,++ // number of internal animations+ anims = times * 2 + ( show || hide ? 1 : 0 ),+ speed = o.duration / anims,+ easing = o.easing,++ // utility:+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",+ motion = ( direction === "up" || direction === "left" ),+ i,+ upAnim,+ downAnim,++ // we will need to re-assemble the queue to stack our animations in place+ queue = el.queue(),+ queuelen = queue.length;++ // Avoid touching opacity to prevent clearType and PNG issues in IE+ if ( show || hide ) {+ props.push( "opacity" );+ }++ $.effects.save( el, props );+ el.show();+ $.effects.createWrapper( el ); // Create Wrapper++ // default distance for the BIGGEST bounce is the outer Distance / 3+ if ( !distance ) {+ distance = el[ ref === "top" ? "outerHeight" : "outerWidth" ]() / 3;+ }++ if ( show ) {+ downAnim = { opacity: 1 };+ downAnim[ ref ] = 0;++ // if we are showing, force opacity 0 and set the initial position+ // then do the "first" animation+ el.css( "opacity", 0 )+ .css( ref, motion ? -distance * 2 : distance * 2 )+ .animate( downAnim, speed, easing );+ }++ // start at the smallest distance if we are hiding+ if ( hide ) {+ distance = distance / Math.pow( 2, times - 1 );+ }++ downAnim = {};+ downAnim[ ref ] = 0;+ // Bounces up/down/left/right then back to 0 -- times * 2 animations happen here+ for ( i = 0; i < times; i++ ) {+ upAnim = {};+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;++ el.animate( upAnim, speed, easing )+ .animate( downAnim, speed, easing );++ distance = hide ? distance * 2 : distance / 2;+ }++ // Last Bounce when Hiding+ if ( hide ) {+ upAnim = { opacity: 0 };+ upAnim[ ref ] = ( motion ? "-=" : "+=" ) + distance;++ el.animate( upAnim, speed, easing );+ }++ el.queue(function() {+ if ( hide ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ });++ // inject all the animations we just queued to be first in line (after "inprogress")+ if ( queuelen > 1) {+ queue.splice.apply( queue,+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );+ }+ el.dequeue();++};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.clip = function( o, done ) {+ // Create element+ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],+ mode = $.effects.setMode( el, o.mode || "hide" ),+ show = mode === "show",+ direction = o.direction || "vertical",+ vert = direction === "vertical",+ size = vert ? "height" : "width",+ position = vert ? "top" : "left",+ animation = {},+ wrapper, animate, distance;++ // Save & Show+ $.effects.save( el, props );+ el.show();++ // Create Wrapper+ wrapper = $.effects.createWrapper( el ).css({+ overflow: "hidden"+ });+ animate = ( el[0].tagName === "IMG" ) ? wrapper : el;+ distance = animate[ size ]();++ // Shift+ if ( show ) {+ animate.css( size, 0 );+ animate.css( position, distance / 2 );+ }++ // Create Animation Object:+ animation[ size ] = show ? distance : 0;+ animation[ position ] = show ? 0 : distance / 2;++ // Animate+ animate.animate( animation, {+ queue: false,+ duration: o.duration,+ easing: o.easing,+ complete: function() {+ if ( !show ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ }+ });++};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.drop = function( o, done ) {++ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "opacity", "height", "width" ],+ mode = $.effects.setMode( el, o.mode || "hide" ),+ show = mode === "show",+ direction = o.direction || "left",+ ref = ( direction === "up" || direction === "down" ) ? "top" : "left",+ motion = ( direction === "up" || direction === "left" ) ? "pos" : "neg",+ animation = {+ opacity: show ? 1 : 0+ },+ distance;++ // Adjust+ $.effects.save( el, props );+ el.show();+ $.effects.createWrapper( el );++ distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;++ if ( show ) {+ el+ .css( "opacity", 0 )+ .css( ref, motion === "pos" ? -distance : distance );+ }++ // Animation+ animation[ ref ] = ( show ?+ ( motion === "pos" ? "+=" : "-=" ) :+ ( motion === "pos" ? "-=" : "+=" ) ) ++ distance;++ // Animate+ el.animate( animation, {+ queue: false,+ duration: o.duration,+ easing: o.easing,+ complete: function() {+ if ( mode === "hide" ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ }+ });+};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.explode = function( o, done ) {++ var rows = o.pieces ? Math.round( Math.sqrt( o.pieces ) ) : 3,+ cells = rows,+ el = $( this ),+ mode = $.effects.setMode( el, o.mode || "hide" ),+ show = mode === "show",++ // show and then visibility:hidden the element before calculating offset+ offset = el.show().css( "visibility", "hidden" ).offset(),++ // width and height of a piece+ width = Math.ceil( el.outerWidth() / cells ),+ height = Math.ceil( el.outerHeight() / rows ),+ pieces = [],++ // loop+ i, j, left, top, mx, my;++ // children animate complete:+ function childComplete() {+ pieces.push( this );+ if ( pieces.length === rows * cells ) {+ animComplete();+ }+ }++ // clone the element for each row and cell.+ for( i = 0; i < rows ; i++ ) { // ===>+ top = offset.top + i * height;+ my = i - ( rows - 1 ) / 2 ;++ for( j = 0; j < cells ; j++ ) { // |||+ left = offset.left + j * width;+ mx = j - ( cells - 1 ) / 2 ;++ // Create a clone of the now hidden main element that will be absolute positioned+ // within a wrapper div off the -left and -top equal to size of our pieces+ el+ .clone()+ .appendTo( "body" )+ .wrap( "<div></div>" )+ .css({+ position: "absolute",+ visibility: "visible",+ left: -j * width,+ top: -i * height+ })++ // select the wrapper - make it overflow: hidden and absolute positioned based on+ // where the original was located +left and +top equal to the size of pieces+ .parent()+ .addClass( "ui-effects-explode" )+ .css({+ position: "absolute",+ overflow: "hidden",+ width: width,+ height: height,+ left: left + ( show ? mx * width : 0 ),+ top: top + ( show ? my * height : 0 ),+ opacity: show ? 0 : 1+ }).animate({+ left: left + ( show ? 0 : mx * width ),+ top: top + ( show ? 0 : my * height ),+ opacity: show ? 1 : 0+ }, o.duration || 500, o.easing, childComplete );+ }+ }++ function animComplete() {+ el.css({+ visibility: "visible"+ });+ $( pieces ).remove();+ if ( !show ) {+ el.hide();+ }+ done();+ }+};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.fade = function( o, done ) {+ var el = $( this ),+ mode = $.effects.setMode( el, o.mode || "toggle" );++ el.animate({+ opacity: mode+ }, {+ queue: false,+ duration: o.duration,+ easing: o.easing,+ complete: done+ });+};++})( jQuery );+(function( $, undefined ) {++$.effects.effect.fold = function( o, done ) {++ // Create element+ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],+ mode = $.effects.setMode( el, o.mode || "hide" ),+ show = mode === "show",+ hide = mode === "hide",+ size = o.size || 15,+ percent = /([0-9]+)%/.exec( size ),+ horizFirst = !!o.horizFirst,+ widthFirst = show !== horizFirst,+ ref = widthFirst ? [ "width", "height" ] : [ "height", "width" ],+ duration = o.duration / 2,+ wrapper, distance,+ animation1 = {},+ animation2 = {};++ $.effects.save( el, props );+ el.show();++ // Create Wrapper+ wrapper = $.effects.createWrapper( el ).css({+ overflow: "hidden"+ });+ distance = widthFirst ?+ [ wrapper.width(), wrapper.height() ] :+ [ wrapper.height(), wrapper.width() ];++ if ( percent ) {+ size = parseInt( percent[ 1 ], 10 ) / 100 * distance[ hide ? 0 : 1 ];+ }+ if ( show ) {+ wrapper.css( horizFirst ? {+ height: 0,+ width: size+ } : {+ height: size,+ width: 0+ });+ }++ // Animation+ animation1[ ref[ 0 ] ] = show ? distance[ 0 ] : size;+ animation2[ ref[ 1 ] ] = show ? distance[ 1 ] : 0;++ // Animate+ wrapper+ .animate( animation1, duration, o.easing )+ .animate( animation2, duration, o.easing, function() {+ if ( hide ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ });++};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.highlight = function( o, done ) {+ var elem = $( this ),+ props = [ "backgroundImage", "backgroundColor", "opacity" ],+ mode = $.effects.setMode( elem, o.mode || "show" ),+ animation = {+ backgroundColor: elem.css( "backgroundColor" )+ };++ if (mode === "hide") {+ animation.opacity = 0;+ }++ $.effects.save( elem, props );++ elem+ .show()+ .css({+ backgroundImage: "none",+ backgroundColor: o.color || "#ffff99"+ })+ .animate( animation, {+ queue: false,+ duration: o.duration,+ easing: o.easing,+ complete: function() {+ if ( mode === "hide" ) {+ elem.hide();+ }+ $.effects.restore( elem, props );+ done();+ }+ });+};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.pulsate = function( o, done ) {+ var elem = $( this ),+ mode = $.effects.setMode( elem, o.mode || "show" ),+ show = mode === "show",+ hide = mode === "hide",+ showhide = ( show || mode === "hide" ),++ // showing or hiding leaves of the "last" animation+ anims = ( ( o.times || 5 ) * 2 ) + ( showhide ? 1 : 0 ),+ duration = o.duration / anims,+ animateTo = 0,+ queue = elem.queue(),+ queuelen = queue.length,+ i;++ if ( show || !elem.is(":visible")) {+ elem.css( "opacity", 0 ).show();+ animateTo = 1;+ }++ // anims - 1 opacity "toggles"+ for ( i = 1; i < anims; i++ ) {+ elem.animate({+ opacity: animateTo+ }, duration, o.easing );+ animateTo = 1 - animateTo;+ }++ elem.animate({+ opacity: animateTo+ }, duration, o.easing);++ elem.queue(function() {+ if ( hide ) {+ elem.hide();+ }+ done();+ });++ // We just queued up "anims" animations, we need to put them next in the queue+ if ( queuelen > 1 ) {+ queue.splice.apply( queue,+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );+ }+ elem.dequeue();+};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.puff = function( o, done ) {+ var elem = $( this ),+ mode = $.effects.setMode( elem, o.mode || "hide" ),+ hide = mode === "hide",+ percent = parseInt( o.percent, 10 ) || 150,+ factor = percent / 100,+ original = {+ height: elem.height(),+ width: elem.width(),+ outerHeight: elem.outerHeight(),+ outerWidth: elem.outerWidth()+ };++ $.extend( o, {+ effect: "scale",+ queue: false,+ fade: true,+ mode: mode,+ complete: done,+ percent: hide ? percent : 100,+ from: hide ?+ original :+ {+ height: original.height * factor,+ width: original.width * factor,+ outerHeight: original.outerHeight * factor,+ outerWidth: original.outerWidth * factor+ }+ });++ elem.effect( o );+};++$.effects.effect.scale = function( o, done ) {++ // Create element+ var el = $( this ),+ options = $.extend( true, {}, o ),+ mode = $.effects.setMode( el, o.mode || "effect" ),+ percent = parseInt( o.percent, 10 ) ||+ ( parseInt( o.percent, 10 ) === 0 ? 0 : ( mode === "hide" ? 0 : 100 ) ),+ direction = o.direction || "both",+ origin = o.origin,+ original = {+ height: el.height(),+ width: el.width(),+ outerHeight: el.outerHeight(),+ outerWidth: el.outerWidth()+ },+ factor = {+ y: direction !== "horizontal" ? (percent / 100) : 1,+ x: direction !== "vertical" ? (percent / 100) : 1+ };++ // We are going to pass this effect to the size effect:+ options.effect = "size";+ options.queue = false;+ options.complete = done;++ // Set default origin and restore for show/hide+ if ( mode !== "effect" ) {+ options.origin = origin || ["middle","center"];+ options.restore = true;+ }++ options.from = o.from || ( mode === "show" ? {+ height: 0,+ width: 0,+ outerHeight: 0,+ outerWidth: 0+ } : original );+ options.to = {+ height: original.height * factor.y,+ width: original.width * factor.x,+ outerHeight: original.outerHeight * factor.y,+ outerWidth: original.outerWidth * factor.x+ };++ // Fade option to support puff+ if ( options.fade ) {+ if ( mode === "show" ) {+ options.from.opacity = 0;+ options.to.opacity = 1;+ }+ if ( mode === "hide" ) {+ options.from.opacity = 1;+ options.to.opacity = 0;+ }+ }++ // Animate+ el.effect( options );++};++$.effects.effect.size = function( o, done ) {++ // Create element+ var original, baseline, factor,+ el = $( this ),+ props0 = [ "position", "top", "bottom", "left", "right", "width", "height", "overflow", "opacity" ],++ // Always restore+ props1 = [ "position", "top", "bottom", "left", "right", "overflow", "opacity" ],++ // Copy for children+ props2 = [ "width", "height", "overflow" ],+ cProps = [ "fontSize" ],+ vProps = [ "borderTopWidth", "borderBottomWidth", "paddingTop", "paddingBottom" ],+ hProps = [ "borderLeftWidth", "borderRightWidth", "paddingLeft", "paddingRight" ],++ // Set options+ mode = $.effects.setMode( el, o.mode || "effect" ),+ restore = o.restore || mode !== "effect",+ scale = o.scale || "both",+ origin = o.origin || [ "middle", "center" ],+ position = el.css( "position" ),+ props = restore ? props0 : props1,+ zero = {+ height: 0,+ width: 0,+ outerHeight: 0,+ outerWidth: 0+ };++ if ( mode === "show" ) {+ el.show();+ }+ original = {+ height: el.height(),+ width: el.width(),+ outerHeight: el.outerHeight(),+ outerWidth: el.outerWidth()+ };++ if ( o.mode === "toggle" && mode === "show" ) {+ el.from = o.to || zero;+ el.to = o.from || original;+ } else {+ el.from = o.from || ( mode === "show" ? zero : original );+ el.to = o.to || ( mode === "hide" ? zero : original );+ }++ // Set scaling factor+ factor = {+ from: {+ y: el.from.height / original.height,+ x: el.from.width / original.width+ },+ to: {+ y: el.to.height / original.height,+ x: el.to.width / original.width+ }+ };++ // Scale the css box+ if ( scale === "box" || scale === "both" ) {++ // Vertical props scaling+ if ( factor.from.y !== factor.to.y ) {+ props = props.concat( vProps );+ el.from = $.effects.setTransition( el, vProps, factor.from.y, el.from );+ el.to = $.effects.setTransition( el, vProps, factor.to.y, el.to );+ }++ // Horizontal props scaling+ if ( factor.from.x !== factor.to.x ) {+ props = props.concat( hProps );+ el.from = $.effects.setTransition( el, hProps, factor.from.x, el.from );+ el.to = $.effects.setTransition( el, hProps, factor.to.x, el.to );+ }+ }++ // Scale the content+ if ( scale === "content" || scale === "both" ) {++ // Vertical props scaling+ if ( factor.from.y !== factor.to.y ) {+ props = props.concat( cProps ).concat( props2 );+ el.from = $.effects.setTransition( el, cProps, factor.from.y, el.from );+ el.to = $.effects.setTransition( el, cProps, factor.to.y, el.to );+ }+ }++ $.effects.save( el, props );+ el.show();+ $.effects.createWrapper( el );+ el.css( "overflow", "hidden" ).css( el.from );++ // Adjust+ if (origin) { // Calculate baseline shifts+ baseline = $.effects.getBaseline( origin, original );+ el.from.top = ( original.outerHeight - el.outerHeight() ) * baseline.y;+ el.from.left = ( original.outerWidth - el.outerWidth() ) * baseline.x;+ el.to.top = ( original.outerHeight - el.to.outerHeight ) * baseline.y;+ el.to.left = ( original.outerWidth - el.to.outerWidth ) * baseline.x;+ }+ el.css( el.from ); // set top & left++ // Animate+ if ( scale === "content" || scale === "both" ) { // Scale the children++ // Add margins/font-size+ vProps = vProps.concat([ "marginTop", "marginBottom" ]).concat(cProps);+ hProps = hProps.concat([ "marginLeft", "marginRight" ]);+ props2 = props0.concat(vProps).concat(hProps);++ el.find( "*[width]" ).each( function(){+ var child = $( this ),+ c_original = {+ height: child.height(),+ width: child.width(),+ outerHeight: child.outerHeight(),+ outerWidth: child.outerWidth()+ };+ if (restore) {+ $.effects.save(child, props2);+ }++ child.from = {+ height: c_original.height * factor.from.y,+ width: c_original.width * factor.from.x,+ outerHeight: c_original.outerHeight * factor.from.y,+ outerWidth: c_original.outerWidth * factor.from.x+ };+ child.to = {+ height: c_original.height * factor.to.y,+ width: c_original.width * factor.to.x,+ outerHeight: c_original.height * factor.to.y,+ outerWidth: c_original.width * factor.to.x+ };++ // Vertical props scaling+ if ( factor.from.y !== factor.to.y ) {+ child.from = $.effects.setTransition( child, vProps, factor.from.y, child.from );+ child.to = $.effects.setTransition( child, vProps, factor.to.y, child.to );+ }++ // Horizontal props scaling+ if ( factor.from.x !== factor.to.x ) {+ child.from = $.effects.setTransition( child, hProps, factor.from.x, child.from );+ child.to = $.effects.setTransition( child, hProps, factor.to.x, child.to );+ }++ // Animate children+ child.css( child.from );+ child.animate( child.to, o.duration, o.easing, function() {++ // Restore children+ if ( restore ) {+ $.effects.restore( child, props2 );+ }+ });+ });+ }++ // Animate+ el.animate( el.to, {+ queue: false,+ duration: o.duration,+ easing: o.easing,+ complete: function() {+ if ( el.to.opacity === 0 ) {+ el.css( "opacity", el.from.opacity );+ }+ if( mode === "hide" ) {+ el.hide();+ }+ $.effects.restore( el, props );+ if ( !restore ) {++ // we need to calculate our new positioning based on the scaling+ if ( position === "static" ) {+ el.css({+ position: "relative",+ top: el.to.top,+ left: el.to.left+ });+ } else {+ $.each([ "top", "left" ], function( idx, pos ) {+ el.css( pos, function( _, str ) {+ var val = parseInt( str, 10 ),+ toRef = idx ? el.to.left : el.to.top;++ // if original was "auto", recalculate the new value from wrapper+ if ( str === "auto" ) {+ return toRef + "px";+ }++ return val + toRef + "px";+ });+ });+ }+ }++ $.effects.removeWrapper( el );+ done();+ }+ });++};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.shake = function( o, done ) {++ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "height", "width" ],+ mode = $.effects.setMode( el, o.mode || "effect" ),+ direction = o.direction || "left",+ distance = o.distance || 20,+ times = o.times || 3,+ anims = times * 2 + 1,+ speed = Math.round(o.duration/anims),+ ref = (direction === "up" || direction === "down") ? "top" : "left",+ positiveMotion = (direction === "up" || direction === "left"),+ animation = {},+ animation1 = {},+ animation2 = {},+ i,++ // we will need to re-assemble the queue to stack our animations in place+ queue = el.queue(),+ queuelen = queue.length;++ $.effects.save( el, props );+ el.show();+ $.effects.createWrapper( el );++ // Animation+ animation[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance;+ animation1[ ref ] = ( positiveMotion ? "+=" : "-=" ) + distance * 2;+ animation2[ ref ] = ( positiveMotion ? "-=" : "+=" ) + distance * 2;++ // Animate+ el.animate( animation, speed, o.easing );++ // Shakes+ for ( i = 1; i < times; i++ ) {+ el.animate( animation1, speed, o.easing ).animate( animation2, speed, o.easing );+ }+ el+ .animate( animation1, speed, o.easing )+ .animate( animation, speed / 2, o.easing )+ .queue(function() {+ if ( mode === "hide" ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ });++ // inject all the animations we just queued to be first in line (after "inprogress")+ if ( queuelen > 1) {+ queue.splice.apply( queue,+ [ 1, 0 ].concat( queue.splice( queuelen, anims + 1 ) ) );+ }+ el.dequeue();++};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.slide = function( o, done ) {++ // Create element+ var el = $( this ),+ props = [ "position", "top", "bottom", "left", "right", "width", "height" ],+ mode = $.effects.setMode( el, o.mode || "show" ),+ show = mode === "show",+ direction = o.direction || "left",+ ref = (direction === "up" || direction === "down") ? "top" : "left",+ positiveMotion = (direction === "up" || direction === "left"),+ distance,+ animation = {};++ // Adjust+ $.effects.save( el, props );+ el.show();+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true );++ $.effects.createWrapper( el ).css({+ overflow: "hidden"+ });++ if ( show ) {+ el.css( ref, positiveMotion ? (isNaN(distance) ? "-" + distance : -distance) : distance );+ }++ // Animation+ animation[ ref ] = ( show ?+ ( positiveMotion ? "+=" : "-=") :+ ( positiveMotion ? "-=" : "+=")) ++ distance;++ // Animate+ el.animate( animation, {+ queue: false,+ duration: o.duration,+ easing: o.easing,+ complete: function() {+ if ( mode === "hide" ) {+ el.hide();+ }+ $.effects.restore( el, props );+ $.effects.removeWrapper( el );+ done();+ }+ });+};++})(jQuery);+(function( $, undefined ) {++$.effects.effect.transfer = function( o, done ) {+ var elem = $( this ),+ target = $( o.to ),+ targetFixed = target.css( "position" ) === "fixed",+ body = $("body"),+ fixTop = targetFixed ? body.scrollTop() : 0,+ fixLeft = targetFixed ? body.scrollLeft() : 0,+ endPosition = target.offset(),+ animation = {+ top: endPosition.top - fixTop ,+ left: endPosition.left - fixLeft ,+ height: target.innerHeight(),+ width: target.innerWidth()+ },+ startPosition = elem.offset(),+ transfer = $( '<div class="ui-effects-transfer"></div>' )+ .appendTo( document.body )+ .addClass( o.className )+ .css({+ top: startPosition.top - fixTop ,+ left: startPosition.left - fixLeft ,+ height: elem.innerHeight(),+ width: elem.innerWidth(),+ position: targetFixed ? "fixed" : "absolute"+ })+ .animate( animation, o.duration, o.easing, function() {+ transfer.remove();+ done();+ });+};++})(jQuery);+(function( $, undefined ) {++var mouseHandled = false;++$.widget( "ui.menu", {+ version: "1.9.2",+ defaultElement: "<ul>",+ delay: 300,+ options: {+ icons: {+ submenu: "ui-icon-carat-1-e"+ },+ menus: "ul",+ position: {+ my: "left top",+ at: "right top"+ },+ role: "menu",++ // callbacks+ blur: null,+ focus: null,+ select: null+ },++ _create: function() {+ this.activeMenu = this.element;+ this.element+ .uniqueId()+ .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )+ .toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length )+ .attr({+ role: this.options.role,+ tabIndex: 0+ })+ // need to catch all clicks on disabled menu+ // not possible through _on+ .bind( "click" + this.eventNamespace, $.proxy(function( event ) {+ if ( this.options.disabled ) {+ event.preventDefault();+ }+ }, this ));++ if ( this.options.disabled ) {+ this.element+ .addClass( "ui-state-disabled" )+ .attr( "aria-disabled", "true" );+ }++ this._on({+ // Prevent focus from sticking to links inside menu after clicking+ // them (focus should always stay on UL during navigation).+ "mousedown .ui-menu-item > a": function( event ) {+ event.preventDefault();+ },+ "click .ui-state-disabled > a": function( event ) {+ event.preventDefault();+ },+ "click .ui-menu-item:has(a)": function( event ) {+ var target = $( event.target ).closest( ".ui-menu-item" );+ if ( !mouseHandled && target.not( ".ui-state-disabled" ).length ) {+ mouseHandled = true;++ this.select( event );+ // Open submenu on click+ if ( target.has( ".ui-menu" ).length ) {+ this.expand( event );+ } else if ( !this.element.is( ":focus" ) ) {+ // Redirect focus to the menu+ this.element.trigger( "focus", [ true ] );++ // If the active item is on the top level, let it stay active.+ // Otherwise, blur the active item since it is no longer visible.+ if ( this.active && this.active.parents( ".ui-menu" ).length === 1 ) {+ clearTimeout( this.timer );+ }+ }+ }+ },+ "mouseenter .ui-menu-item": function( event ) {+ var target = $( event.currentTarget );+ // Remove ui-state-active class from siblings of the newly focused menu item+ // to avoid a jump caused by adjacent elements both having a class with a border+ target.siblings().children( ".ui-state-active" ).removeClass( "ui-state-active" );+ this.focus( event, target );+ },+ mouseleave: "collapseAll",+ "mouseleave .ui-menu": "collapseAll",+ focus: function( event, keepActiveItem ) {+ // If there's already an active item, keep it active+ // If not, activate the first item+ var item = this.active || this.element.children( ".ui-menu-item" ).eq( 0 );++ if ( !keepActiveItem ) {+ this.focus( event, item );+ }+ },+ blur: function( event ) {+ this._delay(function() {+ if ( !$.contains( this.element[0], this.document[0].activeElement ) ) {+ this.collapseAll( event );+ }+ });+ },+ keydown: "_keydown"+ });++ this.refresh();++ // Clicks outside of a menu collapse any open menus+ this._on( this.document, {+ click: function( event ) {+ if ( !$( event.target ).closest( ".ui-menu" ).length ) {+ this.collapseAll( event );+ }++ // Reset the mouseHandled flag+ mouseHandled = false;+ }+ });+ },++ _destroy: function() {+ // Destroy (sub)menus+ this.element+ .removeAttr( "aria-activedescendant" )+ .find( ".ui-menu" ).andSelf()+ .removeClass( "ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons" )+ .removeAttr( "role" )+ .removeAttr( "tabIndex" )+ .removeAttr( "aria-labelledby" )+ .removeAttr( "aria-expanded" )+ .removeAttr( "aria-hidden" )+ .removeAttr( "aria-disabled" )+ .removeUniqueId()+ .show();++ // Destroy menu items+ this.element.find( ".ui-menu-item" )+ .removeClass( "ui-menu-item" )+ .removeAttr( "role" )+ .removeAttr( "aria-disabled" )+ .children( "a" )+ .removeUniqueId()+ .removeClass( "ui-corner-all ui-state-hover" )+ .removeAttr( "tabIndex" )+ .removeAttr( "role" )+ .removeAttr( "aria-haspopup" )+ .children().each( function() {+ var elem = $( this );+ if ( elem.data( "ui-menu-submenu-carat" ) ) {+ elem.remove();+ }+ });++ // Destroy menu dividers+ this.element.find( ".ui-menu-divider" ).removeClass( "ui-menu-divider ui-widget-content" );+ },++ _keydown: function( event ) {+ var match, prev, character, skip, regex,+ preventDefault = true;++ function escape( value ) {+ return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );+ }++ switch ( event.keyCode ) {+ case $.ui.keyCode.PAGE_UP:+ this.previousPage( event );+ break;+ case $.ui.keyCode.PAGE_DOWN:+ this.nextPage( event );+ break;+ case $.ui.keyCode.HOME:+ this._move( "first", "first", event );+ break;+ case $.ui.keyCode.END:+ this._move( "last", "last", event );+ break;+ case $.ui.keyCode.UP:+ this.previous( event );+ break;+ case $.ui.keyCode.DOWN:+ this.next( event );+ break;+ case $.ui.keyCode.LEFT:+ this.collapse( event );+ break;+ case $.ui.keyCode.RIGHT:+ if ( this.active && !this.active.is( ".ui-state-disabled" ) ) {+ this.expand( event );+ }+ break;+ case $.ui.keyCode.ENTER:+ case $.ui.keyCode.SPACE:+ this._activate( event );+ break;+ case $.ui.keyCode.ESCAPE:+ this.collapse( event );+ break;+ default:+ preventDefault = false;+ prev = this.previousFilter || "";+ character = String.fromCharCode( event.keyCode );+ skip = false;++ clearTimeout( this.filterTimer );++ if ( character === prev ) {+ skip = true;+ } else {+ character = prev + character;+ }++ regex = new RegExp( "^" + escape( character ), "i" );+ match = this.activeMenu.children( ".ui-menu-item" ).filter(function() {+ return regex.test( $( this ).children( "a" ).text() );+ });+ match = skip && match.index( this.active.next() ) !== -1 ?+ this.active.nextAll( ".ui-menu-item" ) :+ match;++ // If no matches on the current filter, reset to the last character pressed+ // to move down the menu to the first item that starts with that character+ if ( !match.length ) {+ character = String.fromCharCode( event.keyCode );+ regex = new RegExp( "^" + escape( character ), "i" );+ match = this.activeMenu.children( ".ui-menu-item" ).filter(function() {+ return regex.test( $( this ).children( "a" ).text() );+ });+ }++ if ( match.length ) {+ this.focus( event, match );+ if ( match.length > 1 ) {+ this.previousFilter = character;+ this.filterTimer = this._delay(function() {+ delete this.previousFilter;+ }, 1000 );+ } else {+ delete this.previousFilter;+ }+ } else {+ delete this.previousFilter;+ }+ }++ if ( preventDefault ) {+ event.preventDefault();+ }+ },++ _activate: function( event ) {+ if ( !this.active.is( ".ui-state-disabled" ) ) {+ if ( this.active.children( "a[aria-haspopup='true']" ).length ) {+ this.expand( event );+ } else {+ this.select( event );+ }+ }+ },++ refresh: function() {+ var menus,+ icon = this.options.icons.submenu,+ submenus = this.element.find( this.options.menus );++ // Initialize nested menus+ submenus.filter( ":not(.ui-menu)" )+ .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )+ .hide()+ .attr({+ role: this.options.role,+ "aria-hidden": "true",+ "aria-expanded": "false"+ })+ .each(function() {+ var menu = $( this ),+ item = menu.prev( "a" ),+ submenuCarat = $( "<span>" )+ .addClass( "ui-menu-icon ui-icon " + icon )+ .data( "ui-menu-submenu-carat", true );++ item+ .attr( "aria-haspopup", "true" )+ .prepend( submenuCarat );+ menu.attr( "aria-labelledby", item.attr( "id" ) );+ });++ menus = submenus.add( this.element );++ // Don't refresh list items that are already adapted+ menus.children( ":not(.ui-menu-item):has(a)" )+ .addClass( "ui-menu-item" )+ .attr( "role", "presentation" )+ .children( "a" )+ .uniqueId()+ .addClass( "ui-corner-all" )+ .attr({+ tabIndex: -1,+ role: this._itemRole()+ });++ // Initialize unlinked menu-items containing spaces and/or dashes only as dividers+ menus.children( ":not(.ui-menu-item)" ).each(function() {+ var item = $( this );+ // hyphen, em dash, en dash+ if ( !/[^\-—–\s]/.test( item.text() ) ) {+ item.addClass( "ui-widget-content ui-menu-divider" );+ }+ });++ // Add aria-disabled attribute to any disabled menu item+ menus.children( ".ui-state-disabled" ).attr( "aria-disabled", "true" );++ // If the active item has been removed, blur the menu+ if ( this.active && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {+ this.blur();+ }+ },++ _itemRole: function() {+ return {+ menu: "menuitem",+ listbox: "option"+ }[ this.options.role ];+ },++ focus: function( event, item ) {+ var nested, focused;+ this.blur( event, event && event.type === "focus" );++ this._scrollIntoView( item );++ this.active = item.first();+ focused = this.active.children( "a" ).addClass( "ui-state-focus" );+ // Only update aria-activedescendant if there's a role+ // otherwise we assume focus is managed elsewhere+ if ( this.options.role ) {+ this.element.attr( "aria-activedescendant", focused.attr( "id" ) );+ }++ // Highlight active parent menu item, if any+ this.active+ .parent()+ .closest( ".ui-menu-item" )+ .children( "a:first" )+ .addClass( "ui-state-active" );++ if ( event && event.type === "keydown" ) {+ this._close();+ } else {+ this.timer = this._delay(function() {+ this._close();+ }, this.delay );+ }++ nested = item.children( ".ui-menu" );+ if ( nested.length && ( /^mouse/.test( event.type ) ) ) {+ this._startOpening(nested);+ }+ this.activeMenu = item.parent();++ this._trigger( "focus", event, { item: item } );+ },++ _scrollIntoView: function( item ) {+ var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight;+ if ( this._hasScroll() ) {+ borderTop = parseFloat( $.css( this.activeMenu[0], "borderTopWidth" ) ) || 0;+ paddingTop = parseFloat( $.css( this.activeMenu[0], "paddingTop" ) ) || 0;+ offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop;+ scroll = this.activeMenu.scrollTop();+ elementHeight = this.activeMenu.height();+ itemHeight = item.height();++ if ( offset < 0 ) {+ this.activeMenu.scrollTop( scroll + offset );+ } else if ( offset + itemHeight > elementHeight ) {+ this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight );+ }+ }+ },++ blur: function( event, fromFocus ) {+ if ( !fromFocus ) {+ clearTimeout( this.timer );+ }++ if ( !this.active ) {+ return;+ }++ this.active.children( "a" ).removeClass( "ui-state-focus" );+ this.active = null;++ this._trigger( "blur", event, { item: this.active } );+ },++ _startOpening: function( submenu ) {+ clearTimeout( this.timer );++ // Don't open if already open fixes a Firefox bug that caused a .5 pixel+ // shift in the submenu position when mousing over the carat icon+ if ( submenu.attr( "aria-hidden" ) !== "true" ) {+ return;+ }++ this.timer = this._delay(function() {+ this._close();+ this._open( submenu );+ }, this.delay );+ },++ _open: function( submenu ) {+ var position = $.extend({+ of: this.active+ }, this.options.position );++ clearTimeout( this.timer );+ this.element.find( ".ui-menu" ).not( submenu.parents( ".ui-menu" ) )+ .hide()+ .attr( "aria-hidden", "true" );++ submenu+ .show()+ .removeAttr( "aria-hidden" )+ .attr( "aria-expanded", "true" )+ .position( position );+ },++ collapseAll: function( event, all ) {+ clearTimeout( this.timer );+ this.timer = this._delay(function() {+ // If we were passed an event, look for the submenu that contains the event+ var currentMenu = all ? this.element :+ $( event && event.target ).closest( this.element.find( ".ui-menu" ) );++ // If we found no valid submenu ancestor, use the main menu to close all sub menus anyway+ if ( !currentMenu.length ) {+ currentMenu = this.element;+ }++ this._close( currentMenu );++ this.blur( event );+ this.activeMenu = currentMenu;+ }, this.delay );+ },++ // With no arguments, closes the currently active menu - if nothing is active+ // it closes all menus. If passed an argument, it will search for menus BELOW+ _close: function( startMenu ) {+ if ( !startMenu ) {+ startMenu = this.active ? this.active.parent() : this.element;+ }++ startMenu+ .find( ".ui-menu" )+ .hide()+ .attr( "aria-hidden", "true" )+ .attr( "aria-expanded", "false" )+ .end()+ .find( "a.ui-state-active" )+ .removeClass( "ui-state-active" );+ },++ collapse: function( event ) {+ var newItem = this.active &&+ this.active.parent().closest( ".ui-menu-item", this.element );+ if ( newItem && newItem.length ) {+ this._close();+ this.focus( event, newItem );+ }+ },++ expand: function( event ) {+ var newItem = this.active &&+ this.active+ .children( ".ui-menu " )+ .children( ".ui-menu-item" )+ .first();++ if ( newItem && newItem.length ) {+ this._open( newItem.parent() );++ // Delay so Firefox will not hide activedescendant change in expanding submenu from AT+ this._delay(function() {+ this.focus( event, newItem );+ });+ }+ },++ next: function( event ) {+ this._move( "next", "first", event );+ },++ previous: function( event ) {+ this._move( "prev", "last", event );+ },++ isFirstItem: function() {+ return this.active && !this.active.prevAll( ".ui-menu-item" ).length;+ },++ isLastItem: function() {+ return this.active && !this.active.nextAll( ".ui-menu-item" ).length;+ },++ _move: function( direction, filter, event ) {+ var next;+ if ( this.active ) {+ if ( direction === "first" || direction === "last" ) {+ next = this.active+ [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )+ .eq( -1 );+ } else {+ next = this.active+ [ direction + "All" ]( ".ui-menu-item" )+ .eq( 0 );+ }+ }+ if ( !next || !next.length || !this.active ) {+ next = this.activeMenu.children( ".ui-menu-item" )[ filter ]();+ }++ this.focus( event, next );+ },++ nextPage: function( event ) {+ var item, base, height;++ if ( !this.active ) {+ this.next( event );+ return;+ }+ if ( this.isLastItem() ) {+ return;+ }+ if ( this._hasScroll() ) {+ base = this.active.offset().top;+ height = this.element.height();+ this.active.nextAll( ".ui-menu-item" ).each(function() {+ item = $( this );+ return item.offset().top - base - height < 0;+ });++ this.focus( event, item );+ } else {+ this.focus( event, this.activeMenu.children( ".ui-menu-item" )+ [ !this.active ? "first" : "last" ]() );+ }+ },++ previousPage: function( event ) {+ var item, base, height;+ if ( !this.active ) {+ this.next( event );+ return;+ }+ if ( this.isFirstItem() ) {+ return;+ }+ if ( this._hasScroll() ) {+ base = this.active.offset().top;+ height = this.element.height();+ this.active.prevAll( ".ui-menu-item" ).each(function() {+ item = $( this );+ return item.offset().top - base + height > 0;+ });++ this.focus( event, item );+ } else {+ this.focus( event, this.activeMenu.children( ".ui-menu-item" ).first() );+ }+ },++ _hasScroll: function() {+ return this.element.outerHeight() < this.element.prop( "scrollHeight" );+ },++ select: function( event ) {+ // TODO: It should never be possible to not have an active item at this+ // point, but the tests don't trigger mouseenter before click.+ this.active = this.active || $( event.target ).closest( ".ui-menu-item" );+ var ui = { item: this.active };+ if ( !this.active.has( ".ui-menu" ).length ) {+ this.collapseAll( event, true );+ }+ this._trigger( "select", event, ui );+ }+});++}( jQuery ));+(function( $, undefined ) {++$.widget( "ui.progressbar", {+ version: "1.9.2",+ 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 = $( "<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();+ },++ value: function( newValue ) {+ if ( newValue === undefined ) {+ return this._value();+ }++ this._setOption( "value", newValue );+ return this;+ },++ _setOption: function( key, value ) {+ if ( key === "value" ) {+ this.options.value = value;+ this._refreshValue();+ if ( this._value() === this.options.max ) {+ this._trigger( "complete" );+ }+ }++ this._super( key, value );+ },++ _value: function() {+ var val = this.options.value;+ // normalize invalid value+ if ( typeof val !== "number" ) {+ val = 0;+ }+ return Math.min( this.options.max, Math.max( this.min, val ) );+ },++ _percentage: function() {+ return 100 * this._value() / this.options.max;+ },++ _refreshValue: function() {+ var value = this.value(),+ percentage = this._percentage();++ if ( this.oldValue !== value ) {+ this.oldValue = value;+ this._trigger( "change" );+ }++ this.valueDiv+ .toggle( value > this.min )+ .toggleClass( "ui-corner-right", value === this.options.max )+ .width( percentage.toFixed(0) + "%" );+ this.element.attr( "aria-valuenow", value );+ }+});++})( jQuery );+(function( $, undefined ) {++$.widget("ui.resizable", $.ui.mouse, {+ version: "1.9.2",+ 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: 1000+ },+ _create: function() {++ var that = this, o = this.options;+ this.element.addClass("ui-resizable");++ $.extend(this, {+ _aspectRatio: !!(o.aspectRatio),+ aspectRatio: o.aspectRatio,+ originalElement: this.element,+ _proportionallyResizeElements: [],+ _helper: o.helper || o.ghost || o.animate ? o.helper || 'ui-resizable-helper' : null+ });++ //Wrap the element if it cannot hold child nodes+ if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) {++ //Create a wrapper element and set the wrapper to the new current internal element+ this.element.wrap(+ $('<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')+ })+ );++ //Overwrite the original this.element+ this.element = this.element.parent().data(+ "resizable", this.element.data('resizable')+ );++ this.elementIsWrapper = true;++ //Move margins to the wrapper+ 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});++ //Prevent Safari textarea resize+ this.originalResizeStyle = this.originalElement.css('resize');+ this.originalElement.css('resize', 'none');++ //Push the actual element to our proportionallyResize internal array+ this._proportionallyResizeElements.push(this.originalElement.css({ position: 'static', zoom: 1, display: 'block' }));++ // avoid IE jump (hard set the margin)+ this.originalElement.css({ margin: this.originalElement.css('margin') });++ // fix handlers offset+ this._proportionallyResize();++ }++ this.handles = o.handles || (!$('.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 n = this.handles.split(","); this.handles = {};++ for(var i = 0; i < n.length; i++) {++ var handle = $.trim(n[i]), hname = 'ui-resizable-'+handle;+ var axis = $('<div class="ui-resizable-handle ' + hname + '"></div>');++ // Apply zIndex to all handles - see #7960+ axis.css({ zIndex: o.zIndex });++ //TODO : What's going on here?+ if ('se' == handle) {+ axis.addClass('ui-icon ui-icon-gripsmall-diagonal-se');+ };++ //Insert into internal handles object and append to element+ this.handles[handle] = '.ui-resizable-'+handle;+ this.element.append(axis);+ }++ }++ this._renderAxis = function(target) {++ target = target || this.element;++ for(var i in this.handles) {++ if(this.handles[i].constructor == String)+ this.handles[i] = $(this.handles[i], this.element).show();++ //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls)+ if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) {++ var axis = $(this.handles[i], this.element), padWrapper = 0;++ //Checking the correct pad and border+ padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();++ //The padding type i have to apply...+ var padPos = [ 'padding',+ /ne|nw|n/.test(i) ? 'Top' :+ /se|sw|s/.test(i) ? 'Bottom' :+ /^e$/.test(i) ? 'Right' : 'Left' ].join("");++ target.css(padPos, padWrapper);++ this._proportionallyResize();++ }++ //TODO: What's that good for? There's not anything to be executed left+ if(!$(this.handles[i]).length)+ continue;++ }+ };++ //TODO: make renderAxis a prototype function+ this._renderAxis(this.element);++ this._handles = $('.ui-resizable-handle', this.element)+ .disableSelection();++ //Matching axis name+ this._handles.mouseover(function() {+ if (!that.resizing) {+ if (this.className)+ var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);+ //Axis, default = se+ that.axis = axis && axis[1] ? axis[1] : 'se';+ }+ });++ //If we want to auto hide the elements+ if (o.autoHide) {+ this._handles.hide();+ $(this.element)+ .addClass("ui-resizable-autohide")+ .mouseenter(function() {+ if (o.disabled) return;+ $(this).removeClass("ui-resizable-autohide");+ that._handles.show();+ })+ .mouseleave(function(){+ if (o.disabled) return;+ if (!that.resizing) {+ $(this).addClass("ui-resizable-autohide");+ that._handles.hide();+ }+ });+ }++ //Initialize the mouse interaction+ this._mouseInit();++ },++ _destroy: function() {++ this._mouseDestroy();++ var _destroy = function(exp) {+ $(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")+ .removeData("resizable").removeData("ui-resizable").unbind(".resizable").find('.ui-resizable-handle').remove();+ };++ //TODO: Unwrap at same DOM position+ if (this.elementIsWrapper) {+ _destroy(this.element);+ var wrapper = this.element;+ this.originalElement.css({+ position: wrapper.css('position'),+ width: wrapper.outerWidth(),+ height: wrapper.outerHeight(),+ top: wrapper.css('top'),+ left: wrapper.css('left')+ }).insertAfter( wrapper );+ wrapper.remove();+ }++ this.originalElement.css('resize', this.originalResizeStyle);+ _destroy(this.originalElement);++ return this;+ },++ _mouseCapture: function(event) {+ var handle = false;+ for (var i in this.handles) {+ if ($(this.handles[i])[0] == event.target) {+ handle = true;+ }+ }++ return !this.options.disabled && handle;+ },++ _mouseStart: function(event) {++ var o = this.options, iniPos = this.element.position(), el = this.element;++ this.resizing = true;+ this.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };++ // bugfix for http://dev.jquery.com/ticket/1749+ if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) {+ el.css({ position: 'absolute', top: iniPos.top, left: iniPos.left });+ }++ this._renderProxy();++ var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top'));++ if (o.containment) {+ curleft += $(o.containment).scrollLeft() || 0;+ curtop += $(o.containment).scrollTop() || 0;+ }++ //Store needed variables+ this.offset = this.helper.offset();+ this.position = { left: curleft, top: curtop };+ this.size = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };+ this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };+ this.originalPosition = { left: curleft, top: curtop };+ this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };+ this.originalMousePosition = { left: event.pageX, top: event.pageY };++ //Aspect Ratio+ this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1);++ var cursor = $('.ui-resizable-' + this.axis).css('cursor');+ $('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);++ el.addClass("ui-resizable-resizing");+ this._propagate("start", event);+ return true;+ },++ _mouseDrag: function(event) {++ //Increase performance, avoid regex+ var el = this.helper, o = this.options, props = {},+ that = this, smp = this.originalMousePosition, a = this.axis;++ var dx = (event.pageX-smp.left)||0, dy = (event.pageY-smp.top)||0;+ var trigger = this._change[a];+ if (!trigger) return false;++ // Calculate the attrs that will be change+ var data = trigger.apply(this, [event, dx, dy]);++ // Put this in the mouseDrag handler since the user can start pressing shift while resizing+ this._updateVirtualBoundaries(event.shiftKey);+ if (this._aspectRatio || event.shiftKey)+ data = this._updateRatio(data, event);++ data = this._respectSize(data, event);++ // plugins callbacks need to be called first+ this._propagate("resize", event);++ el.css({+ top: this.position.top + "px", left: this.position.left + "px",+ width: this.size.width + "px", height: this.size.height + "px"+ });++ if (!this._helper && this._proportionallyResizeElements.length)+ this._proportionallyResize();++ this._updateCache(data);++ // calling the user callback at the end+ this._trigger('resize', event, this.ui());++ return false;+ },++ _mouseStop: function(event) {++ this.resizing = false;+ var o = this.options, that = this;++ if(this._helper) {+ var pr = this._proportionallyResizeElements, ista = pr.length && (/textarea/i).test(pr[0].nodeName),+ soffseth = ista && $.ui.hasScroll(pr[0], 'left') /* TODO - jump height */ ? 0 : that.sizeDiff.height,+ soffsetw = ista ? 0 : that.sizeDiff.width;++ var s = { width: (that.helper.width() - soffsetw), height: (that.helper.height() - soffseth) },+ left = (parseInt(that.element.css('left'), 10) + (that.position.left - that.originalPosition.left)) || null,+ top = (parseInt(that.element.css('top'), 10) + (that.position.top - that.originalPosition.top)) || null;++ if (!o.animate)+ this.element.css($.extend(s, { top: top, left: left }));++ that.helper.height(that.size.height);+ that.helper.width(that.size.width);++ if (this._helper && !o.animate) this._proportionallyResize();+ }++ $('body').css('cursor', 'auto');++ this.element.removeClass("ui-resizable-resizing");++ this._propagate("stop", event);++ if (this._helper) this.helper.remove();+ return false;++ },++ _updateVirtualBoundaries: function(forceAspectRatio) {+ var o = this.options, pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b;++ b = {+ minWidth: isNumber(o.minWidth) ? o.minWidth : 0,+ maxWidth: isNumber(o.maxWidth) ? o.maxWidth : Infinity,+ minHeight: isNumber(o.minHeight) ? o.minHeight : 0,+ maxHeight: isNumber(o.maxHeight) ? o.maxHeight : Infinity+ };++ if(this._aspectRatio || forceAspectRatio) {+ // We want to create an enclosing box whose aspect ration is the requested one+ // First, compute the "projected" size for each dimension based on the aspect ratio and other dimension+ pMinWidth = b.minHeight * this.aspectRatio;+ pMinHeight = b.minWidth / this.aspectRatio;+ pMaxWidth = b.maxHeight * this.aspectRatio;+ pMaxHeight = b.maxWidth / this.aspectRatio;++ if(pMinWidth > b.minWidth) b.minWidth = pMinWidth;+ if(pMinHeight > b.minHeight) b.minHeight = pMinHeight;+ if(pMaxWidth < b.maxWidth) b.maxWidth = pMaxWidth;+ if(pMaxHeight < b.maxHeight) b.maxHeight = pMaxHeight;+ }+ this._vBoundaries = b;+ },++ _updateCache: function(data) {+ var o = this.options;+ this.offset = this.helper.offset();+ if (isNumber(data.left)) this.position.left = data.left;+ if (isNumber(data.top)) this.position.top = data.top;+ if (isNumber(data.height)) this.size.height = data.height;+ if (isNumber(data.width)) this.size.width = data.width;+ },++ _updateRatio: function(data, event) {++ var o = this.options, cpos = this.position, csize = this.size, a = this.axis;++ if (isNumber(data.height)) data.width = (data.height * this.aspectRatio);+ else if (isNumber(data.width)) data.height = (data.width / this.aspectRatio);++ if (a == 'sw') {+ data.left = cpos.left + (csize.width - data.width);+ data.top = null;+ }+ if (a == 'nw') {+ data.top = cpos.top + (csize.height - data.height);+ data.left = cpos.left + (csize.width - data.width);+ }++ return data;+ },++ _respectSize: function(data, event) {++ var el = this.helper, o = this._vBoundaries, pRatio = this._aspectRatio || event.shiftKey, a = this.axis,+ ismaxw = isNumber(data.width) && o.maxWidth && (o.maxWidth < data.width), ismaxh = isNumber(data.height) && o.maxHeight && (o.maxHeight < data.height),+ isminw = isNumber(data.width) && o.minWidth && (o.minWidth > data.width), isminh = isNumber(data.height) && o.minHeight && (o.minHeight > data.height);++ if (isminw) data.width = o.minWidth;+ if (isminh) data.height = o.minHeight;+ if (ismaxw) data.width = o.maxWidth;+ if (ismaxh) data.height = o.maxHeight;++ var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height;+ var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);++ if (isminw && cw) data.left = dw - o.minWidth;+ if (ismaxw && cw) data.left = dw - o.maxWidth;+ if (isminh && ch) data.top = dh - o.minHeight;+ if (ismaxh && ch) data.top = dh - o.maxHeight;++ // fixing jump error on top/left - bug #2330+ var isNotwh = !data.width && !data.height;+ if (isNotwh && !data.left && data.top) data.top = null;+ else if (isNotwh && !data.top && data.left) data.left = null;++ return data;+ },++ _proportionallyResize: function() {++ var o = this.options;+ if (!this._proportionallyResizeElements.length) return;+ var element = this.helper || this.element;++ for (var i=0; i < this._proportionallyResizeElements.length; i++) {++ var prel = this._proportionallyResizeElements[i];++ if (!this.borderDif) {+ var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')],+ p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')];++ this.borderDif = $.map(b, function(v, i) {+ var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0;+ return border + padding;+ });+ }++ prel.css({+ height: (element.height() - this.borderDif[0] - this.borderDif[2]) || 0,+ width: (element.width() - this.borderDif[1] - this.borderDif[3]) || 0+ });++ };++ },++ _renderProxy: function() {++ var el = this.element, o = this.options;+ this.elementOffset = el.offset();++ if(this._helper) {++ this.helper = this.helper || $('<div style="overflow:hidden;"></div>');++ // fix ie6 offset TODO: This seems broken+ var ie6offset = ($.ui.ie6 ? 1 : 0),+ pxyoffset = ( $.ui.ie6 ? 2 : -1 );++ this.helper.addClass(this._helper).css({+ width: this.element.outerWidth() + pxyoffset,+ height: this.element.outerHeight() + pxyoffset,+ position: 'absolute',+ left: this.elementOffset.left - ie6offset +'px',+ top: this.elementOffset.top - ie6offset +'px',+ zIndex: ++o.zIndex //TODO: Don't modify option+ });++ this.helper+ .appendTo("body")+ .disableSelection();++ } else {+ this.helper = this.element;+ }++ },++ _change: {+ e: function(event, dx, dy) {+ return { width: this.originalSize.width + dx };+ },+ w: function(event, dx, dy) {+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;+ return { left: sp.left + dx, width: cs.width - dx };+ },+ n: function(event, dx, dy) {+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;+ return { top: sp.top + dy, height: cs.height - dy };+ },+ s: function(event, dx, dy) {+ return { height: this.originalSize.height + dy };+ },+ se: function(event, dx, dy) {+ return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));+ },+ sw: function(event, dx, dy) {+ return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));+ },+ ne: function(event, dx, dy) {+ return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [event, dx, dy]));+ },+ nw: function(event, dx, dy) {+ return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [event, dx, dy]));+ }+ },++ _propagate: function(n, event) {+ $.ui.plugin.call(this, n, [event, this.ui()]);+ (n != "resize" && this._trigger(n, event, 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+ };+ }++});++/*+ * Resizable Extensions+ */++$.ui.plugin.add("resizable", "alsoResize", {++ start: function (event, ui) {+ var that = $(this).data("resizable"), o = that.options;++ var _store = function (exp) {+ $(exp).each(function() {+ var el = $(this);+ el.data("resizable-alsoresize", {+ width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),+ left: parseInt(el.css('left'), 10), top: parseInt(el.css('top'), 10)+ });+ });+ };++ if (typeof(o.alsoResize) == 'object' && !o.alsoResize.parentNode) {+ if (o.alsoResize.length) { o.alsoResize = o.alsoResize[0]; _store(o.alsoResize); }+ else { $.each(o.alsoResize, function (exp) { _store(exp); }); }+ }else{+ _store(o.alsoResize);+ }+ },++ resize: function (event, ui) {+ var that = $(this).data("resizable"), o = that.options, os = that.originalSize, op = that.originalPosition;++ var delta = {+ height: (that.size.height - os.height) || 0, width: (that.size.width - os.width) || 0,+ top: (that.position.top - op.top) || 0, left: (that.position.left - op.left) || 0+ },++ _alsoResize = function (exp, c) {+ $(exp).each(function() {+ var el = $(this), start = $(this).data("resizable-alsoresize"), style = {},+ css = c && c.length ? c : el.parents(ui.originalElement[0]).length ? ['width', 'height'] : ['width', 'height', 'top', 'left'];++ $.each(css, function (i, prop) {+ var sum = (start[prop]||0) + (delta[prop]||0);+ if (sum && sum >= 0)+ style[prop] = sum || null;+ });++ el.css(style);+ });+ };++ if (typeof(o.alsoResize) == 'object' && !o.alsoResize.nodeType) {+ $.each(o.alsoResize, function (exp, c) { _alsoResize(exp, c); });+ }else{+ _alsoResize(o.alsoResize);+ }+ },++ stop: function (event, ui) {+ $(this).removeData("resizable-alsoresize");+ }+});++$.ui.plugin.add("resizable", "animate", {++ stop: function(event, ui) {+ var that = $(this).data("resizable"), o = that.options;++ var pr = that._proportionallyResizeElements, ista = pr.length && (/textarea/i).test(pr[0].nodeName),+ soffseth = ista && $.ui.hasScroll(pr[0], 'left') /* TODO - jump height */ ? 0 : that.sizeDiff.height,+ soffsetw = ista ? 0 : that.sizeDiff.width;++ var style = { width: (that.size.width - soffsetw), height: (that.size.height - soffseth) },+ left = (parseInt(that.element.css('left'), 10) + (that.position.left - that.originalPosition.left)) || null,+ top = (parseInt(that.element.css('top'), 10) + (that.position.top - that.originalPosition.top)) || null;++ that.element.animate(+ $.extend(style, top && left ? { top: top, left: left } : {}), {+ duration: o.animateDuration,+ easing: o.animateEasing,+ step: function() {++ var data = {+ width: parseInt(that.element.css('width'), 10),+ height: parseInt(that.element.css('height'), 10),+ top: parseInt(that.element.css('top'), 10),+ left: parseInt(that.element.css('left'), 10)+ };++ if (pr && pr.length) $(pr[0]).css({ width: data.width, height: data.height });++ // propagating resize, and updating values for each animation step+ that._updateCache(data);+ that._propagate("resize", event);++ }+ }+ );+ }++});++$.ui.plugin.add("resizable", "containment", {++ start: function(event, ui) {+ var that = $(this).data("resizable"), o = that.options, el = that.element;+ var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;+ if (!ce) return;++ that.containerElement = $(ce);++ if (/document/.test(oc) || oc == document) {+ that.containerOffset = { left: 0, top: 0 };+ that.containerPosition = { left: 0, top: 0 };++ that.parentData = {+ element: $(document), left: 0, top: 0,+ width: $(document).width(), height: $(document).height() || document.body.parentNode.scrollHeight+ };+ }++ // i'm a node, so compute top, left, right, bottom+ else {+ var element = $(ce), p = [];+ $([ "Top", "Right", "Left", "Bottom" ]).each(function(i, name) { p[i] = num(element.css("padding" + name)); });++ that.containerOffset = element.offset();+ that.containerPosition = element.position();+ that.containerSize = { height: (element.innerHeight() - p[3]), width: (element.innerWidth() - p[1]) };++ var co = that.containerOffset, ch = that.containerSize.height, cw = that.containerSize.width,+ width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);++ that.parentData = {+ element: ce, left: co.left, top: co.top, width: width, height: height+ };+ }+ },++ resize: function(event, ui) {+ var that = $(this).data("resizable"), o = that.options,+ ps = that.containerSize, co = that.containerOffset, cs = that.size, cp = that.position,+ pRatio = that._aspectRatio || event.shiftKey, cop = { top:0, left:0 }, ce = that.containerElement;++ if (ce[0] != document && (/static/).test(ce.css('position'))) cop = co;++ if (cp.left < (that._helper ? co.left : 0)) {+ that.size.width = that.size.width + (that._helper ? (that.position.left - co.left) : (that.position.left - cop.left));+ if (pRatio) that.size.height = that.size.width / that.aspectRatio;+ that.position.left = o.helper ? co.left : 0;+ }++ if (cp.top < (that._helper ? co.top : 0)) {+ that.size.height = that.size.height + (that._helper ? (that.position.top - co.top) : that.position.top);+ if (pRatio) that.size.width = that.size.height * that.aspectRatio;+ that.position.top = that._helper ? co.top : 0;+ }++ that.offset.left = that.parentData.left+that.position.left;+ that.offset.top = that.parentData.top+that.position.top;++ var woset = Math.abs( (that._helper ? that.offset.left - cop.left : (that.offset.left - cop.left)) + that.sizeDiff.width ),+ hoset = Math.abs( (that._helper ? that.offset.top - cop.top : (that.offset.top - co.top)) + that.sizeDiff.height );++ var isParent = that.containerElement.get(0) == that.element.parent().get(0),+ isOffsetRelative = /relative|absolute/.test(that.containerElement.css('position'));++ if(isParent && isOffsetRelative) woset -= that.parentData.left;++ if (woset + that.size.width >= that.parentData.width) {+ that.size.width = that.parentData.width - woset;+ if (pRatio) that.size.height = that.size.width / that.aspectRatio;+ }++ if (hoset + that.size.height >= that.parentData.height) {+ that.size.height = that.parentData.height - hoset;+ if (pRatio) that.size.width = that.size.height * that.aspectRatio;+ }+ },++ stop: function(event, ui){+ var that = $(this).data("resizable"), o = that.options, cp = that.position,+ co = that.containerOffset, cop = that.containerPosition, ce = that.containerElement;++ var helper = $(that.helper), ho = helper.offset(), w = helper.outerWidth() - that.sizeDiff.width, h = helper.outerHeight() - that.sizeDiff.height;++ if (that._helper && !o.animate && (/relative/).test(ce.css('position')))+ $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h });++ if (that._helper && !o.animate && (/static/).test(ce.css('position')))+ $(this).css({ left: ho.left - cop.left - co.left, width: w, height: h });++ }+});++$.ui.plugin.add("resizable", "ghost", {++ start: function(event, ui) {++ var that = $(this).data("resizable"), o = that.options, cs = that.size;++ that.ghost = that.originalElement.clone();+ that.ghost+ .css({ opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 })+ .addClass('ui-resizable-ghost')+ .addClass(typeof o.ghost == 'string' ? o.ghost : '');++ that.ghost.appendTo(that.helper);++ },++ resize: function(event, ui){+ var that = $(this).data("resizable"), o = that.options;+ if (that.ghost) that.ghost.css({ position: 'relative', height: that.size.height, width: that.size.width });+ },++ stop: function(event, ui){+ var that = $(this).data("resizable"), o = that.options;+ if (that.ghost && that.helper) that.helper.get(0).removeChild(that.ghost.get(0));+ }++});++$.ui.plugin.add("resizable", "grid", {++ resize: function(event, ui) {+ var that = $(this).data("resizable"), o = that.options, cs = that.size, os = that.originalSize, op = that.originalPosition, a = that.axis, ratio = o._aspectRatio || event.shiftKey;+ o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid;+ var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1);++ if (/^(se|s|e)$/.test(a)) {+ that.size.width = os.width + ox;+ that.size.height = os.height + oy;+ }+ else if (/^(ne)$/.test(a)) {+ that.size.width = os.width + ox;+ that.size.height = os.height + oy;+ that.position.top = op.top - oy;+ }+ else if (/^(sw)$/.test(a)) {+ that.size.width = os.width + ox;+ that.size.height = os.height + oy;+ that.position.left = op.left - ox;+ }+ else {+ that.size.width = os.width + ox;+ that.size.height = os.height + oy;+ that.position.top = op.top - oy;+ that.position.left = op.left - ox;+ }+ }++});++var num = function(v) {+ return parseInt(v, 10) || 0;+};++var isNumber = function(value) {+ return !isNaN(parseInt(value, 10));+};++})(jQuery);+(function( $, undefined ) {++$.widget("ui.selectable", $.ui.mouse, {+ version: "1.9.2",+ options: {+ appendTo: 'body',+ autoRefresh: true,+ distance: 0,+ filter: '*',+ tolerance: 'touch'+ },+ _create: function() {+ var that = this;++ this.element.addClass("ui-selectable");++ this.dragged = false;++ // cache selectee children based on filter+ var selectees;+ this.refresh = function() {+ selectees = $(that.options.filter, that.element[0]);+ selectees.addClass("ui-selectee");+ selectees.each(function() {+ var $this = $(this);+ var pos = $this.offset();+ $.data(this, "selectable-item", {+ element: this,+ $element: $this,+ left: pos.left,+ top: pos.top,+ right: pos.left + $this.outerWidth(),+ bottom: pos.top + $this.outerHeight(),+ startselected: false,+ selected: $this.hasClass('ui-selected'),+ selecting: $this.hasClass('ui-selecting'),+ unselecting: $this.hasClass('ui-unselecting')+ });+ });+ };+ this.refresh();++ this.selectees = selectees.addClass("ui-selectee");++ this._mouseInit();++ this.helper = $("<div class='ui-selectable-helper'></div>");+ },++ _destroy: function() {+ this.selectees+ .removeClass("ui-selectee")+ .removeData("selectable-item");+ this.element+ .removeClass("ui-selectable ui-selectable-disabled");+ this._mouseDestroy();+ },++ _mouseStart: function(event) {+ var that = this;++ this.opos = [event.pageX, event.pageY];++ if (this.options.disabled)+ return;++ var options = this.options;++ this.selectees = $(options.filter, this.element[0]);++ this._trigger("start", event);++ $(options.appendTo).append(this.helper);+ // position helper (lasso)+ this.helper.css({+ "left": event.clientX,+ "top": event.clientY,+ "width": 0,+ "height": 0+ });++ if (options.autoRefresh) {+ this.refresh();+ }++ this.selectees.filter('.ui-selected').each(function() {+ var selectee = $.data(this, "selectable-item");+ selectee.startselected = true;+ if (!event.metaKey && !event.ctrlKey) {+ selectee.$element.removeClass('ui-selected');+ selectee.selected = false;+ selectee.$element.addClass('ui-unselecting');+ selectee.unselecting = true;+ // selectable UNSELECTING callback+ that._trigger("unselecting", event, {+ unselecting: selectee.element+ });+ }+ });++ $(event.target).parents().andSelf().each(function() {+ var selectee = $.data(this, "selectable-item");+ if (selectee) {+ var doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass('ui-selected');+ selectee.$element+ .removeClass(doSelect ? "ui-unselecting" : "ui-selected")+ .addClass(doSelect ? "ui-selecting" : "ui-unselecting");+ selectee.unselecting = !doSelect;+ selectee.selecting = doSelect;+ selectee.selected = doSelect;+ // selectable (UN)SELECTING callback+ if (doSelect) {+ that._trigger("selecting", event, {+ selecting: selectee.element+ });+ } else {+ that._trigger("unselecting", event, {+ unselecting: selectee.element+ });+ }+ return false;+ }+ });++ },++ _mouseDrag: function(event) {+ var that = this;+ this.dragged = true;++ if (this.options.disabled)+ return;++ var options = this.options;++ var x1 = this.opos[0], y1 = this.opos[1], x2 = event.pageX, y2 = event.pageY;+ if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; }+ if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; }+ this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});++ this.selectees.each(function() {+ var selectee = $.data(this, "selectable-item");+ //prevent helper from being selected if appendTo: selectable+ if (!selectee || selectee.element == that.element[0])+ return;+ var hit = false;+ if (options.tolerance == 'touch') {+ hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );+ } else if (options.tolerance == 'fit') {+ hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);+ }++ if (hit) {+ // SELECT+ if (selectee.selected) {+ selectee.$element.removeClass('ui-selected');+ selectee.selected = false;+ }+ if (selectee.unselecting) {+ selectee.$element.removeClass('ui-unselecting');+ selectee.unselecting = false;+ }+ if (!selectee.selecting) {+ selectee.$element.addClass('ui-selecting');+ selectee.selecting = true;+ // selectable SELECTING callback+ that._trigger("selecting", event, {+ selecting: selectee.element+ });+ }+ } else {+ // UNSELECT+ if (selectee.selecting) {+ if ((event.metaKey || event.ctrlKey) && selectee.startselected) {+ selectee.$element.removeClass('ui-selecting');+ selectee.selecting = false;+ selectee.$element.addClass('ui-selected');+ selectee.selected = true;+ } else {+ selectee.$element.removeClass('ui-selecting');+ selectee.selecting = false;+ if (selectee.startselected) {+ selectee.$element.addClass('ui-unselecting');+ selectee.unselecting = true;+ }+ // selectable UNSELECTING callback+ that._trigger("unselecting", event, {+ unselecting: selectee.element+ });+ }+ }+ if (selectee.selected) {+ if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {+ selectee.$element.removeClass('ui-selected');+ selectee.selected = false;++ selectee.$element.addClass('ui-unselecting');+ selectee.unselecting = true;+ // selectable UNSELECTING callback+ that._trigger("unselecting", event, {+ unselecting: selectee.element+ });+ }+ }+ }+ });++ return false;+ },++ _mouseStop: function(event) {+ var that = this;++ this.dragged = false;++ var options = this.options;++ $('.ui-unselecting', this.element[0]).each(function() {+ var selectee = $.data(this, "selectable-item");+ selectee.$element.removeClass('ui-unselecting');+ selectee.unselecting = false;+ selectee.startselected = false;+ that._trigger("unselected", event, {+ unselected: selectee.element+ });+ });+ $('.ui-selecting', this.element[0]).each(function() {+ var selectee = $.data(this, "selectable-item");+ selectee.$element.removeClass('ui-selecting').addClass('ui-selected');+ selectee.selecting = false;+ selectee.selected = true;+ selectee.startselected = true;+ that._trigger("selected", event, {+ selected: selectee.element+ });+ });+ this._trigger("stop", event);++ this.helper.remove();++ return false;+ }++});++})(jQuery);+(function( $, undefined ) {++// number of pages in a slider+// (how many times can you page up/down to go through the whole range)+var numPages = 5;++$.widget( "ui.slider", $.ui.mouse, {+ version: "1.9.2",+ widgetEventPrefix: "slide",++ options: {+ animate: false,+ distance: 0,+ max: 100,+ min: 0,+ orientation: "horizontal",+ range: false,+ step: 1,+ value: 0,+ values: null+ },++ _create: function() {+ var i, handleCount,+ o = this.options,+ existingHandles = this.element.find( ".ui-slider-handle" ).addClass( "ui-state-default ui-corner-all" ),+ handle = "<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",+ handles = [];++ this._keySliding = false;+ this._mouseSliding = 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" ++ ( o.disabled ? " ui-slider-disabled ui-disabled" : "" ) );++ this.range = $([]);++ if ( o.range ) {+ if ( o.range === true ) {+ if ( !o.values ) {+ o.values = [ this._valueMin(), this._valueMin() ];+ }+ if ( o.values.length && o.values.length !== 2 ) {+ o.values = [ o.values[0], o.values[0] ];+ }+ }++ this.range = $( "<div></div>" )+ .appendTo( this.element )+ .addClass( "ui-slider-range" ++ // note: this isn't the most fittingly semantic framework class for this element,+ // but worked best visually with a variety of themes+ " ui-widget-header" ++ ( ( o.range === "min" || o.range === "max" ) ? " ui-slider-range-" + o.range : "" ) );+ }++ handleCount = ( o.values && o.values.length ) || 1;++ for ( i = existingHandles.length; i < handleCount; i++ ) {+ handles.push( handle );+ }++ this.handles = existingHandles.add( $( handles.join( "" ) ).appendTo( this.element ) );++ this.handle = this.handles.eq( 0 );++ this.handles.add( this.range ).filter( "a" )+ .click(function( event ) {+ event.preventDefault();+ })+ .mouseenter(function() {+ if ( !o.disabled ) {+ $( this ).addClass( "ui-state-hover" );+ }+ })+ .mouseleave(function() {+ $( this ).removeClass( "ui-state-hover" );+ })+ .focus(function() {+ if ( !o.disabled ) {+ $( ".ui-slider .ui-state-focus" ).removeClass( "ui-state-focus" );+ $( this ).addClass( "ui-state-focus" );+ } else {+ $( this ).blur();+ }+ })+ .blur(function() {+ $( this ).removeClass( "ui-state-focus" );+ });++ this.handles.each(function( i ) {+ $( this ).data( "ui-slider-handle-index", i );+ });++ this._on( this.handles, {+ keydown: function( event ) {+ var allowed, curVal, newVal, step,+ index = $( event.target ).data( "ui-slider-handle-index" );++ switch ( event.keyCode ) {+ case $.ui.keyCode.HOME:+ case $.ui.keyCode.END:+ case $.ui.keyCode.PAGE_UP:+ case $.ui.keyCode.PAGE_DOWN:+ case $.ui.keyCode.UP:+ case $.ui.keyCode.RIGHT:+ case $.ui.keyCode.DOWN:+ case $.ui.keyCode.LEFT:+ event.preventDefault();+ if ( !this._keySliding ) {+ this._keySliding = true;+ $( event.target ).addClass( "ui-state-active" );+ allowed = this._start( event, index );+ if ( allowed === false ) {+ return;+ }+ }+ break;+ }++ step = this.options.step;+ if ( this.options.values && this.options.values.length ) {+ curVal = newVal = this.values( index );+ } else {+ curVal = newVal = this.value();+ }++ switch ( event.keyCode ) {+ case $.ui.keyCode.HOME:+ newVal = this._valueMin();+ break;+ case $.ui.keyCode.END:+ newVal = this._valueMax();+ break;+ case $.ui.keyCode.PAGE_UP:+ newVal = this._trimAlignValue( curVal + ( (this._valueMax() - this._valueMin()) / numPages ) );+ break;+ case $.ui.keyCode.PAGE_DOWN:+ newVal = this._trimAlignValue( curVal - ( (this._valueMax() - this._valueMin()) / numPages ) );+ break;+ case $.ui.keyCode.UP:+ case $.ui.keyCode.RIGHT:+ if ( curVal === this._valueMax() ) {+ return;+ }+ newVal = this._trimAlignValue( curVal + step );+ break;+ case $.ui.keyCode.DOWN:+ case $.ui.keyCode.LEFT:+ if ( curVal === this._valueMin() ) {+ return;+ }+ newVal = this._trimAlignValue( curVal - step );+ break;+ }++ this._slide( event, index, newVal );+ },+ keyup: function( event ) {+ var index = $( event.target ).data( "ui-slider-handle-index" );++ if ( this._keySliding ) {+ this._keySliding = false;+ this._stop( event, index );+ this._change( event, index );+ $( event.target ).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" );++ this._mouseDestroy();+ },++ _mouseCapture: function( event ) {+ var position, normValue, distance, closestHandle, index, allowed, offset, mouseOverHandle,+ that = this,+ o = this.options;++ if ( o.disabled ) {+ return false;+ }++ this.elementSize = {+ width: this.element.outerWidth(),+ height: this.element.outerHeight()+ };+ this.elementOffset = this.element.offset();++ position = { x: event.pageX, y: event.pageY };+ normValue = this._normValueFromMouse( position );+ distance = this._valueMax() - this._valueMin() + 1;+ this.handles.each(function( i ) {+ var thisDistance = Math.abs( normValue - that.values(i) );+ if ( distance > thisDistance ) {+ distance = thisDistance;+ closestHandle = $( this );+ index = i;+ }+ });++ // workaround for bug #3736 (if both handles of a range are at 0,+ // the first is always used as the one with least distance,+ // and moving it is obviously prevented by preventing negative ranges)+ if( o.range === true && this.values(1) === o.min ) {+ index += 1;+ closestHandle = $( this.handles[index] );+ }++ allowed = this._start( event, index );+ if ( allowed === false ) {+ return false;+ }+ this._mouseSliding = true;++ this._handleIndex = index;++ closestHandle+ .addClass( "ui-state-active" )+ .focus();++ offset = closestHandle.offset();+ mouseOverHandle = !$( event.target ).parents().andSelf().is( ".ui-slider-handle" );+ this._clickOffset = mouseOverHandle ? { left: 0, top: 0 } : {+ left: event.pageX - offset.left - ( closestHandle.width() / 2 ),+ top: event.pageY - offset.top -+ ( closestHandle.height() / 2 ) -+ ( parseInt( closestHandle.css("borderTopWidth"), 10 ) || 0 ) -+ ( parseInt( closestHandle.css("borderBottomWidth"), 10 ) || 0) ++ ( parseInt( closestHandle.css("marginTop"), 10 ) || 0)+ };++ if ( !this.handles.hasClass( "ui-state-hover" ) ) {+ this._slide( event, index, normValue );+ }+ this._animateOff = true;+ return true;+ },++ _mouseStart: function() {+ return true;+ },++ _mouseDrag: function( event ) {+ var position = { x: event.pageX, y: event.pageY },+ normValue = this._normValueFromMouse( position );++ this._slide( event, this._handleIndex, normValue );++ return false;+ },++ _mouseStop: function( event ) {+ this.handles.removeClass( "ui-state-active" );+ this._mouseSliding = false;++ this._stop( event, this._handleIndex );+ this._change( event, this._handleIndex );++ this._handleIndex = null;+ this._clickOffset = null;+ this._animateOff = false;++ return false;+ },++ _detectOrientation: function() {+ this.orientation = ( this.options.orientation === "vertical" ) ? "vertical" : "horizontal";+ },++ _normValueFromMouse: function( position ) {+ var pixelTotal,+ pixelMouse,+ percentMouse,+ valueTotal,+ valueMouse;++ if ( this.orientation === "horizontal" ) {+ pixelTotal = this.elementSize.width;+ pixelMouse = position.x - this.elementOffset.left - ( this._clickOffset ? this._clickOffset.left : 0 );+ } else {+ pixelTotal = this.elementSize.height;+ pixelMouse = position.y - this.elementOffset.top - ( this._clickOffset ? this._clickOffset.top : 0 );+ }++ percentMouse = ( pixelMouse / pixelTotal );+ if ( percentMouse > 1 ) {+ percentMouse = 1;+ }+ if ( percentMouse < 0 ) {+ percentMouse = 0;+ }+ if ( this.orientation === "vertical" ) {+ percentMouse = 1 - percentMouse;+ }++ valueTotal = this._valueMax() - this._valueMin();+ valueMouse = this._valueMin() + percentMouse * valueTotal;++ return this._trimAlignValue( valueMouse );+ },++ _start: function( event, index ) {+ var uiHash = {+ handle: this.handles[ index ],+ value: this.value()+ };+ if ( this.options.values && this.options.values.length ) {+ uiHash.value = this.values( index );+ uiHash.values = this.values();+ }+ return this._trigger( "start", event, uiHash );+ },++ _slide: function( event, index, newVal ) {+ var otherVal,+ newValues,+ allowed;++ if ( this.options.values && this.options.values.length ) {+ otherVal = this.values( index ? 0 : 1 );++ if ( ( this.options.values.length === 2 && this.options.range === true ) &&+ ( ( index === 0 && newVal > otherVal) || ( index === 1 && newVal < otherVal ) )+ ) {+ newVal = otherVal;+ }++ if ( newVal !== this.values( index ) ) {+ newValues = this.values();+ newValues[ index ] = newVal;+ // A slide can be canceled by returning false from the slide callback+ allowed = this._trigger( "slide", event, {+ handle: this.handles[ index ],+ value: newVal,+ values: newValues+ } );+ otherVal = this.values( index ? 0 : 1 );+ if ( allowed !== false ) {+ this.values( index, newVal, true );+ }+ }+ } else {+ if ( newVal !== this.value() ) {+ // A slide can be canceled by returning false from the slide callback+ allowed = this._trigger( "slide", event, {+ handle: this.handles[ index ],+ value: newVal+ } );+ if ( allowed !== false ) {+ this.value( newVal );+ }+ }+ }+ },++ _stop: function( event, index ) {+ var uiHash = {+ handle: this.handles[ index ],+ value: this.value()+ };+ if ( this.options.values && this.options.values.length ) {+ uiHash.value = this.values( index );+ uiHash.values = this.values();+ }++ this._trigger( "stop", event, uiHash );+ },++ _change: function( event, index ) {+ if ( !this._keySliding && !this._mouseSliding ) {+ var uiHash = {+ handle: this.handles[ index ],+ value: this.value()+ };+ if ( this.options.values && this.options.values.length ) {+ uiHash.value = this.values( index );+ uiHash.values = this.values();+ }++ this._trigger( "change", event, uiHash );+ }+ },++ value: function( newValue ) {+ if ( arguments.length ) {+ this.options.value = this._trimAlignValue( newValue );+ this._refreshValue();+ this._change( null, 0 );+ return;+ }++ return this._value();+ },++ values: function( index, newValue ) {+ var vals,+ newValues,+ i;++ if ( arguments.length > 1 ) {+ this.options.values[ index ] = this._trimAlignValue( newValue );+ this._refreshValue();+ this._change( null, index );+ return;+ }++ if ( arguments.length ) {+ if ( $.isArray( arguments[ 0 ] ) ) {+ vals = this.options.values;+ newValues = arguments[ 0 ];+ for ( i = 0; i < vals.length; i += 1 ) {+ vals[ i ] = this._trimAlignValue( newValues[ i ] );+ this._change( null, i );+ }+ this._refreshValue();+ } else {+ if ( this.options.values && this.options.values.length ) {+ return this._values( index );+ } else {+ return this.value();+ }+ }+ } else {+ return this._values();+ }+ },++ _setOption: function( key, value ) {+ var i,+ valsLength = 0;++ if ( $.isArray( this.options.values ) ) {+ valsLength = this.options.values.length;+ }++ $.Widget.prototype._setOption.apply( this, arguments );++ switch ( key ) {+ case "disabled":+ if ( value ) {+ this.handles.filter( ".ui-state-focus" ).blur();+ this.handles.removeClass( "ui-state-hover" );+ this.handles.prop( "disabled", true );+ this.element.addClass( "ui-disabled" );+ } else {+ this.handles.prop( "disabled", false );+ 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 ( i = 0; i < valsLength; i += 1 ) {+ this._change( null, i );+ }+ this._animateOff = false;+ break;+ case "min":+ case "max":+ this._animateOff = true;+ this._refreshValue();+ this._animateOff = false;+ break;+ }+ },++ //internal value getter+ // _value() returns value trimmed by min and max, aligned by step+ _value: function() {+ var val = this.options.value;+ val = this._trimAlignValue( val );++ return val;+ },++ //internal values getter+ // _values() returns array of values trimmed by min and max, aligned by step+ // _values( index ) returns single value trimmed by min and max, aligned by step+ _values: function( index ) {+ var val,+ vals,+ i;++ if ( arguments.length ) {+ val = this.options.values[ index ];+ val = this._trimAlignValue( val );++ return val;+ } else {+ // .slice() creates a copy of the array+ // this copy gets trimmed by min and max and then returned+ vals = this.options.values.slice();+ for ( i = 0; i < vals.length; i+= 1) {+ vals[ i ] = this._trimAlignValue( vals[ i ] );+ }++ return vals;+ }+ },++ // returns the step-aligned value that val is closest to, between (inclusive) min and max+ _trimAlignValue: function( val ) {+ if ( val <= this._valueMin() ) {+ return this._valueMin();+ }+ if ( val >= this._valueMax() ) {+ return this._valueMax();+ }+ var step = ( this.options.step > 0 ) ? this.options.step : 1,+ valModStep = (val - this._valueMin()) % step,+ alignValue = val - valModStep;++ if ( Math.abs(valModStep) * 2 >= step ) {+ alignValue += ( valModStep > 0 ) ? step : ( -step );+ }++ // Since JavaScript has problems with large floats, round+ // the final value to 5 digits after the decimal point (see #4124)+ return parseFloat( alignValue.toFixed(5) );+ },++ _valueMin: function() {+ return this.options.min;+ },++ _valueMax: function() {+ return this.options.max;+ },++ _refreshValue: function() {+ var lastValPercent, valPercent, value, valueMin, valueMax,+ oRange = this.options.range,+ o = this.options,+ that = this,+ animate = ( !this._animateOff ) ? o.animate : false,+ _set = {};++ if ( this.options.values && this.options.values.length ) {+ this.handles.each(function( i ) {+ valPercent = ( that.values(i) - that._valueMin() ) / ( that._valueMax() - that._valueMin() ) * 100;+ _set[ that.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";+ $( this ).stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );+ if ( that.options.range === true ) {+ if ( that.orientation === "horizontal" ) {+ if ( i === 0 ) {+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { left: valPercent + "%" }, o.animate );+ }+ if ( i === 1 ) {+ that.range[ animate ? "animate" : "css" ]( { width: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );+ }+ } else {+ if ( i === 0 ) {+ that.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { bottom: ( valPercent ) + "%" }, o.animate );+ }+ if ( i === 1 ) {+ that.range[ animate ? "animate" : "css" ]( { height: ( valPercent - lastValPercent ) + "%" }, { queue: false, duration: o.animate } );+ }+ }+ }+ lastValPercent = valPercent;+ });+ } else {+ value = this.value();+ valueMin = this._valueMin();+ valueMax = this._valueMax();+ valPercent = ( valueMax !== valueMin ) ?+ ( value - valueMin ) / ( valueMax - valueMin ) * 100 :+ 0;+ _set[ this.orientation === "horizontal" ? "left" : "bottom" ] = valPercent + "%";+ this.handle.stop( 1, 1 )[ animate ? "animate" : "css" ]( _set, o.animate );++ if ( oRange === "min" && this.orientation === "horizontal" ) {+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { width: valPercent + "%" }, o.animate );+ }+ if ( oRange === "max" && this.orientation === "horizontal" ) {+ this.range[ animate ? "animate" : "css" ]( { width: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );+ }+ if ( oRange === "min" && this.orientation === "vertical" ) {+ this.range.stop( 1, 1 )[ animate ? "animate" : "css" ]( { height: valPercent + "%" }, o.animate );+ }+ if ( oRange === "max" && this.orientation === "vertical" ) {+ this.range[ animate ? "animate" : "css" ]( { height: ( 100 - valPercent ) + "%" }, { queue: false, duration: o.animate } );+ }+ }+ }++});++}(jQuery));+(function( $, undefined ) {++$.widget("ui.sortable", $.ui.mouse, {+ version: "1.9.2",+ widgetEventPrefix: "sort",+ ready: false,+ 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: 1000+ },+ _create: function() {++ var o = this.options;+ this.containerCache = {};+ this.element.addClass("ui-sortable");++ //Get the items+ this.refresh();++ //Let's determine if the items are being displayed horizontally+ this.floating = this.items.length ? o.axis === 'x' || (/left|right/).test(this.items[0].item.css('float')) || (/inline|table-cell/).test(this.items[0].item.css('display')) : false;++ //Let's determine the parent's offset+ this.offset = this.element.offset();++ //Initialize mouse events for interaction+ this._mouseInit();++ //We're ready to go+ this.ready = true++ },++ _destroy: function() {+ this.element+ .removeClass("ui-sortable ui-sortable-disabled");+ this._mouseDestroy();++ for ( var i = this.items.length - 1; i >= 0; i-- )+ this.items[i].item.removeData(this.widgetName + "-item");++ return this;+ },++ _setOption: function(key, value){+ if ( key === "disabled" ) {+ this.options[ key ] = value;++ this.widget().toggleClass( "ui-sortable-disabled", !!value );+ } else {+ // Don't call widget base _setOption for disable as it adds ui-state-disabled class+ $.Widget.prototype._setOption.apply(this, arguments);+ }+ },++ _mouseCapture: function(event, overrideHandle) {+ var that = this;++ if (this.reverting) {+ return false;+ }++ if(this.options.disabled || this.options.type == 'static') return false;++ //We have to refresh the items data once first+ this._refreshItems(event);++ //Find out if the clicked node (or one of its parents) is a actual item in this.items+ var currentItem = null, nodes = $(event.target).parents().each(function() {+ if($.data(this, that.widgetName + '-item') == that) {+ currentItem = $(this);+ return false;+ }+ });+ if($.data(event.target, that.widgetName + '-item') == that) currentItem = $(event.target);++ if(!currentItem) return false;+ if(this.options.handle && !overrideHandle) {+ var validHandle = false;++ $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == event.target) validHandle = true; });+ if(!validHandle) return false;+ }++ this.currentItem = currentItem;+ this._removeCurrentsFromItems();+ return true;++ },++ _mouseStart: function(event, overrideHandle, noActivation) {++ var o = this.options;+ this.currentContainer = this;++ //We only need to call refreshPositions, because the refreshItems call has been moved to mouseCapture+ this.refreshPositions();++ //Create and append the visible helper+ this.helper = this._createHelper(event);++ //Cache the helper size+ this._cacheHelperProportions();++ /*+ * - Position generation -+ * This block generates everything position related - it's the core of draggables.+ */++ //Cache the margins of the original element+ this._cacheMargins();++ //Get the next scrolling parent+ this.scrollParent = this.helper.scrollParent();++ //The element's absolute position on the page minus margins+ this.offset = this.currentItem.offset();+ this.offset = {+ top: this.offset.top - this.margins.top,+ left: this.offset.left - this.margins.left+ };++ $.extend(this.offset, {+ click: { //Where the click happened, relative to the element+ left: event.pageX - this.offset.left,+ top: event.pageY - this.offset.top+ },+ parent: this._getParentOffset(),+ relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper+ });++ // Only after we got the offset, we can change the helper's position to absolute+ // TODO: Still need to figure out a way to make relative sorting possible+ this.helper.css("position", "absolute");+ this.cssPosition = this.helper.css("position");++ //Generate the original position+ this.originalPosition = this._generatePosition(event);+ this.originalPageX = event.pageX;+ this.originalPageY = event.pageY;++ //Adjust the mouse offset relative to the helper if 'cursorAt' is supplied+ (o.cursorAt && this._adjustOffsetFromHelper(o.cursorAt));++ //Cache the former DOM position+ this.domPosition = { prev: this.currentItem.prev()[0], parent: this.currentItem.parent()[0] };++ //If the helper is not the original, hide the original so it's not playing any role during the drag, won't cause anything bad this way+ if(this.helper[0] != this.currentItem[0]) {+ this.currentItem.hide();+ }++ //Create the placeholder+ this._createPlaceholder();++ //Set a containment if given in the options+ if(o.containment)+ this._setContainment();++ if(o.cursor) { // cursor option+ if ($('body').css("cursor")) this._storedCursor = $('body').css("cursor");+ $('body').css("cursor", o.cursor);+ }++ if(o.opacity) { // opacity option+ if (this.helper.css("opacity")) this._storedOpacity = this.helper.css("opacity");+ this.helper.css("opacity", o.opacity);+ }++ if(o.zIndex) { // zIndex option+ if (this.helper.css("zIndex")) this._storedZIndex = this.helper.css("zIndex");+ this.helper.css("zIndex", o.zIndex);+ }++ //Prepare scrolling+ if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML')+ this.overflowOffset = this.scrollParent.offset();++ //Call callbacks+ this._trigger("start", event, this._uiHash());++ //Recache the helper size+ if(!this._preserveHelperProportions)+ this._cacheHelperProportions();+++ //Post 'activate' events to possible containers+ if(!noActivation) {+ for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i]._trigger("activate", event, this._uiHash(this)); }+ }++ //Prepare possible droppables+ if($.ui.ddmanager)+ $.ui.ddmanager.current = this;++ if ($.ui.ddmanager && !o.dropBehaviour)+ $.ui.ddmanager.prepareOffsets(this, event);++ this.dragging = true;++ this.helper.addClass("ui-sortable-helper");+ this._mouseDrag(event); //Execute the drag once - this causes the helper not to be visible before getting its correct position+ return true;++ },++ _mouseDrag: function(event) {++ //Compute the helpers position+ this.position = this._generatePosition(event);+ this.positionAbs = this._convertPositionTo("absolute");++ if (!this.lastPositionAbs) {+ this.lastPositionAbs = this.positionAbs;+ }++ //Do scrolling+ if(this.options.scroll) {+ var o = this.options, scrolled = false;+ if(this.scrollParent[0] != document && this.scrollParent[0].tagName != 'HTML') {++ if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity)+ this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop + o.scrollSpeed;+ else if(event.pageY - this.overflowOffset.top < o.scrollSensitivity)+ this.scrollParent[0].scrollTop = scrolled = this.scrollParent[0].scrollTop - o.scrollSpeed;++ if((this.overflowOffset.left + this.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)+ this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft + o.scrollSpeed;+ else if(event.pageX - this.overflowOffset.left < o.scrollSensitivity)+ this.scrollParent[0].scrollLeft = scrolled = this.scrollParent[0].scrollLeft - o.scrollSpeed;++ } else {++ if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)+ scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);+ else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)+ scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);++ if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)+ scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);+ else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)+ scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);++ }++ if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)+ $.ui.ddmanager.prepareOffsets(this, event);+ }++ //Regenerate the absolute position used for position checks+ this.positionAbs = this._convertPositionTo("absolute");++ //Set the helper 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';++ //Rearrange+ for (var i = this.items.length - 1; i >= 0; i--) {++ //Cache variables and intersection, continue if no intersection+ var item = this.items[i], itemElement = item.item[0], intersection = this._intersectsWithPointer(item);+ if (!intersection) continue;++ // Only put the placeholder inside the current Container, skip all+ // items form other containers. This works because when moving+ // an item from one container to another the+ // currentContainer is switched before the placeholder is moved.+ //+ // Without this moving items in "sub-sortables" can cause the placeholder to jitter+ // beetween the outer and inner container.+ if (item.instance !== this.currentContainer) continue;++ if (itemElement != this.currentItem[0] //cannot intersect with itself+ && this.placeholder[intersection == 1 ? "next" : "prev"]()[0] != itemElement //no useless actions that have been done before+ && !$.contains(this.placeholder[0], itemElement) //no action if the item moved is the parent of the item checked+ && (this.options.type == 'semi-dynamic' ? !$.contains(this.element[0], itemElement) : true)+ //&& itemElement.parentNode == this.placeholder[0].parentNode // only rearrange items within the same container+ ) {++ this.direction = intersection == 1 ? "down" : "up";++ if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) {+ this._rearrange(event, item);+ } else {+ break;+ }++ this._trigger("change", event, this._uiHash());+ break;+ }+ }++ //Post events to containers+ this._contactContainers(event);++ //Interconnect with droppables+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, event);++ //Call callbacks+ this._trigger('sort', event, this._uiHash());++ this.lastPositionAbs = this.positionAbs;+ return false;++ },++ _mouseStop: function(event, noPropagation) {++ if(!event) return;++ //If we are using droppables, inform the manager about the drop+ if ($.ui.ddmanager && !this.options.dropBehaviour)+ $.ui.ddmanager.drop(this, event);++ if(this.options.revert) {+ var that = this;+ var cur = this.placeholder.offset();++ this.reverting = true;++ $(this.helper).animate({+ left: cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),+ top: cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)+ }, parseInt(this.options.revert, 10) || 500, function() {+ that._clear(event);+ });+ } else {+ this._clear(event, noPropagation);+ }++ return false;++ },++ cancel: function() {++ if(this.dragging) {++ this._mouseUp({ target: null });++ if(this.options.helper == "original")+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");+ else+ this.currentItem.show();++ //Post deactivating events to containers+ for (var i = this.containers.length - 1; i >= 0; i--){+ this.containers[i]._trigger("deactivate", null, this._uiHash(this));+ if(this.containers[i].containerCache.over) {+ this.containers[i]._trigger("out", null, this._uiHash(this));+ this.containers[i].containerCache.over = 0;+ }+ }++ }++ if (this.placeholder) {+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!+ if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]);+ if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove();++ $.extend(this, {+ helper: null,+ dragging: false,+ reverting: false,+ _noFinalSort: null+ });++ if(this.domPosition.prev) {+ $(this.domPosition.prev).after(this.currentItem);+ } else {+ $(this.domPosition.parent).prepend(this.currentItem);+ }+ }++ return this;++ },++ serialize: function(o) {++ var items = this._getItemsAsjQuery(o && o.connected);+ var str = []; o = o || {};++ $(items).each(function() {+ var res = ($(o.item || this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));+ if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ? res[1] : res[2]));+ });++ if(!str.length && o.key) {+ str.push(o.key + '=');+ }++ return str.join('&');++ },++ toArray: function(o) {++ var items = this._getItemsAsjQuery(o && o.connected);+ var ret = []; o = o || {};++ items.each(function() { ret.push($(o.item || this).attr(o.attribute || 'id') || ''); });+ return ret;++ },++ /* Be careful with the following core functions */+ _intersectsWith: function(item) {++ var x1 = this.positionAbs.left,+ x2 = x1 + this.helperProportions.width,+ y1 = this.positionAbs.top,+ y2 = y1 + this.helperProportions.height;++ var l = item.left,+ r = l + item.width,+ t = item.top,+ b = t + item.height;++ var dyClick = this.offset.click.top,+ dxClick = this.offset.click.left;++ var isOverElement = (y1 + dyClick) > t && (y1 + dyClick) < b && (x1 + dxClick) > l && (x1 + dxClick) < r;++ if( this.options.tolerance == "pointer"+ || this.options.forcePointerForContainers+ || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])+ ) {+ return isOverElement;+ } else {++ return (l < x1 + (this.helperProportions.width / 2) // Right Half+ && x2 - (this.helperProportions.width / 2) < r // Left Half+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half+ && y2 - (this.helperProportions.height / 2) < b ); // Top Half++ }+ },++ _intersectsWithPointer: function(item) {++ var isOverElementHeight = (this.options.axis === 'x') || $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top, item.height),+ isOverElementWidth = (this.options.axis === 'y') || $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left, item.width),+ isOverElement = isOverElementHeight && isOverElementWidth,+ verticalDirection = this._getDragVerticalDirection(),+ horizontalDirection = this._getDragHorizontalDirection();++ if (!isOverElement)+ return false;++ return this.floating ?+ ( ((horizontalDirection && horizontalDirection == "right") || verticalDirection == "down") ? 2 : 1 )+ : ( verticalDirection && (verticalDirection == "down" ? 2 : 1) );++ },++ _intersectsWithSides: function(item) {++ var isOverBottomHalf = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height),+ isOverRightHalf = $.ui.isOverAxis(this.positionAbs.left + this.offset.click.left, item.left + (item.width/2), item.width),+ verticalDirection = this._getDragVerticalDirection(),+ horizontalDirection = this._getDragHorizontalDirection();++ if (this.floating && horizontalDirection) {+ return ((horizontalDirection == "right" && isOverRightHalf) || (horizontalDirection == "left" && !isOverRightHalf));+ } else {+ return verticalDirection && ((verticalDirection == "down" && isOverBottomHalf) || (verticalDirection == "up" && !isOverBottomHalf));+ }++ },++ _getDragVerticalDirection: function() {+ var delta = this.positionAbs.top - this.lastPositionAbs.top;+ return delta != 0 && (delta > 0 ? "down" : "up");+ },++ _getDragHorizontalDirection: function() {+ var delta = this.positionAbs.left - this.lastPositionAbs.left;+ return delta != 0 && (delta > 0 ? "right" : "left");+ },++ refresh: function(event) {+ this._refreshItems(event);+ this.refreshPositions();+ return this;+ },++ _connectWith: function() {+ var options = this.options;+ return options.connectWith.constructor == String+ ? [options.connectWith]+ : options.connectWith;+ },++ _getItemsAsjQuery: function(connected) {++ var items = [];+ var queries = [];+ var connectWith = this._connectWith();++ if(connectWith && connected) {+ for (var i = connectWith.length - 1; i >= 0; i--){+ var cur = $(connectWith[i]);+ for (var j = cur.length - 1; j >= 0; j--){+ var inst = $.data(cur[j], this.widgetName);+ if(inst && inst != this && !inst.options.disabled) {+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'), inst]);+ }+ };+ };+ }++ queries.push([$.isFunction(this.options.items) ? this.options.items.call(this.element, null, { options: this.options, item: this.currentItem }) : $(this.options.items, this.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'), this]);++ for (var i = queries.length - 1; i >= 0; i--){+ queries[i][0].each(function() {+ items.push(this);+ });+ };++ return $(items);++ },++ _removeCurrentsFromItems: function() {++ var list = this.currentItem.find(":data(" + this.widgetName + "-item)");++ this.items = $.grep(this.items, function (item) {+ for (var j=0; j < list.length; j++) {+ if(list[j] == item.item[0])+ return false;+ };+ return true;+ });++ },++ _refreshItems: function(event) {++ this.items = [];+ this.containers = [this];+ var items = this.items;+ var queries = [[$.isFunction(this.options.items) ? this.options.items.call(this.element[0], event, { item: this.currentItem }) : $(this.options.items, this.element), this]];+ var connectWith = this._connectWith();++ if(connectWith && this.ready) { //Shouldn't be run the first time through due to massive slow-down+ for (var i = connectWith.length - 1; i >= 0; i--){+ var cur = $(connectWith[i]);+ for (var j = cur.length - 1; j >= 0; j--){+ var inst = $.data(cur[j], this.widgetName);+ if(inst && inst != this && !inst.options.disabled) {+ queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]);+ this.containers.push(inst);+ }+ };+ };+ }++ for (var i = queries.length - 1; i >= 0; i--) {+ var targetData = queries[i][1];+ var _queries = queries[i][0];++ for (var j=0, queriesLength = _queries.length; j < queriesLength; j++) {+ var item = $(_queries[j]);++ item.data(this.widgetName + '-item', targetData); // Data for target checking (mouse manager)++ items.push({+ item: item,+ instance: targetData,+ width: 0, height: 0,+ left: 0, top: 0+ });+ };+ };++ },++ refreshPositions: function(fast) {++ //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change+ if(this.offsetParent && this.helper) {+ this.offset.parent = this._getParentOffset();+ }++ for (var i = this.items.length - 1; i >= 0; i--){+ var item = this.items[i];++ //We ignore calculating positions of all connected containers when we're not over them+ if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0])+ continue;++ var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;++ if (!fast) {+ item.width = t.outerWidth();+ item.height = t.outerHeight();+ }++ var p = t.offset();+ item.left = p.left;+ item.top = p.top;+ };++ if(this.options.custom && this.options.custom.refreshContainers) {+ this.options.custom.refreshContainers.call(this);+ } else {+ for (var i = this.containers.length - 1; i >= 0; i--){+ var p = this.containers[i].element.offset();+ this.containers[i].containerCache.left = p.left;+ this.containers[i].containerCache.top = p.top;+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();+ this.containers[i].containerCache.height = this.containers[i].element.outerHeight();+ };+ }++ return this;+ },++ _createPlaceholder: function(that) {+ that = that || this;+ var o = that.options;++ if(!o.placeholder || o.placeholder.constructor == String) {+ var className = o.placeholder;+ o.placeholder = {+ element: function() {++ var el = $(document.createElement(that.currentItem[0].nodeName))+ .addClass(className || that.currentItem[0].className+" ui-sortable-placeholder")+ .removeClass("ui-sortable-helper")[0];++ if(!className)+ el.style.visibility = "hidden";++ return el;+ },+ update: function(container, p) {++ // 1. If a className is set as 'placeholder option, we don't force sizes - the class is responsible for that+ // 2. The option 'forcePlaceholderSize can be enabled to force it even if a class name is specified+ if(className && !o.forcePlaceholderSize) return;++ //If the element doesn't have a actual height by itself (without styles coming from a stylesheet), it receives the inline height from the dragged item+ if(!p.height()) { p.height(that.currentItem.innerHeight() - parseInt(that.currentItem.css('paddingTop')||0, 10) - parseInt(that.currentItem.css('paddingBottom')||0, 10)); };+ if(!p.width()) { p.width(that.currentItem.innerWidth() - parseInt(that.currentItem.css('paddingLeft')||0, 10) - parseInt(that.currentItem.css('paddingRight')||0, 10)); };+ }+ };+ }++ //Create the placeholder+ that.placeholder = $(o.placeholder.element.call(that.element, that.currentItem));++ //Append it after the actual current item+ that.currentItem.after(that.placeholder);++ //Update the size of the placeholder (TODO: Logic to fuzzy, see line 316/317)+ o.placeholder.update(that, that.placeholder);++ },++ _contactContainers: function(event) {++ // get innermost container that intersects with item+ var innermostContainer = null, innermostIndex = null;+++ for (var i = this.containers.length - 1; i >= 0; i--){++ // never consider a container that's located within the item itself+ if($.contains(this.currentItem[0], this.containers[i].element[0]))+ continue;++ if(this._intersectsWith(this.containers[i].containerCache)) {++ // if we've already found a container and it's more "inner" than this, then continue+ if(innermostContainer && $.contains(this.containers[i].element[0], innermostContainer.element[0]))+ continue;++ innermostContainer = this.containers[i];+ innermostIndex = i;++ } else {+ // container doesn't intersect. trigger "out" event if necessary+ if(this.containers[i].containerCache.over) {+ this.containers[i]._trigger("out", event, this._uiHash(this));+ this.containers[i].containerCache.over = 0;+ }+ }++ }++ // if no intersecting containers found, return+ if(!innermostContainer) return;++ // move the item into the container if it's not there already+ if(this.containers.length === 1) {+ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));+ this.containers[innermostIndex].containerCache.over = 1;+ } else {++ //When entering a new container, we will find the item with the least distance and append our item near it+ var dist = 10000; var itemWithLeastDistance = null;+ var posProperty = this.containers[innermostIndex].floating ? 'left' : 'top';+ var sizeProperty = this.containers[innermostIndex].floating ? 'width' : 'height';+ var base = this.positionAbs[posProperty] + this.offset.click[posProperty];+ for (var j = this.items.length - 1; j >= 0; j--) {+ if(!$.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) continue;+ if(this.items[j].item[0] == this.currentItem[0]) continue;+ var cur = this.items[j].item.offset()[posProperty];+ var nearBottom = false;+ if(Math.abs(cur - base) > Math.abs(cur + this.items[j][sizeProperty] - base)){+ nearBottom = true;+ cur += this.items[j][sizeProperty];+ }++ if(Math.abs(cur - base) < dist) {+ dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];+ this.direction = nearBottom ? "up": "down";+ }+ }++ if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled+ return;++ this.currentContainer = this.containers[innermostIndex];+ itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);+ this._trigger("change", event, this._uiHash());+ this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));++ //Update the placeholder+ this.options.placeholder.update(this.currentContainer, this.placeholder);++ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));+ this.containers[innermostIndex].containerCache.over = 1;+ }+++ },++ _createHelper: function(event) {++ var o = this.options;+ var helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [event, this.currentItem])) : (o.helper == 'clone' ? this.currentItem.clone() : this.currentItem);++ if(!helper.parents('body').length) //Add the helper to the DOM if that didn't happen already+ $(o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)[0].appendChild(helper[0]);++ if(helper[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(helper[0].style.width == '' || o.forceHelperSize) helper.width(this.currentItem.width());+ if(helper[0].style.height == '' || o.forceHelperSize) helper.height(this.currentItem.height());++ return helper;++ },++ _adjustOffsetFromHelper: function(obj) {+ if (typeof obj == 'string') {+ obj = obj.split(' ');+ }+ if ($.isArray(obj)) {+ obj = {left: +obj[0], top: +obj[1] || 0};+ }+ if ('left' in obj) {+ this.offset.click.left = obj.left + this.margins.left;+ }+ if ('right' in obj) {+ this.offset.click.left = this.helperProportions.width - obj.right + this.margins.left;+ }+ if ('top' in obj) {+ this.offset.click.top = obj.top + this.margins.top;+ }+ if ('bottom' in obj) {+ this.offset.click.top = this.helperProportions.height - obj.bottom + this.margins.top;+ }+ },++ _getParentOffset: function() {+++ //Get the offsetParent and cache its position+ this.offsetParent = this.helper.offsetParent();+ var po = this.offsetParent.offset();++ // This is a special case where we need to modify a offset calculated on start, since the following happened:+ // 1. The position of the helper is absolute, so it's position is calculated based on the next positioned parent+ // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that+ // the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag+ if(this.cssPosition == 'absolute' && this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) {+ po.left += this.scrollParent.scrollLeft();+ po.top += this.scrollParent.scrollTop();+ }++ if((this.offsetParent[0] == document.body) //This needs to be actually done for all browsers, since pageX/pageY includes this information+ || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() == 'html' && $.ui.ie)) //Ugly IE fix+ po = { top: 0, left: 0 };++ return {+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)+ };++ },++ _getRelativeOffset: function() {++ if(this.cssPosition == "relative") {+ var p = this.currentItem.position();+ return {+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.scrollParent.scrollTop(),+ left: p.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 o = this.options;+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;+ if(o.containment == 'document' || o.containment == 'window') this.containment = [+ 0 - this.offset.relative.left - this.offset.parent.left,+ 0 - this.offset.relative.top - this.offset.parent.top,+ $(o.containment == 'document' ? document : window).width() - this.helperProportions.width - this.margins.left,+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top+ ];++ if(!(/^(document|window|parent)$/).test(o.containment)) {+ var ce = $(o.containment)[0];+ var co = $(o.containment).offset();+ var over = ($(ce).css("overflow") != 'hidden');++ this.containment = [+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) + (parseInt($(ce).css("paddingLeft"),10) || 0) - this.margins.left,+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) + (parseInt($(ce).css("paddingTop"),10) || 0) - this.margins.top,+ co.left+(over ? Math.max(ce.scrollWidth,ce.offsetWidth) : ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - (parseInt($(ce).css("paddingRight"),10) || 0) - this.helperProportions.width - this.margins.left,+ co.top+(over ? Math.max(ce.scrollHeight,ce.offsetHeight) : ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - (parseInt($(ce).css("paddingBottom"),10) || 0) - this.helperProportions.height - this.margins.top+ ];+ }++ },++ _convertPositionTo: function(d, pos) {++ if(!pos) pos = this.position;+ var mod = d == "absolute" ? 1 : -1;+ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);++ return {+ top: (+ pos.top // The absolute mouse position+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)+ - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ) * mod)+ ),+ left: (+ pos.left // The absolute mouse position+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)+ - ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ) * mod)+ )+ };++ },++ _generatePosition: function(event) {++ var o = this.options, scroll = this.cssPosition == 'absolute' && !(this.scrollParent[0] != document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName);++ // This is another very weird special case that only happens for relative elements:+ // 1. If the css position is relative+ // 2. and the scroll parent is the document or similar to the offset parent+ // we have to refresh the relative offset during the scroll so there are no jumps+ if(this.cssPosition == 'relative' && !(this.scrollParent[0] != document && this.scrollParent[0] != this.offsetParent[0])) {+ this.offset.relative = this._getRelativeOffset();+ }++ var pageX = event.pageX;+ var pageY = event.pageY;++ /*+ * - Position constraining -+ * Constrain the position to a mix of grid, containment.+ */++ if(this.originalPosition) { //If we are not dragging yet, we won't check for options++ if(this.containment) {+ if(event.pageX - this.offset.click.left < this.containment[0]) pageX = this.containment[0] + this.offset.click.left;+ if(event.pageY - this.offset.click.top < this.containment[1]) pageY = this.containment[1] + this.offset.click.top;+ if(event.pageX - this.offset.click.left > this.containment[2]) pageX = this.containment[2] + this.offset.click.left;+ if(event.pageY - this.offset.click.top > this.containment[3]) pageY = this.containment[3] + this.offset.click.top;+ }++ if(o.grid) {+ var top = this.originalPageY + Math.round((pageY - this.originalPageY) / o.grid[1]) * o.grid[1];+ pageY = this.containment ? (!(top - this.offset.click.top < this.containment[1] || top - this.offset.click.top > this.containment[3]) ? top : (!(top - this.offset.click.top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;++ var left = this.originalPageX + Math.round((pageX - this.originalPageX) / o.grid[0]) * o.grid[0];+ pageX = this.containment ? (!(left - this.offset.click.left < this.containment[0] || left - this.offset.click.left > this.containment[2]) ? left : (!(left - this.offset.click.left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;+ }++ }++ return {+ top: (+ pageY // The absolute mouse position+ - this.offset.click.top // Click offset (relative to the element)+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)+ + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollTop() : ( scrollIsRootNode ? 0 : scroll.scrollTop() ) ))+ ),+ left: (+ pageX // The absolute mouse position+ - this.offset.click.left // Click offset (relative to the element)+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)+ + ( ( this.cssPosition == 'fixed' ? -this.scrollParent.scrollLeft() : scrollIsRootNode ? 0 : scroll.scrollLeft() ))+ )+ };++ },++ _rearrange: function(event, i, a, hardRefresh) {++ a ? a[0].appendChild(this.placeholder[0]) : i.item[0].parentNode.insertBefore(this.placeholder[0], (this.direction == 'down' ? i.item[0] : i.item[0].nextSibling));++ //Various things done here to improve the performance:+ // 1. we create a setTimeout, that calls refreshPositions+ // 2. on the instance, we have a counter variable, that get's higher after every append+ // 3. on the local scope, we copy the counter variable, and check in the timeout, if it's still the same+ // 4. this lets only the last addition to the timeout stack through+ this.counter = this.counter ? ++this.counter : 1;+ var counter = this.counter;++ this._delay(function() {+ if(counter == this.counter) this.refreshPositions(!hardRefresh); //Precompute after each DOM insertion, NOT on mousemove+ });++ },++ _clear: function(event, noPropagation) {++ this.reverting = false;+ // We delay all events that have to be triggered to after the point where the placeholder has been removed and+ // everything else normalized again+ var delayedTriggers = [];++ // We first have to update the dom position of the actual currentItem+ // Note: don't do it if the current item is already removed (by a user), or it gets reappended (see #4088)+ if(!this._noFinalSort && this.currentItem.parent().length) this.placeholder.before(this.currentItem);+ this._noFinalSort = null;++ if(this.helper[0] == this.currentItem[0]) {+ for(var i in this._storedCSS) {+ if(this._storedCSS[i] == 'auto' || this._storedCSS[i] == 'static') this._storedCSS[i] = '';+ }+ this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");+ } else {+ this.currentItem.show();+ }++ if(this.fromOutside && !noPropagation) delayedTriggers.push(function(event) { this._trigger("receive", event, 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]) && !noPropagation) delayedTriggers.push(function(event) { this._trigger("update", event, this._uiHash()); }); //Trigger update callback if the DOM position has changed++ // Check if the items Container has Changed and trigger appropriate+ // events.+ if (this !== this.currentContainer) {+ if(!noPropagation) {+ delayedTriggers.push(function(event) { this._trigger("remove", event, this._uiHash()); });+ delayedTriggers.push((function(c) { return function(event) { c._trigger("receive", event, this._uiHash(this)); }; }).call(this, this.currentContainer));+ delayedTriggers.push((function(c) { return function(event) { c._trigger("update", event, this._uiHash(this)); }; }).call(this, this.currentContainer));+ }+ }+++ //Post events to containers+ for (var i = this.containers.length - 1; i >= 0; i--){+ if(!noPropagation) delayedTriggers.push((function(c) { return function(event) { c._trigger("deactivate", event, this._uiHash(this)); }; }).call(this, this.containers[i]));+ if(this.containers[i].containerCache.over) {+ delayedTriggers.push((function(c) { return function(event) { c._trigger("out", event, this._uiHash(this)); }; }).call(this, this.containers[i]));+ this.containers[i].containerCache.over = 0;+ }+ }++ //Do what was originally in plugins+ if(this._storedCursor) $('body').css("cursor", this._storedCursor); //Reset cursor+ if(this._storedOpacity) this.helper.css("opacity", this._storedOpacity); //Reset opacity+ if(this._storedZIndex) this.helper.css("zIndex", this._storedZIndex == 'auto' ? '' : this._storedZIndex); //Reset z-index++ this.dragging = false;+ if(this.cancelHelperRemoval) {+ if(!noPropagation) {+ this._trigger("beforeStop", event, this._uiHash());+ for (var i=0; i < delayedTriggers.length; i++) { delayedTriggers[i].call(this, event); }; //Trigger all delayed events+ this._trigger("stop", event, this._uiHash());+ }++ this.fromOutside = false;+ return false;+ }++ if(!noPropagation) this._trigger("beforeStop", event, this._uiHash());++ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!+ this.placeholder[0].parentNode.removeChild(this.placeholder[0]);++ if(this.helper[0] != this.currentItem[0]) this.helper.remove(); this.helper = null;++ if(!noPropagation) {+ for (var i=0; i < delayedTriggers.length; i++) { delayedTriggers[i].call(this, event); }; //Trigger all delayed events+ this._trigger("stop", event, this._uiHash());+ }++ this.fromOutside = false;+ return true;++ },++ _trigger: function() {+ if ($.Widget.prototype._trigger.apply(this, arguments) === false) {+ this.cancel();+ }+ },++ _uiHash: function(_inst) {+ var inst = _inst || this;+ return {+ helper: inst.helper,+ placeholder: inst.placeholder || $([]),+ position: inst.position,+ originalPosition: inst.originalPosition,+ offset: inst.positionAbs,+ item: inst.currentItem,+ sender: _inst ? _inst.element : null+ };+ }++});++})(jQuery);+(function( $ ) {++function modifier( fn ) {+ return function() {+ var previous = this.element.val();+ fn.apply( this, arguments );+ this._refresh();+ if ( previous !== this.element.val() ) {+ this._trigger( "change" );+ }+ };+}++$.widget( "ui.spinner", {+ version: "1.9.2",+ defaultElement: "<input>",+ widgetEventPrefix: "spin",+ options: {+ culture: null,+ icons: {+ down: "ui-icon-triangle-1-s",+ up: "ui-icon-triangle-1-n"+ },+ incremental: true,+ max: null,+ min: null,+ numberFormat: null,+ page: 10,+ step: 1,++ change: null,+ spin: null,+ start: null,+ stop: null+ },++ _create: function() {+ // handle string values that need to be parsed+ this._setOption( "max", this.options.max );+ this._setOption( "min", this.options.min );+ this._setOption( "step", this.options.step );++ // format the value, but don't constrain+ this._value( this.element.val(), true );++ this._draw();+ this._on( this._events );+ this._refresh();++ // turning off autocomplete prevents the browser from remembering the+ // value when navigating through history, so we re-enable autocomplete+ // if the page is unloaded before the widget is destroyed. #7790+ this._on( this.window, {+ beforeunload: function() {+ this.element.removeAttr( "autocomplete" );+ }+ });+ },++ _getCreateOptions: function() {+ var options = {},+ element = this.element;++ $.each( [ "min", "max", "step" ], function( i, option ) {+ var value = element.attr( option );+ if ( value !== undefined && value.length ) {+ options[ option ] = value;+ }+ });++ return options;+ },++ _events: {+ keydown: function( event ) {+ if ( this._start( event ) && this._keydown( event ) ) {+ event.preventDefault();+ }+ },+ keyup: "_stop",+ focus: function() {+ this.previous = this.element.val();+ },+ blur: function( event ) {+ if ( this.cancelBlur ) {+ delete this.cancelBlur;+ return;+ }++ this._refresh();+ if ( this.previous !== this.element.val() ) {+ this._trigger( "change", event );+ }+ },+ mousewheel: function( event, delta ) {+ if ( !delta ) {+ return;+ }+ if ( !this.spinning && !this._start( event ) ) {+ return false;+ }++ this._spin( (delta > 0 ? 1 : -1) * this.options.step, event );+ clearTimeout( this.mousewheelTimer );+ this.mousewheelTimer = this._delay(function() {+ if ( this.spinning ) {+ this._stop( event );+ }+ }, 100 );+ event.preventDefault();+ },+ "mousedown .ui-spinner-button": function( event ) {+ var previous;++ // We never want the buttons to have focus; whenever the user is+ // interacting with the spinner, the focus should be on the input.+ // If the input is focused then this.previous is properly set from+ // when the input first received focus. If the input is not focused+ // then we need to set this.previous based on the value before spinning.+ previous = this.element[0] === this.document[0].activeElement ?+ this.previous : this.element.val();+ function checkFocus() {+ var isActive = this.element[0] === this.document[0].activeElement;+ if ( !isActive ) {+ this.element.focus();+ this.previous = previous;+ // support: IE+ // IE sets focus asynchronously, so we need to check if focus+ // moved off of the input because the user clicked on the button.+ this._delay(function() {+ this.previous = previous;+ });+ }+ }++ // ensure focus is on (or stays on) the text field+ event.preventDefault();+ checkFocus.call( this );++ // support: IE+ // IE doesn't prevent moving focus even with event.preventDefault()+ // so we set a flag to know when we should ignore the blur event+ // and check (again) if focus moved off of the input.+ this.cancelBlur = true;+ this._delay(function() {+ delete this.cancelBlur;+ checkFocus.call( this );+ });++ if ( this._start( event ) === false ) {+ return;+ }++ this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event );+ },+ "mouseup .ui-spinner-button": "_stop",+ "mouseenter .ui-spinner-button": function( event ) {+ // button will add ui-state-active if mouse was down while mouseleave and kept down+ if ( !$( event.currentTarget ).hasClass( "ui-state-active" ) ) {+ return;+ }++ if ( this._start( event ) === false ) {+ return false;+ }+ this._repeat( null, $( event.currentTarget ).hasClass( "ui-spinner-up" ) ? 1 : -1, event );+ },+ // TODO: do we really want to consider this a stop?+ // shouldn't we just stop the repeater and wait until mouseup before+ // we trigger the stop event?+ "mouseleave .ui-spinner-button": "_stop"+ },++ _draw: function() {+ var uiSpinner = this.uiSpinner = this.element+ .addClass( "ui-spinner-input" )+ .attr( "autocomplete", "off" )+ .wrap( this._uiSpinnerHtml() )+ .parent()+ // add buttons+ .append( this._buttonHtml() );++ this.element.attr( "role", "spinbutton" );++ // button bindings+ this.buttons = uiSpinner.find( ".ui-spinner-button" )+ .attr( "tabIndex", -1 )+ .button()+ .removeClass( "ui-corner-all" );++ // IE 6 doesn't understand height: 50% for the buttons+ // unless the wrapper has an explicit height+ if ( this.buttons.height() > Math.ceil( uiSpinner.height() * 0.5 ) &&+ uiSpinner.height() > 0 ) {+ uiSpinner.height( uiSpinner.height() );+ }++ // disable spinner if element was already disabled+ if ( this.options.disabled ) {+ this.disable();+ }+ },++ _keydown: function( event ) {+ var options = this.options,+ keyCode = $.ui.keyCode;++ switch ( event.keyCode ) {+ case keyCode.UP:+ this._repeat( null, 1, event );+ return true;+ case keyCode.DOWN:+ this._repeat( null, -1, event );+ return true;+ case keyCode.PAGE_UP:+ this._repeat( null, options.page, event );+ return true;+ case keyCode.PAGE_DOWN:+ this._repeat( null, -options.page, event );+ return true;+ }++ return false;+ },++ _uiSpinnerHtml: function() {+ return "<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>";+ },++ _buttonHtml: function() {+ return "" ++ "<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>" ++ "<span class='ui-icon " + this.options.icons.up + "'>▲</span>" ++ "</a>" ++ "<a class='ui-spinner-button ui-spinner-down ui-corner-br'>" ++ "<span class='ui-icon " + this.options.icons.down + "'>▼</span>" ++ "</a>";+ },++ _start: function( event ) {+ if ( !this.spinning && this._trigger( "start", event ) === false ) {+ return false;+ }++ if ( !this.counter ) {+ this.counter = 1;+ }+ this.spinning = true;+ return true;+ },++ _repeat: function( i, steps, event ) {+ i = i || 500;++ clearTimeout( this.timer );+ this.timer = this._delay(function() {+ this._repeat( 40, steps, event );+ }, i );++ this._spin( steps * this.options.step, event );+ },++ _spin: function( step, event ) {+ var value = this.value() || 0;++ if ( !this.counter ) {+ this.counter = 1;+ }++ value = this._adjustValue( value + step * this._increment( this.counter ) );++ if ( !this.spinning || this._trigger( "spin", event, { value: value } ) !== false) {+ this._value( value );+ this.counter++;+ }+ },++ _increment: function( i ) {+ var incremental = this.options.incremental;++ if ( incremental ) {+ return $.isFunction( incremental ) ?+ incremental( i ) :+ Math.floor( i*i*i/50000 - i*i/500 + 17*i/200 + 1 );+ }++ return 1;+ },++ _precision: function() {+ var precision = this._precisionOf( this.options.step );+ if ( this.options.min !== null ) {+ precision = Math.max( precision, this._precisionOf( this.options.min ) );+ }+ return precision;+ },++ _precisionOf: function( num ) {+ var str = num.toString(),+ decimal = str.indexOf( "." );+ return decimal === -1 ? 0 : str.length - decimal - 1;+ },++ _adjustValue: function( value ) {+ var base, aboveMin,+ options = this.options;++ // make sure we're at a valid step+ // - find out where we are relative to the base (min or 0)+ base = options.min !== null ? options.min : 0;+ aboveMin = value - base;+ // - round to the nearest step+ aboveMin = Math.round(aboveMin / options.step) * options.step;+ // - rounding is based on 0, so adjust back to our base+ value = base + aboveMin;++ // fix precision from bad JS floating point math+ value = parseFloat( value.toFixed( this._precision() ) );++ // clamp the value+ if ( options.max !== null && value > options.max) {+ return options.max;+ }+ if ( options.min !== null && value < options.min ) {+ return options.min;+ }++ return value;+ },++ _stop: function( event ) {+ if ( !this.spinning ) {+ return;+ }++ clearTimeout( this.timer );+ clearTimeout( this.mousewheelTimer );+ this.counter = 0;+ this.spinning = false;+ this._trigger( "stop", event );+ },++ _setOption: function( key, value ) {+ if ( key === "culture" || key === "numberFormat" ) {+ var prevValue = this._parse( this.element.val() );+ this.options[ key ] = value;+ this.element.val( this._format( prevValue ) );+ return;+ }++ if ( key === "max" || key === "min" || key === "step" ) {+ if ( typeof value === "string" ) {+ value = this._parse( value );+ }+ }++ this._super( key, value );++ if ( key === "disabled" ) {+ if ( value ) {+ this.element.prop( "disabled", true );+ this.buttons.button( "disable" );+ } else {+ this.element.prop( "disabled", false );+ this.buttons.button( "enable" );+ }+ }+ },++ _setOptions: modifier(function( options ) {+ this._super( options );+ this._value( this.element.val() );+ }),++ _parse: function( val ) {+ if ( typeof val === "string" && val !== "" ) {+ val = window.Globalize && this.options.numberFormat ?+ Globalize.parseFloat( val, 10, this.options.culture ) : +val;+ }+ return val === "" || isNaN( val ) ? null : val;+ },++ _format: function( value ) {+ if ( value === "" ) {+ return "";+ }+ return window.Globalize && this.options.numberFormat ?+ Globalize.format( value, this.options.numberFormat, this.options.culture ) :+ value;+ },++ _refresh: function() {+ this.element.attr({+ "aria-valuemin": this.options.min,+ "aria-valuemax": this.options.max,+ // TODO: what should we do with values that can't be parsed?+ "aria-valuenow": this._parse( this.element.val() )+ });+ },++ // update the value without triggering change+ _value: function( value, allowAny ) {+ var parsed;+ if ( value !== "" ) {+ parsed = this._parse( value );+ if ( parsed !== null ) {+ if ( !allowAny ) {+ parsed = this._adjustValue( parsed );+ }+ value = this._format( parsed );+ }+ }+ this.element.val( value );+ this._refresh();+ },++ _destroy: function() {+ this.element+ .removeClass( "ui-spinner-input" )+ .prop( "disabled", false )+ .removeAttr( "autocomplete" )+ .removeAttr( "role" )+ .removeAttr( "aria-valuemin" )+ .removeAttr( "aria-valuemax" )+ .removeAttr( "aria-valuenow" );+ this.uiSpinner.replaceWith( this.element );+ },++ stepUp: modifier(function( steps ) {+ this._stepUp( steps );+ }),+ _stepUp: function( steps ) {+ this._spin( (steps || 1) * this.options.step );+ },++ stepDown: modifier(function( steps ) {+ this._stepDown( steps );+ }),+ _stepDown: function( steps ) {+ this._spin( (steps || 1) * -this.options.step );+ },++ pageUp: modifier(function( pages ) {+ this._stepUp( (pages || 1) * this.options.page );+ }),++ pageDown: modifier(function( pages ) {+ this._stepDown( (pages || 1) * this.options.page );+ }),++ value: function( newVal ) {+ if ( !arguments.length ) {+ return this._parse( this.element.val() );+ }+ modifier( this._value ).call( this, newVal );+ },++ widget: function() {+ return this.uiSpinner;+ }+});++}( jQuery ) );+(function( $, undefined ) {++var tabId = 0,+ rhash = /#.*$/;++function getNextTabId() {+ return ++tabId;+}++function isLocal( anchor ) {+ return anchor.hash.length > 1 &&+ anchor.href.replace( rhash, "" ) ===+ location.href.replace( rhash, "" )+ // support: Safari 5.1+ // Safari 5.1 doesn't encode spaces in window.location+ // but it does encode spaces from anchors (#8777)+ .replace( /\s/g, "%20" );+}++$.widget( "ui.tabs", {+ version: "1.9.2",+ delay: 300,+ options: {+ active: null,+ collapsible: false,+ event: "click",+ heightStyle: "content",+ hide: null,+ show: null,++ // callbacks+ activate: null,+ beforeActivate: null,+ beforeLoad: null,+ load: null+ },++ _create: function() {+ var that = this,+ options = this.options,+ active = options.active,+ locationHash = location.hash.substring( 1 );++ this.running = false;++ this.element+ .addClass( "ui-tabs ui-widget ui-widget-content ui-corner-all" )+ .toggleClass( "ui-tabs-collapsible", options.collapsible )+ // Prevent users from focusing disabled tabs via click+ .delegate( ".ui-tabs-nav > li", "mousedown" + this.eventNamespace, function( event ) {+ if ( $( this ).is( ".ui-state-disabled" ) ) {+ event.preventDefault();+ }+ })+ // support: IE <9+ // Preventing the default action in mousedown doesn't prevent IE+ // from focusing the element, so if the anchor gets focused, blur.+ // We don't have to worry about focusing the previously focused+ // element since clicking on a non-focusable element should focus+ // the body anyway.+ .delegate( ".ui-tabs-anchor", "focus" + this.eventNamespace, function() {+ if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) {+ this.blur();+ }+ });++ this._processTabs();++ if ( active === null ) {+ // check the fragment identifier in the URL+ if ( locationHash ) {+ this.tabs.each(function( i, tab ) {+ if ( $( tab ).attr( "aria-controls" ) === locationHash ) {+ active = i;+ return false;+ }+ });+ }++ // check for a tab marked active via a class+ if ( active === null ) {+ active = this.tabs.index( this.tabs.filter( ".ui-tabs-active" ) );+ }++ // no active tab, set to false+ if ( active === null || active === -1 ) {+ active = this.tabs.length ? 0 : false;+ }+ }++ // handle numbers: negative, out of range+ if ( active !== false ) {+ active = this.tabs.index( this.tabs.eq( active ) );+ if ( active === -1 ) {+ active = options.collapsible ? false : 0;+ }+ }+ options.active = active;++ // don't allow collapsible: false and active: false+ if ( !options.collapsible && options.active === false && this.anchors.length ) {+ options.active = 0;+ }++ // Take disabling tabs via class attribute from HTML+ // into account and update option properly.+ if ( $.isArray( options.disabled ) ) {+ options.disabled = $.unique( options.disabled.concat(+ $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) {+ return that.tabs.index( li );+ })+ ) ).sort();+ }++ // check for length avoids error when initializing empty list+ if ( this.options.active !== false && this.anchors.length ) {+ this.active = this._findActive( this.options.active );+ } else {+ this.active = $();+ }++ this._refresh();++ if ( this.active.length ) {+ this.load( options.active );+ }+ },++ _getCreateEventData: function() {+ return {+ tab: this.active,+ panel: !this.active.length ? $() : this._getPanelForTab( this.active )+ };+ },++ _tabKeydown: function( event ) {+ var focusedTab = $( this.document[0].activeElement ).closest( "li" ),+ selectedIndex = this.tabs.index( focusedTab ),+ goingForward = true;++ if ( this._handlePageNav( event ) ) {+ return;+ }++ switch ( event.keyCode ) {+ case $.ui.keyCode.RIGHT:+ case $.ui.keyCode.DOWN:+ selectedIndex++;+ break;+ case $.ui.keyCode.UP:+ case $.ui.keyCode.LEFT:+ goingForward = false;+ selectedIndex--;+ break;+ case $.ui.keyCode.END:+ selectedIndex = this.anchors.length - 1;+ break;+ case $.ui.keyCode.HOME:+ selectedIndex = 0;+ break;+ case $.ui.keyCode.SPACE:+ // Activate only, no collapsing+ event.preventDefault();+ clearTimeout( this.activating );+ this._activate( selectedIndex );+ return;+ case $.ui.keyCode.ENTER:+ // Toggle (cancel delayed activation, allow collapsing)+ event.preventDefault();+ clearTimeout( this.activating );+ // Determine if we should collapse or activate+ this._activate( selectedIndex === this.options.active ? false : selectedIndex );+ return;+ default:+ return;+ }++ // Focus the appropriate tab, based on which key was pressed+ event.preventDefault();+ clearTimeout( this.activating );+ selectedIndex = this._focusNextTab( selectedIndex, goingForward );++ // Navigating with control key will prevent automatic activation+ if ( !event.ctrlKey ) {+ // Update aria-selected immediately so that AT think the tab is already selected.+ // Otherwise AT may confuse the user by stating that they need to activate the tab,+ // but the tab will already be activated by the time the announcement finishes.+ focusedTab.attr( "aria-selected", "false" );+ this.tabs.eq( selectedIndex ).attr( "aria-selected", "true" );++ this.activating = this._delay(function() {+ this.option( "active", selectedIndex );+ }, this.delay );+ }+ },++ _panelKeydown: function( event ) {+ if ( this._handlePageNav( event ) ) {+ return;+ }++ // Ctrl+up moves focus to the current tab+ if ( event.ctrlKey && event.keyCode === $.ui.keyCode.UP ) {+ event.preventDefault();+ this.active.focus();+ }+ },++ // Alt+page up/down moves focus to the previous/next tab (and activates)+ _handlePageNav: function( event ) {+ if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_UP ) {+ this._activate( this._focusNextTab( this.options.active - 1, false ) );+ return true;+ }+ if ( event.altKey && event.keyCode === $.ui.keyCode.PAGE_DOWN ) {+ this._activate( this._focusNextTab( this.options.active + 1, true ) );+ return true;+ }+ },++ _findNextTab: function( index, goingForward ) {+ var lastTabIndex = this.tabs.length - 1;++ function constrain() {+ if ( index > lastTabIndex ) {+ index = 0;+ }+ if ( index < 0 ) {+ index = lastTabIndex;+ }+ return index;+ }++ while ( $.inArray( constrain(), this.options.disabled ) !== -1 ) {+ index = goingForward ? index + 1 : index - 1;+ }++ return index;+ },++ _focusNextTab: function( index, goingForward ) {+ index = this._findNextTab( index, goingForward );+ this.tabs.eq( index ).focus();+ return index;+ },++ _setOption: function( key, value ) {+ if ( key === "active" ) {+ // _activate() will handle invalid values and update this.options+ this._activate( value );+ return;+ }++ if ( key === "disabled" ) {+ // don't use the widget factory's disabled handling+ this._setupDisabled( value );+ return;+ }++ this._super( key, value);++ if ( key === "collapsible" ) {+ this.element.toggleClass( "ui-tabs-collapsible", value );+ // Setting collapsible: false while collapsed; open first panel+ if ( !value && this.options.active === false ) {+ this._activate( 0 );+ }+ }++ if ( key === "event" ) {+ this._setupEvents( value );+ }++ if ( key === "heightStyle" ) {+ this._setupHeightStyle( value );+ }+ },++ _tabId: function( tab ) {+ return tab.attr( "aria-controls" ) || "ui-tabs-" + getNextTabId();+ },++ _sanitizeSelector: function( hash ) {+ return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";+ },++ refresh: function() {+ var options = this.options,+ lis = this.tablist.children( ":has(a[href])" );++ // get disabled tabs from class attribute from HTML+ // this will get converted to a boolean if needed in _refresh()+ options.disabled = $.map( lis.filter( ".ui-state-disabled" ), function( tab ) {+ return lis.index( tab );+ });++ this._processTabs();++ // was collapsed or no tabs+ if ( options.active === false || !this.anchors.length ) {+ options.active = false;+ this.active = $();+ // was active, but active tab is gone+ } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) {+ // all remaining tabs are disabled+ if ( this.tabs.length === options.disabled.length ) {+ options.active = false;+ this.active = $();+ // activate previous tab+ } else {+ this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) );+ }+ // was active, active tab still exists+ } else {+ // make sure active index is correct+ options.active = this.tabs.index( this.active );+ }++ this._refresh();+ },++ _refresh: function() {+ this._setupDisabled( this.options.disabled );+ this._setupEvents( this.options.event );+ this._setupHeightStyle( this.options.heightStyle );++ this.tabs.not( this.active ).attr({+ "aria-selected": "false",+ tabIndex: -1+ });+ this.panels.not( this._getPanelForTab( this.active ) )+ .hide()+ .attr({+ "aria-expanded": "false",+ "aria-hidden": "true"+ });++ // Make sure one tab is in the tab order+ if ( !this.active.length ) {+ this.tabs.eq( 0 ).attr( "tabIndex", 0 );+ } else {+ this.active+ .addClass( "ui-tabs-active ui-state-active" )+ .attr({+ "aria-selected": "true",+ tabIndex: 0+ });+ this._getPanelForTab( this.active )+ .show()+ .attr({+ "aria-expanded": "true",+ "aria-hidden": "false"+ });+ }+ },++ _processTabs: function() {+ var that = this;++ this.tablist = this._getList()+ .addClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )+ .attr( "role", "tablist" );++ this.tabs = this.tablist.find( "> li:has(a[href])" )+ .addClass( "ui-state-default ui-corner-top" )+ .attr({+ role: "tab",+ tabIndex: -1+ });++ this.anchors = this.tabs.map(function() {+ return $( "a", this )[ 0 ];+ })+ .addClass( "ui-tabs-anchor" )+ .attr({+ role: "presentation",+ tabIndex: -1+ });++ this.panels = $();++ this.anchors.each(function( i, anchor ) {+ var selector, panel, panelId,+ anchorId = $( anchor ).uniqueId().attr( "id" ),+ tab = $( anchor ).closest( "li" ),+ originalAriaControls = tab.attr( "aria-controls" );++ // inline tab+ if ( isLocal( anchor ) ) {+ selector = anchor.hash;+ panel = that.element.find( that._sanitizeSelector( selector ) );+ // remote tab+ } else {+ panelId = that._tabId( tab );+ selector = "#" + panelId;+ panel = that.element.find( selector );+ if ( !panel.length ) {+ panel = that._createPanel( panelId );+ panel.insertAfter( that.panels[ i - 1 ] || that.tablist );+ }+ panel.attr( "aria-live", "polite" );+ }++ if ( panel.length) {+ that.panels = that.panels.add( panel );+ }+ if ( originalAriaControls ) {+ tab.data( "ui-tabs-aria-controls", originalAriaControls );+ }+ tab.attr({+ "aria-controls": selector.substring( 1 ),+ "aria-labelledby": anchorId+ });+ panel.attr( "aria-labelledby", anchorId );+ });++ this.panels+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )+ .attr( "role", "tabpanel" );+ },++ // allow overriding how to find the list for rare usage scenarios (#7715)+ _getList: function() {+ return this.element.find( "ol,ul" ).eq( 0 );+ },++ _createPanel: function( id ) {+ return $( "<div>" )+ .attr( "id", id )+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )+ .data( "ui-tabs-destroy", true );+ },++ _setupDisabled: function( disabled ) {+ if ( $.isArray( disabled ) ) {+ if ( !disabled.length ) {+ disabled = false;+ } else if ( disabled.length === this.anchors.length ) {+ disabled = true;+ }+ }++ // disable tabs+ for ( var i = 0, li; ( li = this.tabs[ i ] ); i++ ) {+ if ( disabled === true || $.inArray( i, disabled ) !== -1 ) {+ $( li )+ .addClass( "ui-state-disabled" )+ .attr( "aria-disabled", "true" );+ } else {+ $( li )+ .removeClass( "ui-state-disabled" )+ .removeAttr( "aria-disabled" );+ }+ }++ this.options.disabled = disabled;+ },++ _setupEvents: function( event ) {+ var events = {+ click: function( event ) {+ event.preventDefault();+ }+ };+ if ( event ) {+ $.each( event.split(" "), function( index, eventName ) {+ events[ eventName ] = "_eventHandler";+ });+ }++ this._off( this.anchors.add( this.tabs ).add( this.panels ) );+ this._on( this.anchors, events );+ this._on( this.tabs, { keydown: "_tabKeydown" } );+ this._on( this.panels, { keydown: "_panelKeydown" } );++ this._focusable( this.tabs );+ this._hoverable( this.tabs );+ },++ _setupHeightStyle: function( heightStyle ) {+ var maxHeight, overflow,+ parent = this.element.parent();++ if ( heightStyle === "fill" ) {+ // IE 6 treats height like minHeight, so we need to turn off overflow+ // in order to get a reliable height+ // we use the minHeight support test because we assume that only+ // browsers that don't support minHeight will treat height as minHeight+ if ( !$.support.minHeight ) {+ overflow = parent.css( "overflow" );+ parent.css( "overflow", "hidden");+ }+ maxHeight = parent.height();+ this.element.siblings( ":visible" ).each(function() {+ var elem = $( this ),+ position = elem.css( "position" );++ if ( position === "absolute" || position === "fixed" ) {+ return;+ }+ maxHeight -= elem.outerHeight( true );+ });+ if ( overflow ) {+ parent.css( "overflow", overflow );+ }++ this.element.children().not( this.panels ).each(function() {+ maxHeight -= $( this ).outerHeight( true );+ });++ this.panels.each(function() {+ $( this ).height( Math.max( 0, maxHeight -+ $( this ).innerHeight() + $( this ).height() ) );+ })+ .css( "overflow", "auto" );+ } else if ( heightStyle === "auto" ) {+ maxHeight = 0;+ this.panels.each(function() {+ maxHeight = Math.max( maxHeight, $( this ).height( "" ).height() );+ }).height( maxHeight );+ }+ },++ _eventHandler: function( event ) {+ var options = this.options,+ active = this.active,+ anchor = $( event.currentTarget ),+ tab = anchor.closest( "li" ),+ clickedIsActive = tab[ 0 ] === active[ 0 ],+ collapsing = clickedIsActive && options.collapsible,+ toShow = collapsing ? $() : this._getPanelForTab( tab ),+ toHide = !active.length ? $() : this._getPanelForTab( active ),+ eventData = {+ oldTab: active,+ oldPanel: toHide,+ newTab: collapsing ? $() : tab,+ newPanel: toShow+ };++ event.preventDefault();++ if ( tab.hasClass( "ui-state-disabled" ) ||+ // tab is already loading+ tab.hasClass( "ui-tabs-loading" ) ||+ // can't switch durning an animation+ this.running ||+ // click on active header, but not collapsible+ ( clickedIsActive && !options.collapsible ) ||+ // allow canceling activation+ ( this._trigger( "beforeActivate", event, eventData ) === false ) ) {+ return;+ }++ options.active = collapsing ? false : this.tabs.index( tab );++ this.active = clickedIsActive ? $() : tab;+ if ( this.xhr ) {+ this.xhr.abort();+ }++ if ( !toHide.length && !toShow.length ) {+ $.error( "jQuery UI Tabs: Mismatching fragment identifier." );+ }++ if ( toShow.length ) {+ this.load( this.tabs.index( tab ), event );+ }+ this._toggle( event, eventData );+ },++ // handles show/hide for selecting tabs+ _toggle: function( event, eventData ) {+ var that = this,+ toShow = eventData.newPanel,+ toHide = eventData.oldPanel;++ this.running = true;++ function complete() {+ that.running = false;+ that._trigger( "activate", event, eventData );+ }++ function show() {+ eventData.newTab.closest( "li" ).addClass( "ui-tabs-active ui-state-active" );++ if ( toShow.length && that.options.show ) {+ that._show( toShow, that.options.show, complete );+ } else {+ toShow.show();+ complete();+ }+ }++ // start out by hiding, then showing, then completing+ if ( toHide.length && this.options.hide ) {+ this._hide( toHide, this.options.hide, function() {+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );+ show();+ });+ } else {+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );+ toHide.hide();+ show();+ }++ toHide.attr({+ "aria-expanded": "false",+ "aria-hidden": "true"+ });+ eventData.oldTab.attr( "aria-selected", "false" );+ // If we're switching tabs, remove the old tab from the tab order.+ // If we're opening from collapsed state, remove the previous tab from the tab order.+ // If we're collapsing, then keep the collapsing tab in the tab order.+ if ( toShow.length && toHide.length ) {+ eventData.oldTab.attr( "tabIndex", -1 );+ } else if ( toShow.length ) {+ this.tabs.filter(function() {+ return $( this ).attr( "tabIndex" ) === 0;+ })+ .attr( "tabIndex", -1 );+ }++ toShow.attr({+ "aria-expanded": "true",+ "aria-hidden": "false"+ });+ eventData.newTab.attr({+ "aria-selected": "true",+ tabIndex: 0+ });+ },++ _activate: function( index ) {+ var anchor,+ active = this._findActive( index );++ // trying to activate the already active panel+ if ( active[ 0 ] === this.active[ 0 ] ) {+ return;+ }++ // trying to collapse, simulate a click on the current active header+ if ( !active.length ) {+ active = this.active;+ }++ anchor = active.find( ".ui-tabs-anchor" )[ 0 ];+ this._eventHandler({+ target: anchor,+ currentTarget: anchor,+ preventDefault: $.noop+ });+ },++ _findActive: function( index ) {+ return index === false ? $() : this.tabs.eq( index );+ },++ _getIndex: function( index ) {+ // meta-function to give users option to provide a href string instead of a numerical index.+ if ( typeof index === "string" ) {+ index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );+ }++ return index;+ },++ _destroy: function() {+ if ( this.xhr ) {+ this.xhr.abort();+ }++ this.element.removeClass( "ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible" );++ this.tablist+ .removeClass( "ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" )+ .removeAttr( "role" );++ this.anchors+ .removeClass( "ui-tabs-anchor" )+ .removeAttr( "role" )+ .removeAttr( "tabIndex" )+ .removeData( "href.tabs" )+ .removeData( "load.tabs" )+ .removeUniqueId();++ this.tabs.add( this.panels ).each(function() {+ if ( $.data( this, "ui-tabs-destroy" ) ) {+ $( this ).remove();+ } else {+ $( this )+ .removeClass( "ui-state-default ui-state-active ui-state-disabled " ++ "ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel" )+ .removeAttr( "tabIndex" )+ .removeAttr( "aria-live" )+ .removeAttr( "aria-busy" )+ .removeAttr( "aria-selected" )+ .removeAttr( "aria-labelledby" )+ .removeAttr( "aria-hidden" )+ .removeAttr( "aria-expanded" )+ .removeAttr( "role" );+ }+ });++ this.tabs.each(function() {+ var li = $( this ),+ prev = li.data( "ui-tabs-aria-controls" );+ if ( prev ) {+ li.attr( "aria-controls", prev );+ } else {+ li.removeAttr( "aria-controls" );+ }+ });++ this.panels.show();++ if ( this.options.heightStyle !== "content" ) {+ this.panels.css( "height", "" );+ }+ },++ enable: function( index ) {+ var disabled = this.options.disabled;+ if ( disabled === false ) {+ return;+ }++ if ( index === undefined ) {+ disabled = false;+ } else {+ index = this._getIndex( index );+ if ( $.isArray( disabled ) ) {+ disabled = $.map( disabled, function( num ) {+ return num !== index ? num : null;+ });+ } else {+ disabled = $.map( this.tabs, function( li, num ) {+ return num !== index ? num : null;+ });+ }+ }+ this._setupDisabled( disabled );+ },++ disable: function( index ) {+ var disabled = this.options.disabled;+ if ( disabled === true ) {+ return;+ }++ if ( index === undefined ) {+ disabled = true;+ } else {+ index = this._getIndex( index );+ if ( $.inArray( index, disabled ) !== -1 ) {+ return;+ }+ if ( $.isArray( disabled ) ) {+ disabled = $.merge( [ index ], disabled ).sort();+ } else {+ disabled = [ index ];+ }+ }+ this._setupDisabled( disabled );+ },++ load: function( index, event ) {+ index = this._getIndex( index );+ var that = this,+ tab = this.tabs.eq( index ),+ anchor = tab.find( ".ui-tabs-anchor" ),+ panel = this._getPanelForTab( tab ),+ eventData = {+ tab: tab,+ panel: panel+ };++ // not remote+ if ( isLocal( anchor[ 0 ] ) ) {+ return;+ }++ this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) );++ // support: jQuery <1.8+ // jQuery <1.8 returns false if the request is canceled in beforeSend,+ // but as of 1.8, $.ajax() always returns a jqXHR object.+ if ( this.xhr && this.xhr.statusText !== "canceled" ) {+ tab.addClass( "ui-tabs-loading" );+ panel.attr( "aria-busy", "true" );++ this.xhr+ .success(function( response ) {+ // support: jQuery <1.8+ // http://bugs.jquery.com/ticket/11778+ setTimeout(function() {+ panel.html( response );+ that._trigger( "load", event, eventData );+ }, 1 );+ })+ .complete(function( jqXHR, status ) {+ // support: jQuery <1.8+ // http://bugs.jquery.com/ticket/11778+ setTimeout(function() {+ if ( status === "abort" ) {+ that.panels.stop( false, true );+ }++ tab.removeClass( "ui-tabs-loading" );+ panel.removeAttr( "aria-busy" );++ if ( jqXHR === that.xhr ) {+ delete that.xhr;+ }+ }, 1 );+ });+ }+ },++ // TODO: Remove this function in 1.10 when ajaxOptions is removed+ _ajaxSettings: function( anchor, event, eventData ) {+ var that = this;+ return {+ url: anchor.attr( "href" ),+ beforeSend: function( jqXHR, settings ) {+ return that._trigger( "beforeLoad", event,+ $.extend( { jqXHR : jqXHR, ajaxSettings: settings }, eventData ) );+ }+ };+ },++ _getPanelForTab: function( tab ) {+ var id = $( tab ).attr( "aria-controls" );+ return this.element.find( this._sanitizeSelector( "#" + id ) );+ }+});++// DEPRECATED+if ( $.uiBackCompat !== false ) {++ // helper method for a lot of the back compat extensions+ $.ui.tabs.prototype._ui = function( tab, panel ) {+ return {+ tab: tab,+ panel: panel,+ index: this.anchors.index( tab )+ };+ };++ // url method+ $.widget( "ui.tabs", $.ui.tabs, {+ url: function( index, url ) {+ this.anchors.eq( index ).attr( "href", url );+ }+ });++ // TODO: Remove _ajaxSettings() method when removing this extension+ // ajaxOptions and cache options+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ ajaxOptions: null,+ cache: false+ },++ _create: function() {+ this._super();++ var that = this;++ this._on({ tabsbeforeload: function( event, ui ) {+ // tab is already cached+ if ( $.data( ui.tab[ 0 ], "cache.tabs" ) ) {+ event.preventDefault();+ return;+ }++ ui.jqXHR.success(function() {+ if ( that.options.cache ) {+ $.data( ui.tab[ 0 ], "cache.tabs", true );+ }+ });+ }});+ },++ _ajaxSettings: function( anchor, event, ui ) {+ var ajaxOptions = this.options.ajaxOptions;+ return $.extend( {}, ajaxOptions, {+ error: function( xhr, status ) {+ try {+ // Passing index avoid a race condition when this method is+ // called after the user has selected another tab.+ // Pass the anchor that initiated this request allows+ // loadError to manipulate the tab content panel via $(a.hash)+ ajaxOptions.error(+ xhr, status, ui.tab.closest( "li" ).index(), ui.tab[ 0 ] );+ }+ catch ( error ) {}+ }+ }, this._superApply( arguments ) );+ },++ _setOption: function( key, value ) {+ // reset cache if switching from cached to not cached+ if ( key === "cache" && value === false ) {+ this.anchors.removeData( "cache.tabs" );+ }+ this._super( key, value );+ },++ _destroy: function() {+ this.anchors.removeData( "cache.tabs" );+ this._super();+ },++ url: function( index ){+ this.anchors.eq( index ).removeData( "cache.tabs" );+ this._superApply( arguments );+ }+ });++ // abort method+ $.widget( "ui.tabs", $.ui.tabs, {+ abort: function() {+ if ( this.xhr ) {+ this.xhr.abort();+ }+ }+ });++ // spinner+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ spinner: "<em>Loading…</em>"+ },+ _create: function() {+ this._super();+ this._on({+ tabsbeforeload: function( event, ui ) {+ // Don't react to nested tabs or tabs that don't use a spinner+ if ( event.target !== this.element[ 0 ] ||+ !this.options.spinner ) {+ return;+ }++ var span = ui.tab.find( "span" ),+ html = span.html();+ span.html( this.options.spinner );+ ui.jqXHR.complete(function() {+ span.html( html );+ });+ }+ });+ }+ });++ // enable/disable events+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ enable: null,+ disable: null+ },++ enable: function( index ) {+ var options = this.options,+ trigger;++ if ( index && options.disabled === true ||+ ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) !== -1 ) ) {+ trigger = true;+ }++ this._superApply( arguments );++ if ( trigger ) {+ this._trigger( "enable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) );+ }+ },++ disable: function( index ) {+ var options = this.options,+ trigger;++ if ( index && options.disabled === false ||+ ( $.isArray( options.disabled ) && $.inArray( index, options.disabled ) === -1 ) ) {+ trigger = true;+ }++ this._superApply( arguments );++ if ( trigger ) {+ this._trigger( "disable", null, this._ui( this.anchors[ index ], this.panels[ index ] ) );+ }+ }+ });++ // add/remove methods and events+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ add: null,+ remove: null,+ tabTemplate: "<li><a href='#{href}'><span>#{label}</span></a></li>"+ },++ add: function( url, label, index ) {+ if ( index === undefined ) {+ index = this.anchors.length;+ }++ var doInsertAfter, panel,+ options = this.options,+ li = $( options.tabTemplate+ .replace( /#\{href\}/g, url )+ .replace( /#\{label\}/g, label ) ),+ id = !url.indexOf( "#" ) ?+ url.replace( "#", "" ) :+ this._tabId( li );++ li.addClass( "ui-state-default ui-corner-top" ).data( "ui-tabs-destroy", true );+ li.attr( "aria-controls", id );++ doInsertAfter = index >= this.tabs.length;++ // try to find an existing element before creating a new one+ panel = this.element.find( "#" + id );+ if ( !panel.length ) {+ panel = this._createPanel( id );+ if ( doInsertAfter ) {+ if ( index > 0 ) {+ panel.insertAfter( this.panels.eq( -1 ) );+ } else {+ panel.appendTo( this.element );+ }+ } else {+ panel.insertBefore( this.panels[ index ] );+ }+ }+ panel.addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" ).hide();++ if ( doInsertAfter ) {+ li.appendTo( this.tablist );+ } else {+ li.insertBefore( this.tabs[ index ] );+ }++ options.disabled = $.map( options.disabled, function( n ) {+ return n >= index ? ++n : n;+ });++ this.refresh();+ if ( this.tabs.length === 1 && options.active === false ) {+ this.option( "active", 0 );+ }++ this._trigger( "add", null, this._ui( this.anchors[ index ], this.panels[ index ] ) );+ return this;+ },++ remove: function( index ) {+ index = this._getIndex( index );+ var options = this.options,+ tab = this.tabs.eq( index ).remove(),+ panel = this._getPanelForTab( tab ).remove();++ // If selected tab was removed focus tab to the right or+ // in case the last tab was removed the tab to the left.+ // We check for more than 2 tabs, because if there are only 2,+ // then when we remove this tab, there will only be one tab left+ // so we don't need to detect which tab to activate.+ if ( tab.hasClass( "ui-tabs-active" ) && this.anchors.length > 2 ) {+ this._activate( index + ( index + 1 < this.anchors.length ? 1 : -1 ) );+ }++ options.disabled = $.map(+ $.grep( options.disabled, function( n ) {+ return n !== index;+ }),+ function( n ) {+ return n >= index ? --n : n;+ });++ this.refresh();++ this._trigger( "remove", null, this._ui( tab.find( "a" )[ 0 ], panel[ 0 ] ) );+ return this;+ }+ });++ // length method+ $.widget( "ui.tabs", $.ui.tabs, {+ length: function() {+ return this.anchors.length;+ }+ });++ // panel ids (idPrefix option + title attribute)+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ idPrefix: "ui-tabs-"+ },++ _tabId: function( tab ) {+ var a = tab.is( "li" ) ? tab.find( "a[href]" ) : tab;+ a = a[0];+ return $( a ).closest( "li" ).attr( "aria-controls" ) ||+ a.title && a.title.replace( /\s/g, "_" ).replace( /[^\w\u00c0-\uFFFF\-]/g, "" ) ||+ this.options.idPrefix + getNextTabId();+ }+ });++ // _createPanel method+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ panelTemplate: "<div></div>"+ },++ _createPanel: function( id ) {+ return $( this.options.panelTemplate )+ .attr( "id", id )+ .addClass( "ui-tabs-panel ui-widget-content ui-corner-bottom" )+ .data( "ui-tabs-destroy", true );+ }+ });++ // selected option+ $.widget( "ui.tabs", $.ui.tabs, {+ _create: function() {+ var options = this.options;+ if ( options.active === null && options.selected !== undefined ) {+ options.active = options.selected === -1 ? false : options.selected;+ }+ this._super();+ options.selected = options.active;+ if ( options.selected === false ) {+ options.selected = -1;+ }+ },++ _setOption: function( key, value ) {+ if ( key !== "selected" ) {+ return this._super( key, value );+ }++ var options = this.options;+ this._super( "active", value === -1 ? false : value );+ options.selected = options.active;+ if ( options.selected === false ) {+ options.selected = -1;+ }+ },++ _eventHandler: function() {+ this._superApply( arguments );+ this.options.selected = this.options.active;+ if ( this.options.selected === false ) {+ this.options.selected = -1;+ }+ }+ });++ // show and select event+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ show: null,+ select: null+ },+ _create: function() {+ this._super();+ if ( this.options.active !== false ) {+ this._trigger( "show", null, this._ui(+ this.active.find( ".ui-tabs-anchor" )[ 0 ],+ this._getPanelForTab( this.active )[ 0 ] ) );+ }+ },+ _trigger: function( type, event, data ) {+ var tab, panel,+ ret = this._superApply( arguments );++ if ( !ret ) {+ return false;+ }++ if ( type === "beforeActivate" ) {+ tab = data.newTab.length ? data.newTab : data.oldTab;+ panel = data.newPanel.length ? data.newPanel : data.oldPanel;+ ret = this._super( "select", event, {+ tab: tab.find( ".ui-tabs-anchor" )[ 0],+ panel: panel[ 0 ],+ index: tab.closest( "li" ).index()+ });+ } else if ( type === "activate" && data.newTab.length ) {+ ret = this._super( "show", event, {+ tab: data.newTab.find( ".ui-tabs-anchor" )[ 0 ],+ panel: data.newPanel[ 0 ],+ index: data.newTab.closest( "li" ).index()+ });+ }+ return ret;+ }+ });++ // select method+ $.widget( "ui.tabs", $.ui.tabs, {+ select: function( index ) {+ index = this._getIndex( index );+ if ( index === -1 ) {+ if ( this.options.collapsible && this.options.selected !== -1 ) {+ index = this.options.selected;+ } else {+ return;+ }+ }+ this.anchors.eq( index ).trigger( this.options.event + this.eventNamespace );+ }+ });++ // cookie option+ (function() {++ var listId = 0;++ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ cookie: null // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }+ },+ _create: function() {+ var options = this.options,+ active;+ if ( options.active == null && options.cookie ) {+ active = parseInt( this._cookie(), 10 );+ if ( active === -1 ) {+ active = false;+ }+ options.active = active;+ }+ this._super();+ },+ _cookie: function( active ) {+ var cookie = [ this.cookie ||+ ( this.cookie = this.options.cookie.name || "ui-tabs-" + (++listId) ) ];+ if ( arguments.length ) {+ cookie.push( active === false ? -1 : active );+ cookie.push( this.options.cookie );+ }+ return $.cookie.apply( null, cookie );+ },+ _refresh: function() {+ this._super();+ if ( this.options.cookie ) {+ this._cookie( this.options.active, this.options.cookie );+ }+ },+ _eventHandler: function() {+ this._superApply( arguments );+ if ( this.options.cookie ) {+ this._cookie( this.options.active, this.options.cookie );+ }+ },+ _destroy: function() {+ this._super();+ if ( this.options.cookie ) {+ this._cookie( null, this.options.cookie );+ }+ }+ });++ })();++ // load event+ $.widget( "ui.tabs", $.ui.tabs, {+ _trigger: function( type, event, data ) {+ var _data = $.extend( {}, data );+ if ( type === "load" ) {+ _data.panel = _data.panel[ 0 ];+ _data.tab = _data.tab.find( ".ui-tabs-anchor" )[ 0 ];+ }+ return this._super( type, event, _data );+ }+ });++ // fx option+ // The new animation options (show, hide) conflict with the old show callback.+ // The old fx option wins over show/hide anyway (always favor back-compat).+ // If a user wants to use the new animation API, they must give up the old API.+ $.widget( "ui.tabs", $.ui.tabs, {+ options: {+ fx: null // e.g. { height: "toggle", opacity: "toggle", duration: 200 }+ },++ _getFx: function() {+ var hide, show,+ fx = this.options.fx;++ if ( fx ) {+ if ( $.isArray( fx ) ) {+ hide = fx[ 0 ];+ show = fx[ 1 ];+ } else {+ hide = show = fx;+ }+ }++ return fx ? { show: show, hide: hide } : null;+ },++ _toggle: function( event, eventData ) {+ var that = this,+ toShow = eventData.newPanel,+ toHide = eventData.oldPanel,+ fx = this._getFx();++ if ( !fx ) {+ return this._super( event, eventData );+ }++ that.running = true;++ function complete() {+ that.running = false;+ that._trigger( "activate", event, eventData );+ }++ function show() {+ eventData.newTab.closest( "li" ).addClass( "ui-tabs-active ui-state-active" );++ if ( toShow.length && fx.show ) {+ toShow+ .animate( fx.show, fx.show.duration, function() {+ complete();+ });+ } else {+ toShow.show();+ complete();+ }+ }++ // start out by hiding, then showing, then completing+ if ( toHide.length && fx.hide ) {+ toHide.animate( fx.hide, fx.hide.duration, function() {+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );+ show();+ });+ } else {+ eventData.oldTab.closest( "li" ).removeClass( "ui-tabs-active ui-state-active" );+ toHide.hide();+ show();+ }+ }+ });+}++})( jQuery );+(function( $ ) {++var increments = 0;++function addDescribedBy( elem, id ) {+ var describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ );+ describedby.push( id );+ elem+ .data( "ui-tooltip-id", id )+ .attr( "aria-describedby", $.trim( describedby.join( " " ) ) );+}++function removeDescribedBy( elem ) {+ var id = elem.data( "ui-tooltip-id" ),+ describedby = (elem.attr( "aria-describedby" ) || "").split( /\s+/ ),+ index = $.inArray( id, describedby );+ if ( index !== -1 ) {+ describedby.splice( index, 1 );+ }++ elem.removeData( "ui-tooltip-id" );+ describedby = $.trim( describedby.join( " " ) );+ if ( describedby ) {+ elem.attr( "aria-describedby", describedby );+ } else {+ elem.removeAttr( "aria-describedby" );+ }+}++$.widget( "ui.tooltip", {+ version: "1.9.2",+ options: {+ content: function() {+ return $( this ).attr( "title" );+ },+ hide: true,+ // Disabled elements have inconsistent behavior across browsers (#8661)+ items: "[title]:not([disabled])",+ position: {+ my: "left top+15",+ at: "left bottom",+ collision: "flipfit flip"+ },+ show: true,+ tooltipClass: null,+ track: false,++ // callbacks+ close: null,+ open: null+ },++ _create: function() {+ this._on({+ mouseover: "open",+ focusin: "open"+ });++ // IDs of generated tooltips, needed for destroy+ this.tooltips = {};+ // IDs of parent tooltips where we removed the title attribute+ this.parents = {};++ if ( this.options.disabled ) {+ this._disable();+ }+ },++ _setOption: function( key, value ) {+ var that = this;++ if ( key === "disabled" ) {+ this[ value ? "_disable" : "_enable" ]();+ this.options[ key ] = value;+ // disable element style changes+ return;+ }++ this._super( key, value );++ if ( key === "content" ) {+ $.each( this.tooltips, function( id, element ) {+ that._updateContent( element );+ });+ }+ },++ _disable: function() {+ var that = this;++ // close open tooltips+ $.each( this.tooltips, function( id, element ) {+ var event = $.Event( "blur" );+ event.target = event.currentTarget = element[0];+ that.close( event, true );+ });++ // remove title attributes to prevent native tooltips+ this.element.find( this.options.items ).andSelf().each(function() {+ var element = $( this );+ if ( element.is( "[title]" ) ) {+ element+ .data( "ui-tooltip-title", element.attr( "title" ) )+ .attr( "title", "" );+ }+ });+ },++ _enable: function() {+ // restore title attributes+ this.element.find( this.options.items ).andSelf().each(function() {+ var element = $( this );+ if ( element.data( "ui-tooltip-title" ) ) {+ element.attr( "title", element.data( "ui-tooltip-title" ) );+ }+ });+ },++ open: function( event ) {+ var that = this,+ target = $( event ? event.target : this.element )+ // we need closest here due to mouseover bubbling,+ // but always pointing at the same event target+ .closest( this.options.items );++ // No element to show a tooltip for or the tooltip is already open+ if ( !target.length || target.data( "ui-tooltip-id" ) ) {+ return;+ }++ if ( target.attr( "title" ) ) {+ target.data( "ui-tooltip-title", target.attr( "title" ) );+ }++ target.data( "ui-tooltip-open", true );++ // kill parent tooltips, custom or native, for hover+ if ( event && event.type === "mouseover" ) {+ target.parents().each(function() {+ var parent = $( this ),+ blurEvent;+ if ( parent.data( "ui-tooltip-open" ) ) {+ blurEvent = $.Event( "blur" );+ blurEvent.target = blurEvent.currentTarget = this;+ that.close( blurEvent, true );+ }+ if ( parent.attr( "title" ) ) {+ parent.uniqueId();+ that.parents[ this.id ] = {+ element: this,+ title: parent.attr( "title" )+ };+ parent.attr( "title", "" );+ }+ });+ }++ this._updateContent( target, event );+ },++ _updateContent: function( target, event ) {+ var content,+ contentOption = this.options.content,+ that = this,+ eventType = event ? event.type : null;++ if ( typeof contentOption === "string" ) {+ return this._open( event, target, contentOption );+ }++ content = contentOption.call( target[0], function( response ) {+ // ignore async response if tooltip was closed already+ if ( !target.data( "ui-tooltip-open" ) ) {+ return;+ }+ // IE may instantly serve a cached response for ajax requests+ // delay this call to _open so the other call to _open runs first+ that._delay(function() {+ // jQuery creates a special event for focusin when it doesn't+ // exist natively. To improve performance, the native event+ // object is reused and the type is changed. Therefore, we can't+ // rely on the type being correct after the event finished+ // bubbling, so we set it back to the previous value. (#8740)+ if ( event ) {+ event.type = eventType;+ }+ this._open( event, target, response );+ });+ });+ if ( content ) {+ this._open( event, target, content );+ }+ },++ _open: function( event, target, content ) {+ var tooltip, events, delayedShow,+ positionOption = $.extend( {}, this.options.position );++ if ( !content ) {+ return;+ }++ // Content can be updated multiple times. If the tooltip already+ // exists, then just update the content and bail.+ tooltip = this._find( target );+ if ( tooltip.length ) {+ tooltip.find( ".ui-tooltip-content" ).html( content );+ return;+ }++ // if we have a title, clear it to prevent the native tooltip+ // we have to check first to avoid defining a title if none exists+ // (we don't want to cause an element to start matching [title])+ //+ // We use removeAttr only for key events, to allow IE to export the correct+ // accessible attributes. For mouse events, set to empty string to avoid+ // native tooltip showing up (happens only when removing inside mouseover).+ if ( target.is( "[title]" ) ) {+ if ( event && event.type === "mouseover" ) {+ target.attr( "title", "" );+ } else {+ target.removeAttr( "title" );+ }+ }++ tooltip = this._tooltip( target );+ addDescribedBy( target, tooltip.attr( "id" ) );+ tooltip.find( ".ui-tooltip-content" ).html( content );++ function position( event ) {+ positionOption.of = event;+ if ( tooltip.is( ":hidden" ) ) {+ return;+ }+ tooltip.position( positionOption );+ }+ if ( this.options.track && event && /^mouse/.test( event.type ) ) {+ this._on( this.document, {+ mousemove: position+ });+ // trigger once to override element-relative positioning+ position( event );+ } else {+ tooltip.position( $.extend({+ of: target+ }, this.options.position ) );+ }++ tooltip.hide();++ this._show( tooltip, this.options.show );+ // Handle tracking tooltips that are shown with a delay (#8644). As soon+ // as the tooltip is visible, position the tooltip using the most recent+ // event.+ if ( this.options.show && this.options.show.delay ) {+ delayedShow = setInterval(function() {+ if ( tooltip.is( ":visible" ) ) {+ position( positionOption.of );+ clearInterval( delayedShow );+ }+ }, $.fx.interval );+ }++ this._trigger( "open", event, { tooltip: tooltip } );++ events = {+ keyup: function( event ) {+ if ( event.keyCode === $.ui.keyCode.ESCAPE ) {+ var fakeEvent = $.Event(event);+ fakeEvent.currentTarget = target[0];+ this.close( fakeEvent, true );+ }+ },+ remove: function() {+ this._removeTooltip( tooltip );+ }+ };+ if ( !event || event.type === "mouseover" ) {+ events.mouseleave = "close";+ }+ if ( !event || event.type === "focusin" ) {+ events.focusout = "close";+ }+ this._on( true, target, events );+ },++ close: function( event ) {+ var that = this,+ target = $( event ? event.currentTarget : this.element ),+ tooltip = this._find( target );++ // disabling closes the tooltip, so we need to track when we're closing+ // to avoid an infinite loop in case the tooltip becomes disabled on close+ if ( this.closing ) {+ return;+ }++ // only set title if we had one before (see comment in _open())+ if ( target.data( "ui-tooltip-title" ) ) {+ target.attr( "title", target.data( "ui-tooltip-title" ) );+ }++ removeDescribedBy( target );++ tooltip.stop( true );+ this._hide( tooltip, this.options.hide, function() {+ that._removeTooltip( $( this ) );+ });++ target.removeData( "ui-tooltip-open" );+ this._off( target, "mouseleave focusout keyup" );+ // Remove 'remove' binding only on delegated targets+ if ( target[0] !== this.element[0] ) {+ this._off( target, "remove" );+ }+ this._off( this.document, "mousemove" );++ if ( event && event.type === "mouseleave" ) {+ $.each( this.parents, function( id, parent ) {+ $( parent.element ).attr( "title", parent.title );+ delete that.parents[ id ];+ });+ }++ this.closing = true;+ this._trigger( "close", event, { tooltip: tooltip } );+ this.closing = false;+ },++ _tooltip: function( element ) {+ var id = "ui-tooltip-" + increments++,+ tooltip = $( "<div>" )+ .attr({+ id: id,+ role: "tooltip"+ })+ .addClass( "ui-tooltip ui-widget ui-corner-all ui-widget-content " ++ ( this.options.tooltipClass || "" ) );+ $( "<div>" )+ .addClass( "ui-tooltip-content" )+ .appendTo( tooltip );+ tooltip.appendTo( this.document[0].body );+ if ( $.fn.bgiframe ) {+ tooltip.bgiframe();+ }+ this.tooltips[ id ] = element;+ return tooltip;+ },++ _find: function( target ) {+ var id = target.data( "ui-tooltip-id" );+ return id ? $( "#" + id ) : $();+ },++ _removeTooltip: function( tooltip ) {+ tooltip.remove();+ delete this.tooltips[ tooltip.attr( "id" ) ];+ },++ _destroy: function() {+ var that = this;++ // close open tooltips+ $.each( this.tooltips, function( id, element ) {+ // Delegate to close method to handle common cleanup+ var event = $.Event( "blur" );+ event.target = event.currentTarget = element[0];+ that.close( event, true );++ // Remove immediately; destroying an open tooltip doesn't use the+ // hide animation+ $( "#" + id ).remove();++ // Restore the title+ if ( element.data( "ui-tooltip-title" ) ) {+ element.attr( "title", element.data( "ui-tooltip-title" ) );+ element.removeData( "ui-tooltip-title" );+ }+ });+ }+});++}( jQuery ) );diff --git a/data/devlibs/jqueryhotkeys/jquery.hotkeys.js b/data/devlibs/jqueryhotkeys/jquery.hotkeys.jsnew file mode 100644index 000000000..c240a7fd7--- /dev/null+++ b/data/devlibs/jqueryhotkeys/jquery.hotkeys.js@@ -0,0 +1,111 @@+/*+ * jQuery Hotkeys Plugin+ * Copyright 2010, John Resig+ * Dual licensed under the MIT or GPL Version 2 licenses.+ *+ * Based upon the plugin by Tzury Bar Yochay:+ * http://github.com/tzuryby/hotkeys+ *+ * Original idea by:+ * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/+*/++/*+ * One small change is: now keys are passed by object { keys: '...' }+ * Might be useful, when you want to pass some other data to your handler+ */++(function(jQuery){++ jQuery.hotkeys = {+ version: "0.8",++ specialKeys: {+ 8: "backspace", 9: "tab", 10: "return", 13: "return", 16: "shift", 17: "ctrl", 18: "alt", 19: "pause",+ 20: "capslock", 27: "esc", 32: "space", 33: "pageup", 34: "pagedown", 35: "end", 36: "home",+ 37: "left", 38: "up", 39: "right", 40: "down", 45: "insert", 46: "del",+ 96: "0", 97: "1", 98: "2", 99: "3", 100: "4", 101: "5", 102: "6", 103: "7",+ 104: "8", 105: "9", 106: "*", 107: "+", 109: "-", 110: ".", 111 : "/",+ 112: "f1", 113: "f2", 114: "f3", 115: "f4", 116: "f5", 117: "f6", 118: "f7", 119: "f8",+ 120: "f9", 121: "f10", 122: "f11", 123: "f12", 144: "numlock", 145: "scroll", 186: ";", 191: "/",+ 220: "\\", 222: "'", 224: "meta"+ },++ shiftNums: {+ "`": "~", "1": "!", "2": "@", "3": "#", "4": "$", "5": "%", "6": "^", "7": "&",+ "8": "*", "9": "(", "0": ")", "-": "_", "=": "+", ";": ": ", "'": "\"", ",": "<",+ ".": ">", "/": "?", "\\": "|"+ }+ };++ function keyHandler( handleObj ) {+ if ( typeof handleObj.data === "string" ) {+ handleObj.data = { keys: handleObj.data };+ }++ // Only care when a possible input has been specified+ if ( !handleObj.data || !handleObj.data.keys || typeof handleObj.data.keys !== "string" ) {+ return;+ }++ var origHandler = handleObj.handler,+ keys = handleObj.data.keys.toLowerCase().split(" "),+ textAcceptingInputTypes = ["text", "password", "number", "email", "url", "range", "date", "month", "week", "time", "datetime", "datetime-local", "search", "color", "tel"];++ handleObj.handler = function( event ) {+ // Don't fire in text-accepting inputs that we didn't directly bind to+ if ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||+ jQuery.inArray(event.target.type, textAcceptingInputTypes) > -1 ) ) {+ return;+ }++ var special = jQuery.hotkeys.specialKeys[ event.keyCode ],+ // character codes are available only in keypress+ character = event.type === "keypress" && String.fromCharCode( event.which ).toLowerCase(),+ modif = "", possible = {};++ // check combinations (alt|ctrl|shift+anything)+ if ( event.altKey && special !== "alt" ) {+ modif += "alt+";+ }++ if ( event.ctrlKey && special !== "ctrl" ) {+ modif += "ctrl+";+ }++ // TODO: Need to make sure this works consistently across platforms+ if ( event.metaKey && !event.ctrlKey && special !== "meta" ) {+ modif += "meta+";+ }++ if ( event.shiftKey && special !== "shift" ) {+ modif += "shift+";+ }++ if ( special ) {+ possible[ modif + special ] = true;+ }++ if ( character ) {+ possible[ modif + character ] = true;+ possible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;++ // "$" can be triggered as "Shift+4" or "Shift+$" or just "$"+ if ( modif === "shift+" ) {+ possible[ jQuery.hotkeys.shiftNums[ character ] ] = true;+ }+ }++ for ( var i = 0, l = keys.length; i < l; i++ ) {+ if ( possible[ keys[i] ] ) {+ return origHandler.apply( this, arguments );+ }+ }+ };+ }++ jQuery.each([ "keydown", "keyup", "keypress" ], function() {+ jQuery.event.special[ this ] = { add: keyHandler };+ });++})( this.jQuery );diff --git a/data/devlibs/newui.js b/data/devlibs/newui.jsnew file mode 100644index 000000000..465a12e18--- /dev/null+++ b/data/devlibs/newui.js@@ -0,0 +1,158 @@+/* Copyright (c) 2012-2013 The TagSpaces Authors. All rights reserved.+ * Use of this source code is governed by a AGPL3 license that+ * can be found in the LICENSE file. */+define(function(require, exports, module) {+"use strict";++var outerLayout, col1Layout, col2Layout, col3Layout;++ $(document).ready(function(){+ var row1Height = 40; // px+ var row3Height = 45; // px++ outerLayout = $('body').layout({+ name: 'outerLayout' // for debugging & auto-adding buttons (see below)+ , fxName: "none"+ , autoResize: true // try to maintain pane-percentages+ , autoReopen: true // auto-open panes that were previously auto-closed due to 'no room'+ , autoBindCustomButtons: true+ , west__paneSelector: '.col1'+ , center__paneSelector: '.col2'+ , east__paneSelector: '.col3'+ , west__size: 250 // percentage size expresses as a decimal+ , east__size: 0.4+ , west__spacing_open: 1+ , east__spacing_open: 1+ , spacing_closed: 0+ , minSize: 100+ , west__minWidth: 250+ , noRoomToOpenAction: "hide" // 'close' or 'hide' when no room to open a pane at minSize+ // , west__showOverflowOnHover: true+ // , center__showOverflowOnHover: true+ // , east__showOverflowOnHover: true+ , enableCursorHotkey: false+ });++ //outerLayout.close("east");++ col1Layout = outerLayout.panes.west.layout({+ name: 'col1Layout' // for debugging & auto-adding buttons (see below)+ // , north__paneSelector: '.row1'+ , center__paneSelector: '.row2'+ , south__paneSelector: '.row3'+ // , north__size: row1Height // percentage size expresses as a string+ , south__size: row3Height+ , north__spacing_open: 0+ , south__spacing_open: 0+ , autoResize: false // try to maintain pane-percentages+ , closable: false+ , togglerLength_open: 0 // hide toggler-buttons+ , spacing_closed: 0 // hide resizer/slider bar when closed+ , autoReopen: true // auto-open panes that were previously auto-closed due to 'no room'+ , autoBindCustomButtons: true+ , minSize: 25+ , center__minHeight: 25+ // , north__showOverflowOnHover: true+ // , center__showOverflowOnHover: true+ // , south__showOverflowOnHover: true+ , enableCursorHotkey: false+ });++ /*+ col2Layout = outerLayout.panes.center.layout({+ name: 'col2Layout' // for debugging & auto-adding buttons (see below)+ // , north__paneSelector: '.row1'+ , center__paneSelector: '.row2'+ , south__paneSelector: '.row3'+ // , north__size: row1Height // percentage size expresses as a string+ , south__size: row3Height+ , north__spacing_open: 0+ , south__spacing_open: 0+ , autoResize: true // try to maintain pane-percentages+ , closable: false+ , togglerLength_open: 0 // hide toggler-buttons+ , spacing_closed: 0 // hide resizer/slider bar when closed+ , autoReopen: true // auto-open panes that were previously auto-closed due to 'no room'+ , autoBindCustomButtons: true+ , minSize: 25+ , center__minHeight: 25+ , north__showOverflowOnHover: true+ // , center__showOverflowOnHover: true+ // , south__showOverflowOnHover: true+ , enableCursorHotkey: false+ }); */++ /*+ col3Layout = outerLayout.panes.east.layout({+ name: 'col2Layout' // for debugging & auto-adding buttons (see below)+ // , north__paneSelector: '.row1'+ , center__paneSelector: '.row2'+ , south__paneSelector: '.row3'+ // , north__size: row1Height // percentage size expresses as a string+ , south__size: row3Height+ , north__spacing_open: 0+ , south__spacing_open: 0+ , autoResize: true // try to maintain pane-percentages+ , closable: false+ , togglerLength_open: 0 // hide toggler-buttons+ , spacing_closed: 0 // hide resizer/slider bar when closed+ , autoReopen: true // auto-open panes that were previously auto-closed due to 'no room'+ , autoBindCustomButtons: true+ , minSize: 25+ , center__minHeight: 25+ , north__showOverflowOnHover: true+ // , center__showOverflowOnHover: true+ // , south__showOverflowOnHover: true+ , enableCursorHotkey: false+ }); */++ $.i18n.init({+ lng: 'de',+ ns: { namespaces: ['ns.common'], defaultNs: 'ns.common'}+ }, function() {+ $('body').i18n();+ });++ $('#switchLang').click(function(e) {+ i18n.setLng('en', function(t) {+ $('body').i18n();+ });+ });++ $('#toggleLeft').click(function(e) {+ outerLayout.toggle("west");+ });++ $('#toggleFullScreen').click(function(e) {+ toggleFullWidth();+ });++ $("#tagSelect").select2({+ minimumInputLength: 1,+ multiple: true,+ data:[{id:0,text:'enhancement'},{id:1,text:'bug'},{id:2,text:'duplicate'},{id:3,text:'invalid'},{id:4,text:'wontfix'}]+ });++ $(document).bind('keydown', 'left', toggleFullWidth);++ $.fn.editable.defaults.mode = 'inline';+ $('#docTitle').editable();++ var isFullWidth = false;++ function toggleFullWidth() {+ var fullWidth = window.innerWidth;+ var halfWidth = Math.round(fullWidth/2);+ if(!isFullWidth) {+ outerLayout.close("west");+ outerLayout.sizePane("east", fullWidth);+ outerLayout.open("east");+ } else {+ outerLayout.sizePane("east", halfWidth);+ outerLayout.open("east");+ }+ isFullWidth = !isFullWidth;+ }+ });++});\ No newline at end of filediff --git a/data/devlibs/select2/LICENSE[apache] b/data/devlibs/select2/LICENSE[apache]new file mode 100644index 000000000..3c98f3df4--- /dev/null+++ b/data/devlibs/select2/LICENSE[apache]@@ -0,0 +1,18 @@+Copyright 2012 Igor Vaynberg++Version: @@ver@@ Timestamp: @@timestamp@@++This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU+General Public License version 2 (the "GPL License"). You may choose either license to govern your+use of this software only upon the condition that you accept all of the terms of either the Apache+License or the GPL License.++You may obtain a copy of the Apache License and the GPL License at:++http://www.apache.org/licenses/LICENSE-2.0+http://www.gnu.org/licenses/gpl-2.0.html++Unless required by applicable law or agreed to in writing, software distributed under the Apache License+or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,+either express or implied. See the Apache License and the GPL License for the specific language governing+permissions and limitations under the Apache License and the GPL License.\ No newline at end of filediff --git a/data/devlibs/select2/select2-bootstrap.css b/data/devlibs/select2/select2-bootstrap.cssnew file mode 100644index 000000000..909971074--- /dev/null+++ b/data/devlibs/select2/select2-bootstrap.css@@ -0,0 +1,87 @@+.form-control .select2-choice {+ border: 0;+ border-radius: 2px;+}++.form-control .select2-choice .select2-arrow {+ border-radius: 0 2px 2px 0;+}++.form-control.select2-container {+ height: auto !important;+ padding: 0px;+}++.form-control.select2-container.select2-dropdown-open {+ border-color: #5897FB;+ border-radius: 3px 3px 0 0;+}++.form-control .select2-container.select2-dropdown-open .select2-choices {+ border-radius: 3px 3px 0 0;+}++.form-control.select2-container .select2-choices {+ border: 0 !important;+ border-radius: 3px;+}++.control-group.warning .select2-container .select2-choice,+.control-group.warning .select2-container .select2-choices,+.control-group.warning .select2-container-active .select2-choice,+.control-group.warning .select2-container-active .select2-choices,+.control-group.warning .select2-dropdown-open.select2-drop-above .select2-choice,+.control-group.warning .select2-dropdown-open.select2-drop-above .select2-choices,+.control-group.warning .select2-container-multi.select2-container-active .select2-choices {+ border: 1px solid #C09853 !important;+}++.control-group.warning .select2-container .select2-choice div {+ border-left: 1px solid #C09853 !important;+ background: #FCF8E3 !important;+}++.control-group.error .select2-container .select2-choice,+.control-group.error .select2-container .select2-choices,+.control-group.error .select2-container-active .select2-choice,+.control-group.error .select2-container-active .select2-choices,+.control-group.error .select2-dropdown-open.select2-drop-above .select2-choice,+.control-group.error .select2-dropdown-open.select2-drop-above .select2-choices,+.control-group.error .select2-container-multi.select2-container-active .select2-choices {+ border: 1px solid #B94A48 !important;+}++.control-group.error .select2-container .select2-choice div {+ border-left: 1px solid #B94A48 !important;+ background: #F2DEDE !important;+}++.control-group.info .select2-container .select2-choice,+.control-group.info .select2-container .select2-choices,+.control-group.info .select2-container-active .select2-choice,+.control-group.info .select2-container-active .select2-choices,+.control-group.info .select2-dropdown-open.select2-drop-above .select2-choice,+.control-group.info .select2-dropdown-open.select2-drop-above .select2-choices,+.control-group.info .select2-container-multi.select2-container-active .select2-choices {+ border: 1px solid #3A87AD !important;+}++.control-group.info .select2-container .select2-choice div {+ border-left: 1px solid #3A87AD !important;+ background: #D9EDF7 !important;+}++.control-group.success .select2-container .select2-choice,+.control-group.success .select2-container .select2-choices,+.control-group.success .select2-container-active .select2-choice,+.control-group.success .select2-container-active .select2-choices,+.control-group.success .select2-dropdown-open.select2-drop-above .select2-choice,+.control-group.success .select2-dropdown-open.select2-drop-above .select2-choices,+.control-group.success .select2-container-multi.select2-container-active .select2-choices {+ border: 1px solid #468847 !important;+}++.control-group.success .select2-container .select2-choice div {+ border-left: 1px solid #468847 !important;+ background: #DFF0D8 !important;+}diff --git a/data/devlibs/select2/select2-spinner.gif b/data/devlibs/select2/select2-spinner.gifnew file mode 100644index 000000000..5b33f7e54Binary files /dev/null and b/data/devlibs/select2/select2-spinner.gif differdiff --git a/data/devlibs/select2/select2.css b/data/devlibs/select2/select2.cssnew file mode 100644index 000000000..2b32ed6f2--- /dev/null+++ b/data/devlibs/select2/select2.css@@ -0,0 +1,615 @@+/*+Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013+*/+.select2-container {+ margin: 0;+ position: relative;+ display: inline-block;+ /* inline-block for ie7 */+ zoom: 1;+ *display: inline;+ vertical-align: middle;+}++.select2-container,+.select2-drop,+.select2-search,+.select2-search input {+ /*+ Force border-box so that % widths fit the parent+ container without overlap because of margin/padding.++ More Info : http://www.quirksmode.org/css/box.html+ */+ -webkit-box-sizing: border-box; /* webkit */+ -moz-box-sizing: border-box; /* firefox */+ box-sizing: border-box; /* css3 */+}++.select2-container .select2-choice {+ display: block;+ height: 26px;+ padding: 0 0 0 8px;+ overflow: hidden;+ position: relative;++ border: 1px solid #aaa;+ white-space: nowrap;+ line-height: 26px;+ color: #444;+ text-decoration: none;++ border-radius: 4px;++ background-clip: padding-box;++ -webkit-touch-callout: none;+ -webkit-user-select: none;+ -moz-user-select: none;+ -ms-user-select: none;+ user-select: none;++ background-color: #fff;+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));+ background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);+ background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);+ background-image: linear-gradient(top, #fff 0%, #eee 50%);+}++.select2-container.select2-drop-above .select2-choice {+ border-bottom-color: #aaa;++ border-radius: 0 0 4px 4px;++ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));+ background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);+ background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);+ background-image: linear-gradient(top, #eee 0%, #fff 90%);+}++.select2-container.select2-allowclear .select2-choice .select2-chosen {+ margin-right: 42px;+}++.select2-container .select2-choice > .select2-chosen {+ margin-right: 26px;+ display: block;+ overflow: hidden;++ white-space: nowrap;++ text-overflow: ellipsis;+}++.select2-container .select2-choice abbr {+ display: none;+ width: 12px;+ height: 12px;+ position: absolute;+ right: 24px;+ top: 8px;++ font-size: 1px;+ text-decoration: none;++ border: 0;+ background: url('select2.png') right top no-repeat;+ cursor: pointer;+ outline: 0;+}++.select2-container.select2-allowclear .select2-choice abbr {+ display: inline-block;+}++.select2-container .select2-choice abbr:hover {+ background-position: right -11px;+ cursor: pointer;+}++.select2-drop-mask {+ border: 0;+ margin: 0;+ padding: 0;+ position: fixed;+ left: 0;+ top: 0;+ min-height: 100%;+ min-width: 100%;+ height: auto;+ width: auto;+ opacity: 0;+ z-index: 9998;+ /* styles required for IE to work */+ background-color: #fff;+ filter: alpha(opacity=0);+}++.select2-drop {+ width: 100%;+ margin-top: -1px;+ position: absolute;+ z-index: 9999;+ top: 100%;++ background: #fff;+ color: #000;+ border: 1px solid #aaa;+ border-top: 0;++ border-radius: 0 0 4px 4px;++ -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);+ box-shadow: 0 4px 5px rgba(0, 0, 0, .15);+}++.select2-drop-auto-width {+ border-top: 1px solid #aaa;+ width: auto;+}++.select2-drop-auto-width .select2-search {+ padding-top: 4px;+}++.select2-drop.select2-drop-above {+ margin-top: 1px;+ border-top: 1px solid #aaa;+ border-bottom: 0;++ border-radius: 4px 4px 0 0;++ -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);+ box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);+}++.select2-drop-active {+ border: 1px solid #5897fb;+ border-top: none;+}++.select2-drop.select2-drop-above.select2-drop-active {+ border-top: 1px solid #5897fb;+}++.select2-container .select2-choice .select2-arrow {+ display: inline-block;+ width: 18px;+ height: 100%;+ position: absolute;+ right: 0;+ top: 0;++ border-left: 1px solid #aaa;+ border-radius: 0 4px 4px 0;++ background-clip: padding-box;++ background: #ccc;+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));+ background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);+ background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);+ background-image: linear-gradient(top, #ccc 0%, #eee 60%);+}++.select2-container .select2-choice .select2-arrow b {+ display: block;+ width: 100%;+ height: 100%;+ background: url('select2.png') no-repeat 0 1px;+}++.select2-search {+ display: inline-block;+ width: 100%;+ min-height: 26px;+ margin: 0;+ padding-left: 4px;+ padding-right: 4px;++ position: relative;+ z-index: 10000;++ white-space: nowrap;+}++.select2-search input {+ width: 100%;+ height: auto !important;+ min-height: 26px;+ padding: 4px 20px 4px 5px;+ margin: 0;++ outline: 0;+ font-family: sans-serif;+ font-size: 1em;++ border: 1px solid #aaa;+ border-radius: 0;++ -webkit-box-shadow: none;+ box-shadow: none;++ background: #fff url('select2.png') no-repeat 100% -22px;+ background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));+ background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);+ background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);+ background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #fff 85%, #eee 99%);+}++.select2-drop.select2-drop-above .select2-search input {+ margin-top: 4px;+}++.select2-search input.select2-active {+ background: #fff url('select2-spinner.gif') no-repeat 100%;+ background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));+ background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);+ background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);+ background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #fff 85%, #eee 99%);+}++.select2-container-active .select2-choice,+.select2-container-active .select2-choices {+ border: 1px solid #5897fb;+ outline: none;++ -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);+ box-shadow: 0 0 5px rgba(0, 0, 0, .3);+}++.select2-dropdown-open .select2-choice {+ border-bottom-color: transparent;+ -webkit-box-shadow: 0 1px 0 #fff inset;+ box-shadow: 0 1px 0 #fff inset;++ border-bottom-left-radius: 0;+ border-bottom-right-radius: 0;++ background-color: #eee;+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));+ background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);+ background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);+ background-image: linear-gradient(top, #fff 0%, #eee 50%);+}++.select2-dropdown-open.select2-drop-above .select2-choice,+.select2-dropdown-open.select2-drop-above .select2-choices {+ border: 1px solid #5897fb;+ border-top-color: transparent;++ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));+ background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);+ background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);+ background-image: linear-gradient(bottom, #fff 0%, #eee 50%);+}++.select2-dropdown-open .select2-choice .select2-arrow {+ background: transparent;+ border-left: none;+ filter: none;+}+.select2-dropdown-open .select2-choice .select2-arrow b {+ background-position: -18px 1px;+}++/* results */+.select2-results {+ max-height: 200px;+ padding: 0 0 0 4px;+ margin: 4px 4px 4px 0;+ position: relative;+ overflow-x: hidden;+ overflow-y: auto;+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);+}++.select2-results ul.select2-result-sub {+ margin: 0;+ padding-left: 0;+}++.select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }+.select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }+.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }+.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 80px }+.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 100px }+.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 110px }+.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }++.select2-results li {+ list-style: none;+ display: list-item;+ background-image: none;+}++.select2-results li.select2-result-with-children > .select2-result-label {+ font-weight: bold;+}++.select2-results .select2-result-label {+ padding: 3px 7px 4px;+ margin: 0;+ cursor: pointer;++ min-height: 1em;++ -webkit-touch-callout: none;+ -webkit-user-select: none;+ -moz-user-select: none;+ -ms-user-select: none;+ user-select: none;+}++.select2-results .select2-highlighted {+ background: #3875d7;+ color: #fff;+}++.select2-results li em {+ background: #feffde;+ font-style: normal;+}++.select2-results .select2-highlighted em {+ background: transparent;+}++.select2-results .select2-highlighted ul {+ background: #fff;+ color: #000;+}+++.select2-results .select2-no-results,+.select2-results .select2-searching,+.select2-results .select2-selection-limit {+ background: #f4f4f4;+ display: list-item;+}++/*+disabled look for disabled choices in the results dropdown+*/+.select2-results .select2-disabled.select2-highlighted {+ color: #666;+ background: #f4f4f4;+ display: list-item;+ cursor: default;+}+.select2-results .select2-disabled {+ background: #f4f4f4;+ display: list-item;+ cursor: default;+}++.select2-results .select2-selected {+ display: none;+}++.select2-more-results.select2-active {+ background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;+}++.select2-more-results {+ background: #f4f4f4;+ display: list-item;+}++/* disabled styles */++.select2-container.select2-container-disabled .select2-choice {+ background-color: #f4f4f4;+ background-image: none;+ border: 1px solid #ddd;+ cursor: default;+}++.select2-container.select2-container-disabled .select2-choice .select2-arrow {+ background-color: #f4f4f4;+ background-image: none;+ border-left: 0;+}++.select2-container.select2-container-disabled .select2-choice abbr {+ display: none;+}+++/* multiselect */++.select2-container-multi .select2-choices {+ height: auto !important;+ height: 1%;+ margin: 0;+ padding: 0;+ position: relative;++ border: 1px solid #aaa;+ cursor: text;+ overflow: hidden;++ background-color: #fff;+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));+ background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);+ background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);+ background-image: linear-gradient(top, #eee 1%, #fff 15%);+}++.select2-locked {+ padding: 3px 5px 3px 5px !important;+}++.select2-container-multi .select2-choices {+ min-height: 26px;+}++.select2-container-multi.select2-container-active .select2-choices {+ border: 1px solid #5897fb;+ outline: none;++ -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);+ box-shadow: 0 0 5px rgba(0, 0, 0, .3);+}+.select2-container-multi .select2-choices li {+ float: left;+ list-style: none;+}+.select2-container-multi .select2-choices .select2-search-field {+ margin: 0;+ padding: 0;+ white-space: nowrap;+}++.select2-container-multi .select2-choices .select2-search-field input {+ padding: 5px;+ margin: 1px 0;++ font-family: sans-serif;+ font-size: 100%;+ color: #666;+ outline: 0;+ border: 0;+ -webkit-box-shadow: none;+ box-shadow: none;+ background: transparent !important;+}++.select2-container-multi .select2-choices .select2-search-field input.select2-active {+ background: #fff url('select2-spinner.gif') no-repeat 100% !important;+}++.select2-default {+ color: #999 !important;+}++.select2-container-multi .select2-choices .select2-search-choice {+ padding: 3px 5px 3px 18px;+ margin: 3px 0 3px 5px;+ position: relative;++ line-height: 13px;+ color: #333;+ cursor: default;+ border: 1px solid #aaaaaa;++ border-radius: 3px;++ -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);+ box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);++ background-clip: padding-box;++ -webkit-touch-callout: none;+ -webkit-user-select: none;+ -moz-user-select: none;+ -ms-user-select: none;+ user-select: none;++ background-color: #e4e4e4;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee));+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);+}+.select2-container-multi .select2-choices .select2-search-choice .select2-chosen {+ cursor: default;+}+.select2-container-multi .select2-choices .select2-search-choice-focus {+ background: #d4d4d4;+}++.select2-search-choice-close {+ display: block;+ width: 12px;+ height: 13px;+ position: absolute;+ right: 3px;+ top: 4px;++ font-size: 1px;+ outline: none;+ background: url('select2.png') right top no-repeat;+}++.select2-container-multi .select2-search-choice-close {+ left: 3px;+}++.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {+ background-position: right -11px;+}+.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {+ background-position: right -11px;+}++/* disabled styles */+.select2-container-multi.select2-container-disabled .select2-choices {+ background-color: #f4f4f4;+ background-image: none;+ border: 1px solid #ddd;+ cursor: default;+}++.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {+ padding: 3px 5px 3px 5px;+ border: 1px solid #ddd;+ background-image: none;+ background-color: #f4f4f4;+}++.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;+ background: none;+}+/* end multiselect */+++.select2-result-selectable .select2-match,+.select2-result-unselectable .select2-match {+ text-decoration: underline;+}++.select2-offscreen, .select2-offscreen:focus {+ clip: rect(0 0 0 0) !important;+ width: 1px !important;+ height: 1px !important;+ border: 0 !important;+ margin: 0 !important;+ padding: 0 !important;+ overflow: hidden !important;+ position: absolute !important;+ outline: 0 !important;+ left: 0px !important;+ top: 0px !important;+}++.select2-display-none {+ display: none;+}++.select2-measure-scrollbar {+ position: absolute;+ top: -10000px;+ left: -10000px;+ width: 100px;+ height: 100px;+ overflow: scroll;+}+/* Retina-ize icons */++@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {+ .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice .select2-arrow b {+ background-image: url('select2x2.png') !important;+ background-repeat: no-repeat !important;+ background-size: 60px 40px !important;+ }+ .select2-search input {+ background-position: 100% -21px !important;+ }+}diff --git a/data/devlibs/select2/select2.js b/data/devlibs/select2/select2.jsnew file mode 100644index 000000000..3b5e8e280--- /dev/null+++ b/data/devlibs/select2/select2.js@@ -0,0 +1,3255 @@+/*+Copyright 2012 Igor Vaynberg++Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013++This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU+General Public License version 2 (the "GPL License"). You may choose either license to govern your+use of this software only upon the condition that you accept all of the terms of either the Apache+License or the GPL License.++You may obtain a copy of the Apache License and the GPL License at:++ http://www.apache.org/licenses/LICENSE-2.0+ http://www.gnu.org/licenses/gpl-2.0.html++Unless required by applicable law or agreed to in writing, software distributed under the+Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR+CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for+the specific language governing permissions and limitations under the Apache License and the GPL License.+*/+(function ($) {+ if(typeof $.fn.each2 == "undefined") {+ $.extend($.fn, {+ /*+ * 4-10 times faster .each replacement+ * use it carefully, as it overrides jQuery context of element on each iteration+ */+ each2 : function (c) {+ var j = $([0]), i = -1, l = this.length;+ while (+ ++i < l+ && (j.context = j[0] = this[i])+ && c.call(j[0], i, j) !== false //"this"=DOM, i=index, j=jQuery object+ );+ return this;+ }+ });+ }+})(jQuery);++(function ($, undefined) {+ "use strict";+ /*global document, window, jQuery, console */++ if (window.Select2 !== undefined) {+ return;+ }++ var KEY, AbstractSelect2, SingleSelect2, MultiSelect2, nextUid, sizer,+ lastMousePosition={x:0,y:0}, $document, scrollBarDimensions,++ KEY = {+ TAB: 9,+ ENTER: 13,+ ESC: 27,+ SPACE: 32,+ LEFT: 37,+ UP: 38,+ RIGHT: 39,+ DOWN: 40,+ SHIFT: 16,+ CTRL: 17,+ ALT: 18,+ PAGE_UP: 33,+ PAGE_DOWN: 34,+ HOME: 36,+ END: 35,+ BACKSPACE: 8,+ DELETE: 46,+ isArrow: function (k) {+ k = k.which ? k.which : k;+ switch (k) {+ case KEY.LEFT:+ case KEY.RIGHT:+ case KEY.UP:+ case KEY.DOWN:+ return true;+ }+ return false;+ },+ isControl: function (e) {+ var k = e.which;+ switch (k) {+ case KEY.SHIFT:+ case KEY.CTRL:+ case KEY.ALT:+ return true;+ }++ if (e.metaKey) return true;++ return false;+ },+ isFunctionKey: function (k) {+ k = k.which ? k.which : k;+ return k >= 112 && k <= 123;+ }+ },+ MEASURE_SCROLLBAR_TEMPLATE = "<div class='select2-measure-scrollbar'></div>",++ DIACRITICS = {"\u24B6":"A","\uFF21":"A","\u00C0":"A","\u00C1":"A","\u00C2":"A","\u1EA6":"A","\u1EA4":"A","\u1EAA":"A","\u1EA8":"A","\u00C3":"A","\u0100":"A","\u0102":"A","\u1EB0":"A","\u1EAE":"A","\u1EB4":"A","\u1EB2":"A","\u0226":"A","\u01E0":"A","\u00C4":"A","\u01DE":"A","\u1EA2":"A","\u00C5":"A","\u01FA":"A","\u01CD":"A","\u0200":"A","\u0202":"A","\u1EA0":"A","\u1EAC":"A","\u1EB6":"A","\u1E00":"A","\u0104":"A","\u023A":"A","\u2C6F":"A","\uA732":"AA","\u00C6":"AE","\u01FC":"AE","\u01E2":"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B","\uFF22":"B","\u1E02":"B","\u1E04":"B","\u1E06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24B8":"C","\uFF23":"C","\u0106":"C","\u0108":"C","\u010A":"C","\u010C":"C","\u00C7":"C","\u1E08":"C","\u0187":"C","\u023B":"C","\uA73E":"C","\u24B9":"D","\uFF24":"D","\u1E0A":"D","\u010E":"D","\u1E0C":"D","\u1E10":"D","\u1E12":"D","\u1E0E":"D","\u0110":"D","\u018B":"D","\u018A":"D","\u0189":"D","\uA779":"D","\u01F1":"DZ","\u01C4":"DZ","\u01F2":"Dz","\u01C5":"Dz","\u24BA":"E","\uFF25":"E","\u00C8":"E","\u00C9":"E","\u00CA":"E","\u1EC0":"E","\u1EBE":"E","\u1EC4":"E","\u1EC2":"E","\u1EBC":"E","\u0112":"E","\u1E14":"E","\u1E16":"E","\u0114":"E","\u0116":"E","\u00CB":"E","\u1EBA":"E","\u011A":"E","\u0204":"E","\u0206":"E","\u1EB8":"E","\u1EC6":"E","\u0228":"E","\u1E1C":"E","\u0118":"E","\u1E18":"E","\u1E1A":"E","\u0190":"E","\u018E":"E","\u24BB":"F","\uFF26":"F","\u1E1E":"F","\u0191":"F","\uA77B":"F","\u24BC":"G","\uFF27":"G","\u01F4":"G","\u011C":"G","\u1E20":"G","\u011E":"G","\u0120":"G","\u01E6":"G","\u0122":"G","\u01E4":"G","\u0193":"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H","\uFF28":"H","\u0124":"H","\u1E22":"H","\u1E26":"H","\u021E":"H","\u1E24":"H","\u1E28":"H","\u1E2A":"H","\u0126":"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I","\uFF29":"I","\u00CC":"I","\u00CD":"I","\u00CE":"I","\u0128":"I","\u012A":"I","\u012C":"I","\u0130":"I","\u00CF":"I","\u1E2E":"I","\u1EC8":"I","\u01CF":"I","\u0208":"I","\u020A":"I","\u1ECA":"I","\u012E":"I","\u1E2C":"I","\u0197":"I","\u24BF":"J","\uFF2A":"J","\u0134":"J","\u0248":"J","\u24C0":"K","\uFF2B":"K","\u1E30":"K","\u01E8":"K","\u1E32":"K","\u0136":"K","\u1E34":"K","\u0198":"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L","\uFF2C":"L","\u013F":"L","\u0139":"L","\u013D":"L","\u1E36":"L","\u1E38":"L","\u013B":"L","\u1E3C":"L","\u1E3A":"L","\u0141":"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L","\u01C7":"LJ","\u01C8":"Lj","\u24C2":"M","\uFF2D":"M","\u1E3E":"M","\u1E40":"M","\u1E42":"M","\u2C6E":"M","\u019C":"M","\u24C3":"N","\uFF2E":"N","\u01F8":"N","\u0143":"N","\u00D1":"N","\u1E44":"N","\u0147":"N","\u1E46":"N","\u0145":"N","\u1E4A":"N","\u1E48":"N","\u0220":"N","\u019D":"N","\uA790":"N","\uA7A4":"N","\u01CA":"NJ","\u01CB":"Nj","\u24C4":"O","\uFF2F":"O","\u00D2":"O","\u00D3":"O","\u00D4":"O","\u1ED2":"O","\u1ED0":"O","\u1ED6":"O","\u1ED4":"O","\u00D5":"O","\u1E4C":"O","\u022C":"O","\u1E4E":"O","\u014C":"O","\u1E50":"O","\u1E52":"O","\u014E":"O","\u022E":"O","\u0230":"O","\u00D6":"O","\u022A":"O","\u1ECE":"O","\u0150":"O","\u01D1":"O","\u020C":"O","\u020E":"O","\u01A0":"O","\u1EDC":"O","\u1EDA":"O","\u1EE0":"O","\u1EDE":"O","\u1EE2":"O","\u1ECC":"O","\u1ED8":"O","\u01EA":"O","\u01EC":"O","\u00D8":"O","\u01FE":"O","\u0186":"O","\u019F":"O","\uA74A":"O","\uA74C":"O","\u01A2":"OI","\uA74E":"OO","\u0222":"OU","\u24C5":"P","\uFF30":"P","\u1E54":"P","\u1E56":"P","\u01A4":"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q","\uFF31":"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R","\uFF32":"R","\u0154":"R","\u1E58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1E5A":"R","\u1E5C":"R","\u0156":"R","\u1E5E":"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S","\uFF33":"S","\u1E9E":"S","\u015A":"S","\u1E64":"S","\u015C":"S","\u1E60":"S","\u0160":"S","\u1E66":"S","\u1E62":"S","\u1E68":"S","\u0218":"S","\u015E":"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T","\uFF34":"T","\u1E6A":"T","\u0164":"T","\u1E6C":"T","\u021A":"T","\u0162":"T","\u1E70":"T","\u1E6E":"T","\u0166":"T","\u01AC":"T","\u01AE":"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U","\uFF35":"U","\u00D9":"U","\u00DA":"U","\u00DB":"U","\u0168":"U","\u1E78":"U","\u016A":"U","\u1E7A":"U","\u016C":"U","\u00DC":"U","\u01DB":"U","\u01D7":"U","\u01D5":"U","\u01D9":"U","\u1EE6":"U","\u016E":"U","\u0170":"U","\u01D3":"U","\u0214":"U","\u0216":"U","\u01AF":"U","\u1EEA":"U","\u1EE8":"U","\u1EEE":"U","\u1EEC":"U","\u1EF0":"U","\u1EE4":"U","\u1E72":"U","\u0172":"U","\u1E76":"U","\u1E74":"U","\u0244":"U","\u24CB":"V","\uFF36":"V","\u1E7C":"V","\u1E7E":"V","\u01B2":"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W","\uFF37":"W","\u1E80":"W","\u1E82":"W","\u0174":"W","\u1E86":"W","\u1E84":"W","\u1E88":"W","\u2C72":"W","\u24CD":"X","\uFF38":"X","\u1E8A":"X","\u1E8C":"X","\u24CE":"Y","\uFF39":"Y","\u1EF2":"Y","\u00DD":"Y","\u0176":"Y","\u1EF8":"Y","\u0232":"Y","\u1E8E":"Y","\u0178":"Y","\u1EF6":"Y","\u1EF4":"Y","\u01B3":"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z","\uFF3A":"Z","\u0179":"Z","\u1E90":"Z","\u017B":"Z","\u017D":"Z","\u1E92":"Z","\u1E94":"Z","\u01B5":"Z","\u0224":"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a","\uFF41":"a","\u1E9A":"a","\u00E0":"a","\u00E1":"a","\u00E2":"a","\u1EA7":"a","\u1EA5":"a","\u1EAB":"a","\u1EA9":"a","\u00E3":"a","\u0101":"a","\u0103":"a","\u1EB1":"a","\u1EAF":"a","\u1EB5":"a","\u1EB3":"a","\u0227":"a","\u01E1":"a","\u00E4":"a","\u01DF":"a","\u1EA3":"a","\u00E5":"a","\u01FB":"a","\u01CE":"a","\u0201":"a","\u0203":"a","\u1EA1":"a","\u1EAD":"a","\u1EB7":"a","\u1E01":"a","\u0105":"a","\u2C65":"a","\u0250":"a","\uA733":"aa","\u00E6":"ae","\u01FD":"ae","\u01E3":"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b","\uFF42":"b","\u1E03":"b","\u1E05":"b","\u1E07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24D2":"c","\uFF43":"c","\u0107":"c","\u0109":"c","\u010B":"c","\u010D":"c","\u00E7":"c","\u1E09":"c","\u0188":"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d","\uFF44":"d","\u1E0B":"d","\u010F":"d","\u1E0D":"d","\u1E11":"d","\u1E13":"d","\u1E0F":"d","\u0111":"d","\u018C":"d","\u0256":"d","\u0257":"d","\uA77A":"d","\u01F3":"dz","\u01C6":"dz","\u24D4":"e","\uFF45":"e","\u00E8":"e","\u00E9":"e","\u00EA":"e","\u1EC1":"e","\u1EBF":"e","\u1EC5":"e","\u1EC3":"e","\u1EBD":"e","\u0113":"e","\u1E15":"e","\u1E17":"e","\u0115":"e","\u0117":"e","\u00EB":"e","\u1EBB":"e","\u011B":"e","\u0205":"e","\u0207":"e","\u1EB9":"e","\u1EC7":"e","\u0229":"e","\u1E1D":"e","\u0119":"e","\u1E19":"e","\u1E1B":"e","\u0247":"e","\u025B":"e","\u01DD":"e","\u24D5":"f","\uFF46":"f","\u1E1F":"f","\u0192":"f","\uA77C":"f","\u24D6":"g","\uFF47":"g","\u01F5":"g","\u011D":"g","\u1E21":"g","\u011F":"g","\u0121":"g","\u01E7":"g","\u0123":"g","\u01E5":"g","\u0260":"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h","\uFF48":"h","\u0125":"h","\u1E23":"h","\u1E27":"h","\u021F":"h","\u1E25":"h","\u1E29":"h","\u1E2B":"h","\u1E96":"h","\u0127":"h","\u2C68":"h","\u2C76":"h","\u0265":"h","\u0195":"hv","\u24D8":"i","\uFF49":"i","\u00EC":"i","\u00ED":"i","\u00EE":"i","\u0129":"i","\u012B":"i","\u012D":"i","\u00EF":"i","\u1E2F":"i","\u1EC9":"i","\u01D0":"i","\u0209":"i","\u020B":"i","\u1ECB":"i","\u012F":"i","\u1E2D":"i","\u0268":"i","\u0131":"i","\u24D9":"j","\uFF4A":"j","\u0135":"j","\u01F0":"j","\u0249":"j","\u24DA":"k","\uFF4B":"k","\u1E31":"k","\u01E9":"k","\u1E33":"k","\u0137":"k","\u1E35":"k","\u0199":"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l","\uFF4C":"l","\u0140":"l","\u013A":"l","\u013E":"l","\u1E37":"l","\u1E39":"l","\u013C":"l","\u1E3D":"l","\u1E3B":"l","\u017F":"l","\u0142":"l","\u019A":"l","\u026B":"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l","\u01C9":"lj","\u24DC":"m","\uFF4D":"m","\u1E3F":"m","\u1E41":"m","\u1E43":"m","\u0271":"m","\u026F":"m","\u24DD":"n","\uFF4E":"n","\u01F9":"n","\u0144":"n","\u00F1":"n","\u1E45":"n","\u0148":"n","\u1E47":"n","\u0146":"n","\u1E4B":"n","\u1E49":"n","\u019E":"n","\u0272":"n","\u0149":"n","\uA791":"n","\uA7A5":"n","\u01CC":"nj","\u24DE":"o","\uFF4F":"o","\u00F2":"o","\u00F3":"o","\u00F4":"o","\u1ED3":"o","\u1ED1":"o","\u1ED7":"o","\u1ED5":"o","\u00F5":"o","\u1E4D":"o","\u022D":"o","\u1E4F":"o","\u014D":"o","\u1E51":"o","\u1E53":"o","\u014F":"o","\u022F":"o","\u0231":"o","\u00F6":"o","\u022B":"o","\u1ECF":"o","\u0151":"o","\u01D2":"o","\u020D":"o","\u020F":"o","\u01A1":"o","\u1EDD":"o","\u1EDB":"o","\u1EE1":"o","\u1EDF":"o","\u1EE3":"o","\u1ECD":"o","\u1ED9":"o","\u01EB":"o","\u01ED":"o","\u00F8":"o","\u01FF":"o","\u0254":"o","\uA74B":"o","\uA74D":"o","\u0275":"o","\u01A3":"oi","\u0223":"ou","\uA74F":"oo","\u24DF":"p","\uFF50":"p","\u1E55":"p","\u1E57":"p","\u01A5":"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q","\uFF51":"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r","\uFF52":"r","\u0155":"r","\u1E59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1E5B":"r","\u1E5D":"r","\u0157":"r","\u1E5F":"r","\u024D":"r","\u027D":"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s","\uFF53":"s","\u00DF":"s","\u015B":"s","\u1E65":"s","\u015D":"s","\u1E61":"s","\u0161":"s","\u1E67":"s","\u1E63":"s","\u1E69":"s","\u0219":"s","\u015F":"s","\u023F":"s","\uA7A9":"s","\uA785":"s","\u1E9B":"s","\u24E3":"t","\uFF54":"t","\u1E6B":"t","\u1E97":"t","\u0165":"t","\u1E6D":"t","\u021B":"t","\u0163":"t","\u1E71":"t","\u1E6F":"t","\u0167":"t","\u01AD":"t","\u0288":"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u","\uFF55":"u","\u00F9":"u","\u00FA":"u","\u00FB":"u","\u0169":"u","\u1E79":"u","\u016B":"u","\u1E7B":"u","\u016D":"u","\u00FC":"u","\u01DC":"u","\u01D8":"u","\u01D6":"u","\u01DA":"u","\u1EE7":"u","\u016F":"u","\u0171":"u","\u01D4":"u","\u0215":"u","\u0217":"u","\u01B0":"u","\u1EEB":"u","\u1EE9":"u","\u1EEF":"u","\u1EED":"u","\u1EF1":"u","\u1EE5":"u","\u1E73":"u","\u0173":"u","\u1E77":"u","\u1E75":"u","\u0289":"u","\u24E5":"v","\uFF56":"v","\u1E7D":"v","\u1E7F":"v","\u028B":"v","\uA75F":"v","\u028C":"v","\uA761":"vy","\u24E6":"w","\uFF57":"w","\u1E81":"w","\u1E83":"w","\u0175":"w","\u1E87":"w","\u1E85":"w","\u1E98":"w","\u1E89":"w","\u2C73":"w","\u24E7":"x","\uFF58":"x","\u1E8B":"x","\u1E8D":"x","\u24E8":"y","\uFF59":"y","\u1EF3":"y","\u00FD":"y","\u0177":"y","\u1EF9":"y","\u0233":"y","\u1E8F":"y","\u00FF":"y","\u1EF7":"y","\u1E99":"y","\u1EF5":"y","\u01B4":"y","\u024F":"y","\u1EFF":"y","\u24E9":"z","\uFF5A":"z","\u017A":"z","\u1E91":"z","\u017C":"z","\u017E":"z","\u1E93":"z","\u1E95":"z","\u01B6":"z","\u0225":"z","\u0240":"z","\u2C6C":"z","\uA763":"z"};++ $document = $(document);++ nextUid=(function() { var counter=1; return function() { return counter++; }; }());+++ function stripDiacritics(str) {+ var ret, i, l, c;++ if (!str || str.length < 1) return str;++ ret = "";+ for (i = 0, l = str.length; i < l; i++) {+ c = str.charAt(i);+ ret += DIACRITICS[c] || c;+ }+ return ret;+ }++ function indexOf(value, array) {+ var i = 0, l = array.length;+ for (; i < l; i = i + 1) {+ if (equal(value, array[i])) return i;+ }+ return -1;+ }++ function measureScrollbar () {+ var $template = $( MEASURE_SCROLLBAR_TEMPLATE );+ $template.appendTo('body');++ var dim = {+ width: $template.width() - $template[0].clientWidth,+ height: $template.height() - $template[0].clientHeight+ };+ $template.remove();++ return dim;+ }++ /**+ * Compares equality of a and b+ * @param a+ * @param b+ */+ function equal(a, b) {+ if (a === b) return true;+ if (a === undefined || b === undefined) return false;+ if (a === null || b === null) return false;+ // Check whether 'a' or 'b' is a string (primitive or object).+ // The concatenation of an empty string (+'') converts its argument to a string's primitive.+ if (a.constructor === String) return a+'' === b+''; // a+'' - in case 'a' is a String object+ if (b.constructor === String) return b+'' === a+''; // b+'' - in case 'b' is a String object+ return false;+ }++ /**+ * Splits the string into an array of values, trimming each value. An empty array is returned for nulls or empty+ * strings+ * @param string+ * @param separator+ */+ function splitVal(string, separator) {+ var val, i, l;+ if (string === null || string.length < 1) return [];+ val = string.split(separator);+ for (i = 0, l = val.length; i < l; i = i + 1) val[i] = $.trim(val[i]);+ return val;+ }++ function getSideBorderPadding(element) {+ return element.outerWidth(false) - element.width();+ }++ function installKeyUpChangeEvent(element) {+ var key="keyup-change-value";+ element.on("keydown", function () {+ if ($.data(element, key) === undefined) {+ $.data(element, key, element.val());+ }+ });+ element.on("keyup", function () {+ var val= $.data(element, key);+ if (val !== undefined && element.val() !== val) {+ $.removeData(element, key);+ element.trigger("keyup-change");+ }+ });+ }++ $document.on("mousemove", function (e) {+ lastMousePosition.x = e.pageX;+ lastMousePosition.y = e.pageY;+ });++ /**+ * filters mouse events so an event is fired only if the mouse moved.+ *+ * filters out mouse events that occur when mouse is stationary but+ * the elements under the pointer are scrolled.+ */+ function installFilteredMouseMove(element) {+ element.on("mousemove", function (e) {+ var lastpos = lastMousePosition;+ if (lastpos === undefined || lastpos.x !== e.pageX || lastpos.y !== e.pageY) {+ $(e.target).trigger("mousemove-filtered", e);+ }+ });+ }++ /**+ * Debounces a function. Returns a function that calls the original fn function only if no invocations have been made+ * within the last quietMillis milliseconds.+ *+ * @param quietMillis number of milliseconds to wait before invoking fn+ * @param fn function to be debounced+ * @param ctx object to be used as this reference within fn+ * @return debounced version of fn+ */+ function debounce(quietMillis, fn, ctx) {+ ctx = ctx || undefined;+ var timeout;+ return function () {+ var args = arguments;+ window.clearTimeout(timeout);+ timeout = window.setTimeout(function() {+ fn.apply(ctx, args);+ }, quietMillis);+ };+ }++ /**+ * A simple implementation of a thunk+ * @param formula function used to lazily initialize the thunk+ * @return {Function}+ */+ function thunk(formula) {+ var evaluated = false,+ value;+ return function() {+ if (evaluated === false) { value = formula(); evaluated = true; }+ return value;+ };+ };++ function installDebouncedScroll(threshold, element) {+ var notify = debounce(threshold, function (e) { element.trigger("scroll-debounced", e);});+ element.on("scroll", function (e) {+ if (indexOf(e.target, element.get()) >= 0) notify(e);+ });+ }++ function focus($el) {+ if ($el[0] === document.activeElement) return;++ /* set the focus in a 0 timeout - that way the focus is set after the processing+ of the current event has finished - which seems like the only reliable way+ to set focus */+ window.setTimeout(function() {+ var el=$el[0], pos=$el.val().length, range;++ $el.focus();++ /* make sure el received focus so we do not error out when trying to manipulate the caret.+ sometimes modals or others listeners may steal it after its set */+ if ($el.is(":visible") && el === document.activeElement) {++ /* after the focus is set move the caret to the end, necessary when we val()+ just before setting focus */+ if(el.setSelectionRange)+ {+ el.setSelectionRange(pos, pos);+ }+ else if (el.createTextRange) {+ range = el.createTextRange();+ range.collapse(false);+ range.select();+ }+ }+ }, 0);+ }++ function getCursorInfo(el) {+ el = $(el)[0];+ var offset = 0;+ var length = 0;+ if ('selectionStart' in el) {+ offset = el.selectionStart;+ length = el.selectionEnd - offset;+ } else if ('selection' in document) {+ el.focus();+ var sel = document.selection.createRange();+ length = document.selection.createRange().text.length;+ sel.moveStart('character', -el.value.length);+ offset = sel.text.length - length;+ }+ return { offset: offset, length: length };+ }++ function killEvent(event) {+ event.preventDefault();+ event.stopPropagation();+ }+ function killEventImmediately(event) {+ event.preventDefault();+ event.stopImmediatePropagation();+ }++ function measureTextWidth(e) {+ if (!sizer){+ var style = e[0].currentStyle || window.getComputedStyle(e[0], null);+ sizer = $(document.createElement("div")).css({+ position: "absolute",+ left: "-10000px",+ top: "-10000px",+ display: "none",+ fontSize: style.fontSize,+ fontFamily: style.fontFamily,+ fontStyle: style.fontStyle,+ fontWeight: style.fontWeight,+ letterSpacing: style.letterSpacing,+ textTransform: style.textTransform,+ whiteSpace: "nowrap"+ });+ sizer.attr("class","select2-sizer");+ $("body").append(sizer);+ }+ sizer.text(e.val());+ return sizer.width();+ }++ function syncCssClasses(dest, src, adapter) {+ var classes, replacements = [], adapted;++ classes = dest.attr("class");+ if (classes) {+ classes = '' + classes; // for IE which returns object+ $(classes.split(" ")).each2(function() {+ if (this.indexOf("select2-") === 0) {+ replacements.push(this);+ }+ });+ }+ classes = src.attr("class");+ if (classes) {+ classes = '' + classes; // for IE which returns object+ $(classes.split(" ")).each2(function() {+ if (this.indexOf("select2-") !== 0) {+ adapted = adapter(this);+ if (adapted) {+ replacements.push(adapted);+ }+ }+ });+ }+ dest.attr("class", replacements.join(" "));+ }+++ function markMatch(text, term, markup, escapeMarkup) {+ var match=stripDiacritics(text.toUpperCase()).indexOf(stripDiacritics(term.toUpperCase())),+ tl=term.length;++ if (match<0) {+ markup.push(escapeMarkup(text));+ return;+ }++ markup.push(escapeMarkup(text.substring(0, match)));+ markup.push("<span class='select2-match'>");+ markup.push(escapeMarkup(text.substring(match, match + tl)));+ markup.push("</span>");+ markup.push(escapeMarkup(text.substring(match + tl, text.length)));+ }++ function defaultEscapeMarkup(markup) {+ var replace_map = {+ '\\': '\',+ '&': '&',+ '<': '<',+ '>': '>',+ '"': '"',+ "'": ''',+ "/": '/'+ };++ return String(markup).replace(/[&<>"'\/\\]/g, function (match) {+ return replace_map[match];+ });+ }++ /**+ * Produces an ajax-based query function+ *+ * @param options object containing configuration paramters+ * @param options.params parameter map for the transport ajax call, can contain such options as cache, jsonpCallback, etc. see $.ajax+ * @param options.transport function that will be used to execute the ajax request. must be compatible with parameters supported by $.ajax+ * @param options.url url for the data+ * @param options.data a function(searchTerm, pageNumber, context) that should return an object containing query string parameters for the above url.+ * @param options.dataType request data type: ajax, jsonp, other datatatypes supported by jQuery's $.ajax function or the transport function if specified+ * @param options.quietMillis (optional) milliseconds to wait before making the ajaxRequest, helps debounce the ajax function if invoked too often+ * @param options.results a function(remoteData, pageNumber) that converts data returned form the remote request to the format expected by Select2.+ * The expected format is an object containing the following keys:+ * results array of objects that will be used as choices+ * more (optional) boolean indicating whether there are more results available+ * Example: {results:[{id:1, text:'Red'},{id:2, text:'Blue'}], more:true}+ */+ function ajax(options) {+ var timeout, // current scheduled but not yet executed request+ handler = null,+ quietMillis = options.quietMillis || 100,+ ajaxUrl = options.url,+ self = this;++ return function (query) {+ window.clearTimeout(timeout);+ timeout = window.setTimeout(function () {+ var data = options.data, // ajax data function+ url = ajaxUrl, // ajax url string or function+ transport = options.transport || $.fn.select2.ajaxDefaults.transport,+ // deprecated - to be removed in 4.0 - use params instead+ deprecated = {+ type: options.type || 'GET', // set type of request (GET or POST)+ cache: options.cache || false,+ jsonpCallback: options.jsonpCallback||undefined,+ dataType: options.dataType||"json"+ },+ params = $.extend({}, $.fn.select2.ajaxDefaults.params, deprecated);++ data = data ? data.call(self, query.term, query.page, query.context) : null;+ url = (typeof url === 'function') ? url.call(self, query.term, query.page, query.context) : url;++ if (handler) { handler.abort(); }++ if (options.params) {+ if ($.isFunction(options.params)) {+ $.extend(params, options.params.call(self));+ } else {+ $.extend(params, options.params);+ }+ }++ $.extend(params, {+ url: url,+ dataType: options.dataType,+ data: data,+ success: function (data) {+ // TODO - replace query.page with query so users have access to term, page, etc.+ var results = options.results(data, query.page);+ query.callback(results);+ }+ });+ handler = transport.call(self, params);+ }, quietMillis);+ };+ }++ /**+ * Produces a query function that works with a local array+ *+ * @param options object containing configuration parameters. The options parameter can either be an array or an+ * object.+ *+ * If the array form is used it is assumed that it contains objects with 'id' and 'text' keys.+ *+ * If the object form is used ti is assumed that it contains 'data' and 'text' keys. The 'data' key should contain+ * an array of objects that will be used as choices. These objects must contain at least an 'id' key. The 'text'+ * key can either be a String in which case it is expected that each element in the 'data' array has a key with the+ * value of 'text' which will be used to match choices. Alternatively, text can be a function(item) that can extract+ * the text.+ */+ function local(options) {+ var data = options, // data elements+ dataText,+ tmp,+ text = function (item) { return ""+item.text; }; // function used to retrieve the text portion of a data item that is matched against the search++ if ($.isArray(data)) {+ tmp = data;+ data = { results: tmp };+ }++ if ($.isFunction(data) === false) {+ tmp = data;+ data = function() { return tmp; };+ }++ var dataItem = data();+ if (dataItem.text) {+ text = dataItem.text;+ // if text is not a function we assume it to be a key name+ if (!$.isFunction(text)) {+ dataText = dataItem.text; // we need to store this in a separate variable because in the next step data gets reset and data.text is no longer available+ text = function (item) { return item[dataText]; };+ }+ }++ return function (query) {+ var t = query.term, filtered = { results: [] }, process;+ if (t === "") {+ query.callback(data());+ return;+ }++ process = function(datum, collection) {+ var group, attr;+ datum = datum[0];+ if (datum.children) {+ group = {};+ for (attr in datum) {+ if (datum.hasOwnProperty(attr)) group[attr]=datum[attr];+ }+ group.children=[];+ $(datum.children).each2(function(i, childDatum) { process(childDatum, group.children); });+ if (group.children.length || query.matcher(t, text(group), datum)) {+ collection.push(group);+ }+ } else {+ if (query.matcher(t, text(datum), datum)) {+ collection.push(datum);+ }+ }+ };++ $(data().results).each2(function(i, datum) { process(datum, filtered.results); });+ query.callback(filtered);+ };+ }++ // TODO javadoc+ function tags(data) {+ var isFunc = $.isFunction(data);+ return function (query) {+ var t = query.term, filtered = {results: []};+ $(isFunc ? data() : data).each(function () {+ var isObject = this.text !== undefined,+ text = isObject ? this.text : this;+ if (t === "" || query.matcher(t, text)) {+ filtered.results.push(isObject ? this : {id: this, text: this});+ }+ });+ query.callback(filtered);+ };+ }++ /**+ * Checks if the formatter function should be used.+ *+ * Throws an error if it is not a function. Returns true if it should be used,+ * false if no formatting should be performed.+ *+ * @param formatter+ */+ function checkFormatter(formatter, formatterName) {+ if ($.isFunction(formatter)) return true;+ if (!formatter) return false;+ throw new Error(formatterName +" must be a function or a falsy value");+ }++ function evaluate(val) {+ return $.isFunction(val) ? val() : val;+ }++ function countResults(results) {+ var count = 0;+ $.each(results, function(i, item) {+ if (item.children) {+ count += countResults(item.children);+ } else {+ count++;+ }+ });+ return count;+ }++ /**+ * Default tokenizer. This function uses breaks the input on substring match of any string from the+ * opts.tokenSeparators array and uses opts.createSearchChoice to create the choice object. Both of those+ * two options have to be defined in order for the tokenizer to work.+ *+ * @param input text user has typed so far or pasted into the search field+ * @param selection currently selected choices+ * @param selectCallback function(choice) callback tho add the choice to selection+ * @param opts select2's opts+ * @return undefined/null to leave the current input unchanged, or a string to change the input to the returned value+ */+ function defaultTokenizer(input, selection, selectCallback, opts) {+ var original = input, // store the original so we can compare and know if we need to tell the search to update its text+ dupe = false, // check for whether a token we extracted represents a duplicate selected choice+ token, // token+ index, // position at which the separator was found+ i, l, // looping variables+ separator; // the matched separator++ if (!opts.createSearchChoice || !opts.tokenSeparators || opts.tokenSeparators.length < 1) return undefined;++ while (true) {+ index = -1;++ for (i = 0, l = opts.tokenSeparators.length; i < l; i++) {+ separator = opts.tokenSeparators[i];+ index = input.indexOf(separator);+ if (index >= 0) break;+ }++ if (index < 0) break; // did not find any token separator in the input string, bail++ token = input.substring(0, index);+ input = input.substring(index + separator.length);++ if (token.length > 0) {+ token = opts.createSearchChoice.call(this, token, selection);+ if (token !== undefined && token !== null && opts.id(token) !== undefined && opts.id(token) !== null) {+ dupe = false;+ for (i = 0, l = selection.length; i < l; i++) {+ if (equal(opts.id(token), opts.id(selection[i]))) {+ dupe = true; break;+ }+ }++ if (!dupe) selectCallback(token);+ }+ }+ }++ if (original!==input) return input;+ }++ /**+ * Creates a new class+ *+ * @param superClass+ * @param methods+ */+ function clazz(SuperClass, methods) {+ var constructor = function () {};+ constructor.prototype = new SuperClass;+ constructor.prototype.constructor = constructor;+ constructor.prototype.parent = SuperClass.prototype;+ constructor.prototype = $.extend(constructor.prototype, methods);+ return constructor;+ }++ AbstractSelect2 = clazz(Object, {++ // abstract+ bind: function (func) {+ var self = this;+ return function () {+ func.apply(self, arguments);+ };+ },++ // abstract+ init: function (opts) {+ var results, search, resultsSelector = ".select2-results";++ // prepare options+ this.opts = opts = this.prepareOpts(opts);++ this.id=opts.id;++ // destroy if called on an existing component+ if (opts.element.data("select2") !== undefined &&+ opts.element.data("select2") !== null) {+ opts.element.data("select2").destroy();+ }++ this.container = this.createContainer();++ this.containerId="s2id_"+(opts.element.attr("id") || "autogen"+nextUid());+ this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');+ this.container.attr("id", this.containerId);++ // cache the body so future lookups are cheap+ this.body = thunk(function() { return opts.element.closest("body"); });++ syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass);++ this.container.attr("style", opts.element.attr("style"));+ this.container.css(evaluate(opts.containerCss));+ this.container.addClass(evaluate(opts.containerCssClass));++ this.elementTabIndex = this.opts.element.attr("tabindex");++ // swap container for the element+ this.opts.element+ .data("select2", this)+ .attr("tabindex", "-1")+ .before(this.container)+ .on("click.select2", killEvent); // do not leak click events++ this.container.data("select2", this);++ this.dropdown = this.container.find(".select2-drop");++ syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass);++ this.dropdown.addClass(evaluate(opts.dropdownCssClass));+ this.dropdown.data("select2", this);+ this.dropdown.on("click", killEvent);++ this.results = results = this.container.find(resultsSelector);+ this.search = search = this.container.find("input.select2-input");++ this.queryCount = 0;+ this.resultsPage = 0;+ this.context = null;++ // initialize the container+ this.initContainer();++ this.container.on("click", killEvent);++ installFilteredMouseMove(this.results);+ this.dropdown.on("mousemove-filtered touchstart touchmove touchend", resultsSelector, this.bind(this.highlightUnderEvent));++ installDebouncedScroll(80, this.results);+ this.dropdown.on("scroll-debounced", resultsSelector, this.bind(this.loadMoreIfNeeded));++ // do not propagate change event from the search field out of the component+ $(this.container).on("change", ".select2-input", function(e) {e.stopPropagation();});+ $(this.dropdown).on("change", ".select2-input", function(e) {e.stopPropagation();});++ // if jquery.mousewheel plugin is installed we can prevent out-of-bounds scrolling of results via mousewheel+ if ($.fn.mousewheel) {+ results.mousewheel(function (e, delta, deltaX, deltaY) {+ var top = results.scrollTop();+ if (deltaY > 0 && top - deltaY <= 0) {+ results.scrollTop(0);+ killEvent(e);+ } else if (deltaY < 0 && results.get(0).scrollHeight - results.scrollTop() + deltaY <= results.height()) {+ results.scrollTop(results.get(0).scrollHeight - results.height());+ killEvent(e);+ }+ });+ }++ installKeyUpChangeEvent(search);+ search.on("keyup-change input paste", this.bind(this.updateResults));+ search.on("focus", function () { search.addClass("select2-focused"); });+ search.on("blur", function () { search.removeClass("select2-focused");});++ this.dropdown.on("mouseup", resultsSelector, this.bind(function (e) {+ if ($(e.target).closest(".select2-result-selectable").length > 0) {+ this.highlightUnderEvent(e);+ this.selectHighlighted(e);+ }+ }));++ // trap all mouse events from leaving the dropdown. sometimes there may be a modal that is listening+ // for mouse events outside of itself so it can close itself. since the dropdown is now outside the select2's+ // dom it will trigger the popup close, which is not what we want+ this.dropdown.on("click mouseup mousedown", function (e) { e.stopPropagation(); });++ if ($.isFunction(this.opts.initSelection)) {+ // initialize selection based on the current value of the source element+ this.initSelection();++ // if the user has provided a function that can set selection based on the value of the source element+ // we monitor the change event on the element and trigger it, allowing for two way synchronization+ this.monitorSource();+ }++ if (opts.maximumInputLength !== null) {+ this.search.attr("maxlength", opts.maximumInputLength);+ }++ var disabled = opts.element.prop("disabled");+ if (disabled === undefined) disabled = false;+ this.enable(!disabled);++ var readonly = opts.element.prop("readonly");+ if (readonly === undefined) readonly = false;+ this.readonly(readonly);++ // Calculate size of scrollbar+ scrollBarDimensions = scrollBarDimensions || measureScrollbar();++ this.autofocus = opts.element.prop("autofocus");+ opts.element.prop("autofocus", false);+ if (this.autofocus) this.focus();++ this.nextSearchTerm = undefined;+ },++ // abstract+ destroy: function () {+ var element=this.opts.element, select2 = element.data("select2");++ this.close();++ if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }++ if (select2 !== undefined) {+ select2.container.remove();+ select2.dropdown.remove();+ element+ .removeClass("select2-offscreen")+ .removeData("select2")+ .off(".select2")+ .prop("autofocus", this.autofocus || false);+ if (this.elementTabIndex) {+ element.attr({tabindex: this.elementTabIndex});+ } else {+ element.removeAttr("tabindex");+ }+ element.show();+ }+ },++ // abstract+ optionToData: function(element) {+ if (element.is("option")) {+ return {+ id:element.prop("value"),+ text:element.text(),+ element: element.get(),+ css: element.attr("class"),+ disabled: element.prop("disabled"),+ locked: equal(element.attr("locked"), "locked") || equal(element.data("locked"), true)+ };+ } else if (element.is("optgroup")) {+ return {+ text:element.attr("label"),+ children:[],+ element: element.get(),+ css: element.attr("class")+ };+ }+ },++ // abstract+ prepareOpts: function (opts) {+ var element, select, idKey, ajaxUrl, self = this;++ element = opts.element;++ if (element.get(0).tagName.toLowerCase() === "select") {+ this.select = select = opts.element;+ }++ if (select) {+ // these options are not allowed when attached to a select because they are picked up off the element itself+ $.each(["id", "multiple", "ajax", "query", "createSearchChoice", "initSelection", "data", "tags"], function () {+ if (this in opts) {+ throw new Error("Option '" + this + "' is not allowed for Select2 when attached to a <select> element.");+ }+ });+ }++ opts = $.extend({}, {+ populateResults: function(container, results, query) {+ var populate, id=this.opts.id;++ populate=function(results, container, depth) {++ var i, l, result, selectable, disabled, compound, node, label, innerContainer, formatted;++ results = opts.sortResults(results, container, query);++ for (i = 0, l = results.length; i < l; i = i + 1) {++ result=results[i];++ disabled = (result.disabled === true);+ selectable = (!disabled) && (id(result) !== undefined);++ compound=result.children && result.children.length > 0;++ node=$("<li></li>");+ node.addClass("select2-results-dept-"+depth);+ node.addClass("select2-result");+ node.addClass(selectable ? "select2-result-selectable" : "select2-result-unselectable");+ if (disabled) { node.addClass("select2-disabled"); }+ if (compound) { node.addClass("select2-result-with-children"); }+ node.addClass(self.opts.formatResultCssClass(result));++ label=$(document.createElement("div"));+ label.addClass("select2-result-label");++ formatted=opts.formatResult(result, label, query, self.opts.escapeMarkup);+ if (formatted!==undefined) {+ label.html(formatted);+ }++ node.append(label);++ if (compound) {++ innerContainer=$("<ul></ul>");+ innerContainer.addClass("select2-result-sub");+ populate(result.children, innerContainer, depth+1);+ node.append(innerContainer);+ }++ node.data("select2-data", result);+ container.append(node);+ }+ };++ populate(results, container, 0);+ }+ }, $.fn.select2.defaults, opts);++ if (typeof(opts.id) !== "function") {+ idKey = opts.id;+ opts.id = function (e) { return e[idKey]; };+ }++ if ($.isArray(opts.element.data("select2Tags"))) {+ if ("tags" in opts) {+ throw "tags specified as both an attribute 'data-select2-tags' and in options of Select2 " + opts.element.attr("id");+ }+ opts.tags=opts.element.data("select2Tags");+ }++ if (select) {+ opts.query = this.bind(function (query) {+ var data = { results: [], more: false },+ term = query.term,+ children, placeholderOption, process;++ process=function(element, collection) {+ var group;+ if (element.is("option")) {+ if (query.matcher(term, element.text(), element)) {+ collection.push(self.optionToData(element));+ }+ } else if (element.is("optgroup")) {+ group=self.optionToData(element);+ element.children().each2(function(i, elm) { process(elm, group.children); });+ if (group.children.length>0) {+ collection.push(group);+ }+ }+ };++ children=element.children();++ // ignore the placeholder option if there is one+ if (this.getPlaceholder() !== undefined && children.length > 0) {+ placeholderOption = this.getPlaceholderOption();+ if (placeholderOption) {+ children=children.not(placeholderOption);+ }+ }++ children.each2(function(i, elm) { process(elm, data.results); });++ query.callback(data);+ });+ // this is needed because inside val() we construct choices from options and there id is hardcoded+ opts.id=function(e) { return e.id; };+ opts.formatResultCssClass = function(data) { return data.css; };+ } else {+ if (!("query" in opts)) {++ if ("ajax" in opts) {+ ajaxUrl = opts.element.data("ajax-url");+ if (ajaxUrl && ajaxUrl.length > 0) {+ opts.ajax.url = ajaxUrl;+ }+ opts.query = ajax.call(opts.element, opts.ajax);+ } else if ("data" in opts) {+ opts.query = local(opts.data);+ } else if ("tags" in opts) {+ opts.query = tags(opts.tags);+ if (opts.createSearchChoice === undefined) {+ opts.createSearchChoice = function (term) { return {id: $.trim(term), text: $.trim(term)}; };+ }+ if (opts.initSelection === undefined) {+ opts.initSelection = function (element, callback) {+ var data = [];+ $(splitVal(element.val(), opts.separator)).each(function () {+ var obj = { id: this, text: this },+ tags = opts.tags;+ if ($.isFunction(tags)) tags=tags();+ $(tags).each(function() { if (equal(this.id, obj.id)) { obj = this; return false; } });+ data.push(obj);+ });++ callback(data);+ };+ }+ }+ }+ }+ if (typeof(opts.query) !== "function") {+ throw "query function not defined for Select2 " + opts.element.attr("id");+ }++ return opts;+ },++ /**+ * Monitor the original element for changes and update select2 accordingly+ */+ // abstract+ monitorSource: function () {+ var el = this.opts.element, sync, observer;++ el.on("change.select2", this.bind(function (e) {+ if (this.opts.element.data("select2-change-triggered") !== true) {+ this.initSelection();+ }+ }));++ sync = this.bind(function () {++ // sync enabled state+ var disabled = el.prop("disabled");+ if (disabled === undefined) disabled = false;+ this.enable(!disabled);++ var readonly = el.prop("readonly");+ if (readonly === undefined) readonly = false;+ this.readonly(readonly);++ syncCssClasses(this.container, this.opts.element, this.opts.adaptContainerCssClass);+ this.container.addClass(evaluate(this.opts.containerCssClass));++ syncCssClasses(this.dropdown, this.opts.element, this.opts.adaptDropdownCssClass);+ this.dropdown.addClass(evaluate(this.opts.dropdownCssClass));++ });++ // IE8-10+ el.on("propertychange.select2", sync);++ // hold onto a reference of the callback to work around a chromium bug+ if (this.mutationCallback === undefined) {+ this.mutationCallback = function (mutations) {+ mutations.forEach(sync);+ }+ }++ // safari, chrome, firefox, IE11+ observer = window.MutationObserver || window.WebKitMutationObserver|| window.MozMutationObserver;+ if (observer !== undefined) {+ if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }+ this.propertyObserver = new observer(this.mutationCallback);+ this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false });+ }+ },++ // abstract+ triggerSelect: function(data) {+ var evt = $.Event("select2-selecting", { val: this.id(data), object: data });+ this.opts.element.trigger(evt);+ return !evt.isDefaultPrevented();+ },++ /**+ * Triggers the change event on the source element+ */+ // abstract+ triggerChange: function (details) {++ details = details || {};+ details= $.extend({}, details, { type: "change", val: this.val() });+ // prevents recursive triggering+ this.opts.element.data("select2-change-triggered", true);+ this.opts.element.trigger(details);+ this.opts.element.data("select2-change-triggered", false);++ // some validation frameworks ignore the change event and listen instead to keyup, click for selects+ // so here we trigger the click event manually+ this.opts.element.click();++ // ValidationEngine ignorea the change event and listens instead to blur+ // so here we trigger the blur event manually if so desired+ if (this.opts.blurOnChange)+ this.opts.element.blur();+ },++ //abstract+ isInterfaceEnabled: function()+ {+ return this.enabledInterface === true;+ },++ // abstract+ enableInterface: function() {+ var enabled = this._enabled && !this._readonly,+ disabled = !enabled;++ if (enabled === this.enabledInterface) return false;++ this.container.toggleClass("select2-container-disabled", disabled);+ this.close();+ this.enabledInterface = enabled;++ return true;+ },++ // abstract+ enable: function(enabled) {+ if (enabled === undefined) enabled = true;+ if (this._enabled === enabled) return;+ this._enabled = enabled;++ this.opts.element.prop("disabled", !enabled);+ this.enableInterface();+ },++ // abstract+ disable: function() {+ this.enable(false);+ },++ // abstract+ readonly: function(enabled) {+ if (enabled === undefined) enabled = false;+ if (this._readonly === enabled) return false;+ this._readonly = enabled;++ this.opts.element.prop("readonly", enabled);+ this.enableInterface();+ return true;+ },++ // abstract+ opened: function () {+ return this.container.hasClass("select2-dropdown-open");+ },++ // abstract+ positionDropdown: function() {+ var $dropdown = this.dropdown,+ offset = this.container.offset(),+ height = this.container.outerHeight(false),+ width = this.container.outerWidth(false),+ dropHeight = $dropdown.outerHeight(false),+ $window = $(window),+ windowWidth = $window.width(),+ windowHeight = $window.height(),+ viewPortRight = $window.scrollLeft() + windowWidth,+ viewportBottom = $window.scrollTop() + windowHeight,+ dropTop = offset.top + height,+ dropLeft = offset.left,+ enoughRoomBelow = dropTop + dropHeight <= viewportBottom,+ enoughRoomAbove = (offset.top - dropHeight) >= this.body().scrollTop(),+ dropWidth = $dropdown.outerWidth(false),+ enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight,+ aboveNow = $dropdown.hasClass("select2-drop-above"),+ bodyOffset,+ above,+ changeDirection,+ css,+ resultsListNode;++ // always prefer the current above/below alignment, unless there is not enough room+ if (aboveNow) {+ above = true;+ if (!enoughRoomAbove && enoughRoomBelow) {+ changeDirection = true;+ above = false;+ }+ } else {+ above = false;+ if (!enoughRoomBelow && enoughRoomAbove) {+ changeDirection = true;+ above = true;+ }+ }++ //if we are changing direction we need to get positions when dropdown is hidden;+ if (changeDirection) {+ $dropdown.hide();+ offset = this.container.offset();+ height = this.container.outerHeight(false);+ width = this.container.outerWidth(false);+ dropHeight = $dropdown.outerHeight(false);+ viewPortRight = $window.scrollLeft() + windowWidth;+ viewportBottom = $window.scrollTop() + windowHeight;+ dropTop = offset.top + height;+ dropLeft = offset.left;+ dropWidth = $dropdown.outerWidth(false);+ enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight;+ $dropdown.show();+ }++ if (this.opts.dropdownAutoWidth) {+ resultsListNode = $('.select2-results', $dropdown)[0];+ $dropdown.addClass('select2-drop-auto-width');+ $dropdown.css('width', '');+ // Add scrollbar width to dropdown if vertical scrollbar is present+ dropWidth = $dropdown.outerWidth(false) + (resultsListNode.scrollHeight === resultsListNode.clientHeight ? 0 : scrollBarDimensions.width);+ dropWidth > width ? width = dropWidth : dropWidth = width;+ enoughRoomOnRight = dropLeft + dropWidth <= viewPortRight;+ }+ else {+ this.container.removeClass('select2-drop-auto-width');+ }++ //console.log("below/ droptop:", dropTop, "dropHeight", dropHeight, "sum", (dropTop+dropHeight)+" viewport bottom", viewportBottom, "enough?", enoughRoomBelow);+ //console.log("above/ offset.top", offset.top, "dropHeight", dropHeight, "top", (offset.top-dropHeight), "scrollTop", this.body().scrollTop(), "enough?", enoughRoomAbove);++ // fix positioning when body has an offset and is not position: static+ if (this.body().css('position') !== 'static') {+ bodyOffset = this.body().offset();+ dropTop -= bodyOffset.top;+ dropLeft -= bodyOffset.left;+ }++ if (!enoughRoomOnRight) {+ dropLeft = offset.left + width - dropWidth;+ }++ css = {+ left: dropLeft,+ width: width+ };++ if (above) {+ css.bottom = windowHeight - offset.top;+ css.top = 'auto';+ this.container.addClass("select2-drop-above");+ $dropdown.addClass("select2-drop-above");+ }+ else {+ css.top = dropTop;+ css.bottom = 'auto';+ this.container.removeClass("select2-drop-above");+ $dropdown.removeClass("select2-drop-above");+ }+ css = $.extend(css, evaluate(this.opts.dropdownCss));++ $dropdown.css(css);+ },++ // abstract+ shouldOpen: function() {+ var event;++ if (this.opened()) return false;++ if (this._enabled === false || this._readonly === true) return false;++ event = $.Event("select2-opening");+ this.opts.element.trigger(event);+ return !event.isDefaultPrevented();+ },++ // abstract+ clearDropdownAlignmentPreference: function() {+ // clear the classes used to figure out the preference of where the dropdown should be opened+ this.container.removeClass("select2-drop-above");+ this.dropdown.removeClass("select2-drop-above");+ },++ /**+ * Opens the dropdown+ *+ * @return {Boolean} whether or not dropdown was opened. This method will return false if, for example,+ * the dropdown is already open, or if the 'open' event listener on the element called preventDefault().+ */+ // abstract+ open: function () {++ if (!this.shouldOpen()) return false;++ this.opening();++ return true;+ },++ /**+ * Performs the opening of the dropdown+ */+ // abstract+ opening: function() {+ var cid = this.containerId,+ scroll = "scroll." + cid,+ resize = "resize."+cid,+ orient = "orientationchange."+cid,+ mask;++ this.container.addClass("select2-dropdown-open").addClass("select2-container-active");++ this.clearDropdownAlignmentPreference();++ if(this.dropdown[0] !== this.body().children().last()[0]) {+ this.dropdown.detach().appendTo(this.body());+ }++ // create the dropdown mask if doesnt already exist+ mask = $("#select2-drop-mask");+ if (mask.length == 0) {+ mask = $(document.createElement("div"));+ mask.attr("id","select2-drop-mask").attr("class","select2-drop-mask");+ mask.hide();+ mask.appendTo(this.body());+ mask.on("mousedown touchstart click", function (e) {+ var dropdown = $("#select2-drop"), self;+ if (dropdown.length > 0) {+ self=dropdown.data("select2");+ if (self.opts.selectOnBlur) {+ self.selectHighlighted({noFocus: true});+ }+ self.close({focus:true});+ e.preventDefault();+ e.stopPropagation();+ }+ });+ }++ // ensure the mask is always right before the dropdown+ if (this.dropdown.prev()[0] !== mask[0]) {+ this.dropdown.before(mask);+ }++ // move the global id to the correct dropdown+ $("#select2-drop").removeAttr("id");+ this.dropdown.attr("id", "select2-drop");++ // show the elements+ mask.show();++ this.positionDropdown();+ this.dropdown.show();+ this.positionDropdown();++ this.dropdown.addClass("select2-drop-active");++ // attach listeners to events that can change the position of the container and thus require+ // the position of the dropdown to be updated as well so it does not come unglued from the container+ var that = this;+ this.container.parents().add(window).each(function () {+ $(this).on(resize+" "+scroll+" "+orient, function (e) {+ that.positionDropdown();+ });+ });+++ },++ // abstract+ close: function () {+ if (!this.opened()) return;++ var cid = this.containerId,+ scroll = "scroll." + cid,+ resize = "resize."+cid,+ orient = "orientationchange."+cid;++ // unbind event listeners+ this.container.parents().add(window).each(function () { $(this).off(scroll).off(resize).off(orient); });++ this.clearDropdownAlignmentPreference();++ $("#select2-drop-mask").hide();+ this.dropdown.removeAttr("id"); // only the active dropdown has the select2-drop id+ this.dropdown.hide();+ this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active");+ this.results.empty();+++ this.clearSearch();+ this.search.removeClass("select2-active");+ this.opts.element.trigger($.Event("select2-close"));+ },++ /**+ * Opens control, sets input value, and updates results.+ */+ // abstract+ externalSearch: function (term) {+ this.open();+ this.search.val(term);+ this.updateResults(false);+ },++ // abstract+ clearSearch: function () {++ },++ //abstract+ getMaximumSelectionSize: function() {+ return evaluate(this.opts.maximumSelectionSize);+ },++ // abstract+ ensureHighlightVisible: function () {+ var results = this.results, children, index, child, hb, rb, y, more;++ index = this.highlight();++ if (index < 0) return;++ if (index == 0) {++ // if the first element is highlighted scroll all the way to the top,+ // that way any unselectable headers above it will also be scrolled+ // into view++ results.scrollTop(0);+ return;+ }++ children = this.findHighlightableChoices().find('.select2-result-label');++ child = $(children[index]);++ hb = child.offset().top + child.outerHeight(true);++ // if this is the last child lets also make sure select2-more-results is visible+ if (index === children.length - 1) {+ more = results.find("li.select2-more-results");+ if (more.length > 0) {+ hb = more.offset().top + more.outerHeight(true);+ }+ }++ rb = results.offset().top + results.outerHeight(true);+ if (hb > rb) {+ results.scrollTop(results.scrollTop() + (hb - rb));+ }+ y = child.offset().top - results.offset().top;++ // make sure the top of the element is visible+ if (y < 0 && child.css('display') != 'none' ) {+ results.scrollTop(results.scrollTop() + y); // y is negative+ }+ },++ // abstract+ findHighlightableChoices: function() {+ return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)");+ },++ // abstract+ moveHighlight: function (delta) {+ var choices = this.findHighlightableChoices(),+ index = this.highlight();++ while (index > -1 && index < choices.length) {+ index += delta;+ var choice = $(choices[index]);+ if (choice.hasClass("select2-result-selectable") && !choice.hasClass("select2-disabled") && !choice.hasClass("select2-selected")) {+ this.highlight(index);+ break;+ }+ }+ },++ // abstract+ highlight: function (index) {+ var choices = this.findHighlightableChoices(),+ choice,+ data;++ if (arguments.length === 0) {+ return indexOf(choices.filter(".select2-highlighted")[0], choices.get());+ }++ if (index >= choices.length) index = choices.length - 1;+ if (index < 0) index = 0;++ this.removeHighlight();++ choice = $(choices[index]);+ choice.addClass("select2-highlighted");++ this.ensureHighlightVisible();++ data = choice.data("select2-data");+ if (data) {+ this.opts.element.trigger({ type: "select2-highlight", val: this.id(data), choice: data });+ }+ },++ removeHighlight: function() {+ this.results.find(".select2-highlighted").removeClass("select2-highlighted");+ },++ // abstract+ countSelectableResults: function() {+ return this.findHighlightableChoices().length;+ },++ // abstract+ highlightUnderEvent: function (event) {+ var el = $(event.target).closest(".select2-result-selectable");+ if (el.length > 0 && !el.is(".select2-highlighted")) {+ var choices = this.findHighlightableChoices();+ this.highlight(choices.index(el));+ } else if (el.length == 0) {+ // if we are over an unselectable item remove all highlights+ this.removeHighlight();+ }+ },++ // abstract+ loadMoreIfNeeded: function () {+ var results = this.results,+ more = results.find("li.select2-more-results"),+ below, // pixels the element is below the scroll fold, below==0 is when the element is starting to be visible+ page = this.resultsPage + 1,+ self=this,+ term=this.search.val(),+ context=this.context;++ if (more.length === 0) return;+ below = more.offset().top - results.offset().top - results.height();++ if (below <= this.opts.loadMorePadding) {+ more.addClass("select2-active");+ this.opts.query({+ element: this.opts.element,+ term: term,+ page: page,+ context: context,+ matcher: this.opts.matcher,+ callback: this.bind(function (data) {++ // ignore a response if the select2 has been closed before it was received+ if (!self.opened()) return;+++ self.opts.populateResults.call(this, results, data.results, {term: term, page: page, context:context});+ self.postprocessResults(data, false, false);++ if (data.more===true) {+ more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1));+ window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);+ } else {+ more.remove();+ }+ self.positionDropdown();+ self.resultsPage = page;+ self.context = data.context;+ this.opts.element.trigger({ type: "select2-loaded", items: data });+ })});+ }+ },++ /**+ * Default tokenizer function which does nothing+ */+ tokenize: function() {++ },++ /**+ * @param initial whether or not this is the call to this method right after the dropdown has been opened+ */+ // abstract+ updateResults: function (initial) {+ var search = this.search,+ results = this.results,+ opts = this.opts,+ data,+ self = this,+ input,+ term = search.val(),+ lastTerm = $.data(this.container, "select2-last-term"),+ // sequence number used to drop out-of-order responses+ queryNumber;++ // prevent duplicate queries against the same term+ if (initial !== true && lastTerm && equal(term, lastTerm)) return;++ $.data(this.container, "select2-last-term", term);++ // if the search is currently hidden we do not alter the results+ if (initial !== true && (this.showSearchInput === false || !this.opened())) {+ return;+ }++ function postRender() {+ search.removeClass("select2-active");+ self.positionDropdown();+ }++ function render(html) {+ results.html(html);+ postRender();+ }++ queryNumber = ++this.queryCount;++ var maxSelSize = this.getMaximumSelectionSize();+ if (maxSelSize >=1) {+ data = this.data();+ if ($.isArray(data) && data.length >= maxSelSize && checkFormatter(opts.formatSelectionTooBig, "formatSelectionTooBig")) {+ render("<li class='select2-selection-limit'>" + opts.formatSelectionTooBig(maxSelSize) + "</li>");+ return;+ }+ }++ if (search.val().length < opts.minimumInputLength) {+ if (checkFormatter(opts.formatInputTooShort, "formatInputTooShort")) {+ render("<li class='select2-no-results'>" + opts.formatInputTooShort(search.val(), opts.minimumInputLength) + "</li>");+ } else {+ render("");+ }+ if (initial && this.showSearch) this.showSearch(true);+ return;+ }++ if (opts.maximumInputLength && search.val().length > opts.maximumInputLength) {+ if (checkFormatter(opts.formatInputTooLong, "formatInputTooLong")) {+ render("<li class='select2-no-results'>" + opts.formatInputTooLong(search.val(), opts.maximumInputLength) + "</li>");+ } else {+ render("");+ }+ return;+ }++ if (opts.formatSearching && this.findHighlightableChoices().length === 0) {+ render("<li class='select2-searching'>" + opts.formatSearching() + "</li>");+ }++ search.addClass("select2-active");++ this.removeHighlight();++ // give the tokenizer a chance to pre-process the input+ input = this.tokenize();+ if (input != undefined && input != null) {+ search.val(input);+ }++ this.resultsPage = 1;++ opts.query({+ element: opts.element,+ term: search.val(),+ page: this.resultsPage,+ context: null,+ matcher: opts.matcher,+ callback: this.bind(function (data) {+ var def; // default choice++ // ignore old responses+ if (queryNumber != this.queryCount) {+ return;+ }++ // ignore a response if the select2 has been closed before it was received+ if (!this.opened()) {+ this.search.removeClass("select2-active");+ return;+ }++ // save context, if any+ this.context = (data.context===undefined) ? null : data.context;+ // create a default choice and prepend it to the list+ if (this.opts.createSearchChoice && search.val() !== "") {+ def = this.opts.createSearchChoice.call(self, search.val(), data.results);+ if (def !== undefined && def !== null && self.id(def) !== undefined && self.id(def) !== null) {+ if ($(data.results).filter(+ function () {+ return equal(self.id(this), self.id(def));+ }).length === 0) {+ data.results.unshift(def);+ }+ }+ }++ if (data.results.length === 0 && checkFormatter(opts.formatNoMatches, "formatNoMatches")) {+ render("<li class='select2-no-results'>" + opts.formatNoMatches(search.val()) + "</li>");+ return;+ }++ results.empty();+ self.opts.populateResults.call(this, results, data.results, {term: search.val(), page: this.resultsPage, context:null});++ if (data.more === true && checkFormatter(opts.formatLoadMore, "formatLoadMore")) {+ results.append("<li class='select2-more-results'>" + self.opts.escapeMarkup(opts.formatLoadMore(this.resultsPage)) + "</li>");+ window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);+ }++ this.postprocessResults(data, initial);++ postRender();++ this.opts.element.trigger({ type: "select2-loaded", items: data });+ })});+ },++ // abstract+ cancel: function () {+ this.close();+ },++ // abstract+ blur: function () {+ // if selectOnBlur == true, select the currently highlighted option+ if (this.opts.selectOnBlur)+ this.selectHighlighted({noFocus: true});++ this.close();+ this.container.removeClass("select2-container-active");+ // synonymous to .is(':focus'), which is available in jquery >= 1.6+ if (this.search[0] === document.activeElement) { this.search.blur(); }+ this.clearSearch();+ this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");+ },++ // abstract+ focusSearch: function () {+ focus(this.search);+ },++ // abstract+ selectHighlighted: function (options) {+ var index=this.highlight(),+ highlighted=this.results.find(".select2-highlighted"),+ data = highlighted.closest('.select2-result').data("select2-data");++ if (data) {+ this.highlight(index);+ this.onSelect(data, options);+ } else if (options && options.noFocus) {+ this.close();+ }+ },++ // abstract+ getPlaceholder: function () {+ var placeholderOption;+ return this.opts.element.attr("placeholder") ||+ this.opts.element.attr("data-placeholder") || // jquery 1.4 compat+ this.opts.element.data("placeholder") ||+ this.opts.placeholder ||+ ((placeholderOption = this.getPlaceholderOption()) !== undefined ? placeholderOption.text() : undefined);+ },++ // abstract+ getPlaceholderOption: function() {+ if (this.select) {+ var firstOption = this.select.children('option').first();+ if (this.opts.placeholderOption !== undefined ) {+ //Determine the placeholder option based on the specified placeholderOption setting+ return (this.opts.placeholderOption === "first" && firstOption) ||+ (typeof this.opts.placeholderOption === "function" && this.opts.placeholderOption(this.select));+ } else if (firstOption.text() === "" && firstOption.val() === "") {+ //No explicit placeholder option specified, use the first if it's blank+ return firstOption;+ }+ }+ },++ /**+ * Get the desired width for the container element. This is+ * derived first from option `width` passed to select2, then+ * the inline 'style' on the original element, and finally+ * falls back to the jQuery calculated element width.+ */+ // abstract+ initContainerWidth: function () {+ function resolveContainerWidth() {+ var style, attrs, matches, i, l, attr;++ if (this.opts.width === "off") {+ return null;+ } else if (this.opts.width === "element"){+ return this.opts.element.outerWidth(false) === 0 ? 'auto' : this.opts.element.outerWidth(false) + 'px';+ } else if (this.opts.width === "copy" || this.opts.width === "resolve") {+ // check if there is inline style on the element that contains width+ style = this.opts.element.attr('style');+ if (style !== undefined) {+ attrs = style.split(';');+ for (i = 0, l = attrs.length; i < l; i = i + 1) {+ attr = attrs[i].replace(/\s/g, '');+ matches = attr.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i);+ if (matches !== null && matches.length >= 1)+ return matches[1];+ }+ }++ if (this.opts.width === "resolve") {+ // next check if css('width') can resolve a width that is percent based, this is sometimes possible+ // when attached to input type=hidden or elements hidden via css+ style = this.opts.element.css('width');+ if (style.indexOf("%") > 0) return style;++ // finally, fallback on the calculated width of the element+ return (this.opts.element.outerWidth(false) === 0 ? 'auto' : this.opts.element.outerWidth(false) + 'px');+ }++ return null;+ } else if ($.isFunction(this.opts.width)) {+ return this.opts.width();+ } else {+ return this.opts.width;+ }+ };++ var width = resolveContainerWidth.call(this);+ if (width !== null) {+ this.container.css("width", width);+ }+ }+ });++ SingleSelect2 = clazz(AbstractSelect2, {++ // single++ createContainer: function () {+ var container = $(document.createElement("div")).attr({+ "class": "select2-container"+ }).html([+ "<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>",+ " <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>",+ " <span class='select2-arrow'><b></b></span>",+ "</a>",+ "<input class='select2-focusser select2-offscreen' type='text'/>",+ "<div class='select2-drop select2-display-none'>",+ " <div class='select2-search'>",+ " <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>",+ " </div>",+ " <ul class='select2-results'>",+ " </ul>",+ "</div>"].join(""));+ return container;+ },++ // single+ enableInterface: function() {+ if (this.parent.enableInterface.apply(this, arguments)) {+ this.focusser.prop("disabled", !this.isInterfaceEnabled());+ }+ },++ // single+ opening: function () {+ var el, range, len;++ if (this.opts.minimumResultsForSearch >= 0) {+ this.showSearch(true);+ }++ this.parent.opening.apply(this, arguments);++ if (this.showSearchInput !== false) {+ // IE appends focusser.val() at the end of field :/ so we manually insert it at the beginning using a range+ // all other browsers handle this just fine++ this.search.val(this.focusser.val());+ }+ this.search.focus();+ // move the cursor to the end after focussing, otherwise it will be at the beginning and+ // new text will appear *before* focusser.val()+ el = this.search.get(0);+ if (el.createTextRange) {+ range = el.createTextRange();+ range.collapse(false);+ range.select();+ } else if (el.setSelectionRange) {+ len = this.search.val().length;+ el.setSelectionRange(len, len);+ }++ // initializes search's value with nextSearchTerm (if defined by user)+ // ignore nextSearchTerm if the dropdown is opened by the user pressing a letter+ if(this.search.val() === "") {+ if(this.nextSearchTerm != undefined){+ this.search.val(this.nextSearchTerm);+ this.search.select();+ }+ }++ this.focusser.prop("disabled", true).val("");+ this.updateResults(true);+ this.opts.element.trigger($.Event("select2-open"));+ },++ // single+ close: function (params) {+ if (!this.opened()) return;+ this.parent.close.apply(this, arguments);++ params = params || {focus: true};+ this.focusser.removeAttr("disabled");++ if (params.focus) {+ this.focusser.focus();+ }+ },++ // single+ focus: function () {+ if (this.opened()) {+ this.close();+ } else {+ this.focusser.removeAttr("disabled");+ this.focusser.focus();+ }+ },++ // single+ isFocused: function () {+ return this.container.hasClass("select2-container-active");+ },++ // single+ cancel: function () {+ this.parent.cancel.apply(this, arguments);+ this.focusser.removeAttr("disabled");+ this.focusser.focus();+ },++ // single+ destroy: function() {+ $("label[for='" + this.focusser.attr('id') + "']")+ .attr('for', this.opts.element.attr("id"));+ this.parent.destroy.apply(this, arguments);+ },++ // single+ initContainer: function () {++ var selection,+ container = this.container,+ dropdown = this.dropdown;++ if (this.opts.minimumResultsForSearch < 0) {+ this.showSearch(false);+ } else {+ this.showSearch(true);+ }++ this.selection = selection = container.find(".select2-choice");++ this.focusser = container.find(".select2-focusser");++ // rewrite labels from original element to focusser+ this.focusser.attr("id", "s2id_autogen"+nextUid());++ $("label[for='" + this.opts.element.attr("id") + "']")+ .attr('for', this.focusser.attr('id'));++ this.focusser.attr("tabindex", this.elementTabIndex);++ this.search.on("keydown", this.bind(function (e) {+ if (!this.isInterfaceEnabled()) return;++ if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) {+ // prevent the page from scrolling+ killEvent(e);+ return;+ }++ switch (e.which) {+ case KEY.UP:+ case KEY.DOWN:+ this.moveHighlight((e.which === KEY.UP) ? -1 : 1);+ killEvent(e);+ return;+ case KEY.ENTER:+ this.selectHighlighted();+ killEvent(e);+ return;+ case KEY.TAB:+ this.selectHighlighted({noFocus: true});+ return;+ case KEY.ESC:+ this.cancel(e);+ killEvent(e);+ return;+ }+ }));++ this.search.on("blur", this.bind(function(e) {+ // a workaround for chrome to keep the search field focussed when the scroll bar is used to scroll the dropdown.+ // without this the search field loses focus which is annoying+ if (document.activeElement === this.body().get(0)) {+ window.setTimeout(this.bind(function() {+ this.search.focus();+ }), 0);+ }+ }));++ this.focusser.on("keydown", this.bind(function (e) {+ if (!this.isInterfaceEnabled()) return;++ if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC) {+ return;+ }++ if (this.opts.openOnEnter === false && e.which === KEY.ENTER) {+ killEvent(e);+ return;+ }++ if (e.which == KEY.DOWN || e.which == KEY.UP+ || (e.which == KEY.ENTER && this.opts.openOnEnter)) {++ if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) return;++ this.open();+ killEvent(e);+ return;+ }++ if (e.which == KEY.DELETE || e.which == KEY.BACKSPACE) {+ if (this.opts.allowClear) {+ this.clear();+ }+ killEvent(e);+ return;+ }+ }));+++ installKeyUpChangeEvent(this.focusser);+ this.focusser.on("keyup-change input", this.bind(function(e) {+ if (this.opts.minimumResultsForSearch >= 0) {+ e.stopPropagation();+ if (this.opened()) return;+ this.open();+ }+ }));++ selection.on("mousedown", "abbr", this.bind(function (e) {+ if (!this.isInterfaceEnabled()) return;+ this.clear();+ killEventImmediately(e);+ this.close();+ this.selection.focus();+ }));++ selection.on("mousedown", this.bind(function (e) {++ if (!this.container.hasClass("select2-container-active")) {+ this.opts.element.trigger($.Event("select2-focus"));+ }++ if (this.opened()) {+ this.close();+ } else if (this.isInterfaceEnabled()) {+ this.open();+ }++ killEvent(e);+ }));++ dropdown.on("mousedown", this.bind(function() { this.search.focus(); }));++ selection.on("focus", this.bind(function(e) {+ killEvent(e);+ }));++ this.focusser.on("focus", this.bind(function(){+ if (!this.container.hasClass("select2-container-active")) {+ this.opts.element.trigger($.Event("select2-focus"));+ }+ this.container.addClass("select2-container-active");+ })).on("blur", this.bind(function() {+ if (!this.opened()) {+ this.container.removeClass("select2-container-active");+ this.opts.element.trigger($.Event("select2-blur"));+ }+ }));+ this.search.on("focus", this.bind(function(){+ if (!this.container.hasClass("select2-container-active")) {+ this.opts.element.trigger($.Event("select2-focus"));+ }+ this.container.addClass("select2-container-active");+ }));++ this.initContainerWidth();+ this.opts.element.addClass("select2-offscreen");+ this.setPlaceholder();++ },++ // single+ clear: function(triggerChange) {+ var data=this.selection.data("select2-data");+ if (data) { // guard against queued quick consecutive clicks+ var evt = $.Event("select2-clearing");+ this.opts.element.trigger(evt);+ if (evt.isDefaultPrevented()) {+ return;+ }+ var placeholderOption = this.getPlaceholderOption();+ this.opts.element.val(placeholderOption ? placeholderOption.val() : "");+ this.selection.find(".select2-chosen").empty();+ this.selection.removeData("select2-data");+ this.setPlaceholder();++ if (triggerChange !== false){+ this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data });+ this.triggerChange({removed:data});+ }+ }+ },++ /**+ * Sets selection based on source element's value+ */+ // single+ initSelection: function () {+ var selected;+ if (this.isPlaceholderOptionSelected()) {+ this.updateSelection(null);+ this.close();+ this.setPlaceholder();+ } else {+ var self = this;+ this.opts.initSelection.call(null, this.opts.element, function(selected){+ if (selected !== undefined && selected !== null) {+ self.updateSelection(selected);+ self.close();+ self.setPlaceholder();+ }+ });+ }+ },++ isPlaceholderOptionSelected: function() {+ var placeholderOption;+ if (!this.getPlaceholder()) return false; // no placeholder specified so no option should be considered+ return ((placeholderOption = this.getPlaceholderOption()) !== undefined && placeholderOption.prop("selected"))+ || (this.opts.element.val() === "")+ || (this.opts.element.val() === undefined)+ || (this.opts.element.val() === null);+ },++ // single+ prepareOpts: function () {+ var opts = this.parent.prepareOpts.apply(this, arguments),+ self=this;++ if (opts.element.get(0).tagName.toLowerCase() === "select") {+ // install the selection initializer+ opts.initSelection = function (element, callback) {+ var selected = element.find("option").filter(function() { return this.selected });+ // a single select box always has a value, no need to null check 'selected'+ callback(self.optionToData(selected));+ };+ } else if ("data" in opts) {+ // install default initSelection when applied to hidden input and data is local+ opts.initSelection = opts.initSelection || function (element, callback) {+ var id = element.val();+ //search in data by id, storing the actual matching item+ var match = null;+ opts.query({+ matcher: function(term, text, el){+ var is_match = equal(id, opts.id(el));+ if (is_match) {+ match = el;+ }+ return is_match;+ },+ callback: !$.isFunction(callback) ? $.noop : function() {+ callback(match);+ }+ });+ };+ }++ return opts;+ },++ // single+ getPlaceholder: function() {+ // if a placeholder is specified on a single select without a valid placeholder option ignore it+ if (this.select) {+ if (this.getPlaceholderOption() === undefined) {+ return undefined;+ }+ }++ return this.parent.getPlaceholder.apply(this, arguments);+ },++ // single+ setPlaceholder: function () {+ var placeholder = this.getPlaceholder();++ if (this.isPlaceholderOptionSelected() && placeholder !== undefined) {++ // check for a placeholder option if attached to a select+ if (this.select && this.getPlaceholderOption() === undefined) return;++ this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(placeholder));++ this.selection.addClass("select2-default");++ this.container.removeClass("select2-allowclear");+ }+ },++ // single+ postprocessResults: function (data, initial, noHighlightUpdate) {+ var selected = 0, self = this, showSearchInput = true;++ // find the selected element in the result list++ this.findHighlightableChoices().each2(function (i, elm) {+ if (equal(self.id(elm.data("select2-data")), self.opts.element.val())) {+ selected = i;+ return false;+ }+ });++ // and highlight it+ if (noHighlightUpdate !== false) {+ if (initial === true && selected >= 0) {+ this.highlight(selected);+ } else {+ this.highlight(0);+ }+ }++ // hide the search box if this is the first we got the results and there are enough of them for search++ if (initial === true) {+ var min = this.opts.minimumResultsForSearch;+ if (min >= 0) {+ this.showSearch(countResults(data.results) >= min);+ }+ }+ },++ // single+ showSearch: function(showSearchInput) {+ if (this.showSearchInput === showSearchInput) return;++ this.showSearchInput = showSearchInput;++ this.dropdown.find(".select2-search").toggleClass("select2-search-hidden", !showSearchInput);+ this.dropdown.find(".select2-search").toggleClass("select2-offscreen", !showSearchInput);+ //add "select2-with-searchbox" to the container if search box is shown+ $(this.dropdown, this.container).toggleClass("select2-with-searchbox", showSearchInput);+ },++ // single+ onSelect: function (data, options) {++ if (!this.triggerSelect(data)) { return; }++ var old = this.opts.element.val(),+ oldData = this.data();++ this.opts.element.val(this.id(data));+ this.updateSelection(data);++ this.opts.element.trigger({ type: "select2-selected", val: this.id(data), choice: data });++ this.nextSearchTerm = this.opts.nextSearchTerm(data, this.search.val());+ this.close();++ if (!options || !options.noFocus)+ this.focusser.focus();++ if (!equal(old, this.id(data))) { this.triggerChange({added:data,removed:oldData}); }+ },++ // single+ updateSelection: function (data) {++ var container=this.selection.find(".select2-chosen"), formatted, cssClass;++ this.selection.data("select2-data", data);++ container.empty();+ if (data !== null) {+ formatted=this.opts.formatSelection(data, container, this.opts.escapeMarkup);+ }+ if (formatted !== undefined) {+ container.append(formatted);+ }+ cssClass=this.opts.formatSelectionCssClass(data, container);+ if (cssClass !== undefined) {+ container.addClass(cssClass);+ }++ this.selection.removeClass("select2-default");++ if (this.opts.allowClear && this.getPlaceholder() !== undefined) {+ this.container.addClass("select2-allowclear");+ }+ },++ // single+ val: function () {+ var val,+ triggerChange = false,+ data = null,+ self = this,+ oldData = this.data();++ if (arguments.length === 0) {+ return this.opts.element.val();+ }++ val = arguments[0];++ if (arguments.length > 1) {+ triggerChange = arguments[1];+ }++ if (this.select) {+ this.select+ .val(val)+ .find("option").filter(function() { return this.selected }).each2(function (i, elm) {+ data = self.optionToData(elm);+ return false;+ });+ this.updateSelection(data);+ this.setPlaceholder();+ if (triggerChange) {+ this.triggerChange({added: data, removed:oldData});+ }+ } else {+ // val is an id. !val is true for [undefined,null,'',0] - 0 is legal+ if (!val && val !== 0) {+ this.clear(triggerChange);+ return;+ }+ if (this.opts.initSelection === undefined) {+ throw new Error("cannot call val() if initSelection() is not defined");+ }+ this.opts.element.val(val);+ this.opts.initSelection(this.opts.element, function(data){+ self.opts.element.val(!data ? "" : self.id(data));+ self.updateSelection(data);+ self.setPlaceholder();+ if (triggerChange) {+ self.triggerChange({added: data, removed:oldData});+ }+ });+ }+ },++ // single+ clearSearch: function () {+ this.search.val("");+ this.focusser.val("");+ },++ // single+ data: function(value) {+ var data,+ triggerChange = false;++ if (arguments.length === 0) {+ data = this.selection.data("select2-data");+ if (data == undefined) data = null;+ return data;+ } else {+ if (arguments.length > 1) {+ triggerChange = arguments[1];+ }+ if (!value) {+ this.clear(triggerChange);+ } else {+ data = this.data();+ this.opts.element.val(!value ? "" : this.id(value));+ this.updateSelection(value);+ if (triggerChange) {+ this.triggerChange({added: value, removed:data});+ }+ }+ }+ }+ });++ MultiSelect2 = clazz(AbstractSelect2, {++ // multi+ createContainer: function () {+ var container = $(document.createElement("div")).attr({+ "class": "select2-container select2-container-multi"+ }).html([+ "<ul class='select2-choices'>",+ " <li class='select2-search-field'>",+ " <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>",+ " </li>",+ "</ul>",+ "<div class='select2-drop select2-drop-multi select2-display-none'>",+ " <ul class='select2-results'>",+ " </ul>",+ "</div>"].join(""));+ return container;+ },++ // multi+ prepareOpts: function () {+ var opts = this.parent.prepareOpts.apply(this, arguments),+ self=this;++ // TODO validate placeholder is a string if specified++ if (opts.element.get(0).tagName.toLowerCase() === "select") {+ // install sthe selection initializer+ opts.initSelection = function (element, callback) {++ var data = [];++ element.find("option").filter(function() { return this.selected }).each2(function (i, elm) {+ data.push(self.optionToData(elm));+ });+ callback(data);+ };+ } else if ("data" in opts) {+ // install default initSelection when applied to hidden input and data is local+ opts.initSelection = opts.initSelection || function (element, callback) {+ var ids = splitVal(element.val(), opts.separator);+ //search in data by array of ids, storing matching items in a list+ var matches = [];+ opts.query({+ matcher: function(term, text, el){+ var is_match = $.grep(ids, function(id) {+ return equal(id, opts.id(el));+ }).length;+ if (is_match) {+ matches.push(el);+ }+ return is_match;+ },+ callback: !$.isFunction(callback) ? $.noop : function() {+ // reorder matches based on the order they appear in the ids array because right now+ // they are in the order in which they appear in data array+ var ordered = [];+ for (var i = 0; i < ids.length; i++) {+ var id = ids[i];+ for (var j = 0; j < matches.length; j++) {+ var match = matches[j];+ if (equal(id, opts.id(match))) {+ ordered.push(match);+ matches.splice(j, 1);+ break;+ }+ }+ }+ callback(ordered);+ }+ });+ };+ }++ return opts;+ },++ // multi+ selectChoice: function (choice) {++ var selected = this.container.find(".select2-search-choice-focus");+ if (selected.length && choice && choice[0] == selected[0]) {++ } else {+ if (selected.length) {+ this.opts.element.trigger("choice-deselected", selected);+ }+ selected.removeClass("select2-search-choice-focus");+ if (choice && choice.length) {+ this.close();+ choice.addClass("select2-search-choice-focus");+ this.opts.element.trigger("choice-selected", choice);+ }+ }+ },++ // multi+ destroy: function() {+ $("label[for='" + this.search.attr('id') + "']")+ .attr('for', this.opts.element.attr("id"));+ this.parent.destroy.apply(this, arguments);+ },++ // multi+ initContainer: function () {++ var selector = ".select2-choices", selection;++ this.searchContainer = this.container.find(".select2-search-field");+ this.selection = selection = this.container.find(selector);++ var _this = this;+ this.selection.on("click", ".select2-search-choice:not(.select2-locked)", function (e) {+ //killEvent(e);+ _this.search[0].focus();+ _this.selectChoice($(this));+ });++ // rewrite labels from original element to focusser+ this.search.attr("id", "s2id_autogen"+nextUid());+ $("label[for='" + this.opts.element.attr("id") + "']")+ .attr('for', this.search.attr('id'));++ this.search.on("input paste", this.bind(function() {+ if (!this.isInterfaceEnabled()) return;+ if (!this.opened()) {+ this.open();+ }+ }));++ this.search.attr("tabindex", this.elementTabIndex);++ this.keydowns = 0;+ this.search.on("keydown", this.bind(function (e) {+ if (!this.isInterfaceEnabled()) return;++ ++this.keydowns;+ var selected = selection.find(".select2-search-choice-focus");+ var prev = selected.prev(".select2-search-choice:not(.select2-locked)");+ var next = selected.next(".select2-search-choice:not(.select2-locked)");+ var pos = getCursorInfo(this.search);++ if (selected.length &&+ (e.which == KEY.LEFT || e.which == KEY.RIGHT || e.which == KEY.BACKSPACE || e.which == KEY.DELETE || e.which == KEY.ENTER)) {+ var selectedChoice = selected;+ if (e.which == KEY.LEFT && prev.length) {+ selectedChoice = prev;+ }+ else if (e.which == KEY.RIGHT) {+ selectedChoice = next.length ? next : null;+ }+ else if (e.which === KEY.BACKSPACE) {+ this.unselect(selected.first());+ this.search.width(10);+ selectedChoice = prev.length ? prev : next;+ } else if (e.which == KEY.DELETE) {+ this.unselect(selected.first());+ this.search.width(10);+ selectedChoice = next.length ? next : null;+ } else if (e.which == KEY.ENTER) {+ selectedChoice = null;+ }++ this.selectChoice(selectedChoice);+ killEvent(e);+ if (!selectedChoice || !selectedChoice.length) {+ this.open();+ }+ return;+ } else if (((e.which === KEY.BACKSPACE && this.keydowns == 1)+ || e.which == KEY.LEFT) && (pos.offset == 0 && !pos.length)) {++ this.selectChoice(selection.find(".select2-search-choice:not(.select2-locked)").last());+ killEvent(e);+ return;+ } else {+ this.selectChoice(null);+ }++ if (this.opened()) {+ switch (e.which) {+ case KEY.UP:+ case KEY.DOWN:+ this.moveHighlight((e.which === KEY.UP) ? -1 : 1);+ killEvent(e);+ return;+ case KEY.ENTER:+ this.selectHighlighted();+ killEvent(e);+ return;+ case KEY.TAB:+ this.selectHighlighted({noFocus:true});+ this.close();+ return;+ case KEY.ESC:+ this.cancel(e);+ killEvent(e);+ return;+ }+ }++ if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e)+ || e.which === KEY.BACKSPACE || e.which === KEY.ESC) {+ return;+ }++ if (e.which === KEY.ENTER) {+ if (this.opts.openOnEnter === false) {+ return;+ } else if (e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {+ return;+ }+ }++ this.open();++ if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) {+ // prevent the page from scrolling+ killEvent(e);+ }++ if (e.which === KEY.ENTER) {+ // prevent form from being submitted+ killEvent(e);+ }++ }));++ this.search.on("keyup", this.bind(function (e) {+ this.keydowns = 0;+ this.resizeSearch();+ })+ );++ this.search.on("blur", this.bind(function(e) {+ this.container.removeClass("select2-container-active");+ this.search.removeClass("select2-focused");+ this.selectChoice(null);+ if (!this.opened()) this.clearSearch();+ e.stopImmediatePropagation();+ this.opts.element.trigger($.Event("select2-blur"));+ }));++ this.container.on("click", selector, this.bind(function (e) {+ if (!this.isInterfaceEnabled()) return;+ if ($(e.target).closest(".select2-search-choice").length > 0) {+ // clicked inside a select2 search choice, do not open+ return;+ }+ this.selectChoice(null);+ this.clearPlaceholder();+ if (!this.container.hasClass("select2-container-active")) {+ this.opts.element.trigger($.Event("select2-focus"));+ }+ this.open();+ this.focusSearch();+ e.preventDefault();+ }));++ this.container.on("focus", selector, this.bind(function () {+ if (!this.isInterfaceEnabled()) return;+ if (!this.container.hasClass("select2-container-active")) {+ this.opts.element.trigger($.Event("select2-focus"));+ }+ this.container.addClass("select2-container-active");+ this.dropdown.addClass("select2-drop-active");+ this.clearPlaceholder();+ }));++ this.initContainerWidth();+ this.opts.element.addClass("select2-offscreen");++ // set the placeholder if necessary+ this.clearSearch();+ },++ // multi+ enableInterface: function() {+ if (this.parent.enableInterface.apply(this, arguments)) {+ this.search.prop("disabled", !this.isInterfaceEnabled());+ }+ },++ // multi+ initSelection: function () {+ var data;+ if (this.opts.element.val() === "" && this.opts.element.text() === "") {+ this.updateSelection([]);+ this.close();+ // set the placeholder if necessary+ this.clearSearch();+ }+ if (this.select || this.opts.element.val() !== "") {+ var self = this;+ this.opts.initSelection.call(null, this.opts.element, function(data){+ if (data !== undefined && data !== null) {+ self.updateSelection(data);+ self.close();+ // set the placeholder if necessary+ self.clearSearch();+ }+ });+ }+ },++ // multi+ clearSearch: function () {+ var placeholder = this.getPlaceholder(),+ maxWidth = this.getMaxSearchWidth();++ if (placeholder !== undefined && this.getVal().length === 0 && this.search.hasClass("select2-focused") === false) {+ this.search.val(placeholder).addClass("select2-default");+ // stretch the search box to full width of the container so as much of the placeholder is visible as possible+ // we could call this.resizeSearch(), but we do not because that requires a sizer and we do not want to create one so early because of a firefox bug, see #944+ this.search.width(maxWidth > 0 ? maxWidth : this.container.css("width"));+ } else {+ this.search.val("").width(10);+ }+ },++ // multi+ clearPlaceholder: function () {+ if (this.search.hasClass("select2-default")) {+ this.search.val("").removeClass("select2-default");+ }+ },++ // multi+ opening: function () {+ this.clearPlaceholder(); // should be done before super so placeholder is not used to search+ this.resizeSearch();++ this.parent.opening.apply(this, arguments);++ this.focusSearch();++ this.updateResults(true);+ this.search.focus();+ this.opts.element.trigger($.Event("select2-open"));+ },++ // multi+ close: function () {+ if (!this.opened()) return;+ this.parent.close.apply(this, arguments);+ },++ // multi+ focus: function () {+ this.close();+ this.search.focus();+ },++ // multi+ isFocused: function () {+ return this.search.hasClass("select2-focused");+ },++ // multi+ updateSelection: function (data) {+ var ids = [], filtered = [], self = this;++ // filter out duplicates+ $(data).each(function () {+ if (indexOf(self.id(this), ids) < 0) {+ ids.push(self.id(this));+ filtered.push(this);+ }+ });+ data = filtered;++ this.selection.find(".select2-search-choice").remove();+ $(data).each(function () {+ self.addSelectedChoice(this);+ });+ self.postprocessResults();+ },++ // multi+ tokenize: function() {+ var input = this.search.val();+ input = this.opts.tokenizer.call(this, input, this.data(), this.bind(this.onSelect), this.opts);+ if (input != null && input != undefined) {+ this.search.val(input);+ if (input.length > 0) {+ this.open();+ }+ }++ },++ // multi+ onSelect: function (data, options) {++ if (!this.triggerSelect(data)) { return; }++ this.addSelectedChoice(data);++ this.opts.element.trigger({ type: "selected", val: this.id(data), choice: data });++ if (this.select || !this.opts.closeOnSelect) this.postprocessResults(data, false, this.opts.closeOnSelect===true);++ if (this.opts.closeOnSelect) {+ this.close();+ this.search.width(10);+ } else {+ if (this.countSelectableResults()>0) {+ this.search.width(10);+ this.resizeSearch();+ if (this.getMaximumSelectionSize() > 0 && this.val().length >= this.getMaximumSelectionSize()) {+ // if we reached max selection size repaint the results so choices+ // are replaced with the max selection reached message+ this.updateResults(true);+ }+ this.positionDropdown();+ } else {+ // if nothing left to select close+ this.close();+ this.search.width(10);+ }+ }++ // since its not possible to select an element that has already been+ // added we do not need to check if this is a new element before firing change+ this.triggerChange({ added: data });++ if (!options || !options.noFocus)+ this.focusSearch();+ },++ // multi+ cancel: function () {+ this.close();+ this.focusSearch();+ },++ addSelectedChoice: function (data) {+ var enableChoice = !data.locked,+ enabledItem = $(+ "<li class='select2-search-choice'>" ++ " <div></div>" ++ " <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a>" ++ "</li>"),+ disabledItem = $(+ "<li class='select2-search-choice select2-locked'>" ++ "<div></div>" ++ "</li>");+ var choice = enableChoice ? enabledItem : disabledItem,+ id = this.id(data),+ val = this.getVal(),+ formatted,+ cssClass;++ formatted=this.opts.formatSelection(data, choice.find("div"), this.opts.escapeMarkup);+ if (formatted != undefined) {+ choice.find("div").replaceWith("<div>"+formatted+"</div>");+ }+ cssClass=this.opts.formatSelectionCssClass(data, choice.find("div"));+ if (cssClass != undefined) {+ choice.addClass(cssClass);+ }++ if(enableChoice){+ choice.find(".select2-search-choice-close")+ .on("mousedown", killEvent)+ .on("click dblclick", this.bind(function (e) {+ if (!this.isInterfaceEnabled()) return;++ $(e.target).closest(".select2-search-choice").fadeOut('fast', this.bind(function(){+ this.unselect($(e.target));+ this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");+ this.close();+ this.focusSearch();+ })).dequeue();+ killEvent(e);+ })).on("focus", this.bind(function () {+ if (!this.isInterfaceEnabled()) return;+ this.container.addClass("select2-container-active");+ this.dropdown.addClass("select2-drop-active");+ }));+ }++ choice.data("select2-data", data);+ choice.insertBefore(this.searchContainer);++ val.push(id);+ this.setVal(val);+ },++ // multi+ unselect: function (selected) {+ var val = this.getVal(),+ data,+ index;+ selected = selected.closest(".select2-search-choice");++ if (selected.length === 0) {+ throw "Invalid argument: " + selected + ". Must be .select2-search-choice";+ }++ data = selected.data("select2-data");++ if (!data) {+ // prevent a race condition when the 'x' is clicked really fast repeatedly the event can be queued+ // and invoked on an element already removed+ return;+ }++ while((index = indexOf(this.id(data), val)) >= 0) {+ val.splice(index, 1);+ this.setVal(val);+ if (this.select) this.postprocessResults();+ }++ var evt = $.Event("select2-removing");+ evt.val = this.id(data);+ evt.choice = data;+ this.opts.element.trigger(evt);++ if (evt.isDefaultPrevented()) {+ return;+ }++ selected.remove();++ this.opts.element.trigger({ type: "select2-removed", val: this.id(data), choice: data });+ this.triggerChange({ removed: data });+ },++ // multi+ postprocessResults: function (data, initial, noHighlightUpdate) {+ var val = this.getVal(),+ choices = this.results.find(".select2-result"),+ compound = this.results.find(".select2-result-with-children"),+ self = this;++ choices.each2(function (i, choice) {+ var id = self.id(choice.data("select2-data"));+ if (indexOf(id, val) >= 0) {+ choice.addClass("select2-selected");+ // mark all children of the selected parent as selected+ choice.find(".select2-result-selectable").addClass("select2-selected");+ }+ });++ compound.each2(function(i, choice) {+ // hide an optgroup if it doesnt have any selectable children+ if (!choice.is('.select2-result-selectable')+ && choice.find(".select2-result-selectable:not(.select2-selected)").length === 0) {+ choice.addClass("select2-selected");+ }+ });++ if (this.highlight() == -1 && noHighlightUpdate !== false){+ self.highlight(0);+ }++ //If all results are chosen render formatNoMAtches+ if(!this.opts.createSearchChoice && !choices.filter('.select2-result:not(.select2-selected)').length > 0){+ if(!data || data && !data.more && this.results.find(".select2-no-results").length === 0) {+ if (checkFormatter(self.opts.formatNoMatches, "formatNoMatches")) {+ this.results.append("<li class='select2-no-results'>" + self.opts.formatNoMatches(self.search.val()) + "</li>");+ }+ }+ }++ },++ // multi+ getMaxSearchWidth: function() {+ return this.selection.width() - getSideBorderPadding(this.search);+ },++ // multi+ resizeSearch: function () {+ var minimumWidth, left, maxWidth, containerLeft, searchWidth,+ sideBorderPadding = getSideBorderPadding(this.search);++ minimumWidth = measureTextWidth(this.search) + 10;++ left = this.search.offset().left;++ maxWidth = this.selection.width();+ containerLeft = this.selection.offset().left;++ searchWidth = maxWidth - (left - containerLeft) - sideBorderPadding;++ if (searchWidth < minimumWidth) {+ searchWidth = maxWidth - sideBorderPadding;+ }++ if (searchWidth < 40) {+ searchWidth = maxWidth - sideBorderPadding;+ }++ if (searchWidth <= 0) {+ searchWidth = minimumWidth;+ }++ this.search.width(Math.floor(searchWidth));+ },++ // multi+ getVal: function () {+ var val;+ if (this.select) {+ val = this.select.val();+ return val === null ? [] : val;+ } else {+ val = this.opts.element.val();+ return splitVal(val, this.opts.separator);+ }+ },++ // multi+ setVal: function (val) {+ var unique;+ if (this.select) {+ this.select.val(val);+ } else {+ unique = [];+ // filter out duplicates+ $(val).each(function () {+ if (indexOf(this, unique) < 0) unique.push(this);+ });+ this.opts.element.val(unique.length === 0 ? "" : unique.join(this.opts.separator));+ }+ },++ // multi+ buildChangeDetails: function (old, current) {+ var current = current.slice(0),+ old = old.slice(0);++ // remove intersection from each array+ for (var i = 0; i < current.length; i++) {+ for (var j = 0; j < old.length; j++) {+ if (equal(this.opts.id(current[i]), this.opts.id(old[j]))) {+ current.splice(i, 1);+ if(i>0){+ i--;+ }+ old.splice(j, 1);+ j--;+ }+ }+ }++ return {added: current, removed: old};+ },+++ // multi+ val: function (val, triggerChange) {+ var oldData, self=this;++ if (arguments.length === 0) {+ return this.getVal();+ }++ oldData=this.data();+ if (!oldData.length) oldData=[];++ // val is an id. !val is true for [undefined,null,'',0] - 0 is legal+ if (!val && val !== 0) {+ this.opts.element.val("");+ this.updateSelection([]);+ this.clearSearch();+ if (triggerChange) {+ this.triggerChange({added: this.data(), removed: oldData});+ }+ return;+ }++ // val is a list of ids+ this.setVal(val);++ if (this.select) {+ this.opts.initSelection(this.select, this.bind(this.updateSelection));+ if (triggerChange) {+ this.triggerChange(this.buildChangeDetails(oldData, this.data()));+ }+ } else {+ if (this.opts.initSelection === undefined) {+ throw new Error("val() cannot be called if initSelection() is not defined");+ }++ this.opts.initSelection(this.opts.element, function(data){+ var ids=$.map(data, self.id);+ self.setVal(ids);+ self.updateSelection(data);+ self.clearSearch();+ if (triggerChange) {+ self.triggerChange(self.buildChangeDetails(oldData, self.data()));+ }+ });+ }+ this.clearSearch();+ },++ // multi+ onSortStart: function() {+ if (this.select) {+ throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");+ }++ // collapse search field into 0 width so its container can be collapsed as well+ this.search.width(0);+ // hide the container+ this.searchContainer.hide();+ },++ // multi+ onSortEnd:function() {++ var val=[], self=this;++ // show search and move it to the end of the list+ this.searchContainer.show();+ // make sure the search container is the last item in the list+ this.searchContainer.appendTo(this.searchContainer.parent());+ // since we collapsed the width in dragStarted, we resize it here+ this.resizeSearch();++ // update selection+ this.selection.find(".select2-search-choice").each(function() {+ val.push(self.opts.id($(this).data("select2-data")));+ });+ this.setVal(val);+ this.triggerChange();+ },++ // multi+ data: function(values, triggerChange) {+ var self=this, ids, old;+ if (arguments.length === 0) {+ return this.selection+ .find(".select2-search-choice")+ .map(function() { return $(this).data("select2-data"); })+ .get();+ } else {+ old = this.data();+ if (!values) { values = []; }+ ids = $.map(values, function(e) { return self.opts.id(e); });+ this.setVal(ids);+ this.updateSelection(values);+ this.clearSearch();+ if (triggerChange) {+ this.triggerChange(this.buildChangeDetails(old, this.data()));+ }+ }+ }+ });++ $.fn.select2 = function () {++ var args = Array.prototype.slice.call(arguments, 0),+ opts,+ select2,+ method, value, multiple,+ allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "dropdown", "onSortStart", "onSortEnd", "enable", "disable", "readonly", "positionDropdown", "data", "search"],+ valueMethods = ["opened", "isFocused", "container", "dropdown"],+ propertyMethods = ["val", "data"],+ methodsMap = { search: "externalSearch" };++ this.each(function () {+ if (args.length === 0 || typeof(args[0]) === "object") {+ opts = args.length === 0 ? {} : $.extend({}, args[0]);+ opts.element = $(this);++ if (opts.element.get(0).tagName.toLowerCase() === "select") {+ multiple = opts.element.prop("multiple");+ } else {+ multiple = opts.multiple || false;+ if ("tags" in opts) {opts.multiple = multiple = true;}+ }++ select2 = multiple ? new MultiSelect2() : new SingleSelect2();+ select2.init(opts);+ } else if (typeof(args[0]) === "string") {++ if (indexOf(args[0], allowedMethods) < 0) {+ throw "Unknown method: " + args[0];+ }++ value = undefined;+ select2 = $(this).data("select2");+ if (select2 === undefined) return;++ method=args[0];++ if (method === "container") {+ value = select2.container;+ } else if (method === "dropdown") {+ value = select2.dropdown;+ } else {+ if (methodsMap[method]) method = methodsMap[method];++ value = select2[method].apply(select2, args.slice(1));+ }+ if (indexOf(args[0], valueMethods) >= 0+ || (indexOf(args[0], propertyMethods) && args.length == 1)) {+ return false; // abort the iteration, ready to return first matched value+ }+ } else {+ throw "Invalid arguments to select2 plugin: " + args;+ }+ });+ return (value === undefined) ? this : value;+ };++ // plugin defaults, accessible to users+ $.fn.select2.defaults = {+ width: "copy",+ loadMorePadding: 0,+ closeOnSelect: true,+ openOnEnter: true,+ containerCss: {},+ dropdownCss: {},+ containerCssClass: "",+ dropdownCssClass: "",+ formatResult: function(result, container, query, escapeMarkup) {+ var markup=[];+ markMatch(result.text, query.term, markup, escapeMarkup);+ return markup.join("");+ },+ formatSelection: function (data, container, escapeMarkup) {+ return data ? escapeMarkup(data.text) : undefined;+ },+ sortResults: function (results, container, query) {+ return results;+ },+ formatResultCssClass: function(data) {return undefined;},+ formatSelectionCssClass: function(data, container) {return undefined;},+ formatNoMatches: function () { return "No matches found"; },+ formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); },+ formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); },+ formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },+ formatLoadMore: function (pageNumber) { return "Loading more results..."; },+ formatSearching: function () { return "Searching..."; },+ minimumResultsForSearch: 0,+ minimumInputLength: 0,+ maximumInputLength: null,+ maximumSelectionSize: 0,+ id: function (e) { return e.id; },+ matcher: function(term, text) {+ return stripDiacritics(''+text).toUpperCase().indexOf(stripDiacritics(''+term).toUpperCase()) >= 0;+ },+ separator: ",",+ tokenSeparators: [],+ tokenizer: defaultTokenizer,+ escapeMarkup: defaultEscapeMarkup,+ blurOnChange: false,+ selectOnBlur: false,+ adaptContainerCssClass: function(c) { return c; },+ adaptDropdownCssClass: function(c) { return null; },+ nextSearchTerm: function(selectedObject, currentSearchTerm) { return undefined; }+ };++ $.fn.select2.ajaxDefaults = {+ transport: $.ajax,+ params: {+ type: "GET",+ cache: false,+ dataType: "json"+ }+ };++ // exports+ window.Select2 = {+ query: {+ ajax: ajax,+ local: local,+ tags: tags+ }, util: {+ debounce: debounce,+ markMatch: markMatch,+ escapeMarkup: defaultEscapeMarkup,+ stripDiacritics: stripDiacritics+ }, "class": {+ "abstract": AbstractSelect2,+ "single": SingleSelect2,+ "multi": MultiSelect2+ }+ };++}(jQuery));diff --git a/data/devlibs/select2/select2.min.js b/data/devlibs/select2/select2.min.jsnew file mode 100644index 000000000..bffe4c241--- /dev/null+++ b/data/devlibs/select2/select2.min.js@@ -0,0 +1,22 @@+/*+Copyright 2012 Igor Vaynberg++Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013++This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU+General Public License version 2 (the "GPL License"). You may choose either license to govern your+use of this software only upon the condition that you accept all of the terms of either the Apache+License or the GPL License.++You may obtain a copy of the Apache License and the GPL License at:++http://www.apache.org/licenses/LICENSE-2.0+http://www.gnu.org/licenses/gpl-2.0.html++Unless required by applicable law or agreed to in writing, software distributed under the Apache License+or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,+either express or implied. See the Apache License and the GPL License for the specific language governing+permissions and limitations under the Apache License and the GPL License.+*/+!function(a){"undefined"==typeof a.fn.each2&&a.extend(a.fn,{each2:function(b){for(var c=a([0]),d=-1,e=this.length;++d<e&&(c.context=c[0]=this[d])&&b.call(c[0],d,c)!==!1;);return this}})}(jQuery),function(a,b){"use strict";function n(a){var b,c,d,e;if(!a||a.length<1)return a;for(b="",c=0,d=a.length;d>c;c++)e=a.charAt(c),b+=m[e]||e;return b}function o(a,b){for(var c=0,d=b.length;d>c;c+=1)if(q(a,b[c]))return c;return-1}function p(){var b=a(l);b.appendTo("body");var c={width:b.width()-b[0].clientWidth,height:b.height()-b[0].clientHeight};return b.remove(),c}function q(a,c){return a===c?!0:a===b||c===b?!1:null===a||null===c?!1:a.constructor===String?a+""==c+"":c.constructor===String?c+""==a+"":!1}function r(b,c){var d,e,f;if(null===b||b.length<1)return[];for(d=b.split(c),e=0,f=d.length;f>e;e+=1)d[e]=a.trim(d[e]);return d}function s(a){return a.outerWidth(!1)-a.width()}function t(c){var d="keyup-change-value";c.on("keydown",function(){a.data(c,d)===b&&a.data(c,d,c.val())}),c.on("keyup",function(){var e=a.data(c,d);e!==b&&c.val()!==e&&(a.removeData(c,d),c.trigger("keyup-change"))})}function u(c){c.on("mousemove",function(c){var d=i;(d===b||d.x!==c.pageX||d.y!==c.pageY)&&a(c.target).trigger("mousemove-filtered",c)})}function v(a,c,d){d=d||b;var e;return function(){var b=arguments;window.clearTimeout(e),e=window.setTimeout(function(){c.apply(d,b)},a)}}function w(a){var c,b=!1;return function(){return b===!1&&(c=a(),b=!0),c}}function x(a,b){var c=v(a,function(a){b.trigger("scroll-debounced",a)});b.on("scroll",function(a){o(a.target,b.get())>=0&&c(a)})}function y(a){a[0]!==document.activeElement&&window.setTimeout(function(){var d,b=a[0],c=a.val().length;a.focus(),a.is(":visible")&&b===document.activeElement&&(b.setSelectionRange?b.setSelectionRange(c,c):b.createTextRange&&(d=b.createTextRange(),d.collapse(!1),d.select()))},0)}function z(b){b=a(b)[0];var c=0,d=0;if("selectionStart"in b)c=b.selectionStart,d=b.selectionEnd-c;else if("selection"in document){b.focus();var e=document.selection.createRange();d=document.selection.createRange().text.length,e.moveStart("character",-b.value.length),c=e.text.length-d}return{offset:c,length:d}}function A(a){a.preventDefault(),a.stopPropagation()}function B(a){a.preventDefault(),a.stopImmediatePropagation()}function C(b){if(!h){var c=b[0].currentStyle||window.getComputedStyle(b[0],null);h=a(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),h.attr("class","select2-sizer"),a("body").append(h)}return h.text(b.val()),h.width()}function D(b,c,d){var e,g,f=[];e=b.attr("class"),e&&(e=""+e,a(e.split(" ")).each2(function(){0===this.indexOf("select2-")&&f.push(this)})),e=c.attr("class"),e&&(e=""+e,a(e.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(g=d(this),g&&f.push(g))})),b.attr("class",f.join(" "))}function E(a,b,c,d){var e=n(a.toUpperCase()).indexOf(n(b.toUpperCase())),f=b.length;return 0>e?(c.push(d(a)),void 0):(c.push(d(a.substring(0,e))),c.push("<span class='select2-match'>"),c.push(d(a.substring(e,e+f))),c.push("</span>"),c.push(d(a.substring(e+f,a.length))),void 0)}function F(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})}function G(c){var d,e=null,f=c.quietMillis||100,g=c.url,h=this;return function(i){window.clearTimeout(d),d=window.setTimeout(function(){var d=c.data,f=g,j=c.transport||a.fn.select2.ajaxDefaults.transport,k={type:c.type||"GET",cache:c.cache||!1,jsonpCallback:c.jsonpCallback||b,dataType:c.dataType||"json"},l=a.extend({},a.fn.select2.ajaxDefaults.params,k);d=d?d.call(h,i.term,i.page,i.context):null,f="function"==typeof f?f.call(h,i.term,i.page,i.context):f,e&&e.abort(),c.params&&(a.isFunction(c.params)?a.extend(l,c.params.call(h)):a.extend(l,c.params)),a.extend(l,{url:f,dataType:c.dataType,data:d,success:function(a){var b=c.results(a,i.page);i.callback(b)}}),e=j.call(h,l)},f)}}function H(b){var d,e,c=b,f=function(a){return""+a.text};a.isArray(c)&&(e=c,c={results:e}),a.isFunction(c)===!1&&(e=c,c=function(){return e});var g=c();return g.text&&(f=g.text,a.isFunction(f)||(d=g.text,f=function(a){return a[d]})),function(b){var g,d=b.term,e={results:[]};return""===d?(b.callback(c()),void 0):(g=function(c,e){var h,i;if(c=c[0],c.children){h={};for(i in c)c.hasOwnProperty(i)&&(h[i]=c[i]);h.children=[],a(c.children).each2(function(a,b){g(b,h.children)}),(h.children.length||b.matcher(d,f(h),c))&&e.push(h)}else b.matcher(d,f(c),c)&&e.push(c)},a(c().results).each2(function(a,b){g(b,e.results)}),b.callback(e),void 0)}}function I(c){var d=a.isFunction(c);return function(e){var f=e.term,g={results:[]};a(d?c():c).each(function(){var a=this.text!==b,c=a?this.text:this;(""===f||e.matcher(f,c))&&g.results.push(a?this:{id:this,text:this})}),e.callback(g)}}function J(b,c){if(a.isFunction(b))return!0;if(!b)return!1;throw new Error(c+" must be a function or a falsy value")}function K(b){return a.isFunction(b)?b():b}function L(b){var c=0;return a.each(b,function(a,b){b.children?c+=L(b.children):c++}),c}function M(a,c,d,e){var h,i,j,k,l,f=a,g=!1;if(!e.createSearchChoice||!e.tokenSeparators||e.tokenSeparators.length<1)return b;for(;;){for(i=-1,j=0,k=e.tokenSeparators.length;k>j&&(l=e.tokenSeparators[j],i=a.indexOf(l),!(i>=0));j++);if(0>i)break;if(h=a.substring(0,i),a=a.substring(i+l.length),h.length>0&&(h=e.createSearchChoice.call(this,h,c),h!==b&&null!==h&&e.id(h)!==b&&null!==e.id(h))){for(g=!1,j=0,k=c.length;k>j;j++)if(q(e.id(h),e.id(c[j]))){g=!0;break}g||d(h)}}return f!==a?a:void 0}function N(b,c){var d=function(){};return d.prototype=new b,d.prototype.constructor=d,d.prototype.parent=b.prototype,d.prototype=a.extend(d.prototype,c),d}if(window.Select2===b){var c,d,e,f,g,h,j,k,i={x:0,y:0},c={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(a){switch(a=a.which?a.which:a){case c.LEFT:case c.RIGHT:case c.UP:case c.DOWN:return!0}return!1},isControl:function(a){var b=a.which;switch(b){case c.SHIFT:case c.CTRL:case c.ALT:return!0}return a.metaKey?!0:!1},isFunctionKey:function(a){return a=a.which?a.which:a,a>=112&&123>=a}},l="<div class='select2-measure-scrollbar'></div>",m={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z"};j=a(document),g=function(){var a=1;return function(){return a++}}(),j.on("mousemove",function(a){i.x=a.pageX,i.y=a.pageY}),d=N(Object,{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(c){var d,e,f=".select2-results";this.opts=c=this.prepareOpts(c),this.id=c.id,c.element.data("select2")!==b&&null!==c.element.data("select2")&&c.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(c.element.attr("id")||"autogen"+g()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=w(function(){return c.element.closest("body")}),D(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",c.element.attr("style")),this.container.css(K(c.containerCss)),this.container.addClass(K(c.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",A),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),D(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(K(c.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",A),this.results=d=this.container.find(f),this.search=e=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",A),u(this.results),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",f,this.bind(this.highlightUnderEvent)),x(80,this.results),this.dropdown.on("scroll-debounced",f,this.bind(this.loadMoreIfNeeded)),a(this.container).on("change",".select2-input",function(a){a.stopPropagation()}),a(this.dropdown).on("change",".select2-input",function(a){a.stopPropagation()}),a.fn.mousewheel&&d.mousewheel(function(a,b,c,e){var f=d.scrollTop();e>0&&0>=f-e?(d.scrollTop(0),A(a)):0>e&&d.get(0).scrollHeight-d.scrollTop()+e<=d.height()&&(d.scrollTop(d.get(0).scrollHeight-d.height()),A(a))}),t(e),e.on("keyup-change input paste",this.bind(this.updateResults)),e.on("focus",function(){e.addClass("select2-focused")}),e.on("blur",function(){e.removeClass("select2-focused")}),this.dropdown.on("mouseup",f,this.bind(function(b){a(b.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(b),this.selectHighlighted(b))})),this.dropdown.on("click mouseup mousedown",function(a){a.stopPropagation()}),a.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==c.maximumInputLength&&this.search.attr("maxlength",c.maximumInputLength);var h=c.element.prop("disabled");h===b&&(h=!1),this.enable(!h);var i=c.element.prop("readonly");i===b&&(i=!1),this.readonly(i),k=k||p(),this.autofocus=c.element.prop("autofocus"),c.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=b},destroy:function(){var a=this.opts.element,c=a.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),c!==b&&(c.container.remove(),c.dropdown.remove(),a.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?a.attr({tabindex:this.elementTabIndex}):a.removeAttr("tabindex"),a.show())},optionToData:function(a){return a.is("option")?{id:a.prop("value"),text:a.text(),element:a.get(),css:a.attr("class"),disabled:a.prop("disabled"),locked:q(a.attr("locked"),"locked")||q(a.data("locked"),!0)}:a.is("optgroup")?{text:a.attr("label"),children:[],element:a.get(),css:a.attr("class")}:void 0},prepareOpts:function(c){var d,e,f,g,h=this;if(d=c.element,"select"===d.get(0).tagName.toLowerCase()&&(this.select=e=c.element),e&&a.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in c)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),c=a.extend({},{populateResults:function(d,e,f){var g,i=this.opts.id;g=function(d,e,j){var k,l,m,n,o,p,q,r,s,t;for(d=c.sortResults(d,e,f),k=0,l=d.length;l>k;k+=1)m=d[k],o=m.disabled===!0,n=!o&&i(m)!==b,p=m.children&&m.children.length>0,q=a("<li></li>"),q.addClass("select2-results-dept-"+j),q.addClass("select2-result"),q.addClass(n?"select2-result-selectable":"select2-result-unselectable"),o&&q.addClass("select2-disabled"),p&&q.addClass("select2-result-with-children"),q.addClass(h.opts.formatResultCssClass(m)),r=a(document.createElement("div")),r.addClass("select2-result-label"),t=c.formatResult(m,r,f,h.opts.escapeMarkup),t!==b&&r.html(t),q.append(r),p&&(s=a("<ul></ul>"),s.addClass("select2-result-sub"),g(m.children,s,j+1),q.append(s)),q.data("select2-data",m),e.append(q)},g(e,d,0)}},a.fn.select2.defaults,c),"function"!=typeof c.id&&(f=c.id,c.id=function(a){return a[f]}),a.isArray(c.element.data("select2Tags"))){if("tags"in c)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+c.element.attr("id");c.tags=c.element.data("select2Tags")}if(e?(c.query=this.bind(function(a){var f,g,i,c={results:[],more:!1},e=a.term;i=function(b,c){var d;b.is("option")?a.matcher(e,b.text(),b)&&c.push(h.optionToData(b)):b.is("optgroup")&&(d=h.optionToData(b),b.children().each2(function(a,b){i(b,d.children)}),d.children.length>0&&c.push(d))},f=d.children(),this.getPlaceholder()!==b&&f.length>0&&(g=this.getPlaceholderOption(),g&&(f=f.not(g))),f.each2(function(a,b){i(b,c.results)}),a.callback(c)}),c.id=function(a){return a.id},c.formatResultCssClass=function(a){return a.css}):"query"in c||("ajax"in c?(g=c.element.data("ajax-url"),g&&g.length>0&&(c.ajax.url=g),c.query=G.call(c.element,c.ajax)):"data"in c?c.query=H(c.data):"tags"in c&&(c.query=I(c.tags),c.createSearchChoice===b&&(c.createSearchChoice=function(b){return{id:a.trim(b),text:a.trim(b)}}),c.initSelection===b&&(c.initSelection=function(b,d){var e=[];a(r(b.val(),c.separator)).each(function(){var b={id:this,text:this},d=c.tags;a.isFunction(d)&&(d=d()),a(d).each(function(){return q(this.id,b.id)?(b=this,!1):void 0}),e.push(b)}),d(e)}))),"function"!=typeof c.query)throw"query function not defined for Select2 "+c.element.attr("id");return c},monitorSource:function(){var c,d,a=this.opts.element;a.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()})),c=this.bind(function(){var c=a.prop("disabled");c===b&&(c=!1),this.enable(!c);var d=a.prop("readonly");d===b&&(d=!1),this.readonly(d),D(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(K(this.opts.containerCssClass)),D(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(K(this.opts.dropdownCssClass))}),a.on("propertychange.select2",c),this.mutationCallback===b&&(this.mutationCallback=function(a){a.forEach(c)}),d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,d!==b&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new d(this.mutationCallback),this.propertyObserver.observe(a.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(b){var c=a.Event("select2-selecting",{val:this.id(b),object:b});return this.opts.element.trigger(c),!c.isDefaultPrevented()},triggerChange:function(b){b=b||{},b=a.extend({},b,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(b),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var a=this._enabled&&!this._readonly,b=!a;return a===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",b),this.close(),this.enabledInterface=a,!0)},enable:function(a){a===b&&(a=!0),this._enabled!==a&&(this._enabled=a,this.opts.element.prop("disabled",!a),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(a){return a===b&&(a=!1),this._readonly===a?!1:(this._readonly=a,this.opts.element.prop("readonly",a),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,u,v,w,x,b=this.dropdown,c=this.container.offset(),d=this.container.outerHeight(!1),e=this.container.outerWidth(!1),f=b.outerHeight(!1),g=a(window),h=g.width(),i=g.height(),j=g.scrollLeft()+h,l=g.scrollTop()+i,m=c.top+d,n=c.left,o=l>=m+f,p=c.top-f>=this.body().scrollTop(),q=b.outerWidth(!1),r=j>=n+q,s=b.hasClass("select2-drop-above");s?(u=!0,!p&&o&&(v=!0,u=!1)):(u=!1,!o&&p&&(v=!0,u=!0)),v&&(b.hide(),c=this.container.offset(),d=this.container.outerHeight(!1),e=this.container.outerWidth(!1),f=b.outerHeight(!1),j=g.scrollLeft()+h,l=g.scrollTop()+i,m=c.top+d,n=c.left,q=b.outerWidth(!1),r=j>=n+q,b.show()),this.opts.dropdownAutoWidth?(x=a(".select2-results",b)[0],b.addClass("select2-drop-auto-width"),b.css("width",""),q=b.outerWidth(!1)+(x.scrollHeight===x.clientHeight?0:k.width),q>e?e=q:q=e,r=j>=n+q):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(t=this.body().offset(),m-=t.top,n-=t.left),r||(n=c.left+e-q),w={left:n,width:e},u?(w.bottom=i-c.top,w.top="auto",this.container.addClass("select2-drop-above"),b.addClass("select2-drop-above")):(w.top=m,w.bottom="auto",this.container.removeClass("select2-drop-above"),b.removeClass("select2-drop-above")),w=a.extend(w,K(this.opts.dropdownCss)),b.css(w)},shouldOpen:function(){var b;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(b=a.Event("select2-opening"),this.opts.element.trigger(b),!b.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),!0):!1},opening:function(){var f,b=this.containerId,c="scroll."+b,d="resize."+b,e="orientationchange."+b;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),f=a("#select2-drop-mask"),0==f.length&&(f=a(document.createElement("div")),f.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),f.hide(),f.appendTo(this.body()),f.on("mousedown touchstart click",function(b){var d,c=a("#select2-drop");c.length>0&&(d=c.data("select2"),d.opts.selectOnBlur&&d.selectHighlighted({noFocus:!0}),d.close({focus:!0}),b.preventDefault(),b.stopPropagation())})),this.dropdown.prev()[0]!==f[0]&&this.dropdown.before(f),a("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),f.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var g=this;this.container.parents().add(window).each(function(){a(this).on(d+" "+c+" "+e,function(){g.positionDropdown()})})},close:function(){if(this.opened()){var b=this.containerId,c="scroll."+b,d="resize."+b,e="orientationchange."+b;this.container.parents().add(window).each(function(){a(this).off(c).off(d).off(e)}),this.clearDropdownAlignmentPreference(),a("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(a.Event("select2-close"))}},externalSearch:function(a){this.open(),this.search.val(a),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return K(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var c,d,e,f,g,h,i,b=this.results;if(d=this.highlight(),!(0>d)){if(0==d)return b.scrollTop(0),void 0;c=this.findHighlightableChoices().find(".select2-result-label"),e=a(c[d]),f=e.offset().top+e.outerHeight(!0),d===c.length-1&&(i=b.find("li.select2-more-results"),i.length>0&&(f=i.offset().top+i.outerHeight(!0))),g=b.offset().top+b.outerHeight(!0),f>g&&b.scrollTop(b.scrollTop()+(f-g)),h=e.offset().top-b.offset().top,0>h&&"none"!=e.css("display")&&b.scrollTop(b.scrollTop()+h)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(b){for(var c=this.findHighlightableChoices(),d=this.highlight();d>-1&&d<c.length;){d+=b;var e=a(c[d]);if(e.hasClass("select2-result-selectable")&&!e.hasClass("select2-disabled")&&!e.hasClass("select2-selected")){this.highlight(d);break}}},highlight:function(b){var d,e,c=this.findHighlightableChoices();return 0===arguments.length?o(c.filter(".select2-highlighted")[0],c.get()):(b>=c.length&&(b=c.length-1),0>b&&(b=0),this.removeHighlight(),d=a(c[b]),d.addClass("select2-highlighted"),this.ensureHighlightVisible(),e=d.data("select2-data"),e&&this.opts.element.trigger({type:"select2-highlight",val:this.id(e),choice:e}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(b){var c=a(b.target).closest(".select2-result-selectable");if(c.length>0&&!c.is(".select2-highlighted")){var d=this.findHighlightableChoices();this.highlight(d.index(c))}else 0==c.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var c,a=this.results,b=a.find("li.select2-more-results"),d=this.resultsPage+1,e=this,f=this.search.val(),g=this.context;0!==b.length&&(c=b.offset().top-a.offset().top-a.height(),c<=this.opts.loadMorePadding&&(b.addClass("select2-active"),this.opts.query({element:this.opts.element,term:f,page:d,context:g,matcher:this.opts.matcher,callback:this.bind(function(c){e.opened()&&(e.opts.populateResults.call(this,a,c.results,{term:f,page:d,context:g}),e.postprocessResults(c,!1,!1),c.more===!0?(b.detach().appendTo(a).text(e.opts.formatLoadMore(d+1)),window.setTimeout(function(){e.loadMoreIfNeeded()},10)):b.remove(),e.positionDropdown(),e.resultsPage=d,e.context=c.context,this.opts.element.trigger({type:"select2-loaded",items:c}))})})))},tokenize:function(){},updateResults:function(c){function m(){d.removeClass("select2-active"),h.positionDropdown()}function n(a){e.html(a),m()}var g,i,l,d=this.search,e=this.results,f=this.opts,h=this,j=d.val(),k=a.data(this.container,"select2-last-term");if((c===!0||!k||!q(j,k))&&(a.data(this.container,"select2-last-term",j),c===!0||this.showSearchInput!==!1&&this.opened())){l=++this.queryCount;var o=this.getMaximumSelectionSize();if(o>=1&&(g=this.data(),a.isArray(g)&&g.length>=o&&J(f.formatSelectionTooBig,"formatSelectionTooBig")))return n("<li class='select2-selection-limit'>"+f.formatSelectionTooBig(o)+"</li>"),void 0;if(d.val().length<f.minimumInputLength)return J(f.formatInputTooShort,"formatInputTooShort")?n("<li class='select2-no-results'>"+f.formatInputTooShort(d.val(),f.minimumInputLength)+"</li>"):n(""),c&&this.showSearch&&this.showSearch(!0),void 0;+if(f.maximumInputLength&&d.val().length>f.maximumInputLength)return J(f.formatInputTooLong,"formatInputTooLong")?n("<li class='select2-no-results'>"+f.formatInputTooLong(d.val(),f.maximumInputLength)+"</li>"):n(""),void 0;f.formatSearching&&0===this.findHighlightableChoices().length&&n("<li class='select2-searching'>"+f.formatSearching()+"</li>"),d.addClass("select2-active"),this.removeHighlight(),i=this.tokenize(),i!=b&&null!=i&&d.val(i),this.resultsPage=1,f.query({element:f.element,term:d.val(),page:this.resultsPage,context:null,matcher:f.matcher,callback:this.bind(function(g){var i;if(l==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(this.context=g.context===b?null:g.context,this.opts.createSearchChoice&&""!==d.val()&&(i=this.opts.createSearchChoice.call(h,d.val(),g.results),i!==b&&null!==i&&h.id(i)!==b&&null!==h.id(i)&&0===a(g.results).filter(function(){return q(h.id(this),h.id(i))}).length&&g.results.unshift(i)),0===g.results.length&&J(f.formatNoMatches,"formatNoMatches"))return n("<li class='select2-no-results'>"+f.formatNoMatches(d.val())+"</li>"),void 0;e.empty(),h.opts.populateResults.call(this,e,g.results,{term:d.val(),page:this.resultsPage,context:null}),g.more===!0&&J(f.formatLoadMore,"formatLoadMore")&&(e.append("<li class='select2-more-results'>"+h.opts.escapeMarkup(f.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(g,c),m(),this.opts.element.trigger({type:"select2-loaded",items:g})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){y(this.search)},selectHighlighted:function(a){var b=this.highlight(),c=this.results.find(".select2-highlighted"),d=c.closest(".select2-result").data("select2-data");d?(this.highlight(b),this.onSelect(d,a)):a&&a.noFocus&&this.close()},getPlaceholder:function(){var a;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((a=this.getPlaceholderOption())!==b?a.text():b)},getPlaceholderOption:function(){if(this.select){var a=this.select.children("option").first();if(this.opts.placeholderOption!==b)return"first"===this.opts.placeholderOption&&a||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===a.text()&&""===a.val())return a}},initContainerWidth:function(){function c(){var c,d,e,f,g,h;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(c=this.opts.element.attr("style"),c!==b)for(d=c.split(";"),f=0,g=d.length;g>f;f+=1)if(h=d[f].replace(/\s/g,""),e=h.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==e&&e.length>=1)return e[1];return"resolve"===this.opts.width?(c=this.opts.element.css("width"),c.indexOf("%")>0?c:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return a.isFunction(this.opts.width)?this.opts.width():this.opts.width}var d=c.call(this);null!==d&&this.container.css("width",d)}}),e=N(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return b},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var c,d,e;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.search.focus(),c=this.search.get(0),c.createTextRange?(d=c.createTextRange(),d.collapse(!1),d.select()):c.setSelectionRange&&(e=this.search.val().length,c.setSelectionRange(e,e)),""===this.search.val()&&this.nextSearchTerm!=b&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(a.Event("select2-open"))},close:function(a){this.opened()&&(this.parent.close.apply(this,arguments),a=a||{focus:!0},this.focusser.removeAttr("disabled"),a.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){a("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var b,d=this.container,e=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=b=d.find(".select2-choice"),this.focusser=d.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+g()),a("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()){if(a.which===c.PAGE_UP||a.which===c.PAGE_DOWN)return A(a),void 0;switch(a.which){case c.UP:case c.DOWN:return this.moveHighlight(a.which===c.UP?-1:1),A(a),void 0;case c.ENTER:return this.selectHighlighted(),A(a),void 0;case c.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case c.ESC:return this.cancel(a),A(a),void 0}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()&&a.which!==c.TAB&&!c.isControl(a)&&!c.isFunctionKey(a)&&a.which!==c.ESC){if(this.opts.openOnEnter===!1&&a.which===c.ENTER)return A(a),void 0;if(a.which==c.DOWN||a.which==c.UP||a.which==c.ENTER&&this.opts.openOnEnter){if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return;return this.open(),A(a),void 0}return a.which==c.DELETE||a.which==c.BACKSPACE?(this.opts.allowClear&&this.clear(),A(a),void 0):void 0}})),t(this.focusser),this.focusser.on("keyup-change input",this.bind(function(a){if(this.opts.minimumResultsForSearch>=0){if(a.stopPropagation(),this.opened())return;this.open()}})),b.on("mousedown","abbr",this.bind(function(a){this.isInterfaceEnabled()&&(this.clear(),B(a),this.close(),this.selection.focus())})),b.on("mousedown",this.bind(function(b){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),A(b)})),e.on("mousedown",this.bind(function(){this.search.focus()})),b.on("focus",this.bind(function(a){A(a)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(a.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(b){var c=this.selection.data("select2-data");if(c){var d=a.Event("select2-clearing");if(this.opts.element.trigger(d),d.isDefaultPrevented())return;var e=this.getPlaceholderOption();this.opts.element.val(e?e.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),b!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(c),choice:c}),this.triggerChange({removed:c}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var a;return this.getPlaceholder()?(a=this.getPlaceholderOption())!==b&&a.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===b||null===this.opts.element.val():!1},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=a.find("option").filter(function(){return this.selected});b(c.optionToData(d))}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=c.val(),f=null;b.query({matcher:function(a,c,d){var g=q(e,b.id(d));return g&&(f=d),g},callback:a.isFunction(d)?function(){d(f)}:a.noop})}),b},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===b?b:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&a!==b){if(this.select&&this.getPlaceholderOption()===b)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(a,b,c){var d=0,e=this;if(this.findHighlightableChoices().each2(function(a,b){return q(e.id(b.data("select2-data")),e.opts.element.val())?(d=a,!1):void 0}),c!==!1&&(b===!0&&d>=0?this.highlight(d):this.highlight(0)),b===!0){var g=this.opts.minimumResultsForSearch;g>=0&&this.showSearch(L(a.results)>=g)}},showSearch:function(b){this.showSearchInput!==b&&(this.showSearchInput=b,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!b),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!b),a(this.dropdown,this.container).toggleClass("select2-with-searchbox",b))},onSelect:function(a,b){if(this.triggerSelect(a)){var c=this.opts.element.val(),d=this.data();this.opts.element.val(this.id(a)),this.updateSelection(a),this.opts.element.trigger({type:"select2-selected",val:this.id(a),choice:a}),this.nextSearchTerm=this.opts.nextSearchTerm(a,this.search.val()),this.close(),b&&b.noFocus||this.focusser.focus(),q(c,this.id(a))||this.triggerChange({added:a,removed:d})}},updateSelection:function(a){var d,e,c=this.selection.find(".select2-chosen");this.selection.data("select2-data",a),c.empty(),null!==a&&(d=this.opts.formatSelection(a,c,this.opts.escapeMarkup)),d!==b&&c.append(d),e=this.opts.formatSelectionCssClass(a,c),e!==b&&c.addClass(e),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==b&&this.container.addClass("select2-allowclear")},val:function(){var a,c=!1,d=null,e=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(a=arguments[0],arguments.length>1&&(c=arguments[1]),this.select)this.select.val(a).find("option").filter(function(){return this.selected}).each2(function(a,b){return d=e.optionToData(b),!1}),this.updateSelection(d),this.setPlaceholder(),c&&this.triggerChange({added:d,removed:f});else{if(!a&&0!==a)return this.clear(c),void 0;if(this.opts.initSelection===b)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(a),this.opts.initSelection(this.opts.element,function(a){e.opts.element.val(a?e.id(a):""),e.updateSelection(a),e.setPlaceholder(),c&&e.triggerChange({added:a,removed:f})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(a){var c,d=!1;return 0===arguments.length?(c=this.selection.data("select2-data"),c==b&&(c=null),c):(arguments.length>1&&(d=arguments[1]),a?(c=this.data(),this.opts.element.val(a?this.id(a):""),this.updateSelection(a),d&&this.triggerChange({added:a,removed:c})):this.clear(d),void 0)}}),f=N(d,{createContainer:function(){var b=a(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""));return b},prepareOpts:function(){var b=this.parent.prepareOpts.apply(this,arguments),c=this;return"select"===b.element.get(0).tagName.toLowerCase()?b.initSelection=function(a,b){var d=[];a.find("option").filter(function(){return this.selected}).each2(function(a,b){d.push(c.optionToData(b))}),b(d)}:"data"in b&&(b.initSelection=b.initSelection||function(c,d){var e=r(c.val(),b.separator),f=[];b.query({matcher:function(c,d,g){var h=a.grep(e,function(a){return q(a,b.id(g))}).length;return h&&f.push(g),h},callback:a.isFunction(d)?function(){for(var a=[],c=0;c<e.length;c++)for(var g=e[c],h=0;h<f.length;h++){var i=f[h];if(q(g,b.id(i))){a.push(i),f.splice(h,1);break}}d(a)}:a.noop})}),b},selectChoice:function(a){var b=this.container.find(".select2-search-choice-focus");b.length&&a&&a[0]==b[0]||(b.length&&this.opts.element.trigger("choice-deselected",b),b.removeClass("select2-search-choice-focus"),a&&a.length&&(this.close(),a.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",a)))},destroy:function(){a("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var d,b=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=d=this.container.find(b);var e=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){e.search[0].focus(),e.selectChoice(a(this))}),this.search.attr("id","s2id_autogen"+g()),a("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(a){if(this.isInterfaceEnabled()){++this.keydowns;var b=d.find(".select2-search-choice-focus"),e=b.prev(".select2-search-choice:not(.select2-locked)"),f=b.next(".select2-search-choice:not(.select2-locked)"),g=z(this.search);if(b.length&&(a.which==c.LEFT||a.which==c.RIGHT||a.which==c.BACKSPACE||a.which==c.DELETE||a.which==c.ENTER)){var h=b;return a.which==c.LEFT&&e.length?h=e:a.which==c.RIGHT?h=f.length?f:null:a.which===c.BACKSPACE?(this.unselect(b.first()),this.search.width(10),h=e.length?e:f):a.which==c.DELETE?(this.unselect(b.first()),this.search.width(10),h=f.length?f:null):a.which==c.ENTER&&(h=null),this.selectChoice(h),A(a),h&&h.length||this.open(),void 0}if((a.which===c.BACKSPACE&&1==this.keydowns||a.which==c.LEFT)&&0==g.offset&&!g.length)return this.selectChoice(d.find(".select2-search-choice:not(.select2-locked)").last()),A(a),void 0;if(this.selectChoice(null),this.opened())switch(a.which){case c.UP:case c.DOWN:return this.moveHighlight(a.which===c.UP?-1:1),A(a),void 0;case c.ENTER:return this.selectHighlighted(),A(a),void 0;case c.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case c.ESC:return this.cancel(a),A(a),void 0}if(a.which!==c.TAB&&!c.isControl(a)&&!c.isFunctionKey(a)&&a.which!==c.BACKSPACE&&a.which!==c.ESC){if(a.which===c.ENTER){if(this.opts.openOnEnter===!1)return;if(a.altKey||a.ctrlKey||a.shiftKey||a.metaKey)return}this.open(),(a.which===c.PAGE_UP||a.which===c.PAGE_DOWN)&&A(a),a.which===c.ENTER&&A(a)}}})),this.search.on("keyup",this.bind(function(){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(b){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),b.stopImmediatePropagation(),this.opts.element.trigger(a.Event("select2-blur"))})),this.container.on("click",b,this.bind(function(b){this.isInterfaceEnabled()&&(a(b.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.open(),this.focusSearch(),b.preventDefault()))})),this.container.on("focus",b,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(a.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var c=this;this.opts.initSelection.call(null,this.opts.element,function(a){a!==b&&null!==a&&(c.updateSelection(a),c.close(),c.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder(),c=this.getMaxSearchWidth();a!==b&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(a).addClass("select2-default"),this.search.width(c>0?c:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(a.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(b){var c=[],d=[],e=this;a(b).each(function(){o(e.id(this),c)<0&&(c.push(e.id(this)),d.push(this))}),b=d,this.selection.find(".select2-search-choice").remove(),a(b).each(function(){e.addSelectedChoice(this)}),e.postprocessResults()},tokenize:function(){var a=this.search.val();a=this.opts.tokenizer.call(this,a,this.data(),this.bind(this.onSelect),this.opts),null!=a&&a!=b&&(this.search.val(a),a.length>0&&this.open())},onSelect:function(a,b){this.triggerSelect(a)&&(this.addSelectedChoice(a),this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(a,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:a}),b&&b.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(c){var j,k,d=!c.locked,e=a("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),f=a("<li class='select2-search-choice select2-locked'><div></div></li>"),g=d?e:f,h=this.id(c),i=this.getVal();j=this.opts.formatSelection(c,g.find("div"),this.opts.escapeMarkup),j!=b&&g.find("div").replaceWith("<div>"+j+"</div>"),k=this.opts.formatSelectionCssClass(c,g.find("div")),k!=b&&g.addClass(k),d&&g.find(".select2-search-choice-close").on("mousedown",A).on("click dblclick",this.bind(function(b){this.isInterfaceEnabled()&&(a(b.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(a(b.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()})).dequeue(),A(b))})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),g.data("select2-data",c),g.insertBefore(this.searchContainer),i.push(h),this.setVal(i)},unselect:function(b){var d,e,c=this.getVal();if(b=b.closest(".select2-search-choice"),0===b.length)throw"Invalid argument: "+b+". Must be .select2-search-choice";if(d=b.data("select2-data")){for(;(e=o(this.id(d),c))>=0;)c.splice(e,1),this.setVal(c),this.select&&this.postprocessResults();var f=a.Event("select2-removing");f.val=this.id(d),f.choice=d,this.opts.element.trigger(f),f.isDefaultPrevented()||(b.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(d),choice:d}),this.triggerChange({removed:d}))}},postprocessResults:function(a,b,c){var d=this.getVal(),e=this.results.find(".select2-result"),f=this.results.find(".select2-result-with-children"),g=this;e.each2(function(a,b){var c=g.id(b.data("select2-data"));o(c,d)>=0&&(b.addClass("select2-selected"),b.find(".select2-result-selectable").addClass("select2-selected"))}),f.each2(function(a,b){b.is(".select2-result-selectable")||0!==b.find(".select2-result-selectable:not(.select2-selected)").length||b.addClass("select2-selected")}),-1==this.highlight()&&c!==!1&&g.highlight(0),!this.opts.createSearchChoice&&!e.filter(".select2-result:not(.select2-selected)").length>0&&(!a||a&&!a.more&&0===this.results.find(".select2-no-results").length)&&J(g.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+g.opts.formatNoMatches(g.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-s(this.search)},resizeSearch:function(){var a,b,c,d,e,f=s(this.search);a=C(this.search)+10,b=this.search.offset().left,c=this.selection.width(),d=this.selection.offset().left,e=c-(b-d)-f,a>e&&(e=c-f),40>e&&(e=c-f),0>=e&&(e=a),this.search.width(Math.floor(e))},getVal:function(){var a;return this.select?(a=this.select.val(),null===a?[]:a):(a=this.opts.element.val(),r(a,this.opts.separator))},setVal:function(b){var c;this.select?this.select.val(b):(c=[],a(b).each(function(){o(this,c)<0&&c.push(this)}),this.opts.element.val(0===c.length?"":c.join(this.opts.separator)))},buildChangeDetails:function(a,b){for(var b=b.slice(0),a=a.slice(0),c=0;c<b.length;c++)for(var d=0;d<a.length;d++)q(this.opts.id(b[c]),this.opts.id(a[d]))&&(b.splice(c,1),c>0&&c--,a.splice(d,1),d--);return{added:b,removed:a}},val:function(c,d){var e,f=this;if(0===arguments.length)return this.getVal();if(e=this.data(),e.length||(e=[]),!c&&0!==c)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),d&&this.triggerChange({added:this.data(),removed:e}),void 0;if(this.setVal(c),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),d&&this.triggerChange(this.buildChangeDetails(e,this.data()));else{if(this.opts.initSelection===b)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(b){var c=a.map(b,f.id);f.setVal(c),f.updateSelection(b),f.clearSearch(),d&&f.triggerChange(f.buildChangeDetails(e,f.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var b=[],c=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){b.push(c.opts.id(a(this).data("select2-data")))}),this.setVal(b),this.triggerChange()},data:function(b,c){var e,f,d=this;return 0===arguments.length?this.selection.find(".select2-search-choice").map(function(){return a(this).data("select2-data")}).get():(f=this.data(),b||(b=[]),e=a.map(b,function(a){return d.opts.id(a)}),this.setVal(e),this.updateSelection(b),this.clearSearch(),c&&this.triggerChange(this.buildChangeDetails(f,this.data())),void 0)}}),a.fn.select2=function(){var d,g,h,i,j,c=Array.prototype.slice.call(arguments,0),k=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],l=["opened","isFocused","container","dropdown"],m=["val","data"],n={search:"externalSearch"};return this.each(function(){if(0===c.length||"object"==typeof c[0])d=0===c.length?{}:a.extend({},c[0]),d.element=a(this),"select"===d.element.get(0).tagName.toLowerCase()?j=d.element.prop("multiple"):(j=d.multiple||!1,"tags"in d&&(d.multiple=j=!0)),g=j?new f:new e,g.init(d);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(o(c[0],k)<0)throw"Unknown method: "+c[0];if(i=b,g=a(this).data("select2"),g===b)return;if(h=c[0],"container"===h?i=g.container:"dropdown"===h?i=g.dropdown:(n[h]&&(h=n[h]),i=g[h].apply(g,c.slice(1))),o(c[0],l)>=0||o(c[0],m)&&1==c.length)return!1}}),i===b?this:i},a.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){var e=[];return E(a.text,c.term,e,d),e.join("")},formatSelection:function(a,c,d){return a?d(a.text):b},sortResults:function(a){return a},formatResultCssClass:function(){return b},formatSelectionCssClass:function(){return b},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" more character"+(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please delete "+c+" character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a.id},matcher:function(a,b){return n(""+b).toUpperCase().indexOf(n(""+a).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:M,escapeMarkup:F,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return b}},a.fn.select2.ajaxDefaults={transport:a.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:G,local:H,tags:I},util:{debounce:v,markMatch:E,escapeMarkup:F,stripDiacritics:n},"class":{"abstract":d,single:e,multi:f}}}}(jQuery);\ No newline at end of filediff --git a/data/devlibs/select2/select2.png b/data/devlibs/select2/select2.pngnew file mode 100644index 000000000..1d804ffb9Binary files /dev/null and b/data/devlibs/select2/select2.png differdiff --git a/data/devlibs/select2/select2x2.png b/data/devlibs/select2/select2x2.pngnew file mode 100644index 000000000..4bdd5c961Binary files /dev/null and b/data/devlibs/select2/select2x2.png differdiff --git a/data/ext/viewerAudioVideo/extension.js b/data/ext/viewerAudioVideo/extension.jsnew file mode 100644index 000000000..f82d6e65f--- /dev/null+++ b/data/ext/viewerAudioVideo/extension.js@@ -0,0 +1,60 @@+/* Copyright (c) 2013 The Tagspaces Authors. All rights reserved.+ * Use of this source code is governed by a AGPL3 license that+ * can be found in the LICENSE file. */++define(function(require, exports, module) {+"use strict";++ console.log("Loading viewerImage");++ var extensionTitle = "Image Viewer"+ var extensionID = "viewerImage"; // ID should be equal to the directory name where the ext. is located+ var extensionType = "perspective";+ var extensionIcon = "icon-list";+ var extensionVersion = "1.0";+ var extensionManifestVersion = 1;+ var extensionLicense = "AGPL";+ var extensionSupportedFileTypes = [ "jpeg", "jpg", "png", "gif", "bmp" ];++ var TSCORE = require("tscore");++ var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+extensionID;+ var UI = undefined;++ exports.init = function(filePath, elementID) {+ console.log("Initalization Browser Image Viewer...");++ require([+ extensionDirectory+'/viewerUI.js',+ extensionDirectory+'/pixastic/pixastic.custom.js',+ //extensionDirectory+'/camanjs/caman.full.js',+ ], function(extUI) {+ UI = new extUI.ExtUI(extensionID, elementID, filePath);+ UI.buildUI();+ TSCORE.hideLoadingAnimation();+ });+ };++ exports.viewerMode = function(isViewerMode) {+ console.log("viewerMode not supported on this extension");+ };++ exports.setContent = function(content) {+ console.log("setContent not supported on this extension");+ };++ exports.getContent = function() {+ console.log("getContent not supported on this extension");+ };++ // Vars+ exports.Title = extensionTitle;+ exports.ID = extensionID;+ exports.Type = extensionType;+ exports.Icon = extensionIcon;+ exports.Version = extensionVersion;+ exports.ManifestVersion = extensionManifestVersion;+ exports.License = extensionLicense;+ exports.SupportedFileTypes = extensionSupportedFileTypes;++});\ No newline at end of filediff --git a/data/index2.html b/data/index2.htmlnew file mode 100644index 000000000..a99bcdbf9--- /dev/null+++ b/data/index2.html@@ -0,0 +1,225 @@+<!DOCTYPE html>+<html>+<head>+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">+<title>TagSpaces New Design</title>+<script type="text/javascript" data-main="loader2" src="libs/requirejs/require.js"></script>+<link rel="stylesheet" type="text/css" href="libs/bootstrap/css/bootstrap3.css">+<link rel="stylesheet" type="text/css" href="devlibs/select2/select2.css">+<link rel="stylesheet" type="text/css" href="devlibs/select2/select2-bootstrap.css">+<link rel="stylesheet" type="text/css" href="css/tagspaces.css">+<link rel="stylesheet" type="text/css" href="devlibs/font-awesome-4.0.3/css/font-awesome.css">+<link rel="stylesheet" type="text/css" href="devlibs/bootstrap3xeditable/css/bootstrap-editable.css">+<style type="text/css">++.col1 .navbar, .col1 > .row2, .col1 > .row3 {+ background-color: #2E2D2D !important;+}++.ui-layout-resizer {+ background-color: white;+ border-top: 1px solid #ddd;+ border-left: 1px solid #ddd;+}++.ts-container {+ overflow-y: auto;+ padding: 0px;+ padding-bottom: 50px;+ margin-top: -20px;+ height: 100%;+ width: auto;+ z-index: 0;+ display: block;+ visibility: visible;+}++.navbar {+ border-radius: 0 !important;+ border: 0px;+ border-bottom: 1px;+}++.row2 {+ height: 96%;+}++.btn-toolbar {+ min-height: 40px;+}++/* Custom scrollbars for chrome */+::-webkit-scrollbar-track+{+/* -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);+ background-color: #F5F5F5;*/+ background-color: white;+}++::-webkit-scrollbar+{+ width: 8px;+ background-color: #F5F5F5;+}++::-webkit-scrollbar-thumb+{+ background-color: #bbb;+ border-radius: 6px;+}+</style>++</head>+<body>++<div class="col1">+ <div class="row2">+ <nav class="navbar navbar-default" role="navigation">+ <div class="btn-toolbar" style="width: 100%">+ <a id="logo" href="http://tagspaces.org" target="_new">TagSpaces</a>+ <a href="http://tagspaces.org" target="_new" class="appVersion"><sup id="appVersion"></sup></a>+ <a id="newVersionAvailable" style="color: white; display: none; color: #7bd148" class="appVersion" title="New TagSpaces version available" data-dropdown="#newVersionMenu">+ <sup>New Release Available!<!--i class="icon-leaf icon-large" style="color: #7bd148"></i--></sup></a>+ <span id="loadingAnimation"></span>+ </div>+ <div class="btn-toolbar" style="width: 100%">+ <button type="button" class="btn dropdown-toggle" data-toggle="dropdown">+ Dropdown <span class="caret"></span>+ </button>+ <ul class="dropdown-menu">+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ <li><a href="#">Dropdown link</a></li>+ </ul>+ </div>+ </nav>+ <div class="container ts-container">+ <div style="width: 100%; height: 100%">+ col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>+ col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>+ col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>+ </div>+ </div>+ </div>+ <div class="row3">+ <nav class="navbar" role="navigation">+ <ul class="nav nav-pills">+ <li class="active"><a href="#">Home</a></li>+ <li><a href="#">Profile</a></li>+ <li><a href="#">Messages</a></li>+ </ul>+ </nav>+ </div>+</div>++<div class="col2">+ <div class="row2">+ <nav class="navbar navbar-default" role="navigation">+ <div class="btn-toolbar" style="width: 100%">+ <button class="btn btn-link" id="toggleLeft">| | |</button>+ <button class="btn btn-link" id="switchLang">Language</button>+ <div class="btn-group pull-right" >+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">+ Dropdown+ <span class="caret"></span>+ </button>+ <ul class="dropdown-menu">+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ <li><a href="#">Dropdown link</a></li>+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ </ul>+ </div>+ </div>+ <div class="btn-toolbar">+ <button type="button" class="btn btn-danger">Action</button>+ <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">+ <span class="caret"></span>+ <span class="sr-only">Toggle Dropdown</span>+ </button>+ <ul class="dropdown-menu" role="menu">+ <li><a href="#">Action</a></li>+ <li><a href="#">Another action</a></li>+ <li><a href="#">Something else here</a></li>+ <li class="divider"></li>+ <li><a href="#">Separated link</a></li>+ </ul>+ <button class="btn" data-toggle="modal" data-target="#myModal">Launch demo modal</button>+ <input type="text" id="tagSelect" style="width: 150px"></input>+ </div>+ </nav>+ <div class="container ts-container">+ <div style="width: 100%; height: 100%">+ col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>+ col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>+ col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>col1subrow2<br>+ </div>+ </div>+ </div>+ <!--div class="row3"></div-->+</div>++<div class="col3">+ <div class="row2">+ <nav class="navbar navbar-default" role="navigation">+ <div class="btn-toolbar" style="width: 100%">+ <button class="btn btn-primary" id="toggleFullScreen">Fulls</button>+ <div class="btn-group pull-right" >+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">+ Dropdown+ <span class="caret"></span>+ </button>+ <ul class="dropdown-menu">+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ <li><a href="#">Dropdown link</a></li>+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ <li><a href="#">Dropdown linkDropdown linkDropdown link</a></li>+ </ul>+ </div>+ </div>+ <div class="btn-toolbar">+ <button type="button" class="btn btn-danger">Action</button>+ <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown">+ <span class="caret"></span>+ <span class="sr-only">Toggle Dropdown</span>+ </button>+ <ul class="dropdown-menu" role="menu">+ <li><a href="#">Action</a></li>+ <li><a href="#">Another action</a></li>+ <li><a href="#">Something else here</a></li>+ <li class="divider"></li>+ <li><a href="#">Separated link</a></li>+ </ul>+ <button class="btn" data-toggle="modal" data-target="#myModal">+ Launch demo modal+ </button>+ <a href="#" id="docTitle">Title</a>+ </div>+ </nav>+ <div class="container ts-container">+ <iframe src="about.html" style="border: 0px; width: 100%; height: 100%"></iframe>+ </div>+ </div>+ <!--div class="row3"></div-->+</div>++<!-- Modal -->+<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">+ <div class="modal-dialog">+ <div class="modal-content">+ <div class="modal-header">+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>+ <h4 class="modal-title" id="myModalLabel">Modal title</h4>+ </div>+ <div class="modal-body">+ ...+ </div>+ <div class="modal-footer">+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>+ <button type="button" class="btn btn-primary">Save changes</button>+ </div>+ </div><!-- /.modal-content -->+ </div><!-- /.modal-dialog -->+</div><!-- /.modal -->+</body>+</html>\ No newline at end of filediff --git a/data/libs/bootstrap/css/bootstrap3.css b/data/libs/bootstrap/css/bootstrap3.cssnew file mode 100644index 000000000..6aef1f6fd--- /dev/null+++ b/data/libs/bootstrap/css/bootstrap3.css@@ -0,0 +1,7098 @@+/*!+ * Bootstrap v3.0.2 by @fat and @mdo+ * Copyright 2013 Twitter, Inc.+ * Licensed under http://www.apache.org/licenses/LICENSE-2.0+ *+ * Designed and built with all the love in the world by @mdo and @fat.+ */++/*! normalize.css v2.1.3 | MIT License | git.io/normalize */++article,+aside,+details,+figcaption,+figure,+footer,+header,+hgroup,+main,+nav,+section,+summary {+ display: block;+}++audio,+canvas,+video {+ display: inline-block;+}++audio:not([controls]) {+ display: none;+ height: 0;+}++[hidden],+template {+ display: none;+}++html {+ font-family: sans-serif;+ -webkit-text-size-adjust: 100%;+ -ms-text-size-adjust: 100%;+}++body {+ margin: 0;+}++a {+ background: transparent;+}++a:focus {+ outline: thin dotted;+}++a:active,+a:hover {+ outline: 0;+}++h1 {+ margin: 0.67em 0;+ font-size: 2em;+}++abbr[title] {+ border-bottom: 1px dotted;+}++b,+strong {+ font-weight: bold;+}++dfn {+ font-style: italic;+}++hr {+ height: 0;+ -moz-box-sizing: content-box;+ box-sizing: content-box;+}++mark {+ color: #000;+ background: #ff0;+}++code,+kbd,+pre,+samp {+ font-family: monospace, serif;+ font-size: 1em;+}++pre {+ white-space: pre-wrap;+}++q {+ quotes: "\201C" "\201D" "\2018" "\2019";+}++small {+ font-size: 80%;+}++sub,+sup {+ position: relative;+ font-size: 75%;+ line-height: 0;+ vertical-align: baseline;+}++sup {+ top: -0.5em;+}++sub {+ bottom: -0.25em;+}++img {+ border: 0;+}++svg:not(:root) {+ overflow: hidden;+}++figure {+ margin: 0;+}++fieldset {+ padding: 0.35em 0.625em 0.75em;+ margin: 0 2px;+ border: 1px solid #c0c0c0;+}++legend {+ padding: 0;+ border: 0;+}++button,+input,+select,+textarea {+ margin: 0;+ font-family: inherit;+ font-size: 100%;+}++button,+input {+ line-height: normal;+}++button,+select {+ text-transform: none;+}++button,+html input[type="button"],+input[type="reset"],+input[type="submit"] {+ cursor: pointer;+ -webkit-appearance: button;+}++button[disabled],+html input[disabled] {+ cursor: default;+}++input[type="checkbox"],+input[type="radio"] {+ padding: 0;+ box-sizing: border-box;+}++input[type="search"] {+ -webkit-box-sizing: content-box;+ -moz-box-sizing: content-box;+ box-sizing: content-box;+ -webkit-appearance: textfield;+}++input[type="search"]::-webkit-search-cancel-button,+input[type="search"]::-webkit-search-decoration {+ -webkit-appearance: none;+}++button::-moz-focus-inner,+input::-moz-focus-inner {+ padding: 0;+ border: 0;+}++textarea {+ overflow: auto;+ vertical-align: top;+}++table {+ border-collapse: collapse;+ border-spacing: 0;+}++@media print {+ * {+ color: #000 !important;+ text-shadow: none !important;+ background: transparent !important;+ box-shadow: none !important;+ }+ a,+ a:visited {+ text-decoration: underline;+ }+ a[href]:after {+ content: " (" attr(href) ")";+ }+ abbr[title]:after {+ content: " (" attr(title) ")";+ }+ a[href^="javascript:"]:after,+ a[href^="#"]:after {+ content: "";+ }+ pre,+ blockquote {+ border: 1px solid #999;+ page-break-inside: avoid;+ }+ thead {+ display: table-header-group;+ }+ tr,+ img {+ page-break-inside: avoid;+ }+ img {+ max-width: 100% !important;+ }+ @page {+ margin: 2cm .5cm;+ }+ p,+ h2,+ h3 {+ orphans: 3;+ widows: 3;+ }+ h2,+ h3 {+ page-break-after: avoid;+ }+ select {+ background: #fff !important;+ }+ .navbar {+ display: none;+ }+ .table td,+ .table th {+ background-color: #fff !important;+ }+ .btn > .caret,+ .dropup > .btn > .caret {+ border-top-color: #000 !important;+ }+ .label {+ border: 1px solid #000;+ }+ .table {+ border-collapse: collapse !important;+ }+ .table-bordered th,+ .table-bordered td {+ border: 1px solid #ddd !important;+ }+}++*,+*:before,+*:after {+ -webkit-box-sizing: border-box;+ -moz-box-sizing: border-box;+ box-sizing: border-box;+}++html {+ font-size: 62.5%;+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);+}++body {+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;+ font-size: 14px;+ line-height: 1.428571429;+ color: #333333;+ background-color: #ffffff;+}++input,+button,+select,+textarea {+ font-family: inherit;+ font-size: inherit;+ line-height: inherit;+}++a {+ color: #428bca;+ text-decoration: none;+}++a:hover,+a:focus {+ color: #2a6496;+ text-decoration: underline;+}++a:focus {+ outline: thin dotted #333;+ outline: 5px auto -webkit-focus-ring-color;+ outline-offset: -2px;+}++img {+ vertical-align: middle;+}++.img-responsive {+ display: block;+ height: auto;+ max-width: 100%;+}++.img-rounded {+ border-radius: 6px;+}++.img-thumbnail {+ display: inline-block;+ height: auto;+ max-width: 100%;+ padding: 4px;+ line-height: 1.428571429;+ background-color: #ffffff;+ border: 1px solid #dddddd;+ border-radius: 4px;+ -webkit-transition: all 0.2s ease-in-out;+ transition: all 0.2s ease-in-out;+}++.img-circle {+ border-radius: 50%;+}++hr {+ margin-top: 20px;+ margin-bottom: 20px;+ border: 0;+ border-top: 1px solid #eeeeee;+}++.sr-only {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ border: 0;+}++p {+ margin: 0 0 10px;+}++.lead {+ margin-bottom: 20px;+ font-size: 16px;+ font-weight: 200;+ line-height: 1.4;+}++@media (min-width: 768px) {+ .lead {+ font-size: 21px;+ }+}++small,+.small {+ font-size: 85%;+}++cite {+ font-style: normal;+}++.text-muted {+ color: #999999;+}++.text-primary {+ color: #428bca;+}++.text-primary:hover {+ color: #3071a9;+}++.text-warning {+ color: #c09853;+}++.text-warning:hover {+ color: #a47e3c;+}++.text-danger {+ color: #b94a48;+}++.text-danger:hover {+ color: #953b39;+}++.text-success {+ color: #468847;+}++.text-success:hover {+ color: #356635;+}++.text-info {+ color: #3a87ad;+}++.text-info:hover {+ color: #2d6987;+}++.text-left {+ text-align: left;+}++.text-right {+ text-align: right;+}++.text-center {+ text-align: center;+}++h1,+h2,+h3,+h4,+h5,+h6,+.h1,+.h2,+.h3,+.h4,+.h5,+.h6 {+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;+ font-weight: 500;+ line-height: 1.1;+ color: inherit;+}++h1 small,+h2 small,+h3 small,+h4 small,+h5 small,+h6 small,+.h1 small,+.h2 small,+.h3 small,+.h4 small,+.h5 small,+.h6 small,+h1 .small,+h2 .small,+h3 .small,+h4 .small,+h5 .small,+h6 .small,+.h1 .small,+.h2 .small,+.h3 .small,+.h4 .small,+.h5 .small,+.h6 .small {+ font-weight: normal;+ line-height: 1;+ color: #999999;+}++h1,+h2,+h3 {+ margin-top: 20px;+ margin-bottom: 10px;+}++h1 small,+h2 small,+h3 small,+h1 .small,+h2 .small,+h3 .small {+ font-size: 65%;+}++h4,+h5,+h6 {+ margin-top: 10px;+ margin-bottom: 10px;+}++h4 small,+h5 small,+h6 small,+h4 .small,+h5 .small,+h6 .small {+ font-size: 75%;+}++h1,+.h1 {+ font-size: 36px;+}++h2,+.h2 {+ font-size: 30px;+}++h3,+.h3 {+ font-size: 24px;+}++h4,+.h4 {+ font-size: 18px;+}++h5,+.h5 {+ font-size: 14px;+}++h6,+.h6 {+ font-size: 12px;+}++.page-header {+ padding-bottom: 9px;+ margin: 40px 0 20px;+ border-bottom: 1px solid #eeeeee;+}++ul,+ol {+ margin-top: 0;+ margin-bottom: 10px;+}++ul ul,+ol ul,+ul ol,+ol ol {+ margin-bottom: 0;+}++.list-unstyled {+ padding-left: 0;+ list-style: none;+}++.list-inline {+ padding-left: 0;+ list-style: none;+}++.list-inline > li {+ display: inline-block;+ padding-right: 5px;+ padding-left: 5px;+}++.list-inline > li:first-child {+ padding-left: 0;+}++dl {+ margin-bottom: 20px;+}++dt,+dd {+ line-height: 1.428571429;+}++dt {+ font-weight: bold;+}++dd {+ margin-left: 0;+}++@media (min-width: 768px) {+ .dl-horizontal dt {+ float: left;+ width: 160px;+ overflow: hidden;+ clear: left;+ text-align: right;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ .dl-horizontal dd {+ margin-left: 180px;+ }+ .dl-horizontal dd:before,+ .dl-horizontal dd:after {+ display: table;+ content: " ";+ }+ .dl-horizontal dd:after {+ clear: both;+ }+ .dl-horizontal dd:before,+ .dl-horizontal dd:after {+ display: table;+ content: " ";+ }+ .dl-horizontal dd:after {+ clear: both;+ }+}++abbr[title],+abbr[data-original-title] {+ cursor: help;+ border-bottom: 1px dotted #999999;+}++abbr.initialism {+ font-size: 90%;+ text-transform: uppercase;+}++blockquote {+ padding: 10px 20px;+ margin: 0 0 20px;+ border-left: 5px solid #eeeeee;+}++blockquote p {+ font-size: 17.5px;+ font-weight: 300;+ line-height: 1.25;+}++blockquote p:last-child {+ margin-bottom: 0;+}++blockquote small {+ display: block;+ line-height: 1.428571429;+ color: #999999;+}++blockquote small:before {+ content: '\2014 \00A0';+}++blockquote.pull-right {+ padding-right: 15px;+ padding-left: 0;+ border-right: 5px solid #eeeeee;+ border-left: 0;+}++blockquote.pull-right p,+blockquote.pull-right small,+blockquote.pull-right .small {+ text-align: right;+}++blockquote.pull-right small:before,+blockquote.pull-right .small:before {+ content: '';+}++blockquote.pull-right small:after,+blockquote.pull-right .small:after {+ content: '\00A0 \2014';+}++blockquote:before,+blockquote:after {+ content: "";+}++address {+ margin-bottom: 20px;+ font-style: normal;+ line-height: 1.428571429;+}++code,+kbd,+pre,+samp {+ font-family: Monaco, Menlo, Consolas, "Courier New", monospace;+}++code {+ padding: 2px 4px;+ font-size: 90%;+ color: #c7254e;+ white-space: nowrap;+ background-color: #f9f2f4;+ border-radius: 4px;+}++pre {+ display: block;+ padding: 9.5px;+ margin: 0 0 10px;+ font-size: 13px;+ line-height: 1.428571429;+ color: #333333;+ word-break: break-all;+ word-wrap: break-word;+ background-color: #f5f5f5;+ border: 1px solid #cccccc;+ border-radius: 4px;+}++pre code {+ padding: 0;+ font-size: inherit;+ color: inherit;+ white-space: pre-wrap;+ background-color: transparent;+ border-radius: 0;+}++.pre-scrollable {+ max-height: 340px;+ overflow-y: scroll;+}++.container {+ padding-right: 15px;+ padding-left: 15px;+ margin-right: auto;+ margin-left: auto;+}++.container:before,+.container:after {+ display: table;+ content: " ";+}++.container:after {+ clear: both;+}++.container:before,+.container:after {+ display: table;+ content: " ";+}++.container:after {+ clear: both;+}++.row {+ margin-right: -15px;+ margin-left: -15px;+}++.row:before,+.row:after {+ display: table;+ content: " ";+}++.row:after {+ clear: both;+}++.row:before,+.row:after {+ display: table;+ content: " ";+}++.row:after {+ clear: both;+}++.col-xs-1,+.col-sm-1,+.col-md-1,+.col-lg-1,+.col-xs-2,+.col-sm-2,+.col-md-2,+.col-lg-2,+.col-xs-3,+.col-sm-3,+.col-md-3,+.col-lg-3,+.col-xs-4,+.col-sm-4,+.col-md-4,+.col-lg-4,+.col-xs-5,+.col-sm-5,+.col-md-5,+.col-lg-5,+.col-xs-6,+.col-sm-6,+.col-md-6,+.col-lg-6,+.col-xs-7,+.col-sm-7,+.col-md-7,+.col-lg-7,+.col-xs-8,+.col-sm-8,+.col-md-8,+.col-lg-8,+.col-xs-9,+.col-sm-9,+.col-md-9,+.col-lg-9,+.col-xs-10,+.col-sm-10,+.col-md-10,+.col-lg-10,+.col-xs-11,+.col-sm-11,+.col-md-11,+.col-lg-11,+.col-xs-12,+.col-sm-12,+.col-md-12,+.col-lg-12 {+ position: relative;+ min-height: 1px;+ padding-right: 15px;+ padding-left: 15px;+}++.col-xs-1,+.col-xs-2,+.col-xs-3,+.col-xs-4,+.col-xs-5,+.col-xs-6,+.col-xs-7,+.col-xs-8,+.col-xs-9,+.col-xs-10,+.col-xs-11 {+ float: left;+}++.col-xs-12 {+ width: 100%;+}++.col-xs-11 {+ width: 91.66666666666666%;+}++.col-xs-10 {+ width: 83.33333333333334%;+}++.col-xs-9 {+ width: 75%;+}++.col-xs-8 {+ width: 66.66666666666666%;+}++.col-xs-7 {+ width: 58.333333333333336%;+}++.col-xs-6 {+ width: 50%;+}++.col-xs-5 {+ width: 41.66666666666667%;+}++.col-xs-4 {+ width: 33.33333333333333%;+}++.col-xs-3 {+ width: 25%;+}++.col-xs-2 {+ width: 16.666666666666664%;+}++.col-xs-1 {+ width: 8.333333333333332%;+}++.col-xs-pull-12 {+ right: 100%;+}++.col-xs-pull-11 {+ right: 91.66666666666666%;+}++.col-xs-pull-10 {+ right: 83.33333333333334%;+}++.col-xs-pull-9 {+ right: 75%;+}++.col-xs-pull-8 {+ right: 66.66666666666666%;+}++.col-xs-pull-7 {+ right: 58.333333333333336%;+}++.col-xs-pull-6 {+ right: 50%;+}++.col-xs-pull-5 {+ right: 41.66666666666667%;+}++.col-xs-pull-4 {+ right: 33.33333333333333%;+}++.col-xs-pull-3 {+ right: 25%;+}++.col-xs-pull-2 {+ right: 16.666666666666664%;+}++.col-xs-pull-1 {+ right: 8.333333333333332%;+}++.col-xs-pull-0 {+ right: 0;+}++.col-xs-push-12 {+ left: 100%;+}++.col-xs-push-11 {+ left: 91.66666666666666%;+}++.col-xs-push-10 {+ left: 83.33333333333334%;+}++.col-xs-push-9 {+ left: 75%;+}++.col-xs-push-8 {+ left: 66.66666666666666%;+}++.col-xs-push-7 {+ left: 58.333333333333336%;+}++.col-xs-push-6 {+ left: 50%;+}++.col-xs-push-5 {+ left: 41.66666666666667%;+}++.col-xs-push-4 {+ left: 33.33333333333333%;+}++.col-xs-push-3 {+ left: 25%;+}++.col-xs-push-2 {+ left: 16.666666666666664%;+}++.col-xs-push-1 {+ left: 8.333333333333332%;+}++.col-xs-push-0 {+ left: 0;+}++.col-xs-offset-12 {+ margin-left: 100%;+}++.col-xs-offset-11 {+ margin-left: 91.66666666666666%;+}++.col-xs-offset-10 {+ margin-left: 83.33333333333334%;+}++.col-xs-offset-9 {+ margin-left: 75%;+}++.col-xs-offset-8 {+ margin-left: 66.66666666666666%;+}++.col-xs-offset-7 {+ margin-left: 58.333333333333336%;+}++.col-xs-offset-6 {+ margin-left: 50%;+}++.col-xs-offset-5 {+ margin-left: 41.66666666666667%;+}++.col-xs-offset-4 {+ margin-left: 33.33333333333333%;+}++.col-xs-offset-3 {+ margin-left: 25%;+}++.col-xs-offset-2 {+ margin-left: 16.666666666666664%;+}++.col-xs-offset-1 {+ margin-left: 8.333333333333332%;+}++.col-xs-offset-0 {+ margin-left: 0;+}++@media (min-width: 768px) {+ .container {+ width: 750px;+ }+ .col-sm-1,+ .col-sm-2,+ .col-sm-3,+ .col-sm-4,+ .col-sm-5,+ .col-sm-6,+ .col-sm-7,+ .col-sm-8,+ .col-sm-9,+ .col-sm-10,+ .col-sm-11 {+ float: left;+ }+ .col-sm-12 {+ width: 100%;+ }+ .col-sm-11 {+ width: 91.66666666666666%;+ }+ .col-sm-10 {+ width: 83.33333333333334%;+ }+ .col-sm-9 {+ width: 75%;+ }+ .col-sm-8 {+ width: 66.66666666666666%;+ }+ .col-sm-7 {+ width: 58.333333333333336%;+ }+ .col-sm-6 {+ width: 50%;+ }+ .col-sm-5 {+ width: 41.66666666666667%;+ }+ .col-sm-4 {+ width: 33.33333333333333%;+ }+ .col-sm-3 {+ width: 25%;+ }+ .col-sm-2 {+ width: 16.666666666666664%;+ }+ .col-sm-1 {+ width: 8.333333333333332%;+ }+ .col-sm-pull-12 {+ right: 100%;+ }+ .col-sm-pull-11 {+ right: 91.66666666666666%;+ }+ .col-sm-pull-10 {+ right: 83.33333333333334%;+ }+ .col-sm-pull-9 {+ right: 75%;+ }+ .col-sm-pull-8 {+ right: 66.66666666666666%;+ }+ .col-sm-pull-7 {+ right: 58.333333333333336%;+ }+ .col-sm-pull-6 {+ right: 50%;+ }+ .col-sm-pull-5 {+ right: 41.66666666666667%;+ }+ .col-sm-pull-4 {+ right: 33.33333333333333%;+ }+ .col-sm-pull-3 {+ right: 25%;+ }+ .col-sm-pull-2 {+ right: 16.666666666666664%;+ }+ .col-sm-pull-1 {+ right: 8.333333333333332%;+ }+ .col-sm-pull-0 {+ right: 0;+ }+ .col-sm-push-12 {+ left: 100%;+ }+ .col-sm-push-11 {+ left: 91.66666666666666%;+ }+ .col-sm-push-10 {+ left: 83.33333333333334%;+ }+ .col-sm-push-9 {+ left: 75%;+ }+ .col-sm-push-8 {+ left: 66.66666666666666%;+ }+ .col-sm-push-7 {+ left: 58.333333333333336%;+ }+ .col-sm-push-6 {+ left: 50%;+ }+ .col-sm-push-5 {+ left: 41.66666666666667%;+ }+ .col-sm-push-4 {+ left: 33.33333333333333%;+ }+ .col-sm-push-3 {+ left: 25%;+ }+ .col-sm-push-2 {+ left: 16.666666666666664%;+ }+ .col-sm-push-1 {+ left: 8.333333333333332%;+ }+ .col-sm-push-0 {+ left: 0;+ }+ .col-sm-offset-12 {+ margin-left: 100%;+ }+ .col-sm-offset-11 {+ margin-left: 91.66666666666666%;+ }+ .col-sm-offset-10 {+ margin-left: 83.33333333333334%;+ }+ .col-sm-offset-9 {+ margin-left: 75%;+ }+ .col-sm-offset-8 {+ margin-left: 66.66666666666666%;+ }+ .col-sm-offset-7 {+ margin-left: 58.333333333333336%;+ }+ .col-sm-offset-6 {+ margin-left: 50%;+ }+ .col-sm-offset-5 {+ margin-left: 41.66666666666667%;+ }+ .col-sm-offset-4 {+ margin-left: 33.33333333333333%;+ }+ .col-sm-offset-3 {+ margin-left: 25%;+ }+ .col-sm-offset-2 {+ margin-left: 16.666666666666664%;+ }+ .col-sm-offset-1 {+ margin-left: 8.333333333333332%;+ }+ .col-sm-offset-0 {+ margin-left: 0;+ }+}++@media (min-width: 992px) {+ .container {+ width: 970px;+ }+ .col-md-1,+ .col-md-2,+ .col-md-3,+ .col-md-4,+ .col-md-5,+ .col-md-6,+ .col-md-7,+ .col-md-8,+ .col-md-9,+ .col-md-10,+ .col-md-11 {+ float: left;+ }+ .col-md-12 {+ width: 100%;+ }+ .col-md-11 {+ width: 91.66666666666666%;+ }+ .col-md-10 {+ width: 83.33333333333334%;+ }+ .col-md-9 {+ width: 75%;+ }+ .col-md-8 {+ width: 66.66666666666666%;+ }+ .col-md-7 {+ width: 58.333333333333336%;+ }+ .col-md-6 {+ width: 50%;+ }+ .col-md-5 {+ width: 41.66666666666667%;+ }+ .col-md-4 {+ width: 33.33333333333333%;+ }+ .col-md-3 {+ width: 25%;+ }+ .col-md-2 {+ width: 16.666666666666664%;+ }+ .col-md-1 {+ width: 8.333333333333332%;+ }+ .col-md-pull-12 {+ right: 100%;+ }+ .col-md-pull-11 {+ right: 91.66666666666666%;+ }+ .col-md-pull-10 {+ right: 83.33333333333334%;+ }+ .col-md-pull-9 {+ right: 75%;+ }+ .col-md-pull-8 {+ right: 66.66666666666666%;+ }+ .col-md-pull-7 {+ right: 58.333333333333336%;+ }+ .col-md-pull-6 {+ right: 50%;+ }+ .col-md-pull-5 {+ right: 41.66666666666667%;+ }+ .col-md-pull-4 {+ right: 33.33333333333333%;+ }+ .col-md-pull-3 {+ right: 25%;+ }+ .col-md-pull-2 {+ right: 16.666666666666664%;+ }+ .col-md-pull-1 {+ right: 8.333333333333332%;+ }+ .col-md-pull-0 {+ right: 0;+ }+ .col-md-push-12 {+ left: 100%;+ }+ .col-md-push-11 {+ left: 91.66666666666666%;+ }+ .col-md-push-10 {+ left: 83.33333333333334%;+ }+ .col-md-push-9 {+ left: 75%;+ }+ .col-md-push-8 {+ left: 66.66666666666666%;+ }+ .col-md-push-7 {+ left: 58.333333333333336%;+ }+ .col-md-push-6 {+ left: 50%;+ }+ .col-md-push-5 {+ left: 41.66666666666667%;+ }+ .col-md-push-4 {+ left: 33.33333333333333%;+ }+ .col-md-push-3 {+ left: 25%;+ }+ .col-md-push-2 {+ left: 16.666666666666664%;+ }+ .col-md-push-1 {+ left: 8.333333333333332%;+ }+ .col-md-push-0 {+ left: 0;+ }+ .col-md-offset-12 {+ margin-left: 100%;+ }+ .col-md-offset-11 {+ margin-left: 91.66666666666666%;+ }+ .col-md-offset-10 {+ margin-left: 83.33333333333334%;+ }+ .col-md-offset-9 {+ margin-left: 75%;+ }+ .col-md-offset-8 {+ margin-left: 66.66666666666666%;+ }+ .col-md-offset-7 {+ margin-left: 58.333333333333336%;+ }+ .col-md-offset-6 {+ margin-left: 50%;+ }+ .col-md-offset-5 {+ margin-left: 41.66666666666667%;+ }+ .col-md-offset-4 {+ margin-left: 33.33333333333333%;+ }+ .col-md-offset-3 {+ margin-left: 25%;+ }+ .col-md-offset-2 {+ margin-left: 16.666666666666664%;+ }+ .col-md-offset-1 {+ margin-left: 8.333333333333332%;+ }+ .col-md-offset-0 {+ margin-left: 0;+ }+}++@media (min-width: 1200px) {+ .container {+ width: 1170px;+ }+ .col-lg-1,+ .col-lg-2,+ .col-lg-3,+ .col-lg-4,+ .col-lg-5,+ .col-lg-6,+ .col-lg-7,+ .col-lg-8,+ .col-lg-9,+ .col-lg-10,+ .col-lg-11 {+ float: left;+ }+ .col-lg-12 {+ width: 100%;+ }+ .col-lg-11 {+ width: 91.66666666666666%;+ }+ .col-lg-10 {+ width: 83.33333333333334%;+ }+ .col-lg-9 {+ width: 75%;+ }+ .col-lg-8 {+ width: 66.66666666666666%;+ }+ .col-lg-7 {+ width: 58.333333333333336%;+ }+ .col-lg-6 {+ width: 50%;+ }+ .col-lg-5 {+ width: 41.66666666666667%;+ }+ .col-lg-4 {+ width: 33.33333333333333%;+ }+ .col-lg-3 {+ width: 25%;+ }+ .col-lg-2 {+ width: 16.666666666666664%;+ }+ .col-lg-1 {+ width: 8.333333333333332%;+ }+ .col-lg-pull-12 {+ right: 100%;+ }+ .col-lg-pull-11 {+ right: 91.66666666666666%;+ }+ .col-lg-pull-10 {+ right: 83.33333333333334%;+ }+ .col-lg-pull-9 {+ right: 75%;+ }+ .col-lg-pull-8 {+ right: 66.66666666666666%;+ }+ .col-lg-pull-7 {+ right: 58.333333333333336%;+ }+ .col-lg-pull-6 {+ right: 50%;+ }+ .col-lg-pull-5 {+ right: 41.66666666666667%;+ }+ .col-lg-pull-4 {+ right: 33.33333333333333%;+ }+ .col-lg-pull-3 {+ right: 25%;+ }+ .col-lg-pull-2 {+ right: 16.666666666666664%;+ }+ .col-lg-pull-1 {+ right: 8.333333333333332%;+ }+ .col-lg-pull-0 {+ right: 0;+ }+ .col-lg-push-12 {+ left: 100%;+ }+ .col-lg-push-11 {+ left: 91.66666666666666%;+ }+ .col-lg-push-10 {+ left: 83.33333333333334%;+ }+ .col-lg-push-9 {+ left: 75%;+ }+ .col-lg-push-8 {+ left: 66.66666666666666%;+ }+ .col-lg-push-7 {+ left: 58.333333333333336%;+ }+ .col-lg-push-6 {+ left: 50%;+ }+ .col-lg-push-5 {+ left: 41.66666666666667%;+ }+ .col-lg-push-4 {+ left: 33.33333333333333%;+ }+ .col-lg-push-3 {+ left: 25%;+ }+ .col-lg-push-2 {+ left: 16.666666666666664%;+ }+ .col-lg-push-1 {+ left: 8.333333333333332%;+ }+ .col-lg-push-0 {+ left: 0;+ }+ .col-lg-offset-12 {+ margin-left: 100%;+ }+ .col-lg-offset-11 {+ margin-left: 91.66666666666666%;+ }+ .col-lg-offset-10 {+ margin-left: 83.33333333333334%;+ }+ .col-lg-offset-9 {+ margin-left: 75%;+ }+ .col-lg-offset-8 {+ margin-left: 66.66666666666666%;+ }+ .col-lg-offset-7 {+ margin-left: 58.333333333333336%;+ }+ .col-lg-offset-6 {+ margin-left: 50%;+ }+ .col-lg-offset-5 {+ margin-left: 41.66666666666667%;+ }+ .col-lg-offset-4 {+ margin-left: 33.33333333333333%;+ }+ .col-lg-offset-3 {+ margin-left: 25%;+ }+ .col-lg-offset-2 {+ margin-left: 16.666666666666664%;+ }+ .col-lg-offset-1 {+ margin-left: 8.333333333333332%;+ }+ .col-lg-offset-0 {+ margin-left: 0;+ }+}++table {+ max-width: 100%;+ background-color: transparent;+}++th {+ text-align: left;+}++.table {+ width: 100%;+ margin-bottom: 20px;+}++.table > thead > tr > th,+.table > tbody > tr > th,+.table > tfoot > tr > th,+.table > thead > tr > td,+.table > tbody > tr > td,+.table > tfoot > tr > td {+ padding: 8px;+ line-height: 1.428571429;+ vertical-align: top;+ border-top: 1px solid #dddddd;+}++.table > thead > tr > th {+ vertical-align: bottom;+ border-bottom: 2px solid #dddddd;+}++.table > caption + thead > tr:first-child > th,+.table > colgroup + thead > tr:first-child > th,+.table > thead:first-child > tr:first-child > th,+.table > caption + thead > tr:first-child > td,+.table > colgroup + thead > tr:first-child > td,+.table > thead:first-child > tr:first-child > td {+ border-top: 0;+}++.table > tbody + tbody {+ border-top: 2px solid #dddddd;+}++.table .table {+ background-color: #ffffff;+}++.table-condensed > thead > tr > th,+.table-condensed > tbody > tr > th,+.table-condensed > tfoot > tr > th,+.table-condensed > thead > tr > td,+.table-condensed > tbody > tr > td,+.table-condensed > tfoot > tr > td {+ padding: 5px;+}++.table-bordered {+ border: 1px solid #dddddd;+}++.table-bordered > thead > tr > th,+.table-bordered > tbody > tr > th,+.table-bordered > tfoot > tr > th,+.table-bordered > thead > tr > td,+.table-bordered > tbody > tr > td,+.table-bordered > tfoot > tr > td {+ border: 1px solid #dddddd;+}++.table-bordered > thead > tr > th,+.table-bordered > thead > tr > td {+ border-bottom-width: 2px;+}++.table-striped > tbody > tr:nth-child(odd) > td,+.table-striped > tbody > tr:nth-child(odd) > th {+ background-color: #f9f9f9;+}++.table-hover > tbody > tr:hover > td,+.table-hover > tbody > tr:hover > th {+ background-color: #f5f5f5;+}++table col[class*="col-"] {+ display: table-column;+ float: none;+}++table td[class*="col-"],+table th[class*="col-"] {+ display: table-cell;+ float: none;+}++.table > thead > tr > td.active,+.table > tbody > tr > td.active,+.table > tfoot > tr > td.active,+.table > thead > tr > th.active,+.table > tbody > tr > th.active,+.table > tfoot > tr > th.active,+.table > thead > tr.active > td,+.table > tbody > tr.active > td,+.table > tfoot > tr.active > td,+.table > thead > tr.active > th,+.table > tbody > tr.active > th,+.table > tfoot > tr.active > th {+ background-color: #f5f5f5;+}++.table > thead > tr > td.success,+.table > tbody > tr > td.success,+.table > tfoot > tr > td.success,+.table > thead > tr > th.success,+.table > tbody > tr > th.success,+.table > tfoot > tr > th.success,+.table > thead > tr.success > td,+.table > tbody > tr.success > td,+.table > tfoot > tr.success > td,+.table > thead > tr.success > th,+.table > tbody > tr.success > th,+.table > tfoot > tr.success > th {+ background-color: #dff0d8;+}++.table-hover > tbody > tr > td.success:hover,+.table-hover > tbody > tr > th.success:hover,+.table-hover > tbody > tr.success:hover > td,+.table-hover > tbody > tr.success:hover > th {+ background-color: #d0e9c6;+}++.table > thead > tr > td.danger,+.table > tbody > tr > td.danger,+.table > tfoot > tr > td.danger,+.table > thead > tr > th.danger,+.table > tbody > tr > th.danger,+.table > tfoot > tr > th.danger,+.table > thead > tr.danger > td,+.table > tbody > tr.danger > td,+.table > tfoot > tr.danger > td,+.table > thead > tr.danger > th,+.table > tbody > tr.danger > th,+.table > tfoot > tr.danger > th {+ background-color: #f2dede;+}++.table-hover > tbody > tr > td.danger:hover,+.table-hover > tbody > tr > th.danger:hover,+.table-hover > tbody > tr.danger:hover > td,+.table-hover > tbody > tr.danger:hover > th {+ background-color: #ebcccc;+}++.table > thead > tr > td.warning,+.table > tbody > tr > td.warning,+.table > tfoot > tr > td.warning,+.table > thead > tr > th.warning,+.table > tbody > tr > th.warning,+.table > tfoot > tr > th.warning,+.table > thead > tr.warning > td,+.table > tbody > tr.warning > td,+.table > tfoot > tr.warning > td,+.table > thead > tr.warning > th,+.table > tbody > tr.warning > th,+.table > tfoot > tr.warning > th {+ background-color: #fcf8e3;+}++.table-hover > tbody > tr > td.warning:hover,+.table-hover > tbody > tr > th.warning:hover,+.table-hover > tbody > tr.warning:hover > td,+.table-hover > tbody > tr.warning:hover > th {+ background-color: #faf2cc;+}++@media (max-width: 767px) {+ .table-responsive {+ width: 100%;+ margin-bottom: 15px;+ overflow-x: scroll;+ overflow-y: hidden;+ border: 1px solid #dddddd;+ -ms-overflow-style: -ms-autohiding-scrollbar;+ -webkit-overflow-scrolling: touch;+ }+ .table-responsive > .table {+ margin-bottom: 0;+ }+ .table-responsive > .table > thead > tr > th,+ .table-responsive > .table > tbody > tr > th,+ .table-responsive > .table > tfoot > tr > th,+ .table-responsive > .table > thead > tr > td,+ .table-responsive > .table > tbody > tr > td,+ .table-responsive > .table > tfoot > tr > td {+ white-space: nowrap;+ }+ .table-responsive > .table-bordered {+ border: 0;+ }+ .table-responsive > .table-bordered > thead > tr > th:first-child,+ .table-responsive > .table-bordered > tbody > tr > th:first-child,+ .table-responsive > .table-bordered > tfoot > tr > th:first-child,+ .table-responsive > .table-bordered > thead > tr > td:first-child,+ .table-responsive > .table-bordered > tbody > tr > td:first-child,+ .table-responsive > .table-bordered > tfoot > tr > td:first-child {+ border-left: 0;+ }+ .table-responsive > .table-bordered > thead > tr > th:last-child,+ .table-responsive > .table-bordered > tbody > tr > th:last-child,+ .table-responsive > .table-bordered > tfoot > tr > th:last-child,+ .table-responsive > .table-bordered > thead > tr > td:last-child,+ .table-responsive > .table-bordered > tbody > tr > td:last-child,+ .table-responsive > .table-bordered > tfoot > tr > td:last-child {+ border-right: 0;+ }+ .table-responsive > .table-bordered > tbody > tr:last-child > th,+ .table-responsive > .table-bordered > tfoot > tr:last-child > th,+ .table-responsive > .table-bordered > tbody > tr:last-child > td,+ .table-responsive > .table-bordered > tfoot > tr:last-child > td {+ border-bottom: 0;+ }+}++fieldset {+ padding: 0;+ margin: 0;+ border: 0;+}++legend {+ display: block;+ width: 100%;+ padding: 0;+ margin-bottom: 20px;+ font-size: 21px;+ line-height: inherit;+ color: #333333;+ border: 0;+ border-bottom: 1px solid #e5e5e5;+}++label {+ display: inline-block;+ margin-bottom: 5px;+ font-weight: bold;+}++input[type="search"] {+ -webkit-box-sizing: border-box;+ -moz-box-sizing: border-box;+ box-sizing: border-box;+}++input[type="radio"],+input[type="checkbox"] {+ margin: 4px 0 0;+ margin-top: 1px \9;+ /* IE8-9 */++ line-height: normal;+}++input[type="file"] {+ display: block;+}++select[multiple],+select[size] {+ height: auto;+}++select optgroup {+ font-family: inherit;+ font-size: inherit;+ font-style: inherit;+}++input[type="file"]:focus,+input[type="radio"]:focus,+input[type="checkbox"]:focus {+ outline: thin dotted #333;+ outline: 5px auto -webkit-focus-ring-color;+ outline-offset: -2px;+}++input[type="number"]::-webkit-outer-spin-button,+input[type="number"]::-webkit-inner-spin-button {+ height: auto;+}++output {+ display: block;+ padding-top: 7px;+ font-size: 14px;+ line-height: 1.428571429;+ color: #555555;+ vertical-align: middle;+}++.form-control {+ display: block;+ width: 100%;+ height: 34px;+ padding: 6px 12px;+ font-size: 14px;+ line-height: 1.428571429;+ color: #555555;+ vertical-align: middle;+ background-color: #ffffff;+ background-image: none;+ border: 1px solid #cccccc;+ border-radius: 4px;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+ -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;+}++.form-control:focus {+ border-color: #66afe9;+ outline: 0;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);+}++.form-control:-moz-placeholder {+ color: #999999;+}++.form-control::-moz-placeholder {+ color: #999999;+}++.form-control:-ms-input-placeholder {+ color: #999999;+}++.form-control::-webkit-input-placeholder {+ color: #999999;+}++.form-control[disabled],+.form-control[readonly],+fieldset[disabled] .form-control {+ cursor: not-allowed;+ background-color: #eeeeee;+}++textarea.form-control {+ height: auto;+}++.form-group {+ margin-bottom: 15px;+}++.radio,+.checkbox {+ display: block;+ min-height: 20px;+ padding-left: 20px;+ margin-top: 10px;+ margin-bottom: 10px;+ vertical-align: middle;+}++.radio label,+.checkbox label {+ display: inline;+ margin-bottom: 0;+ font-weight: normal;+ cursor: pointer;+}++.radio input[type="radio"],+.radio-inline input[type="radio"],+.checkbox input[type="checkbox"],+.checkbox-inline input[type="checkbox"] {+ float: left;+ margin-left: -20px;+}++.radio + .radio,+.checkbox + .checkbox {+ margin-top: -5px;+}++.radio-inline,+.checkbox-inline {+ display: inline-block;+ padding-left: 20px;+ margin-bottom: 0;+ font-weight: normal;+ vertical-align: middle;+ cursor: pointer;+}++.radio-inline + .radio-inline,+.checkbox-inline + .checkbox-inline {+ margin-top: 0;+ margin-left: 10px;+}++input[type="radio"][disabled],+input[type="checkbox"][disabled],+.radio[disabled],+.radio-inline[disabled],+.checkbox[disabled],+.checkbox-inline[disabled],+fieldset[disabled] input[type="radio"],+fieldset[disabled] input[type="checkbox"],+fieldset[disabled] .radio,+fieldset[disabled] .radio-inline,+fieldset[disabled] .checkbox,+fieldset[disabled] .checkbox-inline {+ cursor: not-allowed;+}++.input-sm {+ height: 30px;+ padding: 5px 10px;+ font-size: 12px;+ line-height: 1.5;+ border-radius: 3px;+}++select.input-sm {+ height: 30px;+ line-height: 30px;+}++textarea.input-sm {+ height: auto;+}++.input-lg {+ height: 45px;+ padding: 10px 16px;+ font-size: 18px;+ line-height: 1.33;+ border-radius: 6px;+}++select.input-lg {+ height: 45px;+ line-height: 45px;+}++textarea.input-lg {+ height: auto;+}++.has-warning .help-block,+.has-warning .control-label,+.has-warning .radio,+.has-warning .checkbox,+.has-warning .radio-inline,+.has-warning .checkbox-inline {+ color: #c09853;+}++.has-warning .form-control {+ border-color: #c09853;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+}++.has-warning .form-control:focus {+ border-color: #a47e3c;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e;+}++.has-warning .input-group-addon {+ color: #c09853;+ background-color: #fcf8e3;+ border-color: #c09853;+}++.has-error .help-block,+.has-error .control-label,+.has-error .radio,+.has-error .checkbox,+.has-error .radio-inline,+.has-error .checkbox-inline {+ color: #b94a48;+}++.has-error .form-control {+ border-color: #b94a48;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+}++.has-error .form-control:focus {+ border-color: #953b39;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;+}++.has-error .input-group-addon {+ color: #b94a48;+ background-color: #f2dede;+ border-color: #b94a48;+}++.has-success .help-block,+.has-success .control-label,+.has-success .radio,+.has-success .checkbox,+.has-success .radio-inline,+.has-success .checkbox-inline {+ color: #468847;+}++.has-success .form-control {+ border-color: #468847;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);+}++.has-success .form-control:focus {+ border-color: #356635;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b;+}++.has-success .input-group-addon {+ color: #468847;+ background-color: #dff0d8;+ border-color: #468847;+}++.form-control-static {+ margin-bottom: 0;+}++.help-block {+ display: block;+ margin-top: 5px;+ margin-bottom: 10px;+ color: #737373;+}++@media (min-width: 768px) {+ .form-inline .form-group {+ display: inline-block;+ margin-bottom: 0;+ vertical-align: middle;+ }+ .form-inline .form-control {+ display: inline-block;+ }+ .form-inline .radio,+ .form-inline .checkbox {+ display: inline-block;+ padding-left: 0;+ margin-top: 0;+ margin-bottom: 0;+ }+ .form-inline .radio input[type="radio"],+ .form-inline .checkbox input[type="checkbox"] {+ float: none;+ margin-left: 0;+ }+}++.form-horizontal .control-label,+.form-horizontal .radio,+.form-horizontal .checkbox,+.form-horizontal .radio-inline,+.form-horizontal .checkbox-inline {+ padding-top: 7px;+ margin-top: 0;+ margin-bottom: 0;+}++.form-horizontal .form-group {+ margin-right: -15px;+ margin-left: -15px;+}++.form-horizontal .form-group:before,+.form-horizontal .form-group:after {+ display: table;+ content: " ";+}++.form-horizontal .form-group:after {+ clear: both;+}++.form-horizontal .form-group:before,+.form-horizontal .form-group:after {+ display: table;+ content: " ";+}++.form-horizontal .form-group:after {+ clear: both;+}++.form-horizontal .form-control-static {+ padding-top: 7px;+}++@media (min-width: 768px) {+ .form-horizontal .control-label {+ text-align: right;+ }+}++.btn {+ display: inline-block;+ padding: 6px 12px;+ margin-bottom: 0;+ font-size: 14px;+ font-weight: normal;+ line-height: 1.428571429;+ text-align: center;+ white-space: nowrap;+ vertical-align: middle;+ cursor: pointer;+ background-image: none;+ border: 1px solid transparent;+ border-radius: 4px;+ -webkit-user-select: none;+ -moz-user-select: none;+ -ms-user-select: none;+ -o-user-select: none;+ user-select: none;+}++.btn:focus {+ outline: thin dotted #333;+ outline: 5px auto -webkit-focus-ring-color;+ outline-offset: -2px;+}++.btn:hover,+.btn:focus {+ color: #333333;+ text-decoration: none;+}++.btn:active,+.btn.active {+ background-image: none;+ outline: 0;+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);+}++.btn.disabled,+.btn[disabled],+fieldset[disabled] .btn {+ pointer-events: none;+ cursor: not-allowed;+ opacity: 0.65;+ filter: alpha(opacity=65);+ -webkit-box-shadow: none;+ box-shadow: none;+}++.btn-default {+ color: #333333;+ background-color: #ffffff;+ border-color: #cccccc;+}++.btn-default:hover,+.btn-default:focus,+.btn-default:active,+.btn-default.active,+.open .dropdown-toggle.btn-default {+ color: #333333;+ background-color: #ebebeb;+ border-color: #adadad;+}++.btn-default:active,+.btn-default.active,+.open .dropdown-toggle.btn-default {+ background-image: none;+}++.btn-default.disabled,+.btn-default[disabled],+fieldset[disabled] .btn-default,+.btn-default.disabled:hover,+.btn-default[disabled]:hover,+fieldset[disabled] .btn-default:hover,+.btn-default.disabled:focus,+.btn-default[disabled]:focus,+fieldset[disabled] .btn-default:focus,+.btn-default.disabled:active,+.btn-default[disabled]:active,+fieldset[disabled] .btn-default:active,+.btn-default.disabled.active,+.btn-default[disabled].active,+fieldset[disabled] .btn-default.active {+ background-color: #ffffff;+ border-color: #cccccc;+}++.btn-primary {+ color: #ffffff;+ background-color: #428bca;+ border-color: #357ebd;+}++.btn-primary:hover,+.btn-primary:focus,+.btn-primary:active,+.btn-primary.active,+.open .dropdown-toggle.btn-primary {+ color: #ffffff;+ background-color: #3276b1;+ border-color: #285e8e;+}++.btn-primary:active,+.btn-primary.active,+.open .dropdown-toggle.btn-primary {+ background-image: none;+}++.btn-primary.disabled,+.btn-primary[disabled],+fieldset[disabled] .btn-primary,+.btn-primary.disabled:hover,+.btn-primary[disabled]:hover,+fieldset[disabled] .btn-primary:hover,+.btn-primary.disabled:focus,+.btn-primary[disabled]:focus,+fieldset[disabled] .btn-primary:focus,+.btn-primary.disabled:active,+.btn-primary[disabled]:active,+fieldset[disabled] .btn-primary:active,+.btn-primary.disabled.active,+.btn-primary[disabled].active,+fieldset[disabled] .btn-primary.active {+ background-color: #428bca;+ border-color: #357ebd;+}++.btn-warning {+ color: #ffffff;+ background-color: #f0ad4e;+ border-color: #eea236;+}++.btn-warning:hover,+.btn-warning:focus,+.btn-warning:active,+.btn-warning.active,+.open .dropdown-toggle.btn-warning {+ color: #ffffff;+ background-color: #ed9c28;+ border-color: #d58512;+}++.btn-warning:active,+.btn-warning.active,+.open .dropdown-toggle.btn-warning {+ background-image: none;+}++.btn-warning.disabled,+.btn-warning[disabled],+fieldset[disabled] .btn-warning,+.btn-warning.disabled:hover,+.btn-warning[disabled]:hover,+fieldset[disabled] .btn-warning:hover,+.btn-warning.disabled:focus,+.btn-warning[disabled]:focus,+fieldset[disabled] .btn-warning:focus,+.btn-warning.disabled:active,+.btn-warning[disabled]:active,+fieldset[disabled] .btn-warning:active,+.btn-warning.disabled.active,+.btn-warning[disabled].active,+fieldset[disabled] .btn-warning.active {+ background-color: #f0ad4e;+ border-color: #eea236;+}++.btn-danger {+ color: #ffffff;+ background-color: #d9534f;+ border-color: #d43f3a;+}++.btn-danger:hover,+.btn-danger:focus,+.btn-danger:active,+.btn-danger.active,+.open .dropdown-toggle.btn-danger {+ color: #ffffff;+ background-color: #d2322d;+ border-color: #ac2925;+}++.btn-danger:active,+.btn-danger.active,+.open .dropdown-toggle.btn-danger {+ background-image: none;+}++.btn-danger.disabled,+.btn-danger[disabled],+fieldset[disabled] .btn-danger,+.btn-danger.disabled:hover,+.btn-danger[disabled]:hover,+fieldset[disabled] .btn-danger:hover,+.btn-danger.disabled:focus,+.btn-danger[disabled]:focus,+fieldset[disabled] .btn-danger:focus,+.btn-danger.disabled:active,+.btn-danger[disabled]:active,+fieldset[disabled] .btn-danger:active,+.btn-danger.disabled.active,+.btn-danger[disabled].active,+fieldset[disabled] .btn-danger.active {+ background-color: #d9534f;+ border-color: #d43f3a;+}++.btn-success {+ color: #ffffff;+ background-color: #5cb85c;+ border-color: #4cae4c;+}++.btn-success:hover,+.btn-success:focus,+.btn-success:active,+.btn-success.active,+.open .dropdown-toggle.btn-success {+ color: #ffffff;+ background-color: #47a447;+ border-color: #398439;+}++.btn-success:active,+.btn-success.active,+.open .dropdown-toggle.btn-success {+ background-image: none;+}++.btn-success.disabled,+.btn-success[disabled],+fieldset[disabled] .btn-success,+.btn-success.disabled:hover,+.btn-success[disabled]:hover,+fieldset[disabled] .btn-success:hover,+.btn-success.disabled:focus,+.btn-success[disabled]:focus,+fieldset[disabled] .btn-success:focus,+.btn-success.disabled:active,+.btn-success[disabled]:active,+fieldset[disabled] .btn-success:active,+.btn-success.disabled.active,+.btn-success[disabled].active,+fieldset[disabled] .btn-success.active {+ background-color: #5cb85c;+ border-color: #4cae4c;+}++.btn-info {+ color: #ffffff;+ background-color: #5bc0de;+ border-color: #46b8da;+}++.btn-info:hover,+.btn-info:focus,+.btn-info:active,+.btn-info.active,+.open .dropdown-toggle.btn-info {+ color: #ffffff;+ background-color: #39b3d7;+ border-color: #269abc;+}++.btn-info:active,+.btn-info.active,+.open .dropdown-toggle.btn-info {+ background-image: none;+}++.btn-info.disabled,+.btn-info[disabled],+fieldset[disabled] .btn-info,+.btn-info.disabled:hover,+.btn-info[disabled]:hover,+fieldset[disabled] .btn-info:hover,+.btn-info.disabled:focus,+.btn-info[disabled]:focus,+fieldset[disabled] .btn-info:focus,+.btn-info.disabled:active,+.btn-info[disabled]:active,+fieldset[disabled] .btn-info:active,+.btn-info.disabled.active,+.btn-info[disabled].active,+fieldset[disabled] .btn-info.active {+ background-color: #5bc0de;+ border-color: #46b8da;+}++.btn-link {+ font-weight: normal;+ color: #428bca;+ cursor: pointer;+ border-radius: 0;+}++.btn-link,+.btn-link:active,+.btn-link[disabled],+fieldset[disabled] .btn-link {+ background-color: transparent;+ -webkit-box-shadow: none;+ box-shadow: none;+}++.btn-link,+.btn-link:hover,+.btn-link:focus,+.btn-link:active {+ border-color: transparent;+}++.btn-link:hover,+.btn-link:focus {+ color: #2a6496;+ text-decoration: underline;+ background-color: transparent;+}++.btn-link[disabled]:hover,+fieldset[disabled] .btn-link:hover,+.btn-link[disabled]:focus,+fieldset[disabled] .btn-link:focus {+ color: #999999;+ text-decoration: none;+}++.btn-lg {+ padding: 10px 16px;+ font-size: 18px;+ line-height: 1.33;+ border-radius: 6px;+}++.btn-sm,+.btn-xs {+ padding: 5px 10px;+ font-size: 12px;+ line-height: 1.5;+ border-radius: 3px;+}++.btn-xs {+ padding: 1px 5px;+}++.btn-block {+ display: block;+ width: 100%;+ padding-right: 0;+ padding-left: 0;+}++.btn-block + .btn-block {+ margin-top: 5px;+}++input[type="submit"].btn-block,+input[type="reset"].btn-block,+input[type="button"].btn-block {+ width: 100%;+}++.fade {+ opacity: 0;+ -webkit-transition: opacity 0.15s linear;+ transition: opacity 0.15s linear;+}++.fade.in {+ opacity: 1;+}++.collapse {+ display: none;+}++.collapse.in {+ display: block;+}++.collapsing {+ position: relative;+ height: 0;+ overflow: hidden;+ -webkit-transition: height 0.35s ease;+ transition: height 0.35s ease;+}++@font-face {+ font-family: 'Glyphicons Halflings';+ src: url('../fonts/glyphicons-halflings-regular.eot');+ src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');+}++.glyphicon {+ position: relative;+ top: 1px;+ display: inline-block;+ font-family: 'Glyphicons Halflings';+ -webkit-font-smoothing: antialiased;+ font-style: normal;+ font-weight: normal;+ line-height: 1;+ -moz-osx-font-smoothing: grayscale;+}++.glyphicon:empty {+ width: 1em;+}++.glyphicon-asterisk:before {+ content: "\2a";+}++.glyphicon-plus:before {+ content: "\2b";+}++.glyphicon-euro:before {+ content: "\20ac";+}++.glyphicon-minus:before {+ content: "\2212";+}++.glyphicon-cloud:before {+ content: "\2601";+}++.glyphicon-envelope:before {+ content: "\2709";+}++.glyphicon-pencil:before {+ content: "\270f";+}++.glyphicon-glass:before {+ content: "\e001";+}++.glyphicon-music:before {+ content: "\e002";+}++.glyphicon-search:before {+ content: "\e003";+}++.glyphicon-heart:before {+ content: "\e005";+}++.glyphicon-star:before {+ content: "\e006";+}++.glyphicon-star-empty:before {+ content: "\e007";+}++.glyphicon-user:before {+ content: "\e008";+}++.glyphicon-film:before {+ content: "\e009";+}++.glyphicon-th-large:before {+ content: "\e010";+}++.glyphicon-th:before {+ content: "\e011";+}++.glyphicon-th-list:before {+ content: "\e012";+}++.glyphicon-ok:before {+ content: "\e013";+}++.glyphicon-remove:before {+ content: "\e014";+}++.glyphicon-zoom-in:before {+ content: "\e015";+}++.glyphicon-zoom-out:before {+ content: "\e016";+}++.glyphicon-off:before {+ content: "\e017";+}++.glyphicon-signal:before {+ content: "\e018";+}++.glyphicon-cog:before {+ content: "\e019";+}++.glyphicon-trash:before {+ content: "\e020";+}++.glyphicon-home:before {+ content: "\e021";+}++.glyphicon-file:before {+ content: "\e022";+}++.glyphicon-time:before {+ content: "\e023";+}++.glyphicon-road:before {+ content: "\e024";+}++.glyphicon-download-alt:before {+ content: "\e025";+}++.glyphicon-download:before {+ content: "\e026";+}++.glyphicon-upload:before {+ content: "\e027";+}++.glyphicon-inbox:before {+ content: "\e028";+}++.glyphicon-play-circle:before {+ content: "\e029";+}++.glyphicon-repeat:before {+ content: "\e030";+}++.glyphicon-refresh:before {+ content: "\e031";+}++.glyphicon-list-alt:before {+ content: "\e032";+}++.glyphicon-lock:before {+ content: "\e033";+}++.glyphicon-flag:before {+ content: "\e034";+}++.glyphicon-headphones:before {+ content: "\e035";+}++.glyphicon-volume-off:before {+ content: "\e036";+}++.glyphicon-volume-down:before {+ content: "\e037";+}++.glyphicon-volume-up:before {+ content: "\e038";+}++.glyphicon-qrcode:before {+ content: "\e039";+}++.glyphicon-barcode:before {+ content: "\e040";+}++.glyphicon-tag:before {+ content: "\e041";+}++.glyphicon-tags:before {+ content: "\e042";+}++.glyphicon-book:before {+ content: "\e043";+}++.glyphicon-bookmark:before {+ content: "\e044";+}++.glyphicon-print:before {+ content: "\e045";+}++.glyphicon-camera:before {+ content: "\e046";+}++.glyphicon-font:before {+ content: "\e047";+}++.glyphicon-bold:before {+ content: "\e048";+}++.glyphicon-italic:before {+ content: "\e049";+}++.glyphicon-text-height:before {+ content: "\e050";+}++.glyphicon-text-width:before {+ content: "\e051";+}++.glyphicon-align-left:before {+ content: "\e052";+}++.glyphicon-align-center:before {+ content: "\e053";+}++.glyphicon-align-right:before {+ content: "\e054";+}++.glyphicon-align-justify:before {+ content: "\e055";+}++.glyphicon-list:before {+ content: "\e056";+}++.glyphicon-indent-left:before {+ content: "\e057";+}++.glyphicon-indent-right:before {+ content: "\e058";+}++.glyphicon-facetime-video:before {+ content: "\e059";+}++.glyphicon-picture:before {+ content: "\e060";+}++.glyphicon-map-marker:before {+ content: "\e062";+}++.glyphicon-adjust:before {+ content: "\e063";+}++.glyphicon-tint:before {+ content: "\e064";+}++.glyphicon-edit:before {+ content: "\e065";+}++.glyphicon-share:before {+ content: "\e066";+}++.glyphicon-check:before {+ content: "\e067";+}++.glyphicon-move:before {+ content: "\e068";+}++.glyphicon-step-backward:before {+ content: "\e069";+}++.glyphicon-fast-backward:before {+ content: "\e070";+}++.glyphicon-backward:before {+ content: "\e071";+}++.glyphicon-play:before {+ content: "\e072";+}++.glyphicon-pause:before {+ content: "\e073";+}++.glyphicon-stop:before {+ content: "\e074";+}++.glyphicon-forward:before {+ content: "\e075";+}++.glyphicon-fast-forward:before {+ content: "\e076";+}++.glyphicon-step-forward:before {+ content: "\e077";+}++.glyphicon-eject:before {+ content: "\e078";+}++.glyphicon-chevron-left:before {+ content: "\e079";+}++.glyphicon-chevron-right:before {+ content: "\e080";+}++.glyphicon-plus-sign:before {+ content: "\e081";+}++.glyphicon-minus-sign:before {+ content: "\e082";+}++.glyphicon-remove-sign:before {+ content: "\e083";+}++.glyphicon-ok-sign:before {+ content: "\e084";+}++.glyphicon-question-sign:before {+ content: "\e085";+}++.glyphicon-info-sign:before {+ content: "\e086";+}++.glyphicon-screenshot:before {+ content: "\e087";+}++.glyphicon-remove-circle:before {+ content: "\e088";+}++.glyphicon-ok-circle:before {+ content: "\e089";+}++.glyphicon-ban-circle:before {+ content: "\e090";+}++.glyphicon-arrow-left:before {+ content: "\e091";+}++.glyphicon-arrow-right:before {+ content: "\e092";+}++.glyphicon-arrow-up:before {+ content: "\e093";+}++.glyphicon-arrow-down:before {+ content: "\e094";+}++.glyphicon-share-alt:before {+ content: "\e095";+}++.glyphicon-resize-full:before {+ content: "\e096";+}++.glyphicon-resize-small:before {+ content: "\e097";+}++.glyphicon-exclamation-sign:before {+ content: "\e101";+}++.glyphicon-gift:before {+ content: "\e102";+}++.glyphicon-leaf:before {+ content: "\e103";+}++.glyphicon-fire:before {+ content: "\e104";+}++.glyphicon-eye-open:before {+ content: "\e105";+}++.glyphicon-eye-close:before {+ content: "\e106";+}++.glyphicon-warning-sign:before {+ content: "\e107";+}++.glyphicon-plane:before {+ content: "\e108";+}++.glyphicon-calendar:before {+ content: "\e109";+}++.glyphicon-random:before {+ content: "\e110";+}++.glyphicon-comment:before {+ content: "\e111";+}++.glyphicon-magnet:before {+ content: "\e112";+}++.glyphicon-chevron-up:before {+ content: "\e113";+}++.glyphicon-chevron-down:before {+ content: "\e114";+}++.glyphicon-retweet:before {+ content: "\e115";+}++.glyphicon-shopping-cart:before {+ content: "\e116";+}++.glyphicon-folder-close:before {+ content: "\e117";+}++.glyphicon-folder-open:before {+ content: "\e118";+}++.glyphicon-resize-vertical:before {+ content: "\e119";+}++.glyphicon-resize-horizontal:before {+ content: "\e120";+}++.glyphicon-hdd:before {+ content: "\e121";+}++.glyphicon-bullhorn:before {+ content: "\e122";+}++.glyphicon-bell:before {+ content: "\e123";+}++.glyphicon-certificate:before {+ content: "\e124";+}++.glyphicon-thumbs-up:before {+ content: "\e125";+}++.glyphicon-thumbs-down:before {+ content: "\e126";+}++.glyphicon-hand-right:before {+ content: "\e127";+}++.glyphicon-hand-left:before {+ content: "\e128";+}++.glyphicon-hand-up:before {+ content: "\e129";+}++.glyphicon-hand-down:before {+ content: "\e130";+}++.glyphicon-circle-arrow-right:before {+ content: "\e131";+}++.glyphicon-circle-arrow-left:before {+ content: "\e132";+}++.glyphicon-circle-arrow-up:before {+ content: "\e133";+}++.glyphicon-circle-arrow-down:before {+ content: "\e134";+}++.glyphicon-globe:before {+ content: "\e135";+}++.glyphicon-wrench:before {+ content: "\e136";+}++.glyphicon-tasks:before {+ content: "\e137";+}++.glyphicon-filter:before {+ content: "\e138";+}++.glyphicon-briefcase:before {+ content: "\e139";+}++.glyphicon-fullscreen:before {+ content: "\e140";+}++.glyphicon-dashboard:before {+ content: "\e141";+}++.glyphicon-paperclip:before {+ content: "\e142";+}++.glyphicon-heart-empty:before {+ content: "\e143";+}++.glyphicon-link:before {+ content: "\e144";+}++.glyphicon-phone:before {+ content: "\e145";+}++.glyphicon-pushpin:before {+ content: "\e146";+}++.glyphicon-usd:before {+ content: "\e148";+}++.glyphicon-gbp:before {+ content: "\e149";+}++.glyphicon-sort:before {+ content: "\e150";+}++.glyphicon-sort-by-alphabet:before {+ content: "\e151";+}++.glyphicon-sort-by-alphabet-alt:before {+ content: "\e152";+}++.glyphicon-sort-by-order:before {+ content: "\e153";+}++.glyphicon-sort-by-order-alt:before {+ content: "\e154";+}++.glyphicon-sort-by-attributes:before {+ content: "\e155";+}++.glyphicon-sort-by-attributes-alt:before {+ content: "\e156";+}++.glyphicon-unchecked:before {+ content: "\e157";+}++.glyphicon-expand:before {+ content: "\e158";+}++.glyphicon-collapse-down:before {+ content: "\e159";+}++.glyphicon-collapse-up:before {+ content: "\e160";+}++.glyphicon-log-in:before {+ content: "\e161";+}++.glyphicon-flash:before {+ content: "\e162";+}++.glyphicon-log-out:before {+ content: "\e163";+}++.glyphicon-new-window:before {+ content: "\e164";+}++.glyphicon-record:before {+ content: "\e165";+}++.glyphicon-save:before {+ content: "\e166";+}++.glyphicon-open:before {+ content: "\e167";+}++.glyphicon-saved:before {+ content: "\e168";+}++.glyphicon-import:before {+ content: "\e169";+}++.glyphicon-export:before {+ content: "\e170";+}++.glyphicon-send:before {+ content: "\e171";+}++.glyphicon-floppy-disk:before {+ content: "\e172";+}++.glyphicon-floppy-saved:before {+ content: "\e173";+}++.glyphicon-floppy-remove:before {+ content: "\e174";+}++.glyphicon-floppy-save:before {+ content: "\e175";+}++.glyphicon-floppy-open:before {+ content: "\e176";+}++.glyphicon-credit-card:before {+ content: "\e177";+}++.glyphicon-transfer:before {+ content: "\e178";+}++.glyphicon-cutlery:before {+ content: "\e179";+}++.glyphicon-header:before {+ content: "\e180";+}++.glyphicon-compressed:before {+ content: "\e181";+}++.glyphicon-earphone:before {+ content: "\e182";+}++.glyphicon-phone-alt:before {+ content: "\e183";+}++.glyphicon-tower:before {+ content: "\e184";+}++.glyphicon-stats:before {+ content: "\e185";+}++.glyphicon-sd-video:before {+ content: "\e186";+}++.glyphicon-hd-video:before {+ content: "\e187";+}++.glyphicon-subtitles:before {+ content: "\e188";+}++.glyphicon-sound-stereo:before {+ content: "\e189";+}++.glyphicon-sound-dolby:before {+ content: "\e190";+}++.glyphicon-sound-5-1:before {+ content: "\e191";+}++.glyphicon-sound-6-1:before {+ content: "\e192";+}++.glyphicon-sound-7-1:before {+ content: "\e193";+}++.glyphicon-copyright-mark:before {+ content: "\e194";+}++.glyphicon-registration-mark:before {+ content: "\e195";+}++.glyphicon-cloud-download:before {+ content: "\e197";+}++.glyphicon-cloud-upload:before {+ content: "\e198";+}++.glyphicon-tree-conifer:before {+ content: "\e199";+}++.glyphicon-tree-deciduous:before {+ content: "\e200";+}++.caret {+ display: inline-block;+ width: 0;+ height: 0;+ margin-left: 2px;+ vertical-align: middle;+ border-top: 4px solid #000000;+ border-right: 4px solid transparent;+ border-bottom: 0 dotted;+ border-left: 4px solid transparent;+}++.dropdown {+ position: relative;+}++.dropdown-toggle:focus {+ outline: 0;+}++.dropdown-menu {+ position: absolute;+ top: 100%;+ left: 0;+ z-index: 1000;+ display: none;+ float: left;+ min-width: 160px;+ padding: 5px 0;+ margin: 2px 0 0;+ font-size: 14px;+ list-style: none;+ background-color: #ffffff;+ border: 1px solid #cccccc;+ border: 1px solid rgba(0, 0, 0, 0.15);+ border-radius: 4px;+ -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);+ background-clip: padding-box;+}++.dropdown-menu.pull-right {+ right: 0;+ left: auto;+}++.dropdown-menu .divider {+ height: 1px;+ margin: 9px 0;+ overflow: hidden;+ background-color: #e5e5e5;+}++.dropdown-menu > li > a {+ display: block;+ padding: 3px 20px;+ clear: both;+ font-weight: normal;+ line-height: 1.428571429;+ color: #333333;+ white-space: nowrap;+}++.dropdown-menu > li > a:hover,+.dropdown-menu > li > a:focus {+ color: #262626;+ text-decoration: none;+ background-color: #f5f5f5;+}++.dropdown-menu > .active > a,+.dropdown-menu > .active > a:hover,+.dropdown-menu > .active > a:focus {+ color: #ffffff;+ text-decoration: none;+ background-color: #428bca;+ outline: 0;+}++.dropdown-menu > .disabled > a,+.dropdown-menu > .disabled > a:hover,+.dropdown-menu > .disabled > a:focus {+ color: #999999;+}++.dropdown-menu > .disabled > a:hover,+.dropdown-menu > .disabled > a:focus {+ text-decoration: none;+ cursor: not-allowed;+ background-color: transparent;+ background-image: none;+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);+}++.open > .dropdown-menu {+ display: block;+}++.open > a {+ outline: 0;+}++.dropdown-header {+ display: block;+ padding: 3px 20px;+ font-size: 12px;+ line-height: 1.428571429;+ color: #999999;+}++.dropdown-backdrop {+ position: fixed;+ top: 0;+ right: 0;+ bottom: 0;+ left: 0;+ z-index: 990;+}++.pull-right > .dropdown-menu {+ right: 0;+ left: auto;+}++.dropup .caret,+.navbar-fixed-bottom .dropdown .caret {+ border-top: 0 dotted;+ border-bottom: 4px solid #000000;+ content: "";+}++.dropup .dropdown-menu,+.navbar-fixed-bottom .dropdown .dropdown-menu {+ top: auto;+ bottom: 100%;+ margin-bottom: 1px;+}++@media (min-width: 768px) {+ .navbar-right .dropdown-menu {+ right: 0;+ left: auto;+ }+}++.btn-default .caret {+ border-top-color: #333333;+}++.btn-primary .caret,+.btn-success .caret,+.btn-warning .caret,+.btn-danger .caret,+.btn-info .caret {+ border-top-color: #fff;+}++.dropup .btn-default .caret {+ border-bottom-color: #333333;+}++.dropup .btn-primary .caret,+.dropup .btn-success .caret,+.dropup .btn-warning .caret,+.dropup .btn-danger .caret,+.dropup .btn-info .caret {+ border-bottom-color: #fff;+}++.btn-group,+.btn-group-vertical {+ position: relative;+ display: inline-block;+ vertical-align: middle;+}++.btn-group > .btn,+.btn-group-vertical > .btn {+ position: relative;+ float: left;+}++.btn-group > .btn:hover,+.btn-group-vertical > .btn:hover,+.btn-group > .btn:focus,+.btn-group-vertical > .btn:focus,+.btn-group > .btn:active,+.btn-group-vertical > .btn:active,+.btn-group > .btn.active,+.btn-group-vertical > .btn.active {+ z-index: 2;+}++.btn-group > .btn:focus,+.btn-group-vertical > .btn:focus {+ outline: none;+}++.btn-group .btn + .btn,+.btn-group .btn + .btn-group,+.btn-group .btn-group + .btn,+.btn-group .btn-group + .btn-group {+ margin-left: -1px;+}++.btn-toolbar:before,+.btn-toolbar:after {+ display: table;+ content: " ";+}++.btn-toolbar:after {+ clear: both;+}++.btn-toolbar:before,+.btn-toolbar:after {+ display: table;+ content: " ";+}++.btn-toolbar:after {+ clear: both;+}++.btn-toolbar .btn-group {+ float: left;+}++.btn-toolbar > .btn + .btn,+.btn-toolbar > .btn-group + .btn,+.btn-toolbar > .btn + .btn-group,+.btn-toolbar > .btn-group + .btn-group {+ margin-left: 5px;+}++.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {+ border-radius: 0;+}++.btn-group > .btn:first-child {+ margin-left: 0;+}++.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {+ border-top-right-radius: 0;+ border-bottom-right-radius: 0;+}++.btn-group > .btn:last-child:not(:first-child),+.btn-group > .dropdown-toggle:not(:first-child) {+ border-bottom-left-radius: 0;+ border-top-left-radius: 0;+}++.btn-group > .btn-group {+ float: left;+}++.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {+ border-radius: 0;+}++.btn-group > .btn-group:first-child > .btn:last-child,+.btn-group > .btn-group:first-child > .dropdown-toggle {+ border-top-right-radius: 0;+ border-bottom-right-radius: 0;+}++.btn-group > .btn-group:last-child > .btn:first-child {+ border-bottom-left-radius: 0;+ border-top-left-radius: 0;+}++.btn-group .dropdown-toggle:active,+.btn-group.open .dropdown-toggle {+ outline: 0;+}++.btn-group-xs > .btn {+ padding: 5px 10px;+ padding: 1px 5px;+ font-size: 12px;+ line-height: 1.5;+ border-radius: 3px;+}++.btn-group-sm > .btn {+ padding: 5px 10px;+ font-size: 12px;+ line-height: 1.5;+ border-radius: 3px;+}++.btn-group-lg > .btn {+ padding: 10px 16px;+ font-size: 18px;+ line-height: 1.33;+ border-radius: 6px;+}++.btn-group > .btn + .dropdown-toggle {+ padding-right: 8px;+ padding-left: 8px;+}++.btn-group > .btn-lg + .dropdown-toggle {+ padding-right: 12px;+ padding-left: 12px;+}++.btn-group.open .dropdown-toggle {+ -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);+ box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);+}++.btn-group.open .dropdown-toggle.btn-link {+ -webkit-box-shadow: none;+ box-shadow: none;+}++.btn .caret {+ margin-left: 0;+}++.btn-lg .caret {+ border-width: 5px 5px 0;+ border-bottom-width: 0;+}++.dropup .btn-lg .caret {+ border-width: 0 5px 5px;+}++.btn-group-vertical > .btn,+.btn-group-vertical > .btn-group {+ display: block;+ float: none;+ width: 100%;+ max-width: 100%;+}++.btn-group-vertical > .btn-group:before,+.btn-group-vertical > .btn-group:after {+ display: table;+ content: " ";+}++.btn-group-vertical > .btn-group:after {+ clear: both;+}++.btn-group-vertical > .btn-group:before,+.btn-group-vertical > .btn-group:after {+ display: table;+ content: " ";+}++.btn-group-vertical > .btn-group:after {+ clear: both;+}++.btn-group-vertical > .btn-group > .btn {+ float: none;+}++.btn-group-vertical > .btn + .btn,+.btn-group-vertical > .btn + .btn-group,+.btn-group-vertical > .btn-group + .btn,+.btn-group-vertical > .btn-group + .btn-group {+ margin-top: -1px;+ margin-left: 0;+}++.btn-group-vertical > .btn:not(:first-child):not(:last-child) {+ border-radius: 0;+}++.btn-group-vertical > .btn:first-child:not(:last-child) {+ border-top-right-radius: 4px;+ border-bottom-right-radius: 0;+ border-bottom-left-radius: 0;+}++.btn-group-vertical > .btn:last-child:not(:first-child) {+ border-top-right-radius: 0;+ border-bottom-left-radius: 4px;+ border-top-left-radius: 0;+}++.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {+ border-radius: 0;+}++.btn-group-vertical > .btn-group:first-child > .btn:last-child,+.btn-group-vertical > .btn-group:first-child > .dropdown-toggle {+ border-bottom-right-radius: 0;+ border-bottom-left-radius: 0;+}++.btn-group-vertical > .btn-group:last-child > .btn:first-child {+ border-top-right-radius: 0;+ border-top-left-radius: 0;+}++.btn-group-justified {+ display: table;+ width: 100%;+ border-collapse: separate;+ table-layout: fixed;+}++.btn-group-justified .btn {+ display: table-cell;+ float: none;+ width: 1%;+}++[data-toggle="buttons"] > .btn > input[type="radio"],+[data-toggle="buttons"] > .btn > input[type="checkbox"] {+ display: none;+}++.input-group {+ position: relative;+ display: table;+ border-collapse: separate;+}++.input-group.col {+ float: none;+ padding-right: 0;+ padding-left: 0;+}++.input-group .form-control {+ width: 100%;+ margin-bottom: 0;+}++.input-group-lg > .form-control,+.input-group-lg > .input-group-addon,+.input-group-lg > .input-group-btn > .btn {+ height: 45px;+ padding: 10px 16px;+ font-size: 18px;+ line-height: 1.33;+ border-radius: 6px;+}++select.input-group-lg > .form-control,+select.input-group-lg > .input-group-addon,+select.input-group-lg > .input-group-btn > .btn {+ height: 45px;+ line-height: 45px;+}++textarea.input-group-lg > .form-control,+textarea.input-group-lg > .input-group-addon,+textarea.input-group-lg > .input-group-btn > .btn {+ height: auto;+}++.input-group-sm > .form-control,+.input-group-sm > .input-group-addon,+.input-group-sm > .input-group-btn > .btn {+ height: 30px;+ padding: 5px 10px;+ font-size: 12px;+ line-height: 1.5;+ border-radius: 3px;+}++select.input-group-sm > .form-control,+select.input-group-sm > .input-group-addon,+select.input-group-sm > .input-group-btn > .btn {+ height: 30px;+ line-height: 30px;+}++textarea.input-group-sm > .form-control,+textarea.input-group-sm > .input-group-addon,+textarea.input-group-sm > .input-group-btn > .btn {+ height: auto;+}++.input-group-addon,+.input-group-btn,+.input-group .form-control {+ display: table-cell;+}++.input-group-addon:not(:first-child):not(:last-child),+.input-group-btn:not(:first-child):not(:last-child),+.input-group .form-control:not(:first-child):not(:last-child) {+ border-radius: 0;+}++.input-group-addon,+.input-group-btn {+ width: 1%;+ white-space: nowrap;+ vertical-align: middle;+}++.input-group-addon {+ padding: 6px 12px;+ font-size: 14px;+ font-weight: normal;+ line-height: 1;+ color: #555555;+ text-align: center;+ background-color: #eeeeee;+ border: 1px solid #cccccc;+ border-radius: 4px;+}++.input-group-addon.input-sm {+ padding: 5px 10px;+ font-size: 12px;+ border-radius: 3px;+}++.input-group-addon.input-lg {+ padding: 10px 16px;+ font-size: 18px;+ border-radius: 6px;+}++.input-group-addon input[type="radio"],+.input-group-addon input[type="checkbox"] {+ margin-top: 0;+}++.input-group .form-control:first-child,+.input-group-addon:first-child,+.input-group-btn:first-child > .btn,+.input-group-btn:first-child > .dropdown-toggle,+.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {+ border-top-right-radius: 0;+ border-bottom-right-radius: 0;+}++.input-group-addon:first-child {+ border-right: 0;+}++.input-group .form-control:last-child,+.input-group-addon:last-child,+.input-group-btn:last-child > .btn,+.input-group-btn:last-child > .dropdown-toggle,+.input-group-btn:first-child > .btn:not(:first-child) {+ border-bottom-left-radius: 0;+ border-top-left-radius: 0;+}++.input-group-addon:last-child {+ border-left: 0;+}++.input-group-btn {+ position: relative;+ white-space: nowrap;+}++.input-group-btn:first-child > .btn {+ margin-right: -1px;+}++.input-group-btn:last-child > .btn {+ margin-left: -1px;+}++.input-group-btn > .btn {+ position: relative;+}++.input-group-btn > .btn + .btn {+ margin-left: -4px;+}++.input-group-btn > .btn:hover,+.input-group-btn > .btn:active {+ z-index: 2;+}++.nav {+ padding-left: 0;+ margin-bottom: 0;+ list-style: none;+}++.nav:before,+.nav:after {+ display: table;+ content: " ";+}++.nav:after {+ clear: both;+}++.nav:before,+.nav:after {+ display: table;+ content: " ";+}++.nav:after {+ clear: both;+}++.nav > li {+ position: relative;+ display: block;+}++.nav > li > a {+ position: relative;+ display: block;+ padding: 10px 15px;+}++.nav > li > a:hover,+.nav > li > a:focus {+ text-decoration: none;+ background-color: #eeeeee;+}++.nav > li.disabled > a {+ color: #999999;+}++.nav > li.disabled > a:hover,+.nav > li.disabled > a:focus {+ color: #999999;+ text-decoration: none;+ cursor: not-allowed;+ background-color: transparent;+}++.nav .open > a,+.nav .open > a:hover,+.nav .open > a:focus {+ background-color: #eeeeee;+ border-color: #428bca;+}++.nav .open > a .caret,+.nav .open > a:hover .caret,+.nav .open > a:focus .caret {+ border-top-color: #2a6496;+ border-bottom-color: #2a6496;+}++.nav .nav-divider {+ height: 1px;+ margin: 9px 0;+ overflow: hidden;+ background-color: #e5e5e5;+}++.nav > li > a > img {+ max-width: none;+}++.nav-tabs {+ border-bottom: 1px solid #dddddd;+}++.nav-tabs > li {+ float: left;+ margin-bottom: -1px;+}++.nav-tabs > li > a {+ margin-right: 2px;+ line-height: 1.428571429;+ border: 1px solid transparent;+ border-radius: 4px 4px 0 0;+}++.nav-tabs > li > a:hover {+ border-color: #eeeeee #eeeeee #dddddd;+}++.nav-tabs > li.active > a,+.nav-tabs > li.active > a:hover,+.nav-tabs > li.active > a:focus {+ color: #555555;+ cursor: default;+ background-color: #ffffff;+ border: 1px solid #dddddd;+ border-bottom-color: transparent;+}++.nav-tabs.nav-justified {+ width: 100%;+ border-bottom: 0;+}++.nav-tabs.nav-justified > li {+ float: none;+}++.nav-tabs.nav-justified > li > a {+ margin-bottom: 5px;+ text-align: center;+}++.nav-tabs.nav-justified > .dropdown .dropdown-menu {+ top: auto;+ left: auto;+}++@media (min-width: 768px) {+ .nav-tabs.nav-justified > li {+ display: table-cell;+ width: 1%;+ }+ .nav-tabs.nav-justified > li > a {+ margin-bottom: 0;+ }+}++.nav-tabs.nav-justified > li > a {+ margin-right: 0;+ border-radius: 4px;+}++.nav-tabs.nav-justified > .active > a,+.nav-tabs.nav-justified > .active > a:hover,+.nav-tabs.nav-justified > .active > a:focus {+ border: 1px solid #dddddd;+}++@media (min-width: 768px) {+ .nav-tabs.nav-justified > li > a {+ border-bottom: 1px solid #dddddd;+ border-radius: 4px 4px 0 0;+ }+ .nav-tabs.nav-justified > .active > a,+ .nav-tabs.nav-justified > .active > a:hover,+ .nav-tabs.nav-justified > .active > a:focus {+ border-bottom-color: #ffffff;+ }+}++.nav-pills > li {+ float: left;+}++.nav-pills > li > a {+ border-radius: 4px;+}++.nav-pills > li + li {+ margin-left: 2px;+}++.nav-pills > li.active > a,+.nav-pills > li.active > a:hover,+.nav-pills > li.active > a:focus {+ color: #ffffff;+ background-color: #428bca;+}++.nav-pills > li.active > a .caret,+.nav-pills > li.active > a:hover .caret,+.nav-pills > li.active > a:focus .caret {+ border-top-color: #ffffff;+ border-bottom-color: #ffffff;+}++.nav-stacked > li {+ float: none;+}++.nav-stacked > li + li {+ margin-top: 2px;+ margin-left: 0;+}++.nav-justified {+ width: 100%;+}++.nav-justified > li {+ float: none;+}++.nav-justified > li > a {+ margin-bottom: 5px;+ text-align: center;+}++.nav-justified > .dropdown .dropdown-menu {+ top: auto;+ left: auto;+}++@media (min-width: 768px) {+ .nav-justified > li {+ display: table-cell;+ width: 1%;+ }+ .nav-justified > li > a {+ margin-bottom: 0;+ }+}++.nav-tabs-justified {+ border-bottom: 0;+}++.nav-tabs-justified > li > a {+ margin-right: 0;+ border-radius: 4px;+}++.nav-tabs-justified > .active > a,+.nav-tabs-justified > .active > a:hover,+.nav-tabs-justified > .active > a:focus {+ border: 1px solid #dddddd;+}++@media (min-width: 768px) {+ .nav-tabs-justified > li > a {+ border-bottom: 1px solid #dddddd;+ border-radius: 4px 4px 0 0;+ }+ .nav-tabs-justified > .active > a,+ .nav-tabs-justified > .active > a:hover,+ .nav-tabs-justified > .active > a:focus {+ border-bottom-color: #ffffff;+ }+}++.tab-content > .tab-pane {+ display: none;+}++.tab-content > .active {+ display: block;+}++.nav .caret {+ border-top-color: #428bca;+ border-bottom-color: #428bca;+}++.nav a:hover .caret {+ border-top-color: #2a6496;+ border-bottom-color: #2a6496;+}++.nav-tabs .dropdown-menu {+ margin-top: -1px;+ border-top-right-radius: 0;+ border-top-left-radius: 0;+}++.navbar {+ position: relative;+ min-height: 50px;+ margin-bottom: 20px;+ border: 1px solid transparent;+}++.navbar:before,+.navbar:after {+ display: table;+ content: " ";+}++.navbar:after {+ clear: both;+}++.navbar:before,+.navbar:after {+ display: table;+ content: " ";+}++.navbar:after {+ clear: both;+}++@media (min-width: 768px) {+ .navbar {+ border-radius: 4px;+ }+}++.navbar-header:before,+.navbar-header:after {+ display: table;+ content: " ";+}++.navbar-header:after {+ clear: both;+}++.navbar-header:before,+.navbar-header:after {+ display: table;+ content: " ";+}++.navbar-header:after {+ clear: both;+}++@media (min-width: 768px) {+ .navbar-header {+ float: left;+ }+}++.navbar-collapse {+ max-height: 340px;+ padding-right: 15px;+ padding-left: 15px;+ overflow-x: visible;+ border-top: 1px solid transparent;+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);+ -webkit-overflow-scrolling: touch;+}++.navbar-collapse:before,+.navbar-collapse:after {+ display: table;+ content: " ";+}++.navbar-collapse:after {+ clear: both;+}++.navbar-collapse:before,+.navbar-collapse:after {+ display: table;+ content: " ";+}++.navbar-collapse:after {+ clear: both;+}++.navbar-collapse.in {+ overflow-y: auto;+}++@media (min-width: 768px) {+ .navbar-collapse {+ width: auto;+ border-top: 0;+ box-shadow: none;+ }+ .navbar-collapse.collapse {+ display: block !important;+ height: auto !important;+ padding-bottom: 0;+ overflow: visible !important;+ }+ .navbar-collapse.in {+ overflow-y: auto;+ }+ .navbar-collapse .navbar-nav.navbar-left:first-child {+ margin-left: -15px;+ }+ .navbar-collapse .navbar-nav.navbar-right:last-child {+ margin-right: -15px;+ }+ .navbar-collapse .navbar-text:last-child {+ margin-right: 0;+ }+}++.container > .navbar-header,+.container > .navbar-collapse {+ margin-right: -15px;+ margin-left: -15px;+}++@media (min-width: 768px) {+ .container > .navbar-header,+ .container > .navbar-collapse {+ margin-right: 0;+ margin-left: 0;+ }+}++.navbar-static-top {+ z-index: 1000;+ border-width: 0 0 1px;+}++@media (min-width: 768px) {+ .navbar-static-top {+ border-radius: 0;+ }+}++.navbar-fixed-top,+.navbar-fixed-bottom {+ position: fixed;+ right: 0;+ left: 0;+ z-index: 1030;+}++@media (min-width: 768px) {+ .navbar-fixed-top,+ .navbar-fixed-bottom {+ border-radius: 0;+ }+}++.navbar-fixed-top {+ top: 0;+ border-width: 0 0 1px;+}++.navbar-fixed-bottom {+ bottom: 0;+ margin-bottom: 0;+ border-width: 1px 0 0;+}++.navbar-brand {+ float: left;+ padding: 15px 15px;+ font-size: 18px;+ line-height: 20px;+}++.navbar-brand:hover,+.navbar-brand:focus {+ text-decoration: none;+}++@media (min-width: 768px) {+ .navbar > .container .navbar-brand {+ margin-left: -15px;+ }+}++.navbar-toggle {+ position: relative;+ float: right;+ padding: 9px 10px;+ margin-top: 8px;+ margin-right: 15px;+ margin-bottom: 8px;+ background-color: transparent;+ border: 1px solid transparent;+ border-radius: 4px;+}++.navbar-toggle .icon-bar {+ display: block;+ width: 22px;+ height: 2px;+ border-radius: 1px;+}++.navbar-toggle .icon-bar + .icon-bar {+ margin-top: 4px;+}++@media (min-width: 768px) {+ .navbar-toggle {+ display: none;+ }+}++.navbar-nav {+ margin: 7.5px -15px;+}++.navbar-nav > li > a {+ padding-top: 10px;+ padding-bottom: 10px;+ line-height: 20px;+}++@media (max-width: 767px) {+ .navbar-nav .open .dropdown-menu {+ position: static;+ float: none;+ width: auto;+ margin-top: 0;+ background-color: transparent;+ border: 0;+ box-shadow: none;+ }+ .navbar-nav .open .dropdown-menu > li > a,+ .navbar-nav .open .dropdown-menu .dropdown-header {+ padding: 5px 15px 5px 25px;+ }+ .navbar-nav .open .dropdown-menu > li > a {+ line-height: 20px;+ }+ .navbar-nav .open .dropdown-menu > li > a:hover,+ .navbar-nav .open .dropdown-menu > li > a:focus {+ background-image: none;+ }+}++@media (min-width: 768px) {+ .navbar-nav {+ float: left;+ margin: 0;+ }+ .navbar-nav > li {+ float: left;+ }+ .navbar-nav > li > a {+ padding-top: 15px;+ padding-bottom: 15px;+ }+}++@media (min-width: 768px) {+ .navbar-left {+ float: left !important;+ }+ .navbar-right {+ float: right !important;+ }+}++.navbar-form {+ padding: 10px 15px;+ margin-top: 8px;+ margin-right: -15px;+ margin-bottom: 8px;+ margin-left: -15px;+ border-top: 1px solid transparent;+ border-bottom: 1px solid transparent;+ -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);+}++@media (min-width: 768px) {+ .navbar-form .form-group {+ display: inline-block;+ margin-bottom: 0;+ vertical-align: middle;+ }+ .navbar-form .form-control {+ display: inline-block;+ }+ .navbar-form .radio,+ .navbar-form .checkbox {+ display: inline-block;+ padding-left: 0;+ margin-top: 0;+ margin-bottom: 0;+ }+ .navbar-form .radio input[type="radio"],+ .navbar-form .checkbox input[type="checkbox"] {+ float: none;+ margin-left: 0;+ }+}++@media (max-width: 767px) {+ .navbar-form .form-group {+ margin-bottom: 5px;+ }+}++@media (min-width: 768px) {+ .navbar-form {+ width: auto;+ padding-top: 0;+ padding-bottom: 0;+ margin-right: 0;+ margin-left: 0;+ border: 0;+ -webkit-box-shadow: none;+ box-shadow: none;+ }+}++.navbar-nav > li > .dropdown-menu {+ margin-top: 0;+ border-top-right-radius: 0;+ border-top-left-radius: 0;+}++.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {+ border-bottom-right-radius: 0;+ border-bottom-left-radius: 0;+}++.navbar-nav.pull-right > li > .dropdown-menu,+.navbar-nav > li > .dropdown-menu.pull-right {+ right: 0;+ left: auto;+}++.navbar-btn {+ margin-top: 8px;+ margin-bottom: 8px;+}++.navbar-text {+ float: left;+ margin-top: 15px;+ margin-bottom: 15px;+}++@media (min-width: 768px) {+ .navbar-text {+ margin-right: 15px;+ margin-left: 15px;+ }+}++.navbar-default {+ background-color: #f8f8f8;+ border-color: #e7e7e7;+}++.navbar-default .navbar-brand {+ color: #777777;+}++.navbar-default .navbar-brand:hover,+.navbar-default .navbar-brand:focus {+ color: #5e5e5e;+ background-color: transparent;+}++.navbar-default .navbar-text {+ color: #777777;+}++.navbar-default .navbar-nav > li > a {+ color: #777777;+}++.navbar-default .navbar-nav > li > a:hover,+.navbar-default .navbar-nav > li > a:focus {+ color: #333333;+ background-color: transparent;+}++.navbar-default .navbar-nav > .active > a,+.navbar-default .navbar-nav > .active > a:hover,+.navbar-default .navbar-nav > .active > a:focus {+ color: #555555;+ background-color: #e7e7e7;+}++.navbar-default .navbar-nav > .disabled > a,+.navbar-default .navbar-nav > .disabled > a:hover,+.navbar-default .navbar-nav > .disabled > a:focus {+ color: #cccccc;+ background-color: transparent;+}++.navbar-default .navbar-toggle {+ border-color: #dddddd;+}++.navbar-default .navbar-toggle:hover,+.navbar-default .navbar-toggle:focus {+ background-color: #dddddd;+}++.navbar-default .navbar-toggle .icon-bar {+ background-color: #cccccc;+}++.navbar-default .navbar-collapse,+.navbar-default .navbar-form {+ border-color: #e7e7e7;+}++.navbar-default .navbar-nav > .dropdown > a:hover .caret,+.navbar-default .navbar-nav > .dropdown > a:focus .caret {+ border-top-color: #333333;+ border-bottom-color: #333333;+}++.navbar-default .navbar-nav > .open > a,+.navbar-default .navbar-nav > .open > a:hover,+.navbar-default .navbar-nav > .open > a:focus {+ color: #555555;+ background-color: #e7e7e7;+}++.navbar-default .navbar-nav > .open > a .caret,+.navbar-default .navbar-nav > .open > a:hover .caret,+.navbar-default .navbar-nav > .open > a:focus .caret {+ border-top-color: #555555;+ border-bottom-color: #555555;+}++.navbar-default .navbar-nav > .dropdown > a .caret {+ border-top-color: #777777;+ border-bottom-color: #777777;+}++@media (max-width: 767px) {+ .navbar-default .navbar-nav .open .dropdown-menu > li > a {+ color: #777777;+ }+ .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,+ .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {+ color: #333333;+ background-color: transparent;+ }+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a,+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,+ .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {+ color: #555555;+ background-color: #e7e7e7;+ }+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,+ .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {+ color: #cccccc;+ background-color: transparent;+ }+}++.navbar-default .navbar-link {+ color: #777777;+}++.navbar-default .navbar-link:hover {+ color: #333333;+}++.navbar-inverse {+ background-color: #222222;+ border-color: #080808;+}++.navbar-inverse .navbar-brand {+ color: #999999;+}++.navbar-inverse .navbar-brand:hover,+.navbar-inverse .navbar-brand:focus {+ color: #ffffff;+ background-color: transparent;+}++.navbar-inverse .navbar-text {+ color: #999999;+}++.navbar-inverse .navbar-nav > li > a {+ color: #999999;+}++.navbar-inverse .navbar-nav > li > a:hover,+.navbar-inverse .navbar-nav > li > a:focus {+ color: #ffffff;+ background-color: transparent;+}++.navbar-inverse .navbar-nav > .active > a,+.navbar-inverse .navbar-nav > .active > a:hover,+.navbar-inverse .navbar-nav > .active > a:focus {+ color: #ffffff;+ background-color: #080808;+}++.navbar-inverse .navbar-nav > .disabled > a,+.navbar-inverse .navbar-nav > .disabled > a:hover,+.navbar-inverse .navbar-nav > .disabled > a:focus {+ color: #444444;+ background-color: transparent;+}++.navbar-inverse .navbar-toggle {+ border-color: #333333;+}++.navbar-inverse .navbar-toggle:hover,+.navbar-inverse .navbar-toggle:focus {+ background-color: #333333;+}++.navbar-inverse .navbar-toggle .icon-bar {+ background-color: #ffffff;+}++.navbar-inverse .navbar-collapse,+.navbar-inverse .navbar-form {+ border-color: #101010;+}++.navbar-inverse .navbar-nav > .open > a,+.navbar-inverse .navbar-nav > .open > a:hover,+.navbar-inverse .navbar-nav > .open > a:focus {+ color: #ffffff;+ background-color: #080808;+}++.navbar-inverse .navbar-nav > .dropdown > a:hover .caret {+ border-top-color: #ffffff;+ border-bottom-color: #ffffff;+}++.navbar-inverse .navbar-nav > .dropdown > a .caret {+ border-top-color: #999999;+ border-bottom-color: #999999;+}++.navbar-inverse .navbar-nav > .open > a .caret,+.navbar-inverse .navbar-nav > .open > a:hover .caret,+.navbar-inverse .navbar-nav > .open > a:focus .caret {+ border-top-color: #ffffff;+ border-bottom-color: #ffffff;+}++@media (max-width: 767px) {+ .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {+ border-color: #080808;+ }+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {+ color: #999999;+ }+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,+ .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {+ color: #ffffff;+ background-color: transparent;+ }+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,+ .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {+ color: #ffffff;+ background-color: #080808;+ }+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,+ .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {+ color: #444444;+ background-color: transparent;+ }+}++.navbar-inverse .navbar-link {+ color: #999999;+}++.navbar-inverse .navbar-link:hover {+ color: #ffffff;+}++.breadcrumb {+ padding: 8px 15px;+ margin-bottom: 20px;+ list-style: none;+ background-color: #f5f5f5;+ border-radius: 4px;+}++.breadcrumb > li {+ display: inline-block;+}++.breadcrumb > li + li:before {+ padding: 0 5px;+ color: #cccccc;+ content: "/\00a0";+}++.breadcrumb > .active {+ color: #999999;+}++.pagination {+ display: inline-block;+ padding-left: 0;+ margin: 20px 0;+ border-radius: 4px;+}++.pagination > li {+ display: inline;+}++.pagination > li > a,+.pagination > li > span {+ position: relative;+ float: left;+ padding: 6px 12px;+ margin-left: -1px;+ line-height: 1.428571429;+ text-decoration: none;+ background-color: #ffffff;+ border: 1px solid #dddddd;+}++.pagination > li:first-child > a,+.pagination > li:first-child > span {+ margin-left: 0;+ border-bottom-left-radius: 4px;+ border-top-left-radius: 4px;+}++.pagination > li:last-child > a,+.pagination > li:last-child > span {+ border-top-right-radius: 4px;+ border-bottom-right-radius: 4px;+}++.pagination > li > a:hover,+.pagination > li > span:hover,+.pagination > li > a:focus,+.pagination > li > span:focus {+ background-color: #eeeeee;+}++.pagination > .active > a,+.pagination > .active > span,+.pagination > .active > a:hover,+.pagination > .active > span:hover,+.pagination > .active > a:focus,+.pagination > .active > span:focus {+ z-index: 2;+ color: #ffffff;+ cursor: default;+ background-color: #428bca;+ border-color: #428bca;+}++.pagination > .disabled > span,+.pagination > .disabled > span:hover,+.pagination > .disabled > span:focus,+.pagination > .disabled > a,+.pagination > .disabled > a:hover,+.pagination > .disabled > a:focus {+ color: #999999;+ cursor: not-allowed;+ background-color: #ffffff;+ border-color: #dddddd;+}++.pagination-lg > li > a,+.pagination-lg > li > span {+ padding: 10px 16px;+ font-size: 18px;+}++.pagination-lg > li:first-child > a,+.pagination-lg > li:first-child > span {+ border-bottom-left-radius: 6px;+ border-top-left-radius: 6px;+}++.pagination-lg > li:last-child > a,+.pagination-lg > li:last-child > span {+ border-top-right-radius: 6px;+ border-bottom-right-radius: 6px;+}++.pagination-sm > li > a,+.pagination-sm > li > span {+ padding: 5px 10px;+ font-size: 12px;+}++.pagination-sm > li:first-child > a,+.pagination-sm > li:first-child > span {+ border-bottom-left-radius: 3px;+ border-top-left-radius: 3px;+}++.pagination-sm > li:last-child > a,+.pagination-sm > li:last-child > span {+ border-top-right-radius: 3px;+ border-bottom-right-radius: 3px;+}++.pager {+ padding-left: 0;+ margin: 20px 0;+ text-align: center;+ list-style: none;+}++.pager:before,+.pager:after {+ display: table;+ content: " ";+}++.pager:after {+ clear: both;+}++.pager:before,+.pager:after {+ display: table;+ content: " ";+}++.pager:after {+ clear: both;+}++.pager li {+ display: inline;+}++.pager li > a,+.pager li > span {+ display: inline-block;+ padding: 5px 14px;+ background-color: #ffffff;+ border: 1px solid #dddddd;+ border-radius: 15px;+}++.pager li > a:hover,+.pager li > a:focus {+ text-decoration: none;+ background-color: #eeeeee;+}++.pager .next > a,+.pager .next > span {+ float: right;+}++.pager .previous > a,+.pager .previous > span {+ float: left;+}++.pager .disabled > a,+.pager .disabled > a:hover,+.pager .disabled > a:focus,+.pager .disabled > span {+ color: #999999;+ cursor: not-allowed;+ background-color: #ffffff;+}++.label {+ display: inline;+ padding: .2em .6em .3em;+ font-size: 75%;+ font-weight: bold;+ line-height: 1;+ color: #ffffff;+ text-align: center;+ white-space: nowrap;+ vertical-align: baseline;+ border-radius: .25em;+}++.label[href]:hover,+.label[href]:focus {+ color: #ffffff;+ text-decoration: none;+ cursor: pointer;+}++.label:empty {+ display: none;+}++.label-default {+ background-color: #999999;+}++.label-default[href]:hover,+.label-default[href]:focus {+ background-color: #808080;+}++.label-primary {+ background-color: #428bca;+}++.label-primary[href]:hover,+.label-primary[href]:focus {+ background-color: #3071a9;+}++.label-success {+ background-color: #5cb85c;+}++.label-success[href]:hover,+.label-success[href]:focus {+ background-color: #449d44;+}++.label-info {+ background-color: #5bc0de;+}++.label-info[href]:hover,+.label-info[href]:focus {+ background-color: #31b0d5;+}++.label-warning {+ background-color: #f0ad4e;+}++.label-warning[href]:hover,+.label-warning[href]:focus {+ background-color: #ec971f;+}++.label-danger {+ background-color: #d9534f;+}++.label-danger[href]:hover,+.label-danger[href]:focus {+ background-color: #c9302c;+}++.badge {+ display: inline-block;+ min-width: 10px;+ padding: 3px 7px;+ font-size: 12px;+ font-weight: bold;+ line-height: 1;+ color: #ffffff;+ text-align: center;+ white-space: nowrap;+ vertical-align: baseline;+ background-color: #999999;+ border-radius: 10px;+}++.badge:empty {+ display: none;+}++a.badge:hover,+a.badge:focus {+ color: #ffffff;+ text-decoration: none;+ cursor: pointer;+}++.btn .badge {+ position: relative;+ top: -1px;+}++a.list-group-item.active > .badge,+.nav-pills > .active > a > .badge {+ color: #428bca;+ background-color: #ffffff;+}++.nav-pills > li > a > .badge {+ margin-left: 3px;+}++.jumbotron {+ padding: 30px;+ margin-bottom: 30px;+ font-size: 21px;+ font-weight: 200;+ line-height: 2.1428571435;+ color: inherit;+ background-color: #eeeeee;+}++.jumbotron h1 {+ line-height: 1;+ color: inherit;+}++.jumbotron p {+ line-height: 1.4;+}++.container .jumbotron {+ border-radius: 6px;+}++@media screen and (min-width: 768px) {+ .jumbotron {+ padding-top: 48px;+ padding-bottom: 48px;+ }+ .container .jumbotron {+ padding-right: 60px;+ padding-left: 60px;+ }+ .jumbotron h1 {+ font-size: 63px;+ }+}++.thumbnail {+ display: inline-block;+ display: block;+ height: auto;+ max-width: 100%;+ padding: 4px;+ margin-bottom: 20px;+ line-height: 1.428571429;+ background-color: #ffffff;+ border: 1px solid #dddddd;+ border-radius: 4px;+ -webkit-transition: all 0.2s ease-in-out;+ transition: all 0.2s ease-in-out;+}++.thumbnail > img {+ display: block;+ height: auto;+ max-width: 100%;+ margin-right: auto;+ margin-left: auto;+}++a.thumbnail:hover,+a.thumbnail:focus,+a.thumbnail.active {+ border-color: #428bca;+}++.thumbnail .caption {+ padding: 9px;+ color: #333333;+}++.alert {+ padding: 15px;+ margin-bottom: 20px;+ border: 1px solid transparent;+ border-radius: 4px;+}++.alert h4 {+ margin-top: 0;+ color: inherit;+}++.alert .alert-link {+ font-weight: bold;+}++.alert > p,+.alert > ul {+ margin-bottom: 0;+}++.alert > p + p {+ margin-top: 5px;+}++.alert-dismissable {+ padding-right: 35px;+}++.alert-dismissable .close {+ position: relative;+ top: -2px;+ right: -21px;+ color: inherit;+}++.alert-success {+ color: #468847;+ background-color: #dff0d8;+ border-color: #d6e9c6;+}++.alert-success hr {+ border-top-color: #c9e2b3;+}++.alert-success .alert-link {+ color: #356635;+}++.alert-info {+ color: #3a87ad;+ background-color: #d9edf7;+ border-color: #bce8f1;+}++.alert-info hr {+ border-top-color: #a6e1ec;+}++.alert-info .alert-link {+ color: #2d6987;+}++.alert-warning {+ color: #c09853;+ background-color: #fcf8e3;+ border-color: #faebcc;+}++.alert-warning hr {+ border-top-color: #f7e1b5;+}++.alert-warning .alert-link {+ color: #a47e3c;+}++.alert-danger {+ color: #b94a48;+ background-color: #f2dede;+ border-color: #ebccd1;+}++.alert-danger hr {+ border-top-color: #e4b9c0;+}++.alert-danger .alert-link {+ color: #953b39;+}++@-webkit-keyframes progress-bar-stripes {+ from {+ background-position: 40px 0;+ }+ to {+ background-position: 0 0;+ }+}++@-moz-keyframes progress-bar-stripes {+ from {+ background-position: 40px 0;+ }+ to {+ background-position: 0 0;+ }+}++@-o-keyframes progress-bar-stripes {+ from {+ background-position: 0 0;+ }+ to {+ background-position: 40px 0;+ }+}++@keyframes progress-bar-stripes {+ from {+ background-position: 40px 0;+ }+ to {+ background-position: 0 0;+ }+}++.progress {+ height: 20px;+ margin-bottom: 20px;+ overflow: hidden;+ background-color: #f5f5f5;+ border-radius: 4px;+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);+}++.progress-bar {+ float: left;+ width: 0;+ height: 100%;+ font-size: 12px;+ line-height: 20px;+ color: #ffffff;+ text-align: center;+ background-color: #428bca;+ -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);+ box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);+ -webkit-transition: width 0.6s ease;+ transition: width 0.6s ease;+}++.progress-striped .progress-bar {+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-size: 40px 40px;+}++.progress.active .progress-bar {+ -webkit-animation: progress-bar-stripes 2s linear infinite;+ animation: progress-bar-stripes 2s linear infinite;+}++.progress-bar-success {+ background-color: #5cb85c;+}++.progress-striped .progress-bar-success {+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+}++.progress-bar-info {+ background-color: #5bc0de;+}++.progress-striped .progress-bar-info {+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+}++.progress-bar-warning {+ background-color: #f0ad4e;+}++.progress-striped .progress-bar-warning {+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+}++.progress-bar-danger {+ background-color: #d9534f;+}++.progress-striped .progress-bar-danger {+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent));+ background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);+}++.media,+.media-body {+ overflow: hidden;+ zoom: 1;+}++.media,+.media .media {+ margin-top: 15px;+}++.media:first-child {+ margin-top: 0;+}++.media-object {+ display: block;+}++.media-heading {+ margin: 0 0 5px;+}++.media > .pull-left {+ margin-right: 10px;+}++.media > .pull-right {+ margin-left: 10px;+}++.media-list {+ padding-left: 0;+ list-style: none;+}++.list-group {+ padding-left: 0;+ margin-bottom: 20px;+}++.list-group-item {+ position: relative;+ display: block;+ padding: 10px 15px;+ margin-bottom: -1px;+ background-color: #ffffff;+ border: 1px solid #dddddd;+}++.list-group-item:first-child {+ border-top-right-radius: 4px;+ border-top-left-radius: 4px;+}++.list-group-item:last-child {+ margin-bottom: 0;+ border-bottom-right-radius: 4px;+ border-bottom-left-radius: 4px;+}++.list-group-item > .badge {+ float: right;+}++.list-group-item > .badge + .badge {+ margin-right: 5px;+}++a.list-group-item {+ color: #555555;+}++a.list-group-item .list-group-item-heading {+ color: #333333;+}++a.list-group-item:hover,+a.list-group-item:focus {+ text-decoration: none;+ background-color: #f5f5f5;+}++a.list-group-item.active,+a.list-group-item.active:hover,+a.list-group-item.active:focus {+ z-index: 2;+ color: #ffffff;+ background-color: #428bca;+ border-color: #428bca;+}++a.list-group-item.active .list-group-item-heading,+a.list-group-item.active:hover .list-group-item-heading,+a.list-group-item.active:focus .list-group-item-heading {+ color: inherit;+}++a.list-group-item.active .list-group-item-text,+a.list-group-item.active:hover .list-group-item-text,+a.list-group-item.active:focus .list-group-item-text {+ color: #e1edf7;+}++.list-group-item-heading {+ margin-top: 0;+ margin-bottom: 5px;+}++.list-group-item-text {+ margin-bottom: 0;+ line-height: 1.3;+}++.panel {+ margin-bottom: 20px;+ background-color: #ffffff;+ border: 1px solid transparent;+ border-radius: 4px;+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);+}++.panel-body {+ padding: 15px;+}++.panel-body:before,+.panel-body:after {+ display: table;+ content: " ";+}++.panel-body:after {+ clear: both;+}++.panel-body:before,+.panel-body:after {+ display: table;+ content: " ";+}++.panel-body:after {+ clear: both;+}++.panel > .list-group {+ margin-bottom: 0;+}++.panel > .list-group .list-group-item {+ border-width: 1px 0;+}++.panel > .list-group .list-group-item:first-child {+ border-top-right-radius: 0;+ border-top-left-radius: 0;+}++.panel > .list-group .list-group-item:last-child {+ border-bottom: 0;+}++.panel-heading + .list-group .list-group-item:first-child {+ border-top-width: 0;+}++.panel > .table,+.panel > .table-responsive {+ margin-bottom: 0;+}++.panel > .panel-body + .table,+.panel > .panel-body + .table-responsive {+ border-top: 1px solid #dddddd;+}++.panel > .table-bordered,+.panel > .table-responsive > .table-bordered {+ border: 0;+}++.panel > .table-bordered > thead > tr > th:first-child,+.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,+.panel > .table-bordered > tbody > tr > th:first-child,+.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,+.panel > .table-bordered > tfoot > tr > th:first-child,+.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,+.panel > .table-bordered > thead > tr > td:first-child,+.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,+.panel > .table-bordered > tbody > tr > td:first-child,+.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,+.panel > .table-bordered > tfoot > tr > td:first-child,+.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {+ border-left: 0;+}++.panel > .table-bordered > thead > tr > th:last-child,+.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,+.panel > .table-bordered > tbody > tr > th:last-child,+.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,+.panel > .table-bordered > tfoot > tr > th:last-child,+.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,+.panel > .table-bordered > thead > tr > td:last-child,+.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,+.panel > .table-bordered > tbody > tr > td:last-child,+.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,+.panel > .table-bordered > tfoot > tr > td:last-child,+.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {+ border-right: 0;+}++.panel > .table-bordered > thead > tr:last-child > th,+.panel > .table-responsive > .table-bordered > thead > tr:last-child > th,+.panel > .table-bordered > tbody > tr:last-child > th,+.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,+.panel > .table-bordered > tfoot > tr:last-child > th,+.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th,+.panel > .table-bordered > thead > tr:last-child > td,+.panel > .table-responsive > .table-bordered > thead > tr:last-child > td,+.panel > .table-bordered > tbody > tr:last-child > td,+.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,+.panel > .table-bordered > tfoot > tr:last-child > td,+.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td {+ border-bottom: 0;+}++.panel-heading {+ padding: 10px 15px;+ border-bottom: 1px solid transparent;+ border-top-right-radius: 3px;+ border-top-left-radius: 3px;+}++.panel-heading > .dropdown .dropdown-toggle {+ color: inherit;+}++.panel-title {+ margin-top: 0;+ margin-bottom: 0;+ font-size: 16px;+}++.panel-title > a {+ color: inherit;+}++.panel-footer {+ padding: 10px 15px;+ background-color: #f5f5f5;+ border-top: 1px solid #dddddd;+ border-bottom-right-radius: 3px;+ border-bottom-left-radius: 3px;+}++.panel-group .panel {+ margin-bottom: 0;+ overflow: hidden;+ border-radius: 4px;+}++.panel-group .panel + .panel {+ margin-top: 5px;+}++.panel-group .panel-heading {+ border-bottom: 0;+}++.panel-group .panel-heading + .panel-collapse .panel-body {+ border-top: 1px solid #dddddd;+}++.panel-group .panel-footer {+ border-top: 0;+}++.panel-group .panel-footer + .panel-collapse .panel-body {+ border-bottom: 1px solid #dddddd;+}++.panel-default {+ border-color: #dddddd;+}++.panel-default > .panel-heading {+ color: #333333;+ background-color: #f5f5f5;+ border-color: #dddddd;+}++.panel-default > .panel-heading + .panel-collapse .panel-body {+ border-top-color: #dddddd;+}++.panel-default > .panel-heading > .dropdown .caret {+ border-color: #333333 transparent;+}++.panel-default > .panel-footer + .panel-collapse .panel-body {+ border-bottom-color: #dddddd;+}++.panel-primary {+ border-color: #428bca;+}++.panel-primary > .panel-heading {+ color: #ffffff;+ background-color: #428bca;+ border-color: #428bca;+}++.panel-primary > .panel-heading + .panel-collapse .panel-body {+ border-top-color: #428bca;+}++.panel-primary > .panel-heading > .dropdown .caret {+ border-color: #ffffff transparent;+}++.panel-primary > .panel-footer + .panel-collapse .panel-body {+ border-bottom-color: #428bca;+}++.panel-success {+ border-color: #d6e9c6;+}++.panel-success > .panel-heading {+ color: #468847;+ background-color: #dff0d8;+ border-color: #d6e9c6;+}++.panel-success > .panel-heading + .panel-collapse .panel-body {+ border-top-color: #d6e9c6;+}++.panel-success > .panel-heading > .dropdown .caret {+ border-color: #468847 transparent;+}++.panel-success > .panel-footer + .panel-collapse .panel-body {+ border-bottom-color: #d6e9c6;+}++.panel-warning {+ border-color: #faebcc;+}++.panel-warning > .panel-heading {+ color: #c09853;+ background-color: #fcf8e3;+ border-color: #faebcc;+}++.panel-warning > .panel-heading + .panel-collapse .panel-body {+ border-top-color: #faebcc;+}++.panel-warning > .panel-heading > .dropdown .caret {+ border-color: #c09853 transparent;+}++.panel-warning > .panel-footer + .panel-collapse .panel-body {+ border-bottom-color: #faebcc;+}++.panel-danger {+ border-color: #ebccd1;+}++.panel-danger > .panel-heading {+ color: #b94a48;+ background-color: #f2dede;+ border-color: #ebccd1;+}++.panel-danger > .panel-heading + .panel-collapse .panel-body {+ border-top-color: #ebccd1;+}++.panel-danger > .panel-heading > .dropdown .caret {+ border-color: #b94a48 transparent;+}++.panel-danger > .panel-footer + .panel-collapse .panel-body {+ border-bottom-color: #ebccd1;+}++.panel-info {+ border-color: #bce8f1;+}++.panel-info > .panel-heading {+ color: #3a87ad;+ background-color: #d9edf7;+ border-color: #bce8f1;+}++.panel-info > .panel-heading + .panel-collapse .panel-body {+ border-top-color: #bce8f1;+}++.panel-info > .panel-heading > .dropdown .caret {+ border-color: #3a87ad transparent;+}++.panel-info > .panel-footer + .panel-collapse .panel-body {+ border-bottom-color: #bce8f1;+}++.well {+ min-height: 20px;+ padding: 19px;+ margin-bottom: 20px;+ background-color: #f5f5f5;+ border: 1px solid #e3e3e3;+ border-radius: 4px;+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);+}++.well blockquote {+ border-color: #ddd;+ border-color: rgba(0, 0, 0, 0.15);+}++.well-lg {+ padding: 24px;+ border-radius: 6px;+}++.well-sm {+ padding: 9px;+ border-radius: 3px;+}++.close {+ float: right;+ font-size: 21px;+ font-weight: bold;+ line-height: 1;+ color: #000000;+ text-shadow: 0 1px 0 #ffffff;+ opacity: 0.2;+ filter: alpha(opacity=20);+}++.close:hover,+.close:focus {+ color: #000000;+ text-decoration: none;+ cursor: pointer;+ opacity: 0.5;+ filter: alpha(opacity=50);+}++button.close {+ padding: 0;+ cursor: pointer;+ background: transparent;+ border: 0;+ -webkit-appearance: none;+}++.modal-open {+ overflow: hidden;+}++.modal {+ position: fixed;+ top: 0;+ right: 0;+ bottom: 0;+ left: 0;+ z-index: 1040;+ display: none;+ overflow: auto;+ overflow-y: scroll;+}++.modal.fade .modal-dialog {+ -webkit-transform: translate(0, -25%);+ -ms-transform: translate(0, -25%);+ transform: translate(0, -25%);+ -webkit-transition: -webkit-transform 0.3s ease-out;+ -moz-transition: -moz-transform 0.3s ease-out;+ -o-transition: -o-transform 0.3s ease-out;+ transition: transform 0.3s ease-out;+}++.modal.in .modal-dialog {+ -webkit-transform: translate(0, 0);+ -ms-transform: translate(0, 0);+ transform: translate(0, 0);+}++.modal-dialog {+ position: relative;+ z-index: 1050;+ width: auto;+ padding: 10px;+ margin-right: auto;+ margin-left: auto;+}++.modal-content {+ position: relative;+ background-color: #ffffff;+ border: 1px solid #999999;+ border: 1px solid rgba(0, 0, 0, 0.2);+ border-radius: 6px;+ outline: none;+ -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);+ box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);+ background-clip: padding-box;+}++.modal-backdrop {+ position: fixed;+ top: 0;+ right: 0;+ bottom: 0;+ left: 0;+ z-index: 1030;+ background-color: #000000;+}++.modal-backdrop.fade {+ opacity: 0;+ filter: alpha(opacity=0);+}++.modal-backdrop.in {+ opacity: 0.5;+ filter: alpha(opacity=50);+}++.modal-header {+ min-height: 16.428571429px;+ padding: 15px;+ border-bottom: 1px solid #e5e5e5;+}++.modal-header .close {+ margin-top: -2px;+}++.modal-title {+ margin: 0;+ line-height: 1.428571429;+}++.modal-body {+ position: relative;+ padding: 20px;+}++.modal-footer {+ padding: 19px 20px 20px;+ margin-top: 15px;+ text-align: right;+ border-top: 1px solid #e5e5e5;+}++.modal-footer:before,+.modal-footer:after {+ display: table;+ content: " ";+}++.modal-footer:after {+ clear: both;+}++.modal-footer:before,+.modal-footer:after {+ display: table;+ content: " ";+}++.modal-footer:after {+ clear: both;+}++.modal-footer .btn + .btn {+ margin-bottom: 0;+ margin-left: 5px;+}++.modal-footer .btn-group .btn + .btn {+ margin-left: -1px;+}++.modal-footer .btn-block + .btn-block {+ margin-left: 0;+}++@media screen and (min-width: 768px) {+ .modal-dialog {+ width: 600px;+ padding-top: 30px;+ padding-bottom: 30px;+ }+ .modal-content {+ -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);+ }+}++.tooltip {+ position: absolute;+ z-index: 1030;+ display: block;+ font-size: 12px;+ line-height: 1.4;+ opacity: 0;+ filter: alpha(opacity=0);+ visibility: visible;+}++.tooltip.in {+ opacity: 0.9;+ filter: alpha(opacity=90);+}++.tooltip.top {+ padding: 5px 0;+ margin-top: -3px;+}++.tooltip.right {+ padding: 0 5px;+ margin-left: 3px;+}++.tooltip.bottom {+ padding: 5px 0;+ margin-top: 3px;+}++.tooltip.left {+ padding: 0 5px;+ margin-left: -3px;+}++.tooltip-inner {+ max-width: 200px;+ padding: 3px 8px;+ color: #ffffff;+ text-align: center;+ text-decoration: none;+ background-color: #000000;+ border-radius: 4px;+}++.tooltip-arrow {+ position: absolute;+ width: 0;+ height: 0;+ border-color: transparent;+ border-style: solid;+}++.tooltip.top .tooltip-arrow {+ bottom: 0;+ left: 50%;+ margin-left: -5px;+ border-top-color: #000000;+ border-width: 5px 5px 0;+}++.tooltip.top-left .tooltip-arrow {+ bottom: 0;+ left: 5px;+ border-top-color: #000000;+ border-width: 5px 5px 0;+}++.tooltip.top-right .tooltip-arrow {+ right: 5px;+ bottom: 0;+ border-top-color: #000000;+ border-width: 5px 5px 0;+}++.tooltip.right .tooltip-arrow {+ top: 50%;+ left: 0;+ margin-top: -5px;+ border-right-color: #000000;+ border-width: 5px 5px 5px 0;+}++.tooltip.left .tooltip-arrow {+ top: 50%;+ right: 0;+ margin-top: -5px;+ border-left-color: #000000;+ border-width: 5px 0 5px 5px;+}++.tooltip.bottom .tooltip-arrow {+ top: 0;+ left: 50%;+ margin-left: -5px;+ border-bottom-color: #000000;+ border-width: 0 5px 5px;+}++.tooltip.bottom-left .tooltip-arrow {+ top: 0;+ left: 5px;+ border-bottom-color: #000000;+ border-width: 0 5px 5px;+}++.tooltip.bottom-right .tooltip-arrow {+ top: 0;+ right: 5px;+ border-bottom-color: #000000;+ border-width: 0 5px 5px;+}++.popover {+ position: absolute;+ top: 0;+ left: 0;+ z-index: 1010;+ display: none;+ max-width: 276px;+ padding: 1px;+ text-align: left;+ white-space: normal;+ background-color: #ffffff;+ border: 1px solid #cccccc;+ border: 1px solid rgba(0, 0, 0, 0.2);+ border-radius: 6px;+ -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);+ box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);+ background-clip: padding-box;+}++.popover.top {+ margin-top: -10px;+}++.popover.right {+ margin-left: 10px;+}++.popover.bottom {+ margin-top: 10px;+}++.popover.left {+ margin-left: -10px;+}++.popover-title {+ padding: 8px 14px;+ margin: 0;+ font-size: 14px;+ font-weight: normal;+ line-height: 18px;+ background-color: #f7f7f7;+ border-bottom: 1px solid #ebebeb;+ border-radius: 5px 5px 0 0;+}++.popover-content {+ padding: 9px 14px;+}++.popover .arrow,+.popover .arrow:after {+ position: absolute;+ display: block;+ width: 0;+ height: 0;+ border-color: transparent;+ border-style: solid;+}++.popover .arrow {+ border-width: 11px;+}++.popover .arrow:after {+ border-width: 10px;+ content: "";+}++.popover.top .arrow {+ bottom: -11px;+ left: 50%;+ margin-left: -11px;+ border-top-color: #999999;+ border-top-color: rgba(0, 0, 0, 0.25);+ border-bottom-width: 0;+}++.popover.top .arrow:after {+ bottom: 1px;+ margin-left: -10px;+ border-top-color: #ffffff;+ border-bottom-width: 0;+ content: " ";+}++.popover.right .arrow {+ top: 50%;+ left: -11px;+ margin-top: -11px;+ border-right-color: #999999;+ border-right-color: rgba(0, 0, 0, 0.25);+ border-left-width: 0;+}++.popover.right .arrow:after {+ bottom: -10px;+ left: 1px;+ border-right-color: #ffffff;+ border-left-width: 0;+ content: " ";+}++.popover.bottom .arrow {+ top: -11px;+ left: 50%;+ margin-left: -11px;+ border-bottom-color: #999999;+ border-bottom-color: rgba(0, 0, 0, 0.25);+ border-top-width: 0;+}++.popover.bottom .arrow:after {+ top: 1px;+ margin-left: -10px;+ border-bottom-color: #ffffff;+ border-top-width: 0;+ content: " ";+}++.popover.left .arrow {+ top: 50%;+ right: -11px;+ margin-top: -11px;+ border-left-color: #999999;+ border-left-color: rgba(0, 0, 0, 0.25);+ border-right-width: 0;+}++.popover.left .arrow:after {+ right: 1px;+ bottom: -10px;+ border-left-color: #ffffff;+ border-right-width: 0;+ content: " ";+}++.carousel {+ position: relative;+}++.carousel-inner {+ position: relative;+ width: 100%;+ overflow: hidden;+}++.carousel-inner > .item {+ position: relative;+ display: none;+ -webkit-transition: 0.6s ease-in-out left;+ transition: 0.6s ease-in-out left;+}++.carousel-inner > .item > img,+.carousel-inner > .item > a > img {+ display: block;+ height: auto;+ max-width: 100%;+ line-height: 1;+}++.carousel-inner > .active,+.carousel-inner > .next,+.carousel-inner > .prev {+ display: block;+}++.carousel-inner > .active {+ left: 0;+}++.carousel-inner > .next,+.carousel-inner > .prev {+ position: absolute;+ top: 0;+ width: 100%;+}++.carousel-inner > .next {+ left: 100%;+}++.carousel-inner > .prev {+ left: -100%;+}++.carousel-inner > .next.left,+.carousel-inner > .prev.right {+ left: 0;+}++.carousel-inner > .active.left {+ left: -100%;+}++.carousel-inner > .active.right {+ left: 100%;+}++.carousel-control {+ position: absolute;+ top: 0;+ bottom: 0;+ left: 0;+ width: 15%;+ font-size: 20px;+ color: #ffffff;+ text-align: center;+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);+ opacity: 0.5;+ filter: alpha(opacity=50);+}++.carousel-control.left {+ background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001)));+ background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.5) 0), color-stop(rgba(0, 0, 0, 0.0001) 100%));+ background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%);+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);+}++.carousel-control.right {+ right: 0;+ left: auto;+ background-image: -webkit-gradient(linear, 0 top, 100% top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5)));+ background-image: -webkit-linear-gradient(left, color-stop(rgba(0, 0, 0, 0.0001) 0), color-stop(rgba(0, 0, 0, 0.5) 100%));+ background-image: -moz-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%);+ background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0, rgba(0, 0, 0, 0.5) 100%);+ background-repeat: repeat-x;+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);+}++.carousel-control:hover,+.carousel-control:focus {+ color: #ffffff;+ text-decoration: none;+ opacity: 0.9;+ filter: alpha(opacity=90);+}++.carousel-control .icon-prev,+.carousel-control .icon-next,+.carousel-control .glyphicon-chevron-left,+.carousel-control .glyphicon-chevron-right {+ position: absolute;+ top: 50%;+ z-index: 5;+ display: inline-block;+}++.carousel-control .icon-prev,+.carousel-control .glyphicon-chevron-left {+ left: 50%;+}++.carousel-control .icon-next,+.carousel-control .glyphicon-chevron-right {+ right: 50%;+}++.carousel-control .icon-prev,+.carousel-control .icon-next {+ width: 20px;+ height: 20px;+ margin-top: -10px;+ margin-left: -10px;+ font-family: serif;+}++.carousel-control .icon-prev:before {+ content: '\2039';+}++.carousel-control .icon-next:before {+ content: '\203a';+}++.carousel-indicators {+ position: absolute;+ bottom: 10px;+ left: 50%;+ z-index: 15;+ width: 60%;+ padding-left: 0;+ margin-left: -30%;+ text-align: center;+ list-style: none;+}++.carousel-indicators li {+ display: inline-block;+ width: 10px;+ height: 10px;+ margin: 1px;+ text-indent: -999px;+ cursor: pointer;+ background-color: #000 \9;+ background-color: rgba(0, 0, 0, 0);+ border: 1px solid #ffffff;+ border-radius: 10px;+}++.carousel-indicators .active {+ width: 12px;+ height: 12px;+ margin: 0;+ background-color: #ffffff;+}++.carousel-caption {+ position: absolute;+ right: 15%;+ bottom: 20px;+ left: 15%;+ z-index: 10;+ padding-top: 20px;+ padding-bottom: 20px;+ color: #ffffff;+ text-align: center;+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);+}++.carousel-caption .btn {+ text-shadow: none;+}++@media screen and (min-width: 768px) {+ .carousel-control .glyphicons-chevron-left,+ .carousel-control .glyphicons-chevron-right,+ .carousel-control .icon-prev,+ .carousel-control .icon-next {+ width: 30px;+ height: 30px;+ margin-top: -15px;+ margin-left: -15px;+ font-size: 30px;+ }+ .carousel-caption {+ right: 20%;+ left: 20%;+ padding-bottom: 30px;+ }+ .carousel-indicators {+ bottom: 20px;+ }+}++.clearfix:before,+.clearfix:after {+ display: table;+ content: " ";+}++.clearfix:after {+ clear: both;+}++.center-block {+ display: block;+ margin-right: auto;+ margin-left: auto;+}++.pull-right {+ float: right !important;+}++.pull-left {+ float: left !important;+}++.hide {+ display: none !important;+}++.show {+ display: block !important;+}++.invisible {+ visibility: hidden;+}++.text-hide {+ font: 0/0 a;+ color: transparent;+ text-shadow: none;+ background-color: transparent;+ border: 0;+}++.hidden {+ display: none !important;+ visibility: hidden !important;+}++.affix {+ position: fixed;+}++@-ms-viewport {+ width: device-width;+}++.visible-xs,+tr.visible-xs,+th.visible-xs,+td.visible-xs {+ display: none !important;+}++@media (max-width: 767px) {+ .visible-xs {+ display: block !important;+ }+ tr.visible-xs {+ display: table-row !important;+ }+ th.visible-xs,+ td.visible-xs {+ display: table-cell !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .visible-xs.visible-sm {+ display: block !important;+ }+ tr.visible-xs.visible-sm {+ display: table-row !important;+ }+ th.visible-xs.visible-sm,+ td.visible-xs.visible-sm {+ display: table-cell !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .visible-xs.visible-md {+ display: block !important;+ }+ tr.visible-xs.visible-md {+ display: table-row !important;+ }+ th.visible-xs.visible-md,+ td.visible-xs.visible-md {+ display: table-cell !important;+ }+}++@media (min-width: 1200px) {+ .visible-xs.visible-lg {+ display: block !important;+ }+ tr.visible-xs.visible-lg {+ display: table-row !important;+ }+ th.visible-xs.visible-lg,+ td.visible-xs.visible-lg {+ display: table-cell !important;+ }+}++.visible-sm,+tr.visible-sm,+th.visible-sm,+td.visible-sm {+ display: none !important;+}++@media (max-width: 767px) {+ .visible-sm.visible-xs {+ display: block !important;+ }+ tr.visible-sm.visible-xs {+ display: table-row !important;+ }+ th.visible-sm.visible-xs,+ td.visible-sm.visible-xs {+ display: table-cell !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .visible-sm {+ display: block !important;+ }+ tr.visible-sm {+ display: table-row !important;+ }+ th.visible-sm,+ td.visible-sm {+ display: table-cell !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .visible-sm.visible-md {+ display: block !important;+ }+ tr.visible-sm.visible-md {+ display: table-row !important;+ }+ th.visible-sm.visible-md,+ td.visible-sm.visible-md {+ display: table-cell !important;+ }+}++@media (min-width: 1200px) {+ .visible-sm.visible-lg {+ display: block !important;+ }+ tr.visible-sm.visible-lg {+ display: table-row !important;+ }+ th.visible-sm.visible-lg,+ td.visible-sm.visible-lg {+ display: table-cell !important;+ }+}++.visible-md,+tr.visible-md,+th.visible-md,+td.visible-md {+ display: none !important;+}++@media (max-width: 767px) {+ .visible-md.visible-xs {+ display: block !important;+ }+ tr.visible-md.visible-xs {+ display: table-row !important;+ }+ th.visible-md.visible-xs,+ td.visible-md.visible-xs {+ display: table-cell !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .visible-md.visible-sm {+ display: block !important;+ }+ tr.visible-md.visible-sm {+ display: table-row !important;+ }+ th.visible-md.visible-sm,+ td.visible-md.visible-sm {+ display: table-cell !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .visible-md {+ display: block !important;+ }+ tr.visible-md {+ display: table-row !important;+ }+ th.visible-md,+ td.visible-md {+ display: table-cell !important;+ }+}++@media (min-width: 1200px) {+ .visible-md.visible-lg {+ display: block !important;+ }+ tr.visible-md.visible-lg {+ display: table-row !important;+ }+ th.visible-md.visible-lg,+ td.visible-md.visible-lg {+ display: table-cell !important;+ }+}++.visible-lg,+tr.visible-lg,+th.visible-lg,+td.visible-lg {+ display: none !important;+}++@media (max-width: 767px) {+ .visible-lg.visible-xs {+ display: block !important;+ }+ tr.visible-lg.visible-xs {+ display: table-row !important;+ }+ th.visible-lg.visible-xs,+ td.visible-lg.visible-xs {+ display: table-cell !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .visible-lg.visible-sm {+ display: block !important;+ }+ tr.visible-lg.visible-sm {+ display: table-row !important;+ }+ th.visible-lg.visible-sm,+ td.visible-lg.visible-sm {+ display: table-cell !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .visible-lg.visible-md {+ display: block !important;+ }+ tr.visible-lg.visible-md {+ display: table-row !important;+ }+ th.visible-lg.visible-md,+ td.visible-lg.visible-md {+ display: table-cell !important;+ }+}++@media (min-width: 1200px) {+ .visible-lg {+ display: block !important;+ }+ tr.visible-lg {+ display: table-row !important;+ }+ th.visible-lg,+ td.visible-lg {+ display: table-cell !important;+ }+}++.hidden-xs {+ display: block !important;+}++tr.hidden-xs {+ display: table-row !important;+}++th.hidden-xs,+td.hidden-xs {+ display: table-cell !important;+}++@media (max-width: 767px) {+ .hidden-xs,+ tr.hidden-xs,+ th.hidden-xs,+ td.hidden-xs {+ display: none !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .hidden-xs.hidden-sm,+ tr.hidden-xs.hidden-sm,+ th.hidden-xs.hidden-sm,+ td.hidden-xs.hidden-sm {+ display: none !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .hidden-xs.hidden-md,+ tr.hidden-xs.hidden-md,+ th.hidden-xs.hidden-md,+ td.hidden-xs.hidden-md {+ display: none !important;+ }+}++@media (min-width: 1200px) {+ .hidden-xs.hidden-lg,+ tr.hidden-xs.hidden-lg,+ th.hidden-xs.hidden-lg,+ td.hidden-xs.hidden-lg {+ display: none !important;+ }+}++.hidden-sm {+ display: block !important;+}++tr.hidden-sm {+ display: table-row !important;+}++th.hidden-sm,+td.hidden-sm {+ display: table-cell !important;+}++@media (max-width: 767px) {+ .hidden-sm.hidden-xs,+ tr.hidden-sm.hidden-xs,+ th.hidden-sm.hidden-xs,+ td.hidden-sm.hidden-xs {+ display: none !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .hidden-sm,+ tr.hidden-sm,+ th.hidden-sm,+ td.hidden-sm {+ display: none !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .hidden-sm.hidden-md,+ tr.hidden-sm.hidden-md,+ th.hidden-sm.hidden-md,+ td.hidden-sm.hidden-md {+ display: none !important;+ }+}++@media (min-width: 1200px) {+ .hidden-sm.hidden-lg,+ tr.hidden-sm.hidden-lg,+ th.hidden-sm.hidden-lg,+ td.hidden-sm.hidden-lg {+ display: none !important;+ }+}++.hidden-md {+ display: block !important;+}++tr.hidden-md {+ display: table-row !important;+}++th.hidden-md,+td.hidden-md {+ display: table-cell !important;+}++@media (max-width: 767px) {+ .hidden-md.hidden-xs,+ tr.hidden-md.hidden-xs,+ th.hidden-md.hidden-xs,+ td.hidden-md.hidden-xs {+ display: none !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .hidden-md.hidden-sm,+ tr.hidden-md.hidden-sm,+ th.hidden-md.hidden-sm,+ td.hidden-md.hidden-sm {+ display: none !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .hidden-md,+ tr.hidden-md,+ th.hidden-md,+ td.hidden-md {+ display: none !important;+ }+}++@media (min-width: 1200px) {+ .hidden-md.hidden-lg,+ tr.hidden-md.hidden-lg,+ th.hidden-md.hidden-lg,+ td.hidden-md.hidden-lg {+ display: none !important;+ }+}++.hidden-lg {+ display: block !important;+}++tr.hidden-lg {+ display: table-row !important;+}++th.hidden-lg,+td.hidden-lg {+ display: table-cell !important;+}++@media (max-width: 767px) {+ .hidden-lg.hidden-xs,+ tr.hidden-lg.hidden-xs,+ th.hidden-lg.hidden-xs,+ td.hidden-lg.hidden-xs {+ display: none !important;+ }+}++@media (min-width: 768px) and (max-width: 991px) {+ .hidden-lg.hidden-sm,+ tr.hidden-lg.hidden-sm,+ th.hidden-lg.hidden-sm,+ td.hidden-lg.hidden-sm {+ display: none !important;+ }+}++@media (min-width: 992px) and (max-width: 1199px) {+ .hidden-lg.hidden-md,+ tr.hidden-lg.hidden-md,+ th.hidden-lg.hidden-md,+ td.hidden-lg.hidden-md {+ display: none !important;+ }+}++@media (min-width: 1200px) {+ .hidden-lg,+ tr.hidden-lg,+ th.hidden-lg,+ td.hidden-lg {+ display: none !important;+ }+}++.visible-print,+tr.visible-print,+th.visible-print,+td.visible-print {+ display: none !important;+}++@media print {+ .visible-print {+ display: block !important;+ }+ tr.visible-print {+ display: table-row !important;+ }+ th.visible-print,+ td.visible-print {+ display: table-cell !important;+ }+ .hidden-print,+ tr.hidden-print,+ th.hidden-print,+ td.hidden-print {+ display: none !important;+ }+}\ No newline at end of filediff --git a/data/libs/bootstrap/js/bootstrap3.js b/data/libs/bootstrap/js/bootstrap3.jsnew file mode 100644index 000000000..0e668e85c--- /dev/null+++ b/data/libs/bootstrap/js/bootstrap3.js@@ -0,0 +1,9 @@+/*!+ * Bootstrap v3.0.2 by @fat and @mdo+ * Copyright 2013 Twitter, Inc.+ * Licensed under http://www.apache.org/licenses/LICENSE-2.0+ *+ * Designed and built with all the love in the world by @mdo and @fat.+ */++if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");"radio"===b.prop("type")&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(!e.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown")),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown"))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b),f.trigger(d=a.Event("show.bs.dropdown")),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",f);if(h.length){var i=h.index(h.filter(":focus"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()}}}};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data("dropdown");d||c.data("dropdown",d=new f(this)),"string"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=f,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e+", [role=menu]",f.prototype.keydown)}(jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class="modal-backdrop '+c+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focus",i="hover"==g?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show),void 0):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide),void 0):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d="function"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m="body"==this.options.container?window.innerWidth:j.outerWidth(),n="body"==this.options.container?window.innerHeight:j.outerHeight(),o="body"==this.options.container?0:j.offset().left;d="bottom"==d&&g.top+g.height+i-l>n?"top":"top"==d&&g.top-l-i<0?"bottom":"right"==d&&g.right+h>m?"left":"left"==d&&g.left-h<o?"right":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger("shown.bs."+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;if("top"==b&&j!=f&&(c=!0,a.top=a.top+f-j),/bottom|top/.test(b)){var k=0;a.left<0&&(k=-2*a.left,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,"left")}else this.replaceArrow(j-f,j,"top");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function b(){"in"!=c.hoverState&&d.detach()}var c=this,d=this.tip(),e=a.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(d.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d.one(a.support.transition.end,b).emulateTransitionEnd(150):b(),this.$element.trigger("hidden.bs."+this.type),this)},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},"function"==typeof b.getBoundingClientRect?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof c&&c;e||d.data("bs.tooltip",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top()),"function"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery);\ No newline at end of filediff --git a/data/loader2.js b/data/loader2.jsnew file mode 100644index 000000000..5d0677163--- /dev/null+++ b/data/loader2.js@@ -0,0 +1,167 @@+/* Copyright (c) 2012-2013 The TagSpaces Authors. All rights reserved.+ * Use of this source code is governed by a AGPL3 license that+ * can be found in the LICENSE file. */+//var LOG = debug ? console.log : function () {};+// the value of this var is replaced to "true" by the build script+var PRODUCTION = "@PRODUCTION@";++// Disabling all output to console in production mode+if (PRODUCTION == "true") {+ console = console || {};+ console.log = function(){};+ console.error = function(){};+ console.log = function(){};+}++var isFirefox = document.URL.indexOf( 'resource://' ) >= 0;+var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;+var isChrome = document.URL.indexOf( 'chrome-extension://' ) >= 0;+var isNode = undefined;+var isCordova = document.URL.indexOf( 'file:///android_asset' ) >= 0;+var isWeb = undefined;+var isOSX = navigator.appVersion.indexOf("Mac")!=-1;+var isWin = navigator.appVersion.indexOf("Win")!=-1;++// Check for running in node-webkit+try {+ var fs = require('fs');+ var pathUtils = require('path');+ var gui = require('nw.gui');+ isNode = true;+} catch(e) {+ isNode = false;+ console.log("node-webkit not found!");+}++// Setting up the IO functionality according to the platform+var IO_JS = undefined;+if( isFirefox ) {+ IO_JS = "js/ioapi.mozilla";+} else if ( isChrome ) {+ IO_JS = "js/ioapi.chrome";+} else if (isNode){+ IO_JS = "js/ioapi.node";+} else if (isCordova){+ IO_JS = "js/ioapi.cordova";+} else {+ IO_JS = "js/ioapi.chrome";+}++//IO_JS = "js/ioapi.dropbox";++console.log("Loading Loader - Firefox: "+isFirefox+" | ChromeExt: "+isChrome+" | Node: "+isNode+" | Cordova: "+isCordova);++requirejs.config({+ map: {+ '*': {+ 'css': 'libs/requirecss/css',+ }+ },+ paths: {+ jquery: 'libs/jquery/jquery-2.0.1',+ jqueryui: 'libs/jqueryui/jquery.ui.core',+ jqueryuiwidget: 'libs/jqueryui/jquery.ui.widget',+ jqueryuimouse: 'libs/jqueryui/jquery.ui.mouse',+ jqueryuiposition: 'libs/jqueryui/jquery.ui.position',+ jqueryuiselectable: 'libs/jqueryui/jquery.ui.selectable',+ jqueryuisortable: 'libs/jqueryui/jquery.ui.sortable',+ jqueryuiresizable: 'libs/jqueryui/jquery.ui.resizable',+ jqueryuidraggable: 'libs/jqueryui/jquery.ui.draggable',+ jqueryuidroppable: 'libs/jqueryui/jquery.ui.droppable',+ jqueryuiautocomplete: 'libs/jqueryui/jquery.ui.autocomplete',+ jqueryuidatepicker: 'libs/jqueryui/jquery.ui.datepicker',++ bootstrap: 'libs/bootstrap/js/bootstrap3',+ jquerysimplecolorpicker:'libs/jquery-simplecolorpicker/jquery.simplecolorpicker',+ datatables: 'libs/datatables/js/jquery.dataTables.min',+ datatablescss: 'libs/datatables/css/jquery.dataTables',+ jsoneditor: 'libs/jsoneditor/jsoneditor',+ jsoneditorcss: 'libs/jsoneditor/jsoneditor',+ jquerylayout: 'libs/jquerylayout/jquery.layout-latest',+ jquerylayoutcss: 'libs/jquerylayout/layout-default-latest',+// jquerydropdown: 'libs/jquerydropdown/jquery.dropdown',+// jquerydropdowncss: 'libs/jquerydropdown/jquery.dropdown',+// less: 'libs/less/less-1.3.3.min',+// jqueryeditinplace: 'libs/jqueryeditinplace/jquery.editinplace',+ underscore: 'libs/underscore/underscore',+ d3: 'libs/d3/d3.v3',+ dropbox: 'libs/dropbox/dropbox.0.10.2',+ i18next: 'devlibs/i18next/i18next-1.7.1',+ jqueryhotkeys: 'devlibs/jqueryhotkeys/jquery.hotkeys',+ select2: 'devlibs/select2/select2',+ xeditable: 'devlibs/bootstrap3xeditable/js/bootstrap-editable',++ tscore: 'devlibs/newui',+ tssetting: 'js/settings.api',+ tssettingsdefault: 'js/settings.default',+ tsoptions: 'js/options.ui',+ tspersmanager: 'js/perspective.manager',+ tstagutils: 'js/tagutils',+ tsfileopener: 'js/fileopener',+ tstagsui: 'js/tags.ui',+ tsdirectoriesui: 'js/directories.ui',+ tscoreui: 'js/core.ui',+ tspostioapi: 'js/postioapi',+ tsioapi: IO_JS,+ tsioapidropbox: 'js/ioapi.dropbox',+ },+ shim: {+ 'underscore': { exports: '_' },+ 'bootstrap': { deps: ['jquery'] },+ 'jquerysimplecolorpicker': { deps: ['jquery','bootstrap'] },+ 'jqueryui': { deps: ['jquery'] },+ 'jqueryuiwidget': { deps: ['jqueryui'] },+ 'jqueryuimouse': { deps: ['jqueryui','jqueryuiwidget'] },+ 'jqueryuiposition': { deps: ['jqueryui'] },+ 'jqueryuiselectable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },+ 'jqueryuisortable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },+ 'jqueryuidatepicker': { deps: ['jqueryui'] },+ 'jqueryuidroppable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse','jqueryuidraggable'] },+ 'jqueryuidraggable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },+ 'jqueryuiresizable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },+ 'jquerylayout': { deps: ['jquery', 'jqueryuidraggable' ] },+ 'jquerydropdown': { deps: ['jquery','bootstrap'] },+ 'datatables': { deps: ['jquery'] },+ 'jqueryeditinplace': { deps: ['jquery'] },+ 'jquerynanoscroller': { deps: ['jquery'] },+ 'select2': { deps: ['jquery'] },+ 'jqueryhotkeys': { deps: ['jquery'] },+ 'xeditable': { deps: ['jquery'] },+ 'tscore': { deps: [+ 'jquery',+ 'jqueryui',+ 'jqueryuidraggable',+ 'jqueryuidroppable',+ 'jqueryuiresizable',+ 'jqueryuiposition',+ 'jqueryuiselectable',+ 'jqueryuisortable',+ 'bootstrap',+ 'jquerysimplecolorpicker',+ 'jquerylayout',+ 'i18next',+ 'jqueryhotkeys',+ 'select2',+ 'xeditable',+ // 'jquerydropdown',+ // 'tssettingsdefault',+ ] },+ }+});++define(function (require, exports, module) {+"use strict";++ //require("less");++ if (isCordova) {+ require(["cordova.js"]);+ }++ var TSCORE = undefined;+ requirejs(['tscore','underscore'], function (core,_) {+// TSCORE = core;+// TSCORE.initApp();+ });++});\ No newline at end of filediff --git a/data/locales/de/ns.common.json b/data/locales/de/ns.common.jsonnew file mode 100644index 000000000..752bf8c5d--- /dev/null+++ b/data/locales/de/ns.common.json@@ -0,0 +1,11 @@+{+ "app": {+ "name": "TagSpaces DE",+ "insert": "du bist __youAre__",+ "child": "__count__ Kind",+ "child_plural": "__count__ Kinder",+ "friend_context": "Ein Freund",+ "friend_context_male": "Ein Freund",+ "friend_context_female": "Eine Freundin"+ }+}diff --git a/data/locales/en/ns.common.json b/data/locales/en/ns.common.jsonnew file mode 100644index 000000000..57b19734a--- /dev/null+++ b/data/locales/en/ns.common.json@@ -0,0 +1,11 @@+{+ "app": {+ "name": "TagSpaces EN",+ "insert": "du bist __youAre__",+ "child": "__count__ Kind",+ "child_plural": "__count__ Kinder",+ "friend_context": "Ein Freund",+ "friend_context_male": "Ein Freund",+ "friend_context_female": "Eine Freundin"+ }+}