swish/commit

Generated files

authorJan Wielemaker
Tue Jul 24 14:13:38 2018 +0200
committerJan Wielemaker
Tue Jul 24 14:13:38 2018 +0200
commit8bad1c790b34d3c8bb86a603c27836fa33d2f80a
tree81bdafd7f40362c7022abc03ccfbc9d1d4950666
parent3223dc1f108cbb51fd018b7b9498cb28784bfb30
Diff style: patch stat
diff --git a/web/css/swish-min.css b/web/css/swish-min.css
index 813dfab..c645ebb 100644
--- a/web/css/swish-min.css
+++ b/web/css/swish-min.css
@@ -7,4 +7,4 @@ ul.dropdown-menu li.checkbox input{margin-left:3px}ul.dropdown-menu li.checkbox
  * Bootstrap v3.3.7 (http://getbootstrap.com)
  * Copyright 2011-2016 Twitter, Inc.
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}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}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!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^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot);src:url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff) format('woff'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.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"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .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}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}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}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;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}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.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-md-1,.col-md-10,.col-md-11,.col-md-12,.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-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.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-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.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}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top: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;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{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;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.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:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.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{content:"";border-top:0;border-bottom:4px dashed}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.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{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-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-top-left-radius:0;border-bottom-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:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.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,.125);box-shadow:inset 0 3px 5px rgba(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,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.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-left-radius:4px;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-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;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:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,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}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,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 .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn: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:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;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=checkbox],.input-group-addon input[type=radio]{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>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.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:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.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 #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;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:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.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:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.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:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{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-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{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;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .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;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.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;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{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}}.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,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.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;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@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-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.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:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.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.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-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:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-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;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-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 li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.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:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 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,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-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-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.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:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.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:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.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,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(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:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.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}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;opacity:0;line-break:auto}.tooltip.in{opacity:.9}.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:#fff;text-align:center;background-color:#000;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-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.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;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{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.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:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.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:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row: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}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}.tm-tag{color:#555;background-color:#f5f5f5;border:#bbb 1px solid;box-shadow:0 1px 1px rgba(0,0,0,.075) inset;display:inline-block;border-radius:3px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;margin:0 5px 5px 0;padding:4px;text-decoration:none;transition:border .2s linear 0s,box-shadow .2s linear 0s;-moz-transition:border .2s linear 0s,box-shadow .2s linear 0s;-webkit-transition:border .2s linear 0s,box-shadow .2s linear 0s;vertical-align:middle}.tm-tag .tm-tag-remove{color:#000;font-weight:700;margin-left:4px;opacity:.2}.tm-tag .tm-tag-remove:hover{color:#000;text-decoration:none;opacity:.4}.tm-tag.tm-tag-warning{color:#945203;background-color:#f2c889;border-color:#f0a12f}.tm-tag.tm-tag-error{color:#84212e;background-color:#e69ca6;border-color:#d24a5d}.tm-tag.tm-tag-success{color:#638421;background-color:#cde69c;border-color:#a5d24a}.tm-tag.tm-tag-info{color:#4594b5;background-color:#c5eefa;border-color:#5dc8f7}.tm-tag.tm-tag-inverse{color:#ccc;background-color:#555;border-color:#333;box-shadow:0 1px 1px rgba(0,0,0,.2) inset}.tm-tag.tm-tag-inverse .tm-tag-remove{color:#fff}.tm-tag.tm-tag-large{font-size:16.25px;border-radius:4px;padding:11px 7px}.tm-tag.tm-tag-small{font-size:11.049999999999999px;border-radius:3px;padding:2px 4px}.tm-tag.tm-tag-mini{font-size:9.75px;border-radius:2px;padding:0 2px}.tm-tag.tm-tag-plain{color:#333;box-shadow:none;background:0 0;border:none}.tm-tag.tm-tag-disabled{color:#aaa;background-color:#e6e6e6;border-color:#ccc;box-shadow:none}.tm-tag.tm-tag-disabled .tm-tag-remove{display:none}input[type=text].tm-input{margin-bottom:5px;vertical-align:middle!important}.control-group.tm-group{margin-bottom:5px}.form-horizontal .control-group.tm-group{margin-bottom:15px}.c3 svg{font:10px sans-serif;-webkit-tap-highlight-color:transparent}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc rect{stroke:#fff;stroke-width:1}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:grey;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:1;fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-title{font:14px sans-serif}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;-webkit-box-shadow:7px 7px 12px -9px #777;-moz-box-shadow:7px 7px 12px -9px #777;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip td.value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max{fill:#777}.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}.c3-chart-arc.c3-target g path{opacity:1}.c3-chart-arc.c3-target.c3-focused g path{opacity:1}span.twitter-typeahead .tt-menu{min-width:250px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}span.twitter-typeahead .tt-suggestion>p{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}span.twitter-typeahead .tt-suggestion:focus,span.twitter-typeahead .tt-suggestion:hover{text-decoration:none;outline:0;background-color:#e8e8e8}span.twitter-typeahead .tt-suggestion.tt-cursor{background-color:#f8f8f8}span.twitter-typeahead{width:100%;height:30px}.tt-suggestion{max-width:25em;overflow:hidden}.tt-suggestion .tt-label{padding-left:1.5em}.tt-file-header,.tt-suggestion.tt-match.file{background-size:1em;background-repeat:no-repeat;background-position:5px 5px}.tt-match.predicate.built_in .tt-label{color:#00f}.tt-suggestion .tt-title{color:#555;white-space:nowrap;overflow:hidden;font-style:italic;font-size:80%}.tt-suggestion .tt-tags{max-width:100px;float:right;margin-right:2px}.tt-suggestion .tt-tag{max-width:30px;border:1px solid #ddd;padding:0 4px;margin-left:2px;border-radius:5px;background-color:#e1edff}.tt-suggestion .tt-line{white-space:nowrap}.tt-suggestion .tt-lineno{display:inline-block;width:40px;min-width:20px;font-family:monospace;color:#999;background-color:#eee;border-right:1px solid #ddd;padding:0 3px 0 5px;text-align:right}.tt-suggestion .tt-text{padding-left:5px;white-space:nowrap}div.tt-file-header{padding-left:5em;background-color:#ddd;color:#000}span.tt-path-file{font-weight:700}div.tt-match.source{overflow:hidden}table.diff{width:100%;border-collapse:collapse;border:1px solid #a9a9a9;white-space:pre-wrap}table.diff tbody{font-family:Courier,monospace}table.diff tbody th{font-family:verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;background:#eed;font-size:11px;font-weight:400;border:1px solid #bbc;color:#886;padding:.3em .5em .1em 2em;text-align:right;vertical-align:top}table.diff thead{border-bottom:1px solid #bbc;background:#efefef;font-family:Verdana}table.diff thead th.texttitle{text-align:left}table.diff tbody td{padding:0;vertical-align:top}table.diff .empty{background-color:#ddd}table.diff .replace{background-color:#fd8}table.diff .delete{background-color:#e99}table.diff .skip{background-color:#efefef;border:1px solid #aaa;border-right:1px solid #bbc}table.diff .insert{background-color:#9e9}table.diff th.author{text-align:right;border-top:1px solid #bbc;background:#efefef}.notebook{position:relative;width:100%;height:100%}.nb-toolbar{padding-left:20px}.nb-content,.nb-toolbar{width:100%}.notebook.hamburger .nb-toolbar{display:none}.nb-toolbar{position:absolute;padding-top:5px;padding-bottom:5px;margin-bottom:1em;border-bottom:1px solid #ddd}.nb-toolbar .action-fullscreen{right:5px;position:absolute}div.notebook-menu{display:none}.notebook.hamburger div.notebook-menu{display:block;position:absolute;top:3px;right:1em;z-index:2000}.notebook.hamburger .nb-view{top:0;height:100%}.nb-view{position:absolute;top:40px;height:calc(100% - 40px);width:100%;overflow-y:auto}.nb-content{position:relative;width:100%}.nb-bottom{width:100%;height:30%}.dropdown.cell-type{display:inline}.nb-cell.markdown:not(.runnable){background-color:transparent;border:0}.nb-cell.html:not(.runnable){background-color:transparent;border:0}.nb-cell{margin-left:20px;margin-right:10px;box-sizing:border-box}.nb-cell:focus{outline:0}.nb-type-select{padding:1em 0 1em 0}.nb-type-select>label{margin-left:1em;margin-right:1em;position:relative;top:.1em}.nb-type-more{padding-bottom:1em;padding-left:1em}.nb-type-more label{margin-right:1em;position:relative;top:.1em}.nb-type-more input{display:inline}.nb-cell .close-select{font-size:150%;padding:0 5px;border:0;color:#888;background-color:transparent;float:right}.nb-cell.active{margin-left:8px;border-left:7px solid green!important;padding-left:5px}.nb-cell.html.active>div.editor,.nb-cell.markdown.active>div.editor{border:1px dotted #888;border-radius:5px;margin-bottom:5px;margin-right:52px}.nb-cell.singleline div.editor{height:2em}.nb-cell.singleline .CodeMirror-hscrollbar{height:0}.nb-cell .CodeMirror-scroll{max-height:40em}.nb-cell .CodeMirror{border-radius:5px}.nb-cell .nb-cell-buttons{display:inline-block;float:right}.nb-cell span.glyphicon-cloud{color:#000}.nb-cell.background span.glyphicon-cloud{color:#fff}.nb-cell>.with-buttons{background-color:#eee;border:1px solid #ccc;border-radius:5px;width:calc(100% - 50px)}.nb-cell .nb-query-menu{display:inline;float:left}.nb-query-menu button{background:0 0;padding:3px 5px 0 5px;border:0;color:#888}.nb-query-menu button:hover{color:#000}.nb-cell .prolog-prompt{float:left;padding-right:.3em;padding-top:.25em;font-weight:700;text-align:right}.nb-cell .editor.query{margin-left:44px}.nb-cell.program,.nb-cell.query{margin-bottom:1em}.nb-cell.not-for-query{opacity:.5}.nb-placeholder{opacity:.5;width:90%;margin:auto;margin-top:1ex}.nb-cell.markdown pre.code{width:90%;margin:auto;margin-bottom:1em}.nb-cell.markdown dl.termlist{margin-left:5%}.nb-cell.markdown dl.termlist dd{margin-left:2em}.nb-cell.markdown .predicates dd{margin-left:2em;margin-bottom:1ex}.nb-cell.markdown .predicates .pred-tag{float:right}a.btn-image{padding:1px 2px}.nb-cell.program span.image-icon{display:inline-block;width:18px;height:16px;padding:0;background-repeat:no-repeat;background-size:100% 100%;vertical-align:middle;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAMAAAC8EZcfAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAzUExURf39/dXS0qShoevY2vf09P38/Me0tGNfXzEvLwUBAS0FA14LBJ8TANAdAfklAYp4d////6nIvA0AAAAGdFJOUwD//4heJmPUefMAAAABYktHRBCVsg0sAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AkVCzYIO9WCWAAABddJREFUeNrtXdmS3CAMBHxw2///t0Gy59yxwUYcD1FtqpKqTW1Pi24kkL2M/Y//kRSc8zmECH/CX3vDJoSQUqo9pByEmDtByWfAppT+igBz6AAkF8P4wmbClzHvKANI3pK8QW7oAixrrXuFtQ+gSopGNAJ5GzqA5r1fXhH+5QPKHaRqQSPng9rQBXDL7wCQG0Y1zHUh6vkJ7wjdE6O1O8Sa9A0SiLHWn8PbQe4Q6+V5y65xLgXeRiMmWgpdA57C9BqbiO7BIkBUK68hXqDPukv4QjhbJ818p+8qvkAi5lny0vhw9V2H9yRRFlUzB/Vat9wMj2meS+KD5eeX5T5CUxLhhs8tOVESIR9MHn9PDssoBfWbiw84LKVl8D/jloUEoaDHNwM+T4Bv07IoIRAS/sAPQSi8QIKdX+gQDhM5PkuFr8AypEwwLkPqJINCCPGFJAcKB9oSgTDBe5IJKRQXCPT4Ff82sOvaBGKrid1xQrlISWFYgQkK8c8+OPTx8YobdEK0CieRQKDHavQVJlr10FEIHhMj5AveBtFHV6GgkkhsE3ZG68sIgcKJiMDIj/qJL1p8gxdS5HgeYx5zhC+CkEomIqZhb/Vh2LP/aGisUKSk6ihOP5oj0XFUw96cADylkEbH0SVo9Wm4848mii/BcwLPKbQUizAAPF2C7hyfNhEnLL7PRTJ8mmMKlWAls5QDmG3V0X3EZACkkDGP1Ko+h0EKGfMxso9EAdpz+nMBRtulHAYXgt04uhO3BjjnAjS+OMDzFLvYTuIbM+jv78U0Ko62xO5+hoHBNZdBGQN4TqEt3TcltHTu7gpEgDPFXhzr6e4V1ERt0xoHeJxkF/1k+TV/Qld8hDB6ZUZSsCYdzGy3rdfyu7kMAUCZcvTm/559xG9EaXqS1LM39wHRpFwo07SdTJjE+5FtEAVHaNKmBShakuTTwdcRpveJt91URx9Y9C8FwlGdvwmqO7CjE0ytS9cLt+9KVgoCS1xCbBk2VPMLKZvJLQKpbsOKyCRIxHCqSSShSG/qdgKNZIqKwoGcwrACjRjp7sI0MYWE1zhPpyEVMqzAeSREKGi9cFuBlHfuCZclF2cCaAkknlnwhvAu9n0owJPtwkZxaoQ4VkG3Aukne8ALyQZ7jBQTPUIqq4HZ6gKjUejWFDqBHlUVmQfmI0mSA4FGKFaEQgqdYJ06lgFIMX/k0WJGVibmfJ2AQlZWLLJnzHAPmadiAMEMlctJcPDooqPemUmGImFlRWNQtwfRdwvkqijALCUHBZviz71kJDkoWM1jaYB6uEuhDw6jajxQcrcyxEaOVYibZogWXeWxpknoGx0UWKCq9GQYdlCu1wTfLGvAomXF59auKhktuuKjf5eV7Ir0SZHy314sYqo+3Xltx6up4Fs9XoUiJussBBvhglVqtk5Cgu3MqkdyWYMJnuoDZKlm2EAhr0Y+gcLqFviKNeXYFapA2ehVBkk6wdNo1ijmuNXA5JTUrQCq+JkhnHQ0I3C3mhiBK2sYkRueoJCmBEavJ+AssCmBEQqhTJWNX+hy6tYNPfrNrc2hW+OFV3OAJ4UhXnix5nHYJeMmp9oDPBRyIFAJxrqlEFbg0AO+IwoDgbaT12/99EL0QNUHQP5rR4ZNZGasHwr9n0LfyG5esPaDwk488K3s+qLQGi07ekMdV+bTacCk0wmsUHFL8+k0LvW8XNdpmDUMurqrJl2vVdGYY3vBY+q3Uev7rPBpoap1Ix2bV479UaWvGwr5XSY/T2N0Y6d5l8n3QwStsW1WaJ9F10cr0gW4R47NE+AmkX7AoUweOfalJouy69Z9u+ui2TzKsd8l0kud8LHI9nlwcOmhRwIfVSHFs2iF2BT4yL1VelxZnxQG7nzIsBK6T4B4IgxHlpx1GngTr6uMdqTGZz0MR9admYz+k2NNPyJ9E9v022j6MJkjlQ740t9uNbIddHXVD//M8cA6Byg6BghO2PMSRJX0DTCUXHLqGSDr7rcuVIh/P/O/AARSDtsAAAAASUVORK5CYII=)}.nb-cell.program.background span.image-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AkUDTkUFH3ZDwAABydJREFUaN7tmWuMVdUVx38zMjgMMIioW54iUsaKSI3FJ5vWx0SMlmhVGhuIMdE2VasmRrObRkinsd1RU2kbDdSmEfGF+KhK0mBBhQ02PqZVqYIoIDMoblAcxlauysztB/+nObm95z5mbtsPzkpu9j1nr7PPWnuv9V+PAwM0QF9tqqvFIsaHEcAxwOnALOAEYAIwRCw5oBPYCKwF1gPvRmf3/l8VMD6MBO4GzgOGAQdV+Ggv0A08B1wRnd33P1XA+DAa+ClwjW71ABuADmCe7r0InAL8E3gW+A5wAHhQpzMLqBfv7wAfnd1erSz1fRD+MuD9lPC/BQ4Bzges7m2QgAD10dk5wGpgEHAJMBs4GPiVeH4AvGV8mPtfVcD48AftIMA9wPjo7HXR2X8AjwFHAe3R2ZkS8N8UnW0FVgFNwOro7IHo7I3AaGAx0AAsNz7cX3MTMj4cLDM4XfZ7YXT26dT8z4AFwKfA8Ohsr/FhGPAJsD862yS+ZmCzhL45Ont7ao0ZwBpguJx9enQ2X6sTWCPh9wBfKxD+UMABXwA2OtubtUh0thv4li5vk9DJ3MvAccAWYBqwriYmZHy4BzhDuzsuOrutgOUZYDDwQHT2r+XWi86+DdysS18w/R4wA9gHzDQ+PNIvBYwPFwFX6vIg4JcF8+cDJwG7orNXVGG6v1FsOMv4cFZKuTxwA9CoW5caH+b1yQeMD4cDu3W5AviulNipHXxajtsKXB6dXVbw/H/4QJHNeVyINlXrLALGiGU1cI4UHRmdzVV7AjdpXBadnQtMBN4AxgEPSLlW2f5D1cJfdPYJOesYYBewXP+3Cd1agUd1GiurOgHjQyOwX5eTo7NbU3MXAD8Slicb8I6w/1X93wl8BrypHRwPjNVvMjBdftWSCoRrgMVSLHnXYAFHI3BssUCXpcDdEvL+6Oz8DFjdK6zP6QX1VUT2vOA4BwwFuqOzIzJkWaJAtzA621bWhIwPTUASEa/PEOB4IU97dHaYri8CbpEpvAjsSAm7HXhJvrRAvCfo2feAZuPDNzLetUjjT4pNDipy72igGWgHPs5YdKqe3SB73qwA9WRqI+plGrno7KQSp7EEaFMO9WoRX9lkfOgAJhgfZkZn15dz4ukK6y+XiIRnaCyF+00VmtNyja0leH6tcW4lKDRT4wslFkyOe3MNyolOIdlI+VYxekrjyZUoME3jxhIvnaxxRw0U6AU+FBBknVqXULG5LAoZH95VVjktwwe69UN5fVbuMxR4S0gzNlWdFVKDEsVRypP2FOFpVhXXHZ09upwTN1dwAgl1VMDTCHxU4Wn8rcz84EpQKG2b+Ywjn5gyoboSedY4rdFRgq8OOFKy7FLVVmyt0UK1sgp8DIwEpkZnP8kILnlB3MQSudQgOWeuFJ94N0nAqdHZrozA2ancqqwTJ47ZUuKdXVp4VBnTqbRYapayWbnZcPHsr0SB11PxIIu2pZy4v1QPHCZn/zSD53ClLV2VKPB8QbAqRknEPLYGCoyRc3ZnpczApRrXV6LAJmWSM4wPWY6XBLkTM8xiKGASJzU+jFB9UIwuTpWtWZR0QB6qxIm3C+ePB44AYhGejUKE0yTweOUycxSl05lpo7A9b3zo0bMrgaXR2Q5lvWTVFMaHUyXHh9HZ18qeQHT2c7VMAJZl7Mjf5XSnGB86BZO/AE6VwL2pgNQLfCCFhygdaAN2GB/eTyA5OvuXMrvfVm1J2SMFT0qKdUHjBcDSVMDLS9gVKjHXRWd7hC65grZKnZpfFwPfBw5NbeJnwGXAk0lnQ6l9F/A58PXobGc1gewW4Fbt7Gx15Bam4LVdBX0OGBudPVAkRSg83bzaJeuA64X/LargxqtG3mp8aIvO3ie/aFDHo7PamvguBY5zjQ9r1ZFrEYS2Rme/KUEaVaBU26K0QrG90dkJQr03gUnAUuPDDpnkvlIdj/oSRfe+VGo9S/nMbGBKdHZ1qi9aB9xZpfANwB91OV/ve0Ft+VaVq0mMmdfnvlB09nXg56nCe0t0tic1/6iK+LHGB1+FDlfJ/l+Kzv4ptV4PsDWVgy2Ozq7sV2cuOrsAuFdQ9prxoaVIdZYHbjA+TKpg90fJPEl16JK5KWotjgIeAa6uRWuxTja4VDnJZuPDNSkFdwN3KNQ/o1ZIqbznlaRYj86uTc1dpQqvAVgenf1eJc3duipt9ybgNl1uAb4NfBCdzRsf3lBzdj1wppy7sDv9mDp87cDJ6mI38+Vnp6RMvSs6e21N2+sFSpwJ/F5o0asW4xLgz/KHoxQT5gnbc9HZIcaHZbq3G5iigPbDVCqxB5gfnV1V8+8DGYoskjM2pSLuKr78XpbkNmcrEK0QL7LtOal0uxu4Lzr7477I0d+PfIcJ9haWqR+K0dsKkquis7v6KkNNPrNKmSOVCpyt6qopFY2/UDESdTIPR2d3MkADNED9pn8BvSyBlToydnoAAAAASUVORK5CYII=)}span.menu-space{width:2ex;display:inline-block}.type-icon.pl{background-image:url(../icons/pl.png)}.type-icon.swinb{background-image:url(../icons/swinb.png)}.type-icon.select{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAEUUExURTAwMDQ0NDQ0NHFxcX9/f7Gxsc/Pz+np6ebm5vf39/b29tra2pCQkN3d3NLS0p6entnZ2cDAwEJCQuvr6+Xl5dnZ2fT09F9fX93d3ZqamtjY2K2trbe3t8fHx8nOw/Dv7rjDqKS8iJ63gZO4Zoe4Sn23OIq4U6y9lr7GsqnBiXi7Jn7CKpLKSp7QY53FaabUbZfLVs7SyKrLeYvHQoK/OMTKuazZc6PaWZzUVojLM4PHLbO/pI3SNqC+erHedrnWh7bGmeHi29TXycHLprDda8TZmqHJZ7zVlM7WttHZubLJieDf25baPLXjeZjXRq3iaJ3iQZvgP6XqR7Hja6zyTafjV8rYqbD2T7P5UrTvX67Clf///2wKwGIAAAAedFJOUwIXJ0JJaqba///pylP+nGHghjHqt6zfOula2HJ5ovRUycgAAAABYktHRFt0vJU0AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkVDAIvILrSQQAABcRJREFUWMPNVwtb2koQJRuoy7ZBkRa5bS9JQQUJyEsegRQfKFUJNMRQrP//h9yZ3U0M9dl+97vfHSBiyDlzZmZ3djcW+3+bEl7+lEBBuKIof4QlMULgShRO81skChriAU2IqvAvyKC8Lm4OJwIej8P/RDK8ToVAK2rizcYGTYKx/Ns3iYDhJQoS4/D4uw0NsUkdX2gbKVXIgMieZ0D8JvcsTTIkk1vpbQzqeTjau40Qq7NMhuk6RQYgfR9/iQAZArhmfCkUd/d294uFUlmTKlLo4akgRPQCT42D3QraHr9W9gtlquPrg/p0IpEgIbyXiyZgq7XaYb1+2Kju7lXMSmELCCjN82Q+Vb13HN4sALpRP6y36oHV2qa5V8hSyIa2EydPlT+hc/f7FbNxj5U0tSPTLHZAg56LPyoB/McZ4o29SkNCu/yD13qv37AGlX0Dw3irkkcSocj8DSsBHoBdQdGwjo4G5lFlMDgaYhQfyEMGKHBK+DdrQjS4bnXBGvZAmIkXqwOJ1CEI5eEAwATk22ZD6u5y61scbA0CK+YoTWrb6xIUnPkoQCsGeGH1xuHXqoUmSPBPgYGGze31GMC/igGUzHY9AI+6xycdjZ2ejUu2JQ0oLMsAAooS1lOIArL7Zk3Cu+fdizMqjHUmtmUP8I0ERQ1u/bWWBRSQhalTMqvSeXc0+pbhI48zXFZtaZaUUFhPIx/DOmuYUv9oNOpe4aChjHGKcYBHiq9w71SNxqAQNQUCymY79D+6xjmcua5NxkgwnTh2KMLOM8rSkTrgJM/rGEFfEIxGs3kZOgBtAczpoJCW7dhOQDIEXYW1QipxEECLplAP9t2+BsbO3AE7QQnX+C3g+AJp+ahEkgDTAAjO2uaxwM9Gjt0v02yLo8b3BJzEtotTRpORQkIREuAvb7Wl/1kPXLk17t+ZX8Fv08nCWYQcjQxlyZ2QAFeQtI45nHOCGQrgDy4ANR9jNcaAdgMJTrUJt3bWFKQhBMPsA/wYCHoc7wKB646xGV72XA++BxqqW1DISBmglXyCHBpWn/ufzeRzruN6mEv97NxFW7gLMPxl65RBHUlkGHyGxwxrLvA3HM0twHuu63mCBSjmHcYym2FfwmaWTlK9Y7UhfCDo8fDhYa83hTmeOffQXHwJgn6W0akatnck2IEQ8m17NhMRoFR0d4GLy8gLTUqYaIwxNRICxAAKMg27yyNwBRwA32CKXiLS9wIVSNGaMtaMNFZs6Dhwv9g9mQJB4HrLS3p17vu+xz9CA7xhKLNCZHlAghSsOoY9R4KlI+Ho+WbpCwOOMIwOnbLNaGvHJQmGa7Pq3CCBKICLwo9/XPj3xkW43iQz5SmIxqCoWYjBaPdns+NlgPd8yIF+sVrdgq38QII3pIxurPU0rEMhSWmHS3AXEu/5l5DEH/cEgmOSg9mcWutISBAHAnbtzGfHtwuZAV8Q3HJbrVYyBkyhrpK1roo7lwJMkGbD+TnzAwGeB+MgeXEbMAgBrSwQpH5ZWbgErORw7nxfLgIC/+bq9OpnlMD3egZjyQz5tatjJd9gC71znCUPAYuAdhsaJ1gaUIHk54drIy7OOZik2oETDEMPa7+6XUVy4HslHMW57Yd4bAqb2MLPDuZumASAAPC+jMvSFPE75NEdI7QVoKdaaR4m0ZcMwr1/jgVgGfWJjRbc/hs0MGZMnEgQnIRfu2XEs7RKntjjqMiAYTTv+nIuhBS+XzeaGihsph/fY/FNNpFRnLL8Xd8L48Dh0z1poncqGhF5Zp8ahw0ErFwsY9zVJ0skWJ4fnJQzXD0bqs/gg3U6RdEVZqvZKRvlcqeJaFCmaWkcss/iuYp4SscxtW56UvvM95gkFnt5v72Zyv1KkEupr0CHIiCb6Y8Ag20Tyh+mdwh5Ifo1EZxEVbYTiU/pdFwoF/DXMUgRJECK0xv5vWMficljX4wQ5c9OjjF5zBLnxn/hCPwfI19t/wAe25dChuNuFgAAAABJRU5ErkJggg==)}.type-icon.lnk{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFr0lEQVR42u1b64sbVRSPIPpBP+t/oEJBcFuzbW1xQdl3ZhLa7G4eXdQiolYUqiAiFAp+8B/oKiiKfhJBlAVFEB8o+MHdbdeanTzXghSkH7pbmskmmUmO5zeP7CubzExmsjOYwGFCMvfe8/vd17nnnBsKefyhTPy+Wm70sera9KSSFy4r+chiPRuR1Ly4oeYERRP+jt/wH97BuyiDsqEgfuj6Mw/XMpOimhcWGNAKP29TKUq0HqUmPxsFkVRI3hD+jt+axjt4F2WMsguoC3X6HrgiTZ1UC8KVZkFY1wDfiDGgGDWL0W2wFgVlUFarg+tCnagbbfirt0Ohe6qZyXGlIHzLvVgzFbYLuJuYhKINtIU20fahgpelqaNqUfiqWRJVQznXge8VtIG20Cbahg59B34rM/KgUpi+1MwLd6CM2gfg+8QkgnWALtCpL+BrhbEjPBd/1Hsh2n/ge9cKY2pAJ+jmKfhqdkpoFISbWoOHDHzfGqFNQeEmdPQEfD0nvNgoRivYpvwGvkUC6wYdoaur4BvS1GtUFBUq+Rf8rt2CdYXO7vS8NM09L6rNAIDfuS5AZ+je25yXJiJcUaUreOwCJePppcCgMr+vRzvuPgYJFWBwttpnxo5oC163OV8USbkepepncaq8myT5YorkN92VCkv5YpL+OT9O2dlTlE2cplsLo6TmxI4kaGsCYwAWe9bdv6MPKJLwS9fV3gBfuTRH5ZlzVE6wJN0XOTlPfz87Tn88cYyWh47REp6PhzUSGl06CBg0LIzJuk3PhoWlrY6HffXTON0F+HPeiMxyJ5mk1RPHaTkcphVDQER25rTlLRKYrC16a5EhnjubVhe9yjtJvae8ImB+njbnErQyPNwCrxFwNEyZ6Al9GlhbFDeBrfPQ/2nkXiUrfGPZ0OHG5TdSh0dAzBoBrVEAbIyx03F2DNuHZds+QARoPgfGBowH934u8p0tMzdIBJijABjbjQI4GnjLqDbsOC8CRgCwAWNbpwr75D6wfcgJGAHmKICbbRf4u6ujD9VzkRu2bf0gEsAYgRWYd1h97HR0csoLIAGmhQjMLQLUrLDg6IwfVAKANWtMAypM3A/3Mzyw/58RwLsBMDN29vKMPwofvBPXdVAJ0LEKt4E9hCiMYy9PQAkw1wFgD3E46nIgCAgzAU+GW7I8ZP0scBABwA4CFh27uvpFQCJBqyPH6drTwy25emqYpMRJ5wSUNAIWYQBJjaJ/CSinmIRX0lRbilDt6h65JjgPsDBmYA9pUVqn/rc+EVC+kKZGVnfA7JPe/IcbISM87XsCVEl0PwLF2AcEBGUKeEIApkAQFkEvCABmJSeu+X4b9IqA1jbod0PIMwJMQ8jvprCXBGimsN8PQ14QYB6GSJp8xPfHYS8I2HUc9rtDxBMCdjpE/O4S82YE7HGJ+dkp6jYBbZ2i2jTIO5gGTghIG3JYBLRzi/clMALQcyzPsbxgfE/3l4COgRFPQ2MJ/Vl5b47qP8eo/muMKu9zTsH89n/9IKBjaExPiXE5OGokTMicOVL7/sx2Kk1JP8vXfjjDyRVJHWTCYwKM4Gj1oOCoq+HxpA5IfitJ1a/P8paDnJ72CRaoo7Z4luS3k9sZJh4QYCk8bjtBYi8BKX1uy6+nqPZFnJRMVAde6JJgxe8oa0zEl3G9vjmjLpcIsJwgYTtFxiQACs8y8JdTtPXJDCmrFoAfRMSfbKN/Hqfyq0a9id4JsJUiYytJCgRc4Eyu59O0dWWW6ksG8F58dUWdiPpylLY+nCH5fJrkl5wT4ChJynKaHM/t6sfc47/FegfejgheI+q/x6j60YxOgJPUWSdpcrYSJYsuA3ep/p4TJQepsoNk6UG6/ODCxODKzODS1ODanLWLk1lhvNnHi5NoC20e+sXJfWeIvyaeanh4dRZ1o43gXZ7OiRu2L09zmcBdng7i9fn/ABQA6Y58F+idAAAAAElFTkSuQmCC)}.type-icon.chat{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfhBAMNASzV4qVYAAADQElEQVRo3u2ZS09TURDHf31iW4G23PJoRI0hPkLqAhM1PgILSPADGNyZuDDi0gSJiSsTXfgJXOrCkBiNqDvCgqiRaGJ8BRoTdCE+8EFAlFKQclxQSkt7T+9pe+rCztn09jH//5mZM3NmChWpyP8uNpP3XQT5mnpyUoUbH1sJY+Bljlk+84F5llhkOakpyBx/cuhyYKTpskTAw2a+J1/voZX9HCBCIOt7M7zhKc8YI4oXwUIOXU78zJBQsYqXQJJYD3eZQORdE9zjZE5dDgycak5xY2ADuomyZAF8bS0RpTvLvmEcqvCNwDaGFKDT1xDb03bfZBpjpsavw84ZZguEFwhm6cUBuDBUd++lBgcDJIqAFwgSDOAmiEvV+EG8vCgSfG29plrd935GSgQvEIzkOLYS4xs4uV5CeIHghtUD6CEA9JUYXiDoswLvIgRENMALBJH8BBoAGNdEYDy5yTzSy7ImAsucwU6dHN7PQ03wAsEozbJ8aAfaaNNY8CPsRMgIODiKTyMBH0dkKdmOh07Nl55OPLKPA8Q1RoBAEJflRDv1VGm2QBX1MgItZbh5tsgIhMpAICQj4C4DAZeMQKwMBBZkBKbLQOCTjMBkGQj8kBH4yDfN8NNyAos80UzgEbMyAnGGNRMYJi4jIBhlSiP8FKOyargqgxorwaC1ejWvCT5GlzVD3dZE4I5VT/mZ0gA/ab05qedQyS+mKxy0OqYJ4QJOs1JS+LPWmnMbgdSV6UrRnfE6/FWrxq/Dm/Z0rkQE+gut1Ta6+Fkk+G+ObTB+g1ru2sHzggMywSt25YwwJanlIm8LiIcJLkkizKKsDdb2Kk6KopzPcfk0MiLM0ploSvYxHUr5vgs/9ixtjao3TjvhVPgMZYVWLz4uM0ecBWLM84sxrtFj0vvaCKnCOwmldtGRlVRPpNqMdtppoznV++XLLoq+X60M7zLgH5v0zwFqTDsBT6G+Bxf3M+BvYpgUMLOuWtn3jpTvnYR5kJZQY1wwbbtrTbZiqPt+fah6PC0FfeEW+0x+U21SaG0EVA9e5kB9N+8RCF7Sz2GTPULAdA6q7Hto2DC/2MIpWqlhU+pfg+w86TPVpZx0K1KRivxz+QvZxVirW3AIgwAAAABJRU5ErkJggg==)}.type-icon.chathelp{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfhBAMNBAMDRGxEAAADxElEQVRo3u2YTUhUURTHf29mHHWmdMY3Mo7al1CLCoJqGaUIRUXRJmglEQi5C6NdQav2UVCrIimoVatqIWRIUNIXUhNiUUlZBJnfo+OMvhaO43N89757n7NoMecuxLnv3P+599x7Pv5QkpKUxFnKiAtmwlQ7/m5gUuY44xeuJZRKagUz64kK4KOEHGcCxPDrwYeIYjjORFkv0KmlUrD7GAE9+CAxAXw1YYFOneDwDep1dx+kTuj7iND35YLdJwRb8eD7kHD3kbX53lgBX8EYluPhb6eRzTQQJUyALNOM8pOv/OI1sw4aPkxGyeodfq3DgVXRQQ/jpEiTYR4rP+bJkGaGUZ7SQdUq3/vW6nuTI3TbAN1GN0cwvfo+RGzF/1vo5IMG+NL4QCdbCevuvrLg3Xcy4AF8aXzigm7Qtfs+Qt8awJdGn+DJOoo9TrcwXQR4C4tpWlZsUklOFw1+0YTT+RtmqsC3kS4ivIVFmjaHGyaQ/UpLZrjJYZpo4ihdZBQ0WqlWgW9gzHWpGe4WXK1N9LpqTdDoDh/ggcJekgXRblHTPVTdd0/HraQUDMhyCYB9nOOk7ezc9FK0yuHLuaN4qeY4y3ssFrAYpBww2MBjV707gnSdjwPebv9lII6fawqvQVIT+mgm6KlsXUcFI1jCIs2e6Jpl012e9p9ld+55DSl83SUzIOnJgBM57VNKXydlBkxqg//mWE53J3NKGpMyAxY04Ufy8Af4rqgzLzNgStOAi/noMaKsIz2Bj5oJZlESWieXlD3DV1qP713u7xWtqu+NzIBHWgZM5KtGHXkk6wviDMlD5QoZ5y0BsuxxSE0imWMjv2W54HaRCxHNXKBXCU7Rz3v6NTRcsyH4uae83HOC1BDkhbLGA5X2PMEfxeV6chq9it+P0SCH9gEGE1xXvFAG4C9oamVynGG3csygmnS+hHaTbdygjAzblG5/O73un5kYnFGqcL32Ba6tWUirC/bSGcXditKJIsPbe0ODWnlrVsaNgsw1yOc1gA/QWUDfVcpvdSNfchYO8ZI+PvGLKQ5xhl3adWKSWzzkq+2XGClScqWrWDzjPDuIEcIgnqMXajjIE08MiZ2+Uyh4W2x8ho/6ghceop1u/jIj4IhSjNOziiNa8n1QLbAsx4QoIyw4Jqy9JGgigUkYf44lG+YbP/jIuOO6EWaZ0fGfmFQNCfmOsIAjFFO3kpNICGjFckxB4I1IqFvNZse/yvfLj7ROm7aP6cKLSdVi0vaefF882l7aHfsFh29q0/ZxVT6sJCUpyX8k/wALscSVmxSJXQAAAABJRU5ErkJggg==)}.type-icon.togetherjs{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QQDDQo2y3SF6QAABvFJREFUeNrtWn2MVNUV/51773sz82ZnZr8Bu8BqSVSobdKCNSmR1BYhJFX7R8UgmwJW2sQQ4xaotYltGhutUvpBIJQEkQjIEmuaSLtUA21obWpLibRrjUUoirjuLvs5n++9+9E/EKOU3Sz3bk2Tvt9fM2/ePfec3zvn3HPOGyBBggQJEiRIkCBBggQJEvz/ga50wY5H1wbTgqgu58VeICLOYUBkECmBqvbUWORH75TTY/d9Z1s4nozVP9iWirJNeeln/ZiluOICZAwIGp4MlYgrsV8ZLj317bWV/xkCntn0tfltdaUbpMJSIrrZY3q6zxQYDECAMgyxZog0e4ugX1TgfzhbzP911be2//2ijFU/fPKGcm7aZxTYQgaz2DAxSzEBTQxkAIIG0wpMx+8ag6Pg/FBQ7O95ekPHXz5yAroe76DlG582P/3+fbM/0TS8KSviz3EyMwRpAICZQKABIA2D0nRGSX3o8PmZz59ovvVLRvhLDWPtmvgH7hxfLTIKzKheIcOX8oOn1+98eN2bd27aRwfWrzAfiQd0/WjNY9fkxh7gpH0b4Qwar/FPmX+03iZPD1XFWKiILBVlRkfZUu+P93auePC/7gG7H7un8LFcravRry6xE2oQw8NLmWUIr7oJPkIQCK8PVNA7FsLl8aWj4m/84sDyPQ+uHp0KAvilF3Y+em/Tx+tLz+a9aDFZGa9RRh3+WP8VmOmfBDfx+yHTWueDEWG0Jq1JUNyfY/zMjQsW3vyrE4efr7oSwC69MKdQ6s6K6BayVDFCCscKt8E0zgG0/LDy2qCtkEJ7Qwa2oWBAiET6lnJh1qGp8IAPEdC9peNI3gsXkHU8GfSkbkLUPA8TETi7IYXGwHOK3MgL5t+15ZdHpoyAX2xeff+0dHmRsRakcZ5ace6qZRBGTnivNsC86QF8zhzygUEl3bDo7s1d9zsTsPuJtW0zgvK9lwuJyUJrg5dbV6KOTS7JcSJc15qBNk4nGqsEjWtXbdo904mAWUFxicfUPFshwsR4Jb0QmWweZpIGaQM0ZDw0Bx60AweaibmlTPOt1gQ8u3lNXoE6BdlrIUEIG6+zWttWSE1QEE0iEIgDMJ13b34mb0VA3gvrcyKeaxwS35v8WhRFq9X6wOfI+twhCgykyMyNvGy9FQHlWKxMcemQjw1UpgHaC6zW+5xQl+JOxZHiHoSsrbQiIOPpL7tsHhuBqmgEZ3aHJ2eEwOPWdcHFKkt7qTvsCOBxO4z99hGlMMBnwOVASwsG5sAAAVDMv9qKgLSQeRcP0CRQ5QWnROZxAhE55gHfLgkKMp6b9xEME27VGJFbCFw4DazsYMZAOxfUZsracxcdrOxg0jDpsi9Bg73X8blUka4UMqOs7GChFiPksD03MerksM148X2ESjuWxASu4xErAkrSO+kSgCmEaNHvQDsIqUntVA4bAELWTloRUItpv0sCYtAQ0RiUskslUhlUIsc0RADF0X4r/VszYVdVuvXm6Vo/RFy0dv9SqJxOAaEiREF9lxUBZyvZalmJIy4Tmln6FIKoz2p9MVSoxMrJAXhc/W2m1G81HmMrvrmzrA3tiDRzcAKGlsE/Wy19a7gG5lAEMS3BoXfsWd9Rtp4HHDvfclAZdtS6GYHAtbIHpeE+EE2OSEaE3rEQpUjBpQgko39fGDx10Gkg8tD3flL+V7GwTRuqWZPAfCwZ2olSPKmchZpUOHne7emTMbVcsXfrju92lqzD5+KH5148/urtixdMy4r4s7Y6CVIw5SEM5+aOaxgBkMagp7eCUGkX4xHUhrbv7bzrCaf88cEv+7pPdC9f+umWFFM32pFAaNT9GI59VLMzL9vhGQBvDFYxWIld3B6puLK1a93t61wr6P8I2NOj2Q2jUWqrtmyRGQzml19Aqu8YcEmTxInwz4EKescipyfvR+WtmdG3N0xFCzGuld1bOra3pCprmGW36JsQR70votT2eXBGUNrg1b4yBivSuvcnY+JMOPLk/nV3fGOqeqhxh3F7u/92cNGihW8X/GimAc3gVzg0VSRwtT4FGjmrTlP7mZ7+Wn40MszGeHbhLfHxXPHcw/seWP7IVDaRE04jn3vh+CvXz//CgUIqPhNp3sIJbYJdqPrpMg5EMBd+I6CmPIzJzOF6NbDxzBtnf3Yu3f47X0XNBFyjuABAuPwU4D0pRBBawosrLwsVPtLU//rGXQ99/U9T3UVfwR8k7qmfnavk+iveqpQwdwZCzklzmRbQMARIzVHTolyV4rVIYVcg1K/frdQNdWz8+dhFGV99/Kl8NWhqZLK2DFysViJ9vWReVjMBGIBBgau4xmXtFMnogAwadqWLfcU961eOIEGCBAkSJEiQIEGCBAkSJEgwVfg3+LzfuLeHV2MAAAAASUVORK5CYII=)}div.feedback{position:absolute;bottom:3px;left:0;right:3px;padding:0 10px 3px;z-index:1000;border:1px solid #888;border-radius:5px;background-color:#cff;box-shadow:3px 3px 5px #888}div.feedback.warning{background-color:#fdd}.modal-header .glyphicon-warning-sign{color:#fa0;font-size:150%}.modal-header .warning{color:red}div.btn-group.diff{margin-top:1em}div.btn-transparent button.dropdown-toggle{background:none repeat scroll 0 0 transparent;border:0 none;cursor:pointer;padding:0;color:#000;float:right;font-size:16px;font-weight:700;line-height:1;opacity:.2}div.btn-transparent>button:hover{opacity:.8}::-ms-clear{display:none}.form-control-clear{z-index:10;pointer-events:auto;cursor:pointer}#login.login>.logout{display:none}#login.logout>.login{display:none}#login.logout>.logout{color:green}#login .value{margin-left:5px}iframe.login{width:90%;margin:0 auto;display:block;height:30ex}button.login-cont{margin:2ex auto 2ex;display:block}img.login-with,img.profile-picture{width:24px;height:24px}div.user-menu.btn-transparent button.dropdown-toggle{opacity:1}div.notification{display:inline-block;position:absolute;min-width:10em;background:#cff;padding:5px 1em;display:none;z-index:1000}a.dropdown-toggle.avatar{padding:0;margin-left:2px}img.avatar{width:24px;margin-top:4px;margin-bottom:4px}img.avatar:hover{width:32px;margin-top:0;margin-bottom:0}div.user-count{clear:both;text-align:center;color:#888;font-style:italic;font-size:75%;display:none}li.myself{border-bottom:3px solid green}li.user.lost{opacity:.2}.navbar-nav>li>a.broadcast-bell{padding:15px 5px 9px}#broadcast-bell{display:inline-block;height:30px;width:26px}#broadcast-bell .glyphicon{font-size:200%}.notify-arrow{background:#cff;border:1px solid #888;border-radius:5px;box-shadow:6px 6px 3px #aaa}.notify-arrow:after,.notify-arrow:before{bottom:100%;right:12px;border:solid transparent;content:" ";height:0;width:0;position:absolute}.notify-arrow:after{border-color:rgba(192,255,255,0);border-bottom-color:#cff;border-width:14px;margin-left:-14px}.notify-arrow:before{border-color:rgba(128,128,128,0);border-bottom-color:#888;border-width:15px;margin-left:-15px}div.chatroom{width:100%;height:100%;position:relative;overflow:hidden;display:table}div.chatroom span.glyphicon.menu{position:absolute;font-size:1.5em;top:5px;right:5px;opacity:.2}div.chatroom span.glyphicon.menu:hover{opacity:.8}div.chat-conversation{width:100%;display:table-row;height:100%}div.chat-outer-wrapper{display:table-cell;height:100%}div.chat-inner-wrapper{height:100%;position:relative;overflow:auto}div.chat-content-wrapper{position:absolute;top:0;bottom:0;left:0;right:0}table.chat-input{width:100%}td.chat-send{text-align:right;white-space:nowrap;vertical-align:middle;padding:5px}td.chat-send>div{display:flex}td.chat-text{width:100%;padding:0 5px}table.chat-input textarea{resize:vertical;box-sizing:border-box;width:100%;border:1px solid #888;border-radius:5px}div.chatroom div.chat-message{position:relative;font-size:90%;margin-right:10%;margin-left:5px;margin-bottom:1ex;background-color:#eee;border:1px solid #ccc;border-radius:5px;padding:3px 5px}div.chatroom div.chat-message.self{margin-right:5px;margin-left:10%}div.chat-message img.avatar{position:absolute;margin-top:0;top:0;right:0;border-radius:5px;width:24px}span.chat-sender{font-weight:700;color:#4888be}span.chat-time{font-family:italic;color:#4888be}span.chat-sender::after{content:": "}span.commit-message{color:#060}span.no-commit-message{font-size:80%;color:#f80}.chat-message .tooltip{z-index:5000;position:fixed}.chat-message .tooltip-inner{background:#ffd;padding:5px 5px;border:1px solid #888;border-radius:5px}.chat-message .tooltip-inner pre.cm-s-prolog{padding:0 5px;background:0 0;border:0;margin:0}.chat-bell{position:relative;vertical-align:middle;height:30px;width:22px}.chat-bell .glyphicon,span.chat-bell-count{position:absolute;display:block;top:0;left:0;width:100%;height:100%;text-align:center;line-height:30px}.chat-bell .glyphicon{font-size:140%}.chat-bell .glyphicon{color:#888}.chat-bell.chat-alert .glyphicon{color:red}span.chat-bell-count{font-size:80%;font-weight:700;color:#fff;z-index:10}.flash{animation:flash 2s ease-out 1;-webkit-animation:flash 2s ease-out 1}@-webkit-keyframes flash{from{background-color:#ffa}to{background-color:#fff}}@keyframes flash{from{background-color:#ffa}to{background-color:#fff}}div.sourcelist{margin:auto;width:90%}div.sourcelist span.dropdown-icon{margin-left:5px}div.search-footer>button>label{margin-left:5px;margin-right:5px}div.search-footer{text-align:center}div.sourcelist div.search-results{margin-top:1em;position:relative;min-height:150px}div.search-no-results{display:none;position:absolute;top:0;left:0;width:100%}div.loading{display:none;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.5;background-image:url(../icons/loading.gif);background-size:64px;background-repeat:no-repeat;background-position:50% 100px}span.no-search-results-warning{background:#fee;color:#b44}a.pengine-logo{position:absolute;top:4px;left:4px;width:42px;height:42px;background-image:url(../icons/logo.png);background-size:100%}.splitter_panel .hsplitter,.splitter_panel .vsplitter{z-index:100;border:2px outset #ccc}.splitter_panel .vsplitter{width:3px}.splitter_panel .hsplitter{height:3px}.splitter_panel .bottom_panel,.splitter_panel .hsplitter,.splitter_panel .left_panel,.splitter_panel .right_panel,.splitter_panel .top_panel,.splitter_panel .vsplitter{overflow:visible}body .modal-dialog{width:80%;max-width:800px;margin-left:auto;margin-right:auto}body .modal-dialog.modal-wide{width:90%;max-width:none}body .modal-dialog.swish-embedded-manual{width:90%;max-width:1000px}body .modal-dialog.swish-embedded-manual div.modal-body{padding:0}iframe.swish-embedded-manual{width:100%;border:0}
\ No newline at end of file
+ *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}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}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!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^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot);src:url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff) format('woff'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.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"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:transparent}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .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}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}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}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;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}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.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-md-1,.col-md-10,.col-md-11,.col-md-12,.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-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.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-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.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}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top: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;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{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;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.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:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.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{content:"";border-top:0;border-bottom:4px dashed}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.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{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-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-top-left-radius:0;border-bottom-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:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.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,.125);box-shadow:inset 0 3px 5px rgba(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,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.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-left-radius:4px;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-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;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:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,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}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,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 .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn: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:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;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=checkbox],.input-group-addon input[type=radio]{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>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.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:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.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 #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;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:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.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:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.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:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{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-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{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;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .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;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.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;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{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}}.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,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.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;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@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-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.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:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.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.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-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:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-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;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-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 li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.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:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 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,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-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-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.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:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.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:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.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,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(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:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.in{opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.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}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;opacity:0;line-break:auto}.tooltip.in{opacity:.9}.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:#fff;text-align:center;background-color:#000;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-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.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;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{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.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:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.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:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row: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}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}.tm-tag{color:#555;background-color:#f5f5f5;border:#bbb 1px solid;box-shadow:0 1px 1px rgba(0,0,0,.075) inset;display:inline-block;border-radius:3px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px;margin:0 5px 5px 0;padding:4px;text-decoration:none;transition:border .2s linear 0s,box-shadow .2s linear 0s;-moz-transition:border .2s linear 0s,box-shadow .2s linear 0s;-webkit-transition:border .2s linear 0s,box-shadow .2s linear 0s;vertical-align:middle}.tm-tag .tm-tag-remove{color:#000;font-weight:700;margin-left:4px;opacity:.2}.tm-tag .tm-tag-remove:hover{color:#000;text-decoration:none;opacity:.4}.tm-tag.tm-tag-warning{color:#945203;background-color:#f2c889;border-color:#f0a12f}.tm-tag.tm-tag-error{color:#84212e;background-color:#e69ca6;border-color:#d24a5d}.tm-tag.tm-tag-success{color:#638421;background-color:#cde69c;border-color:#a5d24a}.tm-tag.tm-tag-info{color:#4594b5;background-color:#c5eefa;border-color:#5dc8f7}.tm-tag.tm-tag-inverse{color:#ccc;background-color:#555;border-color:#333;box-shadow:0 1px 1px rgba(0,0,0,.2) inset}.tm-tag.tm-tag-inverse .tm-tag-remove{color:#fff}.tm-tag.tm-tag-large{font-size:16.25px;border-radius:4px;padding:11px 7px}.tm-tag.tm-tag-small{font-size:11.049999999999999px;border-radius:3px;padding:2px 4px}.tm-tag.tm-tag-mini{font-size:9.75px;border-radius:2px;padding:0 2px}.tm-tag.tm-tag-plain{color:#333;box-shadow:none;background:0 0;border:none}.tm-tag.tm-tag-disabled{color:#aaa;background-color:#e6e6e6;border-color:#ccc;box-shadow:none}.tm-tag.tm-tag-disabled .tm-tag-remove{display:none}input[type=text].tm-input{margin-bottom:5px;vertical-align:middle!important}.control-group.tm-group{margin-bottom:5px}.form-horizontal .control-group.tm-group{margin-bottom:15px}.c3 svg{font:10px sans-serif;-webkit-tap-highlight-color:transparent}.c3 line,.c3 path{fill:none;stroke:#000}.c3 text{-webkit-user-select:none;-moz-user-select:none;user-select:none}.c3-bars path,.c3-event-rect,.c3-legend-item-tile,.c3-xgrid-focus,.c3-ygrid{shape-rendering:crispEdges}.c3-chart-arc path{stroke:#fff}.c3-chart-arc rect{stroke:#fff;stroke-width:1}.c3-chart-arc text{fill:#fff;font-size:13px}.c3-grid line{stroke:#aaa}.c3-grid text{fill:#aaa}.c3-xgrid,.c3-ygrid{stroke-dasharray:3 3}.c3-text.c3-empty{fill:grey;font-size:2em}.c3-line{stroke-width:1px}.c3-circle._expanded_{stroke-width:1px;stroke:#fff}.c3-selected-circle{fill:#fff;stroke-width:2px}.c3-bar{stroke-width:0}.c3-bar._expanded_{fill-opacity:1;fill-opacity:.75}.c3-target.c3-focused{opacity:1}.c3-target.c3-focused path.c3-line,.c3-target.c3-focused path.c3-step{stroke-width:2px}.c3-target.c3-defocused{opacity:.3!important}.c3-region{fill:#4682b4;fill-opacity:.1}.c3-brush .extent{fill-opacity:.1}.c3-legend-item{font-size:12px}.c3-legend-item-hidden{opacity:.15}.c3-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.c3-title{font:14px sans-serif}.c3-tooltip-container{z-index:10}.c3-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;-webkit-box-shadow:7px 7px 12px -9px #777;-moz-box-shadow:7px 7px 12px -9px #777;box-shadow:7px 7px 12px -9px #777;opacity:.9}.c3-tooltip tr{border:1px solid #ccc}.c3-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.c3-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.c3-tooltip td>span{display:inline-block;width:10px;height:10px;margin-right:6px}.c3-tooltip td.value{text-align:right}.c3-area{stroke-width:0;opacity:.2}.c3-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}.c3-chart-arcs .c3-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.c3-chart-arcs .c3-chart-arcs-gauge-unit{fill:#000;font-size:16px}.c3-chart-arcs .c3-chart-arcs-gauge-max{fill:#777}.c3-chart-arcs .c3-chart-arcs-gauge-min{fill:#777}.c3-chart-arc .c3-gauge-value{fill:#000}.c3-chart-arc.c3-target g path{opacity:1}.c3-chart-arc.c3-target.c3-focused g path{opacity:1}span.twitter-typeahead .tt-menu{min-width:250px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;text-align:left;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}span.twitter-typeahead .tt-suggestion>p{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}span.twitter-typeahead .tt-suggestion:focus,span.twitter-typeahead .tt-suggestion:hover{text-decoration:none;outline:0;background-color:#e8e8e8}span.twitter-typeahead .tt-suggestion.tt-cursor{background-color:#f8f8f8}span.twitter-typeahead{width:100%;height:30px}.tt-suggestion{max-width:25em;overflow:hidden}.tt-suggestion .tt-label{padding-left:1.5em}.tt-file-header,.tt-suggestion.tt-match.file{background-size:1em;background-repeat:no-repeat;background-position:5px 5px}.tt-match.predicate.built_in .tt-label{color:#00f}.tt-suggestion .tt-title{color:#555;white-space:nowrap;overflow:hidden;font-style:italic;font-size:80%}.tt-suggestion .tt-tags{max-width:100px;float:right;margin-right:2px}.tt-suggestion .tt-tag{max-width:30px;border:1px solid #ddd;padding:0 4px;margin-left:2px;border-radius:5px;background-color:#e1edff}.tt-suggestion .tt-line{white-space:nowrap}.tt-suggestion .tt-lineno{display:inline-block;width:40px;min-width:20px;font-family:monospace;color:#999;background-color:#eee;border-right:1px solid #ddd;padding:0 3px 0 5px;text-align:right}.tt-suggestion .tt-text{padding-left:5px;white-space:nowrap}div.tt-file-header{padding-left:5em;background-color:#ddd;color:#000}span.tt-path-file{font-weight:700}div.tt-match.source{overflow:hidden}table.diff{width:100%;border-collapse:collapse;border:1px solid #a9a9a9;white-space:pre-wrap}table.diff tbody{font-family:Courier,monospace}table.diff tbody th{font-family:verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;background:#eed;font-size:11px;font-weight:400;border:1px solid #bbc;color:#886;padding:.3em .5em .1em 2em;text-align:right;vertical-align:top}table.diff thead{border-bottom:1px solid #bbc;background:#efefef;font-family:Verdana}table.diff thead th.texttitle{text-align:left}table.diff tbody td{padding:0;vertical-align:top}table.diff .empty{background-color:#ddd}table.diff .replace{background-color:#fd8}table.diff .delete{background-color:#e99}table.diff .skip{background-color:#efefef;border:1px solid #aaa;border-right:1px solid #bbc}table.diff .insert{background-color:#9e9}table.diff th.author{text-align:right;border-top:1px solid #bbc;background:#efefef}.notebook{position:relative;width:100%;height:100%}.nb-toolbar{padding-left:20px}.nb-content,.nb-toolbar{width:100%}.notebook.hamburger .nb-toolbar{display:none}.nb-toolbar{position:absolute;padding-top:5px;padding-bottom:5px;margin-bottom:1em;border-bottom:1px solid #ddd}.nb-toolbar .action-fullscreen{right:5px;position:absolute}div.notebook-menu{display:none}.notebook.hamburger div.notebook-menu{display:block;position:absolute;top:3px;right:1em;z-index:2000}.notebook.hamburger .nb-view{top:0;height:100%}.nb-view{position:absolute;top:40px;height:calc(100% - 40px);width:100%;overflow-y:auto}.nb-content{position:relative;width:100%}.nb-bottom{width:100%;height:30%}.dropdown.cell-type{display:inline}.nb-cell.markdown:not(.runnable){background-color:transparent;border:0}.nb-cell.html:not(.runnable){background-color:transparent;border:0}.nb-cell{margin-left:20px;margin-right:10px;box-sizing:border-box}.nb-cell:focus{outline:0}.nb-type-select{padding:1em 0 1em 0}.nb-type-select>label{margin-left:1em;margin-right:1em;position:relative;top:.1em}.nb-type-more{padding-bottom:1em;padding-left:1em}.nb-type-more label{margin-right:1em;position:relative;top:.1em}.nb-type-more input{display:inline}.nb-cell .close-select{font-size:150%;padding:0 5px;border:0;color:#888;background-color:transparent;float:right}.nb-cell.active{margin-left:8px;border-left:7px solid green!important;padding-left:5px}.nb-cell.html.active>div.editor,.nb-cell.markdown.active>div.editor{border:1px dotted #888;border-radius:5px;margin-bottom:5px;margin-right:52px}.nb-cell.singleline div.editor{height:2em}.nb-cell.singleline .CodeMirror-hscrollbar{height:0}.nb-cell .CodeMirror-scroll{max-height:40em}.nb-cell .CodeMirror{border-radius:5px}.nb-cell .nb-cell-buttons{display:inline-block;float:right}.nb-cell span.glyphicon-cloud{color:#000}.nb-cell.background span.glyphicon-cloud{color:#fff}.nb-cell>.with-buttons{background-color:#eee;border:1px solid #ccc;border-radius:5px;width:calc(100% - 50px)}.nb-cell .nb-query-menu{display:inline;float:left}.nb-query-menu button{background:0 0;padding:3px 5px 0 5px;border:0;color:#888}.nb-query-menu button:hover{color:#000}.nb-cell .prolog-prompt{float:left;padding-right:.3em;padding-top:.25em;font-weight:700;text-align:right}.nb-cell .editor.query{margin-left:44px}.nb-cell.program,.nb-cell.query{margin-bottom:1em}.nb-cell.not-for-query{opacity:.5}.nb-placeholder{opacity:.5;width:90%;margin:auto;margin-top:1ex}.nb-cell.markdown pre.code{width:90%;margin:auto;margin-bottom:1em}.nb-cell.markdown dl.termlist{margin-left:5%}.nb-cell.markdown dl.termlist dd{margin-left:2em}.nb-cell.markdown .predicates dd{margin-left:2em;margin-bottom:1ex}.nb-cell.markdown .predicates .pred-tag{float:right}a.btn-image{padding:1px 2px}.nb-cell.program span.image-icon{display:inline-block;width:18px;height:16px;padding:0;background-repeat:no-repeat;background-size:100% 100%;vertical-align:middle;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAMAAAC8EZcfAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAzUExURf39/dXS0qShoevY2vf09P38/Me0tGNfXzEvLwUBAS0FA14LBJ8TANAdAfklAYp4d////6nIvA0AAAAGdFJOUwD//4heJmPUefMAAAABYktHRBCVsg0sAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AkVCzYIO9WCWAAABddJREFUeNrtXdmS3CAMBHxw2///t0Gy59yxwUYcD1FtqpKqTW1Pi24kkL2M/Y//kRSc8zmECH/CX3vDJoSQUqo9pByEmDtByWfAppT+igBz6AAkF8P4wmbClzHvKANI3pK8QW7oAixrrXuFtQ+gSopGNAJ5GzqA5r1fXhH+5QPKHaRqQSPng9rQBXDL7wCQG0Y1zHUh6vkJ7wjdE6O1O8Sa9A0SiLHWn8PbQe4Q6+V5y65xLgXeRiMmWgpdA57C9BqbiO7BIkBUK68hXqDPukv4QjhbJ818p+8qvkAi5lny0vhw9V2H9yRRFlUzB/Vat9wMj2meS+KD5eeX5T5CUxLhhs8tOVESIR9MHn9PDssoBfWbiw84LKVl8D/jloUEoaDHNwM+T4Bv07IoIRAS/sAPQSi8QIKdX+gQDhM5PkuFr8AypEwwLkPqJINCCPGFJAcKB9oSgTDBe5IJKRQXCPT4Ff82sOvaBGKrid1xQrlISWFYgQkK8c8+OPTx8YobdEK0CieRQKDHavQVJlr10FEIHhMj5AveBtFHV6GgkkhsE3ZG68sIgcKJiMDIj/qJL1p8gxdS5HgeYx5zhC+CkEomIqZhb/Vh2LP/aGisUKSk6ihOP5oj0XFUw96cADylkEbH0SVo9Wm4848mii/BcwLPKbQUizAAPF2C7hyfNhEnLL7PRTJ8mmMKlWAls5QDmG3V0X3EZACkkDGP1Ko+h0EKGfMxso9EAdpz+nMBRtulHAYXgt04uhO3BjjnAjS+OMDzFLvYTuIbM+jv78U0Ko62xO5+hoHBNZdBGQN4TqEt3TcltHTu7gpEgDPFXhzr6e4V1ERt0xoHeJxkF/1k+TV/Qld8hDB6ZUZSsCYdzGy3rdfyu7kMAUCZcvTm/559xG9EaXqS1LM39wHRpFwo07SdTJjE+5FtEAVHaNKmBShakuTTwdcRpveJt91URx9Y9C8FwlGdvwmqO7CjE0ytS9cLt+9KVgoCS1xCbBk2VPMLKZvJLQKpbsOKyCRIxHCqSSShSG/qdgKNZIqKwoGcwrACjRjp7sI0MYWE1zhPpyEVMqzAeSREKGi9cFuBlHfuCZclF2cCaAkknlnwhvAu9n0owJPtwkZxaoQ4VkG3Aukne8ALyQZ7jBQTPUIqq4HZ6gKjUejWFDqBHlUVmQfmI0mSA4FGKFaEQgqdYJ06lgFIMX/k0WJGVibmfJ2AQlZWLLJnzHAPmadiAMEMlctJcPDooqPemUmGImFlRWNQtwfRdwvkqijALCUHBZviz71kJDkoWM1jaYB6uEuhDw6jajxQcrcyxEaOVYibZogWXeWxpknoGx0UWKCq9GQYdlCu1wTfLGvAomXF59auKhktuuKjf5eV7Ir0SZHy314sYqo+3Xltx6up4Fs9XoUiJussBBvhglVqtk5Cgu3MqkdyWYMJnuoDZKlm2EAhr0Y+gcLqFviKNeXYFapA2ehVBkk6wdNo1ijmuNXA5JTUrQCq+JkhnHQ0I3C3mhiBK2sYkRueoJCmBEavJ+AssCmBEQqhTJWNX+hy6tYNPfrNrc2hW+OFV3OAJ4UhXnix5nHYJeMmp9oDPBRyIFAJxrqlEFbg0AO+IwoDgbaT12/99EL0QNUHQP5rR4ZNZGasHwr9n0LfyG5esPaDwk488K3s+qLQGi07ekMdV+bTacCk0wmsUHFL8+k0LvW8XNdpmDUMurqrJl2vVdGYY3vBY+q3Uev7rPBpoap1Ix2bV479UaWvGwr5XSY/T2N0Y6d5l8n3QwStsW1WaJ9F10cr0gW4R47NE+AmkX7AoUweOfalJouy69Z9u+ui2TzKsd8l0kud8LHI9nlwcOmhRwIfVSHFs2iF2BT4yL1VelxZnxQG7nzIsBK6T4B4IgxHlpx1GngTr6uMdqTGZz0MR9admYz+k2NNPyJ9E9v022j6MJkjlQ740t9uNbIddHXVD//M8cA6Byg6BghO2PMSRJX0DTCUXHLqGSDr7rcuVIh/P/O/AARSDtsAAAAASUVORK5CYII=)}.nb-cell.program.background span.image-icon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AkUDTkUFH3ZDwAABydJREFUaN7tmWuMVdUVx38zMjgMMIioW54iUsaKSI3FJ5vWx0SMlmhVGhuIMdE2VasmRrObRkinsd1RU2kbDdSmEfGF+KhK0mBBhQ02PqZVqYIoIDMoblAcxlauysztB/+nObm95z5mbtsPzkpu9j1nr7PPWnuv9V+PAwM0QF9tqqvFIsaHEcAxwOnALOAEYAIwRCw5oBPYCKwF1gPvRmf3/l8VMD6MBO4GzgOGAQdV+Ggv0A08B1wRnd33P1XA+DAa+ClwjW71ABuADmCe7r0InAL8E3gW+A5wAHhQpzMLqBfv7wAfnd1erSz1fRD+MuD9lPC/BQ4Bzges7m2QgAD10dk5wGpgEHAJMBs4GPiVeH4AvGV8mPtfVcD48AftIMA9wPjo7HXR2X8AjwFHAe3R2ZkS8N8UnW0FVgFNwOro7IHo7I3AaGAx0AAsNz7cX3MTMj4cLDM4XfZ7YXT26dT8z4AFwKfA8Ohsr/FhGPAJsD862yS+ZmCzhL45Ont7ao0ZwBpguJx9enQ2X6sTWCPh9wBfKxD+UMABXwA2OtubtUh0thv4li5vk9DJ3MvAccAWYBqwriYmZHy4BzhDuzsuOrutgOUZYDDwQHT2r+XWi86+DdysS18w/R4wA9gHzDQ+PNIvBYwPFwFX6vIg4JcF8+cDJwG7orNXVGG6v1FsOMv4cFZKuTxwA9CoW5caH+b1yQeMD4cDu3W5AviulNipHXxajtsKXB6dXVbw/H/4QJHNeVyINlXrLALGiGU1cI4UHRmdzVV7AjdpXBadnQtMBN4AxgEPSLlW2f5D1cJfdPYJOesYYBewXP+3Cd1agUd1GiurOgHjQyOwX5eTo7NbU3MXAD8Slicb8I6w/1X93wl8BrypHRwPjNVvMjBdftWSCoRrgMVSLHnXYAFHI3BssUCXpcDdEvL+6Oz8DFjdK6zP6QX1VUT2vOA4BwwFuqOzIzJkWaJAtzA621bWhIwPTUASEa/PEOB4IU97dHaYri8CbpEpvAjsSAm7HXhJvrRAvCfo2feAZuPDNzLetUjjT4pNDipy72igGWgHPs5YdKqe3SB73qwA9WRqI+plGrno7KQSp7EEaFMO9WoRX9lkfOgAJhgfZkZn15dz4ukK6y+XiIRnaCyF+00VmtNyja0leH6tcW4lKDRT4wslFkyOe3MNyolOIdlI+VYxekrjyZUoME3jxhIvnaxxRw0U6AU+FBBknVqXULG5LAoZH95VVjktwwe69UN5fVbuMxR4S0gzNlWdFVKDEsVRypP2FOFpVhXXHZ09upwTN1dwAgl1VMDTCHxU4Wn8rcz84EpQKG2b+Ywjn5gyoboSedY4rdFRgq8OOFKy7FLVVmyt0UK1sgp8DIwEpkZnP8kILnlB3MQSudQgOWeuFJ94N0nAqdHZrozA2ancqqwTJ47ZUuKdXVp4VBnTqbRYapayWbnZcPHsr0SB11PxIIu2pZy4v1QPHCZn/zSD53ClLV2VKPB8QbAqRknEPLYGCoyRc3ZnpczApRrXV6LAJmWSM4wPWY6XBLkTM8xiKGASJzU+jFB9UIwuTpWtWZR0QB6qxIm3C+ePB44AYhGejUKE0yTweOUycxSl05lpo7A9b3zo0bMrgaXR2Q5lvWTVFMaHUyXHh9HZ18qeQHT2c7VMAJZl7Mjf5XSnGB86BZO/AE6VwL2pgNQLfCCFhygdaAN2GB/eTyA5OvuXMrvfVm1J2SMFT0qKdUHjBcDSVMDLS9gVKjHXRWd7hC65grZKnZpfFwPfBw5NbeJnwGXAk0lnQ6l9F/A58PXobGc1gewW4Fbt7Gx15Bam4LVdBX0OGBudPVAkRSg83bzaJeuA64X/LargxqtG3mp8aIvO3ie/aFDHo7PamvguBY5zjQ9r1ZFrEYS2Rme/KUEaVaBU26K0QrG90dkJQr03gUnAUuPDDpnkvlIdj/oSRfe+VGo9S/nMbGBKdHZ1qi9aB9xZpfANwB91OV/ve0Ft+VaVq0mMmdfnvlB09nXg56nCe0t0tic1/6iK+LHGB1+FDlfJ/l+Kzv4ptV4PsDWVgy2Ozq7sV2cuOrsAuFdQ9prxoaVIdZYHbjA+TKpg90fJPEl16JK5KWotjgIeAa6uRWuxTja4VDnJZuPDNSkFdwN3KNQ/o1ZIqbznlaRYj86uTc1dpQqvAVgenf1eJc3duipt9ybgNl1uAb4NfBCdzRsf3lBzdj1wppy7sDv9mDp87cDJ6mI38+Vnp6RMvSs6e21N2+sFSpwJ/F5o0asW4xLgz/KHoxQT5gnbc9HZIcaHZbq3G5iigPbDVCqxB5gfnV1V8+8DGYoskjM2pSLuKr78XpbkNmcrEK0QL7LtOal0uxu4Lzr7477I0d+PfIcJ9haWqR+K0dsKkquis7v6KkNNPrNKmSOVCpyt6qopFY2/UDESdTIPR2d3MkADNED9pn8BvSyBlToydnoAAAAASUVORK5CYII=)}span.menu-space{width:2ex;display:inline-block}.type-icon.pl{background-image:url(../icons/pl.png)}.type-icon.swinb{background-image:url(../icons/swinb.png)}.type-icon.select{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAEUUExURTAwMDQ0NDQ0NHFxcX9/f7Gxsc/Pz+np6ebm5vf39/b29tra2pCQkN3d3NLS0p6entnZ2cDAwEJCQuvr6+Xl5dnZ2fT09F9fX93d3ZqamtjY2K2trbe3t8fHx8nOw/Dv7rjDqKS8iJ63gZO4Zoe4Sn23OIq4U6y9lr7GsqnBiXi7Jn7CKpLKSp7QY53FaabUbZfLVs7SyKrLeYvHQoK/OMTKuazZc6PaWZzUVojLM4PHLbO/pI3SNqC+erHedrnWh7bGmeHi29TXycHLprDda8TZmqHJZ7zVlM7WttHZubLJieDf25baPLXjeZjXRq3iaJ3iQZvgP6XqR7Hja6zyTafjV8rYqbD2T7P5UrTvX67Clf///2wKwGIAAAAedFJOUwIXJ0JJaqba///pylP+nGHghjHqt6zfOula2HJ5ovRUycgAAAABYktHRFt0vJU0AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkVDAIvILrSQQAABcRJREFUWMPNVwtb2koQJRuoy7ZBkRa5bS9JQQUJyEsegRQfKFUJNMRQrP//h9yZ3U0M9dl+97vfHSBiyDlzZmZ3djcW+3+bEl7+lEBBuKIof4QlMULgShRO81skChriAU2IqvAvyKC8Lm4OJwIej8P/RDK8ToVAK2rizcYGTYKx/Ns3iYDhJQoS4/D4uw0NsUkdX2gbKVXIgMieZ0D8JvcsTTIkk1vpbQzqeTjau40Qq7NMhuk6RQYgfR9/iQAZArhmfCkUd/d294uFUlmTKlLo4akgRPQCT42D3QraHr9W9gtlquPrg/p0IpEgIbyXiyZgq7XaYb1+2Kju7lXMSmELCCjN82Q+Vb13HN4sALpRP6y36oHV2qa5V8hSyIa2EydPlT+hc/f7FbNxj5U0tSPTLHZAg56LPyoB/McZ4o29SkNCu/yD13qv37AGlX0Dw3irkkcSocj8DSsBHoBdQdGwjo4G5lFlMDgaYhQfyEMGKHBK+DdrQjS4bnXBGvZAmIkXqwOJ1CEI5eEAwATk22ZD6u5y61scbA0CK+YoTWrb6xIUnPkoQCsGeGH1xuHXqoUmSPBPgYGGze31GMC/igGUzHY9AI+6xycdjZ2ejUu2JQ0oLMsAAooS1lOIArL7Zk3Cu+fdizMqjHUmtmUP8I0ERQ1u/bWWBRSQhalTMqvSeXc0+pbhI48zXFZtaZaUUFhPIx/DOmuYUv9oNOpe4aChjHGKcYBHiq9w71SNxqAQNQUCymY79D+6xjmcua5NxkgwnTh2KMLOM8rSkTrgJM/rGEFfEIxGs3kZOgBtAczpoJCW7dhOQDIEXYW1QipxEECLplAP9t2+BsbO3AE7QQnX+C3g+AJp+ahEkgDTAAjO2uaxwM9Gjt0v02yLo8b3BJzEtotTRpORQkIREuAvb7Wl/1kPXLk17t+ZX8Fv08nCWYQcjQxlyZ2QAFeQtI45nHOCGQrgDy4ANR9jNcaAdgMJTrUJt3bWFKQhBMPsA/wYCHoc7wKB646xGV72XA++BxqqW1DISBmglXyCHBpWn/ufzeRzruN6mEv97NxFW7gLMPxl65RBHUlkGHyGxwxrLvA3HM0twHuu63mCBSjmHcYym2FfwmaWTlK9Y7UhfCDo8fDhYa83hTmeOffQXHwJgn6W0akatnck2IEQ8m17NhMRoFR0d4GLy8gLTUqYaIwxNRICxAAKMg27yyNwBRwA32CKXiLS9wIVSNGaMtaMNFZs6Dhwv9g9mQJB4HrLS3p17vu+xz9CA7xhKLNCZHlAghSsOoY9R4KlI+Ho+WbpCwOOMIwOnbLNaGvHJQmGa7Pq3CCBKICLwo9/XPj3xkW43iQz5SmIxqCoWYjBaPdns+NlgPd8yIF+sVrdgq38QII3pIxurPU0rEMhSWmHS3AXEu/5l5DEH/cEgmOSg9mcWutISBAHAnbtzGfHtwuZAV8Q3HJbrVYyBkyhrpK1roo7lwJMkGbD+TnzAwGeB+MgeXEbMAgBrSwQpH5ZWbgErORw7nxfLgIC/+bq9OpnlMD3egZjyQz5tatjJd9gC71znCUPAYuAdhsaJ1gaUIHk54drIy7OOZik2oETDEMPa7+6XUVy4HslHMW57Yd4bAqb2MLPDuZumASAAPC+jMvSFPE75NEdI7QVoKdaaR4m0ZcMwr1/jgVgGfWJjRbc/hs0MGZMnEgQnIRfu2XEs7RKntjjqMiAYTTv+nIuhBS+XzeaGihsph/fY/FNNpFRnLL8Xd8L48Dh0z1poncqGhF5Zp8ahw0ErFwsY9zVJ0skWJ4fnJQzXD0bqs/gg3U6RdEVZqvZKRvlcqeJaFCmaWkcss/iuYp4SscxtW56UvvM95gkFnt5v72Zyv1KkEupr0CHIiCb6Y8Ag20Tyh+mdwh5Ifo1EZxEVbYTiU/pdFwoF/DXMUgRJECK0xv5vWMficljX4wQ5c9OjjF5zBLnxn/hCPwfI19t/wAe25dChuNuFgAAAABJRU5ErkJggg==)}.type-icon.lnk{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFr0lEQVR42u1b64sbVRSPIPpBP+t/oEJBcFuzbW1xQdl3ZhLa7G4eXdQiolYUqiAiFAp+8B/oKiiKfhJBlAVFEB8o+MHdbdeanTzXghSkH7pbmskmmUmO5zeP7CubzExmsjOYwGFCMvfe8/vd17nnnBsKefyhTPy+Wm70sera9KSSFy4r+chiPRuR1Ly4oeYERRP+jt/wH97BuyiDsqEgfuj6Mw/XMpOimhcWGNAKP29TKUq0HqUmPxsFkVRI3hD+jt+axjt4F2WMsguoC3X6HrgiTZ1UC8KVZkFY1wDfiDGgGDWL0W2wFgVlUFarg+tCnagbbfirt0Ohe6qZyXGlIHzLvVgzFbYLuJuYhKINtIU20fahgpelqaNqUfiqWRJVQznXge8VtIG20Cbahg59B34rM/KgUpi+1MwLd6CM2gfg+8QkgnWALtCpL+BrhbEjPBd/1Hsh2n/ge9cKY2pAJ+jmKfhqdkpoFISbWoOHDHzfGqFNQeEmdPQEfD0nvNgoRivYpvwGvkUC6wYdoaur4BvS1GtUFBUq+Rf8rt2CdYXO7vS8NM09L6rNAIDfuS5AZ+je25yXJiJcUaUreOwCJePppcCgMr+vRzvuPgYJFWBwttpnxo5oC163OV8USbkepepncaq8myT5YorkN92VCkv5YpL+OT9O2dlTlE2cplsLo6TmxI4kaGsCYwAWe9bdv6MPKJLwS9fV3gBfuTRH5ZlzVE6wJN0XOTlPfz87Tn88cYyWh47REp6PhzUSGl06CBg0LIzJuk3PhoWlrY6HffXTON0F+HPeiMxyJ5mk1RPHaTkcphVDQER25rTlLRKYrC16a5EhnjubVhe9yjtJvae8ImB+njbnErQyPNwCrxFwNEyZ6Al9GlhbFDeBrfPQ/2nkXiUrfGPZ0OHG5TdSh0dAzBoBrVEAbIyx03F2DNuHZds+QARoPgfGBowH934u8p0tMzdIBJijABjbjQI4GnjLqDbsOC8CRgCwAWNbpwr75D6wfcgJGAHmKICbbRf4u6ujD9VzkRu2bf0gEsAYgRWYd1h97HR0csoLIAGmhQjMLQLUrLDg6IwfVAKANWtMAypM3A/3Mzyw/58RwLsBMDN29vKMPwofvBPXdVAJ0LEKt4E9hCiMYy9PQAkw1wFgD3E46nIgCAgzAU+GW7I8ZP0scBABwA4CFh27uvpFQCJBqyPH6drTwy25emqYpMRJ5wSUNAIWYQBJjaJ/CSinmIRX0lRbilDt6h65JjgPsDBmYA9pUVqn/rc+EVC+kKZGVnfA7JPe/IcbISM87XsCVEl0PwLF2AcEBGUKeEIApkAQFkEvCABmJSeu+X4b9IqA1jbod0PIMwJMQ8jvprCXBGimsN8PQ14QYB6GSJp8xPfHYS8I2HUc9rtDxBMCdjpE/O4S82YE7HGJ+dkp6jYBbZ2i2jTIO5gGTghIG3JYBLRzi/clMALQcyzPsbxgfE/3l4COgRFPQ2MJ/Vl5b47qP8eo/muMKu9zTsH89n/9IKBjaExPiXE5OGokTMicOVL7/sx2Kk1JP8vXfjjDyRVJHWTCYwKM4Gj1oOCoq+HxpA5IfitJ1a/P8paDnJ72CRaoo7Z4luS3k9sZJh4QYCk8bjtBYi8BKX1uy6+nqPZFnJRMVAde6JJgxe8oa0zEl3G9vjmjLpcIsJwgYTtFxiQACs8y8JdTtPXJDCmrFoAfRMSfbKN/Hqfyq0a9id4JsJUiYytJCgRc4Eyu59O0dWWW6ksG8F58dUWdiPpylLY+nCH5fJrkl5wT4ChJynKaHM/t6sfc47/FegfejgheI+q/x6j60YxOgJPUWSdpcrYSJYsuA3ep/p4TJQepsoNk6UG6/ODCxODKzODS1ODanLWLk1lhvNnHi5NoC20e+sXJfWeIvyaeanh4dRZ1o43gXZ7OiRu2L09zmcBdng7i9fn/ABQA6Y58F+idAAAAAElFTkSuQmCC)}.type-icon.chat{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfhBAMNASzV4qVYAAADQElEQVRo3u2ZS09TURDHf31iW4G23PJoRI0hPkLqAhM1PgILSPADGNyZuDDi0gSJiSsTXfgJXOrCkBiNqDvCgqiRaGJ8BRoTdCE+8EFAlFKQclxQSkt7T+9pe+rCztn09jH//5mZM3NmChWpyP8uNpP3XQT5mnpyUoUbH1sJY+Bljlk+84F5llhkOakpyBx/cuhyYKTpskTAw2a+J1/voZX9HCBCIOt7M7zhKc8YI4oXwUIOXU78zJBQsYqXQJJYD3eZQORdE9zjZE5dDgycak5xY2ADuomyZAF8bS0RpTvLvmEcqvCNwDaGFKDT1xDb03bfZBpjpsavw84ZZguEFwhm6cUBuDBUd++lBgcDJIqAFwgSDOAmiEvV+EG8vCgSfG29plrd935GSgQvEIzkOLYS4xs4uV5CeIHghtUD6CEA9JUYXiDoswLvIgRENMALBJH8BBoAGNdEYDy5yTzSy7ImAsucwU6dHN7PQ03wAsEozbJ8aAfaaNNY8CPsRMgIODiKTyMBH0dkKdmOh07Nl55OPLKPA8Q1RoBAEJflRDv1VGm2QBX1MgItZbh5tsgIhMpAICQj4C4DAZeMQKwMBBZkBKbLQOCTjMBkGQj8kBH4yDfN8NNyAos80UzgEbMyAnGGNRMYJi4jIBhlSiP8FKOyargqgxorwaC1ejWvCT5GlzVD3dZE4I5VT/mZ0gA/ab05qedQyS+mKxy0OqYJ4QJOs1JS+LPWmnMbgdSV6UrRnfE6/FWrxq/Dm/Z0rkQE+gut1Ta6+Fkk+G+ObTB+g1ru2sHzggMywSt25YwwJanlIm8LiIcJLkkizKKsDdb2Kk6KopzPcfk0MiLM0ploSvYxHUr5vgs/9ixtjao3TjvhVPgMZYVWLz4uM0ecBWLM84sxrtFj0vvaCKnCOwmldtGRlVRPpNqMdtppoznV++XLLoq+X60M7zLgH5v0zwFqTDsBT6G+Bxf3M+BvYpgUMLOuWtn3jpTvnYR5kJZQY1wwbbtrTbZiqPt+fah6PC0FfeEW+0x+U21SaG0EVA9e5kB9N+8RCF7Sz2GTPULAdA6q7Hto2DC/2MIpWqlhU+pfg+w86TPVpZx0K1KRivxz+QvZxVirW3AIgwAAAABJRU5ErkJggg==)}.type-icon.chathelp{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfhBAMNBAMDRGxEAAADxElEQVRo3u2YTUhUURTHf29mHHWmdMY3Mo7al1CLCoJqGaUIRUXRJmglEQi5C6NdQav2UVCrIimoVatqIWRIUNIXUhNiUUlZBJnfo+OMvhaO43N89757n7NoMecuxLnv3P+599x7Pv5QkpKUxFnKiAtmwlQ7/m5gUuY44xeuJZRKagUz64kK4KOEHGcCxPDrwYeIYjjORFkv0KmlUrD7GAE9+CAxAXw1YYFOneDwDep1dx+kTuj7iND35YLdJwRb8eD7kHD3kbX53lgBX8EYluPhb6eRzTQQJUyALNOM8pOv/OI1sw4aPkxGyeodfq3DgVXRQQ/jpEiTYR4rP+bJkGaGUZ7SQdUq3/vW6nuTI3TbAN1GN0cwvfo+RGzF/1vo5IMG+NL4QCdbCevuvrLg3Xcy4AF8aXzigm7Qtfs+Qt8awJdGn+DJOoo9TrcwXQR4C4tpWlZsUklOFw1+0YTT+RtmqsC3kS4ivIVFmjaHGyaQ/UpLZrjJYZpo4ihdZBQ0WqlWgW9gzHWpGe4WXK1N9LpqTdDoDh/ggcJekgXRblHTPVTdd0/HraQUDMhyCYB9nOOk7ezc9FK0yuHLuaN4qeY4y3ssFrAYpBww2MBjV707gnSdjwPebv9lII6fawqvQVIT+mgm6KlsXUcFI1jCIs2e6Jpl012e9p9ld+55DSl83SUzIOnJgBM57VNKXydlBkxqg//mWE53J3NKGpMyAxY04Ufy8Af4rqgzLzNgStOAi/noMaKsIz2Bj5oJZlESWieXlD3DV1qP713u7xWtqu+NzIBHWgZM5KtGHXkk6wviDMlD5QoZ5y0BsuxxSE0imWMjv2W54HaRCxHNXKBXCU7Rz3v6NTRcsyH4uae83HOC1BDkhbLGA5X2PMEfxeV6chq9it+P0SCH9gEGE1xXvFAG4C9oamVynGG3csygmnS+hHaTbdygjAzblG5/O73un5kYnFGqcL32Ba6tWUirC/bSGcXditKJIsPbe0ODWnlrVsaNgsw1yOc1gA/QWUDfVcpvdSNfchYO8ZI+PvGLKQ5xhl3adWKSWzzkq+2XGClScqWrWDzjPDuIEcIgnqMXajjIE08MiZ2+Uyh4W2x8ho/6ghceop1u/jIj4IhSjNOziiNa8n1QLbAsx4QoIyw4Jqy9JGgigUkYf44lG+YbP/jIuOO6EWaZ0fGfmFQNCfmOsIAjFFO3kpNICGjFckxB4I1IqFvNZse/yvfLj7ROm7aP6cKLSdVi0vaefF882l7aHfsFh29q0/ZxVT6sJCUpyX8k/wALscSVmxSJXQAAAABJRU5ErkJggg==)}.type-icon.togetherjs{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QQDDQo2y3SF6QAABvFJREFUeNrtWn2MVNUV/51773sz82ZnZr8Bu8BqSVSobdKCNSmR1BYhJFX7R8UgmwJW2sQQ4xaotYltGhutUvpBIJQEkQjIEmuaSLtUA21obWpLibRrjUUoirjuLvs5n++9+9E/EKOU3Sz3bk2Tvt9fM2/ePfec3zvn3HPOGyBBggQJEiRIkCBBggQJEvz/ga50wY5H1wbTgqgu58VeICLOYUBkECmBqvbUWORH75TTY/d9Z1s4nozVP9iWirJNeeln/ZiluOICZAwIGp4MlYgrsV8ZLj317bWV/xkCntn0tfltdaUbpMJSIrrZY3q6zxQYDECAMgyxZog0e4ugX1TgfzhbzP911be2//2ijFU/fPKGcm7aZxTYQgaz2DAxSzEBTQxkAIIG0wpMx+8ag6Pg/FBQ7O95ekPHXz5yAroe76DlG582P/3+fbM/0TS8KSviz3EyMwRpAICZQKABIA2D0nRGSX3o8PmZz59ovvVLRvhLDWPtmvgH7hxfLTIKzKheIcOX8oOn1+98eN2bd27aRwfWrzAfiQd0/WjNY9fkxh7gpH0b4Qwar/FPmX+03iZPD1XFWKiILBVlRkfZUu+P93auePC/7gG7H7un8LFcravRry6xE2oQw8NLmWUIr7oJPkIQCK8PVNA7FsLl8aWj4m/84sDyPQ+uHp0KAvilF3Y+em/Tx+tLz+a9aDFZGa9RRh3+WP8VmOmfBDfx+yHTWueDEWG0Jq1JUNyfY/zMjQsW3vyrE4efr7oSwC69MKdQ6s6K6BayVDFCCscKt8E0zgG0/LDy2qCtkEJ7Qwa2oWBAiET6lnJh1qGp8IAPEdC9peNI3gsXkHU8GfSkbkLUPA8TETi7IYXGwHOK3MgL5t+15ZdHpoyAX2xeff+0dHmRsRakcZ5ace6qZRBGTnivNsC86QF8zhzygUEl3bDo7s1d9zsTsPuJtW0zgvK9lwuJyUJrg5dbV6KOTS7JcSJc15qBNk4nGqsEjWtXbdo904mAWUFxicfUPFshwsR4Jb0QmWweZpIGaQM0ZDw0Bx60AweaibmlTPOt1gQ8u3lNXoE6BdlrIUEIG6+zWttWSE1QEE0iEIgDMJ13b34mb0VA3gvrcyKeaxwS35v8WhRFq9X6wOfI+twhCgykyMyNvGy9FQHlWKxMcemQjw1UpgHaC6zW+5xQl+JOxZHiHoSsrbQiIOPpL7tsHhuBqmgEZ3aHJ2eEwOPWdcHFKkt7qTvsCOBxO4z99hGlMMBnwOVASwsG5sAAAVDMv9qKgLSQeRcP0CRQ5QWnROZxAhE55gHfLgkKMp6b9xEME27VGJFbCFw4DazsYMZAOxfUZsracxcdrOxg0jDpsi9Bg73X8blUka4UMqOs7GChFiPksD03MerksM148X2ESjuWxASu4xErAkrSO+kSgCmEaNHvQDsIqUntVA4bAELWTloRUItpv0sCYtAQ0RiUskslUhlUIsc0RADF0X4r/VszYVdVuvXm6Vo/RFy0dv9SqJxOAaEiREF9lxUBZyvZalmJIy4Tmln6FIKoz2p9MVSoxMrJAXhc/W2m1G81HmMrvrmzrA3tiDRzcAKGlsE/Wy19a7gG5lAEMS3BoXfsWd9Rtp4HHDvfclAZdtS6GYHAtbIHpeE+EE2OSEaE3rEQpUjBpQgko39fGDx10Gkg8tD3flL+V7GwTRuqWZPAfCwZ2olSPKmchZpUOHne7emTMbVcsXfrju92lqzD5+KH5148/urtixdMy4r4s7Y6CVIw5SEM5+aOaxgBkMagp7eCUGkX4xHUhrbv7bzrCaf88cEv+7pPdC9f+umWFFM32pFAaNT9GI59VLMzL9vhGQBvDFYxWIld3B6puLK1a93t61wr6P8I2NOj2Q2jUWqrtmyRGQzml19Aqu8YcEmTxInwz4EKescipyfvR+WtmdG3N0xFCzGuld1bOra3pCprmGW36JsQR70votT2eXBGUNrg1b4yBivSuvcnY+JMOPLk/nV3fGOqeqhxh3F7u/92cNGihW8X/GimAc3gVzg0VSRwtT4FGjmrTlP7mZ7+Wn40MszGeHbhLfHxXPHcw/seWP7IVDaRE04jn3vh+CvXz//CgUIqPhNp3sIJbYJdqPrpMg5EMBd+I6CmPIzJzOF6NbDxzBtnf3Yu3f47X0XNBFyjuABAuPwU4D0pRBBawosrLwsVPtLU//rGXQ99/U9T3UVfwR8k7qmfnavk+iveqpQwdwZCzklzmRbQMARIzVHTolyV4rVIYVcg1K/frdQNdWz8+dhFGV99/Kl8NWhqZLK2DFysViJ9vWReVjMBGIBBgau4xmXtFMnogAwadqWLfcU961eOIEGCBAkSJEiQIEGCBAkSJEgwVfg3+LzfuLeHV2MAAAAASUVORK5CYII=)}div.feedback{position:absolute;bottom:3px;left:0;right:3px;padding:0 10px 3px;z-index:1000;border:1px solid #888;border-radius:5px;background-color:#cff;box-shadow:3px 3px 5px #888}div.feedback.warning{background-color:#fdd}.modal-header .glyphicon-warning-sign{color:#fa0;font-size:150%}.modal-header .warning{color:red}div.btn-group.diff{margin-top:1em}div.btn-transparent button.dropdown-toggle{background:none repeat scroll 0 0 transparent;border:0 none;cursor:pointer;padding:0;color:#000;float:right;font-size:16px;font-weight:700;line-height:1;opacity:.2}div.btn-transparent>button:hover{opacity:.8}::-ms-clear{display:none}.form-control-clear{z-index:10;pointer-events:auto;cursor:pointer}#login.login>.logout{display:none}#login.logout>.login{display:none}#login.logout>.logout{color:green}#login .value{margin-left:5px}iframe.login{width:90%;margin:0 auto;display:block;height:30ex}button.login-cont{margin:2ex auto 2ex;display:block}img.login-with,img.profile-picture{width:24px;height:24px}div.user-menu.btn-transparent button.dropdown-toggle{opacity:1}div.notification{display:inline-block;position:absolute;min-width:10em;background:#cff;padding:5px 1em;display:none;z-index:1000}a.dropdown-toggle.avatar{padding:0;margin-left:2px}img.avatar{width:24px;margin-top:4px;margin-bottom:4px}img.avatar:hover{width:32px;margin-top:0;margin-bottom:0}div.user-count{clear:both;text-align:center;color:#888;font-style:italic;font-size:75%;display:none}li.myself{border-bottom:3px solid green}li.user.lost{opacity:.2}.navbar-nav>li>a.broadcast-bell{padding:15px 5px 9px}#broadcast-bell{display:inline-block;height:30px;width:26px}#broadcast-bell .glyphicon{font-size:200%}.notify-arrow{background:#cff;border:1px solid #888;border-radius:5px;box-shadow:6px 6px 3px #aaa}.notify-arrow:after,.notify-arrow:before{bottom:100%;right:12px;border:solid transparent;content:" ";height:0;width:0;position:absolute}.notify-arrow:after{border-color:rgba(192,255,255,0);border-bottom-color:#cff;border-width:14px;margin-left:-14px}.notify-arrow:before{border-color:rgba(128,128,128,0);border-bottom-color:#888;border-width:15px;margin-left:-15px}div.chatroom{width:100%;height:100%;position:relative;overflow:hidden;display:table}div.chatroom span.glyphicon.menu{position:absolute;font-size:1.5em;top:5px;right:5px;opacity:.2}div.chatroom span.glyphicon.menu:hover{opacity:.8}div.chat-conversation{width:100%;display:table-row;height:100%}div.chat-outer-wrapper{display:table-cell;height:100%}div.chat-inner-wrapper{height:100%;position:relative;overflow:auto}div.chat-content-wrapper{position:absolute;top:0;bottom:0;left:0;right:0}table.chat-input{width:100%}td.chat-send{text-align:right;white-space:nowrap;vertical-align:middle;padding:5px}td.chat-send>div{display:flex}td.chat-text{width:100%;padding:0 5px}table.chat-input textarea{resize:vertical;box-sizing:border-box;width:100%;border:1px solid #888;border-radius:5px}div.chatroom div.chat-message{position:relative;font-size:90%;margin-right:10%;margin-left:5px;margin-bottom:1ex;background-color:#eee;border:1px solid #ccc;border-radius:5px;padding:3px 5px}div.chatroom div.chat-message.self{margin-right:5px;margin-left:10%}div.chat-message img.avatar{position:absolute;margin-top:0;top:0;right:0;border-radius:5px;width:24px}span.chat-sender{font-weight:700;color:#4888be}span.chat-time{font-family:italic;color:#4888be}span.chat-sender::after{content:": "}span.commit-message{color:#060}span.no-commit-message{font-size:80%;color:#f80}.chat-message .tooltip{z-index:5000;position:fixed}.chat-message .tooltip-inner{background:#ffd;padding:5px 5px;border:1px solid #888;border-radius:5px}.chat-message .tooltip-inner pre.cm-s-prolog{padding:0 5px;background:0 0;border:0;margin:0}.chat-bell{position:relative;vertical-align:middle;height:30px;width:22px}.chat-bell .glyphicon,span.chat-bell-count{position:absolute;display:block;top:0;left:0;width:100%;height:100%;text-align:center;line-height:30px}.chat-bell .glyphicon{font-size:140%}.chat-bell .glyphicon{color:#888}.chat-bell.chat-alert .glyphicon{color:red}span.chat-bell-count{font-size:80%;font-weight:700;color:#fff;z-index:10}.flash{animation:flash 2s ease-out 1;-webkit-animation:flash 2s ease-out 1}@-webkit-keyframes flash{from{background-color:#ffa}to{background-color:#fff}}@keyframes flash{from{background-color:#ffa}to{background-color:#fff}}div.sourcelist{margin:auto;width:90%}div.sourcelist span.dropdown-icon{margin-left:5px}div.search-footer>button>label{margin-left:5px;margin-right:5px}div.search-footer{text-align:center}div.sourcelist div.search-results{margin-top:1em;position:relative;min-height:150px}div.search-no-results{display:none;position:absolute;top:0;left:0;width:100%}div.loading{display:none;position:absolute;top:0;left:0;width:100%;height:100%;opacity:.5;background-image:url(../icons/loading.gif);background-size:64px;background-repeat:no-repeat;background-position:50% 100px}span.no-search-results-warning{background:#fee;color:#b44}td.tags span.tag{padding:0 2px;border-radius:3px;margin-right:5px;background:#d7fbff}a.pengine-logo{position:absolute;top:4px;left:4px;width:42px;height:42px;background-image:url(../icons/logo.png);background-size:100%}.splitter_panel .hsplitter,.splitter_panel .vsplitter{z-index:100;border:2px outset #ccc}.splitter_panel .vsplitter{width:3px}.splitter_panel .hsplitter{height:3px}.splitter_panel .bottom_panel,.splitter_panel .hsplitter,.splitter_panel .left_panel,.splitter_panel .right_panel,.splitter_panel .top_panel,.splitter_panel .vsplitter{overflow:visible}body .modal-dialog{width:80%;max-width:800px;margin-left:auto;margin-right:auto}body .modal-dialog.modal-wide{width:90%;max-width:none}body .modal-dialog.swish-embedded-manual{width:90%;max-width:1000px}body .modal-dialog.swish-embedded-manual div.modal-body{padding:0}iframe.swish-embedded-manual{width:100%;border:0}
\ No newline at end of file
diff --git a/web/css/swish-min.css.gz b/web/css/swish-min.css.gz
index e79dc50..d99c26c 100644
Binary files a/web/css/swish-min.css.gz and b/web/css/swish-min.css.gz differ
diff --git a/web/js/swish-min.js b/web/js/swish-min.js
index 7e6a99d..e561a4d 100644
--- a/web/js/swish-min.js
+++ b/web/js/swish-min.js
@@ -1,39 +1,68339 @@
-if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function n(t,e,n){var i,r=(e=e||at).createElement("script");if(r.text=t,n)for(i in bt)n[i]&&(r[i]=n[i]);e.head.appendChild(r).parentNode.removeChild(r)}function i(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?dt[ft.call(t)]||"object":typeof t}function r(t){var e=!!t&&"length"in t&&t.length,n=i(t);return!yt(t)&&!xt(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function a(t,e,n){return yt(e)?wt.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?wt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?wt.grep(t,function(t){return ht.call(e,t)>-1!==n}):wt.filter(e,t,n)}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function l(t){var e={};return wt.each(t.match(Nt)||[],function(t,n){e[n]=!0}),e}function c(t){return t}function u(t){throw t}function h(t,e,n,i){var r;try{t&&yt(r=t.promise)?r.call(t).done(e).fail(n):t&&yt(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function d(){at.removeEventListener("DOMContentLoaded",d),t.removeEventListener("load",d),wt.ready()}function f(t,e){return e.toUpperCase()}function p(t){return t.replace(It,"ms-").replace(Ht,f)}function g(){this.expando=wt.expando+g.uid++}function m(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:zt.test(t)?JSON.parse(t):t)}function v(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(qt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=m(n)}catch(t){}Ft.set(t,e,n)}else n=void 0;return n}function y(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return wt.css(t,e,"")},l=s(),c=n&&n[3]||(wt.cssNumber[e]?"":"px"),u=(wt.cssNumber[e]||"px"!==c&&+l)&&Bt.exec(wt.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)wt.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,wt.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}function x(t){var e,n=t.ownerDocument,i=t.nodeName,r=Xt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=wt.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),Xt[i]=r,r)}function b(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=Vt.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&Wt(i)&&(r[o]=x(i))):"none"!==n&&(r[o]="none",Vt.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}function w(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&o(t,e)?wt.merge([t],n):n}function _(t,e){for(var n=0,i=t.length;n<i;n++)Vt.set(t[n],"globalEval",!e||Vt.get(e[n],"globalEval"))}function S(t,e,n,r,o){for(var a,s,l,c,u,h,d=e.createDocumentFragment(),f=[],p=0,g=t.length;p<g;p++)if((a=t[p])||0===a)if("object"===i(a))wt.merge(f,a.nodeType?[a]:a);else if(Jt.test(a)){for(s=s||d.appendChild(e.createElement("div")),l=(Qt.exec(a)||["",""])[1].toLowerCase(),c=Kt[l]||Kt._default,s.innerHTML=c[1]+wt.htmlPrefilter(a)+c[2],h=c[0];h--;)s=s.lastChild;wt.merge(f,s.childNodes),(s=d.firstChild).textContent=""}else f.push(e.createTextNode(a));for(d.textContent="",p=0;a=f[p++];)if(r&&wt.inArray(a,r)>-1)o&&o.push(a);else if(u=wt.contains(a.ownerDocument,a),s=w(d.appendChild(a),"script"),u&&_(s),n)for(h=0;a=s[h++];)Zt.test(a.type||"")&&n.push(a);return d}function C(){return!0}function T(){return!1}function k(){try{return at.activeElement}catch(t){}}function A(t,e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)A(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=T;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return wt().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=wt.guid++)),t.each(function(){wt.event.add(this,e,r,i,n)})}function M(t,e){return o(t,"table")&&o(11!==e.nodeType?e:e.firstChild,"tr")?wt(t).children("tbody")[0]||t:t}function E(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function L(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function P(t,e){var n,i,r,o,a,s,l,c;if(1===e.nodeType){if(Vt.hasData(t)&&(o=Vt.access(t),a=Vt.set(e,o),c=o.events)){delete a.handle,a.events={};for(r in c)for(n=0,i=c[r].length;n<i;n++)wt.event.add(e,r,c[r][n])}Ft.hasData(t)&&(s=Ft.access(t),l=wt.extend({},s),Ft.set(e,l))}}function N(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Yt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function O(t,e,i,r){e=ct.apply([],e);var o,a,s,l,c,u,h=0,d=t.length,f=d-1,p=e[0],g=yt(p);if(g||d>1&&"string"==typeof p&&!vt.checkClone&&ae.test(p))return t.each(function(n){var o=t.eq(n);g&&(e[0]=p.call(this,n,o.html())),O(o,e,i,r)});if(d&&(o=S(e,t[0].ownerDocument,!1,t,r),a=o.firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(s=wt.map(w(o,"script"),E)).length;h<d;h++)c=o,h!==f&&(c=wt.clone(c,!0,!0),l&&wt.merge(s,w(c,"script"))),i.call(t[h],c,h);if(l)for(u=s[s.length-1].ownerDocument,wt.map(s,L),h=0;h<l;h++)c=s[h],Zt.test(c.type||"")&&!Vt.access(c,"globalEval")&&wt.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?wt._evalUrl&&wt._evalUrl(c.src):n(c.textContent.replace(se,""),u,c))}return t}function R(t,e,n){for(var i,r=e?wt.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||wt.cleanData(w(i)),i.parentNode&&(n&&wt.contains(i.ownerDocument,i)&&_(w(i,"script")),i.parentNode.removeChild(i));return t}function D(t,e,n){var i,r,o,a,s=t.style;return(n=n||ce(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||wt.contains(t.ownerDocument,t)||(a=wt.style(t,e)),!vt.pixelBoxStyles()&&le.test(a)&&ue.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function I(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function H(t){if(t in me)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=ge.length;n--;)if((t=ge[n]+e)in me)return t}function j(t){var e=wt.cssProps[t];return e||(e=wt.cssProps[t]=H(t)||t),e}function V(t,e,n){var i=Bt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function F(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=wt.css(t,n+$t[a],!0,r)),i?("content"===n&&(l-=wt.css(t,"padding"+$t[a],!0,r)),"margin"!==n&&(l-=wt.css(t,"border"+$t[a]+"Width",!0,r))):(l+=wt.css(t,"padding"+$t[a],!0,r),"padding"!==n?l+=wt.css(t,"border"+$t[a]+"Width",!0,r):s+=wt.css(t,"border"+$t[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))),l}function z(t,e,n){var i=ce(t),r=D(t,e,i),o="border-box"===wt.css(t,"boxSizing",!1,i),a=o;if(le.test(r)){if(!n)return r;r="auto"}return a=a&&(vt.boxSizingReliable()||r===t.style[e]),("auto"===r||!parseFloat(r)&&"inline"===wt.css(t,"display",!1,i))&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(r=parseFloat(r)||0)+F(t,e,n||(o?"border":"content"),a,i,r)+"px"}function q(t,e,n,i,r){return new q.prototype.init(t,e,n,i,r)}function G(){ye&&(!1===at.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(G):t.setTimeout(G,wt.fx.interval),wt.fx.tick())}function B(){return t.setTimeout(function(){ve=void 0}),ve=Date.now()}function $(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=$t[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function W(t,e,n){for(var i,r=(Y.tweeners[e]||[]).concat(Y.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function U(t,e,n){var i,r,o,a,s,l,c,u,h="width"in e||"height"in e,d=this,f={},p=t.style,g=t.nodeType&&Wt(t),m=Vt.get(t,"fxshow");n.queue||(null==(a=wt._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,wt.queue(t,"fx").length||a.empty.fire()})}));for(i in e)if(r=e[i],xe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||wt.style(t,i)}if((l=!wt.isEmptyObject(e))||!wt.isEmptyObject(f)){h&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Vt.get(t,"display")),"none"===(u=wt.css(t,"display"))&&(c?u=c:(b([t],!0),c=t.style.display||c,u=wt.css(t,"display"),b([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===wt.css(t,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1;for(i in f)l||(m?"hidden"in m&&(g=m.hidden):m=Vt.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&b([t],!0),d.done(function(){g||b([t]),Vt.remove(t,"fxshow");for(i in f)wt.style(t,i,f[i])})),l=W(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}}function X(t,e){var n,i,r,o,a;for(n in t)if(i=p(n),r=e[i],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=wt.cssHooks[i])&&"expand"in a){o=a.expand(o),delete t[i];for(n in o)n in t||(t[n]=o[n],e[n]=r)}else e[i]=r}function Y(t,e,n){var i,r,o=0,a=Y.prefilters.length,s=wt.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=ve||B(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:wt.extend({},e),opts:wt.extend(!0,{specialEasing:{},easing:wt.easing._default},n),originalProperties:e,originalOptions:n,startTime:ve||B(),duration:n.duration,tweens:[],createTween:function(e,n){var i=wt.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(X(u,c.opts.specialEasing);o<a;o++)if(i=Y.prefilters[o].call(c,t,u,c.opts))return yt(i.stop)&&(wt._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return wt.map(u,W,c),yt(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),wt.fx.timer(wt.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}function Q(t){return(t.match(Nt)||[]).join(" ")}function Z(t){return t.getAttribute&&t.getAttribute("class")||""}function K(t){return Array.isArray(t)?t:"string"==typeof t?t.match(Nt)||[]:[]}function J(t,e,n,r){var o;if(Array.isArray(e))wt.each(e,function(e,i){n||Pe.test(t)?r(t,i):J(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==i(e))r(t,e);else for(o in e)J(t+"["+o+"]",e[o],n,r)}function tt(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(Nt)||[];if(yt(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function et(t,e,n,i){function r(s){var l;return o[s]=!0,wt.each(t[s]||[],function(t,s){var c=s(e,n,i);return"string"!=typeof c||a||o[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)}),l}var o={},a=t===Ge;return r(e.dataTypes[0])||!o["*"]&&r("*")}function nt(t,e){var n,i,r=wt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&wt.extend(!0,t,i),t}function it(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function rt(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}var ot=[],at=t.document,st=Object.getPrototypeOf,lt=ot.slice,ct=ot.concat,ut=ot.push,ht=ot.indexOf,dt={},ft=dt.toString,pt=dt.hasOwnProperty,gt=pt.toString,mt=gt.call(Object),vt={},yt=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},xt=function(t){return null!=t&&t===t.window},bt={type:!0,src:!0,noModule:!0},wt=function(t,e){return new wt.fn.init(t,e)},_t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;wt.fn=wt.prototype={jquery:"3.3.1",constructor:wt,length:0,toArray:function(){return lt.call(this)},get:function(t){return null==t?lt.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=wt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return wt.each(this,t)},map:function(t){return this.pushStack(wt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(lt.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ut,sort:ot.sort,splice:ot.splice},wt.extend=wt.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||yt(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)n=a[e],a!==(i=t[e])&&(c&&i&&(wt.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,o=n&&Array.isArray(n)?n:[]):o=n&&wt.isPlainObject(n)?n:{},a[e]=wt.extend(c,o,i)):void 0!==i&&(a[e]=i));return a},wt.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==ft.call(t)||(e=st(t))&&("function"!=typeof(n=pt.call(e,"constructor")&&e.constructor)||gt.call(n)!==mt))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){n(t)},each:function(t,e){var n,i=0;if(r(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(_t,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(r(Object(t))?wt.merge(n,"string"==typeof t?[t]:t):ut.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:ht.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,o,a=0,s=[];if(r(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return ct.apply([],s)},guid:1,support:vt}),"function"==typeof Symbol&&(wt.fn[Symbol.iterator]=ot[Symbol.iterator]),wt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){dt["[object "+e+"]"]=e.toLowerCase()});var St=function(t){function e(t,e,n,i){var r,o,a,s,l,u,d,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:V)!==P&&L(e),e=e||P,O)){if(11!==p&&(l=gt.exec(t)))if(r=l[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(f&&(a=f.getElementById(r))&&H(e,a)&&a.id===r)return n.push(a),n}else{if(l[2])return Q.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&b.getElementsByClassName&&e.getElementsByClassName)return Q.apply(n,e.getElementsByClassName(r)),n}if(b.qsa&&!B[t+" "]&&(!R||!R.test(t))){if(1!==p)f=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(xt,bt):e.setAttribute("id",s=j),o=(u=C(t)).length;o--;)u[o]="#"+s+" "+h(u[o]);d=u.join(","),f=mt.test(t)&&c(e.parentNode)||e}if(d)try{return Q.apply(n,f.querySelectorAll(d)),n}catch(t){}finally{s===j&&e.removeAttribute("id")}}}return k(t.replace(ot,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[j]=!0,t}function r(t){var e=P.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&_t(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function u(){}function h(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function d(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=z++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var c,u,h,d=[F,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(h=e[j]||(e[j]={}),u=h[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=u[o])&&c[0]===F&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=t(e,n,l))return!0}return!1}}function f(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function p(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function g(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function m(t,e,n,r,o,a){return r&&!r[j]&&(r=m(r)),o&&!o[j]&&(o=m(o,a)),i(function(i,a,s,l){var c,u,h,d=[],f=[],m=a.length,v=i||p(e||"*",s.nodeType?[s]:s,[]),y=!t||!i&&e?v:g(v,d,t,s,l),x=n?o||(i?t:m||r)?[]:a:y;if(n&&n(y,x,s,l),r)for(c=g(x,f),r(c,[],s,l),u=c.length;u--;)(h=c[u])&&(x[f[u]]=!(y[f[u]]=h));if(i){if(o||t){if(o){for(c=[],u=x.length;u--;)(h=x[u])&&c.push(y[u]=h);o(null,x=[],c,l)}for(u=x.length;u--;)(h=x[u])&&(c=o?K(i,h):d[u])>-1&&(i[c]=!(a[c]=h))}}else x=g(x===a?x.splice(m,x.length):x),o?o(null,a,x,l):Q.apply(a,x)})}function v(t){for(var e,n,i,r=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,l=d(function(t){return t===e},a,!0),c=d(function(t){return K(e,t)>-1},a,!0),u=[function(t,n,i){var r=!o&&(i||n!==A)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,r}];s<r;s++)if(n=w.relative[t[s].type])u=[d(f(u),n)];else{if((n=w.filter[t[s].type].apply(null,t[s].matches))[j]){for(i=++s;i<r&&!w.relative[t[i].type];i++);return m(s>1&&f(u),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ot,"$1"),n,s<i&&v(t.slice(s,i)),i<r&&v(t=t.slice(i)),i<r&&h(t))}u.push(n)}return f(u)}function y(t,n){var r=n.length>0,o=t.length>0,a=function(i,a,s,l,c){var u,h,d,f=0,p="0",m=i&&[],v=[],y=A,x=i||o&&w.find.TAG("*",c),b=F+=null==y?1:Math.random()||.1,_=x.length;for(c&&(A=a===P||a||c);p!==_&&null!=(u=x[p]);p++){if(o&&u){for(h=0,a||u.ownerDocument===P||(L(u),s=!O);d=t[h++];)if(d(u,a||P,s)){l.push(u);break}c&&(F=b)}r&&((u=!d&&u)&&f--,i&&m.push(u))}if(f+=p,r&&p!==f){for(h=0;d=n[h++];)d(m,v,a,s);if(i){if(f>0)for(;p--;)m[p]||v[p]||(v[p]=X.call(l));v=g(v)}Q.apply(l,v),c&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return c&&(F=b,A=y),m};return r?i(a):a}var x,b,w,_,S,C,T,k,A,M,E,L,P,N,O,R,D,I,H,j="sizzle"+1*new Date,V=t.document,F=0,z=0,q=n(),G=n(),B=n(),$=function(t,e){return t===e&&(E=!0),0},W={}.hasOwnProperty,U=[],X=U.pop,Y=U.push,Q=U.push,Z=U.slice,K=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",nt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+nt+")*)|.*)\\)|)",rt=new RegExp(tt+"+","g"),ot=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),at=new RegExp("^"+tt+"*,"+tt+"*"),st=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ct=new RegExp(it),ut=new RegExp("^"+et+"$"),ht={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,ft=/^h\d$/i,pt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),yt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,bt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},wt=function(){L()},_t=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Q.apply(U=Z.call(V.childNodes),V.childNodes),U[V.childNodes.length].nodeType}catch(t){Q={apply:U.length?function(t,e){Y.apply(t,Z.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}b=e.support={},S=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},L=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:V;return i!==P&&9===i.nodeType&&i.documentElement?(P=i,N=P.documentElement,O=!S(P),V!==P&&(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",wt,!1):n.attachEvent&&n.attachEvent("onunload",wt)),b.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),b.getElementsByTagName=r(function(t){return t.appendChild(P.createComment("")),!t.getElementsByTagName("*").length}),b.getElementsByClassName=pt.test(P.getElementsByClassName),b.getById=r(function(t){return N.appendChild(t).id=j,!P.getElementsByName||!P.getElementsByName(j).length}),b.getById?(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&O){var n=e.getElementById(t);return n?[n]:[]}}):(w.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&O){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),w.find.TAG=b.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):b.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},w.find.CLASS=b.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&O)return e.getElementsByClassName(t)},D=[],R=[],(b.qsa=pt.test(P.querySelectorAll))&&(r(function(t){N.appendChild(t).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+tt+"*(?:value|"+J+")"),t.querySelectorAll("[id~="+j+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+j+"+*").length||R.push(".#.+[+~]")}),r(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=P.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),N.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(b.matchesSelector=pt.test(I=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){b.disconnectedMatch=I.call(t,"*"),I.call(t,"[s!='']:x"),D.push("!=",it)}),R=R.length&&new RegExp(R.join("|")),D=D.length&&new RegExp(D.join("|")),e=pt.test(N.compareDocumentPosition),H=e||pt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return E=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!b.sortDetached&&e.compareDocumentPosition(t)===n?t===P||t.ownerDocument===V&&H(V,t)?-1:e===P||e.ownerDocument===V&&H(V,e)?1:M?K(M,t)-K(M,e):0:4&n?-1:1)}:function(t,e){if(t===e)return E=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],l=[e];if(!r||!o)return t===P?-1:e===P?1:r?-1:o?1:M?K(M,t)-K(M,e):0;if(r===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;s[i]===l[i];)i++;return i?a(s[i],l[i]):s[i]===V?-1:l[i]===V?1:0},P):P},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==P&&L(t),n=n.replace(lt,"='$1']"),b.matchesSelector&&O&&!B[n+" "]&&(!D||!D.test(n))&&(!R||!R.test(n)))try{var i=I.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,P,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==P&&L(t),H(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==P&&L(t);var n=w.attrHandle[e.toLowerCase()],i=n&&W.call(w.attrHandle,e.toLowerCase())?n(t,e,!O):void 0;return void 0!==i?i:b.attributes||!O?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(xt,bt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(E=!b.detectDuplicates,M=!b.sortStable&&t.slice(0),t.sort($),E){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return M=null,t},_=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=_(e);return n},(w=e.selectors={cacheLength:50,createPseudo:i,match:ht,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(vt,yt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,yt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,yt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=q[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&q(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(rt," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,d,f,p,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,x=!1;if(m){if(o){for(;g;){for(d=e;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(x=(f=(c=(u=(h=(d=m)[j]||(d[j]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===F&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(x=f=0)||p.pop();)if(1===d.nodeType&&++x&&d===e){u[t]=[F,f,x];break}}else if(y&&(x=f=(c=(u=(h=(d=e)[j]||(d[j]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===F&&c[1]),!1===x)for(;(d=++f&&d&&d[g]||(x=f=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++x||(y&&((u=(h=d[j]||(d[j]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[F,x]),d!==e)););return(x-=r)===i||x%i==0&&x/i>=0}}},PSEUDO:function(t,n){var r,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[j]?o(n):o.length>1?(r=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)t[i=K(t,r[a])]=!(e[i]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=T(t.replace(ot,"$1"));return r[j]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,yt),function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:i(function(t){return ut.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,yt).toLowerCase(),function(e){var n;do{if(n=O?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:s(!1),disabled:s(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){
-for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return ft.test(t.nodeName)},input:function(t){return dt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(x);return u.prototype=w.filters=w.pseudos,w.setFilters=new u,C=e.tokenize=function(t,n){var i,r,o,a,s,l,c,u=G[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=w.preFilter;s;){i&&!(r=at.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=st.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ot," ")}),s=s.slice(i.length));for(a in w.filter)!(r=ht[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):G(t,l).slice(0)},T=e.compile=function(t,e){var n,i=[],r=[],o=B[t+" "];if(!o){for(e||(e=C(t)),n=e.length;n--;)(o=v(e[n]))[j]?i.push(o):r.push(o);(o=B(t,y(r,i))).selector=t}return o},k=e.select=function(t,e,n,i){var r,o,a,s,l,u="function"==typeof t&&t,d=!i&&C(t=u.selector||t);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===e.nodeType&&O&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(vt,yt),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=ht.needsContext.test(t)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((l=w.find[s])&&(i=l(a.matches[0].replace(vt,yt),mt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&h(o)))return Q.apply(n,i),n;break}}return(u||T(t,d))(i,e,!O,n,!e||mt.test(t)&&c(e.parentNode)||e),n},b.sortStable=j.split("").sort($).join("")===j,b.detectDuplicates=!!E,L(),b.sortDetached=r(function(t){return 1&t.compareDocumentPosition(P.createElement("fieldset"))}),r(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),b.attributes&&r(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(J,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);wt.find=St,wt.expr=St.selectors,wt.expr[":"]=wt.expr.pseudos,wt.uniqueSort=wt.unique=St.uniqueSort,wt.text=St.getText,wt.isXMLDoc=St.isXML,wt.contains=St.contains,wt.escapeSelector=St.escape;var Ct=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&wt(t).is(n))break;i.push(t)}return i},Tt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},kt=wt.expr.match.needsContext,At=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;wt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?wt.find.matchesSelector(i,t)?[i]:[]:wt.find.matches(t,wt.grep(e,function(t){return 1===t.nodeType}))},wt.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(wt(t).filter(function(){for(e=0;e<i;e++)if(wt.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)wt.find(t,r[e],n);return i>1?wt.uniqueSort(n):n},filter:function(t){return this.pushStack(a(this,t||[],!1))},not:function(t){return this.pushStack(a(this,t||[],!0))},is:function(t){return!!a(this,"string"==typeof t&&kt.test(t)?wt(t):t||[],!1).length}});var Mt,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(wt.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||Mt,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Et.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof wt?e[0]:e,wt.merge(this,wt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:at,!0)),At.test(i[1])&&wt.isPlainObject(e))for(i in e)yt(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=at.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):yt(t)?void 0!==n.ready?n.ready(t):t(wt):wt.makeArray(t,this)}).prototype=wt.fn,Mt=wt(at);var Lt=/^(?:parents|prev(?:Until|All))/,Pt={children:!0,contents:!0,next:!0,prev:!0};wt.fn.extend({has:function(t){var e=wt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(wt.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&wt(t);if(!kt.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&wt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?wt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?ht.call(wt(t),this[0]):ht.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(wt.uniqueSort(wt.merge(this.get(),wt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),wt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Ct(t,"parentNode")},parentsUntil:function(t,e,n){return Ct(t,"parentNode",n)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return Ct(t,"nextSibling")},prevAll:function(t){return Ct(t,"previousSibling")},nextUntil:function(t,e,n){return Ct(t,"nextSibling",n)},prevUntil:function(t,e,n){return Ct(t,"previousSibling",n)},siblings:function(t){return Tt((t.parentNode||{}).firstChild,t)},children:function(t){return Tt(t.firstChild)},contents:function(t){return o(t,"iframe")?t.contentDocument:(o(t,"template")&&(t=t.content||t),wt.merge([],t.childNodes))}},function(t,e){wt.fn[t]=function(n,i){var r=wt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=wt.filter(i,r)),this.length>1&&(Pt[t]||wt.uniqueSort(r),Lt.test(t)&&r.reverse()),this.pushStack(r)}});var Nt=/[^\x20\t\r\n\f]+/g;wt.Callbacks=function(t){t="string"==typeof t?l(t):wt.extend({},t);var e,n,r,o,a=[],s=[],c=-1,u=function(){for(o=o||t.once,r=e=!0;s.length;c=-1)for(n=s.shift();++c<a.length;)!1===a[c].apply(n[0],n[1])&&t.stopOnFalse&&(c=a.length,n=!1);t.memory||(n=!1),e=!1,o&&(a=n?[]:"")},h={add:function(){return a&&(n&&!e&&(c=a.length-1,s.push(n)),function e(n){wt.each(n,function(n,r){yt(r)?t.unique&&h.has(r)||a.push(r):r&&r.length&&"string"!==i(r)&&e(r)})}(arguments),n&&!e&&u()),this},remove:function(){return wt.each(arguments,function(t,e){for(var n;(n=wt.inArray(e,a,n))>-1;)a.splice(n,1),n<=c&&c--}),this},has:function(t){return t?wt.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return o=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return o=s=[],n||e||(a=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},wt.extend({Deferred:function(e){var n=[["notify","progress",wt.Callbacks("memory"),wt.Callbacks("memory"),2],["resolve","done",wt.Callbacks("once memory"),wt.Callbacks("once memory"),0,"resolved"],["reject","fail",wt.Callbacks("once memory"),wt.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return wt.Deferred(function(e){wt.each(n,function(n,i){var r=yt(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&yt(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){function o(e,n,i,r){return function(){var s=this,l=arguments,h=function(){var t,h;if(!(e<a)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");h=t&&("object"==typeof t||"function"==typeof t)&&t.then,yt(h)?r?h.call(t,o(a,n,c,r),o(a,n,u,r)):(a++,h.call(t,o(a,n,c,r),o(a,n,u,r),o(a,n,c,n.notifyWith))):(i!==c&&(s=void 0,l=[t]),(r||n.resolveWith)(s,l))}},d=r?h:function(){try{h()}catch(t){wt.Deferred.exceptionHook&&wt.Deferred.exceptionHook(t,d.stackTrace),e+1>=a&&(i!==u&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?d():(wt.Deferred.getStackHook&&(d.stackTrace=wt.Deferred.getStackHook()),t.setTimeout(d))}}var a=0;return wt.Deferred(function(t){n[0][3].add(o(0,t,yt(r)?r:c,t.notifyWith)),n[1][3].add(o(0,t,yt(e)?e:c)),n[2][3].add(o(0,t,yt(i)?i:u))}).promise()},promise:function(t){return null!=t?wt.extend(t,r):r}},o={};return wt.each(n,function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add(function(){i=s},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=lt.call(arguments),o=wt.Deferred(),a=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?lt.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(h(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||yt(r[n]&&r[n].then)))return o.then();for(;n--;)h(r[n],a(n),o.reject);return o.promise()}});var Ot=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;wt.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&Ot.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},wt.readyException=function(e){t.setTimeout(function(){throw e})};var Rt=wt.Deferred();wt.fn.ready=function(t){return Rt.then(t).catch(function(t){wt.readyException(t)}),this},wt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--wt.readyWait:wt.isReady)||(wt.isReady=!0,!0!==t&&--wt.readyWait>0||Rt.resolveWith(at,[wt]))}}),wt.ready.then=Rt.then,"complete"===at.readyState||"loading"!==at.readyState&&!at.documentElement.doScroll?t.setTimeout(wt.ready):(at.addEventListener("DOMContentLoaded",d),t.addEventListener("load",d));var Dt=function(t,e,n,r,o,a,s){var l=0,c=t.length,u=null==n;if("object"===i(n)){o=!0;for(l in n)Dt(t,e,l,n[l],!0,a,s)}else if(void 0!==r&&(o=!0,yt(r)||(s=!0),u&&(s?(e.call(t,r),e=null):(u=e,e=function(t,e,n){return u.call(wt(t),n)})),e))for(;l<c;l++)e(t[l],n,s?r:r.call(t[l],l,e(t[l],n)));return o?t:u?e.call(t):c?e(t[0],n):a},It=/^-ms-/,Ht=/-([a-z])/g,jt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};g.uid=1,g.prototype={cache:function(t){var e=t[this.expando];return e||(e={},jt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[p(e)]=n;else for(i in e)r[p(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][p(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(p):(e=p(e))in i?[e]:e.match(Nt)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||wt.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!wt.isEmptyObject(e)}};var Vt=new g,Ft=new g,zt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qt=/[A-Z]/g;wt.extend({hasData:function(t){return Ft.hasData(t)||Vt.hasData(t)},data:function(t,e,n){return Ft.access(t,e,n)},removeData:function(t,e){Ft.remove(t,e)},_data:function(t,e,n){return Vt.access(t,e,n)},_removeData:function(t,e){Vt.remove(t,e)}}),wt.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=Ft.get(o),1===o.nodeType&&!Vt.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=p(i.slice(5)),v(o,i,r[i]));Vt.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Ft.set(this,t)}):Dt(this,function(e){var n;if(o&&void 0===e){if(void 0!==(n=Ft.get(o,t)))return n;if(void 0!==(n=v(o,t)))return n}else this.each(function(){Ft.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ft.remove(this,t)})}}),wt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Vt.get(t,e),n&&(!i||Array.isArray(n)?i=Vt.access(t,e,wt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=wt.queue(t,e),i=n.length,r=n.shift(),o=wt._queueHooks(t,e),a=function(){wt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Vt.get(t,n)||Vt.access(t,n,{empty:wt.Callbacks("once memory").add(function(){Vt.remove(t,[e+"queue",n])})})}}),wt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?wt.queue(this[0],t):void 0===e?this:this.each(function(){var n=wt.queue(this,t,e);wt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&wt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){wt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=wt.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=Vt.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var Gt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Bt=new RegExp("^(?:([+-])=|)("+Gt+")([a-z%]*)$","i"),$t=["Top","Right","Bottom","Left"],Wt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&wt.contains(t.ownerDocument,t)&&"none"===wt.css(t,"display")},Ut=function(t,e,n,i){var r,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];r=n.apply(t,i||[]);for(o in e)t.style[o]=a[o];return r},Xt={};wt.fn.extend({show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Wt(this)?wt(this).show():wt(this).hide()})}});var Yt=/^(?:checkbox|radio)$/i,Qt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Zt=/^$|^module$|\/(?:java|ecma)script/i,Kt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Kt.optgroup=Kt.option,Kt.tbody=Kt.tfoot=Kt.colgroup=Kt.caption=Kt.thead,Kt.th=Kt.td;var Jt=/<|&#?\w+;/;!function(){var t=at.createDocumentFragment().appendChild(at.createElement("div")),e=at.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),vt.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",vt.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var te=at.documentElement,ee=/^key/,ne=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ie=/^([^.]*)(?:\.(.+)|)/;wt.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,h,d,f,p,g,m=Vt.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&wt.find.matchesSelector(te,r),n.guid||(n.guid=wt.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==wt&&wt.event.triggered!==e.type?wt.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Nt)||[""]).length;c--;)f=g=(s=ie.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=wt.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=wt.event.special[f]||{},u=wt.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&wt.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),wt.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,h,d,f,p,g,m=Vt.hasData(t)&&Vt.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(Nt)||[""]).length;c--;)if(s=ie.exec(e[c])||[],f=g=s[1],p=(s[2]||"").split(".").sort(),f){for(h=wt.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,m.handle)||wt.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)wt.event.remove(t,f+e[c],n,i,!0);wt.isEmptyObject(l)&&Vt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=wt.event.fix(t),l=new Array(arguments.length),c=(Vt.get(this,"events")||{})[s.type]||[],u=wt.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=wt.event.handlers.call(this,s,c),e=0;(r=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(i=((wt.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(s.result=i)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?wt(r,this).index(c)>-1:wt.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(wt.Event.prototype,t,{enumerable:!0,configurable:!0,get:yt(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[wt.expando]?t:new wt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==k()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===k()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&o(this,"input"))return this.click(),!1},_default:function(t){return o(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},wt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},wt.Event=function(t,e){if(!(this instanceof wt.Event))return new wt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?C:T,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&wt.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[wt.expando]=!0},wt.Event.prototype={constructor:wt.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=C,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=C,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=C,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},wt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&ee.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&ne.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},wt.event.addProp),wt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){wt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||wt.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),wt.fn.extend({on:function(t,e,n,i){return A(this,t,e,n,i)},one:function(t,e,n,i){return A(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,wt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=T),this.each(function(){wt.event.remove(this,t,n,e)})}});var re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,oe=/<script|<style|<link/i,ae=/checked\s*(?:[^=]|=\s*.checked.)/i,se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;wt.extend({htmlPrefilter:function(t){return t.replace(re,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=wt.contains(t.ownerDocument,t);if(!(vt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||wt.isXMLDoc(t)))for(a=w(s),i=0,r=(o=w(t)).length;i<r;i++)N(o[i],a[i]);if(e)if(n)for(o=o||w(t),a=a||w(s),i=0,r=o.length;i<r;i++)P(o[i],a[i]);else P(t,s);return(a=w(s,"script")).length>0&&_(a,!l&&w(t,"script")),s},cleanData:function(t){for(var e,n,i,r=wt.event.special,o=0;void 0!==(n=t[o]);o++)if(jt(n)){if(e=n[Vt.expando]){if(e.events)for(i in e.events)r[i]?wt.event.remove(n,i):wt.removeEvent(n,i,e.handle);n[Vt.expando]=void 0}n[Ft.expando]&&(n[Ft.expando]=void 0)}}}),wt.fn.extend({detach:function(t){return R(this,t,!0)},remove:function(t){return R(this,t)},text:function(t){return Dt(this,function(t){return void 0===t?wt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return O(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||M(this,t).appendChild(t)})},prepend:function(){return O(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=M(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return O(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return O(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(wt.cleanData(w(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return wt.clone(this,t,e)})},html:function(t){return Dt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!oe.test(t)&&!Kt[(Qt.exec(t)||["",""])[1].toLowerCase()]){t=wt.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(wt.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return O(this,arguments,function(e){var n=this.parentNode;wt.inArray(this,t)<0&&(wt.cleanData(w(this)),n&&n.replaceChild(e,this))},t)}}),wt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){wt.fn[t]=function(t){for(var n,i=[],r=wt(t),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),wt(r[a])[e](n),ut.apply(i,n.get());return this.pushStack(i)}});var le=new RegExp("^("+Gt+")(?!px)[a-z%]+$","i"),ce=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},ue=new RegExp($t.join("|"),"i");!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",te.appendChild(l).appendChild(c);var e=t.getComputedStyle(c);i="1%"!==e.top,s=12===n(e.marginLeft),c.style.right="60%",a=36===n(e.right),r=36===n(e.width),c.style.position="absolute",o=36===c.offsetWidth||"absolute",te.removeChild(l),c=null}}function n(t){return Math.round(parseFloat(t))}var i,r,o,a,s,l=at.createElement("div"),c=at.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",vt.clearCloneStyle="content-box"===c.style.backgroundClip,wt.extend(vt,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),o}}))}();var he=/^(none|table(?!-c[ea]).+)/,de=/^--/,fe={position:"absolute",visibility:"hidden",display:"block"},pe={letterSpacing:"0",fontWeight:"400"},ge=["Webkit","Moz","ms"],me=at.createElement("div").style;wt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=D(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=p(e),l=de.test(e),c=t.style;if(l||(e=j(s)),a=wt.cssHooks[e]||wt.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:c[e];"string"==(o=typeof n)&&(r=Bt.exec(n))&&r[1]&&(n=y(t,e,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(wt.cssNumber[s]?"":"px")),vt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,a,s=p(e);return de.test(e)||(e=j(s)),(a=wt.cssHooks[e]||wt.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=D(t,e,i)),"normal"===r&&e in pe&&(r=pe[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),wt.each(["height","width"],function(t,e){wt.cssHooks[e]={get:function(t,n,i){if(n)return!he.test(wt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?z(t,e,i):Ut(t,fe,function(){return z(t,e,i)})},set:function(t,n,i){var r,o=ce(t),a="border-box"===wt.css(t,"boxSizing",!1,o),s=i&&F(t,e,i,a,o);return a&&vt.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-F(t,e,"border",!1,o)-.5)),s&&(r=Bt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=wt.css(t,e)),V(t,n,s)}}}),wt.cssHooks.marginLeft=I(vt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(D(t,"marginLeft"))||t.getBoundingClientRect().left-Ut(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),wt.each({margin:"",padding:"",border:"Width"},function(t,e){wt.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+$t[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(wt.cssHooks[t+e].set=V)}),wt.fn.extend({css:function(t,e){return Dt(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=ce(t),r=e.length;a<r;a++)o[e[a]]=wt.css(t,e[a],!1,i);return o}return void 0!==n?wt.style(t,e,n):wt.css(t,e)},t,e,arguments.length>1)}}),wt.Tween=q,q.prototype={constructor:q,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||wt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(wt.cssNumber[n]?"":"px")},cur:function(){var t=q.propHooks[this.prop];return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var e,n=q.propHooks[this.prop];return this.options.duration?this.pos=e=wt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=wt.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){wt.fx.step[t.prop]?wt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[wt.cssProps[t.prop]]&&!wt.cssHooks[t.prop]?t.elem[t.prop]=t.now:wt.style(t.elem,t.prop,t.now+t.unit)}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},wt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},wt.fx=q.prototype.init,wt.fx.step={};var ve,ye,xe=/^(?:toggle|show|hide)$/,be=/queueHooks$/;wt.Animation=wt.extend(Y,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return y(n.elem,t,Bt.exec(e),n),n}]},tweener:function(t,e){yt(t)?(e=t,t=["*"]):t=t.match(Nt);for(var n,i=0,r=t.length;i<r;i++)n=t[i],Y.tweeners[n]=Y.tweeners[n]||[],Y.tweeners[n].unshift(e)},prefilters:[U],prefilter:function(t,e){e?Y.prefilters.unshift(t):Y.prefilters.push(t)}}),wt.speed=function(t,e,n){var i=t&&"object"==typeof t?wt.extend({},t):{complete:n||!n&&e||yt(t)&&t,duration:t,easing:n&&e||e&&!yt(e)&&e};return wt.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in wt.fx.speeds?i.duration=wt.fx.speeds[i.duration]:i.duration=wt.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){yt(i.old)&&i.old.call(this),i.queue&&wt.dequeue(this,i.queue)},i},wt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Wt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=wt.isEmptyObject(t),o=wt.speed(e,n,i),a=function(){var e=Y(this,wt.extend({},t),o);(r||Vt.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=wt.timers,a=Vt.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&be.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||wt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){
-var e,n=Vt.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=wt.timers,a=i?i.length:0;for(n.finish=!0,wt.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),wt.each(["toggle","show","hide"],function(t,e){var n=wt.fn[e];wt.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate($(e,!0),t,i,r)}}),wt.each({slideDown:$("show"),slideUp:$("hide"),slideToggle:$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){wt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),wt.timers=[],wt.fx.tick=function(){var t,e=0,n=wt.timers;for(ve=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||wt.fx.stop(),ve=void 0},wt.fx.timer=function(t){wt.timers.push(t),wt.fx.start()},wt.fx.interval=13,wt.fx.start=function(){ye||(ye=!0,G())},wt.fx.stop=function(){ye=null},wt.fx.speeds={slow:600,fast:200,_default:400},wt.fn.delay=function(e,n){return e=wt.fx?wt.fx.speeds[e]||e:e,n=n||"fx",this.queue(n,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t=at.createElement("input"),e=at.createElement("select").appendChild(at.createElement("option"));t.type="checkbox",vt.checkOn=""!==t.value,vt.optSelected=e.selected,(t=at.createElement("input")).value="t",t.type="radio",vt.radioValue="t"===t.value}();var we,_e=wt.expr.attrHandle;wt.fn.extend({attr:function(t,e){return Dt(this,wt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){wt.removeAttr(this,t)})}}),wt.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?wt.prop(t,e,n):(1===o&&wt.isXMLDoc(t)||(r=wt.attrHooks[e.toLowerCase()]||(wt.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void wt.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=wt.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!vt.radioValue&&"radio"===e&&o(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(Nt);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?wt.removeAttr(t,n):t.setAttribute(n,n),n}},wt.each(wt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||wt.find.attr;_e[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=_e[a],_e[a]=r,r=null!=n(t,e,i)?a:null,_e[a]=o),r}});var Se=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;wt.fn.extend({prop:function(t,e){return Dt(this,wt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[wt.propFix[t]||t]})}}),wt.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&wt.isXMLDoc(t)||(e=wt.propFix[e]||e,r=wt.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=wt.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),vt.optSelected||(wt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),wt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){wt.propFix[this.toLowerCase()]=this}),wt.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(yt(t))return this.each(function(e){wt(this).addClass(t.call(this,e,Z(this)))});if((e=K(t)).length)for(;n=this[l++];)if(r=Z(n),i=1===n.nodeType&&" "+Q(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=Q(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(yt(t))return this.each(function(e){wt(this).removeClass(t.call(this,e,Z(this)))});if(!arguments.length)return this.attr("class","");if((e=K(t)).length)for(;n=this[l++];)if(r=Z(n),i=1===n.nodeType&&" "+Q(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=Q(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):yt(t)?this.each(function(n){wt(this).toggleClass(t.call(this,n,Z(this),e),e)}):this.each(function(){var e,r,o,a;if(i)for(r=0,o=wt(this),a=K(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=Z(this))&&Vt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Vt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Q(Z(n))+" ").indexOf(e)>-1)return!0;return!1}});var Te=/\r/g;wt.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=yt(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,wt(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=wt.map(r,function(t){return null==t?"":t+""})),(e=wt.valHooks[this.type]||wt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=wt.valHooks[r.type]||wt.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Te,""):null==n?"":n:void 0}}),wt.extend({valHooks:{option:{get:function(t){var e=wt.find.attr(t,"value");return null!=e?e:Q(wt.text(t))}},select:{get:function(t){var e,n,i,r=t.options,a=t.selectedIndex,s="select-one"===t.type,l=s?null:[],c=s?a+1:r.length;for(i=a<0?c:s?a:0;i<c;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(e=wt(n).val(),s)return e;l.push(e)}return l},set:function(t,e){for(var n,i,r=t.options,o=wt.makeArray(e),a=r.length;a--;)((i=r[a]).selected=wt.inArray(wt.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),wt.each(["radio","checkbox"],function(){wt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=wt.inArray(wt(t).val(),e)>-1}},vt.checkOn||(wt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),vt.focusin="onfocusin"in t;var ke=/^(?:focusinfocus|focusoutblur)$/,Ae=function(t){t.stopPropagation()};wt.extend(wt.event,{trigger:function(e,n,i,r){var o,a,s,l,c,u,h,d,f=[i||at],p=pt.call(e,"type")?e.type:e,g=pt.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=i=i||at,3!==i.nodeType&&8!==i.nodeType&&!ke.test(p+wt.event.triggered)&&(p.indexOf(".")>-1&&(p=(g=p.split(".")).shift(),g.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[wt.expando]?e:new wt.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:wt.makeArray(n,[e]),h=wt.event.special[p]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!xt(i)){for(l=h.delegateType||p,ke.test(l+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(i.ownerDocument||at)&&f.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=f[o++])&&!e.isPropagationStopped();)d=a,e.type=o>1?l:h.bindType||p,(u=(Vt.get(a,"events")||{})[e.type]&&Vt.get(a,"handle"))&&u.apply(a,n),(u=c&&a[c])&&u.apply&&jt(a)&&(e.result=u.apply(a,n),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),n)||!jt(i)||c&&yt(i[p])&&!xt(i)&&((s=i[c])&&(i[c]=null),wt.event.triggered=p,e.isPropagationStopped()&&d.addEventListener(p,Ae),i[p](),e.isPropagationStopped()&&d.removeEventListener(p,Ae),wt.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(t,e,n){var i=wt.extend(new wt.Event,n,{type:t,isSimulated:!0});wt.event.trigger(i,null,e)}}),wt.fn.extend({trigger:function(t,e){return this.each(function(){wt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return wt.event.trigger(t,e,n,!0)}}),vt.focusin||wt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){wt.event.simulate(e,t.target,wt.event.fix(t))};wt.event.special[e]={setup:function(){var i=this.ownerDocument||this,r=Vt.access(i,e);r||i.addEventListener(t,n,!0),Vt.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Vt.access(i,e)-1;r?Vt.access(i,e,r):(i.removeEventListener(t,n,!0),Vt.remove(i,e))}}});var Me=t.location,Ee=Date.now(),Le=/\?/;wt.parseXML=function(e){var n;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||wt.error("Invalid XML: "+e),n};var Pe=/\[\]$/,Ne=/\r?\n/g,Oe=/^(?:submit|button|image|reset|file)$/i,Re=/^(?:input|select|textarea|keygen)/i;wt.param=function(t,e){var n,i=[],r=function(t,e){var n=yt(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!wt.isPlainObject(t))wt.each(t,function(){r(this.name,this.value)});else for(n in t)J(n,t[n],e,r);return i.join("&")},wt.fn.extend({serialize:function(){return wt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=wt.prop(this,"elements");return t?wt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!wt(this).is(":disabled")&&Re.test(this.nodeName)&&!Oe.test(t)&&(this.checked||!Yt.test(t))}).map(function(t,e){var n=wt(this).val();return null==n?null:Array.isArray(n)?wt.map(n,function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}}):{name:e.name,value:n.replace(Ne,"\r\n")}}).get()}});var De=/%20/g,Ie=/#.*$/,He=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fe=/^(?:GET|HEAD)$/,ze=/^\/\//,qe={},Ge={},Be="*/".concat("*"),$e=at.createElement("a");$e.href=Me.href,wt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Me.href,type:"GET",isLocal:Ve.test(Me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":wt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?nt(nt(t,wt.ajaxSettings),e):nt(wt.ajaxSettings,t)},ajaxPrefilter:tt(qe),ajaxTransport:tt(Ge),ajax:function(e,n){function i(e,n,i,s){var c,d,f,b,w,_=n;u||(u=!0,l&&t.clearTimeout(l),r=void 0,a=s||"",S.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(b=it(p,S,i)),b=rt(p,b,S,c),c?(p.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(wt.lastModified[o]=w),(w=S.getResponseHeader("etag"))&&(wt.etag[o]=w)),204===e||"HEAD"===p.type?_="nocontent":304===e?_="notmodified":(_=b.state,d=b.data,c=!(f=b.error))):(f=_,!e&&_||(_="error",e<0&&(e=0))),S.status=e,S.statusText=(n||_)+"",c?v.resolveWith(g,[d,_,S]):v.rejectWith(g,[S,_,f]),S.statusCode(x),x=void 0,h&&m.trigger(c?"ajaxSuccess":"ajaxError",[S,p,c?d:f]),y.fireWith(g,[S,_]),h&&(m.trigger("ajaxComplete",[S,p]),--wt.active||wt.event.trigger("ajaxStop")))}"object"==typeof e&&(n=e,e=void 0),n=n||{};var r,o,a,s,l,c,u,h,d,f,p=wt.ajaxSetup({},n),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?wt(g):wt.event,v=wt.Deferred(),y=wt.Callbacks("once memory"),x=p.statusCode||{},b={},w={},_="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=je.exec(a);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?a:null},setRequestHeader:function(t,e){return null==u&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==u&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)S.always(t[S.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||_;return r&&r.abort(e),i(0,e),this}};if(v.promise(S),p.url=((e||p.url||Me.href)+"").replace(ze,Me.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Nt)||[""],null==p.crossDomain){c=at.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=$e.protocol+"//"+$e.host!=c.protocol+"//"+c.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=wt.param(p.data,p.traditional)),et(qe,p,n,S),u)return S;(h=wt.event&&p.global)&&0==wt.active++&&wt.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Fe.test(p.type),o=p.url.replace(Ie,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(De,"+")):(f=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(Le.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(He,"$1"),f=(Le.test(o)?"&":"?")+"_="+Ee+++f),p.url=o+f),p.ifModified&&(wt.lastModified[o]&&S.setRequestHeader("If-Modified-Since",wt.lastModified[o]),wt.etag[o]&&S.setRequestHeader("If-None-Match",wt.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Be+"; q=0.01":""):p.accepts["*"]);for(d in p.headers)S.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(g,S,p)||u))return S.abort();if(_="abort",y.add(p.complete),S.done(p.success),S.fail(p.error),r=et(Ge,p,n,S)){if(S.readyState=1,h&&m.trigger("ajaxSend",[S,p]),u)return S;p.async&&p.timeout>0&&(l=t.setTimeout(function(){S.abort("timeout")},p.timeout));try{u=!1,r.send(b,i)}catch(t){if(u)throw t;i(-1,t)}}else i(-1,"No Transport");return S},getJSON:function(t,e,n){return wt.get(t,e,n,"json")},getScript:function(t,e){return wt.get(t,void 0,e,"script")}}),wt.each(["get","post"],function(t,e){wt[e]=function(t,n,i,r){return yt(n)&&(r=r||i,i=n,n=void 0),wt.ajax(wt.extend({url:t,type:e,dataType:r,data:n,success:i},wt.isPlainObject(t)&&t))}}),wt._evalUrl=function(t){return wt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},wt.fn.extend({wrapAll:function(t){var e;return this[0]&&(yt(t)&&(t=t.call(this[0])),e=wt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return yt(t)?this.each(function(e){wt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=wt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=yt(t);return this.each(function(n){wt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){wt(this).replaceWith(this.childNodes)}),this}}),wt.expr.pseudos.hidden=function(t){return!wt.expr.pseudos.visible(t)},wt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},wt.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var We={0:200,1223:204},Ue=wt.ajaxSettings.xhr();vt.cors=!!Ue&&"withCredentials"in Ue,vt.ajax=Ue=!!Ue,wt.ajaxTransport(function(e){var n,i;if(vt.cors||Ue&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(We[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),wt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),wt.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return wt.globalEval(t),t}}}),wt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),wt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,r){e=wt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),at.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Xe=[],Ye=/(=)\?(?=&|$)|\?\?/;wt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||wt.expando+"_"+Ee++;return this[t]=!0,t}}),wt.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,a,s=!1!==e.jsonp&&(Ye.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=yt(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ye,"$1"+r):!1!==e.jsonp&&(e.url+=(Le.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||wt.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always(function(){void 0===o?wt(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Xe.push(r)),a&&yt(o)&&o(a[0]),a=o=void 0}),"script"}),vt.createHTMLDocument=function(){var t=at.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),wt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,r,o;return e||(vt.createHTMLDocument?((i=(e=at.implementation.createHTMLDocument("")).createElement("base")).href=at.location.href,e.head.appendChild(i)):e=at),r=At.exec(t),o=!n&&[],r?[e.createElement(r[1])]:(r=S([t],e,o),o&&o.length&&wt(o).remove(),wt.merge([],r.childNodes))},wt.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=Q(t.slice(s)),t=t.slice(0,s)),yt(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&wt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?wt("<div>").append(wt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},wt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){wt.fn[e]=function(t){return this.on(e,t)}}),wt.expr.pseudos.animated=function(t){return wt.grep(wt.timers,function(e){return t===e.elem}).length},wt.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c=wt.css(t,"position"),u=wt(t),h={};"static"===c&&(t.style.position="relative"),s=u.offset(),o=wt.css(t,"top"),l=wt.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),yt(e)&&(e=e.call(t,n,wt.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):u.css(h)}},wt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){wt.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===wt.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===wt.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=wt(t).offset()).top+=wt.css(t,"borderTopWidth",!0),r.left+=wt.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-wt.css(i,"marginTop",!0),left:e.left-r.left-wt.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===wt.css(t,"position");)t=t.offsetParent;return t||te})}}),wt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;wt.fn[t]=function(i){return Dt(this,function(t,i,r){var o;if(xt(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),wt.each(["top","left"],function(t,e){wt.cssHooks[e]=I(vt.pixelPosition,function(t,n){if(n)return n=D(t,e),le.test(n)?wt(t).position()[e]+"px":n})}),wt.each({Height:"height",Width:"width"},function(t,e){wt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){wt.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return Dt(this,function(e,n,r){var o;return xt(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?wt.css(e,n,s):wt.style(e,n,r,s)},e,a?r:void 0,a)}})}),wt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){wt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),wt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),wt.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),wt.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),yt(t))return i=lt.call(arguments,2),r=function(){return t.apply(e||this,i.concat(lt.call(arguments)))},r.guid=t.guid=t.guid||wt.guid++,r},wt.holdReady=function(t){t?wt.readyWait++:wt.ready(!0)},wt.isArray=Array.isArray,wt.parseJSON=JSON.parse,wt.nodeName=o,wt.isFunction=yt,wt.isWindow=xt,wt.camelCase=p,wt.type=i,wt.now=Date.now,wt.isNumeric=function(t){var e=wt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return wt});var Qe=t.jQuery,Ze=t.$;return wt.noConflict=function(e){return t.$===wt&&(t.$=Ze),e&&t.jQuery===wt&&(t.jQuery=Qe),wt},e||(t.jQuery=t.$=wt),wt}),define("config",["jquery"],function(t){function e(t){"undefined"!=typeof Storage&&window.swish.config_hash&&localStorage.setItem(i,JSON.stringify({hash:window.swish.config_hash,config:t}))}var n,i="SWISHCONFIG";return n||(n=function(){if("undefined"!=typeof Storage&&window.swish.config_hash){var t;if((t=localStorage.getItem(i))&&(value=JSON.parse(t),value.hash==window.swish.config_hash))return value.config}}())||t.ajax("swish_config.json",{dataType:"json",async:!1,success:function(t){n=t,e(n)},error:function(){alert("Failed to fetch configuration from server")}}),n}),define("preferences",["jquery"],function(t){function e(){var t=localStorage.getItem("notagain")||"[]";try{data=JSON.parse(t),"object"!=typeof data&&(data=[])}catch(t){data=[]}return data}var n="undefined"!=typeof Storage,i={},r={},o={persistent:function(){return n},setNotAgain:function(t){if(n){var i=e();i.indexOf(t)<0&&(i.push(t),localStorage.setItem("notagain",JSON.stringify(i)))}},notagain:function(t){if(n){return e().indexOf(t)>=0}return!1},broadcast:function(e,n){var i;if(void 0==r.name)i=".swish-event-receiver";else{if(null==r.name)return;i=r.name}t(i).trigger("preference",{name:e,value:n})},setVal:function(t,e){n&&localStorage.setItem(t,JSON.stringify(e)),this.broadcast(t,e)},setDefault:function(t,e){i[t]=e},setInform:function(t,e){r[t]=e},getVal:function(t){if(n){var e;if(e=localStorage.getItem(t))return value=JSON.parse(e),value}return i[t]},setDocVal:function(t,e,n){var i=o.getVal(t)||{};i[e]=n,o.setVal(t,i)},getDocVal:function(t,e,n){var i=o.getVal(t)||{};return void 0===i[e]?n:i[e]}};return o}),define("links",["jquery","config","modal"],function(t,e,n){var i={PlDoc:function(e,n){if(e){var i=function(t){var e,n={};if((e=t.indexOf(":"))>0&&(n.module=t.substring(0,e),t=t.slice(e+1)),(e=t.indexOf("/"))>0&&(n.name=t.substring(0,e),"/"==t.charAt(e+1)?n.arity=parseInt(t.slice(e+2))+2:n.arity=parseInt(t.slice(e+1)),!isNaN(n.arity)))return n}(decodeURIComponent(e));if(i)return t(n.target).closest("#ajaxModal").modal("hide"),t(".swish-event-receiver").trigger("pldoc",i),n.preventDefault(),!0}return!1},runQueryLink:function(e,i){function r(t){for(var e=0;e<l.length;e++)if(l[e].toLowerCase()==t.toLowerCase())return l[e];h.push(t)}var o=e.closest(".notebook"),a=e.data("query"),s=o.find('.nb-cell[name="'+a+'"]');if(s){var l=t().prologEditor("variables",s.nbCell("text"),!0),c="",u={},h=[];t.each(e.data(),function(t,e){var n;"query"!==t&&(n=r(t))&&(""!=c&&(c+=", "),c+=n+" = ("+e+")")}),h.length>0&&n.feedback({owner:o,type:"warning",duration:3e3,html:"The variables <b>"+h.join(", ")+"</b> do not appear in query <b>"+a+"</b>"}),""!=c&&(u.bindings=c),s.nbCell("run",u)}},followLink:function(n){function r(){a=!0,n.preventDefault(),t(n.target).closest("#ajaxModal").modal("hide")}var o=t(n.target).closest("a"),a=!1;if(o.attr("href")){var s,l=e.http.locations.swish+"p/",c=e.http.locations.swish+"example/",u=o.attr("href");if(u.startsWith(l)&&!u.match(/#/))r(),file=u.slice(l.length),t(n.target).closest(".swish").swish("playFile",file);else if(o.hasClass("store"))r(),s.alert("File does not appear to come from gitty store?");else if(o.hasClass("file")||u.startsWith(c)&&!u.match(/#/))r(),t(n.target).closest(".swish").swish("playURL",{url:u});else if(o.hasClass("builtin")&&u.match(/predicate=/))a=i.PlDoc(u.split("predicate=").pop(),n);else if(u.match(/object=/))a=i.PlDoc(u.split("object=").pop(),n);else if(1==(s=t(n.target).closest("#ajaxModal")).length&&u.match(/#/)){var h,d=u.split("#").pop();1==(h=s.find("#"+d)).length&&(a=!0,n.preventDefault(),s.animate({scrollTop:h.position().top},2e3))}a||(n.preventDefault(),window.open(u,"_blank"))}else o.data("query")&&i.runQueryLink(o,n)}};return i}),function(t){function e(){for(var t=document.createElement(arguments[0]),e=1;e<arguments.length;e++){var i=arguments[e];if(null!==i&&void 0!==i)if(1===i.nodeType)t.appendChild(i);else if(""===i||i&&i.charCodeAt&&i.substr||0===i||i&&i.toExponential&&i.toFixed)t.appendChild(document.createTextNode(i));else if(1===e&&"object"==typeof i){for(var r in i)if(i.hasOwnProperty(r)){var o=i[r];if(null!==o&&void 0!==o){r=r.toLowerCase(),r=n[r]||r;var a="o"===r.charAt(0)&&"n"===r.charAt(1);a?(void 0===i.href&&"onclick"===r&&t.setAttribute("href","#"),t[r]=o):"style"===r&&t.style.setAttribute?t.style.setAttribute("cssText",o):"className"===r||"htmlFor"===r?t[r]=o:t.setAttribute(r,o)}}}else if("[object Array]"===Object.prototype.toString.call(i))for(var s=0;s<i.length;s++){var l=i[s];1===l.nodeType&&t.appendChild(l)}}return t.appendTo=function(t){return 1===t.nodeType&&1===this.nodeType&&t.appendChild(this),this},t}var n={acceptcharset:"acceptCharset",accesskey:"accessKey",allowtransparency:"allowTransparency",bgcolor:"bgColor",cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",classname:"className",colspan:"colSpan",csstext:"style",defaultchecked:"defaultChecked",defaultselected:"defaultSelected",defaultvalue:"defaultValue",for:"htmlFor",frameborder:"frameBorder",hspace:"hSpace",htmlfor:"htmlFor",longdesc:"longDesc",maxlength:"maxLength",marginwidth:"marginWidth",marginheight:"marginHeight",noresize:"noResize",noshade:"noShade",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",valign:"vAlign",vspace:"vSpace"};e.registerElement=function(t,n){e[t]||(e[t]=function(){var i=e("div",{class:t});return n.apply(i,Array.prototype.slice.call(arguments)),i})};for(var i=["acronym","applet","basefont","big","center","dir","font","frame","frameset","noframes","strike","tt","u","xmp"],r=["a","abbr","address","area","article","aside","audio","b","base","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","legend","li","link","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","picture","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","ul","var","video","wbr"].concat(i),o=0;o<r.length;o++)e[r[o]]=function(t){return function(){return e.apply(this,[t].concat(Array.prototype.slice.call(arguments)))}}(r[o]);if("undefined"!=typeof module&&module.exports)module.exports=e;else{var a=t.$||{};a.el=e,t.$=a}}(this),define("laconic",["jquery"],function(){}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||t(i).trigger(t.support.transition.end)};return setTimeout(r,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof e&&r[e].call(n)})}var n='[data-dismiss="alert"]',i=function(e){t(e).on("click",n,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(e){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=t(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var a=t("#"===o?[]:o);e&&e.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=r,this},t(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof e&&e
-;r||i.data("bs.button",r=new n(this,o)),"toggle"==e?r.toggle():e&&r.setState(e)})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=t(n.target).closest(".btn");e.call(i,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof e?r.to(e):a?r[a]():o.interval&&r.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i="prev"==t?-1:1,r=(n+i)%this.$items.length;return this.$items.eq(r)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(e,r),a=this.interval,s="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([e,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(n){var i,r=t(this),o=t(r.attr("data-target")||(i=r.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),e.call(o,a),s&&o.data("bs.carousel").to(s),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery),function(t){"use strict";function e(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)}function n(e){return this.each(function(){var n=t(this),r=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!r&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof e&&r[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(e=r.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),e||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[a](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,i){var r=t(i);this.addAriaAndCollapsedClass(e(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=t(this);r.attr("data-target")||i.preventDefault();var o=e(r),a=o.data("bs.collapse"),s=a?"toggle":r.data();n.call(o,s)})}(jQuery),function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()}function n(n){n&&3===n.which||(t(r).remove(),t(o).each(function(){var i=t(this),r=e(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target)||(r.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function i(e){return this.each(function(){var n=t(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof e&&i[e].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(i){var r=t(this);if(!r.is(".disabled, :disabled")){var o=e(r),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var s={relatedTarget:this};if(o.trigger(i=t.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=t(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=e(i),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var s=r.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var s=t.fn.dropdown;t.fn.dropdown=i,t.fn.dropdown.Constructor=a,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,a.prototype.toggle).on("keydown.bs.dropdown.data-api",o,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);o||r.data("bs.modal",o=new n(this,a)),"string"==typeof e?o[e](i):a.show&&o.show(i)})}var n=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},n.prototype.show=function(e){var i=this,r=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(e){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else e&&e()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=n,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=t(this),r=i.attr("href"),o=t(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},o.data(),i.data());i.is("a")&&n.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),e.call(o,a,this)})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tooltip"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.tooltip",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var r=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(s);c&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var u=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(c){var f=s,p=this.getPosition(this.$viewport);s="bottom"==s&&u.bottom+d>p.bottom?"top":"top"==s&&u.top-d<p.top?"bottom":"right"==s&&u.right+h>p.width?"left":"left"==s&&u.left-h<p.left?"right":s,o.removeClass(f).addClass(s)}var g=this.getCalculatedOffset(s,u,h,d);this.applyPlacement(g,s);var m=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(n.TRANSITION_DURATION):m()}},n.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=o&&(e.top=e.top+o-c);var u=this.getViewportAdjustedDelta(n,e,l,c);u.left?e.left+=u.left:e.top+=u.top;var h=/top|bottom/.test(n),d=h?2*u.left-r+l:2*u.top-o+c,f=h?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(d,i[0][f],h)},n.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},n.prototype.hide=function(e){function i(){"in"!=r.hoverState&&o.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),e&&e()}var r=this,o=t(this.$tip),a=t.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),this.hoverState=null,this},n.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(e){e=e||this.$element;var n=e[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:o?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,l,a)},n.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},n.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var c=e.left-o,u=e.left+o+n;c<a.left?r.left=a.left-c:u>a.right&&(r.left=a.left+a.width-u)}return r},n.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},n.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var i=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof e&&r[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof e&&r[e]()})}var n=function(e){this.element=t(e)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=e.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(e,i,r){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=i.find("> .active"),s=r&&t.support.transition&&(a.length&&a.hasClass("fade")||!!i.find("> .fade").length)
-;a.length&&s?a.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),a.removeClass("in")};var i=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof e&&e;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof e&&r[e]()})}var n=function(e,i){this.options=t.extend({},n.DEFAULTS,i),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-i)&&"bottom";var s=null==this.affixed,l=s?r:o.top,c=s?a:e;return null!=n&&r<=n?"top":null!=i&&l+c>=t-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,e,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-e-o})}};var i=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),e.call(n,i)})})}(jQuery),define("bootstrap",["jquery"],function(){}),define("modal",["jquery","config","preferences","links","form","laconic","bootstrap"],function(t,e,n,i,r){!function(t){function o(e){e.hasClass("modal")||(e=e.closest(".modal")),e.find("[data-notagain]").each(function(){if(t(this).prop("checked"))return n.setNotAgain(t(this).attr("data-notagain")),!1})}function a(){var e=t.el.button({type:"button",class:"close","data-dismiss":"modal"});return t(e).html("&times;").on("click",function(e){e.preventDefault(),o(t(e.target))}),e}function s(e){return e.notagain&&n.persistent()?t.el.label(t.el.input({type:"checkbox","data-notagain":e.notagain,name:"dismiss"})," Don't show again!"):""}function l(){t(this).find(".tm-input").each(function(){var e=t(this),n=e.data("prefilled"),i={};n&&(i.prefilled=n),e.tagsManager(i)})}var c={_init:function(e){return this.each(function(){var e=t(this);e.addClass("swish-event-receiver"),e.on("help",function(t,n){e.swishModal("showHelp",n)}),e.on("pldoc",function(t,n){e.swishModal("showPlDoc",n)}),e.on("form",function(t,n){e.swishModal("showForm",n)}),e.on("dialog",function(t,n){e.swishModal("show",n)}),e.on("error",function(t,n){e.swishModal("show",n)}),e.on("alert",function(t,n){e.swishModal("show",{title:"<span class='glyphicon glyphicon-warning-sign'></span>",body:n})}),e.on("ajaxError",function(t,n){e.swishModal("showAjaxError",n)}),e.on("feedback",function(t,n){e.swishModal("feedback",n)}),e.on("show",function(t,n){e.swishModal("show",n)}),e.on("server_form",function(t,n){e.swishModal("server_form",n)})})},showHelp:function(i){var r=this;i.notagain&&n.notagain(i.notagain)||t.ajax({url:e.http.locations.help+"/"+i.file,dataType:"html",success:function(e){var n=t("<div>");n.html(e),r.swishModal("show",t.extend({title:n.find("title").text(),body:n},i))}})},showForm:function(n){var i=this;t.ajax({url:e.http.locations.form+"/"+n.file,dataType:"html",success:function(e){var r=t("<div>");r.html(e),i.swishModal("show",t.extend({title:r.find("legend").text(),body:r},n))}})},showPlDoc:function(t){function n(t){var n="("+t.name+")/"+t.arity;return t.module&&(n=t.module+":"+n),e.http.locations.pldoc_doc_for+"?header=false&object="+encodeURIComponent(n)}function i(t,e){return t.parents("div.modal-dialog").addClass("swish-embedded-manual"),"<iframe class='swish-embedded-manual' onload='javascript:resizeIframe(this);' src='"+e+"'></iframe>"}var r={title:"SWI-Prolog manual",body:function(){return i(this,n(t))}};return this.swishModal("show",r)},show:function(e){var r=t.el.div({class:"modal-body"}),c=t.el.h2(),u=t.el.div({class:"modal-content"},t.el.div({class:"modal-header"},s(e),a(),c),r),h=t.el.div({class:"modal fade",id:"ajaxModal",tabindex:-1,role:"dialog"},t.el.div({class:"modal-dialog"},u));if(e.notagain&&n.persistent()&&t(u).append(t.el.div({class:"modal-footer"},s(e))),r=t(r),"function"==typeof e.body){var d=e.body.call(r);d&&r.append(d)}else r.html(e.body);return t(c).html(e.title),t(h).modal({show:!0}).on("click","a",i.followLink).on("shown.bs.modal",l).on("hidden.bs.modal",function(){e.onclose&&e.onclose(),o(t(this)),t(this).remove()}),this},server_form:function(e){var n=t(this);return void 0===r&&(r=require("form")),this.swishModal("show",{title:e.title,body:function(){elem=t(this),t.ajax({url:e.url,data:e.data,success:function(t){elem.append(t)},error:function(t){n.swishModal("showAjaxError",t)}}),elem.on("click","button[data-action]",function(i){var o=t(i.target).closest("form"),a=r.serializeAsObject(o,!0),s=t(i.target).closest("button");return 0==s.data("form_data")?t.ajax({url:s.data("action"),success:function(t){return s.closest(".modal").modal("hide"),e.onreply&&e.onreply.call(s[0],t),i.preventDefault(),!1},error:function(t){n.swishModal("showAjaxError",t)}}):t.ajax({url:s.data("action"),data:JSON.stringify(a),dataType:"json",contentType:"application/json",type:"POST",success:function(t){if("success"==t.status)return s.closest(".modal").modal("hide"),e.onreply&&e.onreply.call(s[0],t),i.preventDefault(),!1;"error"==t.status?r.formError(o,t.error):alert("Updated failed: "+JSON.serializeAsObject(t))},error:function(t){n.swishModal("showAjaxError",t)}}),i.preventDefault(),!1})}})},showAjaxError:function(e){var n=t.el.div();t(n).html(e.responseText);var i=t(n).find("h1"),r=i.text()||"Server error";i.remove();var o={title:r,body:n};this.swishModal("show",o)},feedback:function(e){var n=t.el.div({class:"feedback "+e.type||""});return t(n).html(e.html),t(e.owner||"body").append(n),setTimeout(function(){t(n).hide(400,function(){t(n).remove()})},e.duration||1500),this}};window.resizeIframe=function(t){t.style.height=0,t.style.height=t.contentWindow.document.body.scrollHeight+20+"px"},t.fn.swishModal=function(e){return c[e]?c[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.swishModal"):c._init.apply(this,arguments)}}(jQuery);var o=1;return{ajaxError:function(e){t(".swish-event-receiver").trigger("ajaxError",e)},feedback:function(e){t(".swish-event-receiver").trigger("feedback",e)},alert:function(e){t(".swish-event-receiver").trigger("alert",e)},help:function(e){t(".swish-event-receiver").trigger("help",e)},show:function(e){t(".swish-event-receiver").trigger("show",e)},server_form:function(e){t(".swish-event-receiver").trigger("server_form",e)},notify:function(e,n){var i="ntf-"+(n.wsid||o++),r=t.el.div({class:"notification notify-arrow",id:i}),a=e.offset();if(t("body").append(r),n.html?t(r).html(n.html):n.dom&&t(r).append(n.dom),t(r).css({left:a.left+e.width()-t(r).outerWidth()+15,top:a.top+e.height()+12}).on("click",function(){t(r).remove()}).show(n.fadeIn||400),0!==n.time){var s=n.time;s||(s=e.hasClass("myself")?1e3:5e3),setTimeout(function(){t(r).hide(n.fadeOut||400,function(){t("#"+i).remove(),n.onremove&&n.onremove(n),e.chat("unnotify",n.wsid)})},s)}}}}),function(t){"use strict";var e={prefilled:null,CapitalizeFirstLetter:!1,preventSubmitOnEnter:!0,isClearInputOnEsc:!0,externalTagId:!1,prefillIdFieldName:"Id",prefillValueFieldName:"Value",AjaxPush:null,AjaxPushAllTags:null,AjaxPushParameters:null,delimiters:[9,13,44],backspace:[8],maxTags:0,hiddenTagListName:null,hiddenTagListId:null,replace:!0,output:null,deleteTagsOnBackspace:!0,tagsContainer:null,tagCloseIcon:"x",tagClass:"",validator:null,onlyTagList:!1,tagList:null,fillInputOnTagRemove:!1},n={pushTag:function(e,n,r){var o,a,s,l,c,u,h,d,f,p,g,m=t(this),v=m.data("opts"),y=m.data("tlis"),x=m.data("tlid");if((e=i.trimTag(e,v.delimiterChars))&&!(e.length<=0)){if(v.onlyTagList&&void 0!==v.tagList&&v.tagList){var b=v.tagList;t.each(b,function(t,e){b[t]=e.toLowerCase()});if(-1===t.inArray(e.toLowerCase(),b))return}if(v.CapitalizeFirstLetter&&e.length>1&&(e=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()),v.validator&&!v.validator(e))return void m.trigger("tm:invalid",e);if(!(v.maxTags>0&&y.length>=v.maxTags)){if(o=!1,a=jQuery.map(y,function(t){return t.toLowerCase()}),c=t.inArray(e.toLowerCase(),a),-1!==c&&(o=!0),o)if(m.trigger("tm:duplicated",e),v.blinkClass)for(var w=0;w<6;++w)t("#"+m.data("tm_rndid")+"_"+x[c]).queue(function(e){t(this).toggleClass(v.blinkClass),e()}).delay(100);else t("#"+m.data("tm_rndid")+"_"+x[c]).stop().animate({backgroundColor:v.blinkBGColor_1},100).animate({backgroundColor:v.blinkBGColor_2},100).animate({backgroundColor:v.blinkBGColor_1},100).animate({backgroundColor:v.blinkBGColor_2},100).animate({backgroundColor:v.blinkBGColor_1},100).animate({backgroundColor:v.blinkBGColor_2},100);else!0===v.externalTagId?(void 0===r&&t.error("externalTagId is not passed for tag -"+e),l=r):(s=Math.max.apply(null,x),s=s===-1/0?0:s,l=++s),n||m.trigger("tm:pushing",[e,l]),y.push(e),x.push(l),n||null!==v.AjaxPush&&null==v.AjaxPushAllTags&&-1===t.inArray(e,v.prefilled)&&t.post(v.AjaxPush,t.extend({tag:e},v.AjaxPushParameters)),u=m.data("tm_rndid")+"_"+l,h=m.data("tm_rndid")+"_Remover_"+l,d=t("<span/>").text(e).html(),f='<span class="'+i.tagClasses.call(m)+'" id="'+u+'">',f+="<span>"+d+"</span>",f+='<a href="#" class="tm-tag-remove" id="'+h+'" TagIdToRemove="'+l+'">',f+=v.tagCloseIcon+"</a></span> ",p=t(f),null!==v.tagsContainer?t(v.tagsContainer).append(p):x.length>1?(g=m.siblings("#"+m.data("tm_rndid")+"_"+x[x.length-2]),g.after(p)):m.before(p),p.find("#"+h).on("click",m,function(e){e.preventDefault();var n=parseInt(t(this).attr("TagIdToRemove"));i.spliceTag.call(m,n,e.data)}),i.refreshHiddenTagList.call(m),n||m.trigger("tm:pushed",[e,l]),i.showOrHide.call(m);m.val("")}}},popTag:function(){var e,n,r=t(this),o=r.data("tlis"),a=r.data("tlid");a.length>0&&(e=a.pop(),n=o[o.length-1],r.trigger("tm:popping",[n,e]),o.pop(),t("#"+r.data("tm_rndid")+"_"+e).remove(),i.refreshHiddenTagList.call(r),r.trigger("tm:popped",[n,e]))},empty:function(){for(var e,n=t(this),r=n.data("tlis"),o=n.data("tlid");o.length>0;)e=o.pop(),r.pop(),t("#"+n.data("tm_rndid")+"_"+e).remove(),i.refreshHiddenTagList.call(n);n.trigger("tm:emptied",null),i.showOrHide.call(n)},tags:function(){return this.data("tlis")}},i={showOrHide:function(){var t=this,e=t.data("opts"),n=t.data("tlis");e.maxTags>0&&n.length<e.maxTags&&(t.show(),t.trigger("tm:show")),e.maxTags>0&&n.length>=e.maxTags&&(t.hide(),t.trigger("tm:hide"))},tagClasses:function(){var e,n=t(this),i=n.data("opts"),r=i.tagBaseClass,o=i.inputBaseClass;return e=r,n.attr("class")&&t.each(n.attr("class").split(" "),function(t,n){-1!==n.indexOf(o+"-")&&(e+=" "+r+n.substring(o.length))}),e+=i.tagClass?" "+i.tagClass:""},trimTag:function(e,n){var i;for(e=t.trim(e),i=0;i<e.length&&-1===t.inArray(e.charCodeAt(i),n);i++);return e.substring(0,i)},refreshHiddenTagList:function(){var e=t(this),n=e.data("tlis"),i=e.data("lhiddenTagList");i&&t(i).val(n.join(e.data("opts").baseDelimiter)).change(),e.trigger("tm:refresh",n.join(e.data("opts").baseDelimiter))},killEvent:function(t){t.cancelBubble=!0,t.returnValue=!1,t.stopPropagation(),t.preventDefault()},keyInArray:function(e,n){return-1!==t.inArray(e.which,n)},applyDelimiter:function(e){var i=t(this);n.pushTag.call(i,t(this).val()),e.preventDefault()},prefill:function(e){var i=t(this),r=i.data("opts");t.each(e,function(t,e){!0===r.externalTagId?n.pushTag.call(i,e[r.prefillValueFieldName],!0,e[r.prefillIdFieldName]):n.pushTag.call(i,e,!0)})},pushAllTags:function(e,n){var i=t(this),r=i.data("opts"),o=i.data("tlis");r.AjaxPushAllTags&&("tm:pushed"===e.type&&-1!==t.inArray(n,r.prefilled)||t.post(r.AjaxPush,t.extend({tags:o.join(r.baseDelimiter)},r.AjaxPushParameters)))},spliceTag:function(e){var n,r=this,o=r.data("tlis"),a=r.data("tlid"),s=t.inArray(e,a);-1!==s&&(n=o[s],r.trigger("tm:splicing",[n,e]),t("#"+r.data("tm_rndid")+"_"+e).remove(),o.splice(s,1),a.splice(s,1),i.refreshHiddenTagList.call(r),r.trigger("tm:spliced",[n,e])),i.showOrHide.call(r)},init:function(r){var o,a,s=t.extend({},e,r);return s.hiddenTagListName=null===s.hiddenTagListName?"hidden-"+this.attr("name"):s.hiddenTagListName,o=s.delimeters||s.delimiters,a=[9,13,17,18,19,37,38,39,40],s.delimiterChars=[],s.delimiterKeys=[],t.each(o,function(e,n){-1!==t.inArray(n,a)?s.delimiterKeys.push(n):s.delimiterChars.push(n)}),s.baseDelimiter=String.fromCharCode(s.delimiterChars[0]||44),s.tagBaseClass="tm-tag",s.inputBaseClass="tm-input",t.isFunction(s.validator)||(s.validator=null),this.each(function(){var e=t(this),r="",o="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";if(e.data("tagManager"))return!1;e.data("tagManager",!0);for(var l=0;l<5;l++)o+=a.charAt(Math.floor(Math.random()*a.length));if(e.data("tm_rndid",o),e.data("opts",s).data("tlis",[]).data("tlid",[]),null===s.output?(r=t("<input/>",{type:"hidden",name:s.hiddenTagListName}),e.after(r),e.data("lhiddenTagList",r)):e.data("lhiddenTagList",t(s.output)),s.AjaxPushAllTags&&(e.on("tm:spliced",i.pushAllTags),e.on("tm:popped",i.pushAllTags),e.on("tm:pushed",i.pushAllTags)),e.on("focus keypress",function(e){t(this).popover&&t(this).popover("hide")}),s.isClearInputOnEsc&&e.on("keyup",function(e){27===e.which&&(t(this).val(""),i.killEvent(e))}),e.on("keypress",function(t){i.keyInArray(t,s.delimiterChars)&&i.applyDelimiter.call(e,t)}),e.on("keydown",function(t){13===t.which&&s.preventSubmitOnEnter&&i.killEvent(t),i.keyInArray(t,s.delimiterKeys)&&i.applyDelimiter.call(e,t)}),s.deleteTagsOnBackspace&&e.on("keydown",function(r){i.keyInArray(r,s.backspace)&&t(this).val().length<=0&&(n.popTag.call(e),i.killEvent(r))}),s.fillInputOnTagRemove&&e.on("tm:popped",function(e,n){t(this).val(n)}),e.change(function(t){/webkit/.test(navigator.userAgent.toLowerCase())||e.focus(),i.killEvent(t)}),null!==s.prefilled)"object"==typeof s.prefilled?i.prefill.call(e,s.prefilled):"string"==typeof s.prefilled?i.prefill.call(e,s.prefilled.split(s.baseDelimiter)):"function"==typeof s.prefilled&&i.prefill.call(e,s.prefilled());else if(null!==s.output){if(t(s.output)&&t(s.output).val()){t(s.output)}i.prefill.call(e,t(s.output).val().split(s.baseDelimiter))}}),this}};t.fn.tagsManager=function(e){var r=t(this);return 0 in this?n[e]?n[e].apply(r,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?(t.error("Method "+e+" does not exist."),!1):i.init.apply(this,arguments):this}}(jQuery),define("tagmanager",["jquery"],function(){}),define("form",["jquery","config","modal","laconic","tagmanager"],function(t,e,n){function i(t){return void 0===t&&(t=u),"col-xs-"+(12-t)}function r(e,n,i){return i=i||u,t.el.label({class:"control-label col-xs-"+i,for:e},n)}function o(e,n){var i={name:e,type:"checkbox"};return n=n||{},n.checked&&(i.checked="checked"),n.title&&(i.title=n.title),t.el.input(i)}function a(e,n){var i={name:e,type:"text",class:"form-control"};return n=n||{},n.placeholder&&(i.placeholder=n.placeholder),n.title&&(i.title=n.title),n.value&&(i.value=n.value),n.disabled&&(i.disabled=n.disabled),n.readonly&&(i.readonly=n.readonly),n.type&&(i.type=n.type),t.el.input(i)}function s(e,n,i){var r={name:e,type:"text",class:"tm-input tag-list"};n&&(r.placeholder=n);var o=t.el.input(r);return i&&t(o).data("prefilled",i),o}function l(e,n){var i={name:e,class:"form-control"};return n=n||{},n.placeholder&&(i.placeholder=n.placeholder),t.el.textarea(i,n.value||"")}function c(e,n,i){var r=t(t.el.select({class:"form-control",name:e}));i=i||{};for(var o=0;o<n.length;o++)!function(e){if("string"==typeof e)e==i.value?r.append(t.el.option({selected:"selected"},e)):r.append(t.el.option(e));else{var n={value:e.value};e.value==i.value&&(n.selected="selected"),r.append(t.el.option(n,e.label))}}(n[o]);return r[0]}var u=3,h={serializeAsObject:function(e,n){var i=e.serializeArray(),r=[],o={};e.find("div.checkboxes.array").each(function(){var e=t(this),n=[];e.find("input:checked").each(function(){var e=t(this).attr("name");n.push(e)}),e.find("input").each(function(){var e=t(this).attr("name");r.push(e)}),o[e.attr("name")]=n});for(var a=0;a<i.length;a++){var s,l=i[a].name,c=i[a].value,u=e.find('[name="'+l+'"]'),h=u.prop("type");(s=u.data("json-value"))?o[l]=s:""==c&&1!=n||("hidden"==h&&0==l.indexOf("hidden-")?(l=l.slice("hidden-".length),void 0==o[l]?o[l]=c.split(","):o[l]=c.split(",").concat(o[l])):"text"==h&&u.hasClass("tag-list")?""!=c&&(void 0!==o[l]?o[l].push(c):o[l]=[c]):"number"==h?o[l]=parseInt(c):"checkbox"==h?-1==r.indexOf(l)&&(o[l]="on"==c):o[l]=c)}return e.find("[type=checkbox]").each(function(){var e=t(this),n=e.prop("name");1!=e.prop("disabled")&&void 0===o[n]&&-1==r.indexOf(n)&&(o[n]=!1)}),o},formError:function(t,e){if(t.find(".has-error").removeClass("has-error"),t.find(".help-block.with-errors").remove(),e)if("form_error"==e.code||"input_error"==e.code){errors=e.data.split("\n");for(var i=0;i<errors.length;i++){var r=errors[i].split(/:\s*(.*)?/);h.fieldError(t,r[0],r[1])}}else n.alert(e.data)},fieldError:function(e,n,i){var r=e.find("input[name="+n+"]");if(r.length>0){var o=r.closest(".form-group");r.parent().hasClass("input-group")&&(r=r.parent()),o.addClass("has-error"),r.after(t.el.p({class:"help-block with-errors"},i))}else alert("Missing value for "+n)},showDialog:function(e){t(".swish-event-receiver").trigger("dialog",e)},formBroadcast:function(e,n){t(".swish-event-receiver").trigger(e,n)},dyn_clear:function(e,n){e.find('.has-clear input[type="text"]').on("input propertychange",function(){var e=t(this),n=Boolean(e.val());e.siblings(".form-control-clear").toggleClass("hidden",!n)}).trigger("propertychange"),e.find(".form-control-clear").click(function(){var e=t(this).siblings('input[type="text"]');e.val("").trigger("propertychange").focus(),n&&n.call(e)})},fields:{fileName:function(n,s,l,c){var u,h,d,f="(leave empty for generated random name)",p=e.swish.community_examples&&void 0!=l;u=p?"Public | Example | name":"Public | name";var g=t.el.div({class:"form-group"},r("name",u),t.el.div({class:i()},t.el.div({class:"input-group"},t.el.span({class:"input-group-addon",title:"If checked, other users can find this program"},o("public",{checked:s})),p?t.el.span({class:"input-group-addon",title:"If checked, add to examples menu"},o("example",{checked:l})):void 0,d=a("name",{placeholder:"Name "+f,title:"Public name of your program",value:n,disabled:c}),n?h=t.el.span({class:"input-group-btn"},t.el.button({class:"btn btn-success",type:"button"},"Fork")):void 0)));return h&&t(h).on("click",function(){var e=t(d).closest("form").find(".btn.btn-primary");t(d).attr("placeholder","Fork as "+f),t(d).val(""),e.text(e.text().replace("Update","Fork"))}),g},title:function(e){return t.el.div({class:"form-group"},r("title","Title"),t.el.div({class:i()},a("title",{placeholder:"Descriptive title",value:e})))},author:function(e,n){var o={placeholder:"Your name",value:e};return e&&n&&(o.readonly=!0,o.title="Verified author name"),t.el.div({class:"form-group"},r("author","Author"),t.el.div({class:i()},a("author",o)))},link:function(e){var n={readonly:!0,title:"Permalink",value:e};return t.el.div({class:"form-group"},r("link","Link"),t.el.div({class:i()},a("link",n)))},date:function(e,n,o){return o=o||r,t.el.div({class:"form-group"},r(o,n),t.el.div({class:i()},a(o,{disabled:!0,value:new Date(1e3*e).toLocaleString()})))},description:function(e){return t.el.div({class:"form-group"},r("description","Description"),t.el.div({class:i()},l("description",{value:e})))},commit_message:function(e){return t.el.div({class:"form-group"},r("commit_message","Changes"),t.el.div({class:i()},l("commit_message",{value:e,placeholder:"Describe your changes here"})))},description:function(e){return t.el.div({class:"form-group"},r("description","Description"),t.el.div({class:i()},l("description",{value:e,placeholder:"Description"})))},tags:function(e){return t.el.div({class:"form-group"},r("tags","Tags"),t.el.div({class:i()},s("tags","Tags help finding this code",e)))},modify:function(t,e){function n(n,r){i.push({name:n,label:r,value:-1!=t.indexOf(n),readonly:!e})}var i=[],r={name:"modify",label:"Can save new version",type:"array"};return n("any","Anyone"),n("login","Logged in users"),n("owner","Only me"),r.title=e?"Specify who can save an updated version of this file":"Only logged in users and owners can set permissions",h.fields.checkboxes(i,r)},follow:function(t){return h.fields.checkboxes([{name:"follow",label:"Follow this document",value:!!t,readonly:!t}],{name:"options",label:"",title:"Notify about activity (updates, chat)\nRequires being logged in with valid email"})},projection:function(e){return t.el.div({class:"form-group"},r("projection","Projection"),t.el.div({class:i()},a("projection",{placeholder:"Columns",value:e})))},csvFormat:function(e,n){return e=e||["prolog"],n=n||e[0],1==e.length?t.el.input({type:"hidden",name:"format",value:e[0]}):t.el.div({class:"form-group"},r("format","Format"),t.el.div({class:i()},c("format",e,{value:n})))},limit:function(e,n){return t.el.div({class:"form-group"},r("name","Distinct | limit"),t.el.div({class:i()},t.el.div({class:"input-group"},t.el.span({class:"input-group-addon",title:"If checked only return distinct results"},o("distinct",{checked:n})),a("limit",{placeholder:"Maximum result count (blank for unlimited)",title:"Limit results",value:e}))))},checkboxes:function(e,n){var i;n=t.extend({name:"options",label:"Options",col:u},n||{});var o={class:"checkboxes col-xs-"+(12-n.col),name:n.name};n.title&&(o.title=n.title),n.type&&(o.class+=" "+n.type);for(var a=t.el.div({class:"form-group"},r(n.name,n.label,n.col),i=t.el.div(o)),s=0;s<e.length;s++){var l=e[s],c={type:"checkbox",name:l.name,autocomplete:"false"};l.value&&(c.checked="checked"),l.readonly&&(c.disabled="disabled"),t(i).append(t.el.label({class:"checkbox-inline"},t.el.input(c),l.label))}return a},chunk:function(e){return t.el.div({class:"form-group"},r("count","Initial solutions",3),t.el.div({class:"col-xs-9"},t.el.div({class:"input-group"},a("chunk",{title:"Initial number of solutions",type:"number",value:e}))))},name:function(e,n){return n=n||3,t.el.div({class:"form-group"},r("name","Name",n),t.el.div({class:"col-xs-"+(12-n)},a("name",{placeholder:"Name",value:e})))},filename:function(e,n){return n=n||3,t.el.div({class:"form-group"},r("filename","File name",n),t.el.div({class:"col-xs-"+(12-n)},a("filename",{placeholder:"File name",value:e})))},hidden:function(e,n){if(void 0!==n)return t.el.input({type:"hidden",name:e,value:n})},buttons:function(e){e=e||{};var n=e.label||"Save program",i=e.offset||u,r=t.el.button({name:"save",class:"btn btn-primary"},n);return t(r).on("click",function(n){var i=t(n.target).parents("form")[0],r=h.serializeAsObject(t(i));return e.action(n,r),t(n.target).parents(".modal").modal("hide"),n.preventDefault(),!1}),t.el.div({class:"form-group"},t.el.div({class:"col-xs-offset-"+i+" col-xs-"+(12-i)},r,t.el.button({name:"cancel",class:"btn btn-danger","data-dismiss":"modal"},"Cancel")))},radio:function(e,n,i){var r=t.el.div({class:"btn-group","data-toggle":"buttons"});i=i||"radio";for(var o=0;o<n.length;o++){var a="btn btn-default btn-xs";n[o].active&&(a+=" active");var s={type:i,name:e,autocomplete:"off",value:n[o].value},l={class:a};n[o].title&&(l.title=n[o].title),t(r).append(t.el.label(l,t.el.input(s),n[o].label))}return r}},widgets:{glyphIcon:function(e){return t.el.span({class:"glyphicon glyphicon-"+e})},typeIcon:function(e){return t.el.span({class:"dropdown-icon type-icon "+e})},glyphIconButton:function(e,n){var i={class:"btn",type:"button"};return n.action&&(i["data-action"]=n.action),n.title&&(i.title=n.title),n.class&&(i.class+=" "+n.class),t.el.button(i,h.widgets.glyphIcon(e))},dropdownButton:function(e,n){n||(n={});var i=n.divClass,r=n.ulClass,o=t.el.div({class:"btn-group dropdown"+(i?" "+i:"")},t.el.button({class:"dropdown-toggle","data-toggle":"dropdown"},e),t.el.ul({class:"dropdown-menu"+(r?" "+r:"")}));return n.actions&&h.widgets.populateMenu(t(o),n.client,n.actions),o},populateMenu:function(e,n,i){function r(e,i){var r=t(i).data("action");r&&r.call(n,i)}var o=e.find(".dropdown-menu"),a=o.data("menu")||{};for(var s in i)i.hasOwnProperty(s)&&function(e,n){if(void 0!==n)if(0==e.indexOf("--"))o.append(t.el.li({class:"divider"}));else{var i=t.el.a(e);t(i).data("action",n),o.append(t.el.li(i))}}(s,i[s]);return a.bound||(a.bound=!0,o.on("click","a",function(t){r(t,this)})),o.data("menu",a),e}}};return h}),define("utils",["jquery"],function(t){var e={htmlEncode:function(t){return t?document.createElement("a").appendChild(document.createTextNode(t)).parentNode.innerHTML:""},generateUUID:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:7&n|8).toString(16)})},flash:function(t){t.addClass("flash"),setTimeout(function(){t.removeClass("flash")},1500)},ago:function(t){var e=(new Date).getTime()/1e3-t;return e<20?"just now":e<60?"less then a minute ago":(e=Math.round(e/60))<120?e+" minutes ago":(e=Math.round(e/60))<48?e+" hours ago":(e=Math.round(e/24))<360?e+" days ago":(e=Math.round(e/365))+" years ago"},basename:function(t){return t?t.split("/").pop():null}};return"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(t){return 0===this.lastIndexOf(t,0)}),e}),define("history",["jquery","preferences","form","utils"],function(t,e,n,i){var r={push:function(t){if(window.location.pathname!=t.url){var e={location:t.url,reason:t.reason};window.history.pushState(e,"",t.url),document.title="SWISH -- "+(t.url?i.basename(t.url):"SWI-Prolog for SHaring")}},pop:function(t){},recentMaxLength:10,addRecent:function(t){for(var n=e.getVal("recentDocuments")||[],i=0;i<n.length;i++)if(function(t,e){return t.type==e.type&&t.id==e.id}(t,n[i])){n.splice(i,1);break}for(;n.length+1>r.recentMaxLength;)n.pop();n.splice(0,0,t),e.setVal("recentDocuments",n)},openRecent:function(t,e){return r.openRecent[e.st_type](t,e)},updateRecentUL:function(){var i=t(this),r=e.getVal("recentDocuments")||[];i.html("");for(var o=0;o<r.length;o++){var a=r[o];if(a.id){var s=t.el.a(n.widgets.typeIcon(a.id.split(".").pop()),a.label||a.id);t(s).data("document",a),i.append(t.el.li(s))}}}};return r.openRecent.gitty=function(e,n){t(e.target).parents(".swish").swish("playFile",n.id)},window.onpopstate=r.pop,r}),define("chat",["jquery","config","preferences","form","modal","utils"],function(t,e,n,i,r,o){!function(t){function a(e,r){r=r||{};var o,a,l=r.name;l||"self"!=r.role||(l="Me"),l||(l=e);var c=t.el.li({class:"dropdown user",id:e,title:l},a=t.el.a({class:"dropdown-toggle avatar","data-toggle":"dropdown"},s(r)),o=t.el.ul({class:"dropdown-menu pull-right",title:""}));if("self"==r.role){t(a).append(t.el.b({class:"caret"}));var u=t.el.input({type:"text",placeholder:"Nick name",value:r.name||"",title:"Nick name"});o.append(t.el.li(u)),t(u).keypress(function(e){if(13==e.which){var i=t(u).val().trim();""!=i&&(t("#chat").trigger("send",{type:"set-nick-name",name:i}),n.setVal("nick-name",i)),t(u).closest(".dropdown.open").removeClass("open")}}),i.widgets.populateMenu(t(c),t("#chat"),{}),o.append(t.el.li({class:"divider"}))}return c}function s(e){return e.avatar?t.el.img({class:"avatar",src:e.avatar}):t.el.span({class:"avatar glyphicon glyphicon-user"})}function l(){return(new Date).getTime()}var c=1e3,u=null,h={_init:function(n){return this.each(function(){var n=t(this),i={};n.data("chat",i),n.on("click",function(e){var i=t(e.target).closest("li.user");1==i.length&&n.chat("unnotify",i.attr("id"))}),n.on("send",function(t,e){n.chat("send",e)}),t(window).bind("beforeunload",function(){n.chat("disconnect")}),e.swish.chat&&n.chat("connect")})},connect:function(){function t(t,i){var r=n.getVal(i);r&&("anon-avatar"==i&&(r=e.http.locations.avatar+r.split("/").pop()),o+=a+t+"="+encodeURIComponent(r),a="&")}var i=this,r=this.data("chat"),o=window.location.host+e.http.locations.swish_chat,a="?",s=window.location.protocol.replace("http","ws");if(r.connection&&1==r.connection.readyState)return this;t("avatar","anon-avatar"),t("nickname","nick-name"),r.reconnect&&(o+=a+"reconnect="+encodeURIComponent(r.reconnect),a="&");try{r.connection=new WebSocket(s+"//"+o,["v1.chat.swish.swi-prolog.org"])}catch(t){return void i.chat("userCount",void 0)}r.connection.onerror=function(t){i.chat("userCount",void 0)},r.connection.onclose=function(t){null==u?(c*=2)>3e5&&(c=3e5):l()-u>3e5?c=1e3:(c*=2)>3e5&&(c=3e5),setTimeout(function(){i.chat("connect")},c)},r.connection.onmessage=function(t){var e=JSON.parse(t.data);e.origin=t.origin,e.type?i.chat(e.type,e):console.log(t)},r.connection.onopen=function(){}},empty_queue:function(){for(var t=this.data("chat");t.queue&&t.queue.length>0&&1==t.connection.readyState;){var e=t.queue.shift();t.connection.send(e)}},disconnect:function(){var t=this.data("chat");return t.connection&&(this.chat("send",{type:"unload"}),t.connection.onclose=function(){},t.connection.close(),t.connection=void 0),this},send:function(t){var e=this.data("chat");if(e&&e.connection){var n=JSON.stringify(t);1!=e.connection.readyState?(e.queue?e.queue.push(n):e.queue=[n],this.chat("connect")):e.connection.send(n)}return this},subscribe:function(t,e){var n={type:"subscribe",channel:t};e&&(n.sub_channel=e),this.chat("send",n)},unsubscribe:function(t,e){var n={type:"unsubscribe",channel:t};sub_channel&&(n.sub_channel=sub_channel),this.chat("send",n)},welcome:function(e){var i=this.data("chat");i.wsid&&i.wsid!=e.wsid&&this.html(""),i.wsid=e.wsid,i.reconnect=e.reconnect,e.avatar&&"generated"==e.avatar_source&&n.setVal("anon-avatar",e.avatar),e.role="self";var r=this.chat("addUser",e);t(r).addClass("myself"),this.chat("userCount",e.visitors),u=l(),e.check_login?t("#login").login("update","check"):t(".sourcelist").trigger("login"),t(".storage").storage("chat_status"),this.chat("empty_queue")},userCount:function(e){var n=t("#user-count");void 0==e?n.parent().hide():(n.parent().show(),n.text(e))},gazers:function(t){if(t.gazers)for(var e=0;e<t.gazers.length;e++){var n=t.gazers[e];this.chat("addUser",n),n.file&&this.chat("addUserFile",n.wsid,n.file)}},profile:function(e){var i=this.data("chat"),r=t("#"+e.wsid);r.children("a").html("").append(s(e)),e.avatar&&(t("*[data-userid="+e.wsid+"] img.avatar").attr("src",e.avatar),"generated"==e.avatar_source&&n.setVal("anon-avatar",e.avatar)),e.name&&(r.prop("title",e.name),"set-nick-name"==e.reason&&(e.html="Named <i>"+o.htmlEncode(e.name)+"</i>",
-this.chat("notifyUser",e))),i.wsid==e.wsid&&t(".sourcelist").trigger("login")},rejoined:function(e){var n=t("#"+e.wsid);this.chat("lost",n,!1),e.visitors&&this.chat("userCount",e.visitors)},joined:function(t){t.visitors&&this.chat("userCount",t.visitors)},session_closed:function(){t("#login").login("update","session-closed")},notify:function(t){this.chat("notifyUser",t)},"chat-message":function(n){var i=t("div.chatroom").chatroom("rooms",n.docid);t(".storage").storage("chat_message",n),n.docid=="gitty:"+e.swish.hangout&&t("#broadcast-bell").chatbell("chat-message",n),i.length>0?(i.chatroom("add",n),n.displayed=!0):t("#"+n.user.id).length>0&&(msg=t.extend({},n),msg.wsid=n.user.id,msg.html="Wants to chat",this.chat("notifyUser",msg))},forbidden:function(t){r.alert(t.message||"Action is forbidden")},read_until:function(t,e){n.setDocVal(t,"chatBar",e)},broadcast_room:function(){return this.closest(".swish").find(".storage").storage("match",{file:e.swish.hangout})},notifyUser:function(t){var n=this;(function(t){return("opened"==t.event||"closed"==t.event)&&t.event_argv&&t.event_argv[0]==e.swish.hangout})(t)&&!this.chat("broadcast_room")&&(t.create_user=!1);var i=this.chat("addUser",t);i&&i.length>0&&(t.onremove=function(){n.chat("unnotify",t.wsid)},r.notify(i,t),this.chat("updateFiles",t))},unnotify:function(e){return t("#"+e).hasClass("removed")&&this.chat("removeUser",e),this},updateFiles:function(e){function n(){return e.event_argv[0]}var i=t(this).data("chat");if("opened"==e.event)this.chat("addUserFile",e.wsid,n());else if("closed"==e.event){var r=e.wsid==i.wsid?void 0:e.wsid;this.chat("removeUserFile",r,n(),!0)}},addUser:function(e){var n=t("#"+e.wsid);if(0==n.length){if(0==e.create_user)return null;n=t(a(e.wsid,e)),this.prepend(n)}else this.chat("lost",n,!1);return n},removeUser:function(e){"string"==typeof e&&(e={wsid:e}),void 0!==e.visitors&&this.chat("userCount",e.visitors);var n=t("#"+e.wsid);return 0==n.length?this:("close"!=e.reason?t("#ntf-"+e.wsid).length>0?n.addClass("removed"):n.hide(400,function(){this.remove()}):this.chat("lost",n,!0),this)},lost:function(e,n){n?e.addClass("lost"):e.removeClass("lost"),e.each(function(){var i=t(this);if(n)i.data("lost-timer",setTimeout(function(){e.hasClass("lost")&&e.remove()},6e4));else{var r=i.data("lost-timer");r&&(clearTimeout(r),i.data("lost-timer",void 0))}})},user_info:function(e){var n=t(this),i={};if((!e||e.indexOf("id")>=0)&&(i.id=n.attr("id")),!e||e.indexOf("name")>=0){var r=n.prop("title");r&&"Me"!==r&&(i.name=r)}return(!e||e.indexOf("avatar")>=0)&&(i.avatar=n.find("img.avatar").attr("src")),i},users:function(e){var n=[],i={users:n};return this.find("li.user[id]").each(function(){var r=t(this),o=r.hasClass("myself"),a=r.chat("user_info",o?void 0:e);o&&(i.self=t.extend({},a),a.is_self=!0),n.push(a)}),i},self:function(t){return this.find("li.user.myself[id]").chat("user_info",t)},addUserFile:function(e,n){var i,r=t("#"+e),o=r.find("ul.dropdown-menu");if(o.find("li.file").each(function(){if(t(this).data("file")==n)return i=this,!1}),void 0==i){var a=n.split(".").pop();o.append(t.el.li({class:"file","data-file":n,title:"Shared file"},t.el.a(t.el.span({class:"dropdown-icon type-icon "+a}),n)))}return this},removeUserFile:function(e,n,i){function r(e){var r=e.children("ul.dropdown-menu");r.find("li.file").each(function(){if(t(this).data("file")==n)return t(this).remove(),i&&!e.hasClass("myself")&&0==r.find("li.file").length&&o.chat("removeUser",e.attr("id")),!1})}var o=this;e?r(t("#"+e)):this.children().each(function(){r(t(this))})}};t.fn.chat=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.chat"):h._init.apply(this,arguments)}}(jQuery)}),function(t,e){var n=0,i=null,r=[],o=null;t.fn.split=function(e){function a(t){if("number"==typeof t)return t;if("string"==typeof t){var e=t.match(/^([0-9\.]+)(px|%)$/);if(e){if("px"==e[2])return+e[1];if("vertical"==u.orientation)return f*+e[1]/100;if("horizontal"==u.orientation)return p*+e[1]/100}}}var s=this.data("splitter");if(s)return s;var l,c,u=t.extend({limit:100,orientation:"horizontal",position:"50%",invisible:!1,onDragStart:t.noop,onDragEnd:t.noop,onDrag:t.noop},e||{});this.settings=u;var h,d=this.children();"vertical"==u.orientation?(l=d.first().addClass("left_panel"),c=l.next().addClass("right_panel"),h="vsplitter"):"horizontal"==u.orientation&&(l=d.first().addClass("top_panel"),c=l.next().addClass("bottom_panel"),h="hsplitter"),u.invisible&&(h+=" splitter-invisible");var f=this.width(),p=this.height(),g=n++;this.addClass("splitter_panel");var m,v=t("<div/>").addClass(h).bind("mouseenter touchstart",function(){i=g}).bind("mouseleave touchend",function(){i=null}).insertAfter(l),y=t.extend(this,{refresh:function(){var t=this.width(),e=this.height();f==t&&p==e||(f=this.width(),p=this.height(),y.position(m))},position:function(){return"vertical"==u.orientation?function(t,e){if(void 0===t)return m;m=a(t);var n=v.width(),i=n/2;if(u.invisible){var r=l.width(m).outerWidth();c.width(y.width()-r),v.css("left",r-i)}else{var r=l.width(m-i).outerWidth();c.width(y.width()-r-n),v.css("left",r)}return e||y.find(".splitter_panel").trigger("splitter.resize"),y}:"horizontal"==u.orientation?function(t,e){if(void 0===t)return m;m=a(t);var n=v.height(),i=n/2;if(u.invisible){var r=l.height(m).outerHeight();c.height(y.height()-r),v.css("top",r-i)}else{var r=l.height(m-i).outerHeight();c.height(y.height()-r-n),v.css("top",r)}return e||y.find(".splitter_panel").trigger("splitter.resize"),y}:t.noop}(),orientation:u.orientation,limit:u.limit,isActive:function(){return i===g},destroy:function(){y.removeClass("splitter_panel"),v.unbind("mouseenter"),v.unbind("mouseleave"),v.unbind("touchstart"),v.unbind("touchmove"),v.unbind("touchend"),v.unbind("touchleave"),v.unbind("touchcancel"),"vertical"==u.orientation?(l.removeClass("left_panel"),c.removeClass("right_panel")):"horizontal"==u.orientation&&(l.removeClass("top_panel"),c.removeClass("bottom_panel")),y.unbind("splitter.resize"),y.find(".splitter_panel").trigger("splitter.resize"),r[g]=null,v.remove();for(var e=!1,i=r.length;i--;)if(null!==r[i]){e=!0;break}e||(t(document.documentElement).unbind(".splitter"),t(window).unbind("resize.splitter"),y.data("splitter",null),r=[],n=0)}});y.bind("splitter.resize",function(t){var e=y.position();"vertical"==y.orientation&&e>y.width()?e=y.width()-y.limit-1:"horizontal"==y.orientation&&e>y.height()&&(e=y.height()-y.limit-1),e<y.limit&&(e=y.limit+1),y.position(e,!0)});var x;return"vertical"==u.orientation?x=x>f-u.limit?f-u.limit:a(u.position):"horizontal"==u.orientation&&(x=x>p-u.limit?p-u.limit:a(u.position)),x<u.limit&&(x=u.limit),y.position(x,!0),0==r.length&&(t(window).bind("resize.splitter",function(){t.each(r,function(t,e){e&&e.refresh()})}),t(document.documentElement).bind("mousedown.splitter touchstart.splitter",function(e){if(null!==i)return o=r[i],t('<div class="splitterMask"></div>').css("cursor",o.children().eq(1).css("cursor")).insertAfter(o),o.settings.onDragStart(e),!1}).bind("mouseup.splitter touchend.splitter touchleave.splitter touchcancel.splitter",function(e){o&&(t(".splitterMask").remove(),o.settings.onDragEnd(e),o=null)}).bind("mousemove.splitter touchmove.splitter",function(t){if(null!==o){var e=o.limit,n=o.offset();if("vertical"==o.orientation){var i=t.pageX;t.originalEvent&&t.originalEvent.changedTouches&&(i=t.originalEvent.changedTouches[0].pageX);var r=i-n.left;r<=o.limit?r=o.limit+1:r>=o.width()-e&&(r=o.width()-e-1),r>o.limit&&r<o.width()-e&&(o.position(r,!0),o.find(".splitter_panel").trigger("splitter.resize"),t.preventDefault())}else if("horizontal"==o.orientation){var a=t.pageY;t.originalEvent&&t.originalEvent.changedTouches&&(a=t.originalEvent.changedTouches[0].pageY);var s=a-n.top;s<=o.limit?s=o.limit+1:s>=o.height()-e&&(s=o.height()-e-1),s>o.limit&&s<o.height()-e&&(o.position(s,!0),o.find(".splitter_panel").trigger("splitter.resize"),t.preventDefault())}o.settings.onDrag(t)}})),r.push(y),y.data("splitter",y),y}}(jQuery),define("splitter",["jquery"],function(){}),define("pane",["jquery","splitter"],function(){!function(t){function e(e){var n=e.children();return{splitter:e.split(),first:t(n[0]).children()[0],second:t(n[2]).children()[0]}}function n(t){return"horizontal"==t?"vertical":"horizontal"}var i={_init:function(e){return this.each(function(){var e=t(this),n=e.hasClass("horizontal")?"vertical":"horizontal",i=e.attr("data-split"),r=e.children();i=i||"50%",r.each(function(){t(this).wrap('<div class="pane-wrapper"></div>')}),e.addClass("pane-container"),e.split({orientation:n,position:i,limit:10,onDragStart:function(){e.tile("resize_start")},onDrag:function(t){r.trigger("pane.resize")},onDragEnd:function(){e.tile("resize_save")}}),e.tile("resize_save"),e.on("fullscreen",function(t,n){e.tile("resize")})})},resize_start:function(){return this.each(function(){var n=t(this),i=e(n);n.find(".reactive-size").trigger("reactive-resize-start",i.splitter.orientation)})},resize_save:function(){return this.each(function(){var n,i,r=t(this),o=e(r);"horizontal"==o.splitter.orientation?(n=r.height(),i=t(o.first).height()):(n=r.width(),i=t(o.first).width());var a=Math.round(100*i/n)+"%";o.splitter.resizestart=a}),this.find(".reactive-size").trigger("reactive-resize"),this},resize:function(){return this.each(function(){var e=t(this),n=e.split();n.resizestart&&(n.position(n.resizestart),n.settings.onDrag(e))})},split:function(e,i,r,o){i=i||"below";var a=this,s="above"==i||"below"==i?"horizontal":"vertical",l=a.wrap('<div class="pane-container tile "'+n(s)+"></div>").parent();void 0==r?r=50:r<10?r=10:r>90&&(r=90),o&&"horizontal"==s&&(sumh=this.height(),left=sumh*r/100,left<o&&o<.9*sumh&&(r=100*o/sumh)),"above"==i||"left"==i?l.prepend(e):(r=100-r,l.append(e));var c=t(a).add(e);return c.wrap('<div class="pane-wrapper"></div>'),l.split({orientation:s,position:r+"%",limit:10,onDragStart:function(){l.tile("resize_start")},onDrag:function(){c.trigger("pane.resize")},onDragEnd:function(){l.tile("resize_save")}}),l.tile("resize_save"),c.trigger("pane.resize"),l},close:function(){var t=this,e=t.closest(".pane-container");e.split().destroy(),t.parent().remove(),e.children().first().children().first().unwrap().unwrap()}};t.fn.tile=function(e){return i[e]?i[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.tile"):i._init.apply(this,arguments)}}(jQuery)}),function(t,e){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],function(n){return t.Bloodhound=e(n)}):"object"==typeof exports?module.exports=e(require("jquery")):t.Bloodhound=e(jQuery)}(this,function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,n){function i(t,e){return n(e,t)}t.each(e,i)},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,function(t,r){if(!(i=n.call(null,r,t,e)))return!1}),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,function(t,r){if(i=n.call(null,r,t,e))return!1}),!!i):i},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){function n(){return String(e)}return t.isFunction(e)?e:n},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,r;return function(){var o,a,s=this,l=arguments;return o=function(){i=null,n||(r=t.apply(s,l))},a=n&&!i,clearTimeout(i),i=setTimeout(o,e),a&&(r=t.apply(s,l)),r}},throttle:function(t,e){var n,i,r,o,a,s;return a=0,s=function(){a=new Date,r=null,o=t.apply(n,i)},function(){var l=new Date,c=e-(l-a);return n=this,i=arguments,c<=0?(clearTimeout(r),r=null,a=l,o=t.apply(n,i)):r||(r=setTimeout(s,c)),o}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n="0.11.1",i=function(){"use strict";function t(t){return t=e.toStr(t),t?t.split(/\s+/):[]}function n(t){return t=e.toStr(t),t?t.split(/\W+/):[]}function i(t){return function(n){return n=e.isArray(n)?n:[].slice.call(arguments,0),function(i){var r=[];return e.each(n,function(n){r=r.concat(t(e.toStr(i[n])))}),r}}}return{nonword:n,whitespace:t,obj:{nonword:i(n),whitespace:i(t)}}}(),r=function(){"use strict";function n(n){this.maxSize=e.isNumber(n)?n:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function i(){this.head=this.tail=null}function r(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(n.prototype,{set:function(t,e){var n,i=this.list.tail;this.size>=this.maxSize&&(this.list.remove(i),delete this.hash[i.key],this.size--),(n=this.hash[t])?(n.val=e,this.list.moveToFront(n)):(n=new r(t,e),this.list.add(n),this.hash[t]=n,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new i}}),e.mixin(i.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),n}(),o=function(){"use strict";function n(t,n){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix)),this.ls=n||s,!this.ls&&this._noop()}function i(){return(new Date).getTime()}function r(t){return JSON.stringify(e.isUndefined(t)?null:t)}function o(e){return t.parseJSON(e)}function a(t){var e,n,i=[],r=s.length;for(e=0;e<r;e++)(n=s.key(e)).match(t)&&i.push(n.replace(t,""));return i}var s;try{s=window.localStorage,s.setItem("~~~","!"),s.removeItem("~~~")}catch(t){s=null}return e.mixin(n.prototype,{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=e.noop},_safeSet:function(t,e){try{this.ls.setItem(t,e)}catch(t){"QuotaExceededError"===t.name&&(this.clear(),this._noop())}},get:function(t){return this.isExpired(t)&&this.remove(t),o(this.ls.getItem(this._prefix(t)))},set:function(t,n,o){return e.isNumber(o)?this._safeSet(this._ttlKey(t),r(i()+o)):this.ls.removeItem(this._ttlKey(t)),this._safeSet(this._prefix(t),r(n))},remove:function(t){return this.ls.removeItem(this._ttlKey(t)),this.ls.removeItem(this._prefix(t)),this},clear:function(){var t,e=a(this.keyMatcher);for(t=e.length;t--;)this.remove(e[t]);return this},isExpired:function(t){var n=o(this.ls.getItem(this._ttlKey(t)));return!!(e.isNumber(n)&&i()>n)}}),n}(),a=function(){"use strict";function n(t){t=t||{},this.cancelled=!1,this.lastReq=null,this._send=t.transport,this._get=t.limiter?t.limiter(this._get):this._get,this._cache=!1===t.cache?new r(0):s}var i=0,o={},a=6,s=new r(10);return n.setMaxPendingRequests=function(t){a=t},n.resetCache=function(){s.reset()},e.mixin(n.prototype,{_fingerprint:function(e){return e=e||{},e.url+e.type+t.param(e.data||{})},_get:function(t,e){function n(t){e(null,t),u._cache.set(l,t)}function r(){e(!0)}function s(){i--,delete o[l],u.onDeckRequestArgs&&(u._get.apply(u,u.onDeckRequestArgs),u.onDeckRequestArgs=null)}var l,c,u=this;l=this._fingerprint(t),this.cancelled||l!==this.lastReq||((c=o[l])?c.done(n).fail(r):i<a?(i++,o[l]=this._send(t).done(n).fail(r).always(s)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(n,i){var r,o;i=i||t.noop,n=e.isString(n)?{url:n}:n||{},o=this._fingerprint(n),this.cancelled=!1,this.lastReq=o,(r=this._cache.get(o))?i(null,r):this._get(n,i)},cancel:function(){this.cancelled=!0}}),n}(),s=window.SearchIndex=function(){"use strict";function n(n){n=n||{},n.datumTokenizer&&n.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.identify=n.identify||e.stringify,this.datumTokenizer=n.datumTokenizer,this.queryTokenizer=n.queryTokenizer,this.reset()}function i(t){return t=e.filter(t,function(t){return!!t}),t=e.map(t,function(t){return t.toLowerCase()})}function r(){var t={};return t[l]=[],t[s]={},t}function o(t){for(var e={},n=[],i=0,r=t.length;i<r;i++)e[t[i]]||(e[t[i]]=!0,n.push(t[i]));return n}function a(t,e){var n=0,i=0,r=[];t=t.sort(),e=e.sort();for(var o=t.length,a=e.length;n<o&&i<a;)t[n]<e[i]?n++:t[n]>e[i]?i++:(r.push(t[n]),n++,i++);return r}var s="c",l="i";return e.mixin(n.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var n=this;t=e.isArray(t)?t:[t],e.each(t,function(t){var o,a;n.datums[o=n.identify(t)]=t,a=i(n.datumTokenizer(t)),e.each(a,function(t){var e,i,a;for(e=n.trie,i=t.split("");a=i.shift();)e=e[s][a]||(e[s][a]=r()),e[l].push(o)})})},get:function(t){var n=this;return e.map(t,function(t){return n.datums[t]})},search:function(t){var n,r,c=this;return n=i(this.queryTokenizer(t)),e.each(n,function(t){var e,n,i,o;if(r&&0===r.length)return!1;for(e=c.trie,n=t.split("");e&&(i=n.shift());)e=e[s][i];if(!e||0!==n.length)return r=[],!1;o=e[l].slice(0),r=r?a(r,o):o}),r?e.map(o(r),function(t){return c.datums[t]}):[]},all:function(){var t=[];for(var e in this.datums)t.push(this.datums[e]);return t},reset:function(){this.datums={},this.trie=r()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),n}(),l=function(){"use strict";function t(t){this.url=t.url,this.ttl=t.ttl,this.cache=t.cache,this.prepare=t.prepare,this.transform=t.transform,this.transport=t.transport,this.thumbprint=t.thumbprint,this.storage=new o(t.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},e.mixin(t.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t,e={};return this.cache?(e.data=this.storage.get(n.data),e.protocol=this.storage.get(n.protocol),e.thumbprint=this.storage.get(n.thumbprint),t=e.thumbprint!==this.thumbprint||e.protocol!==location.protocol,e.data&&!t?e.data:null):null},fromNetwork:function(t){function e(){t(!0)}function n(e){t(null,r.transform(e))}var i,r=this;t&&(i=this.prepare(this._settings()),this.transport(i).fail(e).done(n))},clear:function(){return this.storage.clear(),this}}),t}(),c=function(){"use strict";function t(t){this.url=t.url,this.prepare=t.prepare,this.transform=t.transform,this.transport=new a({cache:t.cache,limiter:t.limiter,transport:t.transport})}return e.mixin(t.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(t,e){function n(t,n){e(t?[]:r.transform(n))}var i,r=this;if(e)return t=t||"",i=this.prepare(t,this._settings()),this.transport.get(i,n)},cancelLastRequest:function(){this.transport.cancel()}}),t}(),u=function(){"use strict";function i(i){var r;return i?(r={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:e.identity,transform:e.identity,transport:null},i=e.isString(i)?{url:i}:i,i=e.mixin(r,i),!i.url&&t.error("prefetch requires url to be set"),i.transform=i.filter||i.transform,i.cacheKey=i.cacheKey||i.url,i.thumbprint=n+i.thumbprint,i.transport=i.transport?s(i.transport):t.ajax,i):null}function r(n){var i;if(n)return i={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:e.identity,transport:null},n=e.isString(n)?{url:n}:n,n=e.mixin(i,n),!n.url&&t.error("remote requires url to be set"),n.transform=n.filter||n.transform,n.prepare=o(n),n.limiter=a(n),n.transport=n.transport?s(n.transport):t.ajax,delete n.replace,delete n.wildcard,delete n.rateLimitBy,delete n.rateLimitWait,n}function o(t){function e(t,e){return e.url=o(e.url,t),e}function n(t,e){return e.url=e.url.replace(a,encodeURIComponent(t)),e}function i(t,e){return e}var r,o,a;return r=t.prepare,o=t.replace,a=t.wildcard,r||(r=o?e:t.wildcard?n:i)}function a(t){var n,i,r;return n=t.limiter,i=t.rateLimitBy,r=t.rateLimitWait,n||(n=/^throttle$/i.test(i)?function(t){return function(n){return e.throttle(n,t)}}(r):function(t){return function(n){return e.debounce(n,t)}}(r)),n}function s(n){return function(i){function r(t){e.defer(function(){a.resolve(t)})}function o(t){e.defer(function(){a.reject(t)})}var a=t.Deferred();return n(i,r,o),a}}return function(n){var o,a;return o={initialize:!0,identify:e.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},n=e.mixin(o,n||{}),!n.datumTokenizer&&t.error("datumTokenizer is required"),!n.queryTokenizer&&t.error("queryTokenizer is required"),a=n.sorter,n.sorter=a?function(t){return t.sort(a)}:e.identity,n.local=e.isFunction(n.local)?n.local():n.local,n.prefetch=i(n.prefetch),n.remote=r(n.remote),n}}();return function(){"use strict";function n(t){t=u(t),this.sorter=t.sorter,this.identify=t.identify,this.sufficient=t.sufficient,this.local=t.local,this.remote=t.remote?new c(t.remote):null,this.prefetch=t.prefetch?new l(t.prefetch):null,this.index=new s({identify:this.identify,datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer}),!1!==t.initialize&&this.initialize()}var r;return r=window&&window.Bloodhound,n.noConflict=function(){return window&&(window.Bloodhound=r),n},n.tokenizers=i,e.mixin(n.prototype,{__ttAdapter:function(){function t(t,e,i){return n.search(t,e,i)}function e(t,e){return n.search(t,e)}var n=this;return this.remote?t:e},_loadPrefetch:function(){function e(t,e){if(t)return n.reject();r.add(e),r.prefetch.store(r.index.serialize()),n.resolve()}var n,i,r=this;return n=t.Deferred(),this.prefetch?(i=this.prefetch.fromCache())?(this.index.bootstrap(i),n.resolve()):this.prefetch.fromNetwork(e):n.resolve(),n.promise()},_initialize:function(){function t(){e.add(e.local)}var e=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){return this.index.add(t),this},get:function(t){return t=e.isArray(t)?t:[].slice.call(arguments),this.index.get(t)},search:function(t,n,i){function r(t){var n=[];e.each(t,function(t){!e.some(o,function(e){return a.identify(t)===a.identify(e)})&&n.push(t)}),i&&i(n)}var o,a=this;return o=this.sorter(this.index.search(t)),n(this.remote?o.slice():o),this.remote&&o.length<this.sufficient?this.remote.get(t,r):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return a.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),n}()}),function(t,e){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},isElement:function(t){return!(!t||1!==t.nodeType)},isJQuery:function(e){return e instanceof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,n){function i(t,e){return n(e,t)}t.each(e,i)},map:t.map,filter:t.grep,every:function(e,n){var i=!0;return e?(t.each(e,function(t,r){if(!(i=n.call(null,r,t,e)))return!1}),!!i):i},some:function(e,n){var i=!1;return e?(t.each(e,function(t,r){if(i=n.call(null,r,t,e))return!1}),!!i):i},mixin:t.extend,identity:function(t){return t},clone:function(e){return t.extend(!0,{},e)},getIdGenerator:function(){var t=0;return function(){return t++}},templatify:function(e){function n(){return String(e)}return t.isFunction(e)?e:n},defer:function(t){setTimeout(t,0)},debounce:function(t,e,n){var i,r;return function(){var o,a,s=this,l=arguments;return o=function(){i=null,n||(r=t.apply(s,l))},a=n&&!i,clearTimeout(i),i=setTimeout(o,e),a&&(r=t.apply(s,l)),r}},throttle:function(t,e){var n,i,r,o,a,s;return a=0,s=function(){a=new Date,r=null,o=t.apply(n,i)},function(){var l=new Date,c=e-(l-a);return n=this,i=arguments,c<=0?(clearTimeout(r),r=null,a=l,o=t.apply(n,i)):r||(r=setTimeout(s,c)),o}},stringify:function(t){return e.isString(t)?t:JSON.stringify(t)},noop:function(){}}}(),n=function(){"use strict";function t(t){var a,s;return s=e.mixin({},o,t),a={css:r(),classes:s,html:n(s),selectors:i(s)},{css:a.css,html:a.html,classes:a.classes,selectors:a.selectors,mixin:function(t){e.mixin(t,a)}}}function n(t){return{wrapper:'<span class="'+t.wrapper+'"></span>',menu:'<div class="'+t.menu+'"></div>'}}function i(t){var n={};return e.each(t,function(t,e){n[e]="."+t}),n}function r(){var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t}var o={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return t}(),i=function(){"use strict";function n(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var i,r;return i="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},e.mixin(n.prototype,{_trigger:function(e,n){var r;return r=t.Event(i+e),(n=n||[]).unshift(r),this.$el.trigger.apply(this.$el,n),r},before:function(t){var e,n;return e=[].slice.call(arguments,1),n=this._trigger("before"+t,e),n.isDefaultPrevented()},trigger:function(t){var e;this._trigger(t,[].slice.call(arguments,1)),(e=r[t])&&this._trigger(e,[].slice.call(arguments,1))}}),n}(),r=function(){"use strict";function t(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?a(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function e(e,n,i){return t.call(this,"async",e,n,i)}function n(e,n,i){return t.call(this,"sync",e,n,i)}function i(t){var e;if(!this._callbacks)return this;for(t=t.split(s);e=t.shift();)delete this._callbacks[e];return this}function r(t){var e,n,i,r,a;if(!this._callbacks)return this;for(t=t.split(s),i=[].slice.call(arguments,1);(e=t.shift())&&(n=this._callbacks[e]);)r=o(n.sync,this,[e].concat(i)),a=o(n.async,this,[e].concat(i)),r()&&l(a);return this}function o(t,e,n){function i(){for(var i,r=0,o=t.length;!i&&r<o;r+=1)i=!1===t[r].apply(e,n);return!i}return i}function a(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}var s=/\s+/,l=function(){return window.setImmediate?function(t){setImmediate(function(){t()})}:function(t){setTimeout(function(){t()},0)}}();return{onSync:n,onAsync:e,off:i,trigger:r}}(),o=function(t){"use strict";function n(t,n,i){for(var r,o=[],a=0,s=t.length;a<s;a++)o.push(e.escapeRegExChars(t[a]));return r=i?"\\b("+o.join("|")+")\\b":"("+o.join("|")+")",n?new RegExp(r):new RegExp(r,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(r){function o(e){var n,i,o;return(n=s.exec(e.data))&&(o=t.createElement(r.tagName),r.className&&(o.className=r.className),i=e.splitText(n.index),i.splitText(n[0].length),o.appendChild(i.cloneNode(!0)),e.parentNode.replaceChild(o,i)),!!n}function a(t,e){for(var n,i=0;i<t.childNodes.length;i++)n=t.childNodes[i],3===n.nodeType?i+=e(n)?1:0:a(n,e)}var s;r=e.mixin({},i,r),r.node&&r.pattern&&(r.pattern=e.isArray(r.pattern)?r.pattern:[r.pattern],s=n(r.pattern,r.caseSensitive,r.wordsOnly),a(r.node,o))}}(window.document),a=function(){"use strict";function n(n,r){n=n||{},n.input||t.error("input is missing"),r.mixin(this),this.$hint=t(n.hint),this.$input=t(n.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=i(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=e.noop)}function i(e){return t('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function o(t,e){return n.normalizeQuery(t)===n.normalizeQuery(e)}function a(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}var s;return s={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},n.normalizeQuery=function(t){return e.toStr(t).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},e.mixin(n.prototype,r,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(t){var e=s[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(t,e){var n;switch(t){case"up":case"down":n=!a(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;switch(t){case"tab":n=!a(e);break;default:n=!0}return n},_checkLanguageDirection:function(){var t=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==t&&(this.dir=t,this.$hint.attr("dir",t),this.trigger("langDirChanged",t))},_setQuery:function(t,e){var n,i;n=o(t,this.query),i=!!n&&this.query.length!==t.length,this.query=t,e||n?!e&&i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var t,n,i,r,o=this;return t=e.bind(this._onBlur,this),n=e.bind(this._onFocus,this),i=e.bind(this._onKeydown,this),r=e.bind(this._onInput,this),this.$input.on("blur.tt",t).on("focus.tt",n).on("keydown.tt",i),!e.isMsie()||e.isMsie()>9?this.$input.on("input.tt",r):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(t){s[t.which||t.keyCode]||e.defer(e.bind(o._onInput,o,t))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(t,e){this.setInputValue(t),this._setQuery(t,e)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(t){
-this.$input.val(t),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n,i;t=this.getInputValue(),e=this.getHint(),n=t!==e&&0===e.indexOf(t),!(i=""!==t&&n&&!this.hasOverflow())&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,n,i;return t=this.$input.val().length,n=this.$input[0].selectionStart,e.isNumber(n)?n===t:!document.selection||(i=document.selection.createRange(),i.moveStart("character",-t),t===i.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=t("<div>")}}),n}(),s=function(){"use strict";function n(n,r){n=n||{},n.templates=n.templates||{},n.templates.notFound=n.templates.notFound||n.templates.empty,n.source||t.error("missing source"),n.node||t.error("missing node"),n.name&&!s(n.name)&&t.error("invalid dataset name: "+n.name),r.mixin(this),this.highlight=!!n.highlight,this.name=n.name||c(),this.limit=n.limit||5,this.displayFn=i(n.display||n.displayKey),this.templates=a(n.templates,this.displayFn),this.source=n.source.__ttAdapter?n.source.__ttAdapter():n.source,this.async=e.isUndefined(n.async)?this.source.length>2:!!n.async,this._resetLastSuggestion(),this.$el=t(n.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function i(t){function n(e){return e[t]}return t=t||e.stringify,e.isFunction(t)?t:n}function a(n,i){function r(e){return t("<div>").text(i(e))}return{notFound:n.notFound&&e.templatify(n.notFound),pending:n.pending&&e.templatify(n.pending),header:n.header&&e.templatify(n.header),footer:n.footer&&e.templatify(n.footer),suggestion:n.suggestion||r}}function s(t){return/^[_a-zA-Z0-9-]+$/.test(t)}var l,c;return l={val:"tt-selectable-display",obj:"tt-selectable-object"},c=e.getIdGenerator(),n.extractData=function(e){var n=t(e);return n.data(l.obj)?{val:n.data(l.val)||"",obj:n.data(l.obj)||null}:null},e.mixin(n.prototype,r,{_overwrite:function(t,e){e=e||[],e.length?this._renderSuggestions(t,e):this.async&&this.templates.pending?this._renderPending(t):!this.async&&this.templates.notFound?this._renderNotFound(t):this._empty(),this.trigger("rendered",this.name,e,!1)},_append:function(t,e){e=e||[],e.length&&this.$lastSuggestion.length?this._appendSuggestions(t,e):e.length?this._renderSuggestions(t,e):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(t),this.trigger("rendered",this.name,e,!0)},_renderSuggestions:function(t,e){var n;n=this._getSuggestionsFragment(t,e),this.$lastSuggestion=n.children().last(),this.$el.html(n).prepend(this._getHeader(t,e)).append(this._getFooter(t,e))},_appendSuggestions:function(t,e){var n,i;n=this._getSuggestionsFragment(t,e),i=n.children().last(),this.$lastSuggestion.after(n),this.$lastSuggestion=i},_renderPending:function(t){var e=this.templates.pending;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))},_renderNotFound:function(t){var e=this.templates.notFound;this._resetLastSuggestion(),e&&this.$el.html(e({query:t,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(n,i){var r,a=this;return r=document.createDocumentFragment(),e.each(i,function(e){var i,o;o=a._injectQuery(n,e),i=t(a.templates.suggestion(o)).data(l.obj,e).data(l.val,a.displayFn(e)).addClass(a.classes.suggestion+" "+a.classes.selectable),r.appendChild(i[0])}),this.highlight&&o({className:this.classes.highlight,node:r,pattern:n}),t(r)},_getFooter:function(t,e){return this.templates.footer?this.templates.footer({query:t,suggestions:e,dataset:this.name}):null},_getHeader:function(t,e){return this.templates.header?this.templates.header({query:t,suggestions:e,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=t()},_injectQuery:function(t,n){return e.isObject(n)?e.mixin({_query:t},n):n},update:function(e){function n(t){a||(a=!0,t=(t||[]).slice(0,r.limit),s=t.length,r._overwrite(e,t),s<r.limit&&r.async&&r.trigger("asyncRequested",e))}function i(n){n=n||[],!o&&s<r.limit&&(r.cancel=t.noop,s+=n.length,r._append(e,n.slice(0,r.limit-s)),r.async&&r.trigger("asyncReceived",e))}var r=this,o=!1,a=!1,s=0;this.cancel(),this.cancel=function(){o=!0,r.cancel=t.noop,r.async&&r.trigger("asyncCanceled",e)},this.source(e,n,i),!a&&n([])},cancel:t.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=t("<div>")}}),n}(),l=function(){"use strict";function n(n,i){function r(e){var n=o.$node.find(e.node).first();return e.node=n.length?n:t("<div>").appendTo(o.$node),new s(e,i)}var o=this;n=n||{},n.node||t.error("node is required"),i.mixin(this),this.$node=t(n.node),this.query=null,this.datasets=e.map(n.datasets,r)}return e.mixin(n.prototype,r,{_onSelectableClick:function(e){this.trigger("selectableClicked",t(e.currentTarget))},_onRendered:function(t,e,n,i){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",e,n,i)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function t(t){return t.isEmpty()}return e.every(this.datasets,t)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var t=this.getActiveSelectable();t&&t.removeClass(this.classes.cursor)},_ensureVisible:function(t){var e,n,i,r;e=t.position().top,n=e+t.outerHeight(!0),i=this.$node.scrollTop(),r=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),e<0?this.$node.scrollTop(i+e):r<n&&this.$node.scrollTop(i+(n-r))},bind:function(){var t,n=this;return t=e.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,t),e.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(t){this.$node.attr("dir",t)},selectableRelativeToCursor:function(t){var e,n,i,r;return n=this.getActiveSelectable(),e=this._getSelectables(),i=n?e.index(n):-1,r=i+t,r=(r+1)%(e.length+1)-1,r=r<-1?e.length-1:r,-1===r?null:e.eq(r)},setCursor:function(t){this._removeCursor(),(t=t&&t.first())&&(t.addClass(this.classes.cursor),this._ensureVisible(t))},getSelectableData:function(t){return t&&t.length?s.extractData(t):null},getActiveSelectable:function(){var t=this._getSelectables().filter(this.selectors.cursor).first();return t.length?t:null},getTopSelectable:function(){var t=this._getSelectables().first();return t.length?t:null},update:function(t){function n(e){e.update(t)}var i=t!==this.query;return i&&(this.query=t,e.each(this.datasets,n)),i},empty:function(){function t(t){t.clear()}e.each(this.datasets,t),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function n(t){t.destroy()}this.$node.off(".tt"),this.$node=t("<div>"),e.each(this.datasets,n)}}),n}(),c=function(){"use strict";function t(){l.apply(this,[].slice.call(arguments,0))}var n=l.prototype;return e.mixin(t.prototype,l.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css("ltr"===t?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),t}(),u=function(){"use strict";function n(n,r){var o,a,s,l,c,u,h,d,f,p,g;n=n||{},n.input||t.error("missing input"),n.menu||t.error("missing menu"),n.eventBus||t.error("missing event bus"),r.mixin(this),this.eventBus=n.eventBus,this.minLength=e.isNumber(n.minLength)?n.minLength:1,this.input=n.input,this.menu=n.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),o=i(this,"activate","open","_onFocused"),a=i(this,"deactivate","_onBlurred"),s=i(this,"isActive","isOpen","_onEnterKeyed"),l=i(this,"isActive","isOpen","_onTabKeyed"),c=i(this,"isActive","_onEscKeyed"),u=i(this,"isActive","open","_onUpKeyed"),h=i(this,"isActive","open","_onDownKeyed"),d=i(this,"isActive","isOpen","_onLeftKeyed"),f=i(this,"isActive","isOpen","_onRightKeyed"),p=i(this,"_openIfActive","_onQueryChanged"),g=i(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",o,this).onSync("blurred",a,this).onSync("enterKeyed",s,this).onSync("tabKeyed",l,this).onSync("escKeyed",c,this).onSync("upKeyed",u,this).onSync("downKeyed",h,this).onSync("leftKeyed",d,this).onSync("rightKeyed",f,this).onSync("queryChanged",p,this).onSync("whitespaceChanged",g,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(t){var n=[].slice.call(arguments,1);return function(){var i=[].slice.call(arguments);e.each(n,function(e){return t[e].apply(t,i)})}}return e.mixin(n.prototype,{_hacks:function(){var n,i;n=this.input.$input||t("<div>"),i=this.menu.$node||t("<div>"),n.on("blur.tt",function(t){var r,o,a;r=document.activeElement,o=i.is(r),a=i.has(r).length>0,e.isMsie()&&(o||a)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer(function(){n.focus()}))}),i.on("mousedown.tt",function(t){t.preventDefault()})},_onSelectableClicked:function(t,e){this.select(e)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(t,e,n,i){this._updateHint(),this.eventBus.trigger("render",n,i,e)},_onAsyncRequested:function(t,e,n){this.eventBus.trigger("asyncrequest",n,e)},_onAsyncCanceled:function(t,e,n){this.eventBus.trigger("asynccancel",n,e)},_onAsyncReceived:function(t,e,n){this.eventBus.trigger("asyncreceive",n,e)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(t,e){var n;(n=this.menu.getActiveSelectable())&&this.select(n)&&e.preventDefault()},_onTabKeyed:function(t,e){var n;(n=this.menu.getActiveSelectable())?this.select(n)&&e.preventDefault():(n=this.menu.getTopSelectable())&&this.autocomplete(n)&&e.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(t,e){this._minLengthMet(e)?this.menu.update(e):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(t,e){this.dir!==e&&(this.dir=e,this.menu.setLanguageDirection(e))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(t){return t=e.isString(t)?t:this.input.getQuery()||"",t.length>=this.minLength},_updateHint:function(){var t,n,i,r,o,s,l;t=this.menu.getTopSelectable(),n=this.menu.getSelectableData(t),i=this.input.getInputValue(),!n||e.isBlankString(i)||this.input.hasOverflow()?this.input.clearHint():(r=a.normalizeQuery(i),o=e.escapeRegExChars(r),s=new RegExp("^(?:"+o+")(.+$)","i"),(l=s.exec(n.val))&&this.input.setHint(i+l[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return!!this.isActive()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0)},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(t){this.input.setQuery(e.toStr(t))},getVal:function(){return this.input.getQuery()},select:function(t){var e=this.menu.getSelectableData(t);return!(!e||this.eventBus.before("select",e.obj))&&(this.input.setQuery(e.val,!0),this.eventBus.trigger("select",e.obj),this.close(),!0)},autocomplete:function(t){var e,n;return e=this.input.getQuery(),n=this.menu.getSelectableData(t),!(!(n&&e!==n.val)||this.eventBus.before("autocomplete",n.obj))&&(this.input.setQuery(n.val),this.eventBus.trigger("autocomplete",n.obj),!0)},moveCursor:function(t){var e,n,i,r;return e=this.input.getQuery(),n=this.menu.selectableRelativeToCursor(t),i=this.menu.getSelectableData(n),r=i?i.obj:null,!(this._minLengthMet()&&this.menu.update(e))&&!this.eventBus.before("cursorchange",r)&&(this.menu.setCursor(n),i?this.input.setInputValue(i.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),n}();!function(){"use strict";function r(e,n){e.each(function(){var e,i=t(this);(e=i.data(g.typeahead))&&n(e,i)})}function o(t,e){return t.clone().addClass(e.classes.hint).removeData().css(e.css.hint).css(h(t)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function s(t,e){t.data(g.attrs,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass(e.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!t.attr("dir")&&t.attr("dir","auto")}catch(t){}return t}function h(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function d(t){var n,i;n=t.data(g.www),i=t.parent().filter(n.selectors.wrapper),e.each(t.data(g.attrs),function(n,i){e.isUndefined(n)?t.removeAttr(i):t.attr(i,n)}),t.removeData(g.typeahead).removeData(g.www).removeData(g.attr).removeClass(n.classes.input),i.length&&(t.detach().insertAfter(i),i.remove())}function f(n){var i,r;return i=e.isJQuery(n)||e.isElement(n),r=i?t(n).first():[],r.length?r:null}var p,g,m;p=t.fn.typeahead,g={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},m={initialize:function(r,h){function d(){var n,d,m,v,y,x,b,w,_,S,C;e.each(h,function(t){t.highlight=!!r.highlight}),n=t(this),d=t(p.html.wrapper),m=f(r.hint),v=f(r.menu),y=!1!==r.hint&&!m,x=!1!==r.menu&&!v,y&&(m=o(n,p)),x&&(v=t(p.html.menu).css(p.css.menu)),m&&m.val(""),n=s(n,p),(y||x)&&(d.css(p.css.wrapper),n.css(y?p.css.input:p.css.inputWithNoHint),n.wrap(d).parent().prepend(y?m:null).append(x?v:null)),C=x?c:l,b=new i({el:n}),w=new a({hint:m,input:n},p),_=new C({node:v,datasets:h},p),S=new u({input:w,menu:_,eventBus:b,minLength:r.minLength},p),n.data(g.www,p),n.data(g.typeahead,S)}var p;return h=e.isArray(h)?h:[].slice.call(arguments,1),r=r||{},p=n(r.classNames),this.each(d)},isEnabled:function(){var t;return r(this.first(),function(e){t=e.isEnabled()}),t},enable:function(){return r(this,function(t){t.enable()}),this},disable:function(){return r(this,function(t){t.disable()}),this},isActive:function(){var t;return r(this.first(),function(e){t=e.isActive()}),t},activate:function(){return r(this,function(t){t.activate()}),this},deactivate:function(){return r(this,function(t){t.deactivate()}),this},isOpen:function(){var t;return r(this.first(),function(e){t=e.isOpen()}),t},open:function(){return r(this,function(t){t.open()}),this},close:function(){return r(this,function(t){t.close()}),this},select:function(e){var n=!1,i=t(e);return r(this.first(),function(t){n=t.select(i)}),n},autocomplete:function(e){var n=!1,i=t(e);return r(this.first(),function(t){n=t.autocomplete(i)}),n},moveCursor:function(t){var e=!1;return r(this.first(),function(n){e=n.moveCursor(t)}),e},val:function(t){var e;return arguments.length?(r(this,function(e){e.setVal(t)}),this):(r(this.first(),function(t){e=t.getVal()}),e)},destroy:function(){return r(this,function(t,e){d(e),t.destroy()}),this}},t.fn.typeahead=function(t){return m[t]?m[t].apply(this,[].slice.call(arguments,1)):m.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=p,this}}()}),define("typeahead",["jquery"],function(t){return function(){var e;return e=function(t){return require.s.contexts._.registry["typeahead.js"].factory(t)},e.apply(t,arguments)}}(this)),define("search",["jquery","config","utils","bloodhound","typeahead"],function(t,e,n,i){!function(t){function r(e,n){var e=e.replace("%QUERY",encodeURIComponent(n)),i=t("label.active > input[name=smatch]").val();return i&&(e+="&match="+i),e}var o={_init:function(o){return o=o||{},this.each(function(){function a(t){return(t.tags||[]).push(t.name)}function s(t){var e='<div class="tt-match file type-icon '+function(t){return t.split(".").pop()}(t.name)+'"><span class="tt-label">'+n.htmlEncode(function(t){return t.split(".").slice(0,-1).join(".")}(t.name));if(t.tags){e+='<span class="tt-tags">';for(var i=0;i<t.tags.length;i++){var r=t.tags[i];e+='<span class="tt-tag">'+n.htmlEncode(r)+"</span>"}e+="</span>"}return t.title&&(e+='<div class="tt-title file">'+n.htmlEncode(t.title)+"</div>"),e+="</div>"}function l(t){var e="";if(t.file!=b||t.alias!=w){var i=t.file.split(".").pop();b=t.file,w=t.alias,e='<div class="tt-file-header type-icon '+i+'"><span class="tt-path-file">'+n.htmlEncode(t.file)+"</span></div>"}return e+p(t)}function c(t){return i.tokenizers.whitespace(t.text)}function u(t){var e="";return t.file==b&&t.alias==w||(b=t.file,w=t.alias,e='<div class="tt-file-header type-icon '+t.ext+'"><span class="tt-path-alias">'+n.htmlEncode(t.alias)+'</span>(<span class="tt-path-file">'+n.htmlEncode(t.file)+")</span></div>"),t.text&&(e+=p(t)),e}function h(t,n){for(var i=e.swish.templates,r=[],o=t.split(" "),a=[],s=0;s<o.length;s++)a.push({prefix:o[s],regex:new RegExp("_"+o[s])});for(var s=0;s<i.length;s++){var l=i[s];if(void 0!==l.arity){for(var c=0,u=!0;c<a.length&&u;c++)l.name.startsWith(a[c].prefix)||l.name.match(a[c].regex)||(u=!1);u&&r.push(l)}}n(r)}function d(t){var e='<div class="tt-match predicate';return t.type&&(e+=" "+t.type),t.mode&&(e+='" title="'+t.mode),e+='"><span class="tt-label">'+n.htmlEncode(t.name)+"/"+t.arity+"</span>",t.iso&&(e+='<span class="tt-tags">',t.iso&&(e+='<span class="tt-tag">ISO</span>'),e+="</span>"),t.summary&&(e+='<div class="tt-title file">'+n.htmlEncode(t.summary)+"</div>"),e+="</div>",e+="</div>"}function f(e,n){if(m=e,e.length<2)return[];var i=[],r=new RegExp("\\b"+e,"g");S=r,t(".prolog-editor").each(function(){for(var e=this,n=t(e).prologEditor("search",r,{max:7}),o=0;o<n.length;o++)n[o].editor=e,n[o].regex=S,i.push(n[o])}),n(i)}function p(t){var e,i=t.text;return(e=i.search(S))>20&&(i="..."+i.slice(e-17)),i.length>80&&(i=i.substring(0,80)),'<div class="tt-match source"><span class="tt-line"><span class="tt-lineno">'+t.line+'</span><span class="tt-text">'+n.htmlEncode(i)+"</span></span></div>"}function g(t){return'<div class="tt-match user">'+function(t){return t.avatar?'<img class="avatar" src="'+encodeURI(t.avatar)+'">':""}(t)+'<span class="tt-label">'+n.htmlEncode(t.name)+"</span></div>"}var m,v=t(this),y=new i({name:"files",remote:{url:e.http.locations.swish_typeahead+"?set=file&q=%QUERY",wildcard:"%QUERY"},datumTokenizer:a,queryTokenizer:i.tokenizers.whitespace});y.initialize();var x=new i({name:"store_content",limit:20,cache:!1,remote:{url:e.http.locations.swish_typeahead+"?set=store_content&q=%QUERY",replace:r},datumTokenizer:c,queryTokenizer:i.tokenizers.whitespace});x.initialize();var b=null,w=null,_=new i({name:"source",limit:15,cache:!1,query_cache_length:1,remote:{url:e.http.locations.swish_typeahead+"?set=sources&q=%QUERY",replace:r},datumTokenizer:c,queryTokenizer:i.tokenizers.whitespace});_.initialize();var S,C=new i({name:"users",limit:20,cache:!1,remote:{url:e.http.locations.swish_typeahead+"?set=user&q=%QUERY",replace:r},datumTokenizer:c,queryTokenizer:i.tokenizers.whitespace});C.initialize();var T={source:{name:"source",display:"text",source:f,templates:{suggestion:p}},sources:{name:"sources",display:"file",source:_.ttAdapter(),templates:{suggestion:u},limit:15},files:{name:"files",display:"name",source:y.ttAdapter(),templates:{suggestion:s}},store_content:{name:"store_content",display:"file",source:x.ttAdapter(),templates:{suggestion:l}},predicates:{name:"predicates",display:function(t){return t.name+"/"+t.arity},source:h,templates:{suggestion:d}},users:{name:"users",display:"name",source:C.ttAdapter(),templates:{suggestion:g}}},k=T.sources.source;T.sources.source=function(t,e){return b=null,w=null,S=new RegExp(RegExp.escape(t)),k(t,e)},v.typeahead({minLength:2,highlight:!0},function(t){for(var e=[],n=t.replace(/\s+/g," ").split(" "),i=0;i<n.length;i++)e.push(T[n[i]]);return e}(v.data("search-in"))).on("typeahead:selected typeahead:autocompleted",function(e,n){if(0==o.search)v.data("json-value",n);else if("store"==n.type)n.query&&(n.regex=new RegExp(RegExp.escape(n.query),"g"),n.showAllMatches=!0),t(e.target).closest(".swish").swish("playFile",n);else if(void 0!==n.arity)t(".swish-event-receiver").trigger("pldoc",n);else if(void 0!==n.editor&&void 0!==n.line)t(n.editor).prologEditor("gotoLine",n.line,{regex:n.regex,showAllMatches:!0});else if(void 0!==n.alias){var i=encodeURI("/"+n.alias+"/"+n.file+"."+n.ext),r={url:i,line:n.line};n.query&&(r.regex=new RegExp(RegExp.escape(n.query),"g"),r.showAllMatches=!0),t(e.target).closest(".swish").swish("playURL",r)}else v.data("json-value",n),console.log(v.data("json-value"))}),0!=o.search&&v.closest("form").submit(function(t){var e=v.data("json-value"),n=v.val();return e&&e.datum&&e.datum.label==n||(e=n),v.val(""),v.data("json-value",null),v.search("search",e),!1})})},search:function(t){alert("Full search not yet implemented\nPlease select from auto completion list")}};t.fn.search=function(e){return o[e]?o[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.search"):o._init.apply(this,arguments)}}(jQuery),RegExp.escape=function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cm/lib/codemirror",e):t.CodeMirror=e()}(this,function(){"use strict";function t(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function e(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function n(t,n){return e(t).appendChild(n)}function i(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)r.appendChild(e[o]);return r}function r(t,e,n,r){var o=i(t,e,n,r);return o.setAttribute("role","presentation"),o}function o(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function a(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function s(e,n){var i=e.className;t(n).test(i)||(e.className+=(i?" ":"")+n)}function l(e,n){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!t(i[r]).test(n)&&(n+=" "+i[r]);return n}function c(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function u(t,e,n){e||(e={});for(var i in t)!t.hasOwnProperty(i)||!1===n&&e.hasOwnProperty(i)||(e[i]=t[i]);return e}function h(t,e,n,i,r){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i||0,a=r||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}function d(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}function f(t,e,n){for(var i=0,r=0;;){var o=t.indexOf("\t",i);-1==o&&(o=t.length);var a=o-i;if(o==t.length||r+a>=e)return i+Math.min(a,e-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=e)return i}}function p(t){for(;Ua.length<=t;)Ua.push(g(Ua)+" ");return Ua[t]}function g(t){return t[t.length-1]}function m(t,e){for(var n=[],i=0;i<t.length;i++)n[i]=e(t[i],i);return n}function v(t,e,n){for(var i=0,r=n(e);i<t.length&&n(t[i])<=r;)i++;t.splice(i,0,e)}function y(){}function x(t,e){var n;return Object.create?n=Object.create(t):(y.prototype=t,n=new y),e&&u(e,n),n}function b(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Xa.test(t))}function w(t,e){return e?!!(e.source.indexOf("\\w")>-1&&b(t))||e.test(t):b(t)}function _(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}function S(t){return t.charCodeAt(0)>=768&&Ya.test(t)}function C(t,e,n){for(;(n<0?e>0:e<t.length)&&S(t.charAt(e));)e+=n;return e}function T(t,e,n){for(var i=e>n?-1:1;;){if(e==n)return e;var r=(e+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+i}}function k(t,e,n){var o=this;this.input=n,o.scrollbarFiller=i("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=i("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=r("div",null,"CodeMirror-code"),o.selectionDiv=i("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=i("div",null,"CodeMirror-cursors"),o.measure=i("div",null,"CodeMirror-measure"),o.lineMeasure=i("div",null,"CodeMirror-measure"),o.lineSpace=r("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var a=r("div",[o.lineSpace],"CodeMirror-lines");o.mover=i("div",[a],null,"position: relative"),o.sizer=i("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=i("div",null,null,"position: absolute; height: "+qa+"px; width: 1px;"),o.gutters=i("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=i("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=i("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),ya&&xa<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),ba||pa&&Ea||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function A(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(e<o){n=r;break}e-=o}return n.lines[e]}function M(t,e,n){var i=[],r=e.line;return t.iter(e.line,n.line+1,function(t){var o=t.text;r==n.line&&(o=o.slice(0,n.ch)),r==e.line&&(o=o.slice(e.ch)),i.push(o),++r}),i}function E(t,e,n){var i=[];return t.iter(e,n,function(t){i.push(t.text)}),i}function L(t,e){var n=e-t.height;if(n)for(var i=t;i;i=i.parent)i.height+=n}function P(t){if(null==t.parent)return null;for(var e=t.parent,n=d(e.lines,t),i=e.parent;i;e=i,i=i.parent)for(var r=0;i.children[r]!=e;++r)n+=i.children[r].chunkSize();return n+e.first}function N(t,e){var n=t.first;t:do{for(var i=0;i<t.children.length;++i){var r=t.children[i],o=r.height;if(e<o){t=r;continue t}e-=o,n+=r.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a],l=s.height;if(e<l)break;e-=l}return n+a}function O(t,e){return e>=t.first&&e<t.first+t.size}function R(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function D(t,e,n){if(void 0===n&&(n=null),!(this instanceof D))return new D(t,e,n);this.line=t,this.ch=e,this.sticky=n}function I(t,e){return t.line-e.line||t.ch-e.ch}function H(t,e){return t.sticky==e.sticky&&0==I(t,e)}function j(t){return D(t.line,t.ch)}function V(t,e){return I(t,e)<0?e:t}function F(t,e){return I(t,e)<0?t:e}function z(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function q(t,e){if(e.line<t.first)return D(t.first,0);var n=t.first+t.size-1;return e.line>n?D(n,A(t,n).text.length):G(e,A(t,e.line).text.length)}function G(t,e){var n=t.ch;return null==n||n>e?D(t.line,e):n<0?D(t.line,0):t}function B(t,e){for(var n=[],i=0;i<e.length;i++)n[i]=q(t,e[i]);return n}function $(){Qa=!0}function W(){Za=!0}function U(t,e,n){this.marker=t,this.from=e,this.to=n}function X(t,e){if(t)for(var n=0;n<t.length;++n){var i=t[n];if(i.marker==e)return i}}function Y(t,e){for(var n,i=0;i<t.length;++i)t[i]!=e&&(n||(n=[])).push(t[i]);return n}function Q(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}function Z(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);if(s||o.from==e&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);(i||(i=[])).push(new U(a,o.from,l?null:o.to))}}return i}function K(t,e,n){var i;if(t)for(var r=0;r<t.length;++r){var o=t[r],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);if(s||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);(i||(i=[])).push(new U(a,l?null:o.from-e,null==o.to?null:o.to-e))}}return i}function J(t,e){if(e.full)return null;var n=O(t,e.from.line)&&A(t,e.from.line).markedSpans,i=O(t,e.to.line)&&A(t,e.to.line).markedSpans;if(!n&&!i)return null;var r=e.from.ch,o=e.to.ch,a=0==I(e.from,e.to),s=Z(n,r,a),l=K(i,o,a),c=1==e.text.length,u=g(e.text).length+(c?r:0);if(s)for(var h=0;h<s.length;++h){var d=s[h];if(null==d.to){var f=X(l,d.marker);f?c&&(d.to=null==f.to?null:f.to+u):d.to=r}}if(l)for(var p=0;p<l.length;++p){var m=l[p];if(null!=m.to&&(m.to+=u),null==m.from){var v=X(s,m.marker);v||(m.from=u,c&&(s||(s=[])).push(m))}else m.from+=u,c&&(s||(s=[])).push(m)}s&&(s=tt(s)),l&&l!=s&&(l=tt(l));var y=[s];if(!c){
-var x,b=e.text.length-2;if(b>0&&s)for(var w=0;w<s.length;++w)null==s[w].to&&(x||(x=[])).push(new U(s[w].marker,null,null));for(var _=0;_<b;++_)y.push(x);y.push(l)}return y}function tt(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function et(t,e,n){var i=null;if(t.iter(e.line,n.line+1,function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||i&&-1!=d(i,n)||(i||(i=[])).push(n)}}),!i)return null;for(var r=[{from:e,to:n}],o=0;o<i.length;++o)for(var a=i[o],s=a.find(0),l=0;l<r.length;++l){var c=r[l];if(!(I(c.to,s.from)<0||I(c.from,s.to)>0)){var u=[l,1],h=I(c.from,s.from),f=I(c.to,s.to);(h<0||!a.inclusiveLeft&&!h)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-3}}return r}function nt(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function it(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function rt(t){return t.inclusiveLeft?-1:0}function ot(t){return t.inclusiveRight?1:0}function at(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var i=t.find(),r=e.find(),o=I(i.from,r.from)||rt(t)-rt(e);if(o)return-o;var a=I(i.to,r.to)||ot(t)-ot(e);return a||e.id-t.id}function st(t,e){var n,i=Za&&t.markedSpans;if(i)for(var r=void 0,o=0;o<i.length;++o)r=i[o],r.marker.collapsed&&null==(e?r.from:r.to)&&(!n||at(n,r.marker)<0)&&(n=r.marker);return n}function lt(t){return st(t,!0)}function ct(t){return st(t,!1)}function ut(t,e,n,i,r){var o=A(t,e),a=Za&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=I(c.from,n)||rt(l.marker)-rt(r),h=I(c.to,i)||ot(l.marker)-ot(r);if(!(u>=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?I(c.to,n)>=0:I(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?I(c.from,i)<=0:I(c.from,i)<0)))return!0}}}function ht(t){for(var e;e=lt(t);)t=e.find(-1,!0).line;return t}function dt(t){for(var e;e=ct(t);)t=e.find(1,!0).line;return t}function ft(t){for(var e,n;e=ct(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function pt(t,e){var n=A(t,e),i=ht(n);return n==i?e:P(i)}function gt(t,e){if(e>t.lastLine())return e;var n,i=A(t,e);if(!mt(t,i))return e;for(;n=ct(i);)i=n.find(1,!0).line;return P(i)+1}function mt(t,e){var n=Za&&e.markedSpans;if(n)for(var i=void 0,r=0;r<n.length;++r)if(i=n[r],i.marker.collapsed){if(null==i.from)return!0;if(!i.marker.widgetNode&&0==i.from&&i.marker.inclusiveLeft&&vt(t,e,i))return!0}}function vt(t,e,n){if(null==n.to){var i=n.marker.find(1,!0);return vt(t,i.line,X(i.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var r=void 0,o=0;o<e.markedSpans.length;++o)if(r=e.markedSpans[o],r.marker.collapsed&&!r.marker.widgetNode&&r.from==n.to&&(null==r.to||r.to!=n.from)&&(r.marker.inclusiveLeft||n.marker.inclusiveRight)&&vt(t,e,r))return!0}function yt(t){t=ht(t);for(var e=0,n=t.parent,i=0;i<n.lines.length;++i){var r=n.lines[i];if(r==t)break;e+=r.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;e+=s.height}return e}function xt(t){if(0==t.height)return 0;for(var e,n=t.text.length,i=t;e=lt(i);){var r=e.find(0,!0);i=r.from.line,n+=r.from.ch-r.to.ch}for(i=t;e=ct(i);){var o=e.find(0,!0);n-=i.text.length-o.from.ch,i=o.to.line,n+=i.text.length-o.to.ch}return n}function bt(t){var e=t.display,n=t.doc;e.maxLine=A(n,n.first),e.maxLineLength=xt(e.maxLine),e.maxLineChanged=!0,n.iter(function(t){var n=xt(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}function wt(t,e,n,i){if(!t)return i(e,n,"ltr",0);for(var r=!1,o=0;o<t.length;++o){var a=t[o];(a.from<n&&a.to>e||e==n&&a.to==e)&&(i(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(e,n,"ltr")}function _t(t,e,n){var i;Ka=null;for(var r=0;r<t.length;++r){var o=t[r];if(o.from<e&&o.to>e)return r;o.to==e&&(o.from!=o.to&&"before"==n?i=r:Ka=r),o.from==e&&(o.from!=o.to&&"before"!=n?i=r:Ka=r)}return null!=i?i:Ka}function St(t,e){var n=t.order;return null==n&&(n=t.order=Ja(t.text,e)),n}function Ct(t,e){return t._handlers&&t._handlers[e]||ts}function Tt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var i=t._handlers,r=i&&i[e];if(r){var o=d(r,n);o>-1&&(i[e]=r.slice(0,o).concat(r.slice(o+1)))}}}function kt(t,e){var n=Ct(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r<n.length;++r)n[r].apply(null,i)}function At(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),kt(t,n||e.type,t,e),Ot(e)||e.codemirrorIgnore}function Mt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),i=0;i<e.length;++i)-1==d(n,e[i])&&n.push(e[i])}function Et(t,e){return Ct(t,e).length>0}function Lt(t){t.prototype.on=function(t,e){es(this,t,e)},t.prototype.off=function(t,e){Tt(this,t,e)}}function Pt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Nt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ot(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Rt(t){Pt(t),Nt(t)}function Dt(t){return t.target||t.srcElement}function It(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),La&&t.ctrlKey&&1==e&&(e=3),e}function Ht(t){if(null==Fa){var e=i("span","​");n(t,i("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Fa=e.offsetWidth<=1&&e.offsetHeight>2&&!(ya&&xa<8))}var r=Fa?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function jt(t){if(null!=za)return za;var i=n(t,document.createTextNode("AخA")),r=Ra(i,0,1).getBoundingClientRect(),o=Ra(i,1,2).getBoundingClientRect();return e(t),!(!r||r.left==r.right)&&(za=o.right-r.right<3)}function Vt(t){if(null!=as)return as;var e=n(t,i("span","x")),r=e.getBoundingClientRect(),o=Ra(e,0,1).getBoundingClientRect();return as=Math.abs(r.left-o.left)>1}function Ft(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),ss[t]=e}function zt(t,e){ls[t]=e}function qt(t){if("string"==typeof t&&ls.hasOwnProperty(t))t=ls[t];else if(t&&"string"==typeof t.name&&ls.hasOwnProperty(t.name)){var e=ls[t.name];"string"==typeof e&&(e={name:e}),t=x(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return qt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return qt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Gt(t,e){e=qt(e);var n=ss[e.name];if(!n)return Gt(t,"text/plain");var i=n(t,e);if(cs.hasOwnProperty(e.name)){var r=cs[e.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)i[a]=e.modeProps[a];return i}function Bt(t,e){u(e,cs.hasOwnProperty(t)?cs[t]:cs[t]={})}function $t(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Wt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Ut(t,e,n){return!t.startState||t.startState(e,n)}function Xt(t,e,n,i){var r=[t.state.modeGen],o={};ne(t,e.text,t.doc.mode,n,function(t,e){return r.push(t,e)},o,i);for(var a=n.state,s=0;s<t.state.overlays.length;++s)!function(i){n.baseTokens=r;var s=t.state.overlays[i],l=1,c=0;n.state=!0,ne(t,e.text,s.mode,n,function(t,e){for(var n=l;c<t;){var i=r[l];i>t&&r.splice(l,1,t,r[l+1],i),l+=2,c=Math.min(t,i)}if(e)if(s.opaque)r.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var o=r[n+1];r[n+1]=(o?o+" ":"")+"overlay "+e}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1}(s);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function Yt(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var i=Qt(t,P(e)),r=e.text.length>t.options.maxHighlightLength&&$t(t.doc.mode,i.state),o=Xt(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function Qt(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new ds(i,!0,e);var o=ie(t,e,n),a=o>i.first&&A(i,o-1).stateAfter,s=a?ds.fromSaved(i,a,o):new ds(i,Ut(i.mode),o);return i.iter(o,e,function(n){Zt(t,n.text,s);var i=s.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&i<r.viewTo?s.save():null,s.nextLine()}),n&&(i.modeFrontier=s.line),s}function Zt(t,e,n,i){var r=t.doc.mode,o=new us(e,t.options.tabSize,n);for(o.start=o.pos=i||0,""==e&&Kt(r,n.state);!o.eol();)Jt(r,o,n.state),o.start=o.pos}function Kt(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=Wt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Jt(t,e,n,i){for(var r=0;r<10;r++){i&&(i[0]=Wt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}function te(t,e,n,i){var r,o=t.doc,a=o.mode;e=q(o,e);var s,l=A(o,e.line),c=Qt(t,e.line,n),u=new us(l.text,t.options.tabSize,c);for(i&&(s=[]);(i||u.pos<e.ch)&&!u.eol();)u.start=u.pos,r=Jt(a,u,c.state),i&&s.push(new fs(u,r,$t(o.mode,c.state)));return i?s:new fs(u,r,c.state)}function ee(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var i=n[1]?"bgClass":"textClass";null==e[i]?e[i]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(e[i])||(e[i]+=" "+n[2])}return t}function ne(t,e,n,i,r,o,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,c=0,u=null,h=new us(e,t.options.tabSize,i),d=t.options.addModeClass&&[null];for(""==e&&ee(Kt(n,i.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(s=!1,a&&Zt(t,e,i,h.pos),h.pos=e.length,l=null):l=ee(Jt(n,h,i.state,d),o),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<h.start;)c=Math.min(h.start,c+5e3),r(c,u);u=l}h.start=h.pos}for(;c<h.pos;){var p=Math.min(h.pos,c+5e3);r(p,u),c=p}}function ie(t,e,n){for(var i,r,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=A(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof hs?c.lookAhead:0)<=o.modeFrontier))return s;var u=h(l.text,null,t.options.tabSize);(null==r||i>u)&&(r=s-1,i=u)}return r}function re(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,i=e-1;i>n;i--){var r=A(t,i).stateAfter;if(r&&(!(r instanceof hs)||i+r.lookAhead<e)){n=i+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}function oe(t,e,n,i){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),nt(t),it(t,n);var r=i?i(t):1;r!=t.height&&L(t,r)}function ae(t){t.parent=null,nt(t)}function se(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?vs:ms;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function le(t,e){var n=r("span",null,null,ba?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:(ya||ba)&&t.getOption("lineWrapping")};e.measure={};for(var o=0;o<=(e.rest?e.rest.length:0);o++){var a=o?e.rest[o-1]:e.line,s=void 0;i.pos=0,i.addToken=ue,jt(t.display.measure)&&(s=St(a,t.doc.direction))&&(i.addToken=de(i.addToken,s)),i.map=[];pe(a,i,Yt(t,a,e!=t.display.externalMeasured&&P(a))),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=l(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=l(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ht(t.display.measure))),0==o?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(ba){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return kt(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=l(i.pre.className,i.textClass||"")),i}function ce(t){var e=i("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function ue(t,e,n,r,o,a,s){if(e){var l,c=t.splitSpaces?he(e,t.trailingSpace):e,u=t.cm.state.specialChars,h=!1;if(u.test(e)){l=document.createDocumentFragment();for(var d=0;;){u.lastIndex=d;var f=u.exec(e),g=f?f.index-d:e.length-d;if(g){var m=document.createTextNode(c.slice(d,d+g));ya&&xa<9?l.appendChild(i("span",[m])):l.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!f)break;d+=g+1;var v=void 0;if("\t"==f[0]){var y=t.cm.options.tabSize,x=y-t.col%y;v=l.appendChild(i("span",p(x),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=x}else"\r"==f[0]||"\n"==f[0]?(v=l.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",f[0]),t.col+=1):(v=t.cm.options.specialCharPlaceholder(f[0]),v.setAttribute("cm-text",f[0]),ya&&xa<9?l.appendChild(i("span",[v])):l.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,l=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,l),ya&&xa<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),n||r||o||h||s){var b=n||"";r&&(b+=r),o&&(b+=o);var w=i("span",[l],b,s);return a&&(w.title=a),t.content.appendChild(w)}t.content.appendChild(l)}}function he(t,e){if(t.length>1&&!/  /.test(t))return t;for(var n=e,i="",r=0;r<t.length;r++){var o=t.charAt(r);" "!=o||!n||r!=t.length-1&&32!=t.charCodeAt(r+1)||(o=" "),i+=o,n=" "==o}return i}function de(t,e){return function(n,i,r,o,a,s,l){r=r?r+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+i.length;;){for(var h=void 0,d=0;d<e.length&&(h=e[d],!(h.to>c&&h.from<=c));d++);if(h.to>=u)return t(n,i,r,o,a,s,l);t(n,i.slice(0,h.to-c),r,o,null,s,l),o=null,i=i.slice(h.to-c),c=h.to}}}function fe(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function pe(t,e,n){var i=t.markedSpans,r=t.text,o=0;if(i)for(var a,s,l,c,u,h,d,f=r.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=h=s="",d=null,v=1/0;for(var y=[],x=void 0,b=0;b<i.length;++b){var w=i[b],_=w.marker;"bookmark"==_.type&&w.from==p&&_.widgetNode?y.push(_):w.from<=p&&(null==w.to||w.to>p||_.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&w.from==p&&(u+=" "+_.startStyle),_.endStyle&&w.to==v&&(x||(x=[])).push(_.endStyle,w.to),_.title&&!h&&(h=_.title),_.collapsed&&(!d||at(d.marker,_)<0)&&(d=w)):w.from>p&&v>w.from&&(v=w.from)}if(x)for(var S=0;S<x.length;S+=2)x[S+1]==v&&(c+=" "+x[S]);if(!d||d.from==p)for(var C=0;C<y.length;++C)fe(e,0,y[C]);if(d&&(d.from||0)==p){if(fe(e,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;for(var T=Math.min(f,v);;){if(m){var k=p+m.length;if(!d){var A=k>T?m.slice(0,T-p):m;e.addToken(e,A,a?a+l:l,u,p+A.length==v?c:"",h,s)}if(k>=T){m=m.slice(T-p),p=T;break}p=k,u=""}m=r.slice(o,o=n[g++]),a=se(n[g++],e.cm.options)}}else for(var M=1;M<n.length;M+=2)e.addToken(e,r.slice(o,o=n[M]),se(n[M+1],e.cm.options))}function ge(t,e,n){this.line=e,this.rest=ft(e),this.size=this.rest?P(g(this.rest))-n+1:1,this.node=this.text=null,this.hidden=mt(t,e)}function me(t,e,n){for(var i,r=[],o=e;o<n;o=i){var a=new ge(t.doc,A(t.doc,o),o);i=o+a.size,r.push(a)}return r}function ve(t){ys?ys.ops.push(t):t.ownsGroup=ys={ops:[t],delayedCallbacks:[]}}function ye(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var i=0;i<t.ops.length;i++){var r=t.ops[i];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(n<e.length)}function xe(t,e){var n=t.ownsGroup;if(n)try{ye(n)}finally{ys=null,e(n)}}function be(t,e){var n=Ct(t,e);if(n.length){var i,r=Array.prototype.slice.call(arguments,2);ys?i=ys.delayedCallbacks:xs?i=xs:(i=xs=[],setTimeout(we,0));for(var o=0;o<n.length;++o)!function(t){i.push(function(){return n[t].apply(null,r)})}(o)}}function we(){var t=xs;xs=null;for(var e=0;e<t.length;++e)t[e]()}function _e(t,e,n,i){for(var r=0;r<e.changes.length;r++){var o=e.changes[r];"text"==o?ke(t,e):"gutter"==o?Me(t,e,n,i):"class"==o?Ae(t,e):"widget"==o&&Ee(t,e,i)}e.changes=null}function Se(t){return t.node==t.text&&(t.node=i("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),ya&&xa<8&&(t.node.style.zIndex=2)),t.node}function Ce(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=Se(e);e.background=r.insertBefore(i("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}function Te(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):le(t,e)}function ke(t,e){var n=e.text.className,i=Te(t,e);e.text==e.node&&(e.node=i.pre),e.text.parentNode.replaceChild(i.pre,e.text),e.text=i.pre,i.bgClass!=e.bgClass||i.textClass!=e.textClass?(e.bgClass=i.bgClass,e.textClass=i.textClass,Ae(t,e)):n&&(e.text.className=n)}function Ae(t,e){Ce(t,e),e.line.wrapClass?Se(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function Me(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var o=Se(e);e.gutterBackground=i("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),o.insertBefore(e.gutterBackground,e.text)}var a=e.line.gutterMarkers;if(t.options.lineNumbers||a){var s=Se(e),l=e.gutter=i("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(t.display.input.setUneditable(l),s.insertBefore(l,e.text),e.line.gutterClass&&(l.className+=" "+e.line.gutterClass),!t.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(e.lineNumber=l.appendChild(i("div",R(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),a)for(var c=0;c<t.options.gutters.length;++c){var u=t.options.gutters[c],h=a.hasOwnProperty(u)&&a[u];h&&l.appendChild(i("div",[h],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function Ee(t,e,n){e.alignable&&(e.alignable=null);for(var i=e.node.firstChild,r=void 0;i;i=r)r=i.nextSibling,"CodeMirror-linewidget"==i.className&&e.node.removeChild(i);Pe(t,e,n)}function Le(t,e,n,i){var r=Te(t,e);return e.text=e.node=r.pre,r.bgClass&&(e.bgClass=r.bgClass),r.textClass&&(e.textClass=r.textClass),Ae(t,e),Me(t,e,n,i),Pe(t,e,i),e.node}function Pe(t,e,n){if(Ne(t,e.line,e,n,!0),e.rest)for(var i=0;i<e.rest.length;i++)Ne(t,e.rest[i],e,n,!1)}function Ne(t,e,n,r,o){if(e.widgets)for(var a=Se(n),s=0,l=e.widgets;s<l.length;++s){var c=l[s],u=i("div",[c.node],"CodeMirror-linewidget");c.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Oe(c,u,n,r),t.display.input.setUneditable(u),o&&c.above?a.insertBefore(u,n.gutter||n.text):a.appendChild(u),be(c,"redraw")}}function Oe(t,e,n,i){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var r=i.wrapperWidth;e.style.left=i.fixedPos+"px",t.coverGutter||(r-=i.gutterTotalWidth,e.style.paddingLeft=i.gutterTotalWidth+"px"),e.style.width=r+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-i.gutterTotalWidth+"px"))}function Re(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!o(document.body,t.node)){var r="position: relative;";t.coverGutter&&(r+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(r+="width: "+e.display.wrapper.clientWidth+"px;"),n(e.display.measure,i("div",[t.node],null,r))}return t.height=t.node.parentNode.offsetHeight}function De(t,e){for(var n=Dt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Ie(t){return t.lineSpace.offsetTop}function He(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function je(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=n(t.measure,i("pre","x")),r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,o={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(t.cachedPaddingH=o),o}function Ve(t){return qa-t.display.nativeBarWidth}function Fe(t){return t.display.scroller.clientWidth-Ve(t)-t.display.barWidth}function ze(t){return t.display.scroller.clientHeight-Ve(t)-t.display.barHeight}function qe(t,e,n){var i=t.options.lineWrapping,r=i&&Fe(t);if(!e.measure.heights||i&&e.measure.width!=r){var o=e.measure.heights=[];if(i){e.measure.width=r;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Ge(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var i=0;i<t.rest.length;i++)if(t.rest[i]==e)return{map:t.measure.maps[i],cache:t.measure.caches[i]};for(var r=0;r<t.rest.length;r++)if(P(t.rest[r])>n)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function Be(t,e){e=ht(e);var i=P(e),r=t.display.externalMeasured=new ge(t.doc,e,i);r.lineN=i;var o=r.built=le(t,r);return r.text=o.pre,n(t.display.lineMeasure,o.pre),r}function $e(t,e,n,i){return Xe(t,Ue(t,e),n,i)}function We(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[kn(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Ue(t,e){var n=P(e),i=We(t,n);i&&!i.text?i=null:i&&i.changes&&(_e(t,i,n,wn(t)),t.curOp.forceUpdate=!0),i||(i=Be(t,e));var r=Ge(i,e,n);return{line:e,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function Xe(t,e,n,i,r){e.before&&(n=-1);var o,a=n+(i||"");return e.cache.hasOwnProperty(a)?o=e.cache[a]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(qe(t,e.view,e.rect),e.hasHeights=!0),o=Ze(t,e,n,i),o.bogus||(e.cache[a]=o)),{left:o.left,right:o.right,top:r?o.rtop:o.top,bottom:r?o.rbottom:o.bottom}}function Ye(t,e,n){for(var i,r,o,a,s,l,c=0;c<t.length;c+=3)if(s=t[c],l=t[c+1],e<s?(r=0,o=1,a="left"):e<l?(r=e-s,o=r+1):(c==t.length-3||e==l&&t[c+3]>e)&&(o=l-s,r=o-1,e>=l&&(a="right")),null!=r){if(i=t[c+2],s==l&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)i=t[2+(c-=3)],a="left";if("right"==n&&r==l-s)for(;c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft;)i=t[(c+=3)+2],a="right";break}return{node:i,start:r,end:o,collapse:a,coverStart:s,coverEnd:l}}function Qe(t,e){var n=bs;if("left"==e)for(var i=0;i<t.length&&(n=t[i]).left==n.right;i++);else for(var r=t.length-1;r>=0&&(n=t[r]).left==n.right;r--);return n}function Ze(t,e,n,i){var r,o=Ye(e.map,n,i),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&S(e.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l<o.coverEnd&&S(e.line.text.charAt(o.coverStart+l));)++l;if(r=ya&&xa<9&&0==s&&l==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Qe(Ra(a,s,l).getClientRects(),i),r.left||r.right||0==s)break;l=s,s-=1,c="right"}ya&&xa<11&&(r=Ke(t.display.measure,r))}else{s>0&&(c=i="right");var h;r=t.options.lineWrapping&&(h=a.getClientRects()).length>1?h["right"==i?h.length-1:0]:a.getBoundingClientRect()}if(ya&&xa<9&&!s&&(!r||!r.left&&!r.right)){var d=a.parentNode.getClientRects()[0];r=d?{left:d.left,right:d.left+bn(t.display),top:d.top,bottom:d.bottom}:bs}for(var f=r.top-e.rect.top,p=r.bottom-e.rect.top,g=(f+p)/2,m=e.view.measure.heights,v=0;v<m.length-1&&!(g<m[v]);v++);var y=v?m[v-1]:0,x=m[v],b={left:("right"==c?r.right:r.left)-e.rect.left,right:("left"==c?r.left:r.right)-e.rect.left,top:y,bottom:x};return r.left||r.right||(b.bogus=!0),t.options.singleCursorHeightPerLine||(b.rtop=f,b.rbottom=p),b}function Ke(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Vt(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}function Je(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function tn(t){t.display.externalMeasure=null,e(t.display.lineMeasure);for(var n=0;n<t.display.view.length;n++)Je(t.display.view[n])}function en(t){tn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function nn(){return _a&&Ma?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function rn(){return _a&&Ma?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function on(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=Re(t.widgets[n]));return e}function an(t,e,n,i,r){if(!r){var o=on(e);n.top+=o,n.bottom+=o}if("line"==i)return n;i||(i="local");var a=yt(e);if("local"==i?a+=Ie(t.display):a-=t.display.viewOffset,"page"==i||"window"==i){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==i?0:rn());var l=s.left+("window"==i?0:nn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function sn(t,e,n){if("div"==n)return e;var i=e.left,r=e.top;if("page"==n)i-=nn(),r-=rn();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();i+=o.left,r+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:i-a.left,top:r-a.top}}function ln(t,e,n,i,r){return i||(i=A(t.doc,e.line)),an(t,i,$e(t,i,e.ch,r),n)}function cn(t,e,n,i,r,o){function a(e,a){var s=Xe(t,r,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,an(t,i,s,n)}function s(t,e,n){var i=l[e],r=1==i.level;return a(n?t-1:t,r!=n)}i=i||A(t.doc,e.line),r||(r=Ue(t,i));var l=St(i,t.doc.direction),c=e.ch,u=e.sticky;if(c>=i.text.length?(c=i.text.length,u="before"):c<=0&&(c=0,u="after"),!l)return a("before"==u?c-1:c,"before"==u);var h=_t(l,c,u),d=Ka,f=s(c,h,"before"==u);return null!=d&&(f.other=s(c,d,"before"!=u)),f}function un(t,e){var n=0;e=q(t.doc,e),t.options.lineWrapping||(n=bn(t.display)*e.ch);var i=A(t.doc,e.line),r=yt(i)+Ie(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function hn(t,e,n,i,r){var o=D(t,e,n);return o.xRel=r,i&&(o.outside=!0),o}function dn(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return hn(i.first,0,null,!0,-1);var r=N(i,n),o=i.first+i.size-1;if(r>o)return hn(i.first+i.size-1,A(i,o).text.length,null,!0,1);e<0&&(e=0);for(var a=A(i,r);;){var s=mn(t,a,r,e,n),l=ct(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;r=P(a=c.to.line)}}function fn(t,e,n,i){i-=on(e);var r=e.text.length,o=T(function(e){return Xe(t,n,e-1).bottom<=i},r,0);return r=T(function(e){return Xe(t,n,e).top>i},o,r),{begin:o,end:r}}function pn(t,e,n,i){return n||(n=Ue(t,e)),fn(t,e,n,an(t,e,Xe(t,n,i),"line").top)}function gn(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function mn(t,e,n,i,r){r-=yt(e);var o=Ue(t,e),a=on(e),s=0,l=e.text.length,c=!0,u=St(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?yn:vn)(t,e,n,o,u,i,r);c=1!=h.level,s=c?h.from:h.to-1,l=c?h.to:h.from-1}var d,f,p=null,g=null,m=T(function(e){var n=Xe(t,o,e);return n.top+=a,n.bottom+=a,!!gn(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(p=e,g=n),!0)},s,l),v=!1;if(g){var y=i-g.left<g.right-i,x=y==c;m=p+(x?0:1),f=x?"after":"before",d=y?g.left:g.right}else{c||m!=l&&m!=s||m++,f=0==m?"after":m==e.text.length?"before":Xe(t,o,m-(c?1:0)).bottom+a<=r==c?"after":"before";var b=cn(t,D(n,m,f),"line",e,o);d=b.left,v=r<b.top||r>=b.bottom}return m=C(e.text,m,1),hn(n,m,f,v,i-d)}function vn(t,e,n,i,r,o,a){var s=T(function(s){var l=r[s],c=1!=l.level;return gn(cn(t,D(n,c?l.to:l.from,c?"before":"after"),"line",e,i),o,a,!0)},0,r.length-1),l=r[s];if(s>0){var c=1!=l.level,u=cn(t,D(n,c?l.from:l.to,c?"after":"before"),"line",e,i);gn(u,o,a,!0)&&u.top>a&&(l=r[s-1])}return l}function yn(t,e,n,i,r,o,a){var s=fn(t,e,i,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,h=null,d=0;d<r.length;d++){var f=r[d];if(!(f.from>=c||f.to<=l)){var p=1!=f.level,g=Xe(t,i,p?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=g<o?o-g+1e9:g-o;(!u||h>m)&&(u=f,h=m)}}return u||(u=r[r.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function xn(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==gs){gs=i("pre");for(var r=0;r<49;++r)gs.appendChild(document.createTextNode("x")),gs.appendChild(i("br"));gs.appendChild(document.createTextNode("x"))}n(t.measure,gs);var o=gs.offsetHeight/50;return o>3&&(t.cachedTextHeight=o),e(t.measure),o||1}function bn(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=i("span","xxxxxxxxxx"),r=i("pre",[e]);n(t.measure,r);var o=e.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(t.cachedCharWidth=a),a||10}function wn(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[t.options.gutters[a]]=o.offsetLeft+o.clientLeft+r,i[t.options.gutters[a]]=o.clientWidth;return{fixedPos:_n(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function _n(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Sn(t){var e=xn(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/bn(t.display)-3);return function(r){if(mt(t.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a<r.widgets.length;a++)r.widgets[a].height&&(o+=r.widgets[a].height);return n?o+(Math.ceil(r.text.length/i)||1)*e:o+e}}function Cn(t){var e=t.doc,n=Sn(t);e.iter(function(t){var e=n(t);e!=t.height&&L(t,e)})}function Tn(t,e,n,i){var r=t.display;if(!n&&"true"==Dt(e).getAttribute("cm-not-content"))return null;var o,a,s=r.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(e){return null}var l,c=dn(t,o,a);if(i&&1==c.xRel&&(l=A(t.doc,c.line).text).length==c.ch){var u=h(l,l.length,t.options.tabSize)-l.length;c=D(c.line,Math.max(0,Math.round((o-je(t.display).left)/bn(t.display))-u))}return c}function kn(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;i<n.length;i++)if((e-=n[i].size)<0)return i}function An(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Mn(t,e){void 0===e&&(e=!0);for(var n=t.doc,i={},r=i.cursors=document.createDocumentFragment(),o=i.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var s=n.sel.ranges[a]
-;if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var l=s.empty();(l||t.options.showCursorWhenSelecting)&&En(t,s.head,r),l||Pn(t,s,o)}}return i}function En(t,e,n){var r=cn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),o=n.appendChild(i("div"," ","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",r.other){var a=n.appendChild(i("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Ln(t,e){return t.top-e.top||t.left-e.left}function Pn(t,e,n){function r(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),l.appendChild(i("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==n?h-t:n)+"px;\n                             height: "+(r-e)+"px"))}function o(e,n,i){function o(n,i){return ln(t,D(e,n),"div",f,i)}function a(e,n,i){var r=pn(t,f,null,e),a="ltr"==n==("after"==i)?"left":"right";return o("after"==i?r.begin:r.end-(/\s/.test(f.text.charAt(r.end-1))?2:1),a)[a]}var l,c,f=A(s,e),p=f.text.length,g=St(f,s.direction);return wt(g,n||0,null==i?p:i,function(t,e,s,f){var m="ltr"==s,v=o(t,m?"left":"right"),y=o(e-1,m?"right":"left"),x=null==n&&0==t,b=null==i&&e==p,w=0==f,_=!g||f==g.length-1;if(y.top-v.top<=3){var S=(d?x:b)&&w,C=(d?b:x)&&_,T=S?u:(m?v:y).left,k=C?h:(m?y:v).right;r(T,v.top,k-T,v.bottom)}else{var A,M,E,L;m?(A=d&&x&&w?u:v.left,M=d?h:a(t,s,"before"),E=d?u:a(e,s,"after"),L=d&&b&&_?h:y.right):(A=d?a(t,s,"before"):u,M=!d&&x&&w?h:v.right,E=!d&&b&&_?u:y.left,L=d?a(e,s,"after"):h),r(A,v.top,M-A,v.bottom),v.bottom<y.top&&r(u,v.bottom,null,y.top),r(E,y.top,L-E,y.bottom)}(!l||Ln(v,l)<0)&&(l=v),Ln(y,l)<0&&(l=y),(!c||Ln(v,c)<0)&&(c=v),Ln(y,c)<0&&(c=y)}),{start:l,end:c}}var a=t.display,s=t.doc,l=document.createDocumentFragment(),c=je(t.display),u=c.left,h=Math.max(a.sizerWidth,Fe(t)-a.sizer.offsetLeft)-c.right,d="ltr"==s.direction,f=e.from(),p=e.to();if(f.line==p.line)o(f.line,f.ch,p.ch);else{var g=A(s,f.line),m=A(s,p.line),v=ht(g)==ht(m),y=o(f.line,f.ch,v?g.text.length+1:null).end,x=o(p.line,v?0:null,p.ch).start;v&&(y.top<x.top-2?(r(y.right,y.top,null,y.bottom),r(u,x.top,x.left,x.bottom)):r(y.right,y.top,x.left-y.right,y.bottom)),y.bottom<x.top&&r(u,y.bottom,null,x.top)}n.appendChild(l)}function Nn(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function On(t){t.state.focused||(t.display.input.focus(),Dn(t))}function Rn(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,In(t))},100)}function Dn(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(kt(t,"focus",t,e),t.state.focused=!0,s(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),ba&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Nn(t))}function In(t,e){t.state.delayingBlurEvent||(t.state.focused&&(kt(t,"blur",t,e),t.state.focused=!1,Ha(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Hn(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i<e.view.length;i++){var r=e.view[i],o=void 0;if(!r.hidden){if(ya&&xa<8){var a=r.node.offsetTop+r.node.offsetHeight;o=a-n,n=a}else{var s=r.node.getBoundingClientRect();o=s.bottom-s.top}var l=r.line.height-o;if(o<2&&(o=xn(e)),(l>.005||l<-.005)&&(L(r.line,o),jn(r.line),r.rest))for(var c=0;c<r.rest.length;c++)jn(r.rest[c])}}}function jn(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],i=n.node.parentNode;i&&(n.height=i.offsetHeight)}}function Vn(t,e,n){var i=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;i=Math.floor(i-Ie(t));var r=n&&null!=n.bottom?n.bottom:i+t.wrapper.clientHeight,o=N(e,i),a=N(e,r);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=N(e,yt(A(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(o=N(e,yt(A(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Fn(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=_n(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,o=i+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=i+r+"px")}}function zn(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=R(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(i("div",[i("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,s=o.offsetWidth-a;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(a,r.lineGutter.offsetWidth-s)+1,r.lineNumWidth=r.lineNumInnerWidth+s,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Ni(t),!0}return!1}function qn(t,e){if(!At(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),o=null;if(e.top+r.top<0?o=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!ka){var a=i("div","​",null,"position: absolute;\n                         top: "+(e.top-n.viewOffset-Ie(t.display))+"px;\n                         height: "+(e.bottom-e.top+Ve(t)+n.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(o),t.display.lineSpace.removeChild(a)}}}function Gn(t,e,n,i){null==i&&(i=0);var r;t.options.lineWrapping||e!=n||(e=e.ch?D(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e,n="before"==e.sticky?D(e.line,e.ch+1,"before"):e);for(var o=0;o<5;o++){var a=!1,s=cn(t,e),l=n&&n!=e?cn(t,n):s;r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i};var c=$n(t,r),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=c.scrollTop&&(Kn(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(ti(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(a=!0)),!a)break}return r}function Bn(t,e){var n=$n(t,e);null!=n.scrollTop&&Kn(t,n.scrollTop),null!=n.scrollLeft&&ti(t,n.scrollLeft)}function $n(t,e){var n=t.display,i=xn(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=ze(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+He(n),l=e.top<i,c=e.bottom>s-i;if(e.top<r)a.scrollTop=l?0:e.top;else if(e.bottom>r+o){var u=Math.min(e.top,(c?s:e.bottom)-o);u!=r&&(a.scrollTop=u)}var h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,d=Fe(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),f=e.right-e.left>d;return f&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.left<h?a.scrollLeft=Math.max(0,e.left-(f?0:10)):e.right>d+h-3&&(a.scrollLeft=e.right+(f?0:10)-d),a}function Wn(t,e){null!=e&&(Qn(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Un(t){Qn(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Xn(t,e,n){null==e&&null==n||Qn(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Yn(t,e){Qn(t),t.curOp.scrollToPos=e}function Qn(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;Zn(t,un(t,e.from),un(t,e.to),e.margin)}}function Zn(t,e,n,i){var r=$n(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});Xn(t,r.scrollLeft,r.scrollTop)}function Kn(t,e){Math.abs(t.doc.scrollTop-e)<2||(pa||Li(t,{top:e}),Jn(t,e,!0),pa&&Li(t),Si(t,100))}function Jn(t,e,n){e=Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function ti(t,e,n,i){e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,Fn(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function ei(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+He(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Ve(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}function ni(t,e){e||(e=ei(t));var n=t.display.barWidth,i=t.display.barHeight;ii(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&Hn(t),ii(t,ei(t)),n=t.display.barWidth,i=t.display.barHeight}function ii(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}function ri(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Ha(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ss[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),es(e,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?ti(t,e):Kn(t,e)},t),t.display.scrollbars.addClass&&s(t.display.wrapper,t.display.scrollbars.addClass)}function oi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Cs},ve(t.curOp)}function ai(t){xe(t.curOp,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;si(t)})}function si(t){for(var e=t.ops,n=0;n<e.length;n++)li(e[n]);for(var i=0;i<e.length;i++)ci(e[i]);for(var r=0;r<e.length;r++)ui(e[r]);for(var o=0;o<e.length;o++)hi(e[o]);for(var a=0;a<e.length;a++)di(e[a])}function li(t){var e=t.cm,n=e.display;Ti(e),t.updateMaxLine&&bt(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Ts(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function ci(t){t.updatedDisplay=t.mustUpdate&&Mi(t.cm,t.update)}function ui(t){var e=t.cm,n=e.display;t.updatedDisplay&&Hn(e),t.barMeasure=ei(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=$e(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Ve(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Fe(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function hi(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&ti(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==a();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&ni(e,t.barMeasure),t.updatedDisplay&&Oi(e,t.barMeasure),t.selectionChanged&&Nn(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&On(t.cm)}function di(t){var e=t.cm,n=e.display,i=e.doc;if(t.updatedDisplay&&Ei(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Jn(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&ti(e,t.scrollLeft,!0,!0),t.scrollToPos){qn(e,Gn(e,q(i,t.scrollToPos.from),q(i,t.scrollToPos.to),t.scrollToPos.margin))}var r=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(r)for(var a=0;a<r.length;++a)r[a].lines.length||kt(r[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&kt(o[s],"unhide");n.wrapper.offsetHeight&&(i.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&kt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function fi(t,e){if(t.curOp)return e();oi(t);try{return e()}finally{ai(t)}}function pi(t,e){return function(){if(t.curOp)return e.apply(t,arguments);oi(t);try{return e.apply(t,arguments)}finally{ai(t)}}}function gi(t){return function(){if(this.curOp)return t.apply(this,arguments);oi(this);try{return t.apply(this,arguments)}finally{ai(this)}}}function mi(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);oi(e);try{return t.apply(this,arguments)}finally{ai(e)}}}function vi(t,e,n,i){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),i||(i=0);var r=t.display;if(i&&n<r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>e)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)Za&&pt(t.doc,e)<r.viewTo&&xi(t);else if(n<=r.viewFrom)Za&&gt(t.doc,n+i)>r.viewFrom?xi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)xi(t);else if(e<=r.viewFrom){var o=bi(t,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):xi(t)}else if(n>=r.viewTo){var a=bi(t,e,e,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):xi(t)}else{var s=bi(t,e,e,-1),l=bi(t,n,n+i,1);s&&l?(r.view=r.view.slice(0,s.index).concat(me(t,s.lineN,l.lineN)).concat(r.view.slice(l.index)),r.viewTo+=i):xi(t)}var c=r.externalMeasured;c&&(n<c.lineN?c.lineN+=i:e<c.lineN+c.size&&(r.externalMeasured=null))}function yi(t,e,n){t.curOp.viewChanged=!0;var i=t.display,r=t.display.externalMeasured;if(r&&e>=r.lineN&&e<r.lineN+r.size&&(i.externalMeasured=null),!(e<i.viewFrom||e>=i.viewTo)){var o=i.view[kn(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==d(a,n)&&a.push(n)}}}function xi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function bi(t,e,n,i){var r,o=kn(t,e),a=t.display.view;if(!Za||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=e){if(i>0){if(o==a.length-1)return null;r=s+a[o].size-e,o++}else r=s-e;e+=r,n+=r}for(;pt(t.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function wi(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=me(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=me(t,e,i.viewFrom).concat(i.view):i.viewFrom<e&&(i.view=i.view.slice(kn(t,e))),i.viewFrom=e,i.viewTo<n?i.view=i.view.concat(me(t,i.viewTo,n)):i.viewTo>n&&(i.view=i.view.slice(0,kn(t,n)))),i.viewTo=n}function _i(t){for(var e=t.display.view,n=0,i=0;i<e.length;i++){var r=e[i];r.hidden||r.node&&!r.changes||++n}return n}function Si(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,c(Ci,t))}function Ci(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,i=Qt(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),function(o){if(i.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?$t(e.mode,i.state):null,l=Xt(t,o,i,!0);s&&(i.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var h=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!h&&d<a.length;++d)h=a[d]!=o.styles[d];h&&r.push(i.line),o.stateAfter=i.save(),i.nextLine()}else o.text.length<=t.options.maxHighlightLength&&Zt(t,o.text,i),o.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>n)return Si(t,t.options.workDelay),!0}),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&fi(t,function(){for(var e=0;e<r.length;e++)yi(t,r[e],"text")})}}function Ti(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=Ve(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=Ve(t)+"px",e.scrollbarsClipped=!0)}function ki(t){if(t.hasFocus())return null;var e=a();if(!e||!o(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&o(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}function Ai(t){if(t&&t.activeElt&&t.activeElt!=a()&&(t.activeElt.focus(),t.anchorNode&&o(document.body,t.anchorNode)&&o(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}function Mi(t,n){var i=t.display,r=t.doc;if(n.editorIsHidden)return xi(t),!1;if(!n.force&&n.visible.from>=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==_i(t))return!1;zn(t)&&(xi(t),n.dims=wn(t));var o=r.first+r.size,a=Math.max(n.visible.from-t.options.viewportMargin,r.first),s=Math.min(o,n.visible.to+t.options.viewportMargin);i.viewFrom<a&&a-i.viewFrom<20&&(a=Math.max(r.first,i.viewFrom)),i.viewTo>s&&i.viewTo-s<20&&(s=Math.min(o,i.viewTo)),Za&&(a=pt(t.doc,a),s=gt(t.doc,s));var l=a!=i.viewFrom||s!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;wi(t,a,s),i.viewOffset=yt(A(t.doc,i.viewFrom)),t.display.mover.style.top=i.viewOffset+"px";var c=_i(t);if(!l&&0==c&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var u=ki(t);return c>4&&(i.lineDiv.style.display="none"),Pi(t,i.updateLineNumbers,n.dims),c>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Ai(u),e(i.cursorDiv),e(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,Si(t,400)),i.updateLineNumbers=null,!0}function Ei(t,e){for(var n=e.viewport,i=!0;(i&&t.options.lineWrapping&&e.oldDisplayWidth!=Fe(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+He(t.display)-ze(t),n.top)}),e.visible=Vn(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&Mi(t,e);i=!1){Hn(t);var r=ei(t);An(t),ni(t,r),Oi(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Li(t,e){var n=new Ts(t,e);if(Mi(t,n)){Hn(t),Ei(t,n);var i=ei(t);An(t),ni(t,i),Oi(t,i),n.finish()}}function Pi(t,n,i){function r(e){var n=e.nextSibling;return ba&&La&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var o=t.display,a=t.options.lineNumbers,s=o.lineDiv,l=s.firstChild,c=o.view,u=o.viewFrom,h=0;h<c.length;h++){var f=c[h];if(f.hidden);else if(f.node&&f.node.parentNode==s){for(;l!=f.node;)l=r(l);var p=a&&null!=n&&n<=u&&f.lineNumber;f.changes&&(d(f.changes,"gutter")>-1&&(p=!1),_e(t,f,u,i)),p&&(e(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(R(t.options,u)))),l=f.node.nextSibling}else{var g=Le(t,f,u,i);s.insertBefore(g,l)}u+=f.size}for(;l;)l=r(l)}function Ni(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function Oi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Ve(t)+"px"}function Ri(t){var n=t.display.gutters,r=t.options.gutters;e(n);for(var o=0;o<r.length;++o){var a=r[o],s=n.appendChild(i("div",null,"CodeMirror-gutter "+a));"CodeMirror-linenumbers"==a&&(t.display.lineGutter=s,s.style.width=(t.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",Ni(t)}function Di(t){var e=d(t.gutters,"CodeMirror-linenumbers");-1==e&&t.lineNumbers?t.gutters=t.gutters.concat(["CodeMirror-linenumbers"]):e>-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}function Ii(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function Hi(t){var e=Ii(t);return e.x*=As,e.y*=As,e}function ji(t,e){var n=Ii(e),i=n.x,r=n.y,o=t.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(i&&s||r&&l){if(r&&La&&ba)t:for(var c=e.target,u=o.view;c!=a;c=c.parentNode)for(var h=0;h<u.length;h++)if(u[h].node==c){t.display.currentWheelTarget=c;break t}if(i&&!pa&&!Sa&&null!=As)return r&&l&&Kn(t,Math.max(0,a.scrollTop+r*As)),ti(t,Math.max(0,a.scrollLeft+i*As)),(!r||r&&l)&&Pt(e),void(o.wheelStartX=null);if(r&&null!=As){var d=r*As,f=t.doc.scrollTop,p=f+o.wrapper.clientHeight;d<0?f=Math.max(0,f+d-50):p=Math.min(t.doc.height,p+d+50),Li(t,{top:f,bottom:p})}ks<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=i,o.wheelDY=r,setTimeout(function(){if(null!=o.wheelStartX){var t=a.scrollLeft-o.wheelStartX,e=a.scrollTop-o.wheelStartY,n=e&&o.wheelDY&&e/o.wheelDY||t&&o.wheelDX&&t/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(As=(As*ks+n)/(ks+1),++ks)}},200)):(o.wheelDX+=i,o.wheelDY+=r))}}function Vi(t,e){var n=t[e];t.sort(function(t,e){return I(t.from(),e.from())}),e=d(t,n);for(var i=1;i<t.length;i++){var r=t[i],o=t[i-1];if(I(o.to(),r.from())>=0){var a=F(o.from(),r.from()),s=V(o.to(),r.to()),l=o.empty()?r.from()==r.head:o.from()==o.head;i<=e&&--e,t.splice(--i,2,new Es(l?s:a,l?a:s))}}return new Ms(t,e)}function Fi(t,e){return new Ms([new Es(t,e||t)],0)}function zi(t){return t.text?D(t.from.line+t.text.length-1,g(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function qi(t,e){if(I(t,e.from)<0)return t;if(I(t,e.to)<=0)return zi(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=zi(e).ch-e.to.ch),D(n,i)}function Gi(t,e){for(var n=[],i=0;i<t.sel.ranges.length;i++){var r=t.sel.ranges[i];n.push(new Es(qi(r.anchor,e),qi(r.head,e)))}return Vi(n,t.sel.primIndex)}function Bi(t,e,n){return t.line==e.line?D(n.line,t.ch-e.ch+n.ch):D(n.line+(t.line-e.line),t.ch)}function $i(t,e,n){for(var i=[],r=D(t.first,0),o=r,a=0;a<e.length;a++){var s=e[a],l=Bi(s.from,r,o),c=Bi(zi(s),r,o);if(r=s.to,o=c,"around"==n){var u=t.sel.ranges[a],h=I(u.head,u.anchor)<0;i[a]=new Es(h?c:l,h?l:c)}else i[a]=new Es(l,l)}return new Ms(i,t.sel.primIndex)}function Wi(t){t.doc.mode=Gt(t.options,t.doc.modeOption),Ui(t)}function Ui(t){t.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Si(t,100),t.state.modeGen++,t.curOp&&vi(t)}function Xi(t,e){return 0==e.from.ch&&0==e.to.ch&&""==g(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Yi(t,e,n,i){function r(t){return n?n[t]:null}function o(t,n,r){oe(t,n,r,i),be(t,"change",t,e)}function a(t,e){for(var n=[],o=t;o<e;++o)n.push(new ps(c[o],r(o),i));return n}var s=e.from,l=e.to,c=e.text,u=A(t,s.line),h=A(t,l.line),d=g(c),f=r(c.length-1),p=l.line-s.line;if(e.full)t.insert(0,a(0,c.length)),t.remove(c.length,t.size-c.length);else if(Xi(t,e)){var m=a(0,c.length-1);o(h,h.text,f),p&&t.remove(s.line,p),m.length&&t.insert(s.line,m)}else if(u==h)if(1==c.length)o(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),f);else{var v=a(1,c.length-1);v.push(new ps(d+u.text.slice(l.ch),f,i)),o(u,u.text.slice(0,s.ch)+c[0],r(0)),t.insert(s.line+1,v)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+h.text.slice(l.ch),r(0)),t.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],r(0)),o(h,d+h.text.slice(l.ch),f);var y=a(1,c.length-1);p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,y)}be(t,"change",t,e)}function Qi(t,e,n){function i(t,r,o){if(t.linked)for(var a=0;a<t.linked.length;++a){var s=t.linked[a];if(s.doc!=r){var l=o&&s.sharedHist;n&&!l||(e(s.doc,l),i(s.doc,t,l))}}}i(t,null,!0)}function Zi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,Cn(t),Wi(t),Ki(t),t.options.lineWrapping||bt(t),t.options.mode=e.modeOption,vi(t)}function Ki(t){("rtl"==t.doc.direction?s:Ha)(t.display.lineDiv,"CodeMirror-rtl")}function Ji(t){fi(t,function(){Ki(t),vi(t)})}function tr(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function er(t,e){var n={from:j(e.from),to:zi(e),text:M(t,e.from,e.to)};return lr(t,n,e.from.line,e.to.line+1),Qi(t,function(t){return lr(t,n,e.from.line,e.to.line+1)},!0),n}function nr(t){for(;t.length;){if(!g(t).ranges)break;t.pop()}}function ir(t,e){return e?(nr(t.done),g(t.done)):t.done.length&&!g(t.done).ranges?g(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),g(t.done)):void 0}function rr(t,e,n,i){var r=t.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&r.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=ir(r,r.lastOp==i)))a=g(o.changes),0==I(e.from,e.to)&&0==I(e.from,a.to)?a.to=zi(e):o.changes.push(er(t,e));else{var l=g(r.done);for(l&&l.ranges||sr(t.sel,r.done),o={changes:[er(t,e)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,a||kt(t,"historyAdded")}function or(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ar(t,e,n,i){var r=t.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||or(t,o,g(r.done),e))?r.done[r.done.length-1]=e:sr(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&nr(r.undone)}function sr(t,e){var n=g(e);n&&n.ranges&&n.equals(t)||e.push(t)}function lr(t,e,n,i){var r=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[o]=n.markedSpans),++o})}function cr(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function ur(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var i=[],r=0;r<e.text.length;++r)i.push(cr(n[r]));return i}function hr(t,e){var n=ur(t,e),i=J(t,e);if(!n)return i;if(!i)return n;for(var r=0;r<n.length;++r){var o=n[r],a=i[r];if(o&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue t;o.push(l)}else a&&(n[r]=a)}return n}function dr(t,e,n){for(var i=[],r=0;r<t.length;++r){var o=t[r];if(o.ranges)i.push(n?Ms.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),e)for(var h in c)(u=h.match(/^spans_(\d+)$/))&&d(e,Number(u[1]))>-1&&(g(s)[h]=c[h],delete c[h])}}}return i}function fr(t,e,n,i){if(i){var r=t.anchor;if(n){var o=I(e,r)<0;o!=I(n,r)<0?(r=e,e=n):o!=I(e,n)<0&&(e=n)}return new Es(r,e)}return new Es(n||e,e)}function pr(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),br(t,new Ms([fr(t.sel.primary(),e,n,r)],0),i)}function gr(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)i[o]=fr(t.sel.ranges[o],e[o],null,r);br(t,Vi(i,t.sel.primIndex),n)}function mr(t,e,n,i){var r=t.sel.ranges.slice(0);r[e]=n,br(t,Vi(r,t.sel.primIndex),i)}function vr(t,e,n,i){br(t,Fi(e,n),i)}function yr(t,e,n){var i={ranges:e.ranges,update:function(e){var n=this;this.ranges=[];for(var i=0;i<e.length;i++)n.ranges[i]=new Es(q(t,e[i].anchor),q(t,e[i].head))},origin:n&&n.origin};return kt(t,"beforeSelectionChange",t,i),t.cm&&kt(t.cm,"beforeSelectionChange",t.cm,i),i.ranges!=e.ranges?Vi(i.ranges,i.ranges.length-1):e}function xr(t,e,n){var i=t.history.done,r=g(i);r&&r.ranges?(i[i.length-1]=e,wr(t,e,n)):br(t,e,n)}function br(t,e,n){wr(t,e,n),ar(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function wr(t,e,n){(Et(t,"beforeSelectionChange")||t.cm&&Et(t.cm,"beforeSelectionChange"))&&(e=yr(t,e,n)),_r(t,Cr(t,e,n&&n.bias||(I(e.primary().head,t.sel.primary().head)<0?-1:1),!0)),n&&!1===n.scroll||!t.cm||Un(t.cm)}function _r(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=t.cm.curOp.selectionChanged=!0,Mt(t.cm)),be(t,"cursorActivity",t))}function Sr(t){_r(t,Cr(t,t.sel,null,!1))}function Cr(t,e,n,i){for(var r,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=kr(t,a.anchor,s&&s.anchor,n,i),c=kr(t,a.head,s&&s.head,n,i);(r||l!=a.anchor||c!=a.head)&&(r||(r=e.ranges.slice(0,o)),r[o]=new Es(l,c))}return r?Vi(r,e.primIndex):e}function Tr(t,e,n,i,r){var o=A(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker;if((null==s.from||(l.inclusiveLeft?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(l.inclusiveRight?s.to>=e.ch:s.to>e.ch))){if(r&&(kt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var c=l.find(i<0?1:-1),u=void 0;if((i<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Ar(t,c,-i,c&&c.line==e.line?o:null)),c&&c.line==e.line&&(u=I(c,n))&&(i<0?u<0:u>0))return Tr(t,c,e,i,r)}var h=l.find(i<0?-1:1);return(i<0?l.inclusiveLeft:l.inclusiveRight)&&(h=Ar(t,h,i,h.line==e.line?o:null)),h?Tr(t,h,e,i,r):null}}return e}function kr(t,e,n,i,r){var o=i||1,a=Tr(t,e,n,o,r)||!r&&Tr(t,e,n,o,!0)||Tr(t,e,n,-o,r)||!r&&Tr(t,e,n,-o,!0);return a||(t.cantEdit=!0,D(t.first,0))}function Ar(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?q(t,D(e.line-1)):null:n>0&&e.ch==(i||A(t,e.line)).text.length?e.line<t.first+t.size-1?D(e.line+1,0):null:new D(e.line,e.ch+n)}function Mr(t){t.setSelection(D(t.firstLine(),0),D(t.lastLine()),Ba)}function Er(t,e,n){var i={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return i.canceled=!0}};return n&&(i.update=function(e,n,r,o){e&&(i.from=q(t,e)),n&&(i.to=q(t,n)),r&&(i.text=r),void 0!==o&&(i.origin=o)}),kt(t,"beforeChange",t,i),t.cm&&kt(t.cm,"beforeChange",t.cm,i),i.canceled?null:{from:i.from,to:i.to,text:i.text,origin:i.origin}}function Lr(t,e,n){if(t.cm){if(!t.cm.curOp)return pi(t.cm,Lr)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(Et(t,"beforeChange")||t.cm&&Et(t.cm,"beforeChange"))||(e=Er(t,e,!0))){var i=Qa&&!n&&et(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)Pr(t,{from:i[r].from,to:i[r].to,
-text:r?[""]:e.text,origin:e.origin});else Pr(t,e)}}function Pr(t,e){if(1!=e.text.length||""!=e.text[0]||0!=I(e.from,e.to)){var n=Gi(t,e);rr(t,e,n,t.cm?t.cm.curOp.id:NaN),Rr(t,e,n,J(t,e));var i=[];Qi(t,function(t,n){n||-1!=d(i,t.history)||(Vr(t.history,e),i.push(t.history)),Rr(t,e,null,J(t,e))})}}function Nr(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,c=0;c<s.length&&(r=s[c],n?!r.ranges||r.equals(t.sel):r.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(r=s.pop(),!r.ranges){if(i)return void s.push(r);break}if(sr(r,l),n&&!r.equals(t.sel))return void br(t,r,{clearRedo:!1});a=r}var u=[];sr(a,l),l.push({changes:u,generation:o.generation}),o.generation=r.generation||++o.maxGeneration;for(var h=Et(t,"beforeChange")||t.cm&&Et(t.cm,"beforeChange"),f=r.changes.length-1;f>=0;--f){var p=function(n){var i=r.changes[n];if(i.origin=e,h&&!Er(t,i,!1))return s.length=0,{};u.push(er(t,i));var o=n?Gi(t,i):g(s);Rr(t,i,o,hr(t,i)),!n&&t.cm&&t.cm.scrollIntoView({from:i.from,to:zi(i)});var a=[];Qi(t,function(t,e){e||-1!=d(a,t.history)||(Vr(t.history,i),a.push(t.history)),Rr(t,i,null,hr(t,i))})}(f);if(p)return p.v}}}}function Or(t,e){if(0!=e&&(t.first+=e,t.sel=new Ms(m(t.sel.ranges,function(t){return new Es(D(t.anchor.line+e,t.anchor.ch),D(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){vi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;i<n.viewTo;i++)yi(t.cm,i,"gutter")}}function Rr(t,e,n,i){if(t.cm&&!t.cm.curOp)return pi(t.cm,Rr)(t,e,n,i);if(e.to.line<t.first)return void Or(t,e.text.length-1-(e.to.line-e.from.line));if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var r=e.text.length-1-(t.first-e.from.line);Or(t,r),e={from:D(t.first,0),to:D(e.to.line+r,e.to.ch),text:[g(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:D(o,A(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=M(t,e.from,e.to),n||(n=Gi(t,e)),t.cm?Dr(t.cm,e,i):Yi(t,e,i),wr(t,n,Ba)}}function Dr(t,e,n){var i=t.doc,r=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=P(ht(A(i,o.line))),i.iter(l,a.line+1,function(t){if(t==r.maxLine)return s=!0,!0})),i.sel.contains(e.from,e.to)>-1&&Mt(t),Yi(i,e,n,Sn(t)),t.options.lineWrapping||(i.iter(l,o.line+e.text.length,function(t){var e=xt(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,s=!1)}),s&&(t.curOp.updateMaxLine=!0)),re(i,o.line),Si(t,400);var c=e.text.length-(a.line-o.line)-1;e.full?vi(t):o.line!=a.line||1!=e.text.length||Xi(t.doc,e)?vi(t,o.line,a.line+1,c):yi(t,o.line,"text");var u=Et(t,"changes"),h=Et(t,"change");if(h||u){var d={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};h&&be(t,"change",t,d),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}function Ir(t,e,n,i,r){if(i||(i=n),I(i,n)<0){var o;o=[i,n],n=o[0],i=o[1]}"string"==typeof e&&(e=t.splitLines(e)),Lr(t,{from:n,to:i,text:e,origin:r})}function Hr(t,e,n,i){n<t.line?t.line+=i:e<t.line&&(t.line=e,t.ch=0)}function jr(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r],a=!0;if(o.ranges){o.copied||(o=t[r]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)Hr(o.ranges[s].anchor,e,n,i),Hr(o.ranges[s].head,e,n,i)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=D(c.from.line+i,c.from.ch),c.to=D(c.to.line+i,c.to.ch);else if(e<=c.to.line){a=!1;break}}a||(t.splice(0,r+1),r=0)}}}function Vr(t,e){var n=e.from.line,i=e.to.line,r=e.text.length-(i-n)-1;jr(t.done,n,i,r),jr(t.undone,n,i,r)}function Fr(t,e,n,i){var r=e,o=e;return"number"==typeof e?o=A(t,z(t,e)):r=P(e),null==r?null:(i(o,r)&&t.cm&&yi(t.cm,r,n),o)}function zr(t){var e=this;this.lines=t,this.parent=null;for(var n=0,i=0;i<t.length;++i)t[i].parent=e,n+=t[i].height;this.height=n}function qr(t){var e=this;this.children=t;for(var n=0,i=0,r=0;r<t.length;++r){var o=t[r];n+=o.chunkSize(),i+=o.height,o.parent=e}this.size=n,this.height=i,this.parent=null}function Gr(t,e,n){yt(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Wn(t,n)}function Br(t,e,n,i){var r=new Ls(t,n,i),o=t.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),Fr(t,e,"widget",function(e){var n=e.widgets||(e.widgets=[]);if(null==r.insertAt?n.push(r):n.splice(Math.min(n.length-1,Math.max(0,r.insertAt)),0,r),r.line=e,o&&!mt(t,e)){var i=yt(e)<t.scrollTop;L(e,e.height+Re(r)),i&&Wn(o,r.height),o.curOp.forceUpdate=!0}return!0}),o&&be(o,"lineWidgetAdded",o,r,"number"==typeof e?e:P(e)),r}function $r(t,e,n,i,o){if(i&&i.shared)return Wr(t,e,n,i,o);if(t.cm&&!t.cm.curOp)return pi(t.cm,$r)(t,e,n,i,o);var a=new Ns(t,o),s=I(e,n);if(i&&u(i,a,!1),s>0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=r("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ut(t,e.line,e,n,a)||e.line!=n.line&&ut(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");W()}a.addToHistory&&rr(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var l,c=e.line,h=t.cm;if(t.iter(c,n.line+1,function(t){h&&a.collapsed&&!h.options.lineWrapping&&ht(t)==h.display.maxLine&&(l=!0),a.collapsed&&c!=e.line&&L(t,0),Q(t,new U(a,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c}),a.collapsed&&t.iter(e.line,n.line+1,function(e){mt(t,e)&&L(e,0)}),a.clearOnEnter&&es(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&($(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++Ps,a.atomic=!0),h){if(l&&(h.curOp.updateMaxLine=!0),a.collapsed)vi(h,e.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var d=e.line;d<=n.line;d++)yi(h,d,"text");a.atomic&&Sr(h.doc),be(h,"markerAdded",h,a)}return a}function Wr(t,e,n,i,r){i=u(i),i.shared=!1;var o=[$r(t,e,n,i,r)],a=o[0],s=i.widgetNode;return Qi(t,function(t){s&&(i.widgetNode=s.cloneNode(!0)),o.push($r(t,q(t,e),q(t,n),i,r));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=g(o)}),new Os(o,a)}function Ur(t){return t.findMarks(D(t.first,0),t.clipPos(D(t.lastLine())),function(t){return t.parent})}function Xr(t,e){for(var n=0;n<e.length;n++){var i=e[n],r=i.find(),o=t.clipPos(r.from),a=t.clipPos(r.to);if(I(o,a)){var s=$r(t,o,a,i.primary,i.primary.type);i.markers.push(s),s.parent=i}}}function Yr(t){for(var e=0;e<t.length;e++)!function(e){var n=t[e],i=[n.primary.doc];Qi(n.primary.doc,function(t){return i.push(t)});for(var r=0;r<n.markers.length;r++){var o=n.markers[r];-1==d(i,o.doc)&&(o.parent=null,n.markers.splice(r--,1))}}(e)}function Qr(t){var e=this;if(Jr(e),!At(e,t)&&!De(e.display,t)){Pt(t),ya&&(Is=+new Date);var n=Tn(e,t,!0),i=t.dataTransfer.files;if(n&&!e.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var r=i.length,o=Array(r),a=0,s=0;s<r;++s)!function(t,i){if(!e.options.allowDropFileTypes||-1!=d(e.options.allowDropFileTypes,t.type)){var s=new FileReader;s.onload=pi(e,function(){var t=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(t)&&(t=""),o[i]=t,++a==r){n=q(e.doc,n);var l={from:n,to:n,text:e.doc.splitLines(o.join(e.doc.lineSeparator())),origin:"paste"};Lr(e.doc,l),xr(e.doc,Fi(n,zi(l)))}}),s.readAsText(t)}}(i[s],s);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var l=t.dataTransfer.getData("Text");if(l){var c;if(e.state.draggingText&&!e.state.draggingText.copy&&(c=e.listSelections()),wr(e.doc,Fi(n,n)),c)for(var u=0;u<c.length;++u)Ir(e.doc,"",c[u].anchor,c[u].head,"drag");e.replaceSelection(l,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Zr(t,e){if(ya&&(!t.state.draggingText||+new Date-Is<100))return void Rt(e);if(!At(t,e)&&!De(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!Ca)){var n=i("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Sa&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),Sa&&n.parentNode.removeChild(n)}}function Kr(t,e){var r=Tn(t,e);if(r){var o=document.createDocumentFragment();En(t,r,o),t.display.dragCursor||(t.display.dragCursor=i("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),n(t.display.dragCursor,o)}}function Jr(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function to(t){if(document.getElementsByClassName)for(var e=document.getElementsByClassName("CodeMirror"),n=0;n<e.length;n++){var i=e[n].CodeMirror;i&&t(i)}}function eo(){Hs||(no(),Hs=!0)}function no(){var t;es(window,"resize",function(){null==t&&(t=setTimeout(function(){t=null,to(io)},100))}),es(window,"blur",function(){return to(In)})}function io(t){var e=t.display;e.lastWrapHeight==e.wrapper.clientHeight&&e.lastWrapWidth==e.wrapper.clientWidth||(e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize())}function ro(t){var e=t.split(/-(?!$)/);t=e[e.length-1];for(var n,i,r,o,a=0;a<e.length-1;a++){var s=e[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))i=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return n&&(t="Alt-"+t),i&&(t="Ctrl-"+t),o&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function oo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==i){delete t[n];continue}for(var r=m(n.split(" "),ro),o=0;o<r.length;o++){var a=void 0,s=void 0;o==r.length-1?(s=r.join(" "),a=i):(s=r.slice(0,o+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var c in e)t[c]=e[c];return t}function ao(t,e,n,i){e=uo(e);var r=e.call?e.call(t,i):e[t];if(!1===r)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return ao(t,e.fallthrough,n,i);for(var o=0;o<e.fallthrough.length;o++){var a=ao(t,e.fallthrough[o],n,i);if(a)return a}}}function so(t){var e="string"==typeof t?t:js[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function lo(t,e,n){var i=t;return e.altKey&&"Alt"!=i&&(t="Alt-"+t),(Da?e.metaKey:e.ctrlKey)&&"Ctrl"!=i&&(t="Ctrl-"+t),(Da?e.ctrlKey:e.metaKey)&&"Cmd"!=i&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=i&&(t="Shift-"+t),t}function co(t,e){if(Sa&&34==t.keyCode&&t.char)return!1;var n=js[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),lo(n,t,e))}function uo(t){return"string"==typeof t?qs[t]:t}function ho(t,e){for(var n=t.doc.sel.ranges,i=[],r=0;r<n.length;r++){for(var o=e(n[r]);i.length&&I(o.from,g(i).to)<=0;){var a=i.pop();if(I(a.from,o.from)<0){o.from=a.from;break}}i.push(o)}fi(t,function(){for(var e=i.length-1;e>=0;e--)Ir(t.doc,"",i[e].from,i[e].to,"+delete");Un(t)})}function fo(t,e,n){var i=C(t.text,e+n,n);return i<0||i>t.text.length?null:i}function po(t,e,n){var i=fo(t,e.ch,n);return null==i?null:new D(e.line,i,n<0?"after":"before")}function go(t,e,n,i,r){if(t){var o=St(n,e.doc.direction);if(o){var a,s=r<0?g(o):o[0],l=r<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=Ue(e,n);a=r<0?n.text.length-1:0;var h=Xe(e,u,a).top;a=T(function(t){return Xe(e,u,t).top==h},r<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=fo(n,a,1))}else a=r<0?s.to:s.from;return new D(i,a,c)}}return new D(i,r<0?n.text.length:0,r<0?"before":"after")}function mo(t,e,n,i){var r=St(e,t.doc.direction);if(!r)return po(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=_t(r,n.ch,n.sticky),a=r[o];if("ltr"==t.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from<n.ch))return po(e,n,i);var s,l=function(t,n){return fo(e,t instanceof D?t.ch:t,n)},c=function(n){return t.options.lineWrapping?(s=s||Ue(t,e),pn(t,e,s,n)):{begin:0,end:e.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var h=1==a.level==i<0,d=l(n,h?1:-1);if(null!=d&&(h?d<=a.to&&d<=u.end:d>=a.from&&d>=u.begin)){var f=h?"before":"after";return new D(n.line,d,f)}}var p=function(t,e,i){for(var o=function(t,e){return e?new D(n.line,l(t,1),"before"):new D(n.line,t,"after")};t>=0&&t<r.length;t+=e){var a=r[t],s=e>0==(1!=a.level),c=s?i.begin:l(i.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),i.begin<=c&&c<i.end)return o(c,s)}},g=p(o+i,i,u);if(g)return g;var m=i>0?u.end:l(u.begin,-1);return null==m||i>0&&m==e.text.length||!(g=p(i>0?0:r.length-1,i,c(m)))?null:g}function vo(t,e){var n=A(t.doc,e),i=ht(n);return i!=n&&(e=P(i)),go(!0,t,i,e,1)}function yo(t,e){var n=A(t.doc,e),i=dt(n);return i!=n&&(e=P(i)),go(!0,t,n,e,-1)}function xo(t,e){var n=vo(t,e.line),i=A(t.doc,n.line),r=St(i,t.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),a=e.line==n.line&&e.ch<=o&&e.ch;return D(n.line,a?0:o,n.sticky)}return n}function bo(t,e,n){if("string"==typeof e&&!(e=Gs[e]))return!1;t.display.input.ensurePolled();var i=t.display.shift,r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),r=e(t)!=Ga}finally{t.display.shift=i,t.state.suppressEdits=!1}return r}function wo(t,e,n){for(var i=0;i<t.state.keyMaps.length;i++){var r=ao(e,t.state.keyMaps[i],n,t);if(r)return r}return t.options.extraKeys&&ao(e,t.options.extraKeys,n,t)||ao(e,t.options.keyMap,n,t)}function _o(t,e,n,i){var r=t.state.keySeq;if(r){if(so(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:Bs.set(50,function(){t.state.keySeq==r&&(t.state.keySeq=null,t.display.input.reset())}),So(t,r+" "+e,n,i))return!0}return So(t,e,n,i)}function So(t,e,n,i){var r=wo(t,e,i);return"multi"==r&&(t.state.keySeq=e),"handled"==r&&be(t,"keyHandled",t,e,n),"handled"!=r&&"multi"!=r||(Pt(n),Nn(t)),!!r}function Co(t,e){var n=co(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?_o(t,"Shift-"+n,e,function(e){return bo(t,e,!0)})||_o(t,n,e,function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return bo(t,e)}):_o(t,n,e,function(e){return bo(t,e)}))}function To(t,e,n){return _o(t,"'"+n+"'",e,function(e){return bo(t,e,!0)})}function ko(t){var e=this;if(e.curOp.focus=a(),!At(e,t)){ya&&xa<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var i=Co(e,t);Sa&&($s=i?n:null,!i&&88==n&&!os&&(La?t.metaKey:t.ctrlKey)&&e.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||Ao(e)}}function Ao(t){function e(t){18!=t.keyCode&&t.altKey||(Ha(n,"CodeMirror-crosshair"),Tt(document,"keyup",e),Tt(document,"mouseover",e))}var n=t.display.lineDiv;s(n,"CodeMirror-crosshair"),es(document,"keyup",e),es(document,"mouseover",e)}function Mo(t){16==t.keyCode&&(this.doc.sel.shift=!1),At(this,t)}function Eo(t){var e=this;if(!(De(e.display,t)||At(e,t)||t.ctrlKey&&!t.altKey||La&&t.metaKey)){var n=t.keyCode,i=t.charCode;if(Sa&&n==$s)return $s=null,void Pt(t);if(!Sa||t.which&&!(t.which<10)||!Co(e,t)){var r=String.fromCharCode(null==i?n:i);"\b"!=r&&(To(e,t,r)||e.display.input.onKeyPress(t))}}}function Lo(t,e){var n=+new Date;return Xs&&Xs.compare(n,t,e)?(Us=Xs=null,"triple"):Us&&Us.compare(n,t,e)?(Xs=new Ws(n,t,e),Us=null,"double"):(Us=new Ws(n,t,e),Xs=null,"single")}function Po(t){var e=this,n=e.display;if(!(At(e,t)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=t.shiftKey,De(n,t))return void(ba||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!Fo(e,t)){var i=Tn(e,t),r=It(t),o=i?Lo(i,r):"single";window.focus(),1==r&&e.state.selectingText&&e.state.selectingText(t),i&&No(e,r,i,o,t)||(1==r?i?Ro(e,i,o,t):Dt(t)==n.scroller&&Pt(t):2==r?(i&&pr(e.doc,i),setTimeout(function(){return n.input.focus()},20)):3==r&&(Ia?zo(e,t):Rn(e)))}}}function No(t,e,n,i,r){var o="Click";return"double"==i?o="Double"+o:"triple"==i&&(o="Triple"+o),o=(1==e?"Left":2==e?"Middle":"Right")+o,_o(t,lo(o,r),r,function(e){if("string"==typeof e&&(e=Gs[e]),!e)return!1;var i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),i=e(t,n)!=Ga}finally{t.state.suppressEdits=!1}return i})}function Oo(t,e,n){var i=t.getOption("configureMouse"),r=i?i(t,e,n):{};if(null==r.unit){var o=Pa?n.shiftKey&&n.metaKey:n.altKey;r.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==r.extend||t.doc.extend)&&(r.extend=t.doc.extend||n.shiftKey),null==r.addNew&&(r.addNew=La?n.metaKey:n.ctrlKey),null==r.moveOnDrag&&(r.moveOnDrag=!(La?n.altKey:n.ctrlKey)),r}function Ro(t,e,n,i){ya?setTimeout(c(On,t),0):t.curOp.focus=a();var r,o=Oo(t,n,i),s=t.doc.sel;t.options.dragDrop&&ns&&!t.isReadOnly()&&"single"==n&&(r=s.contains(e))>-1&&(I((r=s.ranges[r]).from(),e)<0||e.xRel>0)&&(I(r.to(),e)>0||e.xRel<0)?Do(t,i,e,o):Ho(t,i,e,o)}function Do(t,e,n,i){var r=t.display,o=!1,a=pi(t,function(e){ba&&(r.scroller.draggable=!1),t.state.draggingText=!1,Tt(r.wrapper.ownerDocument,"mouseup",a),Tt(r.wrapper.ownerDocument,"mousemove",s),Tt(r.scroller,"dragstart",l),Tt(r.scroller,"drop",a),o||(Pt(e),i.addNew||pr(t.doc,n,null,null,i.extend),ba||ya&&9==xa?setTimeout(function(){r.wrapper.ownerDocument.body.focus(),r.input.focus()},20):r.input.focus())}),s=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},l=function(){return o=!0};ba&&(r.scroller.draggable=!0),t.state.draggingText=a,a.copy=!i.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),es(r.wrapper.ownerDocument,"mouseup",a),es(r.wrapper.ownerDocument,"mousemove",s),es(r.scroller,"dragstart",l),es(r.scroller,"drop",a),Rn(t),setTimeout(function(){return r.input.focus()},20)}function Io(t,e,n){if("char"==n)return new Es(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Es(D(e.line,0),q(t.doc,D(e.line+1,0)));var i=n(t,e);return new Es(i.from,i.to)}function Ho(t,e,n,i){function r(e){if(0!=I(v,e))if(v=e,"rectangle"==i.unit){for(var r=[],o=t.options.tabSize,a=h(A(c,n.line).text,n.ch,o),s=h(A(c,e.line).text,e.ch,o),l=Math.min(a,s),g=Math.max(a,s),m=Math.min(n.line,e.line),y=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=y;m++){var x=A(c,m).text,b=f(x,l,o);l==g?r.push(new Es(D(m,b),D(m,b))):x.length>b&&r.push(new Es(D(m,b),D(m,f(x,g,o))))}r.length||r.push(new Es(n,n)),br(c,Vi(p.ranges.slice(0,d).concat(r),d),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var w,_=u,S=Io(t,e,i.unit),C=_.anchor;I(S.anchor,C)>0?(w=S.head,C=F(_.from(),S.anchor)):(w=S.anchor,C=V(_.to(),S.head));var T=p.ranges.slice(0);T[d]=jo(t,new Es(q(c,C),w)),br(c,Vi(T,d),$a)}}function o(e){var n=++x,s=Tn(t,e,!0,"rectangle"==i.unit);if(s)if(0!=I(s,v)){t.curOp.focus=a(),r(s);var u=Vn(l,c);(s.line>=u.to||s.line<u.from)&&setTimeout(pi(t,function(){x==n&&o(e)}),150)}else{var h=e.clientY<y.top?-20:e.clientY>y.bottom?20:0;h&&setTimeout(pi(t,function(){x==n&&(l.scroller.scrollTop+=h,o(e))}),50)}}function s(e){t.state.selectingText=!1,x=1/0,Pt(e),l.input.focus(),Tt(l.wrapper.ownerDocument,"mousemove",b),Tt(l.wrapper.ownerDocument,"mouseup",w),c.history.lastSelOrigin=null}var l=t.display,c=t.doc;Pt(e);var u,d,p=c.sel,g=p.ranges;if(i.addNew&&!i.extend?(d=c.sel.contains(n),u=d>-1?g[d]:new Es(n,n)):(u=c.sel.primary(),d=c.sel.primIndex),"rectangle"==i.unit)i.addNew||(u=new Es(n,n)),n=Tn(t,e,!0,!0),d=-1;else{var m=Io(t,n,i.unit);u=i.extend?fr(u,m.anchor,m.head,i.extend):m}i.addNew?-1==d?(d=g.length,br(c,Vi(g.concat([u]),d),{scroll:!1,origin:"*mouse"})):g.length>1&&g[d].empty()&&"char"==i.unit&&!i.extend?(br(c,Vi(g.slice(0,d).concat(g.slice(d+1)),0),{scroll:!1,origin:"*mouse"}),p=c.sel):mr(c,d,u,$a):(d=0,br(c,new Ms([u],0),$a),p=c.sel);var v=n,y=l.wrapper.getBoundingClientRect(),x=0,b=pi(t,function(t){It(t)?o(t):s(t)}),w=pi(t,s);t.state.selectingText=w,es(l.wrapper.ownerDocument,"mousemove",b),es(l.wrapper.ownerDocument,"mouseup",w)}function jo(t,e){var n=e.anchor,i=e.head,r=A(t.doc,n.line);if(0==I(n,i)&&n.sticky==i.sticky)return e;var o=St(r);if(!o)return e;var a=_t(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return e;var c;if(i.line!=n.line)c=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=_t(o,i.ch,i.sticky),h=u-a||(i.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?h<0:h>0}var d=o[l+(c?-1:0)],f=c==(1==d.level),p=f?d.from:d.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?e:new Es(new D(n.line,p,g),i)}function Vo(t,e,n,i){var r,o;if(e.touches)r=e.touches[0].clientX,o=e.touches[0].clientY;else try{r=e.clientX,o=e.clientY}catch(e){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&Pt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Et(t,n))return Ot(e);o-=s.top-a.viewOffset;for(var l=0;l<t.options.gutters.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=r){return kt(t,n,t,N(t.doc,o),t.options.gutters[l],e),Ot(e)}}}function Fo(t,e){return Vo(t,e,"gutterClick",!0)}function zo(t,e){De(t.display,e)||qo(t,e)||At(t,e,"contextmenu")||t.display.input.onContextMenu(e)}function qo(t,e){return!!Et(t,"gutterContextMenu")&&Vo(t,e,"gutterContextMenu",!1)}function Go(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),en(t)}function Bo(t){Ri(t),vi(t),Fn(t)}function $o(t,e,n){if(!e!=!(n&&n!=Ys)){var i=t.display.dragFunctions,r=e?es:Tt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Wo(t){t.options.lineWrapping?(s(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(Ha(t.display.wrapper,"CodeMirror-wrap"),bt(t)),Cn(t),vi(t),en(t),setTimeout(function(){return ni(t)},100)}function Uo(t,e){var n=this;if(!(this instanceof Uo))return new Uo(t,e);this.options=e=e?u(e):{},u(Qs,e,!1),Di(e);var i=e.value;"string"==typeof i&&(i=new Ds(i,e.mode,null,e.lineSeparator,e.direction)),this.doc=i;var r=new Uo.inputStyles[e.inputStyle](this),o=this.display=new k(t,i,r);o.wrapper.CodeMirror=this,Ri(this),Go(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ri(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Va,keySeq:null,specialChars:null},e.autofocus&&!Ea&&o.input.focus(),ya&&xa<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Xo(this),eo(),oi(this),this.curOp.forceUpdate=!0,Zi(this,i),e.autofocus&&!Ea||this.hasFocus()?setTimeout(c(Dn,this),20):In(this);for(var a in Zs)Zs.hasOwnProperty(a)&&Zs[a](n,e[a],Ys);zn(this),e.finishInit&&e.finishInit(this);for(var s=0;s<Ks.length;++s)Ks[s](n);ai(this),ba&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Xo(t){function e(){r.activeTouch&&(o=setTimeout(function(){return r.activeTouch=null},1e3),a=r.activeTouch,a.end=+new Date)}function n(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function i(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}var r=t.display;es(r.scroller,"mousedown",pi(t,Po)),ya&&xa<11?es(r.scroller,"dblclick",pi(t,function(e){if(!At(t,e)){var n=Tn(t,e);if(n&&!Fo(t,e)&&!De(t.display,e)){Pt(e);var i=t.findWordAt(n);pr(t.doc,i.anchor,i.head)}}})):es(r.scroller,"dblclick",function(e){return At(t,e)||Pt(e)}),Ia||es(r.scroller,"contextmenu",function(e){return zo(t,e)});var o,a={end:0};es(r.scroller,"touchstart",function(e){if(!At(t,e)&&!n(e)&&!Fo(t,e)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-a.end<=300?a:null},1==e.touches.length&&(r.activeTouch.left=e.touches[0].pageX,r.activeTouch.top=e.touches[0].pageY)}}),es(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),es(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!De(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=t.coordsChar(r.activeTouch,"page");a=!o.prev||i(o,o.prev)?new Es(s,s):!o.prev.prev||i(o,o.prev.prev)?t.findWordAt(s):new Es(D(s.line,0),q(t.doc,D(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),Pt(n)}e()}),es(r.scroller,"touchcancel",e),es(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Kn(t,r.scroller.scrollTop),ti(t,r.scroller.scrollLeft,!0),kt(t,"scroll",t))}),es(r.scroller,"mousewheel",function(e){return ji(t,e)}),es(r.scroller,"DOMMouseScroll",function(e){return ji(t,e)}),es(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(e){At(t,e)||Rt(e)},over:function(e){At(t,e)||(Kr(t,e),Rt(e))},start:function(e){return Zr(t,e)},drop:pi(t,Qr),leave:function(e){At(t,e)||Jr(t)}};var s=r.input.getField();es(s,"keyup",function(e){return Mo.call(t,e)}),es(s,"keydown",pi(t,ko)),es(s,"keypress",pi(t,Eo)),es(s,"focus",function(e){return Dn(t,e)}),es(s,"blur",function(e){return In(t,e)})}function Yo(t,e,n,i){var r,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=Qt(t,e).state:n="prev");var a=t.options.tabSize,s=A(o,e),l=h(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(r,s.text.slice(u.length),s.text))==Ga||c>150)){if(!i)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?h(A(o,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",f=0;if(t.options.indentWithTabs)for(var g=Math.floor(c/a);g;--g)f+=a,d+="\t";if(f<c&&(d+=p(c-f)),d!=u)return Ir(o,d,D(e,0),D(e,u.length),"+input"),s.stateAfter=null,!0;for(var m=0;m<o.sel.ranges.length;m++){var v=o.sel.ranges[m];if(v.head.line==e&&v.head.ch<u.length){var y=D(e,u.length);mr(o,m,new Es(y,y));break}}}function Qo(t){Js=t}function Zo(t,e,n,i,r){var o=t.doc;t.display.shift=!1,i||(i=o.sel);var a=t.state.pasteIncoming||"paste"==r,s=is(e),l=null;if(a&&i.ranges.length>1)if(Js&&Js.text.join("\n")==e){if(i.ranges.length%Js.text.length==0){l=[];for(var c=0;c<Js.text.length;c++)l.push(o.splitLines(Js.text[c]))}}else s.length==i.ranges.length&&t.options.pasteLinesPerSelection&&(l=m(s,function(t){return[t]}));for(var u,h=i.ranges.length-1;h>=0;h--){var d=i.ranges[h],f=d.from(),p=d.to();d.empty()&&(n&&n>0?f=D(f.line,f.ch-n):t.state.overwrite&&!a?p=D(p.line,Math.min(A(o,p.line).text.length,p.ch+g(s).length)):Js&&Js.lineWise&&Js.text.join("\n")==e&&(f=p=D(f.line,0))),u=t.curOp.updateInput;var v={from:f,to:p,text:l?l[h%l.length]:s,origin:r||(a?"paste":t.state.cutIncoming?"cut":"+input")};Lr(t.doc,v),be(t,"inputRead",t,v)}e&&!a&&Jo(t,e),Un(t),t.curOp.updateInput=u,t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=!1}function Ko(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||fi(e,function(){return Zo(e,n,0,null,"paste")}),!0}function Jo(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=t.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=Yo(t,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(A(t.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Yo(t,r.head.line,"smart"));a&&be(t,"electricInput",t,r.head.line)}}}function ta(t){for(var e=[],n=[],i=0;i<t.doc.sel.ranges.length;i++){var r=t.doc.sel.ranges[i].head.line,o={anchor:D(r,0),head:D(r+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function ea(t,e){t.setAttribute("autocorrect","off"),t.setAttribute("autocapitalize","off"),t.setAttribute("spellcheck",!!e)}function na(){var t=i("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=i("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ba?t.style.width="1000px":t.setAttribute("wrap","off"),Aa&&(t.style.border="1px solid black"),ea(t),e}function ia(t,e,n,i,r){function o(){var i=e.line+n;return!(i<t.first||i>=t.first+t.size)&&(e=new D(i,e.ch,e.sticky),c=A(t,i))}function a(i){var a;if(null==(a=r?mo(t.cm,c,e,n):po(c,e,n))){if(i||!o())return!1;e=go(r,t.cm,c,e.line,n)}else e=a;return!0}var s=e,l=n,c=A(t,e.line);if("char"==i)a();else if("column"==i)a(!0);else if("word"==i||"group"==i)for(var u=null,h="group"==i,d=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||a(!f);f=!1){var p=c.text.charAt(e.ch)||"\n",g=w(p,d)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||f||g||(g="s"),u&&u!=g){n<0&&(n=1,a(),e.sticky="after");break}if(g&&(u=g),n>0&&!a(!f))break}var m=kr(t,e,s,l,!0);return H(s,m)&&(m.hitSide=!0),m}function ra(t,e,n,i){var r,o=t.doc,a=e.left;if("page"==i){var s=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*xn(t.display),3);r=(n>0?e.bottom:e.top)+n*l}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(var c;c=dn(t,a,r),c.outside;){if(n<0?r<=0:r>=o.height){c.hitSide=!0;break}r+=5*n}return c}function oa(t,e){var n=We(t,e.line);if(!n||n.hidden)return null;var i=A(t.doc,e.line),r=Ge(n,i,e.line),o=St(i,t.doc.direction),a="left";if(o){a=_t(o,e.ch)%2?"right":"left"}var s=Ye(r.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function aa(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}function sa(t,e){return e&&(t.bad=!0),t}function la(t,e,n,i,r){function o(t){return function(e){return e.id==t}}function a(){u&&(c+=h,u=!1)}function s(t){t&&(a(),c+=t)}function l(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(null!=n)return void s(n||e.textContent.replace(/\u200b/g,""));var c,d=e.getAttribute("cm-marker");if(d){var f=t.findMarks(D(i,0),D(r+1,0),o(+d));return void(f.length&&(c=f[0].find(0))&&s(M(t.doc,c.from,c.to).join(h)))}if("false"==e.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(e.nodeName);p&&a();for(var g=0;g<e.childNodes.length;g++)l(e.childNodes[g]);p&&(u=!0)}else 3==e.nodeType&&s(e.nodeValue)}for(var c="",u=!1,h=t.doc.lineSeparator();l(e),e!=n;)e=e.nextSibling;return c}function ca(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return sa(t.clipPos(D(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r<t.display.view.length;r++){var o=t.display.view[r];if(o.node==i)return ua(o,e,n)}}function ua(t,e,n){function i(e,n,i){for(var r=-1;r<(h?h.length:0);r++)for(var o=r<0?u.map:h[r],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==n){var l=P(r<0?t.line:t.rest[r]),c=o[a]+i;return(i<0||s!=e)&&(c=o[a+(i?1:0)]),D(l,c)}}}var r=t.text.firstChild,a=!1;if(!e||!o(r,e))return sa(D(P(t.line),0),!0);if(e==r&&(a=!0,e=r.childNodes[n],n=0,!e)){var s=t.rest?g(t.rest):t.line;return sa(D(P(s),s.text.length),a)}var l=3==e.nodeType?e:null,c=e;for(l||1!=e.childNodes.length||3!=e.firstChild.nodeType||(l=e.firstChild,n&&(n=l.nodeValue.length));c.parentNode!=r;)c=c.parentNode;var u=t.measure,h=u.maps,d=i(l,c,n);if(d)return sa(d,a);for(var f=c.nextSibling,p=l?l.nodeValue.length-n:0;f;f=f.nextSibling){if(d=i(f,f.firstChild,0))return sa(D(d.line,d.ch-p),a);p+=f.textContent.length}for(var m=c.previousSibling,v=n;m;m=m.previousSibling){if(d=i(m,m.firstChild,-1))return sa(D(d.line,d.ch+v),a);v+=m.textContent.length}}function ha(t,e){function n(){t.value=l.getValue()}if(e=e?u(e):{},e.value=t.value,
-!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var i=a();e.autofocus=i==t||null!=t.getAttribute("autofocus")&&i==document.body}var r;if(t.form&&(es(t.form,"submit",n),!e.leaveSubmitMethodAlone)){var o=t.form;r=o.submit;try{var s=o.submit=function(){n(),o.submit=r,o.submit(),o.submit=s}}catch(t){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(Tt(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=r))}},t.style.display="none";var l=Uo(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return l}var da=navigator.userAgent,fa=navigator.platform,pa=/gecko\/\d/i.test(da),ga=/MSIE \d/.test(da),ma=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(da),va=/Edge\/(\d+)/.exec(da),ya=ga||ma||va,xa=ya&&(ga?document.documentMode||6:+(va||ma)[1]),ba=!va&&/WebKit\//.test(da),wa=ba&&/Qt\/\d+\.\d+/.test(da),_a=!va&&/Chrome\//.test(da),Sa=/Opera\//.test(da),Ca=/Apple Computer/.test(navigator.vendor),Ta=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(da),ka=/PhantomJS/.test(da),Aa=!va&&/AppleWebKit/.test(da)&&/Mobile\/\w+/.test(da),Ma=/Android/.test(da),Ea=Aa||Ma||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(da),La=Aa||/Mac/.test(fa),Pa=/\bCrOS\b/.test(da),Na=/win/i.test(fa),Oa=Sa&&da.match(/Version\/(\d*\.\d*)/);Oa&&(Oa=Number(Oa[1])),Oa&&Oa>=15&&(Sa=!1,ba=!0);var Ra,Da=La&&(wa||Sa&&(null==Oa||Oa<12.11)),Ia=pa||ya&&xa>=9,Ha=function(e,n){var i=e.className,r=t(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(o?r[1]+o:"")}};Ra=document.createRange?function(t,e,n,i){var r=document.createRange();return r.setEnd(i||t,n),r.setStart(t,e),r}:function(t,e,n){var i=document.body.createTextRange();try{i.moveToElementText(t.parentNode)}catch(t){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",e),i};var ja=function(t){t.select()};Aa?ja=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:ya&&(ja=function(t){try{t.select()}catch(t){}});var Va=function(){this.id=null};Va.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var Fa,za,qa=30,Ga={toString:function(){return"CodeMirror.Pass"}},Ba={scroll:!1},$a={origin:"*mouse"},Wa={origin:"+move"},Ua=[""],Xa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ya=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Qa=!1,Za=!1,Ka=null,Ja=function(){function t(t){return t<=247?n.charAt(t):1424<=t&&t<=1524?"R":1536<=t&&t<=1785?i.charAt(t-1536):1774<=t&&t<=2220?"r":8192<=t&&t<=8203?"w":8204==t?"b":"L"}function e(t,e,n){this.level=t,this.from=e,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/;return function(n,i){var c="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var u=n.length,h=[],d=0;d<u;++d)h.push(t(n.charCodeAt(d)));for(var f=0,p=c;f<u;++f){var m=h[f];"m"==m?h[f]=p:p=m}for(var v=0,y=c;v<u;++v){var x=h[v];"1"==x&&"r"==y?h[v]="n":a.test(x)&&(y=x,"r"==x&&(h[v]="R"))}for(var b=1,w=h[0];b<u-1;++b){var _=h[b];"+"==_&&"1"==w&&"1"==h[b+1]?h[b]="1":","!=_||w!=h[b+1]||"1"!=w&&"n"!=w||(h[b]=w),w=_}for(var S=0;S<u;++S){var C=h[S];if(","==C)h[S]="N";else if("%"==C){var T=void 0;for(T=S+1;T<u&&"%"==h[T];++T);for(var k=S&&"!"==h[S-1]||T<u&&"1"==h[T]?"1":"N",A=S;A<T;++A)h[A]=k;S=T-1}}for(var M=0,E=c;M<u;++M){var L=h[M];"L"==E&&"1"==L?h[M]="L":a.test(L)&&(E=L)}for(var P=0;P<u;++P)if(o.test(h[P])){var N=void 0;for(N=P+1;N<u&&o.test(h[N]);++N);for(var O="L"==(P?h[P-1]:c),R="L"==(N<u?h[N]:c),D=O==R?O?"L":"R":c,I=P;I<N;++I)h[I]=D;P=N-1}for(var H,j=[],V=0;V<u;)if(s.test(h[V])){var F=V;for(++V;V<u&&s.test(h[V]);++V);j.push(new e(0,F,V))}else{var z=V,q=j.length;for(++V;V<u&&"L"!=h[V];++V);for(var G=z;G<V;)if(l.test(h[G])){z<G&&j.splice(q,0,new e(1,z,G));var B=G;for(++G;G<V&&l.test(h[G]);++G);j.splice(q,0,new e(2,B,G)),z=G}else++G;z<V&&j.splice(q,0,new e(1,z,V))}return"ltr"==i&&(1==j[0].level&&(H=n.match(/^\s+/))&&(j[0].from=H[0].length,j.unshift(new e(0,0,H[0].length))),1==g(j).level&&(H=n.match(/\s+$/))&&(g(j).to-=H[0].length,j.push(new e(0,u-H[0].length,u)))),"rtl"==i?j.reverse():j}}(),ts=[],es=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var i=t._handlers||(t._handlers={});i[e]=(i[e]||ts).concat(n)}},ns=function(){if(ya&&xa<9)return!1;var t=i("div");return"draggable"in t||"dragDrop"in t}(),is=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var o=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},rs=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},os=function(){var t=i("div");return"oncopy"in t||(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),as=null,ss={},ls={},cs={},us=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};us.prototype.eol=function(){return this.pos>=this.string.length},us.prototype.sol=function(){return this.pos==this.lineStart},us.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},us.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},us.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},us.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},us.prototype.eatSpace=function(){for(var t=this,e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++t.pos;return this.pos>e},us.prototype.skipToEnd=function(){this.pos=this.string.length},us.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},us.prototype.backUp=function(t){this.pos-=t},us.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=h(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)},us.prototype.indentation=function(){return h(this.string,null,this.tabSize)-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)},us.prototype.match=function(t,e,n){if("string"!=typeof t){var i=this.string.slice(this.pos).match(t);return i&&i.index>0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},us.prototype.current=function(){return this.string.slice(this.start,this.pos)},us.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},us.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},us.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var hs=function(t,e){this.state=t,this.lookAhead=e},ds=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};ds.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ds.prototype.baseToken=function(t){var e=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)e.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ds.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ds.fromSaved=function(t,e,n){return e instanceof hs?new ds(t,$t(t.mode,e.state),n,e.lookAhead):new ds(t,$t(t.mode,e),n)},ds.prototype.save=function(t){var e=!1!==t?$t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new hs(e,this.maxLookAhead):e};var fs=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n},ps=function(t,e,n){this.text=t,it(this,e),this.height=n?n(this):1};ps.prototype.lineNo=function(){return P(this)},Lt(ps);var gs,ms={},vs={},ys=null,xs=null,bs={left:0,right:0,top:0,bottom:0},ws=function(t,e,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");t(r),t(o),es(r,"scroll",function(){r.clientHeight&&e(r.scrollTop,"vertical")}),es(o,"scroll",function(){o.clientWidth&&e(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ya&&xa<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ws.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},ws.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ws.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ws.prototype.zeroWidthHack=function(){var t=La&&!Ta?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Va,this.disableVert=new Va},ws.prototype.enableZeroWidthBar=function(t,e,n){function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)}t.style.pointerEvents="auto",e.set(1e3,i)},ws.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var _s=function(){};_s.prototype.update=function(){return{bottom:0,right:0}},_s.prototype.setScrollLeft=function(){},_s.prototype.setScrollTop=function(){},_s.prototype.clear=function(){};var Ss={native:ws,null:_s},Cs=0,Ts=function(t,e,n){var i=t.display;this.viewport=e,this.visible=Vn(i,t.doc,e),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Fe(t),this.force=n,this.dims=wn(t),this.events=[]};Ts.prototype.signal=function(t,e){Et(t,e)&&this.events.push(arguments)},Ts.prototype.finish=function(){for(var t=this,e=0;e<this.events.length;e++)kt.apply(null,t.events[e])};var ks=0,As=null;ya?As=-.53:pa?As=15:_a?As=-.7:Ca&&(As=-1/3);var Ms=function(t,e){this.ranges=t,this.primIndex=e};Ms.prototype.primary=function(){return this.ranges[this.primIndex]},Ms.prototype.equals=function(t){var e=this;if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var i=e.ranges[n],r=t.ranges[n];if(!H(i.anchor,r.anchor)||!H(i.head,r.head))return!1}return!0},Ms.prototype.deepCopy=function(){for(var t=this,e=[],n=0;n<this.ranges.length;n++)e[n]=new Es(j(t.ranges[n].anchor),j(t.ranges[n].head));return new Ms(e,this.primIndex)},Ms.prototype.somethingSelected=function(){for(var t=this,e=0;e<this.ranges.length;e++)if(!t.ranges[e].empty())return!0;return!1},Ms.prototype.contains=function(t,e){var n=this;e||(e=t);for(var i=0;i<this.ranges.length;i++){var r=n.ranges[i];if(I(e,r.from())>=0&&I(t,r.to())<=0)return i}return-1};var Es=function(t,e){this.anchor=t,this.head=e};Es.prototype.from=function(){return F(this.anchor,this.head)},Es.prototype.to=function(){return V(this.anchor,this.head)},Es.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},zr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=this,i=t,r=t+e;i<r;++i){var o=n.lines[i];n.height-=o.height,ae(o),be(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){var i=this;this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=i},iterN:function(t,e,n){for(var i=this,r=t+e;t<r;++t)if(n(i.lines[t]))return!0}},qr.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){var n=this;this.size-=e;for(var i=0;i<this.children.length;++i){var r=n.children[i],o=r.chunkSize();if(t<o){var a=Math.min(e,o-t),s=r.height;if(r.removeInner(t,a),n.height-=s-r.height,o==a&&(n.children.splice(i--,1),r.parent=null),0==(e-=a))break;t=0}else t-=o}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof zr))){var l=[];this.collapse(l),this.children=[new zr(l)],this.children[0].parent=this}},collapse:function(t){for(var e=this,n=0;n<this.children.length;++n)e.children[n].collapse(t)},insertInner:function(t,e,n){var i=this;this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=i.children[r],a=o.chunkSize();if(t<=a){if(o.insertInner(t,e,n),o.lines&&o.lines.length>50){for(var s=o.lines.length%25+25,l=s;l<o.lines.length;){var c=new zr(o.lines.slice(l,l+=25));o.height-=c.height,i.children.splice(++r,0,c),c.parent=i}o.lines=o.lines.slice(0,s),i.maybeSpill()}break}t-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),n=new qr(e);if(t.parent){t.size-=n.size,t.height-=n.height;var i=d(t.parent.children,t);t.parent.children.splice(i+1,0,n)}else{var r=new qr(t.children);r.parent=t,t.children=[r,n],t=r}n.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=this,r=0;r<this.children.length;++r){var o=i.children[r],a=o.chunkSize();if(t<a){var s=Math.min(e,a-t);if(o.iterN(t,s,n))return!0;if(0==(e-=s))break;t=0}else t-=a}}};var Ls=function(t,e,n){var i=this;if(n)for(var r in n)n.hasOwnProperty(r)&&(i[r]=n[r]);this.doc=t,this.node=e};Ls.prototype.clear=function(){var t=this,e=this.doc.cm,n=this.line.widgets,i=this.line,r=P(i);if(null!=r&&n){for(var o=0;o<n.length;++o)n[o]==t&&n.splice(o--,1);n.length||(i.widgets=null);var a=Re(this);L(i,Math.max(0,i.height-a)),e&&(fi(e,function(){Gr(e,i,-a),yi(e,r,"widget")}),be(e,"lineWidgetCleared",e,this,r))}},Ls.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,i=this.line;this.height=null;var r=Re(this)-e;r&&(L(i,i.height+r),n&&fi(n,function(){n.curOp.forceUpdate=!0,Gr(n,i,r),be(n,"lineWidgetChanged",n,t,P(i))}))},Lt(Ls);var Ps=0,Ns=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Ps};Ns.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&oi(e),Et(this,"clear")){var i=this.find();i&&be(this,"clear",i.from,i.to)}for(var r=null,o=null,a=0;a<this.lines.length;++a){var s=t.lines[a],l=X(s.markedSpans,t);e&&!t.collapsed?yi(e,P(s),"text"):e&&(null!=l.to&&(o=P(s)),null!=l.from&&(r=P(s))),s.markedSpans=Y(s.markedSpans,l),null==l.from&&t.collapsed&&!mt(t.doc,s)&&e&&L(s,xn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var u=ht(t.lines[c]),h=xt(u);h>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=h,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&vi(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Sr(e.doc)),e&&be(e,"markerCleared",e,this,r,o),n&&ai(e),this.parent&&this.parent.clear()}},Ns.prototype.find=function(t,e){var n=this;null==t&&"bookmark"==this.type&&(t=1);for(var i,r,o=0;o<this.lines.length;++o){var a=n.lines[o],s=X(a.markedSpans,n);if(null!=s.from&&(i=D(e?a:P(a),s.from),-1==t))return i;if(null!=s.to&&(r=D(e?a:P(a),s.to),1==t))return r}return i&&{from:i,to:r}},Ns.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,i=this.doc.cm;e&&i&&fi(i,function(){var r=e.line,o=P(e.line),a=We(i,o);if(a&&(Je(a),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!mt(n.doc,r)&&null!=n.height){var s=n.height;n.height=null;var l=Re(n)-s;l&&L(r,r.height+l)}be(i,"markerChanged",i,t)})},Ns.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=d(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ns.prototype.detachLine=function(t){if(this.lines.splice(d(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},Lt(Ns);var Os=function(t,e){var n=this;this.markers=t,this.primary=e;for(var i=0;i<t.length;++i)t[i].parent=n};Os.prototype.clear=function(){var t=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)t.markers[e].clear();be(this,"clear")}},Os.prototype.find=function(t,e){return this.primary.find(t,e)},Lt(Os);var Rs=0,Ds=function(t,e,n,i,r){if(!(this instanceof Ds))return new Ds(t,e,n,i,r);null==n&&(n=0),qr.call(this,[new zr([new ps("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=D(n,0);this.sel=Fi(o),this.history=new tr(null),this.id=++Rs,this.modeOption=e,this.lineSep=i,this.direction="rtl"==r?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Yi(this,{from:o,to:o,text:t}),br(this,Fi(o),Ba)};Ds.prototype=x(qr.prototype,{constructor:Ds,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,i=0;i<e.length;++i)n+=e[i].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=E(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:mi(function(t){var e=D(this.first,0),n=this.first+this.size-1;Lr(this,{from:e,to:D(n,A(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Xn(this.cm,0,0),br(this,Fi(e),Ba)}),replaceRange:function(t,e,n,i){e=q(this,e),n=n?q(this,n):e,Ir(this,t,e,n,i)},getRange:function(t,e,n){var i=M(this,q(this,t),q(this,e));return!1===n?i:i.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(O(this,t))return A(this,t)},getLineNumber:function(t){return P(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=A(this,t)),ht(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return q(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:mi(function(t,e,n){vr(this,q(this,"number"==typeof t?D(t,e||0):t),null,n)}),setSelection:mi(function(t,e,n){vr(this,q(this,t),q(this,e||t),n)}),extendSelection:mi(function(t,e,n){pr(this,q(this,t),e&&q(this,e),n)}),extendSelections:mi(function(t,e){gr(this,B(this,t),e)}),extendSelectionsBy:mi(function(t,e){gr(this,B(this,m(this.sel.ranges,t)),e)}),setSelections:mi(function(t,e,n){var i=this;if(t.length){for(var r=[],o=0;o<t.length;o++)r[o]=new Es(q(i,t[o].anchor),q(i,t[o].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),br(this,Vi(r,e),n)}}),addSelection:mi(function(t,e,n){var i=this.sel.ranges.slice(0);i.push(new Es(q(this,t),q(this,e||t))),br(this,Vi(i,i.length-1),n)}),getSelection:function(t){for(var e,n=this,i=this.sel.ranges,r=0;r<i.length;r++){var o=M(n,i[r].from(),i[r].to());e=e?e.concat(o):o}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=this,n=[],i=this.sel.ranges,r=0;r<i.length;r++){var o=M(e,i[r].from(),i[r].to());!1!==t&&(o=o.join(t||e.lineSeparator())),n[r]=o}return n},replaceSelection:function(t,e,n){for(var i=[],r=0;r<this.sel.ranges.length;r++)i[r]=t;this.replaceSelections(i,e,n||"+input")},replaceSelections:mi(function(t,e,n){for(var i=this,r=[],o=this.sel,a=0;a<o.ranges.length;a++){var s=o.ranges[a];r[a]={from:s.from(),to:s.to(),text:i.splitLines(t[a]),origin:n}}for(var l=e&&"end"!=e&&$i(this,r,e),c=r.length-1;c>=0;c--)Lr(i,r[c]);l?xr(this,l):this.cm&&Un(this.cm)}),undo:mi(function(){Nr(this,"undo")}),redo:mi(function(){Nr(this,"redo")}),undoSelection:mi(function(){Nr(this,"undo",!0)}),redoSelection:mi(function(){Nr(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i<t.done.length;i++)t.done[i].ranges||++e;for(var r=0;r<t.undone.length;r++)t.undone[r].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){this.history=new tr(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:dr(this.history.done),undone:dr(this.history.undone)}},setHistory:function(t){var e=this.history=new tr(this.history.maxGeneration);e.done=dr(t.done.slice(0),null,!0),e.undone=dr(t.undone.slice(0),null,!0)},setGutterMarker:mi(function(t,e,n){return Fr(this,t,"gutter",function(t){var i=t.gutterMarkers||(t.gutterMarkers={});return i[e]=n,!n&&_(i)&&(t.gutterMarkers=null),!0})}),clearGutter:mi(function(t){var e=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[t]&&Fr(e,n,"gutter",function(){return n.gutterMarkers[t]=null,_(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(t){var e;if("number"==typeof t){if(!O(this,t))return null;if(e=t,!(t=A(this,t)))return null}else if(null==(e=P(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:mi(function(e,n,i){return Fr(this,e,"gutter"==n?"gutter":"class",function(e){var r="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(e[r]){if(t(i).test(e[r]))return!1;e[r]+=" "+i}else e[r]=i;return!0})}),removeLineClass:mi(function(e,n,i){return Fr(this,e,"gutter"==n?"gutter":"class",function(e){var r="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=e[r];if(!o)return!1;if(null==i)e[r]=null;else{var a=o.match(t(i));if(!a)return!1;var s=a.index+a[0].length;e[r]=o.slice(0,a.index)+(a.index&&s!=o.length?" ":"")+o.slice(s)||null}return!0})}),addLineWidget:mi(function(t,e,n){return Br(this,t,e,n)}),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return $r(this,q(this,t),q(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return t=q(this,t),$r(this,t,t,n,"bookmark")},findMarksAt:function(t){t=q(this,t);var e=[],n=A(this,t.line).markedSpans;if(n)for(var i=0;i<n.length;++i){var r=n[i];(null==r.from||r.from<=t.ch)&&(null==r.to||r.to>=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=q(this,t),e=q(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&r==t.line&&t.ch>=l.to||null==l.from&&r!=t.line||null!=l.from&&r==e.line&&l.from>=e.ch||n&&!n(l.marker)||i.push(l.marker.parent||l.marker)}++r}),i},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var i=0;i<n.length;++i)null!=n[i].from&&t.push(n[i].marker)}),t},posFromIndex:function(t){var e,n=this.first,i=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+i;if(o>t)return e=t,!0;t-=o,++n}),q(this,D(n,e))},indexFromPos:function(t){t=q(this,t);var e=t.ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,function(t){e+=t.text.length+n}),e},copy:function(t){var e=new Ds(E(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var i=new Ds(E(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:t.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Xr(i,Ur(this)),i},unlinkDoc:function(t){var e=this;if(t instanceof Uo&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var i=e.linked[n];if(i.doc==t){e.linked.splice(n,1),t.unlinkDoc(e),Yr(Ur(e));break}}if(t.history==this.history){var r=[t.id];Qi(t,function(t){return r.push(t.id)},!0),t.history=new tr(null),t.history.done=dr(this.history.done,r),t.history.undone=dr(this.history.undone,r)}},iterLinkedDocs:function(t){Qi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):is(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:mi(function(t){"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(t){return t.order=null}),this.cm&&Ji(this.cm))})}),Ds.prototype.eachLine=Ds.prototype.iter;for(var Is=0,Hs=!1,js={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",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",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Vs=0;Vs<10;Vs++)js[Vs+48]=js[Vs+96]=String(Vs);for(var Fs=65;Fs<=90;Fs++)js[Fs]=String.fromCharCode(Fs);for(var zs=1;zs<=12;zs++)js[zs+111]=js[zs+63235]="F"+zs;var qs={};qs.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qs.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qs.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qs.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",
-fallthrough:["basic","emacsy"]},qs.default=La?qs.macDefault:qs.pcDefault;var Gs={selectAll:Mr,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),Ba)},killLine:function(t){return ho(t,function(e){if(e.empty()){var n=A(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:D(e.head.line+1,0)}:{from:e.head,to:D(e.head.line,n)}}return{from:e.from(),to:e.to()}})},deleteLine:function(t){return ho(t,function(e){return{from:D(e.from().line,0),to:q(t.doc,D(e.to().line+1,0))}})},delLineLeft:function(t){return ho(t,function(t){return{from:D(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(t){return ho(t,function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}})},delWrappedLineRight:function(t){return ho(t,function(e){var n=t.charCoords(e.head,"div").top+5,i=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:i}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(D(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(D(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(e){return vo(t,e.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(e){return xo(t,e.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(e){return yo(t,e.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")},Wa)},goLineLeft:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")},Wa)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(e){var n=t.cursorCoords(e.head,"div").top+5,i=t.coordsChar({left:0,top:n},"div");return i.ch<t.getLine(i.line).search(/\S/)?xo(t,e.head):i},Wa)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),i=t.options.tabSize,r=0;r<n.length;r++){var o=n[r].from(),a=h(t.getLine(o.line),o.ch,i);e.push(p(i-a%i))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return fi(t,function(){for(var e=t.listSelections(),n=[],i=0;i<e.length;i++)if(e[i].empty()){var r=e[i].head,o=A(t.doc,r.line).text;if(o)if(r.ch==o.length&&(r=new D(r.line,r.ch-1)),r.ch>0)r=new D(r.line,r.ch+1),t.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),D(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var a=A(t.doc,r.line-1).text;a&&(r=new D(r.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),D(r.line-1,a.length-1),r,"+transpose"))}n.push(new Es(r,r))}t.setSelections(n)})},newlineAndIndent:function(t){return fi(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i<e.length;i++)t.indentLine(e[i].from().line,null,!0);Un(t)})},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}},Bs=new Va,$s=null,Ws=function(t,e,n){this.time=t,this.pos=e,this.button=n};Ws.prototype.compare=function(t,e,n){return this.time+400>t&&0==I(e,this.pos)&&n==this.button};var Us,Xs,Ys={toString:function(){return"CodeMirror.Init"}},Qs={},Zs={};Uo.defaults=Qs,Uo.optionHandlers=Zs;var Ks=[];Uo.defineInitHook=function(t){return Ks.push(t)};var Js=null,tl=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Va,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tl.prototype.init=function(t){function e(t){if(!At(r,t)){if(r.somethingSelected())Qo({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=ta(r);Qo({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation(function(){r.setSelections(e.ranges,0,Ba),r.replaceSelection("",null,"cut")})}if(t.clipboardData){t.clipboardData.clearData();var n=Js.text.join("\n");if(t.clipboardData.setData("Text",n),t.clipboardData.getData("Text")==n)return void t.preventDefault()}var a=na(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Js.text.join("\n");var l=document.activeElement;ja(s),setTimeout(function(){r.display.lineSpace.removeChild(a),l.focus(),l==o&&i.showPrimarySelection()},50)}}var n=this,i=this,r=i.cm,o=i.div=t.lineDiv;ea(o,r.options.spellcheck),es(o,"paste",function(t){At(r,t)||Ko(t,r)||xa<=11&&setTimeout(pi(r,function(){return n.updateFromDOM()}),20)}),es(o,"compositionstart",function(t){n.composing={data:t.data,done:!1}}),es(o,"compositionupdate",function(t){n.composing||(n.composing={data:t.data,done:!1})}),es(o,"compositionend",function(t){n.composing&&(t.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),es(o,"touchstart",function(){return i.forceCompositionEnd()}),es(o,"input",function(){n.composing||n.readFromDOMSoon()}),es(o,"copy",e),es(o,"cut",e)},tl.prototype.prepareSelection=function(){var t=Mn(this.cm,!1);return t.focus=this.cm.state.focused,t},tl.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},tl.prototype.showPrimarySelection=function(){var t=window.getSelection(),e=this.cm,n=e.doc.sel.primary(),i=n.from(),r=n.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||r.line<e.display.viewFrom)return void t.removeAllRanges();var o=ca(e,t.anchorNode,t.anchorOffset),a=ca(e,t.focusNode,t.focusOffset);if(!o||o.bad||!a||a.bad||0!=I(F(o,a),i)||0!=I(V(o,a),r)){var s=e.display.view,l=i.line>=e.display.viewFrom&&oa(e,i)||{node:s[0].measure.map[2],offset:0},c=r.line<e.display.viewTo&&oa(e,r);if(!c){var u=s[s.length-1].measure,h=u.maps?u.maps[u.maps.length-1]:u.map;c={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(!l||!c)return void t.removeAllRanges();var d,f=t.rangeCount&&t.getRangeAt(0);try{d=Ra(l.node,l.offset,c.offset,c.node)}catch(t){}d&&(!pa&&e.state.focused?(t.collapse(l.node,l.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),f&&null==t.anchorNode?t.addRange(f):pa&&this.startGracePeriod()),this.rememberSelection()}},tl.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},tl.prototype.showMultipleSelections=function(t){n(this.cm.display.cursorDiv,t.cursors),n(this.cm.display.selectionDiv,t.selection)},tl.prototype.rememberSelection=function(){var t=window.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},tl.prototype.selectionInEditor=function(){var t=window.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return o(this.div,e)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}var e=this;this.selectionInEditor()?this.pollSelection():fi(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,t)},tl.prototype.selectionChanged=function(){var t=window.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=window.getSelection(),e=this.cm;if(Ma&&_a&&this.cm.options.gutters.length&&aa(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ca(e,t.anchorNode,t.anchorOffset),i=ca(e,t.focusNode,t.focusOffset);n&&i&&fi(e,function(){br(e.doc,Fi(n,i),Ba),(n.bad||i.bad)&&(e.curOp.selectionChanged=!0)})}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,e=t.display,n=t.doc.sel.primary(),i=n.from(),r=n.to();if(0==i.ch&&i.line>t.firstLine()&&(i=D(i.line-1,A(t.doc,i.line-1).length)),r.ch==A(t.doc,r.line).text.length&&r.line<t.lastLine()&&(r=D(r.line+1,0)),i.line<e.viewFrom||r.line>e.viewTo-1)return!1;var o,a,s;i.line==e.viewFrom||0==(o=kn(t,i.line))?(a=P(e.view[0].line),s=e.view[0].node):(a=P(e.view[o].line),s=e.view[o-1].node.nextSibling);var l,c,u=kn(t,r.line);if(u==e.view.length-1?(l=e.viewTo-1,c=e.lineDiv.lastChild):(l=P(e.view[u+1].line)-1,c=e.view[u+1].node.previousSibling),!s)return!1;for(var h=t.doc.splitLines(la(t,s,c,a,l)),d=M(t.doc,D(a,0),D(l,A(t.doc,l).text.length));h.length>1&&d.length>1;)if(g(h)==g(d))h.pop(),d.pop(),l--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),a++}for(var f=0,p=0,m=h[0],v=d[0],y=Math.min(m.length,v.length);f<y&&m.charCodeAt(f)==v.charCodeAt(f);)++f;for(var x=g(h),b=g(d),w=Math.min(x.length-(1==h.length?f:0),b.length-(1==d.length?f:0));p<w&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==h.length&&1==d.length&&a==i.line)for(;f&&f>i.ch&&x.charCodeAt(x.length-p-1)==b.charCodeAt(b.length-p-1);)f--,p++;h[h.length-1]=x.slice(0,x.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(f).replace(/\u200b+$/,"");var _=D(a,f),S=D(l,d.length?g(d).length-p:0);return h.length>1||h[0]||I(_,S)?(Ir(t.doc,h,_,S,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()},80))},tl.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||fi(this.cm,function(){return vi(t.cm)})},tl.prototype.setUneditable=function(t){t.contentEditable="false"},tl.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||pi(this.cm,Zo)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},tl.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var el=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Va,this.hasSelection=!1,this.composing=null};el.prototype.init=function(t){function e(t){if(!At(r,t)){if(r.somethingSelected())Qo({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=ta(r);Qo({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,Ba):(i.prevInput="",o.value=e.text.join("\n"),ja(o))}"cut"==t.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm;this.createField(t);var o=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),Aa&&(o.style.width="0px"),es(o,"input",function(){ya&&xa>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),es(o,"paste",function(t){At(r,t)||Ko(t,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),es(o,"cut",e),es(o,"copy",e),es(t.scroller,"paste",function(e){De(t,e)||At(r,e)||(r.state.pasteIncoming=!0,i.focus())}),es(t.lineSpace,"selectstart",function(e){De(t,e)||Pt(e)}),es(o,"compositionstart",function(){var t=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}}),es(o,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},el.prototype.createField=function(t){this.wrapper=na(),this.textarea=this.wrapper.firstChild},el.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=Mn(t);if(t.options.moveInputWithCursor){var r=cn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},el.prototype.showSelection=function(t){var e=this.cm,i=e.display;n(i.cursorDiv,t.cursors),n(i.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},el.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&ja(this.textarea),ya&&xa>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",ya&&xa>=9&&(this.hasSelection=null))}},el.prototype.getField=function(){return this.textarea},el.prototype.supportsTouch=function(){return!1},el.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Ea||a()!=this.textarea))try{this.textarea.focus()}catch(t){}},el.prototype.blur=function(){this.textarea.blur()},el.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},el.prototype.receivedFocus=function(){this.slowPoll()},el.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},el.prototype.fastPoll=function(){function t(){n.poll()||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,t))}var e=!1,n=this;n.pollingFast=!0,n.polling.set(20,t)},el.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||rs(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(ya&&xa>=9&&this.hasSelection===r||La&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(i.length,r.length);a<s&&i.charCodeAt(a)==r.charCodeAt(a);)++a;return fi(e,function(){Zo(e,r.slice(a),i.length-a,null,t.composing?"*compose":null),r.length>1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},el.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},el.prototype.onKeyPress=function(){ya&&xa>=9&&(this.hasSelection=null),this.fastPoll()},el.prototype.onContextMenu=function(t){function e(){if(null!=a.selectionStart){var t=r.somethingSelected(),e="​"+(t?a.value:"");a.value="⇚",a.value=e,i.prevInput=t?"":"​",a.selectionStart=1,a.selectionEnd=e.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=u,a.style.cssText=c,ya&&xa<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=a.selectionStart){(!ya||ya&&xa<9)&&e();var t=0,n=function(){o.selForContextMenu==r.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==i.prevInput?pi(r,Mr)(r):t++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,a=i.textarea,s=Tn(r,t),l=o.scroller.scrollTop;if(s&&!Sa){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(s)&&pi(r,br)(r.doc,Fi(s),Ba);var c=a.style.cssText,u=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var h=i.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(ya?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(ba&&(d=window.scrollY),o.input.focus(),ba&&window.scrollTo(null,d),o.input.reset(),r.somethingSelected()||(a.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),ya&&xa>=9&&e(),Ia){Rt(t);var f=function(){Tt(window,"mouseup",f),setTimeout(n,20)};es(window,"mouseup",f)}else setTimeout(n,50)}},el.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},el.prototype.setUneditable=function(){},el.prototype.needsContentAttribute=!1,function(t){function e(e,i,r,o){t.defaults[e]=i,r&&(n[e]=o?function(t,e,n){n!=Ys&&r(t,e,n)}:r)}var n=t.optionHandlers;t.defineOption=e,t.Init=Ys,e("value","",function(t,e){return t.setValue(e)},!0),e("mode",null,function(t,e){t.doc.modeOption=e,Wi(t)},!0),e("indentUnit",2,Wi,!0),e("indentWithTabs",!1),e("smartIndent",!0),e("tabSize",4,function(t){Ui(t),en(t),vi(t)},!0),e("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter(function(t){for(var r=0;;){var o=t.text.indexOf(e,r);if(-1==o)break;r=o+e.length,n.push(D(i,o))}i++});for(var r=n.length-1;r>=0;r--)Ir(t.doc,e,n[r],D(n[r].line,n[r].ch+e.length))}}),e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ys&&t.refresh()}),e("specialCharPlaceholder",ce,function(t){return t.refresh()},!0),e("electricChars",!0),e("inputStyle",Ea?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),e("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),e("rtlMoveVisually",!Na),e("wholeLineUpdateBefore",!0),e("theme","default",function(t){Go(t),Bo(t)},!0),e("keyMap","default",function(t,e,n){var i=uo(e),r=n!=Ys&&uo(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)}),e("extraKeys",null),e("configureMouse",null),e("lineWrapping",!1,Wo,!0),e("gutters",[],function(t){Di(t.options),Bo(t)},!0),e("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?_n(t.display)+"px":"0",t.refresh()},!0),e("coverGutterNextToScrollbar",!1,function(t){return ni(t)},!0),e("scrollbarStyle","native",function(t){ri(t),ni(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),e("lineNumbers",!1,function(t){Di(t.options),Bo(t)},!0),e("firstLineNumber",1,Bo,!0),e("lineNumberFormatter",function(t){return t},Bo,!0),e("showCursorWhenSelecting",!1,An,!0),e("resetSelectionOnContextMenu",!0),e("lineWiseCopyCut",!0),e("pasteLinesPerSelection",!0),e("readOnly",!1,function(t,e){"nocursor"==e&&(In(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)}),e("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),e("dragDrop",!0,$o),e("allowDropFileTypes",null),e("cursorBlinkRate",530),e("cursorScrollMargin",0),e("cursorHeight",1,An,!0),e("singleCursorHeightPerLine",!0,An,!0),e("workTime",100),e("workDelay",100),e("flattenSpans",!0,Ui,!0),e("addModeClass",!1,Ui,!0),e("pollInterval",100),e("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),e("historyEventDelay",1250),e("viewportMargin",10,function(t){return t.refresh()},!0),e("maxHighlightLength",1e4,Ui,!0),e("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),e("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),e("autofocus",null),e("direction","ltr",function(t,e){return t.doc.setDirection(e)},!0)}(Uo),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&pi(this,e[t])(this,n,r),kt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](uo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:gi(function(e,n){var i=e.token?e:t.getMode(this.options,e);if(i.startState)throw new Error("Overlays may not be stateful.");v(this.state.overlays,{mode:i,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},function(t){return t.priority}),this.state.modeGen++,vi(this)}),removeOverlay:gi(function(t){for(var e=this,n=this.state.overlays,i=0;i<n.length;++i){var r=n[i].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return n.splice(i,1),e.state.modeGen++,void vi(e)}}),indentLine:gi(function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),O(this.doc,t)&&Yo(this,t,e,n)}),indentSelection:gi(function(t){for(var e=this,n=this.doc.sel.ranges,i=-1,r=0;r<n.length;r++){var o=n[r];if(o.empty())o.head.line>i&&(Yo(e,o.head.line,t,!0),i=o.head.line,r==e.doc.sel.primIndex&&Un(e));else{var a=o.from(),s=o.to(),l=Math.max(i,a.line);i=Math.min(e.lastLine(),s.line-(s.ch?0:1))+1;for(var c=l;c<i;++c)Yo(e,c,t);var u=e.doc.sel.ranges;0==a.ch&&n.length==u.length&&u[r].from().ch>0&&mr(e.doc,r,new Es(a,u[r].to()),Ba)}}}),getTokenAt:function(t,e){return te(this,t,e)},getLineTokens:function(t,e){return te(this,D(t),e,!0)},getTokenTypeAt:function(t){t=q(this.doc,t);var e,n=Yt(this,A(this.doc,t.line)),i=0,r=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]<o)){e=n[2*a+2];break}i=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var i=this,r=[];if(!n.hasOwnProperty(e))return r;var o=n[e],a=this.getModeAt(t);if("string"==typeof a[e])o[a[e]]&&r.push(o[a[e]]);else if(a[e])for(var s=0;s<a[e].length;s++){var l=o[a[e][s]];l&&r.push(l)}else a.helperType&&o[a.helperType]?r.push(o[a.helperType]):o[a.name]&&r.push(o[a.name]);for(var c=0;c<o._global.length;c++){var u=o._global[c];u.pred(a,i)&&-1==d(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(t,e){var n=this.doc;return t=z(n,null==t?n.first+n.size-1:t),Qt(this,t+1,e).state},cursorCoords:function(t,e){var n,i=this.doc.sel.primary();return n=null==t?i.head:"object"==typeof t?q(this.doc,t):t?i.from():i.to(),cn(this,n,e||"page")},charCoords:function(t,e){return ln(this,q(this.doc,t),e||"page")},coordsChar:function(t,e){return t=sn(this,t,e||"page"),dn(this,t.left,t.top)},lineAtHeight:function(t,e){return t=sn(this,{top:t,left:0},e||"page").top,N(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var i,r=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,r=!0),i=A(this.doc,t)}else i=t;return an(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-yt(i):0)},defaultTextHeight:function(){return xn(this.display)},defaultCharWidth:function(){return bn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var o=this.display;t=cn(this,q(this.doc,t));var a=t.bottom,s=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),o.sizer.appendChild(e),"over"==i)a=t.top;else if("above"==i||"near"==i){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(a=t.bottom),s+e.offsetWidth>c&&(s=c-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==r?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),n&&Bn(this,{left:s,top:a,right:s+e.offsetWidth,bottom:a+e.offsetHeight})},triggerOnKeyDown:gi(ko),triggerOnKeyPress:gi(Eo),triggerOnKeyUp:Mo,triggerOnMouseDown:gi(Po),execCommand:function(t){if(Gs.hasOwnProperty(t))return Gs[t].call(null,this)},triggerElectric:gi(function(t){Jo(this,t)}),findPosH:function(t,e,n,i){var r=this,o=1;e<0&&(o=-1,e=-e);for(var a=q(this.doc,t),s=0;s<e&&(a=ia(r.doc,a,o,n,i),!a.hitSide);++s);return a},moveH:gi(function(t,e){var n=this;this.extendSelectionsBy(function(i){return n.display.shift||n.doc.extend||i.empty()?ia(n.doc,i.head,t,e,n.options.rtlMoveVisually):t<0?i.from():i.to()},Wa)}),deleteH:gi(function(t,e){var n=this.doc.sel,i=this.doc;n.somethingSelected()?i.replaceSelection("",null,"+delete"):ho(this,function(n){var r=ia(i,n.head,t,e,!1);return t<0?{from:r,to:n.head}:{from:n.head,to:r}})}),findPosV:function(t,e,n,i){var r=this,o=1,a=i;e<0&&(o=-1,e=-e);for(var s=q(this.doc,t),l=0;l<e;++l){var c=cn(r,s,"div");if(null==a?a=c.left:c.left=a,s=ra(r,c,o,n),s.hitSide)break}return s},moveV:gi(function(t,e){var n=this,i=this.doc,r=[],o=!this.display.shift&&!i.extend&&i.sel.somethingSelected();if(i.extendSelectionsBy(function(a){if(o)return t<0?a.from():a.to();var s=cn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),r.push(s.left);var l=ra(n,s,t,e);return"page"==e&&a==i.sel.primary()&&Wn(n,ln(n,l,"div").top-s.top),l},Wa),r.length)for(var a=0;a<i.sel.ranges.length;a++)i.sel.ranges[a].goalColumn=r[a]}),findWordAt:function(t){var e=this.doc,n=A(e,t.line).text,i=t.ch,r=t.ch;if(n){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=n.length||!i?++r:--i;for(var a=n.charAt(i),s=w(a,o)?function(t){return w(t,o)}:/\s/.test(a)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!w(t)};i>0&&s(n.charAt(i-1));)--i;for(;r<n.length&&s(n.charAt(r));)++r}return new Es(D(t.line,i),D(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):Ha(this.display.cursorDiv,"CodeMirror-overwrite"),kt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:gi(function(t,e){Xn(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Ve(this)-this.display.barHeight,width:t.scrollWidth-Ve(this)-this.display.barWidth,clientHeight:ze(this),clientWidth:Fe(this)}},scrollIntoView:gi(function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:D(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?Yn(this,t):Zn(this,t.from,t.to,t.margin)}),setSize:gi(function(t,e){var n=this,i=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=i(t)),null!=e&&(this.display.wrapper.style.height=i(e)),this.options.lineWrapping&&tn(this);var r=this.display.viewFrom;this.doc.iter(r,this.display.viewTo,function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){yi(n,r,"widget");break}++r}),this.curOp.forceUpdate=!0,kt(this,"refresh",this)}),operation:function(t){return fi(this,t)},startOperation:function(){return oi(this)},endOperation:function(){return ai(this)},refresh:gi(function(){var t=this.display.cachedTextHeight;vi(this),this.curOp.forceUpdate=!0,en(this),Xn(this,this.doc.scrollLeft,this.doc.scrollTop),Ni(this),(null==t||Math.abs(t-xn(this.display))>.5)&&Cn(this),kt(this,"refresh",this)}),swapDoc:gi(function(t){var e=this.doc;return e.cm=null,Zi(this,t),en(this),this.display.input.reset(),Xn(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,be(this,"swapDoc",this,e),e}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Lt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,o){t.registerHelper(e,i,o),n[e]._global.push({pred:r,val:o})}}(Uo);var nl="iter insert remove copy getEditor constructor".split(" ");for(var il in Ds.prototype)Ds.prototype.hasOwnProperty(il)&&d(nl,il)<0&&(Uo.prototype[il]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ds.prototype[il]));return Lt(Ds),Uo.inputStyles={textarea:el,contenteditable:tl},Uo.defineMode=function(t){Uo.defaults.mode||"null"==t||(Uo.defaults.mode=t),Ft.apply(this,arguments)},Uo.defineMIME=zt,Uo.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Uo.defineMIME("text/plain","null"),Uo.defineExtension=function(t,e){Uo.prototype[t]=e},Uo.defineDocExtension=function(t,e){Ds.prototype[t]=e},Uo.fromTextArea=ha,function(t){t.off=Tt,t.on=es,t.wheelEventPixels=Hi,t.Doc=Ds,t.splitLines=is,t.countColumn=h,t.findColumn=f,t.isWordChar=b,t.Pass=Ga,t.signal=kt,t.Line=ps,t.changeEnd=zi,t.scrollbarModel=Ss,t.Pos=D,t.cmpPos=I,t.modes=ss,t.mimeModes=ls,t.resolveMode=qt,t.getMode=Gt,t.modeExtensions=cs,t.extendMode=Bt,t.copyState=$t,t.startState=Ut,t.innerMode=Wt,t.commands=Gs,t.keyMap=qs,t.keyName=co,t.isModifierKey=so,t.lookupKey=ao,t.normalizeKeyMap=oo,t.StringStream=us,t.SharedTextMarker=Os,t.TextMarker=Ns,t.LineWidget=Ls,t.e_preventDefault=Pt,t.e_stopPropagation=Nt,t.e_stop=Rt,t.addClass=s,t.contains=o,t.rmClass=Ha,t.keyNames=js}(Uo),Uo.version="5.37.0",Uo}),define("chatroom",["jquery","form","cm/lib/codemirror","utils","config","modal","links","laconic"],function(t,e,n,i,r,o,a){!function(t){function s(e,i){var r=t.el.pre({class:"cm-s-prolog"});n.runMode(i,"prolog",r),e.attr("title",t.el.div(r).innerHTML),e.data("html",!0),e.data("placement","bottom"),e.data("trigger","hover"),e.tooltip()}function l(t,n,i){return e.widgets.glyphIconButton(t,{class:"btn-xs "+n,title:i})}function c(t){for(var e=[{regex:/[a-z][a-zA-Z0-9_]*\/[0-9]/g,
-func:function(t){return'<a class="builtin" href="/pldoc/man?predicate='+t+'">'+t+"</a>"}},{regex:/[a-zA-Z0-9_-]+\.(pl|swinb)\b/g,func:function(t){return'<a class="builtin" href="'+r.http.locations.web_storage+t+'">'+t+"</a>"}},{regex:/`(.)`/g,func:function(t,e){return"<code>"+e+"</code>"}},{regex:/`([\w\[\{\(][^`]*[\w\]\}\)])`/g,func:function(t,e){return"<code>"+e+"</code>"}},{delim:"\\*",a:"\\*\\b",z:"\\b\\*",tag:"b"},{delim:"__",a:"\\b__",z:"__\\b",tag:"b"},{delim:"_",a:"\\b_",z:"_\\b",tag:"i"}],n=0;n<e.length;n++){var i=e[n];i.regex?t=t.replace(i.regex,i.func):i.delim&&(t=t.replace(RegExp(i.a+"([^"+i.delim+"]+)"+i.z,"g"),function(t){return function(e,n){return"<"+t+">"+n+"</"+t+">"}}(i.tag)))}return t}var u=0,h={_init:function(n){return this.each(function(){var i,s,l,c,h=t(this),d={messages:[]},f="gitty:"+r.swish.hangout;d.docid=n.docid,h.data("chatroom",d),h.addClass("chatroom each-minute swish-event-receiver"),i=t.el.div({class:"btn-group dropup"},s=t.el.button({type:"button",class:"btn btn-primary btn-xs"},"Send"),t.el.button({type:"button",class:"btn btn-info btn-xs dropdown-toggle","data-toggle":"dropdown","aria-haspopup":!0,"aria-expanded":!1},t.el.span({class:"caret"})),ul=t.el.ul({class:"dropdown-menu pull-right"})),c=t.el.textarea({placeholder:"Type chat message here ..."}),h.append(t.el.div({class:"chat-conversation"},t.el.div({class:"chat-outer-wrapper"},t.el.div({class:"chat-inner-wrapper"},t.el.div({class:"chat-content-wrapper"},t.el.div({class:"chat-stretch"}),t.el.div({class:"chat-content"}))))),l=t.el.span({class:"glyphicon menu glyphicon-remove-circle"}),t.el.div({class:"chat-input"},t.el.table({class:"chat-input"},t.el.tr(t.el.td({class:"chat-text"},c),t.el.td({class:"chat-send"},i))))),t(s).on("click",function(){h.chatroom("send")}),e.widgets.populateMenu(t(i),h,{"Include my query":function(){var e=t(".prolog-query-editor").queryEditor("getQuery");""!=e.trim()?this.chatroom("send",{payload:[{type:"query",query:e}]}):o.alert("Your query editor is empty")}}),n.docid!=f&&e.widgets.populateMenu(t(i),h,{"Broadcast to hangout":function(){this.chatroom("send",{broadcast:"gitty:"+r.swish.hangout})}}),t(l).on("click",function(){h.tile("close")}),n.oneline?t(c).keypress(function(t){if(13==t.which)return h.chatroom("send"),t.preventDefault(),!1}):t(c).on("keyup",function(){var e,n=t(this);0!=n.scrollTop()&&(e=n.height())<500&&(e+=parseFloat(n.css("line-height")),n.animate({height:e},200,function(){h.chatroom("scrollToBottom")}))}),n.docid==f&&t(c).focus(function(){if(""==t(c).val()){var e=(new Date).getTime();e-u>3e5&&(u=e,o.help({file:"hangout.html",notagain:"hangout"}))}}),h.on("click",".chat-message button",function(e){var n,i=t(e.target).closest("button");return(n=i.data("commit"))?h.closest(".swish").swish("playFile",n):(n=i.data("diff"))&&h.chatroom("diff",n),e.preventDefault(),!1}),h.on("click",".chat-content a",a.followLink),h.on("pane.resize",function(){h.chatroom("scrollToBottom",!0)}),h.on("minute",function(){h.chatroom("update_time")}),h.on("activate-tab",function(){h.chatroom("read_until")}),t(c).height(parseFloat(t(c).css("line-height"))+5),h.chatroom("load_from_server")})},close:function(){return this.tile("close")},send:function(e){e=e||{};var n=this.data("chatroom"),a={type:"chat-message"},s=this.find("textarea");a.text=s.val().trim();var l=e.payload||[],c=!1,u=this.chatroom("storage").storage("getSelection"),h="gitty:"+r.swish.hangout;u&&l.push({type:"selection",selection:u});for(var d=0;d<l.length;d++)if("about"!=l[d].type){c=!0;break}e.broadcast||n.docid==h||0!=n.messages.length||(e.broadcast=h),""!=a.text||c?(a.uuid=i.generateUUID(),a.payload=l,a.docid=e.docid||n.docid,e.class&&(a.class=e.class),1==e.clear?this.chatroom("clear"):n.clear=a.uuid,t("#chat").chat("send",a),e.broadcast&&(a.payload.unshift({type:"about",docid:n.docid}),a.docid=e.broadcast,t("#chat").chat("send",a))):e.payload||o.alert("No message to send")},storage:function(){return this.closest(".tab-pane").find(".storage")},is_self:function(e){var n=e.user||{},i=r.swish.user||{},o=t("#chat").chat("self");return n.id&&n.id==o.id||n.avatar&&n.avatar==o.avatar||n.profile_id&&n.profile_id==i.profile_id},read_until:function(e){var n;void 0==e&&(n=this.data("chatroom"))&&n.messages.length>0&&(e=n.messages[n.messages.length-1]),e&&(t("#chat").chat("read_until",e.docid,e.time),t(".chat-bell").chatbell("read_until",e.docid,e.time))},render:function(e){var n=e.user||{};r.swish.user;if(void 0===e.is_self&&(e.is_self=this.chatroom("is_self",e)),elem=t(t.el.div({class:"chat-message"+(e.is_self?" self":""),"data-userid":n.wsid})),!e.is_self&&n.avatar&&elem.append(t.el.img({class:"avatar",src:n.avatar})),elem.append(t.el.span({class:"chat-sender"},e.is_self?"Me":n.name)),e.time){var o=new Date(1e3*e.time).toLocaleString();elem.append(t.el.span({class:"chat-time",title:o},"(",i.ago(e.time),") ")),elem.data("time",e.time)}if(e.payload)for(var a=0;a<e.payload.length;a++){var s=e.payload[a];d[s.type]?d[s.type].call(elem,s):console.log(s)}var l;if(e.html?l=e.html:e.text&&(l=t(t.el.span(e.text)).html(),l=c(l)),l){var u=t.el.span({class:"chat-message html"});t(u).html(l),elem.append(u)}return elem},add:function(t,e){var n=this.data("chatroom");if(t.docid==n.docid){var i;void 0==e&&(e=this.is(":visible")),void 0==t.is_self&&(t.is_self=this.chatroom("is_self",t)),n.messages.push(t),i=this.chatroom("render",t),this.find(".chat-content").append(i),this.chatroom("scrollToBottom"),e&&this.chatroom("read_until",t)}return t.uuid&&t.uuid==n.clear&&this.chatroom("clear"),this},clear:function(){var t=this.find("textarea");t.val(""),t.height(parseFloat(t.css("line-height")+5))},load_from_server:function(e){var n=this.data("chatroom"),i=t(this);return t.get(r.http.locations.chat_messages,{docid:n.docid},function(t){if(0==t.length)e?i.chatroom("close"):n.docid!="gitty:"+r.swish.hangout&&o.help({file:"newchat.html",notagain:"newchat"});else for(var a=0;a<t.length;a++)i.chatroom("add",t[a],a==t.length-1)}).fail(function(t,e,n){o.ajaxError(t)}),this},update_time:function(){return this.find(".chat-message").each(function(){var e,n=t(this);(e=n.data("time"))&&n.find(".chat-time").text("("+i.ago(e)+") ")})},diff:function(n){function i(t){o.ajaxError(t)}t.ajax({url:r.http.locations.web_storage+n.from,data:{format:"raw"},success:function(o){t.ajax({url:r.http.locations.web_storage+n.to,data:{format:"raw"},success:function(i){function r(){var e=t.el.div();this.append(e),t(e).diff({base:o,head:i,baseName:n.name+" (before)",headName:n.name+" (after)"}),this.parents("div.modal-dialog").addClass("modal-wide")}e.showDialog({title:"Update differences",body:r})},error:i})},error:i})},docid:function(t,e){var n=this.data("chatroom");n.docid!=t&&(this.find(".chat-content").html(""),n.docid=t,this.chatroom("load_from_server",e))},rooms:function(e){var n=[];return this.each(function(){t(this).data("chatroom").docid==e&&n.push(this)}),t(n)},scrollToBottom:function(e){return this.each(function(){var n=t(this);scroll=n.find("div.chat-inner-wrapper"),wrap=scroll.find("div.chat-content-wrapper"),content=wrap.find("div.chat-content");var i=content[0].scrollHeight,r=wrap.height()-i-8;(r>0||!0!==e)&&(wrap.find("div.chat-stretch").height(r>0?r:0),scroll.scrollTop(i))}),this}},d={selection:function(n){var i=t().storage("getSelectionLabel",n.selection),r=t(t.el.button({class:"btn btn-xs btn-primary"},i+" ",e.widgets.glyphIcon("eye-open")));r.on("click",function(e){t(e.target).chatroom("storage").storage("restoreSelection",n.selection)}),this.append(" ",r," ")},query:function(n){var r=t(t.el.button({class:"btn btn-xs btn-primary"},"Query ",e.widgets.glyphIcon("download")));r.on("click",function(){var e=t(".prolog-query-editor");e.queryEditor("setQuery",n.query),i.flash(e.find(".CodeMirror"))}),s(r,n.query),this.append(" ",r," ")},update:function(e){var n,i,r;this.append(" ",t.el.span({class:"update"},n=l("play","btn-primary","Open old version"),i=l("zoom-in","btn-info","View changes"),r=l("play","btn-primary","Open new version"))," "),t(n).data("commit",e.previous),t(i).data("diff",{from:e.previous,to:e.commit,name:e.name}),t(r).data("commit",e.commit)},about:function(e){var n=e.docid.replace("gitty:","");this.append(" ",t.el.a({href:r.http.locations.web_storage+n,class:"store btn btn-primary btn-xs"},n)," ")}};t.fn.chatroom=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.chatroom"):h._init.apply(this,arguments)}}(jQuery)}),define("chatbell",["jquery","form","modal","config","preferences","laconic","chatroom"],function(t,e,n,i,r){!function(t){var o={_init:function(n){return n=n||{},this.each(function(){var i=t(this),r=t.extend({},n);r.docid=n.docid||i.data("document"),i.data("chatbell",r),i.addClass("chat-bell"),i.attr("title","Messages available"),i.append(e.widgets.glyphIcon("bell"),t.el.span({class:"chat-bell-count"},"-")),i.chatbell("update")})},chats:function(t){function e(){i.text("-"),r.removeClass("chat-available chat-alert"),r.attr("title",n.empty_title||"No messages available")}var n=this.data("chatbell"),i=this.find(".chat-bell-count"),r=this;if(void 0==t)delete n.docid,delete n.count,delete n.total,e();else{var o=void 0==t.count?t.total:t.count;t.docid&&(n.docid=t.docid),t.count&&(n.count=t.count),t.total&&(n.total=t.total),t.total>0?(this.addClass("chat-available"),o>0?(i.text(o),this.addClass("chat-alert"),this.attr("title",o+" new messages")):(i.text(t.total),this.removeClass("chat-alert"),this.attr("title",t.total+" old messages"))):e()}return this},"chats++":function(t){var e=this.data("chatbell");return void 0!=e.total?e.total++:e.total=1,void 0!=e.count&&e.count++,void 0!=t&&(e.docid=t),e.total&&this.chatbell("chats",{total:e.total,count:e.count}),this},update:function(e){var n=this.data("chatbell");if(e=e||{},void 0!=e.total&&void 0!=e.count)this.chatbell("chats",e);else{var o=e.docid||n.docid,a=r.getDocVal(o,"chatBar",0);if(o&&(a||void 0==e.total)){var s=t(this);t.get(i.http.locations.chat_status,{docid:o,after:a},function(t){s.chatbell("chats",t)})}else void 0!=e.total&&this.chatbell("chats",e)}return this},read_until:function(e,n){return this.each(function(){var n=t(this),i=n.data("chatbell");i.docid==e&&i.total&&n.chatbell("chats",{total:i.total,count:0})})},"chat-message":function(t){if(void 0==t.is_self&&(t.is_self=this.chatroom("is_self",t)),this.chatbell("chats++"),!t.is_self){var e=this.chatroom("render",t),i={dom:e};n.notify(this,i)}}};t.fn.chatbell=function(e){return o[e]?o[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.chatbell"):o._init.apply(this,arguments)}}(jQuery)}),define("sourcelist",["jquery","config","form","modal","laconic"],function(t,e,n,i){!function(t){function r(t,e){if(void 0!=e){e.offset=e.offset||0,e.limit=e.limit||10;for(var n=t.length-1;n>=0;n--){var i=t[n];if(function(t){var n=t.query;if(e.q==n.q&&e.offset>=n.offset&&(e.offset+e.limit<=n.offset+t.matches.length||n.offset+t.matches.length==t.total))return n}(i))return i}}}function o(t,e){var n=e.query;n.offset=n.offset||0,n.limit=n.limit||10;for(var i=t.length-1;i>=0;i--){var r=t[i],o=r.query;if(o.q==n.q&&o.offset+r.matches.length==n.offset){for(var i=0;i<e.matches.length;i++)r.matches.push(e.matches[i]);return}}t.push(e)}var a,s="sourcelist",l={q:'user:"me"'},c=[],u=[],h=0,d={_init:function(e){return this.each(function(){var e=t(this),n={};e.data(s,n),e[s]("fill",void 0,l),e[s]("check_cache"),e[s]("update",l),e.on("login",function(){e[s]("check_cache")&&e[s]("update",l)})})},check_cache:function(){var e=t("#login").login("get_profile",["display_name","avatar"]);return a&&a.display_name==e.display_name&&a.avatar==e.avatar?(a||(a=e),!1):(c=[],a=e,!0)},update:function(n){var l,d=this;this[s]("check_cache"),(l=r(c,n))?t.ajax({url:e.http.locations.source_modified,dataType:"json",success:function(t){t.modified<l.modified+10?d.sourcelist("fill",l,n):(c=[],d[s]("update",n))},error:function(t){i.ajaxError(t)}}):(n=n||{},t.extend(n,a),n.q=n.q||"",n.offset=n.offset||0,n.limit=n.limit||10,n.qid=h++,u.push(n),d[s]("busy",!0),t.ajax({url:e.http.locations.source_list,data:n,dataType:"json",success:function(t){t.query=n,u.pop(),0==u.length&&d[s]("busy",!1),o(c,t),d.sourcelist("fill",t,n)},error:function(t){u.pop(),i.ajaxError(t)}}))},page:function(e){var n=this.data(s);if(n&&n.page){var i=t.extend({},n.page.query);switch(void 0==i.offset&&(i.offset=0),e){case"first":i.offset=0;break;case"prev":i.offset-=n.page.size;break;case"next":i.offset+=n.page.size;break;case"last":i.offset=function(t,e){return Math.floor((t+(e-1))/e)*e}(n.page.total,n.page.size)-n.page.size;break;default:return}i.offset=Math.max(0,i.offset),this[s]("update",i)}},fill:function(e,i){function r(e){return t.el.th(e)}var o,a=this.data(s);if(!a)return this;e&&(l=i,a.page={query:i,offset:i.offset,size:i.limit,total:e.total}),o=this.find("tbody"),0==o.length?(this.append(t.el.div({class:"search-form input-group"}),t.el.div({class:"search-results"},table=t.el.table({class:"table table-striped table-hover table-condensed"},t.el.thead(t.el.tr(r("Type"),r("Name"),r("Tags"),r("User"),r("Modified"))),o=t.el.tbody()),t.el.div({class:"search-no-results"}),t.el.div({class:"loading search"})),t.el.div({class:"search-footer"})),this[s]("search_form"),o=t(o),o.on("click","tr",function(e){var n=t(e.target).closest("tr");t("body").swish("playFile",{file:n.attr("data-name")})})):t(o).html("");var c=this.find("input.search");if(c.is(":focus")||(c.val(e?e.query.q:i?i.q:""),c.trigger("propertychange",!1)),e){var u=i.offset-e.query.offset,h=Math.min(u+i.limit,e.matches.length);for(u<h?t(table).show():t(table).hide();u<h;u++){var d=e.matches[u],f=d.name.split(".").pop(),p=d.name.slice(0,-(f.length+1));o.append(t.el.tr({"data-name":d.name},t.el.td(n.widgets.typeIcon(f)),t.el.td(p),t.el.td((d.tags||[]).join(" ")),t.el.td(d.author),t.el.td(function(t){var e=new Date(1e3*t),n=e.toISOString();return n.slice(0,10)+" "+n.slice(11,19)}(d.time))))}this[s]("search_footer",e,i)}},search_footer:function(e,r){function o(t,e,i){return c.action=t,c.class="btn-primary "+e,n.widgets.glyphIconButton(i,c)}var a=this.find("div.search-footer"),l=this.find("div.search-no-results"),c={};0==a.find(".f-total").length&&(a.append(o("first","backward","fast-backward"),o("prev","backward","step-backward"),t.el.button({class:"btn btn-default"},t.el.span({class:"f-from"}),t.el.label("to"),t.el.span({class:"f-to"}),t.el.label("from"),t.el.span({class:"f-total"})),o("next","forward","step-forward"),o("last","forward","fast-forward")),a.on("click","button",function(e){var n=t(e.target).closest("button"),i=n.data("action");i&&n.closest("div.sourcelist")[s]("page",i)}));var u=Math.min(r.offset+r.limit,e.total);if(0==e.total){if(0==l.find("div").length){var h;l.append(t.el.div(t.el.span({class:"no-search-results-warning"},n.widgets.glyphIcon("alert")," No matching files"),t.el.br(),"If you are a new user you may",t.el.ul(t.el.li("Use the Examples menu from the navigation bar"),t.el.li("Use the Program or Notebook button above")),t.el.div(h=t.el.a({href:"#"},"help on search")))),t(h).on("click",function(){console.log("help"),i.help({file:"sourcelist.html"})})}l.show(),a.hide()}else l.hide(),r.offset>0||u<e.total?(a.show(),0==r.offset?a.find(".backward").attr("disabled","disabled"):a.find(".backward").removeAttr("disabled"),u>=e.total?a.find(".forward").attr("disabled","disabled"):a.find(".forward").removeAttr("disabled"),a.find(".f-from").text(""+r.offset),a.find(".f-to").text(""+u),a.find(".f-total").text(""+e.total)):a.hide()},search_form:function(){function e(e,i){for(var r,o=t.el.div({class:"btn-group"},t.el.button({type:"button",class:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":!0,"aria-expanded":!1},e," ",t.el.span({class:"caret"})),r=t.el.ul({class:"dropdown-menu"})),a=0;a<i.length;a++)t(r).append(t.el.li(function(e){var i;return"string"==typeof e?t.el.a({"data-tag":e},e):(i=e.i?t.el.a({"data-tag":e.t,"data-value":e.v},n.widgets.typeIcon(e.i)," "+e.l):t.el.a({"data-tag":e.t,"data-value":e.v},e.l),t(i).data("quote",void 0==e.q?'"':e.q),i)}(i[a])));return o}function i(t){l.tmo&&(clearTimeout(l.tmo),l.tmo=void 0),1==t&&(t=1e3),t&&(l.tmo=setTimeout(o,t))}function o(t){t&&t.preventDefault(),i();var e=u.find("input").val();return u[s]("update",{q:e}),!1}var a,l=this.data(s),u=this,h=this.find("div.search-form");h.append(t.el.div({class:"form-group has-feedback has-clear"},t.el.input({type:"text",class:"form-control search",placeholder:"Find files"}),t.el.span({class:"form-control-clear glyphicon glyphicon-remove form-control-feedback hidden"})),t.el.div({class:"input-group-btn"},e("Filter",[{t:"user",l:"My files",v:"me",q:'"'},{t:"user",l:"By user",v:"",q:'"'},{t:"user",l:"By user (regex)",v:"",q:"/"},{t:"tag",l:"By tag",v:"",q:'"'},{t:"tag",l:"By tag (regex)",v:"",q:"/"},{t:"name",l:"By name",v:"",q:'"'},{t:"name",l:"By name (regex)",v:"",q:"/"}]),e("Type",[{t:"type",l:"Program",i:"pl",v:"pl",q:""},{t:"type",l:"Notebook",i:"swinb",v:"swinb",q:""},{t:"type",l:"Permalink",i:"lnk",v:"lnk",q:""}]),a=t.el.button({class:"btn btn-default",type:"submit"},t.el.i({class:"glyphicon glyphicon-search"})))),n.dyn_clear(h,o),h.on("click","a",function(e){var n=t(e.target).closest("a");!function(t,e,n){var i=h.find("input"),r=i.val(),a=t+":"+n+(e||"")+n;r=""==r.trim()?a:e&&RegExp("\\b"+t+":").test(r)?r.replace(RegExp("\\b"+t+':(\\S*|\\s*"[^"]*")'),a):r.trim()+" "+a,i.val(r).trigger("propertychange"),(e||"tag"==t)&&o()}(n.data("tag"),n.data("value"),n.data("quote"))}),t(a).on("click",function(t){return o(t)});var d=u.find("input");d.keydown(function(t){if(13==t.which)return o(t)}).on("input propertychange",function(t,e){0!=e&&i(r(c,d.val())?200:!0)})},busy:function(t){var e=this.find("div.loading");t?e.show():e.hide()}};t.fn.sourcelist=function(e){return d[e]?d[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery."+s):d._init.apply(this,arguments)}}(jQuery)}),define("tabbed",["jquery","form","config","preferences","modal","laconic","search","chatbell","sourcelist"],function(t,e,n,i,r){var o={tabTypes:{},type:function(t){var e=t.split(".").pop();for(var n in o.tabTypes)if(o.tabTypes.hasOwnProperty(n)&&o.tabTypes[n].dataType==e)return o.tabTypes[n]}};return o.tabTypes.permalink={dataType:"lnk",typeName:"program",label:"Program",create:function(e,n){t(e).addClass("prolog-editor").prologEditor(t.extend({save:!0},n)).prologEditor("makeCurrent")}},function(t){function a(e,n,i){t(e).wrap('<div role="tabpanel" class="tab-pane" id="'+n+'"></div>');var r=t(e).parent();return i&&r.addClass("active"),r}function s(e,n){var i=t.el.span({class:"glyphicon glyphicon-"+e});return n&&t(i).addClass(n),i}function l(){return"tabbed-tab-"+u++}function c(t){if(n.swish.profiles)for(var e=0;e<n.swish.profiles.length;e++)if(n.swish.profiles[e].value==t)return n.swish.profiles[e]}var u=0,h={_init:function(e){return e=e||{},this.each(function(){var n=t(this),i={};i.newTab=e.newTab,i.tabTypes=e.tabTypes||o.tabTypes,n.data("tabbed",i),n.addClass("tabbed unloadable"),n.tabbed("makeTabbed"),n.on("trace-location",function(t,e){n.tabbed("showTracePort",e)}),n.on("data-is-clean",function(e,i){var r=t(e.target).closest(".tab-pane"),o=n.tabbed("navTab",r.attr("id"));o&&(i?o.removeClass("data-dirty"):o.addClass("data-dirty"))}),n.on("unload",function(t){if(t.target==n[0]&&n.closest(".swish").swish("preserve_state")){var e=n.tabbed("getState");localStorage.setItem("tabs",JSON.stringify(e))}}),n.on("restore",function(t){var e;if(t.target==n[0]){try{var i=localStorage.getItem("tabs"),e=JSON.parse(i)}catch(t){}"object"==typeof e&&n.tabbed("setState",e)}}),n.on("preference",function(t,e){"preserve-state"==e.name&&0==e.value&&localStorage.removeItem("tabs")})})},makeTabbed:function(){var e=this.children(),n=t.el.ul({class:"nav nav-tabs",role:"tablist"}),i=t.el.div({class:"tab-content"});this.prepend(i),this.prepend(n),t(n).on("click","span.xclose",function(e){var n=t(e.target).parent().attr("data-id");t(e.target).parents(".tabbed").first().tabbed("removeTab",n),e.preventDefault()}),t(n).on("click","a",function(e){t(e.target).closest("a").tab("show"),e.preventDefault()});for(var r=0;r<e.length;r++){var o=t(e[r]),c=l(),u=o.attr("data-label")||"Unknown",h="disabled"!=o.attr("data-close"),d=r==e.length-1,f=this.tabbed("tabLabel",c,u,h);d&&t(f).addClass("active"),t(n).append(f),t(i).append(a(t(e[r]),c,d))}var p=t.el.a({class:"tab-new compact",title:"Open a new tab"},s("plus"));t(n).append(t.el.li({class:"tab-new",role:"presentation"},p)),t(p).on("click",function(e){return t(e.target).parents(".tabbed").first().tabbed("newTab"),e.preventDefault(),!1}),t(n).on("shown.bs.tab","a",function(e){var n=t(e.target).data("id");t("#"+n+" .swish-event-receiver").trigger("activate-tab"),t("#"+n+" .storage").storage("activate")}),0==this.tabbed("navContent").children().length&&this.tabbed("newTab")},newTab:function(e,n){var i=this.data("tabbed");if(void 0==e)if(i.newTab)e=i.newTab();else{var r;e=this.tabbed("tabSelect"),t(e).append(this.tabbed("profileForm"),t.el.hr(),r=t.el.div({class:"sourcelist"})),t(r).sourcelist()}return void 0==n&&(n=!0),this.tabbed("addTab",e,{active:n,close:!0})},getState:function(){var t=this.tabbed("get_ordered_storage").storage("getState");return t.pathname=window.location.pathname,t.time=(new Date).getTime(),t},setState:function(t){for(var e=0;e<t.tabs.length;e++){var n=t.tabs[e];this.tabbed("restoreTab",n)}},restoreTab:function(e){function i(t,e){e.data&&t.find(".storage").storage("setValue",{data:e.data,role:"source"}),e.chatroom&&t.find(".storage").storage("chat",e.chatroom)}var o,a=this;e.query=null,e.noHistory=!0;var s=this.find(".storage").storage("match",e);if(s?(o=s.closest(".tab-pane"),a.tabbed("move_right",o)):o=void 0,s)i(o,e);else if(s);else{var l,c=this.find("div.tabbed-select"),u='<div class="restore-tab">Restoring '+(e.file||e.url)+" ...</div>";if(c.length>0?(l=c.first().closest(".tab-pane"),l.html(u)):l=a.tabbed("newTab",t(u),Boolean(e.active)),"gitty"==e.st_type){var h=n.http.locations.web_storage+e.file;t.ajax({url:h,type:"GET",data:{format:"json"},success:function(t){t.url=h,t.st_type="gitty",t.noHistory=!0,a.tabbed("setSource",l,t)||(console.log("Failed to restore",e.file),a.tabbed("removeTab",o.attr("id"))),i(l,e),l.hasClass("active")&&l.find(".storage").storage("activate")},error:function(t){r.ajaxError(t)}})}else e.url?t.ajax({url:e.url,type:"GET",data:{format:"json"},success:function(t){var n;if("string"==typeof t)n={data:t},n.st_type="external";else{if("object"!=typeof t||"string"!=typeof t.data)return void alert("Invalid data");n=t,n.st_type="filesys"}n.noHistory=!0,n.url=e.url,a.tabbed("setSource",l,n)||(console.log("Failed to restore",e.url),a.tabbed("removeTab",l.attr("id"))),i(l,e),l.hasClass("active")&&l.find(".storage").storage("activate")},error:function(t){r.ajaxError(t)}}):console.log("Cannot restore ",e)}},tabFromSource:function(e){function n(){var n=r.tabbed("newTab",t("<span></span>"));r.tabbed("setSource",n,e)||r.tabbed("removeTab",n.attr("id"))}var r=this,o=this.find("div.tabbed-select");if("string"==typeof e&&(e={data:e}),o.length>0){var a=o.first().closest(".tab-pane");this.tabbed("show",a.attr("id")),this.tabbed("setSource",a,e)}else if(e.newTab||i.getVal("new-tab"))n();else{var a;this.find(".storage").each(function(n,i){if(t(i).storage("setSource",e))return a=t(i).closest(".tab-pane"),!1}),a?this.tabbed("show",a.attr("id")):n()}return this},setSource:function(e,n){if("object"==typeof n&&(n.meta&&n.meta.name||n.url)){var i=n.meta&&n.meta.name?n.meta.name:n.url,r=o.type(i),a=t.el.div();return e.html(""),e.tabbed("title",r.label,r.dataType),e.append(a),r.create(a),t(a).storage("setSource",n),!0}return!1},showTracePort:function(e){if(e&&e.source&&e.source.file){var n,i,r,o=e.source.file;if(n=function(){if(o.startsWith("pengine://"))return o.split("/")[2]}())r=this.find(".prolog-editor").filter(function(e,i){return t(i).prologEditor("pengine",{has:n})});else if((i=function(){if(o.startsWith("swish://"))return o.slice("swish://".length)}())&&!(r=this.find(".storage").storage("match",{file:i})))return this.closest(".swish").swish("playFile",{file:i,newTab:!0,noHistory:!0,prompt:e}),this;r&&r.prologEditor("showTracePort",e)}return this},addTab:function(e,n){var i=this.tabbed("navTabs"),r=l(),o=a(e,r,n.close);this.tabbed("navContent").append(o);var s=this.tabbed("tabLabel",r,"New tab",close,"select"),c=i.find("a.tab-new");return 1==c.length?t(s).insertBefore(c.first().parent()):i.append(s),n.active&&t(s).find("a").first().tab("show"),o},removeTab:function(e){var n,i=this.tabbed("navTabs").find("a[data-id='"+e+"']").parent(),r=t("#"+e);0!=r.find(".storage").storage("unload","closetab")&&(r.is(":visible")&&(n=i.prev()||i.next()),i.remove(),r.find(".prolog-runner").prologRunner("close"),r.find(".storage").storage("close"),r.remove(),n&&n.length>0?n.find("a").first().tab("show"):0==this.tabbed("navContent").children().length&&this.tabbed("newTab"),t(".storage").storage("chat_status",!0))},show:function(e){var n=this.tabbed("navTab",e);n&&n.tab("show"),t(".storage").storage("chat_status",!0)},move_right:function(t){var e,n=this.find(">ul");e="string"==typeof t?t:t.attr("id"),n.find("a[data-id="+e+"]").closest("li").insertBefore(n.children().last())},tabLabel:function(e,n,i,r){var o,a;i&&(o=s("remove","xclose"),t(o).attr("title","Close tab")),r=r||"pl";var l=t.el.a({class:"compact",href:"#"+e,"data-id":e},t.el.span({class:"tab-icon type-icon "+r}),t.el.span({class:"tab-dirty",title:"Tab is modified. See File/Save and Edit/View changes"}),a=t.el.a({class:"tab-chat"}),t.el.span({class:"tab-title"},n),o),c=t.el.li({role:"presentation"},l);return t(a).chatbell().on("click",function(e){var n=t(e.target).closest("a.compact").data("id");return t("#"+n).find(".storage").storage("chat"),!1}),c},anchor:function(){var t=this.closest(".tab-pane");if(0!=t.length){var e=t.closest(".tabbed"),n=t.attr("id");return e.tabbed("navTabs").find("a[data-id="+n+"]")}},get_ordered_storage:function(){var e=this,n=[];return this.find(">ul>li").each(function(){var i=t(this).find(">a").data("id");e.find(">div.tab-content>div[id="+i+"] .storage").each(function(){n.push(this)})}),t(n)},title:function(t,e){var n=this.tabbed("anchor");if(n&&(n.find(".tab-title").text(t),e)){var i=n.find(".tab-icon");i.removeClass(),i.addClass("tab-icon type-icon "+e)}return this},chats:function(t){var e=this.tabbed("anchor");return e&&e.find(".chat-bell").chatbell("update",t),this},"chats++":function(t){var e=this.tabbed("anchor");return e&&e.find(".chat-bell").chatbell("chats++",t),this},tabSelect:function(){var e=this.data("tabbed"),n=t.el.div({class:"tabbed-select"},t.el.div({class:"tabbed-create"},t.el.label({class:"tabbed-left"},"Create a "),g=t.el.div({class:"btn-group",role:"group"}),t.el.label({class:"tabbed-right"},"here"))),a=[];for(var s in e.tabTypes)e.tabTypes.hasOwnProperty(s)&&e.tabTypes[s].order&&a.push(s);a.sort(function(t,n){return e.tabTypes[t].order-e.tabTypes[n].order});for(var l=0;l<a.length;l++){var c=e.tabTypes[a[l]];t(g).append(t.el.button({type:"button",class:"btn btn-primary","data-type":c.typeName,"data-ext":c.dataType},c.label))}return t(g).on("click",".btn",function(e){var n=t(e.target).data("type"),r=t(e.target).closest(".tab-pane"),a=t.el.div(),s=t.extend({},o.tabTypes[n]),l=r.find("label.active > input[name=profile]").val();l&&(s.profile=l,s.value=r.tabbed("profileValue",l,o.tabTypes[n].dataType),void 0!=s.value&&i.setVal("default-profile",l)),r.html(""),r.tabbed("title",s.label,s.dataType),r.append(a),o.tabTypes[n].create(a,s)}),t(g).addClass("swish-event-receiver"),t(g).on("download save fileInfo print",function(e){if(t(e.target).closest(".tab-pane").is(":visible")){var n={download:"you wish to download",save:"you wish to save",print:"you wish to print",fileInfo:"for which you want details"};r.alert("Please activate the tab "+n[e.type]),e.stopPropagation()}}),t(g).on("profile-selected",function(e,n){t(e.target).find("button").each(function(){t(this).prop("disabled",n.type.indexOf(t(this).data("ext"))<0)})}),n},searchForm:function(){var n=t.el.form({class:"search-sources"},t.el.label({class:"control-label"},"Open source file containing"),t.el.div({class:"input-group"},t.el.input({type:"text",class:"form-control search",placeholder:"Search sources","data-search-in":"sources store_content"}),t.el.div({class:"input-group-btn"},t.el.button({class:"btn btn-default",type:"submit"},t.el.i({class:"glyphicon glyphicon-search"})))),t.el.div({class:"input-group"},e.fields.radio("smatch",[{label:"Start of line",value:"sol"},{label:"Start of word",value:"sow",active:!0},{label:"Anywhere",value:"anywhere"}])));return t(n).find("input.search").search(),n},sourceList:function(){},profileForm:function(){if(n.swish.profiles&&n.swish.profiles.length>0){for(var r,o=0;o<n.swish.profiles.length;o++)delete n.swish.profiles[o].active;if(r=i.getVal("default-profile"))for(var o=0;o<n.swish.profiles.length;o++)n.swish.profiles[o].value==r&&(n.swish.profiles[o].active=!0);else n.swish.profiles[0].active=!0;var a=t.el.div({class:"tabbed-profile"},t.el.label({class:"tabbed-left"},"based on"),t.el.div({class:"input-group select-profile"},e.fields.radio("profile",n.swish.profiles)),t.el.label({class:"tabbed-right"},"profile"));return t(a).on("click",function(e){var n=t(e.target).find("input").val(),i=c(n);t(e.target).closest(".tab-pane").find(".tabbed-create .btn-group").trigger("profile-selected",i)}),a}},profileValue:function(e,i){var o=n.http.locations.swish+"profile/"+e+"."+i;return t.ajax({url:o,type:"GET",data:{format:"raw"},async:!1,error:function(t){r.ajaxError(t)}}).responseText},navTabs:function(){return this.find("ul.nav-tabs").first()},navTab:function(t){var e=this.find("ul.nav-tabs").first().find("a[data-id='"+t+"']");if(e.length>0)return e},navContent:function(){return this.find("div.tab-content").first()}};t.fn.tabbed=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.tabbed"):h._init.apply(this,arguments)}}(jQuery),o}),define("prolog",["jquery","config","form","preferences"],function(t,e,n,i){var r={downloadCSV:function(o,a,s){function l(e,n){return t.el.input({type:"hidden",name:e,value:n})}function c(){var s=t.el.form({class:"form-horizontal"},n.fields.projection(f.join(",")),n.fields.csvFormat(e.swish.csv_formats,i.getVal("csvFormat")),n.fields.limit("10 000",!1),n.fields.filename(p,2),n.fields.buttons({label:"Download CSV",action:function(t,n){return t.preventDefault(),e.swish.csv_formats.length>1&&i.setVal("csvFormat",n.format),r.downloadCSV(o,a,n),!1}}));this.append(s)}if(s=s||{},s.disposition=s.disposition||s.filename||"swish-results.csv",s.projection){var u,h=s.format||"prolog";if(s.distinct&&(o="distinct(["+s.projection+"],("+o+"))"),s.limit){var d=parseInt(s.limit.replace(/[ _]/g,""));if("number"!=typeof d)return alert("Not an integer: ",s.limit),!1;o="limit("+d+",("+o+"))"}u=t.el.form({method:"POST",action:e.http.locations.pengines+"/create",target:"_blank"},l("format","csv"),l("chunk","10"),l("solutions","all"),l("disposition",s.disposition),l("application","swish"),l("ask",o),l("src_text",a),l("template",h+"("+s.projection+")")),console.log(u),t("body").append(u),u.submit(),t(u).remove()}else{var f=t().prologEditor("variables",o),p=s.disposition;p.indexOf(".")<0&&(p+=".csv"),n.showDialog({title:"Download query results as CSV",body:c})}return this},trimFullStop:function(t){return t.replace(/\.\s*$/m,"")},options:{application:"swish",chunk:5}};return t.swish=function(t){for(var e in r.options)r.options.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=r.options[e]);return new Pengine(t)},r}),define("answer",["jquery","laconic"],function(){!function($){function answerHasOutput(t){
-return t.variables.length>0||t.residuals}function renderSubstitutions(t,e){e.push(', <span class="pl-comment">% where</span><br/>');for(var n=0;n<t.length;n++)e.push('<span class="where-binding">',"<span class='pl-var'>",t[n].var+"</span> = ",t[n].value,"</span>"),n<t.length-1&&e.push(",<br/>")}function renderAnswer(t){for(var e=[],n=t.variables,i=0;i<n.length;i++){for(var r=n[i].variables,o=0;o<r.length-1;o++)e.push("<span class='pl-ovar'>",r[o],"</span> = ","<span class='pl-var'>",r[o+1],"</span>, ");e.push("<span class='pl-ovar'>",r[r.length-1],"</span> = ",n[i].value),n[i].substitutions&&renderSubstitutions(n[i].substitutions,e),(i<n.length-1||t.residuals)&&e.push(",<br/>")}var a;if(a=t.residuals)for(var i=0;i<a.length;i++)e.push(a[i]),i<a.length-1&&e.push(",<br/>");return e.join("")}function renderTabledAnswer(t,e){for(var n=[],i=0;i<t.projection.length;i++){var r=t.projection[i],o=function(e){for(var n=t.variables,i=0;i<n.length;i++)for(var r=n[i].variables,o=0;o<r.length;o++)if(r[o]==e)return n[i];return null}(r);n.push("<td>"),o?(n.push(o.value),o.substitutions&&renderSubstitutions(o.substitutions,n)):n.push("<span class='pl-var'>",r,"</span>"),n.push("</td>")}var a;if(a=t.residuals){!function(){0==e.find("tr.projection th.residuals").length&&($("<th class='residuals'>Residual goals</th>").insertBefore(e.find("tr.projection th.answer-nth")),$("<td></td>").insertBefore(e.find("tr td.answer-nth")))}(),n.push("<td>");for(var i=0;i<a.length;i++)n.push(a[i]),i<a.length-1&&n.push(",<br/>");n.push("</td>")}return t.nth&&n.push("<td class='answer-nth'>",t.nth,"</td>"),n.join("")}function evalScripts(elem){elem.find("script").each(function(){var type=this.getAttribute("type")||"text/javascript";"text/javascript"==type&&($.ajaxScript=$(this),eval(this.textContent))}),$.ajaxScript&&delete $.ajaxScript}var methods={_init:function(t){return this.each(function(){var e=$(this);if(answerHasOutput(t))if(e.is("table")){var n=$.el.tr();e.append(n),n.innerHTML=renderTabledAnswer(t,e),evalScripts($(n)),$(n).find(".render-multi").renderMulti()}else e[0].innerHTML=renderAnswer(t),evalScripts(e),e.find(".render-multi").renderMulti();else e.append($.el.span({class:"prolog-true"},"true"))})}};$.fn.prologAnswer=function(t){return methods[t]?methods[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void $.error("Method "+t+" does not exist on jQuery.prologAnswer"):methods._init.apply(this,arguments)}}(jQuery),function(t){function e(){var e=t("#render-select");return e[0]||(e=t(t.el.form({id:"render-select",style:"display:none"})),e.on("click","a",function(n){var i=t(n.target).closest("a"),r=i.data("nr");return e.data("target").renderMulti(i.data("action"),r),!1}),e.on("click",function(){var n=t("input[name=render]:checked",t(this)).val();e.data("target").renderMulti("select",parseInt(n))}),e.hover(function(){s=!0,i()},function(){r()}),t("body").append(e)),e}function n(){if(!s){var t=e(),n=t.data("target");n&&(n.removeClass("render-selecting"),t.data("target",null)),t.hide(400)}}function i(){a=setTimeout(function(){n()},400)}function r(){s=!1,i()}function o(e){return e.originalEvent.dataTransfer.setData("Text",t(e.target).renderMulti("prologText")),!0}var a=0,s=!1,l={_init:function(e){return this.each(function(){var e=t(this),n={current:0},i=[],r=t.el.div({class:"render-multi-active"}),a=0;e.children().each(function(){var n=t(this).css("display");i.push(n),0==a++?(e.css("display",n),t(this).attr("draggable",!1)):t(this).hide()}),n.display=i,e.append(r),t(r).hover(function(t){e.renderMulti("showSelect",t)},function(t){e.renderMulti("hideSelect",t)}),e.attr("draggable",!0).bind("dragstart",o),e.data("renderMulti",n)})},selectMenu:function(){for(var e=this.data("renderMulti"),n=["<label>View as</label><br>"],i=this.children(),r=0,r=0;r<e.display.length;r++){var o=t(i[r]),a=o.attr("data-render");a||(a=0==r?"Default rendered":"Alt rendered ["+(r+1)+"]"),n.push("<div class='render-item'>",function(t,e){var n,i;return"Prolog term"==e?(n="Copy",i="copy"):(n="Download",i="download"),btn='<a href="#" class="btn btn-style btn-sm" data-nr="'+t+'" data-action="'+i+'" title="'+n+'"><span class="glyphicon glyphicon-'+i+'"></span></a>',btn}(r,a),"<input type='radio' name='render' value='",r,"'"),r==e.current&&n.push(" checked"),n.push("> ",a,"</div>")}return n.push("</form"),n.join("")},showSelect:function(t){var n,i=this,r=e(),o=this.offset();s=!0,a&&(clearTimeout(a),a=0),(n=r.data("target"))&&n.removeClass("render-selecting"),r.data("target",i),r.html(this.renderMulti("selectMenu")),r.css({top:o.top+5+"px",left:o.left+5+"px"}).show(400),this.addClass("render-selecting")},hideSelect:function(t){r()},select:function(e){var i=this.data("renderMulti");if(i.current!=e){var r=this.children(),o=i.display[e];t(r[i.current]).hide(400),t(r[e]).show(400,function(){t(this).css("display",o)}),this.css("display",o),t(r[e]).is("span.render-as-prolog")?this.attr("draggable",!1):this.attr("draggable",!0),i.current=e}n()},copy:function(t){var e=this.children(),n=this.data("renderMulti"),i=n.current;this.renderMulti("select",t),function(t){var e=document.createRange();e.selectNodeContents(t);var n=window.getSelection();n.removeAllRanges(),n.addRange(e)}(e[t]);try{document.execCommand("copy")}catch(t){alert("Sorry, cannot copy text with this browser")}return this.renderMulti("select",i),this},download:function(e){var n,i=this.children(),r=t(i[e]),o="html";if(r.hasClass("export-dom")){var a={};r=r.trigger("export-dom",a),a.element?(n=a.element.outerHTML,o=a.extension||"html",type=a.contentType||"text/html"):alert("Failed to export rendered result")}else if(1==r.find("svg").length){var s=r.find("svg");s.attr("xmlns")||s.attr("xmlns","http://www.w3.org/2000/svg"),n=s[0].outerHTML,o="svg",type="image/svg+xml"}else n=r.html(),type="text/html";(function(){return void 0!=t("<a>")[0].download})()||(type="application/octet-stream");var l="data:"+type+";charset=UTF-8,"+encodeURIComponent(n),c=t.el.a({href:l,download:"swish-rendered."+o});return this.append(c),c.click(),t(c).remove(),this},prologText:function(){return this.find("span.render-as-prolog").text()}};t.fn.renderMulti=function(e){return l[e]?l[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.renderMulti"):l._init.apply(this,arguments)}}(jQuery)}),function(t,e,n){!function(t){"function"==typeof define&&define.amd?define("sparkline",["jquery"],t):jQuery&&!jQuery.fn.sparkline&&t(jQuery)}(function(n){"use strict";var i,r,o,a,s,l,c,u,h,d,f,p,g,m,v,y,x,b,w,_,S,C,T,k,A,M,E,L,P,N,O,R={},D=0;i=function(){return{common:{type:"line",lineColor:"#00f",fillColor:"#cdf",defaultPixelsPerValue:3,width:"auto",height:"auto",composite:!1,tagValuesAttribute:"values",tagOptionsPrefix:"spark",enableTagOptions:!1,enableHighlight:!0,highlightLighten:1.4,tooltipSkipNull:!0,tooltipPrefix:"",tooltipSuffix:"",disableHiddenCheck:!1,numberFormatter:!1,numberDigitGroupCount:3,numberDigitGroupSep:",",numberDecimalMark:".",disableTooltips:!1,disableInteraction:!1},line:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:void 0,normalRangeMax:void 0,normalRangeColor:"#ccc",drawNormalOnTop:!1,chartRangeMin:void 0,chartRangeMax:void 0,chartRangeMinX:void 0,chartRangeMaxX:void 0,tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:void 0,nullColor:void 0,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:void 0,chartRangeMin:void 0,chartRangeClip:!1,colorMap:void 0,tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:void 0,thresholdValue:0,chartRangeMax:void 0,chartRangeMin:void 0,chartRangeClip:!1,tooltipFormat:new o("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:void 0,tooltipFormat:new o("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new o('<span style="color: {{color}}">&#9679;</span> {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:void 0,targetColor:"#4a2",chartRangeMax:void 0,chartRangeMin:void 0,tooltipFormat:new o("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},A='.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}',r=function(){var t,e;return t=function(){this.init.apply(this,arguments)},arguments.length>1?(arguments[0]?(t.prototype=n.extend(new arguments[0],arguments[arguments.length-1]),t._super=arguments[0].prototype):t.prototype=arguments[arguments.length-1],arguments.length>2&&(e=Array.prototype.slice.call(arguments,1,-1),e.unshift(t.prototype),n.extend.apply(n,e))):t.prototype=arguments[0],t.prototype.cls=t,t},n.SPFormatClass=o=r({fre:/\{\{([\w.]+?)(:(.+?))?\}\}/g,precre:/(\w+)\.(\d+)/,init:function(t,e){this.format=t,this.fclass=e},render:function(t,e,n){var i,r,o,a,s,l=this,c=t;return this.format.replace(this.fre,function(){var t;return r=arguments[1],o=arguments[3],i=l.precre.exec(r),i?(s=i[2],r=i[1]):s=!1,void 0===(a=c[r])?"":o&&e&&e[o]?(t=e[o],t.get?e[o].get(a)||a:e[o][a]||a):(h(a)&&(a=n.get("numberFormatter")?n.get("numberFormatter")(a):g(a,s,n.get("numberDigitGroupCount"),n.get("numberDigitGroupSep"),n.get("numberDecimalMark"))),a)})}}),n.spformat=function(t,e){return new o(t,e)},a=function(t,e,n){return t<e?e:t>n?n:t},s=function(t,n){var i;return 2===n?(i=e.floor(t.length/2),t.length%2?t[i]:(t[i-1]+t[i])/2):t.length%2?(i=(t.length*n+n)/4,i%1?(t[e.floor(i)]+t[e.floor(i)-1])/2:t[i-1]):(i=(t.length*n+2)/4,i%1?(t[e.floor(i)]+t[e.floor(i)-1])/2:t[i-1])},l=function(t){var e;switch(t){case"undefined":t=void 0;break;case"null":t=null;break;case"true":t=!0;break;case"false":t=!1;break;default:e=parseFloat(t),t==e&&(t=e)}return t},c=function(t){var e,n=[];for(e=t.length;e--;)n[e]=l(t[e]);return n},u=function(t,e){var n,i,r=[];for(n=0,i=t.length;n<i;n++)t[n]!==e&&r.push(t[n]);return r},h=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},g=function(t,e,i,r,o){var a,s;for(t=(!1===e?parseFloat(t).toString():t.toFixed(e)).split(""),a=(a=n.inArray(".",t))<0?t.length:a,a<t.length&&(t[a]=o),s=a-i;s>0;s-=i)t.splice(s,0,r);return t.join("")},d=function(t,e,n){var i;for(i=e.length;i--;)if((!n||null!==e[i])&&e[i]!==t)return!1;return!0},p=function(t){return n.isArray(t)?t:[t]},f=function(e){var n;t.createStyleSheet?t.createStyleSheet().cssText=e:(n=t.createElement("style"),n.type="text/css",t.getElementsByTagName("head")[0].appendChild(n),n["string"==typeof t.body.style.WebkitAppearance?"innerText":"innerHTML"]=e)},n.fn.simpledraw=function(e,i,r,o){var a,s;if(r&&(a=this.data("_jqs_vcanvas")))return a;if(!1===n.fn.sparkline.canvas)return!1;if(void 0===n.fn.sparkline.canvas){var l=t.createElement("canvas");if(l.getContext&&l.getContext("2d"))n.fn.sparkline.canvas=function(t,e,n,i){return new P(t,e,n,i)};else{if(!t.namespaces||t.namespaces.v)return n.fn.sparkline.canvas=!1,!1;t.namespaces.add("v","urn:schemas-microsoft-com:vml","#default#VML"),n.fn.sparkline.canvas=function(t,e,n,i){return new N(t,e,n)}}}return void 0===e&&(e=n(this).innerWidth()),void 0===i&&(i=n(this).innerHeight()),a=n.fn.sparkline.canvas(e,i,this,o),s=n(this).data("_jqs_mhandler"),s&&s.registerCanvas(a),a},n.fn.cleardraw=function(){var t=this.data("_jqs_vcanvas");t&&t.reset()},n.RangeMapClass=m=r({init:function(t){var e,n,i=[];for(e in t)t.hasOwnProperty(e)&&"string"==typeof e&&e.indexOf(":")>-1&&(n=e.split(":"),n[0]=0===n[0].length?-1/0:parseFloat(n[0]),n[1]=0===n[1].length?1/0:parseFloat(n[1]),n[2]=t[e],i.push(n));this.map=t,this.rangelist=i||!1},get:function(t){var e,n,i,r=this.rangelist;if(void 0!==(i=this.map[t]))return i;if(r)for(e=r.length;e--;)if(n=r[e],n[0]<=t&&n[1]>=t)return n[2]}}),n.range_map=function(t){return new m(t)},v=r({init:function(t,e){var i=n(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=n(t.canvas);this.canvas=t,this.$canvas=e,e.mouseenter(n.proxy(this.mouseenter,this)),e.mouseleave(n.proxy(this.mouseleave,this)),e.click(n.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=void 0)},mouseclick:function(t){var e=n.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(e){n(t.body).unbind("mousemove.jqs"),n(t.body).bind("mousemove.jqs",n.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=e.pageX,this.currentPageY=e.pageY,this.currentEl=e.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new y(this.options),this.tooltip.updatePosition(e.pageX,e.pageY)),this.updateDisplay()},mouseleave:function(){n(t.body).unbind("mousemove.jqs");var e,i,r=this.splist,o=r.length,a=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),i=0;i<o;i++)e=r[i],e.clearRegionHighlight()&&(a=!0);a&&this.canvas.render()},mousemove:function(t){this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,this.tooltip&&this.tooltip.updatePosition(t.pageX,t.pageY),this.updateDisplay()},updateDisplay:function(){var t,e,i,r,o,a=this.splist,s=a.length,l=!1,c=this.$canvas.offset(),u=this.currentPageX-c.left,h=this.currentPageY-c.top;if(this.over){for(i=0;i<s;i++)e=a[i],(r=e.setRegionHighlight(this.currentEl,u,h))&&(l=!0);if(l){if(o=n.Event("sparklineRegionChange"),o.sparklines=this.splist,this.$el.trigger(o),this.tooltip){for(t="",i=0;i<s;i++)e=a[i],t+=e.getCurrentRegionTooltip();this.tooltip.setContent(t)}this.disableHighlight||this.canvas.render()}null===r&&this.mouseleave()}}}),y=r({sizeStyle:"position: static !important;display: block !important;visibility: hidden !important;float: left !important;",init:function(e){var i,r=e.get("tooltipClassname","jqstooltip"),o=this.sizeStyle;this.container=e.get("tooltipContainer")||t.body,this.tooltipOffsetX=e.get("tooltipOffsetX",10),this.tooltipOffsetY=e.get("tooltipOffsetY",12),n("#jqssizetip").remove(),n("#jqstooltip").remove(),this.sizetip=n("<div/>",{id:"jqssizetip",style:o,class:r}),this.tooltip=n("<div/>",{id:"jqstooltip",class:r}).appendTo(this.container),i=this.tooltip.offset(),this.offsetLeft=i.left,this.offsetTop=i.top,this.hidden=!0,n(window).unbind("resize.jqs scroll.jqs"),n(window).bind("resize.jqs scroll.jqs",n.proxy(this.updateWindowDims,this)),this.updateWindowDims()},updateWindowDims:function(){this.scrollTop=n(window).scrollTop(),this.scrollLeft=n(window).scrollLeft(),this.scrollRight=this.scrollLeft+n(window).width(),this.updatePosition()},getSize:function(t){this.sizetip.html(t).appendTo(this.container),this.width=this.sizetip.width()+1,this.height=this.sizetip.height(),this.sizetip.remove()},setContent:function(t){if(!t)return this.tooltip.css("visibility","hidden"),void(this.hidden=!0);this.getSize(t),this.tooltip.html(t).css({width:this.width,height:this.height,visibility:"visible"}),this.hidden&&(this.hidden=!1,this.updatePosition())},updatePosition:function(t,e){if(void 0===t){if(void 0===this.mousex)return;t=this.mousex-this.offsetLeft,e=this.mousey-this.offsetTop}else this.mousex=t-=this.offsetLeft,this.mousey=e-=this.offsetTop;this.height&&this.width&&!this.hidden&&(e-=this.height+this.tooltipOffsetY,t+=this.tooltipOffsetX,e<this.scrollTop&&(e=this.scrollTop),t<this.scrollLeft?t=this.scrollLeft:t+this.width>this.scrollRight&&(t=this.scrollRight-this.width),this.tooltip.css({left:t,top:e}))},remove:function(){this.tooltip.remove(),this.sizetip.remove(),this.sizetip=this.tooltip=void 0,n(window).unbind("resize.jqs scroll.jqs")}}),M=function(){f(A)},n(M),O=[],n.fn.sparkline=function(e,i){return this.each(function(){var r,o,a=new n.fn.sparkline.options(this,i),s=n(this);if(r=function(){var i,r,o,l,c,u,h;if("html"===e||void 0===e?(h=this.getAttribute(a.get("tagValuesAttribute")),void 0!==h&&null!==h||(h=s.html()),i=h.replace(/(^\s*<!--)|(-->\s*$)|\s+/g,"").split(",")):i=e,r="auto"===a.get("width")?i.length*a.get("defaultPixelsPerValue"):a.get("width"),"auto"===a.get("height")?a.get("composite")&&n.data(this,"_jqs_vcanvas")||(l=t.createElement("span"),l.innerHTML="a",s.html(l),o=n(l).innerHeight()||n(l).height(),n(l).remove(),l=null):o=a.get("height"),a.get("disableInteraction")?c=!1:(c=n.data(this,"_jqs_mhandler"),c?a.get("composite")||c.reset():(c=new v(this,a),n.data(this,"_jqs_mhandler",c))),a.get("composite")&&!n.data(this,"_jqs_vcanvas"))return void(n.data(this,"_jqs_errnotify")||(alert("Attempted to attach a composite sparkline to an element with no existing sparkline"),n.data(this,"_jqs_errnotify",!0)));u=new(n.fn.sparkline[a.get("type")])(this,i,a,r,o),u.render(),c&&c.registerSparkline(u)},n(this).html()&&!a.get("disableHiddenCheck")&&n(this).is(":hidden")||!n(this).parents("body").length){if(!a.get("composite")&&n.data(this,"_jqs_pending"))for(o=O.length;o;o--)O[o-1][0]==this&&O.splice(o-1,1);O.push([this,r]),n.data(this,"_jqs_pending",!0)}else r.call(this)})},n.fn.sparkline.defaults=i(),n.sparkline_display_visible=function(){var t,e,i,r=[];for(e=0,i=O.length;e<i;e++)t=O[e][0],n(t).is(":visible")&&!n(t).parents().is(":hidden")?(O[e][1].call(t),n.data(O[e][0],"_jqs_pending",!1),r.push(e)):n(t).closest("html").length||n.data(t,"_jqs_pending")||(n.data(O[e][0],"_jqs_pending",!1),r.push(e));for(e=r.length;e;e--)O.splice(r[e-1],1)},n.fn.sparkline.options=r({init:function(t,e){var i,r,o,a;this.userOptions=e=e||{},this.tag=t,this.tagValCache={},r=n.fn.sparkline.defaults,o=r.common,this.tagOptionsPrefix=e.enableTagOptions&&(e.tagOptionsPrefix||o.tagOptionsPrefix),a=this.getTagSetting("type"),i=a===R?r[e.type||o.type]:r[a],this.mergedOptions=n.extend({},o,i,e)},getTagSetting:function(t){var e,n,i,r,o=this.tagOptionsPrefix;if(!1===o||void 0===o)return R;if(this.tagValCache.hasOwnProperty(t))e=this.tagValCache.key;else{if(void 0===(e=this.tag.getAttribute(o+t))||null===e)e=R;else if("["===e.substr(0,1))for(e=e.substr(1,e.length-2).split(","),n=e.length;n--;)e[n]=l(e[n].replace(/(^\s*)|(\s*$)/g,""));else if("{"===e.substr(0,1))for(i=e.substr(1,e.length-2).split(","),e={},n=i.length;n--;)r=i[n].split(":",2),e[r[0].replace(/(^\s*)|(\s*$)/g,"")]=l(r[1].replace(/(^\s*)|(\s*$)/g,""));else e=l(e);this.tagValCache.key=e}return e},get:function(t,e){var n,i=this.getTagSetting(t);return i!==R?i:void 0===(n=this.mergedOptions[t])?e:n}}),n.fn.sparkline._base=r({disabled:!1,init:function(t,e,i,r,o){this.el=t,this.$el=n(t),this.values=e,this.options=i,this.width=r,this.height=o,this.currentRegion=void 0},initTarget:function(){var t=!this.options.get("disableInteraction");(this.target=this.$el.simpledraw(this.width,this.height,this.options.get("composite"),t))?(this.canvasWidth=this.target.pixelWidth,this.canvasHeight=this.target.pixelHeight):this.disabled=!0},render:function(){return!this.disabled||(this.el.innerHTML="",!1)},getRegion:function(t,e){},setRegionHighlight:function(t,e,n){var i,r=this.currentRegion,o=!this.options.get("disableHighlight");return e>this.canvasWidth||n>this.canvasHeight||e<0||n<0?null:(i=this.getRegion(t,e,n),r!==i&&(void 0!==r&&o&&this.removeHighlight(),this.currentRegion=i,void 0!==i&&o&&this.renderHighlight(),!0))},clearRegionHighlight:function(){return void 0!==this.currentRegion&&(this.removeHighlight(),this.currentRegion=void 0,!0)},renderHighlight:function(){this.changeHighlight(!0)},removeHighlight:function(){this.changeHighlight(!1)},changeHighlight:function(t){},getCurrentRegionTooltip:function(){var t,e,i,r,a,s,l,c,u,h,d,f,p,g,m=this.options,v="",y=[];if(void 0===this.currentRegion)return"";if(t=this.getCurrentRegionFields(),d=m.get("tooltipFormatter"))return d(this,m,t);if(m.get("tooltipChartTitle")&&(v+='<div class="jqs jqstitle">'+m.get("tooltipChartTitle")+"</div>\n"),!(e=this.options.get("tooltipFormat")))return"";if(n.isArray(e)||(e=[e]),n.isArray(t)||(t=[t]),l=this.options.get("tooltipFormatFieldlist"),c=this.options.get("tooltipFormatFieldlistKey"),l&&c){for(u=[],s=t.length;s--;)h=t[s][c],-1!=(g=n.inArray(h,l))&&(u[g]=t[s]);t=u}for(i=e.length,p=t.length,s=0;s<i;s++)for(f=e[s],"string"==typeof f&&(f=new o(f)),r=f.fclass||"jqsfield",g=0;g<p;g++)t[g].isNull&&m.get("tooltipSkipNull")||(n.extend(t[g],{prefix:m.get("tooltipPrefix"),suffix:m.get("tooltipSuffix")}),a=f.render(t[g],m.get("tooltipValueLookups"),m),y.push('<div class="'+r+'">'+a+"</div>"));return y.length?v+y.join("\n"):""},getCurrentRegionFields:function(){},calcHighlightColor:function(t,n){var i,r,o,s,l=n.get("highlightColor"),c=n.get("highlightLighten");if(l)return l;if(c&&(i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(t)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t))){for(o=[],r=4===t.length?16:1,s=0;s<3;s++)o[s]=a(e.round(parseInt(i[s+1],16)*r*c),0,255);return"rgb("+o.join(",")+")"}return t}}),x={changeHighlight:function(t){var e,i=this.currentRegion,r=this.target,o=this.regionShapes[i];o&&(e=this.renderRegion(i,t),n.isArray(e)||n.isArray(o)?(r.replaceWithShapes(o,e),this.regionShapes[i]=n.map(e,function(t){return t.id})):(r.replaceWithShape(o,e),this.regionShapes[i]=e.id))},render:function(){var t,e,i,r,o=this.values,a=this.target,s=this.regionShapes;if(this.cls._super.render.call(this)){for(i=o.length;i--;)if(t=this.renderRegion(i))if(n.isArray(t)){for(e=[],r=t.length;r--;)t[r].append(),e.push(t[r].id);s[i]=e}else t.append(),s[i]=t.id;else s[i]=null;a.render()}}},n.fn.sparkline.line=b=r(n.fn.sparkline._base,{type:"line",init:function(t,e,n,i,r){b._super.init.call(this,t,e,n,i,r),this.vertices=[],this.regionMap=[],this.xvalues=[],this.yvalues=[],this.yminmax=[],this.hightlightSpotId=null,this.lastShapeId=null,this.initTarget()},getRegion:function(t,e,n){var i,r=this.regionMap;for(i=r.length;i--;)if(null!==r[i]&&e>=r[i][0]&&e<=r[i][1])return r[i][2]},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:null===this.yvalues[t],x:this.xvalues[t],y:this.yvalues[t],color:this.options.get("lineColor"),fillColor:this.options.get("fillColor"),offset:t}},renderHighlight:function(){var t,e,n=this.currentRegion,i=this.target,r=this.vertices[n],o=this.options,a=o.get("spotRadius"),s=o.get("highlightSpotColor"),l=o.get("highlightLineColor");r&&(a&&s&&(t=i.drawCircle(r[0],r[1],a,void 0,s),this.highlightSpotId=t.id,i.insertAfterShape(this.lastShapeId,t)),l&&(e=i.drawLine(r[0],this.canvasTop,r[0],this.canvasTop+this.canvasHeight,l),this.highlightLineId=e.id,i.insertAfterShape(this.lastShapeId,e)))},removeHighlight:function(){var t=this.target;this.highlightSpotId&&(t.removeShapeId(this.highlightSpotId),this.highlightSpotId=null),this.highlightLineId&&(t.removeShapeId(this.highlightLineId),this.highlightLineId=null)},scanValues:function(){var t,n,i,r,o,a=this.values,s=a.length,l=this.xvalues,c=this.yvalues,u=this.yminmax;for(t=0;t<s;t++)n=a[t],i="string"==typeof a[t],r="object"==typeof a[t]&&a[t]instanceof Array,o=i&&a[t].split(":"),i&&2===o.length?(l.push(Number(o[0])),c.push(Number(o[1])),u.push(Number(o[1]))):r?(l.push(n[0]),c.push(n[1]),u.push(n[1])):(l.push(t),null===a[t]||"null"===a[t]?c.push(null):(c.push(Number(n)),u.push(Number(n))));this.options.get("xvalues")&&(l=this.options.get("xvalues")),this.maxy=this.maxyorg=e.max.apply(e,u),this.miny=this.minyorg=e.min.apply(e,u),this.maxx=e.max.apply(e,l),this.minx=e.min.apply(e,l),this.xvalues=l,this.yvalues=c,this.yminmax=u},processRangeOptions:function(){var t=this.options,e=t.get("normalRangeMin"),n=t.get("normalRangeMax");void 0!==e&&(e<this.miny&&(this.miny=e),n>this.maxy&&(this.maxy=n)),void 0!==t.get("chartRangeMin")&&(t.get("chartRangeClip")||t.get("chartRangeMin")<this.miny)&&(this.miny=t.get("chartRangeMin")),void 0!==t.get("chartRangeMax")&&(t.get("chartRangeClip")||t.get("chartRangeMax")>this.maxy)&&(this.maxy=t.get("chartRangeMax")),void 0!==t.get("chartRangeMinX")&&(t.get("chartRangeClipX")||t.get("chartRangeMinX")<this.minx)&&(this.minx=t.get("chartRangeMinX")),void 0!==t.get("chartRangeMaxX")&&(t.get("chartRangeClipX")||t.get("chartRangeMaxX")>this.maxx)&&(this.maxx=t.get("chartRangeMaxX"))},drawNormalRange:function(t,n,i,r,o){var a=this.options.get("normalRangeMin"),s=this.options.get("normalRangeMax"),l=n+e.round(i-i*((s-this.miny)/o)),c=e.round(i*(s-a)/o);this.target.drawRect(t,l,r,c,void 0,this.options.get("normalRangeColor")).append()},render:function(){var t,i,r,o,a,s,l,c,u,h,d,f,p,g,v,y,x,w,_,S,C,T,k,A,M,E=this.options,L=this.target,P=this.canvasWidth,N=this.canvasHeight,O=this.vertices,R=E.get("spotRadius"),D=this.regionMap;if(b._super.render.call(this)&&(this.scanValues(),this.processRangeOptions(),k=this.xvalues,A=this.yvalues,this.yminmax.length&&!(this.yvalues.length<2))){for(o=a=0,t=this.maxx-this.minx==0?1:this.maxx-this.minx,i=this.maxy-this.miny==0?1:this.maxy-this.miny,r=this.yvalues.length-1,R&&(P<4*R||N<4*R)&&(R=0),R&&(C=E.get("highlightSpotColor")&&!E.get("disableInteraction"),(C||E.get("minSpotColor")||E.get("spotColor")&&A[r]===this.miny)&&(N-=e.ceil(R)),(C||E.get("maxSpotColor")||E.get("spotColor")&&A[r]===this.maxy)&&(N-=e.ceil(R),o+=e.ceil(R)),(C||(E.get("minSpotColor")||E.get("maxSpotColor"))&&(A[0]===this.miny||A[0]===this.maxy))&&(a+=e.ceil(R),P-=e.ceil(R)),(C||E.get("spotColor")||E.get("minSpotColor")||E.get("maxSpotColor")&&(A[r]===this.miny||A[r]===this.maxy))&&(P-=e.ceil(R))),N--,void 0===E.get("normalRangeMin")||E.get("drawNormalOnTop")||this.drawNormalRange(a,o,N,P,i),l=[],c=[l],g=v=null,y=A.length,M=0;M<y;M++)u=k[M],d=k[M+1],h=A[M],f=a+e.round((u-this.minx)*(P/t)),p=M<y-1?a+e.round((d-this.minx)*(P/t)):P,v=f+(p-f)/2,D[M]=[g||0,v,M],g=v,null===h?M&&(null!==A[M-1]&&(l=[],c.push(l)),O.push(null)):(h<this.miny&&(h=this.miny),h>this.maxy&&(h=this.maxy),l.length||l.push([f,o+N]),s=[f,o+e.round(N-N*((h-this.miny)/i))],l.push(s),O.push(s));for(x=[],w=[],_=c.length,M=0;M<_;M++)l=c[M],l.length&&(E.get("fillColor")&&(l.push([l[l.length-1][0],o+N]),w.push(l.slice(0)),l.pop()),l.length>2&&(l[0]=[l[0][0],l[1][1]]),x.push(l));for(_=w.length,M=0;M<_;M++)L.drawShape(w[M],E.get("fillColor"),E.get("fillColor")).append();for(void 0!==E.get("normalRangeMin")&&E.get("drawNormalOnTop")&&this.drawNormalRange(a,o,N,P,i),_=x.length,M=0;M<_;M++)L.drawShape(x[M],E.get("lineColor"),void 0,E.get("lineWidth")).append();if(R&&E.get("valueSpots"))for(S=E.get("valueSpots"),void 0===S.get&&(S=new m(S)),M=0;M<y;M++)(T=S.get(A[M]))&&L.drawCircle(a+e.round((k[M]-this.minx)*(P/t)),o+e.round(N-N*((A[M]-this.miny)/i)),R,void 0,T).append();R&&E.get("spotColor")&&null!==A[r]&&L.drawCircle(a+e.round((k[k.length-1]-this.minx)*(P/t)),o+e.round(N-N*((A[r]-this.miny)/i)),R,void 0,E.get("spotColor")).append(),this.maxy!==this.minyorg&&(R&&E.get("minSpotColor")&&(u=k[n.inArray(this.minyorg,A)],L.drawCircle(a+e.round((u-this.minx)*(P/t)),o+e.round(N-N*((this.minyorg-this.miny)/i)),R,void 0,E.get("minSpotColor")).append()),R&&E.get("maxSpotColor")&&(u=k[n.inArray(this.maxyorg,A)],L.drawCircle(a+e.round((u-this.minx)*(P/t)),o+e.round(N-N*((this.maxyorg-this.miny)/i)),R,void 0,E.get("maxSpotColor")).append())),this.lastShapeId=L.getLastShapeId(),this.canvasTop=o,L.render()}}}),n.fn.sparkline.bar=w=r(n.fn.sparkline._base,x,{type:"bar",init:function(t,i,r,o,s){var h,d,f,p,g,v,y,x,b,_,S,C,T,k,A,M,E,L,P,N,O,R,D=parseInt(r.get("barWidth"),10),I=parseInt(r.get("barSpacing"),10),H=r.get("chartRangeMin"),j=r.get("chartRangeMax"),V=r.get("chartRangeClip"),F=1/0,z=-1/0;for(w._super.init.call(this,t,i,r,o,s),v=0,y=i.length;v<y;v++)N=i[v],((h="string"==typeof N&&N.indexOf(":")>-1)||n.isArray(N))&&(A=!0,h&&(N=i[v]=c(N.split(":"))),N=u(N,null),d=e.min.apply(e,N),f=e.max.apply(e,N),d<F&&(F=d),f>z&&(z=f));this.stacked=A,this.regionShapes={},this.barWidth=D,this.barSpacing=I,this.totalBarWidth=D+I,this.width=o=i.length*D+(i.length-1)*I,this.initTarget(),V&&(T=void 0===H?-1/0:H,k=void 0===j?1/0:j),g=[],p=A?[]:g;var q=[],G=[];for(v=0,y=i.length;v<y;v++)if(A)for(M=i[v],i[v]=P=[],q[v]=0,p[v]=G[v]=0,E=0,L=M.length;E<L;E++)null!==(N=P[E]=V?a(M[E],T,k):M[E])&&(N>0&&(q[v]+=N),F<0&&z>0?N<0?G[v]+=e.abs(N):p[v]+=N:p[v]+=e.abs(N-(N<0?z:F)),g.push(N));else N=V?a(i[v],T,k):i[v],null!==(N=i[v]=l(N))&&g.push(N);this.max=C=e.max.apply(e,g),this.min=S=e.min.apply(e,g),this.stackMax=z=A?e.max.apply(e,q):C,this.stackMin=F=A?e.min.apply(e,g):S,void 0!==r.get("chartRangeMin")&&(r.get("chartRangeClip")||r.get("chartRangeMin")<S)&&(S=r.get("chartRangeMin")),void 0!==r.get("chartRangeMax")&&(r.get("chartRangeClip")||r.get("chartRangeMax")>C)&&(C=r.get("chartRangeMax")),this.zeroAxis=b=r.get("zeroAxis",!0),_=S<=0&&C>=0&&b?0:0==b?S:S>0?S:C,this.xaxisOffset=_,x=A?e.max.apply(e,p)+e.max.apply(e,G):C-S,this.canvasHeightEf=b&&S<0?this.canvasHeight-2:this.canvasHeight-1,S<_?(R=A&&C>=0?z:C,(O=(R-_)/x*this.canvasHeight)!==e.ceil(O)&&(this.canvasHeightEf-=2,O=e.ceil(O))):O=this.canvasHeight,this.yoffset=O,n.isArray(r.get("colorMap"))?(this.colorMapByIndex=r.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=r.get("colorMap"),this.colorMapByValue&&void 0===this.colorMapByValue.get&&(this.colorMapByValue=new m(this.colorMapByValue))),this.range=x},getRegion:function(t,n,i){var r=e.floor(n/this.totalBarWidth);return r<0||r>=this.values.length?void 0:r},getCurrentRegionFields:function(){var t,e,n=this.currentRegion,i=p(this.values[n]),r=[];for(e=i.length;e--;)t=i[e],r.push({isNull:null===t,value:t,color:this.calcColor(e,t,n),offset:n});return r},calcColor:function(t,e,i){var r,o,a=this.colorMapByIndex,s=this.colorMapByValue,l=this.options;return r=this.stacked?l.get("stackedBarColor"):e<0?l.get("negBarColor"):l.get("barColor"),0===e&&void 0!==l.get("zeroColor")&&(r=l.get("zeroColor")),s&&(o=s.get(e))?r=o:a&&a.length>i&&(r=a[i]),n.isArray(r)?r[t%r.length]:r},renderRegion:function(t,i){var r,o,a,s,l,c,u,h,f,p,g=this.values[t],m=this.options,v=this.xaxisOffset,y=[],x=this.range,b=this.stacked,w=this.target,_=t*this.totalBarWidth,S=this.canvasHeightEf,C=this.yoffset;if(g=n.isArray(g)?g:[g],u=g.length,h=g[0],s=d(null,g),p=d(v,g,!0),s)return m.get("nullColor")?(a=i?m.get("nullColor"):this.calcHighlightColor(m.get("nullColor"),m),r=C>0?C-1:C,w.drawRect(_,r,this.barWidth-1,0,a,a)):void 0;for(l=C,c=0;c<u;c++){if(h=g[c],b&&h===v){if(!p||f)continue;f=!0}o=x>0?e.floor(S*(e.abs(h-v)/x))+1:1,h<v||h===v&&0===C?(r=l,l+=o):(r=C-o,C-=o),a=this.calcColor(c,h,t),i&&(a=this.calcHighlightColor(a,m)),y.push(w.drawRect(_,r,this.barWidth-1,o-1,a,a))}
-return 1===y.length?y[0]:y}}),n.fn.sparkline.tristate=_=r(n.fn.sparkline._base,x,{type:"tristate",init:function(t,e,i,r,o){var a=parseInt(i.get("barWidth"),10),s=parseInt(i.get("barSpacing"),10);_._super.init.call(this,t,e,i,r,o),this.regionShapes={},this.barWidth=a,this.barSpacing=s,this.totalBarWidth=a+s,this.values=n.map(e,Number),this.width=r=e.length*a+(e.length-1)*s,n.isArray(i.get("colorMap"))?(this.colorMapByIndex=i.get("colorMap"),this.colorMapByValue=null):(this.colorMapByIndex=null,this.colorMapByValue=i.get("colorMap"),this.colorMapByValue&&void 0===this.colorMapByValue.get&&(this.colorMapByValue=new m(this.colorMapByValue))),this.initTarget()},getRegion:function(t,n,i){return e.floor(n/this.totalBarWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:void 0===this.values[t],value:this.values[t],color:this.calcColor(this.values[t],t),offset:t}},calcColor:function(t,e){var n,i=this.values,r=this.options,o=this.colorMapByIndex,a=this.colorMapByValue;return a&&(n=a.get(t))?n:o&&o.length>e?o[e]:i[e]<0?r.get("negBarColor"):i[e]>0?r.get("posBarColor"):r.get("zeroBarColor")},renderRegion:function(t,n){var i,r,o,a,s,l,c=this.values,u=this.options,h=this.target;if(i=h.pixelHeight,o=e.round(i/2),a=t*this.totalBarWidth,c[t]<0?(s=o,r=o-1):c[t]>0?(s=0,r=o-1):(s=o-1,r=2),null!==(l=this.calcColor(c[t],t)))return n&&(l=this.calcHighlightColor(l,u)),h.drawRect(a,s,this.barWidth-1,r-1,l,l)}}),n.fn.sparkline.discrete=S=r(n.fn.sparkline._base,x,{type:"discrete",init:function(t,i,r,o,a){S._super.init.call(this,t,i,r,o,a),this.regionShapes={},this.values=i=n.map(i,Number),this.min=e.min.apply(e,i),this.max=e.max.apply(e,i),this.range=this.max-this.min,this.width=o="auto"===r.get("width")?2*i.length:this.width,this.interval=e.floor(o/i.length),this.itemWidth=o/i.length,void 0!==r.get("chartRangeMin")&&(r.get("chartRangeClip")||r.get("chartRangeMin")<this.min)&&(this.min=r.get("chartRangeMin")),void 0!==r.get("chartRangeMax")&&(r.get("chartRangeClip")||r.get("chartRangeMax")>this.max)&&(this.max=r.get("chartRangeMax")),this.initTarget(),this.target&&(this.lineHeight="auto"===r.get("lineHeight")?e.round(.3*this.canvasHeight):r.get("lineHeight"))},getRegion:function(t,n,i){return e.floor(n/this.itemWidth)},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:void 0===this.values[t],value:this.values[t],offset:t}},renderRegion:function(t,n){var i,r,o,s,l=this.values,c=this.options,u=this.min,h=this.max,d=this.range,f=this.interval,p=this.target,g=this.canvasHeight,m=this.lineHeight,v=g-m;return r=a(l[t],u,h),s=t*f,i=e.round(v-v*((r-u)/d)),o=c.get("thresholdColor")&&r<c.get("thresholdValue")?c.get("thresholdColor"):c.get("lineColor"),n&&(o=this.calcHighlightColor(o,c)),p.drawLine(s,i,s,i+m,o)}}),n.fn.sparkline.bullet=C=r(n.fn.sparkline._base,{type:"bullet",init:function(t,n,i,r,o){var a,s,l;C._super.init.call(this,t,n,i,r,o),this.values=n=c(n),l=n.slice(),l[0]=null===l[0]?l[2]:l[0],l[1]=null===n[1]?l[2]:l[1],a=e.min.apply(e,n),s=e.max.apply(e,n),a=void 0===i.get("base")?a<0?a:0:i.get("base"),this.min=a,this.max=s,this.range=s-a,this.shapes={},this.valueShapes={},this.regiondata={},this.width=r="auto"===i.get("width")?"4.0em":r,this.target=this.$el.simpledraw(r,o,i.get("composite")),n.length||(this.disabled=!0),this.initTarget()},getRegion:function(t,e,n){var i=this.target.getShapeAt(t,e,n);return void 0!==i&&void 0!==this.shapes[i]?this.shapes[i]:void 0},getCurrentRegionFields:function(){var t=this.currentRegion;return{fieldkey:t.substr(0,1),value:this.values[t.substr(1)],region:t}},changeHighlight:function(t){var e,n=this.currentRegion,i=this.valueShapes[n];switch(delete this.shapes[i],n.substr(0,1)){case"r":e=this.renderRange(n.substr(1),t);break;case"p":e=this.renderPerformance(t);break;case"t":e=this.renderTarget(t)}this.valueShapes[n]=e.id,this.shapes[e.id]=n,this.target.replaceWithShape(i,e)},renderRange:function(t,n){var i=this.values[t],r=e.round(this.canvasWidth*((i-this.min)/this.range)),o=this.options.get("rangeColors")[t-2];return n&&(o=this.calcHighlightColor(o,this.options)),this.target.drawRect(0,0,r-1,this.canvasHeight-1,o,o)},renderPerformance:function(t){var n=this.values[1],i=e.round(this.canvasWidth*((n-this.min)/this.range)),r=this.options.get("performanceColor");return t&&(r=this.calcHighlightColor(r,this.options)),this.target.drawRect(0,e.round(.3*this.canvasHeight),i-1,e.round(.4*this.canvasHeight)-1,r,r)},renderTarget:function(t){var n=this.values[0],i=e.round(this.canvasWidth*((n-this.min)/this.range)-this.options.get("targetWidth")/2),r=e.round(.1*this.canvasHeight),o=this.canvasHeight-2*r,a=this.options.get("targetColor");return t&&(a=this.calcHighlightColor(a,this.options)),this.target.drawRect(i,r,this.options.get("targetWidth")-1,o-1,a,a)},render:function(){var t,e,n=this.values.length,i=this.target;if(C._super.render.call(this)){for(t=2;t<n;t++)e=this.renderRange(t).append(),this.shapes[e.id]="r"+t,this.valueShapes["r"+t]=e.id;null!==this.values[1]&&(e=this.renderPerformance().append(),this.shapes[e.id]="p1",this.valueShapes.p1=e.id),null!==this.values[0]&&(e=this.renderTarget().append(),this.shapes[e.id]="t0",this.valueShapes.t0=e.id),i.render()}}}),n.fn.sparkline.pie=T=r(n.fn.sparkline._base,{type:"pie",init:function(t,i,r,o,a){var s,l=0;if(T._super.init.call(this,t,i,r,o,a),this.shapes={},this.valueShapes={},this.values=i=n.map(i,Number),"auto"===r.get("width")&&(this.width=this.height),i.length>0)for(s=i.length;s--;)l+=i[s];this.total=l,this.initTarget(),this.radius=e.floor(e.min(this.canvasWidth,this.canvasHeight)/2)},getRegion:function(t,e,n){var i=this.target.getShapeAt(t,e,n);return void 0!==i&&void 0!==this.shapes[i]?this.shapes[i]:void 0},getCurrentRegionFields:function(){var t=this.currentRegion;return{isNull:void 0===this.values[t],value:this.values[t],percent:this.values[t]/this.total*100,color:this.options.get("sliceColors")[t%this.options.get("sliceColors").length],offset:t}},changeHighlight:function(t){var e=this.currentRegion,n=this.renderSlice(e,t),i=this.valueShapes[e];delete this.shapes[i],this.target.replaceWithShape(i,n),this.valueShapes[e]=n.id,this.shapes[n.id]=e},renderSlice:function(t,n){var i,r,o,a,s,l=this.target,c=this.options,u=this.radius,h=c.get("borderWidth"),d=c.get("offset"),f=2*e.PI,p=this.values,g=this.total,m=d?2*e.PI*(d/360):0;for(a=p.length,o=0;o<a;o++){if(i=m,r=m,g>0&&(r=m+f*(p[o]/g)),t===o)return s=c.get("sliceColors")[o%c.get("sliceColors").length],n&&(s=this.calcHighlightColor(s,c)),l.drawPieSlice(u,u,u-h,i,r,void 0,s);m=r}},render:function(){var t,n,i=this.target,r=this.values,o=this.options,a=this.radius,s=o.get("borderWidth");if(T._super.render.call(this)){for(s&&i.drawCircle(a,a,e.floor(a-s/2),o.get("borderColor"),void 0,s).append(),n=r.length;n--;)r[n]&&(t=this.renderSlice(n).append(),this.valueShapes[n]=t.id,this.shapes[t.id]=n);i.render()}}}),n.fn.sparkline.box=k=r(n.fn.sparkline._base,{type:"box",init:function(t,e,i,r,o){k._super.init.call(this,t,e,i,r,o),this.values=n.map(e,Number),this.width="auto"===i.get("width")?"4.0em":r,this.initTarget(),this.values.length||(this.disabled=1)},getRegion:function(){return 1},getCurrentRegionFields:function(){var t=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];return void 0!==this.loutlier&&t.push({field:"lo",value:this.loutlier}),void 0!==this.routlier&&t.push({field:"ro",value:this.routlier}),void 0!==this.lwhisker&&t.push({field:"lw",value:this.lwhisker}),void 0!==this.rwhisker&&t.push({field:"rw",value:this.rwhisker}),t},render:function(){var t,n,i,r,o,a,l,c,u,h,d,f=this.target,p=this.values,g=p.length,m=this.options,v=this.canvasWidth,y=this.canvasHeight,x=void 0===m.get("chartRangeMin")?e.min.apply(e,p):m.get("chartRangeMin"),b=void 0===m.get("chartRangeMax")?e.max.apply(e,p):m.get("chartRangeMax"),w=0;if(k._super.render.call(this)){if(m.get("raw"))m.get("showOutliers")&&p.length>5?(n=p[0],t=p[1],r=p[2],o=p[3],a=p[4],l=p[5],c=p[6]):(t=p[0],r=p[1],o=p[2],a=p[3],l=p[4]);else if(p.sort(function(t,e){return t-e}),r=s(p,1),o=s(p,2),a=s(p,3),i=a-r,m.get("showOutliers")){for(t=l=void 0,u=0;u<g;u++)void 0===t&&p[u]>r-i*m.get("outlierIQR")&&(t=p[u]),p[u]<a+i*m.get("outlierIQR")&&(l=p[u]);n=p[0],c=p[g-1]}else t=p[0],l=p[g-1];this.quartiles=[r,o,a],this.lwhisker=t,this.rwhisker=l,this.loutlier=n,this.routlier=c,d=v/(b-x+1),m.get("showOutliers")&&(w=e.ceil(m.get("spotRadius")),v-=2*e.ceil(m.get("spotRadius")),d=v/(b-x+1),n<t&&f.drawCircle((n-x)*d+w,y/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append(),c>l&&f.drawCircle((c-x)*d+w,y/2,m.get("spotRadius"),m.get("outlierLineColor"),m.get("outlierFillColor")).append()),f.drawRect(e.round((r-x)*d+w),e.round(.1*y),e.round((a-r)*d),e.round(.8*y),m.get("boxLineColor"),m.get("boxFillColor")).append(),f.drawLine(e.round((t-x)*d+w),e.round(y/2),e.round((r-x)*d+w),e.round(y/2),m.get("lineColor")).append(),f.drawLine(e.round((t-x)*d+w),e.round(y/4),e.round((t-x)*d+w),e.round(y-y/4),m.get("whiskerColor")).append(),f.drawLine(e.round((l-x)*d+w),e.round(y/2),e.round((a-x)*d+w),e.round(y/2),m.get("lineColor")).append(),f.drawLine(e.round((l-x)*d+w),e.round(y/4),e.round((l-x)*d+w),e.round(y-y/4),m.get("whiskerColor")).append(),f.drawLine(e.round((o-x)*d+w),e.round(.1*y),e.round((o-x)*d+w),e.round(.9*y),m.get("medianColor")).append(),m.get("target")&&(h=e.ceil(m.get("spotRadius")),f.drawLine(e.round((m.get("target")-x)*d+w),e.round(y/2-h),e.round((m.get("target")-x)*d+w),e.round(y/2+h),m.get("targetColor")).append(),f.drawLine(e.round((m.get("target")-x)*d+w-h),e.round(y/2),e.round((m.get("target")-x)*d+w+h),e.round(y/2),m.get("targetColor")).append()),f.render()}}}),E=r({init:function(t,e,n,i){this.target=t,this.id=e,this.type=n,this.args=i},append:function(){return this.target.appendShape(this),this}}),L=r({_pxregex:/(\d+)(px)?\s*$/i,init:function(t,e,i){t&&(this.width=t,this.height=e,this.target=i,this.lastShapeId=null,i[0]&&(i=i[0]),n.data(i,"_jqs_vcanvas",this))},drawLine:function(t,e,n,i,r,o){return this.drawShape([[t,e],[n,i]],r,o)},drawShape:function(t,e,n,i){return this._genShape("Shape",[t,e,n,i])},drawCircle:function(t,e,n,i,r,o){return this._genShape("Circle",[t,e,n,i,r,o])},drawPieSlice:function(t,e,n,i,r,o,a){return this._genShape("PieSlice",[t,e,n,i,r,o,a])},drawRect:function(t,e,n,i,r,o){return this._genShape("Rect",[t,e,n,i,r,o])},getElement:function(){return this.canvas},getLastShapeId:function(){return this.lastShapeId},reset:function(){alert("reset not implemented")},_insert:function(t,e){n(e).html(t)},_calculatePixelDims:function(t,e,i){var r;r=this._pxregex.exec(e),this.pixelHeight=r?r[1]:n(i).height(),r=this._pxregex.exec(t),this.pixelWidth=r?r[1]:n(i).width()},_genShape:function(t,e){var n=D++;return e.unshift(n),new E(this,n,t,e)},appendShape:function(t){alert("appendShape not implemented")},replaceWithShape:function(t,e){alert("replaceWithShape not implemented")},insertAfterShape:function(t,e){alert("insertAfterShape not implemented")},removeShapeId:function(t){alert("removeShapeId not implemented")},getShapeAt:function(t,e,n){alert("getShapeAt not implemented")},render:function(){alert("render not implemented")}}),P=r(L,{init:function(e,i,r,o){P._super.init.call(this,e,i,r),this.canvas=t.createElement("canvas"),r[0]&&(r=r[0]),n.data(r,"_jqs_vcanvas",this),n(this.canvas).css({display:"inline-block",width:e,height:i,verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,this.interact=o,this.shapes={},this.shapeseq=[],this.currentTargetShapeId=void 0,n(this.canvas).css({width:this.pixelWidth,height:this.pixelHeight})},_getContext:function(t,e,n){var i=this.canvas.getContext("2d");return void 0!==t&&(i.strokeStyle=t),i.lineWidth=void 0===n?1:n,void 0!==e&&(i.fillStyle=e),i},reset:function(){this._getContext().clearRect(0,0,this.pixelWidth,this.pixelHeight),this.shapes={},this.shapeseq=[],this.currentTargetShapeId=void 0},_drawShape:function(t,e,n,i,r){var o,a,s=this._getContext(n,i,r);for(s.beginPath(),s.moveTo(e[0][0]+.5,e[0][1]+.5),o=1,a=e.length;o<a;o++)s.lineTo(e[o][0]+.5,e[o][1]+.5);void 0!==n&&s.stroke(),void 0!==i&&s.fill(),void 0!==this.targetX&&void 0!==this.targetY&&s.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawCircle:function(t,n,i,r,o,a,s){var l=this._getContext(o,a,s);l.beginPath(),l.arc(n,i,r,0,2*e.PI,!1),void 0!==this.targetX&&void 0!==this.targetY&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t),void 0!==o&&l.stroke(),void 0!==a&&l.fill()},_drawPieSlice:function(t,e,n,i,r,o,a,s){var l=this._getContext(a,s);l.beginPath(),l.moveTo(e,n),l.arc(e,n,i,r,o,!1),l.lineTo(e,n),l.closePath(),void 0!==a&&l.stroke(),s&&l.fill(),void 0!==this.targetX&&void 0!==this.targetY&&l.isPointInPath(this.targetX,this.targetY)&&(this.currentTargetShapeId=t)},_drawRect:function(t,e,n,i,r,o,a){return this._drawShape(t,[[e,n],[e+i,n],[e+i,n+r],[e,n+r],[e,n]],o,a)},appendShape:function(t){return this.shapes[t.id]=t,this.shapeseq.push(t.id),this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var n,i=this.shapeseq;for(this.shapes[e.id]=e,n=i.length;n--;)i[n]==t&&(i[n]=e.id);delete this.shapes[t]},replaceWithShapes:function(t,e){var n,i,r,o=this.shapeseq,a={};for(i=t.length;i--;)a[t[i]]=!0;for(i=o.length;i--;)n=o[i],a[n]&&(o.splice(i,1),delete this.shapes[n],r=i);for(i=e.length;i--;)o.splice(r,0,e[i].id),this.shapes[e[i].id]=e[i]},insertAfterShape:function(t,e){var n,i=this.shapeseq;for(n=i.length;n--;)if(i[n]===t)return i.splice(n+1,0,e.id),void(this.shapes[e.id]=e)},removeShapeId:function(t){var e,n=this.shapeseq;for(e=n.length;e--;)if(n[e]===t){n.splice(e,1);break}delete this.shapes[t]},getShapeAt:function(t,e,n){return this.targetX=e,this.targetY=n,this.render(),this.currentTargetShapeId},render:function(){var t,e,n,i=this.shapeseq,r=this.shapes,o=i.length,a=this._getContext();for(a.clearRect(0,0,this.pixelWidth,this.pixelHeight),n=0;n<o;n++)t=i[n],e=r[t],this["_draw"+e.type].apply(this,e.args);this.interact||(this.shapes={},this.shapeseq=[])}}),N=r(L,{init:function(e,i,r){var o;N._super.init.call(this,e,i,r),r[0]&&(r=r[0]),n.data(r,"_jqs_vcanvas",this),this.canvas=t.createElement("span"),n(this.canvas).css({display:"inline-block",position:"relative",overflow:"hidden",width:e,height:i,margin:"0px",padding:"0px",verticalAlign:"top"}),this._insert(this.canvas,r),this._calculatePixelDims(e,i,this.canvas),this.canvas.width=this.pixelWidth,this.canvas.height=this.pixelHeight,o='<v:group coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'" style="position:absolute;top:0;left:0;width:'+this.pixelWidth+"px;height="+this.pixelHeight+'px;"></v:group>',this.canvas.insertAdjacentHTML("beforeEnd",o),this.group=n(this.canvas).children()[0],this.rendered=!1,this.prerender=""},_drawShape:function(t,e,n,i,r){var o,a,s,l,c,u,h=[];for(u=0,c=e.length;u<c;u++)h[u]=e[u][0]+","+e[u][1];return o=h.splice(0,1),r=void 0===r?1:r,a=void 0===n?' stroked="false" ':' strokeWeight="'+r+'px" strokeColor="'+n+'" ',s=void 0===i?' filled="false"':' fillColor="'+i+'" filled="true" ',l=h[0]===h[h.length-1]?"x ":"",'<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+a+s+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+o+" l "+h.join(", ")+" "+l+'e"> </v:shape>'},_drawCircle:function(t,e,n,i,r,o,a){var s,l;return e-=i,n-=i,s=void 0===r?' stroked="false" ':' strokeWeight="'+a+'px" strokeColor="'+r+'" ',l=void 0===o?' filled="false"':' fillColor="'+o+'" filled="true" ','<v:oval  id="jqsshape'+t+'" '+s+l+' style="position:absolute;top:'+n+"px; left:"+e+"px; width:"+2*i+"px; height:"+2*i+'px"></v:oval>'},_drawPieSlice:function(t,n,i,r,o,a,s,l){var c,u,h,d,f,p,g;if(o===a)return"";if(a-o==2*e.PI&&(o=0,a=2*e.PI),u=n+e.round(e.cos(o)*r),h=i+e.round(e.sin(o)*r),d=n+e.round(e.cos(a)*r),f=i+e.round(e.sin(a)*r),u===d&&h===f){if(a-o<e.PI)return"";u=d=n+r,h=f=i}return u===d&&h===f&&a-o<e.PI?"":(c=[n-r,i-r,n+r,i+r,u,h,d,f],p=void 0===s?' stroked="false" ':' strokeWeight="1px" strokeColor="'+s+'" ',g=void 0===l?' filled="false"':' fillColor="'+l+'" filled="true" ','<v:shape coordorigin="0 0" coordsize="'+this.pixelWidth+" "+this.pixelHeight+'"  id="jqsshape'+t+'" '+p+g+' style="position:absolute;left:0px;top:0px;height:'+this.pixelHeight+"px;width:"+this.pixelWidth+'px;padding:0px;margin:0px;"  path="m '+n+","+i+" wa "+c.join(", ")+' x e"> </v:shape>')},_drawRect:function(t,e,n,i,r,o,a){return this._drawShape(t,[[e,n],[e,n+r],[e+i,n+r],[e+i,n],[e,n]],o,a)},reset:function(){this.group.innerHTML=""},appendShape:function(t){var e=this["_draw"+t.type].apply(this,t.args);return this.rendered?this.group.insertAdjacentHTML("beforeEnd",e):this.prerender+=e,this.lastShapeId=t.id,t.id},replaceWithShape:function(t,e){var i=n("#jqsshape"+t),r=this["_draw"+e.type].apply(this,e.args);i[0].outerHTML=r},replaceWithShapes:function(t,e){var i,r=n("#jqsshape"+t[0]),o="",a=e.length;for(i=0;i<a;i++)o+=this["_draw"+e[i].type].apply(this,e[i].args);for(r[0].outerHTML=o,i=1;i<t.length;i++)n("#jqsshape"+t[i]).remove()},insertAfterShape:function(t,e){var i=n("#jqsshape"+t),r=this["_draw"+e.type].apply(this,e.args);i[0].insertAdjacentHTML("afterEnd",r)},removeShapeId:function(t){var e=n("#jqsshape"+t);this.group.removeChild(e[0])},getShapeAt:function(t,e,n){return t.id.substr(8)},render:function(){this.rendered||(this.group.innerHTML=this.prerender,this.rendered=!0)}})})}(document,Math),define("download",["jquery","laconic"],function(){!function(t){var e={_init:function(e){return this.each(function(){var n=t(this),i=t.extend({name:"swish-download",ext:"dat"},e),r=i.content_type,o=i.filename||"swish-download.dat",a=i.charset||"charset=UTF-8";(function(){return void 0!=t("<a>")[0].download})()&&r||(r="application/octet-stream");var s="data:"+r+";"+a+",";s+="base64"==a?i.data:encodeURIComponent(i.data),n.attr("download",o),n.attr("href",s),n.attr("title","Download (use menu for save link as)"),n.text(o),n.addClass("btn btn-primary download"),n.append(t.el.span({class:"glyphicon glyphicon-download"}))})}};t.fn.downloader=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.downloader"):e._init.apply(this,arguments)}}(jQuery)}),define("runner",["jquery","config","preferences","cm/lib/codemirror","form","prolog","links","modal","answer","laconic","sparkline","download","search"],function($,config,preferences,CodeMirror,form,prolog,links,modal){function glyphButton(t,e){return $.el.a({href:"#",class:"close btn btn-link btn-sm",title:e},$.el.span({class:"glyphicon glyphicon-"+t}))}!function(t){var e={_init:function(e){return this.each(function(){var e=t(this),n={};n.stretch=t(t.el.div({class:"stretch"})),n.inner=t(t.el.div({class:"inner"})),e.append(function(){var n=t.el.span({class:"glyphicon glyphicon-menu-hamburger"});return form.widgets.dropdownButton(n,{divClass:"runners-menu btn-transparent",ulClass:"pull-right",client:e,actions:{"Collapse all":function(){this.find(".prolog-runner").prologRunner("toggleIconic",!0)},"Expand all":function(){this.find(".prolog-runner").prologRunner("toggleIconic",!1)},"Stop all":function(){this.find(".prolog-runner").prologRunner("stop")},Clear:function(){this.prologRunners("clear")}}})}()),e.append(n.stretch),e.append(n.inner),e.on("pane.resize",function(){e.prologRunners("scrollToBottom",!0)}),e.on("scroll-to-bottom",function(t,n){e.prologRunners("scrollToBottom",n)}),e.data("prologRunners",n)})},run:function(e){var n=this.data("prologRunners");e.iconifyLast&&this.prologRunners("iconifyLast");var i=t.el.div({class:"prolog-runner"});return n.inner.append(i),t(i).prologRunner(e),this.trigger("scroll-to-bottom"),this},clear:function(){this.find(".prolog-runner").prologRunner("close")},iconifyLast:function(){var e=t(this.inner).children().last();if(1==e.length){var n=e.prologRunner();n.alive()||n.toggleIconic(!0)}return this},scrollToBottom:function(e){return this.each(function(){var n=t(this),i=n.data("prologRunners"),r=i.inner.height(),o=n.height()-r-4-2;(o>0||!0!==e)&&(i.stretch.height(o>0?o:0),n.scrollTop(r))}),this}};t.fn.prologRunners=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.prologRunners"):e._init.apply(this,arguments)}}(jQuery),function($){function RS(t){return $(t).closest(".prolog-runners")}function addAnswer(t,e){return t.find(".runner-results").append(e),this}function aliveState(t){switch(t){case"running":case"wait-next":case"wait-input":case"wait-debug":return!0;default:return!1}}function answerTable(t){var e=[{class:"projection"}];for(i=0;i<t.length;i++)e.push($.el.th({class:"pl-pvar"},t[i]));return e.push($.el.th({class:"answer-nth"},"")),$.el.table({class:"prolog-answers"},$.el.tbody($.el.tr.apply(this,e)))}function runScripts(elem){var scripts=[];if(elem=$(elem),elem.find("script").each(function(){"text/javascript"==(this.getAttribute("type")||"text/javascript")&&scripts.push(this.textContent)}),scripts.length>0){var script="(function(node){"+scripts.join("\n")+"})",node=new Node({node:elem[0]});try{eval(script)(node)}catch(t){alert(t)}}}function Node(t){this.my_node=t.node}function breakpoints(t){var e=t.data(pluginName);return $(t).parents(".swish").swish("breakpoints",e.prolog.id)}function registerSources(t){var e=t.options.runner,n=e.data(pluginName);n.query.editor&&$(n.query.editor).prologEditor("pengine",{add:t.id})}function handleCreate(){var t=this.pengine.options.runner,e=t.data(pluginName);if(void 0==e)this.pengine.destroy();else{var n,i=$.extend({},e.screen),r=config.swish.residuals_var||"Residuals",o=config.swish.permahash_var;o=o?", "+o:"",registerSources(this.pengine),(n=breakpoints(t))&&(i.breakpoints=Pengine.stringify(n)),e.chunk&&(i.chunk=e.chunk),this.pengine.ask("'$swish wrapper'((\n"+termNoFullStop(e.query.query)+"\n), ["+r+o+"])",i),t.prologRunner("setState","running")}}function handleSuccess(){var t=this.pengine.options.runner;if(void 0==t.data(pluginName))this.pengine.destroy();else{for(var e=0;e<this.data.length;e++){var n=this.data[e];this.projection&&(n.projection=this.projection),t.prologRunner("renderAnswer",n)}this.time>.1&&addAnswer(t,$.el.div({class:"cputime"},$.el.span(this.time.toFixed(3)," seconds cpu time"))),t.prologRunner("setState",this.more?"wait-next":"true")}}function handleFailure(){var t=this.pengine.options.runner;addAnswer(t,$.el.span({class:"prolog-false"},"false")),t.prologRunner("setState","false")}function handleStop(){this.pengine.options.runner.prologRunner("setState","stopped")}function handlePrompt(){var t=this.pengine.options.runner,e=t.data("prologRunner"),n=this.data||"Please enter a Prolog term";if(e.wait_for="term","object"==typeof n){if("trace"==n.type)return t.prologRunner("trace",this);if("form"==n.type)return t.prologRunner("form",this);if("jQuery"==n.type)return t.prologRunner("jQuery",this);"console"==n.type?(n=n.prompt||"console> ",e.wait_for="line"):n=JSON.stringify(n)}t.prologRunner("setPrompt",n),t.prologRunner("setState","wait-input")}function clickableLocations(t,e){var n=/pengine:\/\/[-0-9a-f]{36}\/src:(\d+)/;return t.replace(n,function(t){return"<a class='goto-error' title='Goto location'><span class='glyphicon glyphicon-hand-right'></span> <b>line <span class='line'>"+t.match(n)[1]+"</span></b></a>"})}function gotoError(t){var e=$(t.target).closest("a.goto-error"),n=$(t.target).closest(".error-context"),i=n.data("error_context");if(e[0]){var r=parseInt(e.find("span.line").text()),o=e.find("span.file").text();return t.preventDefault(),o?n.closest("body.swish").swish("playFile",{file:o,line:r}):$(i.editor).prologEditor("gotoLine",r),!1}i.location.file?n.closest("body.swish").swish("playFile",i.location):$(i.editor).prologEditor("gotoLine",i.location.line)}function handleOutput(t){function e(){var e=a.file+":"+a.line+":";a.ch&&(e+=a.ch+":"),e+="\\s*",t.data=clickableLocations(t.data.replace(new RegExp(e,"g"),""),r.editor),o=n.prologRunner("outputHTML",t.data),$(o).addClass("error-context"),$(o).append($.el.span({class:"glyphicon glyphicon-hand-right"})),$(o).attr("title","Error in program.  Click to show in context"),$(o).on("click",gotoError),$(o).data("error_context",r)}var n=t.pengine.options.runner,i=n.data(pluginName);if(i){if("string"==typeof t.data){var r={editor:i.query.editor};if(t.data=t.data.replace(/'[-0-9a-f]{36}':/g,""),t.location){var o,a=t.location;if(a.file.startsWith("swish://")){var s=a.file.slice("swish://".length);r.location={file:s,line:a.line},e()}else a.file.startsWith("pengine://")&&(r.location={line:a.line},e(i.query.editor));registerSources(t.pengine),t.error_context=r,t.error_handler=gotoError,$(".swish-event-receiver").trigger("source-error",t)}else{var o=n.prologRunner("outputHTML",clickableLocations(t.data,r.editor));$(o).on("click",gotoError),$(o).data("error_context",r)}}else"object"==typeof t.data?n.prologRunner(t.data.action,t.data):console.log(t.data);n.trigger("scroll-to-bottom")}}function handleError(){var t=this.pengine.options.runner;"too_many_pengines"==this.code?this.message="Too many open queries.  Please complete some\nqueries by using |Next|, |Stop| or by\nclosing some queries.":"string"==typeof this.data?this.message=this.data.replace(new RegExp("'"+this.pengine.id+"':","g"),""):this.message="Unknown error",t.prologRunner("error",this),t.prologRunner("setState","error")}function handleAbort(){var t=this.pengine.options.runner;t.data("prologRunner")?(t.prologRunner("error","** Execution aborted **"),t.prologRunner("setState","aborted")):this.pengine.destroy()}function handlePing(){this.pengine.options.runner.prologRunner("ping",this.data)}function answerHasOutput(t){return t.variables.length>0||t.residuals}function termNoFullStop(t){return String($.trim(t)).replace(/\.$/,"")}var pluginName="prologRunner",keyBindings={59:"next",186:"next",32:"next",190:"stop",13:"stop",65:"stopOrAbort",27:"stopOrAbort",46:"close",112:"help"},methods={_init:function(t){return this.each(function(){function e(t,e,i,r){var o=$.el.button({title:e,class:"rtb-"+i},$.el.span({class:"glyphicon glyphicon-"+t}));return $(o).on("click",function(){n.prologRunner(i)}),0==r&&$(o).hide(),o}var n=$(this),i={};if(n.addClass("prolog-runner panel panel-default"),t.tabled&&n.addClass("tabled"),0!=t.title){var r=$.el.span({class:"query cm-s-prolog"});CodeMirror.runMode(t.query,"prolog",r),n.append($.el.div({class:"runner-title panel-heading"},e("remove-circle","Close","close"),e("minus","Iconify","toggleIconic"),e("download","Download CSV","downloadCSV"),e("link","Permalink","permalink",!1),function(){var t=$.el.span({class:"runner-state show-state idle"});return form.widgets.dropdownButton(t)}(),r,$.el.br({clear:"all"})))}else n.append($.el.div({class:"runner-title runner-button-group"},e("remove-circle","Close","close"),e("minus","Iconify","toggleIconic"),e("download","Download CSV","downloadCSV"),e("link","Permalink","permalink",!1)));return t.chunk&&(i.chunk=t.chunk),n.append($.el.div({class:"runner-results panel-body"})),n.append(function(){function t(){n.prologRunner("next",1)}function e(){n.prologRunner("next",10)}function r(){n.prologRunner("next",100)}function o(){n.prologRunner("next",1e3)}function a(){i.prolog.stop()}function s(){i.prolog.abort()}function l(t,e){var n=$.el.button(e);return $(n).on("click",t),n}var c=function(){var t=$.el.input({class:"prolog-input"}),e=$.el.button("Send");return $(t).keypress(function(e){if(13==e.which&&n.prologRunner("respond",$(t).val()))return $(t).val(""),e.preventDefault(),!1;"Esc"!=e.key&&e.stopPropagation()}),$(e).on("click",function(){n.prologRunner("respond",$(t).val())}),{input:t,button:e}}();return $.el.div({class:"controller show-state"},$.el.span({class:"running"},l(s,"Abort")),$.el.span({class:"wait-next"},l(t,"Next"),l(e,"10"),l(r,"100"),l(o,"1,000")," ",l(a,"Stop")),$.el.span({class:"wait-input"},l(s,"Abort"),c.button,$.el.span(c.input)),function(){return $.el.span({class:"sparklines"},"")}())}()),n.data("prologRunner",i),n.prologRunner("populateActionMenu"),n.keydown(function(t){"wait-input"==n.prologRunner("getState")||t.ctrlKey||t.altKey||keyBindings[t.which]&&(t.preventDefault(),n.prologRunner(keyBindings[t.which]))}),n.on("click","a",links.followLink),i.savedFocus=document.activeElement,n.attr("tabindex",-1),n.focus(),i.query=t,i.answers=0,n.prologRunner("setScreenDimensions"),require([config.http.locations.pengines+"/pengines.js"],function(){i.prolog=new Pengine({server:config.http.locations.pengines,runner:n,application:"swish",src:t.source,destroy:!1,format:"json-html",oncreate:handleCreate,onsuccess:handleSuccess,onfailure:handleFailure,onstop:handleStop,onprompt:handlePrompt,onoutput:handleOutput,onping:handlePing,onerror:handleError,onabort:handleAbort}),i.prolog.state="idle",config.swish.ping&&void 0!=i.prolog.ping&&i.prolog.ping(1e3*config.swish.ping)}),this})},setScreenDimensions:function(){var t,e,n=this.data(pluginName),i=$.el.pre({class:"measure"},"xxxxxxxxxx"),r=this.width();e=this.closest(".prolog-runners"),0==e.length&&(e=this.closest(".nb-view")),e.length&&(t=e.height()),this.append(i);var o=$(i).width()/10,a=$(i).height();$(i).remove(),n.screen={width:r,cols:Math.floor(r/o)},void 0!==t&&(n.screen.height=t,n.screen.rows=Math.floor(t/a))},renderAnswer:function(t){var e=this.data("prologRunner"),n=++e.answers%2==0,i=function(t){for(var e={},n=t.variables,i=t.projection,r=0;r<n.length;r++)for(var o=n[r].variables,a=0;a<o.length;a++)if(o[a].startsWith("_swish__")){var s=o[a].replace("_swish__","");e[s]=n[r].value,n.splice(r,1),r--}if(i)for(var r=0;r<i.length;r++)i[r].startsWith("_swish__")&&(i.splice(r,1),r--);return e}(t);if(i.permahash&&(e.permahash=$(i.permahash).text().replace(/'/g,""),this.find(".rtb-permalink").show({duration:400})),e.query.tabled){if(1!=e.answers)return t.projection=e.projection,t.nth=e.answers,$(e.table).prologAnswer(t),this;if(t.projection&&t.projection.length>0){var r=answerTable(t.projection);return addAnswer(this,r),e.table=r,e.projection=t.projection,t.nth=e.answers,$(e.table).prologAnswer(t),this}}var o=$.el.div({class:"answer "+(n?"even":"odd")},$.el.span({class:"answer-no"},e.answers));addAnswer(this,o),$(o).prologAnswer(t)},outputHTML:function(t){var e=$.el.span({class:"output"});return addAnswer(this,e),e.innerHTML=t,runScripts(e),e},downloadButton:function(t){var e=$.el.a({class:"download"});addAnswer(this,e),$(e).downloader(t)},syntaxError:function(t){var e=this.data(pluginName);return t.data='<pre class="output msg-error">'+t.message+"</pre>",t.location.file=!0,$(e.query.query_editor).prologEditor("highlightError",t),this},error:function(t){var e;if("object"==typeof t){if("died"==t.code)return addAnswer(this,$.el.div({class:"RIP",title:"Remote pengine timed out"})),this;if("syntax_error"==t.code){var n=t.message.match(/^HTTP:DATA:(\d+):(\d+):\s*(.*)/);n&&4==n.length&&(this.prologRunner("syntaxError",{location:{line:parseInt(n[1])-1,ch:parseInt(n[2])},message:n[3]}),e="Cannot run query due to a syntax error (check query window)")}e||(e=t.message)}else e=t;return addAnswer(this,$.el.pre({class:"prolog-message msg-error"},e)),this},trace:function(t){function e(e,n,i){var r=$.el.button({class:n,title:e},$.el.span(e));return $(r).on("click",function(e){void 0!==i&&(n+="("+Pengine.stringify(i(e))+")"),t.pengine.respond(n),$(e.target).parent().remove()}),r}var n=$.el.span({class:"goal"}),i=t.data;$(n).html(i.goal),addAnswer(this,$.el.div({class:"prolog-trace"},$.el.span({class:"depth",style:"width:"+(5*i.depth-1)+"px"}," "),$.el.span({class:"port "+i.port},function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i.port),":"),n)),"exception"==i.port&&addAnswer(this,$.el.div({class:"prolog-exception"
-},i.exception.message)),addAnswer(this,$.el.div({class:"trace-buttons"},e("Continue","nodebug",function(t){return breakpoints($(t.target).closest(".prolog-runner"))}),e("Step into","continue"),e("Step over","skip"),e("Step out","up"),e("Retry","retry"),e("Abort","abort"))),this.closest(".swish").find(".tabbed").trigger("trace-location",i),this.prologRunner("setState","wait-debug")},setPrompt:function(t){this.find(".controller input").attr("placeholder",t)},jQuery:function(t){var e,n=t.data;if("string"==typeof n.selector)e=$(n.selector);else if("object"==typeof n.selector){switch(n.selector.root){case"this":root=this;break;case"swish":root=this.closest(".swish")}e=""==n.selector.sub?root:root.find(n.selector.sub)}console.log(e);var i=e[n.method].apply(e,n.arguments);console.log(i),t.pengine.respond(Pengine.stringify(i))},form:function(t){var e=this.data("prologRunner");modal.show({title:"Please enter parameters",body:function(){this.html(t.data.html),this.find("[data-search-in]").search({search:!1}),this.on("click","button[data-action]",function(t){var n=$(t.target).closest("button"),i=n.data("action");if("run"==i){var r=$(t.target).closest("form"),o=form.serializeAsObject(r,!0),a=Pengine.stringify(o);e.prolog.respond(a)}else"cancel"==i&&e.prolog.respond("cancel");return n.closest(".modal").modal("hide"),t.preventDefault(),!1})}})},respond:function(t){var e=this.data("prologRunner");if("term"==e.wait_for){if(s=termNoFullStop(t),""==s)return null}else s=Pengine.stringify(t+"\n");return addAnswer(this,$.el.div({class:"response"},t)),e.prolog.respond(s),this},stop:function(){return this.each(function(){$(this).data("prologRunner").prolog.stop()})},stopOrAbort:function(){return this.each(function(){var t=$(this),e=t.data("prologRunner");switch(t.prologRunner("getState")){case"running":case"wait-input":e.prolog.abort();break;case"wait-next":e.prolog.stop()}})},next:function(t){return this.each(function(){var e=$(this);e.data("prologRunner").prolog.next(t),e.prologRunner("setState","running")})},abort:function(){return this.each(function(){$(this).data("prologRunner").prolog.abort()})},close:function(){if(this.length){var t=this.parent();this.each(function(){var t=$(this),e=t.data("prologRunner");t.prologRunner("alive")&&($(".prolog-editor").trigger("pengine-died",e.prolog.id),e.prolog.abort(),t.prologRunner("setState","aborted"))}),this.remove(),t.trigger("scroll-to-bottom",!0)}return this},help:function(){$(".swish-event-receiver").trigger("help",{file:"runner.html"})},toggleIconic:function(t){return void 0==t?this.toggleClass("iconic"):t?this.addClass("iconic"):this.removeClass("iconic"),this.trigger("scroll-to-bottom",!0),this},populateActionMenu:function(t){var e=this.find(".runner-title .btn-group.dropdown");return t=$.extend({"Re-run":function(){console.log("Re-Run ",this)}},t),form.widgets.populateMenu(e,this,t),this},downloadCSV:function(t){var e=this.data("prologRunner"),n=termNoFullStop(e.query.query);return prolog.downloadCSV(n,e.query.source,t),this},permalink:function(){function t(){this.append($.el.form({class:"form-horizontal"},form.fields.hidden("identity",r.identity),r.identity?void 0:form.fields.hidden("avatar",r.avatar),form.fields.link(i),form.fields.fileName(null,!1),form.fields.title(),form.fields.description(),form.fields.tags([]),form.fields.author(o,r.identity),form.fields.buttons({label:"Save permalink",action:function(t,n){return e.prologRunner("save_permalink",n),!1}})))}var e=this,n=this.data("prologRunner");if(n.permahash){var i=config.http.locations.permalink+n.permahash;i=location.protocol+"//"+location.host+i;var r=$("#login").login("get_profile",["display_name","avatar","email","identity"]),o=r.display_name;form.showDialog({title:"Save permalink",body:t})}else modal.alert("No permahash");return this},save_permalink:function(t){var e=this,n=this.data("prologRunner"),i={data:n.permahash,type:"lnk",meta:t};return delete i.meta.link,$.ajax({url:config.http.locations.web_storage,dataType:"json",contentType:"application/json",type:"POST",data:JSON.stringify(i),success:function(t){t.error?modal.alert(errorString("Could not save",t)):modal.feedback({html:"Saved",owner:e})},error:function(t,e,n){403==t.status?modal.alert("Permission denied.  Please try a different name"):alert("Save failed: "+e)}}),this},setState:function(t){var e=this.data("prologRunner");if(e){if(e.prolog.state!=t){var n=this.find(".show-state"),i=e.query;n.removeClass(e.prolog.state).addClass(t),e.prolog.state=t,!aliveState(t)&&e.savedFocus?($(e.savedFocus).focus(),e.savedFocus=null):"wait-input"==t&&this.find("input").focus(),"true"==t&&i.success&&i.success.call(this,e.prolog),!aliveState(t)&&i.complete&&i.complete.call(this,e.prolog)}RS(this);if(aliveState(t))if("wait-next"==t||"true"==t){var r=this;setTimeout(function(){r.trigger("scroll-to-bottom")},100)}else this.trigger("scroll-to-bottom");else{var r=this;$(".prolog-editor").trigger("pengine-died",e.prolog.id),e.prolog.destroy(),setTimeout(function(){r.trigger("scroll-to-bottom")},100)}return this}},getState:function(){var t=this.data("prologRunner");return t.prolog?t.prolog.state:"idle"},alive:function(){return aliveState(this.prologRunner("getState"))},ping:function(t){function e(t,e){var n=Math.round(Math.pow(10,e)/1e4*t);return function(t){t=t.toString();for(var e=/(-?\d+)(\d{3})/;e.test(t);)t=t.replace(e,"$1,$2");return t}(n)}var n=this.data("prologRunner");if(n&&n.prolog&&"running"==n.prolog.state){var r=this.find(".sparklines"),o=["global","local","trail"],a=["red","blue","green"],s=["Global ","Local ","Trail "];for(n.stacks||(n.stacks={global:{usage:[]},local:{usage:[]},trail:{usage:[]}}),i=0;i<o.length;i++){var l=o[i],c=t.stacks[l].limit,u=t.stacks[l].usage,h=Math.log10(u/c*1e4);n.stacks[l].limit=c,n.stacks[l].usage.length>=10&&(n.stacks[l].usage=n.stacks[l].usage.slice(1)),n.stacks[l].usage.push(h),r.sparkline(n.stacks[l].usage,{height:"2em",composite:i>0,chartRangeMin:0,chartRangeMax:4,lineColor:a[i],tooltipPrefix:s[i],tooltipSuffix:" bytes",tooltipChartTitle:0==i?"Stack usage":void 0,numberFormatter:function(t){return e(c,t)}})}}}},node_id=1;Node.prototype.node=function(){return $(this.my_node)},Node.prototype.unique_id=function(){return this.uid||(this.uid=node_id++),this.uid},$.fn.prologRunner=function(t){return methods[t]?methods[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void $.error("Method "+t+" does not exist on jQuery."+pluginName):methods._init.apply(this,arguments)}}(jQuery)}),define("gitty",["jquery","config","form","modal","laconic"],function(t,e,n,i){function r(e,n){function i(t){(e[t]||n[t])&&e[t]!=n[t]&&(r[t]={from:e[t],to:n[t]})}var r={};return i("author"),i("title"),i("data"),i("public"),i("example"),i("name"),(d=a(e.tags,n.tags))&&(r.tags=d),t.isEmptyObject(r)?null:r}function o(e,n){var i={};for(var r in e)if(e.hasOwnProperty(r)){switch(typeof e[r]){case"object":if(t.isArray(e[r])&&!a(e[r],n[r]))continue;break;case"string":case"boolean":if(n[r]==e[r])continue}i[r]=e[r]}return i}function a(e,n){function i(t,e){for(var n=[],i=0;i<e.length;i++)t.indexOf(e[i])<0&&n.push(e[i]);return n}var r,o={};return e=e||[],n=n||[],(r=i(e,n)).length>0&&(o.added=r),(r=i(n,e)).length>0&&(o.deleted=r),t.isEmptyObject(o)?null:o}return function(t){var o={_init:function(e){return this.each(function(){function n(e,n,i,r){var o={role:"presentation"},a=[];return n&&a.push("active"),r&&a.push("disabled"),a!=[]&&(o.class=a.join(" ")),t.el.li(o,t.el.a({href:"#"+i,"data-toggle":"tab"},e))}var i,r=t(this),o=r.data("gitty")||{},a=e.meta;o.commits=[],o.commits[a.commit]=a,o.commit=a.commit,o.editor=e.editor,henabled=!Boolean(a.previous),i=t(t.el.div({class:"tab-content"})),r.append(t.el.ul({class:"nav nav-tabs"},n("Meta data",!0,"gitty-meta-data"),n("History",!1,"gitty-history",henabled),n("Changes",!1,"gitty-diff",henabled))),r.append(i),i.append(t.el.div({class:"tab-pane fade in active gitty-meta-data",id:"gitty-meta-data"})),r.find('[href="#gitty-meta-data"]').on("show.bs.tab",function(t){r.gitty("showMetaData")}),i.append(t.el.div({class:"tab-pane fade gitty-history",id:"gitty-history"})),r.find('[href="#gitty-history"]').on("show.bs.tab",function(t){r.gitty("showHistory")}),i.append(t.el.div({class:"tab-pane fade gitty-diff",id:"gitty-diff"})),r.find('[href="#gitty-diff"]').on("show.bs.tab",function(t){r.gitty("showDiff")}),r.data("gitty",o),r.gitty("showMetaData")})},title:function(e){var n=t.el.span("File ",t.el.span({class:"filename"},e.name));return"HEAD"!=e.symbolic&&e.commit&&t(n).append("@",t.el.span({class:"sha1 abbrev"},e.commit.substring(0,7))),n},showMetaData:function(){return this.each(function(){var e,i=t(this),r=i.data("gitty"),o=i.find(".gitty-meta-data"),a=r.commits[r.commit];r.metaData!=r.commit&&(r.metaData=r.commit,o.html(""),e=t.el.form({class:"form-horizontal"},n.fields.fileName(a.name,a.public,a.example,!0),n.fields.title(a.title),n.fields.author(a.author),n.fields.date(a.time,"Date","date"),n.fields.tags(a.tags)),"HEAD"==a.symbolic&&t(e).append(n.fields.buttons({label:"Update meta data",action:function(t,e){return r.editor.storage("save",e,"only-meta-data"),!1}})),o.append(e))})},showHistory:function(){return this.each(function(){var r,o=t(this),a=o.data("gitty"),s=o.find(".gitty-history"),l=a.commits[a.commit];if(!a.history){s.html(""),s.append(t.el.table({class:"table table-striped table-condensed gitty-history","data-click-to-select":!0,"data-single-select":!0},t.el.tr(t.el.th("Comment"),t.el.th("Date"),t.el.th("User"),t.el.th("Changed")),t.el.tbody())),r=n.widgets.glyphIconButton("play",{title:"Open the highlighted version in SWISH",class:"btn-primary"}),s.append(r),t(r).on("click",function(e){var n=o.find("tr.success");if(1==n.length){var i=n.data("commit");"HEAD"==a.commits[i].symbolic?file=a.commits[i].name:file=i,o.parents(".swish").swish("playFile",file),t("#ajaxModal").modal("hide")}return!1});var c=e.http.locations.web_storage+encodeURI(l.name);t.ajax({url:c,contentType:"application/json",type:"GET",data:{format:"history",depth:6,to:a.commit},success:function(t){o.gitty("fillHistoryTable",t),a.history=a.commit},error:function(t){i.ajaxError(jqXHR)}})}})},fillHistoryTable:function(e){for(var n=this,i=this.data("gitty"),o=this.find(".table.gitty-history tbody"),a=0;a<e.length;a++){var s=e[a];i.commits[s.commit]||(i.commits[s.commit]=s)}for(var a=0;a<e.length;a++){var l,s=e[a];if(a==e.length-1&&s.previous&&!i.commit[s.previous])break;var c={"data-commit":s.commit};i.commit==s.commit&&(c.class="success"),l=t.el.tr(c,t.el.td({class:"commit-message"},s.commit_message||"No comment"),t.el.td({class:"date"},new Date(1e3*s.time).toLocaleString()),t.el.td({class:"author"},s.author||"No author"),t.el.td({class:"changes"},function(e){var n,o,a=t.el.span();if(e.previous){if((n=i.commits[e.previous])&&(o=r(e,n))){var s=0;for(var l in o)if(o.hasOwnProperty(l)){var c="name"==l?"forked "+n.name:l;t(a).append(0==s++?void 0:", ",t.el.span({class:"change-type"},c))}}}else t(a).append("initial");return a}(s))),o.append(l)}o.on("click","tr",function(e){var i=t(e.target).parents("tr"),r=i.data("commit");n.gitty("setCommit",r)})},setCommit:function(t){var e=this.data("gitty"),n=this.parent(".modal-content").find("h2");return n.html(""),n.append(this.gitty("title",e.commits[t])),this.find("tr.success").removeClass("success"),this.find("tr[data-commit="+t+"]").addClass("success"),e.commit=t,this},showDiff:function(){return this.each(function(){var n=t(this),r=n.data("gitty");if(r.diff!=r.commit){n.find(".gitty-diff").html("");var o=e.http.locations.web_storage+encodeURI(r.commit);t.ajax({url:o,contentType:"application/json",type:"GET",data:{format:"diff"},success:function(t){n.gitty("fillDiff",t),r.diff=r.commit},error:function(t){i.ajaxError(t)}})}})},fillDiff:function(t){t.tags&&this.gitty("diffTags",t.tags),t.data&&this.gitty("udiffData",t.data)},diffTags:function(e){function n(e,n){o.append(t.el.span({class:"diff-tag "+n},e))}var i=this.find(".gitty-diff"),r=t(t.el.div({class:"diff-tags"},t.el.label("Tags"))),o=t(t.el.span({class:"diff-tags"}));if(r.append(o),e.deleted.length){o.append("Removed: ");for(var a=0;a<e.deleted.length;a++)n(e.deleted[a],"deleted")}if(e.added.length){o.append(e.deleted.length?", ":"","Added: ");for(var a=0;a<e.added.length;a++)n(e.added[a],"added")}return i.append(r),this},udiffData:function(e){for(var n=this.find(".gitty-diff"),i=e.split("\n"),r=t(t.el.pre({class:"udiff"})),o=0;o<i.length;o++){var a=i[o],s={"@":"udiff-hdr"," ":"udiff-ctx","+":"udiff-add","-":"udiff-del"};r.append(t.el.span({class:s[a.charAt(0)]},a),t.el.br())}n.append(r)}};t.fn.gitty=function(e){return o[e]?o[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.gitty"):o._init.apply(this,arguments)}}(jQuery),{diffMeta:r,reduceMeta:o,diffTags:a}});var __whitespace={" ":!0,"\t":!0,"\n":!0,"\f":!0,"\r":!0},difflib={defaultJunkFunction:function(t){return __whitespace.hasOwnProperty(t)},stripLinebreaks:function(t){return t.replace(/^[\n\r]*|[\n\r]*$/g,"")},stringAsLines:function(t){for(var e=t.indexOf("\n"),n=t.indexOf("\r"),i=e>-1&&n>-1||n<0?"\n":"\r",r=t.split(i),o=0;o<r.length;o++)r[o]=difflib.stripLinebreaks(r[o]);return r},__reduce:function(t,e,n){if(null!=n)var i=n,r=0;else{if(!e)return null;var i=e[0],r=1}for(;r<e.length;r++)i=t(i,e[r]);return i},__ntuplecomp:function(t,e){for(var n=Math.max(t.length,e.length),i=0;i<n;i++){if(t[i]<e[i])return-1;if(t[i]>e[i])return 1}return t.length==e.length?0:t.length<e.length?-1:1},__calculate_ratio:function(t,e){return e?2*t/e:1},__isindict:function(t){return function(e){return t.hasOwnProperty(e)}},__dictget:function(t,e,n){return t.hasOwnProperty(e)?t[e]:n},SequenceMatcher:function(t,e,n){this.set_seqs=function(t,e){this.set_seq1(t),this.set_seq2(e)},this.set_seq1=function(t){t!=this.a&&(this.a=t,this.matching_blocks=this.opcodes=null)},this.set_seq2=function(t){t!=this.b&&(this.b=t,this.matching_blocks=this.opcodes=this.fullbcount=null,this.__chain_b())},this.__chain_b=function(){for(var t=this.b,e=t.length,n=this.b2j={},i={},r=0;r<t.length;r++){var o=t[r];if(n.hasOwnProperty(o)){var a=n[o];e>=200&&100*a.length>e?(i[o]=1,delete n[o]):a.push(r)}else n[o]=[r]}for(var o in i)i.hasOwnProperty(o)&&delete n[o];var s=this.isjunk,l={};if(s){for(var o in i)i.hasOwnProperty(o)&&s(o)&&(l[o]=1,delete i[o]);for(var o in n)n.hasOwnProperty(o)&&s(o)&&(l[o]=1,delete n[o])}this.isbjunk=difflib.__isindict(l),this.isbpopular=difflib.__isindict(i)},this.find_longest_match=function(t,e,n,i){for(var r,o=this.a,a=this.b,s=this.b2j,l=this.isbjunk,c=t,u=n,h=0,d=null,f={},p=[],g=t;g<e;g++){var m={},v=difflib.__dictget(s,o[g],p);for(var y in v)if(v.hasOwnProperty(y)){if((d=v[y])<n)continue;if(d>=i)break;m[d]=r=difflib.__dictget(f,d-1,0)+1,r>h&&(c=g-r+1,u=d-r+1,h=r)}f=m}for(;c>t&&u>n&&!l(a[u-1])&&o[c-1]==a[u-1];)c--,u--,h++;for(;c+h<e&&u+h<i&&!l(a[u+h])&&o[c+h]==a[u+h];)h++;for(;c>t&&u>n&&l(a[u-1])&&o[c-1]==a[u-1];)c--,u--,h++;for(;c+h<e&&u+h<i&&l(a[u+h])&&o[c+h]==a[u+h];)h++;return[c,u,h]},this.get_matching_blocks=function(){if(null!=this.matching_blocks)return this.matching_blocks;for(var t,e,n,i,r,o,a,s,l,c=this.a.length,u=this.b.length,h=[[0,c,0,u]],d=[];h.length;)r=h.pop(),t=r[0],e=r[1],n=r[2],i=r[3],l=this.find_longest_match(t,e,n,i),o=l[0],a=l[1],(s=l[2])&&(d.push(l),t<o&&n<a&&h.push([t,o,n,a]),o+s<e&&a+s<i&&h.push([o+s,e,a+s,i]));d.sort(difflib.__ntuplecomp);var f,p,g,m=0,v=0,y=0,x=0,b=[];for(var w in d)d.hasOwnProperty(w)&&(x=d[w],f=x[0],p=x[1],g=x[2],m+y==f&&v+y==p?y+=g:(y&&b.push([m,v,y]),m=f,v=p,y=g));return y&&b.push([m,v,y]),b.push([c,u,0]),this.matching_blocks=b,this.matching_blocks},this.get_opcodes=function(){if(null!=this.opcodes)return this.opcodes;var t=0,e=0,n=[];this.opcodes=n;var i,r,o,a,s,l=this.get_matching_blocks();for(var c in l)l.hasOwnProperty(c)&&(i=l[c],r=i[0],o=i[1],a=i[2],s="",t<r&&e<o?s="replace":t<r?s="delete":e<o&&(s="insert"),s&&n.push([s,t,r,e,o]),t=r+a,e=o+a,a&&n.push(["equal",r,t,o,e]));return n},this.get_grouped_opcodes=function(t){t||(t=3);var e=this.get_opcodes();e||(e=[["equal",0,1,0,1]]);var n,i,r,o,a,s;"equal"==e[0][0]&&(n=e[0],i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],e[0]=[i,Math.max(r,o-t),o,Math.max(a,s-t),s]),"equal"==e[e.length-1][0]&&(n=e[e.length-1],i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],e[e.length-1]=[i,r,Math.min(o,r+t),a,Math.min(s,a+t)]);var l=t+t,c=[],u=[];for(var h in e)e.hasOwnProperty(h)&&(n=e[h],i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],"equal"==i&&o-r>l&&(c.push([i,r,Math.min(o,r+t),a,Math.min(s,a+t)]),u.push(c),c=[],r=Math.max(r,o-t),a=Math.max(a,s-t)),c.push([i,r,o,a,s]));return!c||1==c.length&&"equal"==c[0][0]||u.push(c),u},this.ratio=function(){return matches=difflib.__reduce(function(t,e){return t+e[e.length-1]},this.get_matching_blocks(),0),difflib.__calculate_ratio(matches,this.a.length+this.b.length)},this.quick_ratio=function(){var t,e;if(null==this.fullbcount){this.fullbcount=t={};for(var n=0;n<this.b.length;n++)e=this.b[n],t[e]=difflib.__dictget(t,e,0)+1}t=this.fullbcount;for(var i={},r=difflib.__isindict(i),o=numb=0,n=0;n<this.a.length;n++)e=this.a[n],r(e)?numb=i[e]:numb=difflib.__dictget(t,e,0),i[e]=numb-1,numb>0&&o++;return difflib.__calculate_ratio(o,this.a.length+this.b.length)},this.real_quick_ratio=function(){var t=this.a.length,e=this.b.length;return _calculate_ratio(Math.min(t,e),t+e)},this.isjunk=n||difflib.defaultJunkFunction,this.a=this.b=null,this.set_seqs(t,e)}};define("difflib",function(){}),diffview={buildView:function(t){function e(t,e){var n=document.createElement(t);return n.className=e,n}function n(t,e){var n=document.createElement(t);return n.appendChild(document.createTextNode(e)),n}function i(t,e,n){var i=document.createElement(t);return i.className=e,i.appendChild(document.createTextNode(n)),i}function r(t,r,o,a,s){return r<o?(t.appendChild(n("th",(r+1).toString())),t.appendChild(i("td",s,a[r].replace(/\t/g,"    "))),r+1):(t.appendChild(document.createElement("th")),t.appendChild(e("td","empty")),r)}function o(t,e,r,o,a){t.appendChild(n("th",null==e?"":(e+1).toString())),t.appendChild(n("th",null==r?"":(r+1).toString())),t.appendChild(i("td",a,o[null!=e?e:r].replace(/\t/g,"    ")))}var a=t.baseTextLines,s=t.newTextLines,l=t.opcodes,c=t.baseTextName?t.baseTextName:"Base Text",u=t.newTextName?t.newTextName:"New Text",h=t.contextSize,d=0==t.viewType||1==t.viewType?t.viewType:0;if(null==a)throw"Cannot build diff view; baseTextLines is not defined.";if(null==s)throw"Cannot build diff view; newTextLines is not defined.";if(!l)throw"Canno build diff view; opcodes is not defined.";var f=document.createElement("thead"),p=document.createElement("tr");f.appendChild(p),d?(p.appendChild(document.createElement("th")),p.appendChild(document.createElement("th")),p.appendChild(i("th","texttitle",c+" vs. "+u))):(p.appendChild(document.createElement("th")),p.appendChild(i("th","texttitle",c)),p.appendChild(document.createElement("th")),p.appendChild(i("th","texttitle",u))),f=[f];for(var g,m=[],v=0;v<l.length;v++){code=l[v],change=code[0];for(var y=code[1],x=code[2],b=code[3],w=code[4],_=Math.max(x-y,w-b),S=[],C=[],T=0;T<_;T++){if(h&&l.length>1&&(v>0&&T==h||0==v&&0==T)&&"equal"==change){var k=_-(0==v?1:2)*h;if(k>1){if(S.push(p=document.createElement("tr")),y+=k,b+=k,T+=k-1,p.appendChild(n("th","...")),d||p.appendChild(i("td","skip","")),p.appendChild(n("th","...")),p.appendChild(i("td","skip","")),v+1==l.length)break;continue}}S.push(p=document.createElement("tr")),d?"insert"==change?o(p,null,b++,s,change):"replace"==change?(C.push(g=document.createElement("tr")),y<x&&o(p,y++,null,a,"delete"),b<w&&o(g,null,b++,s,"insert")):"delete"==change?o(p,y++,null,a,change):o(p,y++,b++,a,change):(y=r(p,y,x,a,change),b=r(p,b,w,s,change))}for(var T=0;T<S.length;T++)m.push(S[T]);for(var T=0;T<C.length;T++)m.push(C[T])}m.push(p=i("th","author","diff view generated by ")),p.setAttribute("colspan",d?3:4),p.appendChild(g=n("a","jsdifflib")),g.setAttribute("href","http://github.com/cemerick/jsdifflib"),f.push(p=document.createElement("tbody"));for(var v in m)m.hasOwnProperty(v)&&p.appendChild(m[v]);p=e("table","diff"+(d?" inlinediff":""));for(var v in f)f.hasOwnProperty(v)&&p.appendChild(f[v]);return p}},define("diffview",function(){}),define("diff",["jquery","difflib","diffview"],function(){!function(t){var e={_init:function(e){return this.each(function(){var n=difflib.stringAsLines(e.base),i=difflib.stringAsLines(e.head),r=new difflib.SequenceMatcher(n,i),o=r.get_opcodes(),a=void 0==e.contextSize?3:e.contextSize;this.appendChild(diffview.buildView({baseTextLines:n,newTextLines:i,opcodes:o,baseTextName:e.baseName||"Base text",newTextName:e.headName||"Current text",contextSize:a,viewType:t("inline").checked?1:0}))})}};t.fn.diff=function(n){return e[n]?e[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.diff"):e._init.apply(this,arguments)}}(jQuery)}),define("storage",["jquery","config","modal","form","gitty","history","tabbed","utils","laconic","diff"],function(t,e,n,i,r,o,a,s){function l(t){return t?t.split(".").slice(0,-1).join("."):null}function c(e){if(e){for(var n=e.split("\n"),i=t(t.el.pre({class:"udiff"})),r=0;r<n.length;r++){var o=n[r],a={"@":"udiff-hdr"," ":"udiff-ctx","+":"udiff-add","-":"udiff-del"};i.append(t.el.span({class:a[o.charAt(0)]},o),t.el.br())}return i}return t(t.el.div({class:"udiff"},"No changes"))}function u(e){function n(e,n){r.append(t.el.span({class:n},e),t.el.br())}for(var i=e.split("\n"),r=t(t.el.pre({class:"udiff"})),o=null,a=0;a<i.length;a++){var s=i[a];"<<<<<<<"==s?(n(s,"edit-conflict-sep"),o="edit-conflict-me"):"edit-conflict-me"==o&&"======="==s?(n(s,"edit-conflict-sep"),o="edit-conflict-them"):"edit-conflict-them"==o&&">>>>>>>"==s?(n(s,"edit-conflict-sep"),o=null):o&&n(s,o)}return r}!function(t){function h(e,n){var i=t.el.table({class:"table table-striped"});t(i).append(t.el.tr(t.el.th("Path"),t.el.td(n.path))),t(i).append(t.el.tr(t.el.th("Modified"),t.el.td(new Date(1e3*n.last_modified).toLocaleString()))),t(i).append(t.el.tr(t.el.th("Loaded"),t.el.td(n.modified_since_loaded?"yes (modified)":n.loaded?"yes":"no"))),e.append(i)}function d(t,e){return"file_exists"==e.error?t+": file exists: "+e.file:JSON.stringify(e)}var f={typeName:"program",is_clean:!0,markClean:function(t){}},p={_init:function(e){return this.each(function(){function n(e,n){var i=t(e.target);if(i.hasClass("storage")&&i.is(":visible")){if("propagate"==i.storage.apply(i,Array.prototype.slice.call(arguments,1)))return}e.stopPropagation()}var i=t(this),r=t.extend({},f,e);i.data("storage",r),i.addClass("storage unloadable"),i.storage("update_tab_title"),i.on("save",function(t,e){n(t,"save",e)}),i.on("download",function(t){n(t,"download")}),i.on("fileInfo",function(t){n(t,"info")}),i.on("diff",function(t){n(t,"diff")}),i.on("revert",function(t){n(t,"revert")}),i.on("reload",function(t){n(t,"reload")}),i.on("chat-about-file",function(t){n(t,"chat")}),i.on("follow-file",function(t){n(t,"follow")}),i.on("activate-tab",function(t){}),i.on("data-is-clean",function(t,e){i.storage("markClean",e)}),i.on("fullscreen",function(t,e){e||i.storage("update_tab_title")}),i.on("unload",function(t,e){e.rc=i.storage("unload","beforeunload",t)}),i.storage("chat",(r.meta||{}).chat||"update")})},supportsType:function(t){var e=this.data("storage"),n=a.tabTypes[e.typeName];if("string"==typeof t&&(t={data:t}),t.meta&&t.meta.name||t.url){var i=t.meta&&t.meta.name?t.meta.name:t.url;if(a.type(i).typeName!=n.typeName)return!1}return!0},setSource:function(n){var i=this.data("storage");if("string"==typeof n&&(n={data:n}),this.storage("supportsType",n))return 0!=this.storage("unload","setSource")&&(n.meta?(i.file=n.meta.name,i.meta=n.meta,i.url=null,"HEAD"==n.meta.symbolic&&(n.url=e.http.locations.web_storage+n.meta.name)):(i.file=null,i.meta=null),i.url=n.url,i.st_type=n.st_type,i.chats=n.chats,i.setValue(n),i.cleanGeneration=i.changeGen(),i.cleanData=i.getValue(),i.cleanCheckpoint=n.cleanCheckpoint||"load",i.markClean(!0),this.storage("update_tab_title"),n.url||(n.url=e.http.locations.swish),n.noHistory||o.push({url:n.url,reason:"load"}),this.storage("chat",n.chat||(n.meta||{}).chat||"update"),t(".storage").storage("chat_status",!0),this)},is_clean:function(){var t=this.data("storage");return t.isClean(t.cleanGeneration)},setValue:function(t){var e=this.data("storage");return e.setValue(t),this.trigger("data-is-clean",e.isClean(e.cleanGeneration)),this},update_tab_title:function(e){return this.each(function(){var n=t(this),i=n.storage("docid");if("chats++"==e)n.tabbed("chats++",i);else{var r,o=n.data("storage"),c=o.file||o.url;c&&(r=a.type(c))||(r=a.tabTypes[o.typeName]);var u=l(s.basename(c))||r.label;i&&o.chats&&(o.chats.docid=i),n.tabbed("title",u,r.dataType),n.tabbed("chats",o.chats)}})},load:function(i){if(i){var r=this;this.data("storage");t.ajax({url:e.http.locations.web_storage+i,dataType:"text",success:function(t){r.storage("setSource",{data:t,meta:{name:i}})},error:function(t){n.ajaxError(jqXHR)}})}return this},revert:function(){var t=this.data("storage");return t.setValue(t.cleanData),t.cleanGeneration=t.changeGen(),t.markClean(!0),this},reload:function(i){var r=this,o=r.data("storage");i=i||o.file;var a=e.http.locations.web_storage+encodeURI(i);return t.ajax({url:a,type:"GET",data:{format:"json"},success:function(e){e.url=a,e.st_type="gitty",e.noHistory=!0,r.storage("setSource",e),t("#chat").trigger("send",{type:"reloaded",file:i,commit:e.meta.commit})},error:function(t){n.ajaxError(t)}}),this},save:function(i,s){var l,c=this.data("storage"),u=a.tabTypes[c.typeName],h=e.http.locations.web_storage,f="POST",p=this;if(("filesys"==c.st_type||"external"==c.st_type)&&c.url)return this.storage("saveURL");if("as"==i)return this.storage("saveAs"),this;if(!c.file||"only-meta-data"!=s&&(i&&i.default||i&&i.name!=c.file)||(h+=encodeURI(c.file),f="PUT"),"only-meta-data"==s){if(t.isEmptyObject(r.reduceMeta(i,c.meta)))return void alert("No change");l={update:"meta-data"}}else if("POST"==f)l={data:c.getValue(),type:u.dataType};else if(c.isClean(c.cleanGeneration)){if(null==r.diffTags(c.meta.tags,i.tags))return void alert("No change")}else l={data:c.getValue(),type:u.dataType};return i&&(l.meta=i),c.meta&&(l.previous=c.meta.commit),t.ajax({url:h,dataType:"json",contentType:"application/json",type:f,data:JSON.stringify(l),success:function(e){e.error?n.alert(d("Could not save",e)):(c.meta&&c.meta.example!=e.meta.example&&p.closest(".swish").trigger("examples-changed"),c.file=e.file,c.meta=e.meta,c.st_type="gitty",c.cleanGeneration=c.changeGen(),c.cleanData=c.getValue(),c.cleanCheckpoint="save",c.markClean(!0),n.feedback({html:"Saved",owner:p}),"POST"==f&&(c.chats={docid:p.storage("docid"),total:0}),p.storage("update_tab_title"),p.storage("chat",(c.meta||{}).chat||"update"),t(".storage").storage("chat_status",!0),o.push({url:e.url,reason:"save"}))},error:function(t,e,i){409==t.status?p.storage("resolveEditConflict",JSON.parse(t.responseText)):403==t.status?n.alert("Permission denied.  Please try a different name"):(alert('Save failed; click "ok" to try again'),p.storage("saveAs"))}}),this},saveAs:function(e){function n(){this.append(t.el.form({class:"form-horizontal"},i.fields.hidden("identity",d.identity),i.fields.hidden("default",s.default),i.fields.hidden("chat",s.chat),d.identity?void 0:i.fields.hidden("avatar",d.avatar),i.fields.fileName(u?null:o.file,s.public,s.example),i.fields.title(s.title),i.fields.author(f,d.identity),c?i.fields.commit_message():void 0,i.fields.tags(s.tags),i.fields.modify(p,r),i.fields.follow(d.email),i.fields.buttons({label:u?"Fork "+h.label:c?"Update "+h.label:"Save "+h.label,action:function(t,e){return l.storage("save",e),!1}})))}var r,o=this.data("storage"),s=o.meta||{},l=this,c=Boolean(o.file),u=o.meta&&"HEAD"!=s.symbolic&&!s.default,h=a.tabTypes[o.typeName],d=t("#login").login("get_profile",["display_name","avatar","email","identity"]),f=d.display_name,p=s.modify;return void 0===s.public&&(s.public=!0),d.identity?p||(p=["login","owner"]):p=["any","login","owner"],r=d.identity==s.identity||d.identity&&!(s.identity||s.user),e=e||{},i.showDialog({title:e.title?e.title:u?"Fork from "+s.commit.substring(0,7):c?"Save new version":"Save "+h.label+" as",body:n}),this},saveURL:function(){var e=this.data("storage"),i=e.getValue(),r=a.type(e.url)||{},o=this;return e.isClean(e.cleanGeneration)?(alert("No change"),this):(t.ajax({url:e.url,dataType:"json",contentType:r.contentType||"text/plain",type:"PUT",data:i,success:function(t){t.error?n.alert(d("Could not save",t)):(e.cleanGeneration=e.changeGen(),e.cleanData=e.getValue(),e.cleanCheckpoint="save",e.markClean(!0),n.feedback({html:"Saved",owner:o}))},error:function(t){if(403==t.status){var i=e.url;delete e.meta,delete e.st_type,delete e.url,o.storage("saveAs",{title:"<div class='warning'>Could not save to "+i+"</div> Save a copy as"})}else n.ajaxError(t)}}),this)},activate:function(){var t=this.data("storage");return t&&t.url&&o.push({url:t.url,reason:"activate"}),this},getState:function(e){var n={tabs:[]};return this.each(function(){var i,r=t(this),o=r.data("storage"),a=r.meta||{};if((o.file||o.url)&&o.isClean&&o.cleanGeneration){!a.name&&o.file&&(a.name=o.file);var s={file:a.name,st_type:o.st_type,url:o.url};r.storage("getActive")&&(s.active=!0),(i=r.storage("chatroom_size"))&&(s.chatroom=i),n.tabs.push(s),!e&&o.isClean(o.cleanGeneration)||(s.meta=a,s.data=o.getValue())}}),n},restoreLocal:function(t){var e,n=localStorage.getItem("$file$"+t);try{e=JSON.parse(n),"object"!=typeof e&&(e=void 0)}catch(t){e=void 0}e?this.storage("setSource",e):this.storage("reload",t)},resolveEditConflict:function(e){function n(){function n(e,n,i,r){var o={role:"presentation"},a=[];return n&&a.push("active"),r&&a.push("disabled"),a!=[]&&(o.class=a.join(" ")),t.el.li(o,t.el.a({href:"#"+i,"data-toggle":"tab"},e))}function i(e,n){tabs.append(t.el.div({class:"tab-pane fade "+e+" "+n,id:e})),o.find('[href="#'+e+'"]').on("show.bs.tab",function(t){o.storage(e)})}var o=t(this);o.addClass("edit-conflict"),tabs=t(t.el.div({class:"tab-content"})),o.append(t.el.ul({class:"nav nav-tabs"},n("My edits",!0,"merge-my-edits"),n("Their edits",!1,"merge-server-edits"),n("Conflicts",!1,"merge-conflicts"))),o.append(tabs),i("merge-my-edits","in active"),i("merge-server-edits",""),i("merge-conflicts",""),o.data("edit-conflict",e),o.storage("merge-my-edits"),o.append(r=t.el.div({class:"form-group"},t.el.button({name:"merge",class:"btn btn-primary"},"Merge"),t.el.button({name:"discard-my-edits",class:"btn btn-primary"},"Discard my changes"),t.el.button({name:"discard-server-edits",class:"btn btn-primary"},"Discard changes on server"),t.el.button({name:"cancel",class:"btn btn-danger","data-dismiss":"modal"},"Cancel"))),t(r).on("click","button",function(e){return o.storage("editConflictAction",t(e.target).attr("name")),t(e.target).parents(".modal").modal("hide"),e.preventDefault(),!1})}var r;return e.storage=this,i.showDialog({title:"Edit conflict",body:n}),this},"merge-my-edits":function(){var e=t(this).data("edit-conflict");t(this).find(".merge-my-edits").empty().append(c(e.edit.me.data))},"merge-server-edits":function(){var e=t(this).data("edit-conflict");t(this).find(".merge-server-edits").empty().append(c(e.edit.server.data))},"merge-conflicts":function(){var e=t(this).data("edit-conflict"),n=t(this).find(".merge-conflicts");n.empty(),0!=e.patch_status?n.append(u(e.merged)):n.html("No merge conflicts")},editConflictAction:function(e){var n=t(this).data("edit-conflict"),i=t(n.storage).data("storage");if("merge"==e)i.setValue(n.merged),i.meta.commit=n.edit.server.to.commit;else if("discard-my-edits"==e)t(n.storage).storage("reload");else if("discard-server-edits"==e){var i=t(n.storage).data("storage");i.meta.commit=n.edit.server.to.commit}},download:function(){var e=this.data("storage"),n=a.tabTypes[e.typeName],i=e.getValue(),r="data:text/plain;charset=UTF-8,"+encodeURIComponent(i),o=t.el.a({href:r,
-download:e.file||"swish."+n.dataType});return this.append(o),o.click(),t(o).remove(),this},getData:function(e){var n=[];return e=e||{},this.each(function(){function i(t){r.meta[t]&&(o[t]=r.meta[t])}var r=t(this).data("storage"),o={};if(o.type=r.st_type,r.url&&(o.url=r.url),r.meta&&(i("name"),i("path"),i("modified"),i("loaded"),i("modified_since_loaded"),i("module")),t(this).storage("getActive")&&(o.active=!0),!e.type||e.name&&e.name.split(".").pop()==e.type){if(e.data){var a=r.getValue();o.modified=a!=r.cleanData,(1==e.data||o.modified&&"if_modified"==e.data)&&(o.data=a)}n.push(o)}}),n},match:function(e){for(var n=0;n<this.length;n++){me=t(this[n]);var i=me.data("storage");if(e.file&&e.file==i.file)return me;if(e.url&&e.url==i.url)return me}},expose:function(t){var e=this.closest(".tab-pane");if(1==e.length){return e.closest(".tabbed").tabbed("show",e.attr("id")),t&&n.feedback({html:t,owner:this}),this}},info:function(){function e(){"gitty"==r.st_type?(r.editor=a,this.gitty(r)):"filesys"==r.st_type?h(this,o):r.st_type||this.append(t.el.p("The source is not associated with a file. ","Use ",t.el.b("Save ...")," to save the source with meta information."))}var n,r=this.data("storage"),o=r.meta||{},a=this;return n="gitty"==r.st_type?t().gitty("title",o):"filesys"==r.st_type?"File system -- "+s.basename(o.path):"external"==r.st_type?"External -- "+r.url:"Scratch source",i.showDialog({title:n,body:e}),this},diff:function(){function e(){var e=t.el.div(),i=n.getValue();if(this.append(e),i==n.cleanData)t(e).append(t.el.p("No changes"));else{var o,a=t.el.div({class:"btn-group diff",role:"group"},t.el.button({name:"close","data-dismiss":"modal",class:"btn btn-primary"},"Close"),o=t.el.button({name:"revert",class:"btn btn-danger","data-dismiss":"modal"},"Revert changes"));t(e).diff({base:n.cleanData,head:i,baseName:r[n.cleanCheckpoint]}),this.append(t.el.div({class:"wrapper text-center"},a)),t(o).on("click",function(e){t(".swish-event-receiver").trigger("revert")}),this.parents("div.modal-dialog").addClass("modal-wide")}}var n=this.data("storage"),r={load:"Loaded text",new:"New text",save:"Saved text"};return i.showDialog({title:"Changes since "+r[n.cleanCheckpoint],body:e}),this},getSelection:function(){if(this.hasClass("prolog-editor")){var t=this.prologEditor("getSelection");return t?t[0].selections:null}if(this.hasClass("notebook"))return this.notebook("getSelection");console.log("Don't know how to get selection from",this)},getSelectionLabel:function(t){function e(t){for(var e="",n=0;n<t.length;n++){var i=t[n];""!=e&&(e+=";"),e+="@L"+(i.from.line+1),i.to.line!=i.from.line&&(e+="-"+(i.to.line+1))}return e}if(t[0].selections){for(var n="",i=0;i<t.length;i++){var r=t[i];""!=n&&(n+=","),n+=(r.cell||"")+e(r.selections)}return n}return e(t)},restoreSelection:function(t){return this.hasClass("prolog-editor")?this.prologEditor("restoreSelection",t):this.hasClass("notebook")?this.notebook("restoreSelection",t):void console.log(t)},getActive:function(){return 1==t(this).closest(".tab-pane.active").length},docid:function(t,e){if(e=e||this.data("storage"),!t||t==e.st_type){var n=e.meta||{};if("gitty"==e.st_type)return"gitty:"+n.name;if("filesys"==e.st_type)return"filesys:"+n.path;if("external"==e.st_type)return"url:"+e.url}},chat:function(e){var i=this.data("storage"),r=this.storage("docid","gitty");if(r){var o=this.closest(".tab-pane").find(".chatroom");if(o.length>0)"update"==e?o.chatroom("docid",r,"close"):s.flash(o);else if("update"!=e){o=t(t.el.div({class:"chatroom"}));var a;a="number"==typeof e?e:"large"==e?80:20,o.chatroom({docid:r}),this.tile("split",o,"below",a,150).addClass("chat-container")}}else"update"==e?this.storage("close_chat"):i.st_type?n.alert("The chat facility is only available for user-saved files.<br>You can use the <b>Open hangout</b> menu from the top-right bell to access the hangout room."):n.alert("You can only chat about a saved document.<br>Please save your document and try again.");return this},close_chat:function(){this.closest(".chat-container").find(".chatroom").chatroom("close")},chatroom_size:function(){var t=this.closest(".tab-pane"),e=t.find(".chatroom");if(e.length>0){var n=t.height();return 0==n?20:Math.round(100*e.height()/n)}return!1},chat_message:function(e){return e.displayed||0!=e.create?this.each(function(){var n=t(this);if(e.docid==n.storage("docid")){var i=n.data("storage");i.chats?(void 0!=i.chats.total&&i.chats.total++,void 0!=i.chats.count&&i.chats.count++):i.chats={total:1},n.storage("update_tab_title","chats++")}}):this},follow:function(){var t=this.storage("docid","gitty");t?n.server_form({title:"Follow file options",url:e.http.locations.follow_file_options,data:{docid:t}}):n.alert("Sorry, can only follow files")},unload:function(t,e){var n=this.data("storage");if(n&&(n.meta&&o.addRecent({st_type:"gitty",id:n.meta.name}),n.cleanData&&n.getValue&&n.cleanData!=n.getValue())){if("beforeunload"==t){var i="The source editor has unsaved changes.\nThese will be lost if you leave the page";return e=e||window.event,e&&(e.returnValue=i),i}var i="The source editor has unsaved changes.\nThese will be lost"+("setSource"==t?" if you load a new program":"closetab"==t?" close this tab":"");return confirm(i)}},close:function(){},markClean:function(t){this.data("storage").is_clean=t},chat_status:function(e){var n=[];this.each(function(){var e=t(this).data("storage");if("gitty"==e.st_type&&e.meta&&e.meta.name){var i={file:e.meta.name};e.is_clean||(i.modified=!0),t(this).is(":visible")&&(i.visible=!0),n.push(i)}}),(e||n.length>0)&&t("#chat").trigger("send",{type:"has-open-files",files:n})}};t.fn.storage=function(e){return p[e]?p[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.storage"):p._init.apply(this,arguments)}}(jQuery)}),function(){"use strict";function Sha1(t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}var root="object"==typeof window?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(t){return function(e){return new Sha1(!0).update(e)[t]()}},createMethod=function(){var t=createOutputMethod("hex");NODE_JS&&(t=nodeWrap(t)),t.create=function(){return new Sha1},t.update=function(e){return t.create().update(e)};for(var e=0;e<OUTPUT_TYPES.length;++e){var n=OUTPUT_TYPES[e];t[n]=createOutputMethod(n)}return t},nodeWrap=function(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(t){if("string"==typeof t)return crypto.createHash("sha1").update(t,"utf8").digest("hex");if(t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(void 0===t.length)return method(t);return crypto.createHash("sha1").update(new Buffer(t)).digest("hex")};return nodeMethod};Sha1.prototype.update=function(t){if(!this.finalized){var e="string"!=typeof t;e&&t.constructor===root.ArrayBuffer&&(t=new Uint8Array(t));for(var n,i,r=0,o=t.length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),e)for(i=this.start;r<o&&i<64;++r)a[i>>2]|=t[r]<<SHIFT[3&i++];else for(i=this.start;r<o&&i<64;++r)n=t.charCodeAt(r),n<128?a[i>>2]|=n<<SHIFT[3&i++]:n<2048?(a[i>>2]|=(192|n>>6)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]):n<55296||n>=57344?(a[i>>2]|=(224|n>>12)<<SHIFT[3&i++],a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]):(n=65536+((1023&n)<<10|1023&t.charCodeAt(++r)),a[i>>2]|=(240|n>>18)<<SHIFT[3&i++],a[i>>2]|=(128|n>>12&63)<<SHIFT[3&i++],a[i>>2]|=(128|n>>6&63)<<SHIFT[3&i++],a[i>>2]|=(128|63&n)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var t,e,n,i=this.h0,r=this.h1,o=this.h2,a=this.h3,s=this.h4,l=this.blocks;for(e=16;e<80;++e)n=l[e-3]^l[e-8]^l[e-14]^l[e-16],l[e]=n<<1|n>>>31;for(e=0;e<20;e+=5)t=r&o|~r&a,n=i<<5|i>>>27,s=n+t+s+1518500249+l[e]<<0,r=r<<30|r>>>2,t=i&r|~i&o,n=s<<5|s>>>27,a=n+t+a+1518500249+l[e+1]<<0,i=i<<30|i>>>2,t=s&i|~s&r,n=a<<5|a>>>27,o=n+t+o+1518500249+l[e+2]<<0,s=s<<30|s>>>2,t=a&s|~a&i,n=o<<5|o>>>27,r=n+t+r+1518500249+l[e+3]<<0,a=a<<30|a>>>2,t=o&a|~o&s,n=r<<5|r>>>27,i=n+t+i+1518500249+l[e+4]<<0,o=o<<30|o>>>2;for(;e<40;e+=5)t=r^o^a,n=i<<5|i>>>27,s=n+t+s+1859775393+l[e]<<0,r=r<<30|r>>>2,t=i^r^o,n=s<<5|s>>>27,a=n+t+a+1859775393+l[e+1]<<0,i=i<<30|i>>>2,t=s^i^r,n=a<<5|a>>>27,o=n+t+o+1859775393+l[e+2]<<0,s=s<<30|s>>>2,t=a^s^i,n=o<<5|o>>>27,r=n+t+r+1859775393+l[e+3]<<0,a=a<<30|a>>>2,t=o^a^s,n=r<<5|r>>>27,i=n+t+i+1859775393+l[e+4]<<0,o=o<<30|o>>>2;for(;e<60;e+=5)t=r&o|r&a|o&a,n=i<<5|i>>>27,s=n+t+s-1894007588+l[e]<<0,r=r<<30|r>>>2,t=i&r|i&o|r&o,n=s<<5|s>>>27,a=n+t+a-1894007588+l[e+1]<<0,i=i<<30|i>>>2,t=s&i|s&r|i&r,n=a<<5|a>>>27,o=n+t+o-1894007588+l[e+2]<<0,s=s<<30|s>>>2,t=a&s|a&i|s&i,n=o<<5|o>>>27,r=n+t+r-1894007588+l[e+3]<<0,a=a<<30|a>>>2,t=o&a|o&s|a&s,n=r<<5|r>>>27,i=n+t+i-1894007588+l[e+4]<<0,o=o<<30|o>>>2;for(;e<80;e+=5)t=r^o^a,n=i<<5|i>>>27,s=n+t+s-899497514+l[e]<<0,r=r<<30|r>>>2,t=i^r^o,n=s<<5|s>>>27,a=n+t+a-899497514+l[e+1]<<0,i=i<<30|i>>>2,t=s^i^r,n=a<<5|a>>>27,o=n+t+o-899497514+l[e+2]<<0,s=s<<30|s>>>2,t=a^s^i,n=o<<5|o>>>27,r=n+t+r-899497514+l[e+3]<<0,a=a<<30|a>>>2,t=o^a^s,n=r<<5|r>>>27,i=n+t+i-899497514+l[e+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+i<<0,this.h1=this.h1+r<<0,this.h2=this.h2+o<<0,this.h3=this.h3+a<<0,this.h4=this.h4+s<<0},Sha1.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,r=this.h4;return HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,r=this.h4;return[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(20),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),t};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&define("sha1",[],function(){return exports}))}(),define("notebook",["jquery","config","tabbed","form","preferences","modal","prolog","links","laconic","runner","storage","sha1"],function($,config,tabbed,form,preferences,modal,prolog,links){function glyphButton(t,e,n,i,r){return r=r||"sm",$.el.a({href:"#",class:"btn btn-"+i+" btn-"+r+" action-"+e,title:n,"data-action":e},$.el.span({class:"glyphicon glyphicon-"+t}))}function imageButton(t,e,n){return n=n||"sm",$.el.a({href:"#",class:"btn btn-default btn-image btn-"+n+" action-"+t,title:e,"data-action":t},$.el.span({class:"image-icon"}))}function glyphButtonGlyph(t,e,n){t.find("a[data-action="+e+"] > span.glyphicon").removeClass(function(t,e){return e.match(/glyphicon-[-a-z]*/g).join(" ")}).addClass("glyphicon-"+n)}function sep(){return $.el.span({class:"menu-space"}," ")}function Notebook(t){this.my_cell=t.cell}var cellTypes={program:{label:"Program",prefix:"p"},query:{label:"Query",prefix:"q"},markdown:{label:"Markdown",prefix:"md"},html:{label:"HTML",prefix:"htm"}};!function(t){function e(e){var n=t(e).find(".nb-cell.active");return 1==n.length?n.first():null}function n(e){function n(t){if(attrs=t.match(/[-a-z]+="[^"]*"/g),attrs){for(var e=t.match(/^<[a-z]* /),n=0;n<attrs.length;n++){var i=attrs[n].split(/=(.*)/);attrs[n]=i[0].toLowerCase()+"="+i[1]}return e[0]+attrs.sort().join(" ")+">"}return t}var i=t(t.el.div(e)).html(),r=[];return i.replace(/(<div [^>]*>|<\/div>)/g,function(t){var e;return"</div>"==t?(e=r.pop(),e?"\n"+t+"\n":t):(e=null!=t.match(/(nb-cell|notebook)/),r.push(e),e?"\n"+n(t)+"\n":t)}).slice(1)}var i=null,r={_init:function(e){return e=e||{},this.each(function(){function n(t){var e=r.data(t);e&&(a[t]=e)}var i,r,o=t(this),a={},s={};o.addClass("notebook"),o.addClass("swish-event-receiver"),o.append(i=t.el.div({class:"nb-toolbar"},glyphButton("trash","delete","Delete cell","warning"),sep(),glyphButton("copy","copy","Copy cell","default"),glyphButton("paste","paste","Paste cell below","default"),sep(),glyphButton("chevron-up","up","Move cell up","default"),glyphButton("chevron-down","down","Move cell down","default"),sep(),glyphButton("plus","insertBelow","Insert cell below","primary"),sep(),glyphButton("erase","clear_all","Clear all query output","warning"),glyphButton("play","run_all","Run all queries","primary"),glyphButton("fullscreen","fullscreen","Full screen","default"))),o.append(function(){var e=t.el.span({class:"glyphicon glyphicon-menu-hamburger"});return form.widgets.dropdownButton(e,{divClass:"notebook-menu btn-transparent",ulClass:"pull-right",client:o,actions:{"Delete cell":function(){this.notebook("delete")},"Copy cell":function(){this.notebook("copy")},"Paste cell":function(){this.notebook("paste")},"Move cell up":function(){this.notebook("up")},"Move cell down":function(){this.notebook("down")},"Insert cell":function(){this.notebook("insertBelow")},"--":"Notebook actions","Exit fullscreen":function(){this.notebook("fullscreen",!1)}}})}()),o.append(t.el.div({class:"nb-view",tabIndex:"-1"},r=t.el.div({class:"nb-content"}),t.el.div({class:"nb-bottom"}))),t(i).on("click","a.btn",function(e){var n=t(e.target).closest("a").data("action");return o.notebook(n),e.preventDefault(),!1}),t(r).on("click",".nb-cell-buttons a.btn",function(e){var n=t(e.target).closest("a"),i=n.closest(".nb-cell"),r=n.data("action");return i.nbCell(r),e.preventDefault(),!1}),o.focusin(function(e){var n=t(e.target).closest(".nb-cell");n.length>0?o.notebook("active",n):t(e.target).closest(".nb-view").length>0&&o.find(".nb-content").children(".nb-cell.active").nbCell("active",!1)}),o.focusout(function(e){t(e.target).closest(".notebook")[0]!=o[0]&&o.find(".nb-content").children(".nb-cell.active").nbCell("active",!1)}),o.on("activate-tab",function(e){if(e.target==o[0]){var n=o.find(".nb-content").children(".nb-cell.program"),i=n.filter(".active"),r=i[0]||n[0];r&&t(r).find(".prolog-editor").prologEditor("makeCurrent"),e.stopPropagation()}}),o.on("scroll-to-bottom",function(e,n){1!=n&&t(e.target).closest(".nb-cell").nbCell("ensure_in_view","bottom")}),o.data("notebook",s);var r=o.find(".notebook-data");if(e.value)o.notebook("value",e.value);else if(r.length>0){n("file"),n("url"),n("title"),n("meta"),n("st_type"),n("chats");var l=o.storage("docid",void 0,a),c=preferences.getDocVal(l,"fullscreen",config.swish.notebook.fullscreen);o.notebook("value",r.text(),{fullscreen:c}),r.remove()}else o.notebook("placeHolder");o.notebook("setupStorage",a),o.on("data-is-clean",function(e,n){if(t(e.target).hasClass("prolog-editor"))return o.notebook("checkModified"),e.stopPropagation(),!1}),o.on("fullscreen",function(t,e){preferences.setDocVal(l,"fullscreen",e)})})},delete:function(t){return t=t||e(this),t&&(this.notebook("active",t.next()||t.prev()),t.nbCell("close"),this.notebook("updatePlaceHolder")),this.notebook("checkModified"),this},copy:function(r){if(r=r||e(this)){var o=t.el.div({class:"notebook"});t(o).append(t(r).nbCell("saveDOM")),t(o).find(".nb-cell").removeAttr("name"),i=n(o)}},paste:function(e){var n=this;if(e=e||i){var r=t.el.div();t(r).html(e);if(t(r).find(".nb-cell").length>0)return t(r).find(".nb-cell").each(function(){n.notebook("insert",{where:"below",restore:t(this)})}),this;modal.alert("Not a SWISH notebook")}else modal.alert("Clipboard is empty")},up:function(t){return t=t||e(this),t&&(t.insertBefore(t.prev()),this.notebook("checkModified")),this},down:function(t){return t=t||e(this),t&&(t.insertAfter(t.next()),this.notebook("checkModified")),this},insertAbove:function(){return this.notebook("insert",{where:"above"})},insertBelow:function(){return 0==this.notebook("insert",{where:"below",if_visible:!0})&&modal.alert("<p>New cell would appear outside the visible area of the notebook.<p>Please select the cell below which you want the new cell to appear or scroll to the bottom of the notebook."),this},run:function(t){(t=t||e(this))&&t.nbCell("run")},fullscreen:function(e){if(void 0==e&&(e=!this.hasClass("fullscreen")),e){var n=this.closest(".chat-container"),i=1==n.length?n:this;t("body.swish").swish("fullscreen",i,this)}else t("body.swish").swish("exitFullscreen");return this},cellType:function(t,n){(t=t||e(this))&&t.nbCell("type",n)},getSelection:function(){return this.notebook("assignCellNames").find(".prolog-editor").prologEditor("getSelection")},restoreSelection:function(t){return this.notebook("assignCellNames").find(".prolog-editor").prologEditor("restoreSelection",t)},checkModified:function(){return this.each(function(){var e=t(this),n=e.data("storage"),i=n.cleanGeneration==e.notebook("changeGen");e.notebook("markClean",i)})},markClean:function(e){return this.each(function(){var n=t(this),i=n.data("notebook");i.clean_signalled!=e&&(i.clean_signalled=e,n.trigger("data-is-clean",e)),e&&n.find(".prolog-editor").prologEditor("setIsClean")})},active:function(t,e){function n(t){t.find(".nb-content .nb-cell.not-for-query").removeClass("not-for-query")}if(t){var i=this.find(".nb-content .nb-cell.active");1==t.length?1==i.length&&t[0]==i[0]||(n(this),i.nbCell("active",!1),t.nbCell("active",!0),e&&t.focus()):(n(this),i.nbCell("active",!1))}},insert:function(n){n=n||{};var i,r=e(this),o=n.cell||t.el.div({class:"nb-cell"}),a=this.find(".nb-view");if(n.if_visible&&a.find(".nb-content > div.nb-cell").length>0&&(i=a[0].getBoundingClientRect()),r)if("above"==n.where){if(i){var s=r[0].getBoundingClientRect().top;if(s<i.top)return!1}t(o).insertBefore(r)}else{if(i){var l=r[0].getBoundingClientRect().bottom;if(l>i.bottom-20)return!1}t(o).insertAfter(r)}else{var c=this.find(".nb-content");if(i){if(c[0].getBoundingClientRect().bottom>i.bottom-20)return!1}c.append(o)}return n.cell||t(o).nbCell(n.restore),t(o).nbCell("assignName"),this.notebook("updatePlaceHolder"),this.notebook("active",t(o)),this.notebook("checkModified"),this},setupStorage:function(e){var n=this;return e=t.extend(e,{getValue:function(){return n.notebook("value")},setValue:function(t){return n.notebook("setSource",t)},changeGen:function(){return n.notebook("changeGen")},isClean:function(t){return t==n.notebook("changeGen")},markClean:function(t){n.notebook("markClean",t)},cleanGeneration:this.notebook("changeGen"),cleanData:this.notebook("value"),cleanCheckpoint:"load",typeName:"notebook"}),this.storage(e)},setSource:function(t){"string"==typeof t&&(t={data:t}),this.notebook("value",t.data)},value:function(e,i){if(i=i||{},void 0==e){var r=t.el.div({class:"notebook"});return this.notebook("assignCellNames",!1),this.find(".nb-cell").each(function(){cell=t(this),i.skipEmpty&&cell.nbCell("isEmpty")||t(r).append(cell.nbCell("saveDOM"))}),n(r)}var o=this.find(".nb-content"),r=t.el.div();o.html(""),r.innerHTML=e,void 0==i.fullscreen&&(i.fullscreen=t(r).find("div.notebook").hasClass("fullscreen")),i.fullscreen&&(this.removeClass("fullscreen"),this.notebook("fullscreen",!0)),t(r).find(".nb-cell").each(function(){var e=t.el.div({class:"nb-cell"});o.append(e),t(e).nbCell(t(this))}),this.find(".nb-cell").nbCell("onload"),this.notebook("run_all","onload"),this.notebook("updatePlaceHolder"),this.notebook("assignCellNames",!1)},changeGen:function(){var e=[];return this.find(".nb-cell").each(function(){var n=t(this).nbCell("changeGen");e.push(n)}),sha1(e.join())},assignCellNames:function(t){return this.find(".nb-cell").nbCell("assignName"),0!=t&&this.notebook("checkModified"),this},updatePlaceHolder:function(){0==this.find(".nb-content").children().length?this.notebook("placeHolder"):this.find(".nb-placeholder").remove()},placeHolder:function(){var e=t.el.div({class:"nb-placeholder"});t.ajax({url:config.http.locations.help+"/notebook.html",dataType:"html",success:function(n){t(e).html(n)}}),this.find(".nb-content").append(e)},run_all:function(e){function n(t){switch(t.state){case"error":case"aborted":return!1}return!0}var i=[];if(e=e||"all",this.notebook("clear_all"),this.find(".nb-cell.query").each(function(){"all"!=e&&t(this).data("run")!=e||i.push(this)}),i.length>0){i.current=0;var r=function(e){n(e)&&++i.current<i.length&&t(i[i.current]).nbCell("run",{complete:r})};t(i[0]).nbCell("run",{complete:r})}},clear_all:function(){this.find(".prolog-runner").prologRunner("close")}};tabbed.tabTypes.notebook={dataType:"swinb",typeName:"notebook",label:"Notebook",contentType:"text/x-prolog-notebook",order:200,create:function(e,n){t(e).notebook(n)}},t.fn.notebook=function(e){return r[e]?r[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.notebook"):r._init.apply(this,arguments)}}(jQuery),function($){function cellText(t){return t.find(".editor").prologEditor("getSource",void 0,!0)}function fileInsertInput(){var t=$('<input type="file" name="file">');return t.on("change",function(t){var e=new FileReader;return e.onload=function(n){var i=$(t.target).closest(".nb-cell");i.closest(".notebook").notebook("paste",e.result)&&i.remove()},e.readAsText(t.target.files[0]),t.preventDefault(),!1}),t}function typeMore(){var t=$('<div class="form-more"> <a href="#">more<a></div>');return t.find("a").on("click",function(t){var e=$(t.target).closest(".form-more");e.hide(400),e.next().show(400)}),t[0]}function typeLess(){for(var t=$('<div class="form-less" style="display:none"> <div><a href="#" class="less">less<a></div></div>'),e=0;e<arguments.length;e++)t.append(arguments[e]);return t.find("a.less").on("click",function(t){var e=$(t.target).closest(".form-less");e.hide(400),e.prev().show(400)}),t[0]}var pluginName="nbCell",id=0,methods={_init:function(t){return this.each(function(){var e,n=$(this),i={};if(n.data(pluginName,i),n.attr("tabIndex",-1),n.attr("id","nbc"+id++),t instanceof jQuery)n.nbCell("restoreDOM",t);else{var r=glyphButton("remove-circle","close","Close","default","xs");n.append(r),$(r).addClass("close-select"),$(r).on("click",function(){n.nbCell("close")}),n.append($.el.div({class:"nb-type-select"},$.el.label("Create a "),e=$.el.div({class:"btn-group",role:"group"}),$.el.label("cell here.")));for(var o in cellTypes)cellTypes.hasOwnProperty(o)&&$(e).append($.el.button({type:"button",class:"btn btn-default","data-type":o},cellTypes[o].label));$(e).on("click",".btn",function(t){n.nbCell("type",$(t.target).data("type"))}),n.append($.el.div({class:"nb-type-more"},typeMore(),typeLess($.el.label("Insert notebook from local file "),fileInsertInput()[0])))}})},active:function(t){var e=this.data(pluginName);if(t)switch(this.addClass("active"),e.type){case"program":this.find(".editor").prologEditor("makeCurrent");break;case"query":var n=this.prevAll(".program").first().find(".editor");1==n.length&&n.prologEditor("makeCurrent"),this.closest(".notebook").find(".nb-cell.program").not(this.nbCell("program_cells")).addClass("not-for-query")}else if(this.length>0)switch(this.removeClass("active"),e.type){case"markdown":case"html":this.hasClass("runnable")&&this.nbCell("run")}},ensure_in_view:function(t){var e=this.position().top,n=this.closest(".nb-view"),i=n.scrollTop(),r=n.height();e>i&&e+this.height()<i+r||("top"!=t&&(e=e+this.height()-r+40),this.nbCell("active",!0),n.scrollTop(e))},type:function(t){var e=this.data(pluginName);return e.type!=t&&(methods.type[t].apply(this),e.type=t,this.addClass(t),this.removeAttr("name"),this.nbCell("assignName")),this},assignName:function(){return this.each(function(){var t=$(this);if(!t.attr("name")){var e=t.data(pluginName);if(e.type){var n=cellTypes[e.type].prefix,r=t.closest(".notebook");for(i=1;;i++){var o=n+i;if(0==r.find("*[name="+o+"]").length){t.attr("name",o);break}}}}})},run:function(){var t=arguments;return this.each(function(){var e=$(this);if(e.hasClass("runnable")){var n=e.data(pluginName);return methods.run[n.type].apply(e,t)}console.log("Cell is not runnable: ",e)})},runTabled:function(){return this.nbCell("run",{tabled:!0})},onload:function(){var t=arguments;return this.each(function(){var e=$(this),n=e.data(pluginName);methods.onload[n.type]&&methods.onload[n.type].apply(e,t)}),this.nbCell("refresh")},close:function(){return this.find(".prolog-runner").prologRunner("close"),this.remove()},refresh:function(){return this.hasClass("program")&&this.find("a[data-action='background']").attr("title",this.hasClass("background")?"Used for all queries in this notebook":"Used for queries below this cell"),this},getSettings:function(){return{tabled:"true"==this.data("tabled"),run:"onload"==this.data("run"),chunk:parseInt(this.data("chunk")||"1"),name:this.attr("name")}},settings:function(){function t(){this.append($.el.form({class:"form-horizontal"},form.fields.checkboxes([{name:"tabled",label:"table results",value:n.tabled,title:"Table results"},{name:"run",label:"run on page load",value:n.run,title:"Run when document is loaded"}],{col:3}),form.fields.chunk(n.chunk),form.fields.name(n.name||""),form.fields.buttons({label:"Apply",offset:3,action:function(t,i){i.tabled!=n.tabled&&(i.tabled?e.data("tabled","true"):e.removeData("tabled")),i.run!=n.run&&(i.run?e.data("run","onload"):e.removeData("run")),i.chunk!=n.chunk&&(1!=i.chunk?e.data("chunk",""+i.chunk):e.removeData("chunk"));var r=i.name?i.name.trim():"";r!=n.name&&(r?e.attr("name",r):e.attr("name",null)),e.closest(".notebook").notebook("checkModified")}})))}var e=this,n=this.nbCell("getSettings");form.showDialog({title:"Set options for query",body:t})},singleline:function(){return this.toggleClass("singleline"),this.find(".editor").prologEditor("refresh"),glyphButtonGlyph(this,"singleline",this.hasClass("singleline")?"triangle-left":"triangle-bottom"),this.find("a[data-action=singleline]").blur(),this},background:function(){return this.toggleClass("background"),this.find("a[data-action=background]").blur(),this.closest(".notebook").notebook("checkModified"),this.nbCell("refresh"),this},program_cells:function(){var t=(this.data(pluginName),this.closest(".notebook").find(".nb-cell.program.background"));return this.hasClass("program")?this.hasClass("background")||(t=t.add(this)):t=t.add(this.prevAll(".program").first()),t},programs:function(){return this.nbCell("program_cells").find(".editor")},isEmpty:function(){return methods.isEmpty[this.data(pluginName).type].call(this)},saveDOM:function(){return methods.saveDOM[this.data(pluginName).type].call(this)},restoreDOM:function(t){var e=this.data(pluginName);e.type=function(t){for(var e in cellTypes)if(cellTypes.hasOwnProperty(e)&&t.hasClass(e))return e}(t),methods.restoreDOM[e.type].apply(this,arguments),this.addClass(e.type)},changeGen:function(){var t=this.data(pluginName).type;return t?methods.changeGen[t].call(this):0},text:function(){return cellText(this)}};methods.type.markdown=function(t){var e,n=this;t=t||{},t.mode="markdown",function(e){void 0!=t[e]&&(n.attr(e,""+t[e]),delete t[e])}("name"),this.html(""),this.append(e=$.el.div({class:"editor"})),$(e).prologEditor(t),this.addClass("runnable")},methods.type.html=function(t){var e,n=this;t=t||{},t.mode="htmlmixed",function(e){void 0!=t[e]&&(n.attr(e,""+t[e]),delete t[e])}("name"),this.html(""),this.append(e=$.el.div({class:"editor"})),$(e).prologEditor(t),this.addClass("runnable")},methods.type.program=function(t){var e,n=this;t=t||{},t.autoCurrent=!1,t.getSource=function(){return n.nbCell("programs").prologEditor("getSource","source",!0)},this.html("");var i=$.el.div({class:"btn-group nb-cell-buttons",role:"group"},glyphButton("triangle-bottom","singleline","Show only first line","default","xs"),imageButton("background","Use as background program","xs"));this.append(i,e=$.el.div({class:"editor with-buttons"})),t.background&&this.addClass("background"),t.singleline&&this.nbCell("singleline"),$(e).prologEditor(t)},methods.type.query=function(t){function e(e){void 0!=t[e]&&(r.data(e,""+t[e]),delete t[e])}function n(t){this.find(".editor.query").prologEditor("wrapSolution",$(t).text())}var i,r=this;this.html(""),t=t||{},void 0==t.tabled&&(t.tabled=preferences.getVal("tabled_results")),e("tabled"),e("chunk"),e("run"),function(e){void 0!=t[e]&&(r.attr(e,""+t[e]),delete t[e])}("name"),t=$.extend({},t,{role:"query",sourceID:function(){return r.nbCell("programs").prologEditor("getSourceID")},prologQuery:function(t){r.nbCell("run")}});var o=$.el.div({class:"btn-group nb-cell-buttons",role:"group"},glyphButton("wrench","settings","Settings","default","xs"),glyphButton("play","run","Run query","primary","xs")),a=form.widgets.dropdownButton($.el.span({class:"glyphicon glyphicon-menu-hamburger"}),{client:r,divClass:"nb-query-menu",actions:{"Aggregate (count all)":n,"--":null,Projection:n,"Order by":n,Distinct:n,Limit:n}});this.append(o,$.el.div({class:"query with-buttons"},a,$.el.span({class:"prolog-prompt"},"?-"),i=$.el.div({class:"editor query"}))),$(i).prologEditor(t),this.addClass("runnable")},methods.run.markdown=function(t){function e(t){var n=$(t.target).closest(".nb-cell"),i=n.data("markdownText");n.removeData("markdownText"),methods.type.markdown.call(n,{value:i}),n.off("dblclick",e),n.off("click",links.followLink)}function n(n){i.html(n),i.removeClass("runnable"),i.data("markdownText",t),i.on("dblclick",e),i.on("click","a",links.followLink)}var i=this;t=t||cellText(this),""!=t.trim()?$.ajax({type:"POST",url:config.http.locations.markdown,data:t,contentType:"text/plain; charset=UTF-8",success:n}):n("<div class='nb-placeholder'>Empty markdown cell.  Double click to edit</div>")},methods.run.html=function(htmlText,options){function makeEditable(t){var e=$(t.target).closest(".nb-cell"),n=e.data("htmlText");e.removeData("htmlText"),methods.type.html.call(e,{value:n}),e.off("dblclick",makeEditable),e.off("click",links.followLink)}function runScripts(){if(1==config.swish.notebook.eval_script&&0!=options.eval_script){var scripts=[];if(cell.find("script").each(function(){"text/javascript"==(this.getAttribute("type")||"text/javascript")&&scripts.push(this.textContent)}),
-scripts.length>0){var script="(function(notebook){"+scripts.join("\n")+"})",nb=new Notebook({cell:cell[0]});try{eval(script)(nb)}catch(t){alert(t)}}}}function runHTML(t){cell[0].innerHTML=t,runScripts()}function setHTML(t){runHTML(t),cell.removeClass("runnable"),cell.data("htmlText",htmlText),cell.on("dblclick",makeEditable),cell.on("click","a",links.followLink)}var cell=this;if(options=options||{},0==options.html)return void runScripts();htmlText=(htmlText||cellText(this)).trim(),setHTML(""!=htmlText?htmlText:"<div class='nb-placeholder'>Empty HTML cell.  Double click to edit</div>")},methods.run.program=function(){modal.alert("Please define a query to run this program")},methods.run.query=function(t){var e=this.nbCell("programs"),n=this.nbCell("getSettings"),i=cellText(this);if(t=t||{},t.bindings){var r="";if("string"==typeof t.bindings)r=t.bindings;else for(var o in t.bindings)t.bindings.hasOwnProperty(o)&&(r&&(r+=", "),r+=o+" = "+Pengine.stringify(t.bindings[o]));r&&(i=r+", ("+prolog.trimFullStop(i)+")")}var a={source:e.prologEditor("getSource","source",!0),query:i,tabled:n.tabled||!1,chunk:n.chunk,title:!1,query_editor:this.find(".prolog-editor.query")};e[0]&&(a.editor=e[0]),t.success&&(a.success=t.success),t.complete&&(a.complete=t.complete);var s=$.el.div({class:"prolog-runner"});this.find(".prolog-runner").prologRunner("close"),this.append(s),$(s).prologRunner(a)},methods.onload.html=function(){return methods.run.html.call(this,void 0,{html:!1,eval_script:!0})},methods.saveDOM.markdown=function(){var t=this.data("markdownText")||cellText(this),e=$.el.div({class:"nb-cell markdown"},t);return function(t){var n;(n=cell.attr(t))&&n&&$(e).attr(t,n)}("name"),e},methods.saveDOM.html=function(){var t=this.data("htmlText")||cellText(this),e=$.el.div({class:"nb-cell html"});return $(e).html(t),function(t){var n;(n=cell.attr(t))&&n&&$(e).attr(t,n)}("name"),e},methods.saveDOM.program=function(){function t(t){e.hasClass(t)&&$(n).attr("data-"+t,!0)}var e=this,n=$.el.div({class:"nb-cell program"},cellText(this));return t("background"),t("singleline"),function(t){var i;(i=e.attr(t))&&i&&$(n).attr(t,i)}("name"),n},methods.saveDOM.query=function(){function t(t,e){return!("tabled"!=t||e&&"false"!=e)}function e(e){var r;(r=n.data(e))&&!t(e,r)&&$(i).attr("data-"+e,r)}var n=this,i=$.el.div({class:"nb-cell query"},cellText(this));return e("tabled"),e("chunk"),e("run"),function(t){var e;(e=n.attr(t))&&e&&$(i).attr(t,e)}("name"),i},methods.restoreDOM.markdown=function(t){var e=this,n=t.text().trim();e.data("markdownText",n),function(n){var i;(i=t.attr(n))&&i&&e.attr(n,i)}("name"),methods.run.markdown.call(this,n)},methods.restoreDOM.html=function(t){var e=this;!function(n){var i;(i=t.attr(n))&&i&&e.attr(n,i)}("name"),methods.run.html.call(this,t.html(),{eval_script:!1})},methods.restoreDOM.program=function(t){function e(e){var n;(n=t.data(e))&&(i[e]=n)}var n=this,i={value:t.text().trim()};e("background"),e("singleline"),function(e){var i;(i=t.attr(e))&&i&&n.attr(e,i)}("name"),methods.type.program.call(this,i)},methods.restoreDOM.query=function(t){function e(e){var i;(i=t.data(e))&&("chunk"==e?n.chunk=parseInt(i):n[e]=i)}var n={value:t.text().trim()};e("tabled"),e("chunk"),e("run"),function(e){var i;(i=t.attr(e))&&(n[e]=i)}("name"),void 0==n.tabled&&(n.tabled=!1),methods.type.query.call(this,n)},methods.changeGen.markdown=function(){var t=this.data("markdownText")||cellText(this);return sha1("M"+t.trim())},methods.changeGen.html=function(){var t=this.data("htmlText")||cellText(this);return sha1("H"+t.trim())},methods.changeGen.program=function(){function t(t,i){n.hasClass(t)&&(e+=i)}var e="P",n=this;return t("background","B"),t("singleline","S"),e+="V"+cellText(this).trim(),sha1(e)},methods.changeGen.query=function(){function t(t,i){var r;(r=n.data(t))&&(e+=i+r)}var e="Q",n=this;return t("tabled","T"),t("chunk","C"),t("run","R"),function(t,i){var r;(r=n.attr(t))&&(e+=i+r)}("name","N"),e+="V"+cellText(this).trim(),sha1(e)},methods.isEmpty.markdown=function(){return""==(this.data("markdownText")||cellText(this)).trim()},methods.isEmpty.html=function(){return""==(this.data("htmlText")||cellText(this)).trim()},methods.isEmpty.program=function(){return""==cellText(this).trim()},methods.isEmpty.query=function(){return""==cellText(this).trim()},$.fn.nbCell=function(t){return methods[t]?methods[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void $.error("Method "+t+" does not exist on jQuery."+pluginName):methods._init.apply(this,arguments)}}(jQuery),Notebook.prototype.swish=function(t){var e=this.cell().nbCell("programs"),n=e.prologEditor("getSource","source",!0);return n&&(t.src=n),$.swish(t)},Notebook.prototype.cell=function(t){return t?this.notebook().find('.nb-cell[name="'+t+'"]'):$(this.my_cell)},Notebook.prototype.notebook=function(){return $(this.my_cell).closest(".notebook")},Notebook.prototype.run=function(t,e){var n={};e&&(n.bindings=e),this.cell(t).nbCell("run",n)},Notebook.prototype.submit=function(t,e){var n=this.$(t),i=form.serializeAsObject(n);form.formError(n,null),this.swish({ask:e.predicate+"(("+Pengine.stringify(i)+"))",onerror:function(t){form.formError(n,t)},onsuccess:e.onsuccess})},Notebook.prototype.$=function(t){return this.cell().find(t)}}),define("navbar",["jquery","preferences","form","laconic"],function(t,e,n){!function(t){function i(i,r,o){function a(e){if(e)return t.el.span({class:"dropdown-icon glyphicon glyphicon-"+e})}if(void 0==o);else if("--"==o)i.append(t.el.li({class:"divider"}));else if("function"==typeof o){var s,l;if(o.typeIcon)s=t.el.a(n.widgets.typeIcon(o.typeIcon),r);else if(o.glyph)s=t.el.a(a(o.glyph),r);else if((l=r.indexOf("("))>0){var c=r.substr(l);s=t.el.a({class:"accelerated"},r.substr(0,l).trim(),t.el.span({class:"accell-spacer"},c),t.el.span({class:"accell-text"},c))}else s=t.el.a(r);t(s).data("navbar-action",o),o.name&&t(s).attr("id",o.name),i.append(t.el.li(s))}else if("checkbox"==o.type){var u=t(t.el.input({type:"checkbox"}));void 0!==o.preference?(u.addClass("swish-event-receiver"),e.getVal(o.preference)&&u.prop("checked",!0),u.on("click",function(){e.setVal(o.preference,t(this).prop("checked"))}),u.on("preference",function(t){t.name==o.preference&&u.prop("checked",t.value)})):(o.checked&&u.prop("checked",o.checked),u.on("click",function(){o.action(t(this).prop("checked"))})),i.append(t.el.li({class:"checkbox"},u[0],t.el.span(r)))}else if("submenu"==o.type){var h=t.el.ul({class:"dropdown-menu sub-menu"});if(i.append(t.el.li(t.el.a({class:"trigger right-caret"},a(o.glyph),r),h)),o.action&&t(h).data("navbar-action",o.action),o.items)for(var l=0;l<o.items.length;l++)t(h).append(t.el.li(t.el.a(o.items[l])));o.update&&t(h).on("update",function(t){o.update.call(t.target)})}else alert("Unknown navbar item")}function r(e,n){return e.find(".dropdown-menu").filter(function(){return t(this).attr("name")==n})}function o(e,n){if(!t(e).hasClass("trigger")){var i=t(e).data("navbar-action")||t(e).parents("ul").data("navbar-action");return s.call(e,n),i?(n.preventDefault(),i.call(e,n)):t(e).hasClass("trigger")&&a.call(e,n),!1}a.call(e,n)}function a(e){var n=t(this).next(),i=t(this).parent().parent();(t(this).hasClass("left-caret")||t(this).hasClass("right-caret"))&&t(this).toggleClass("right-caret left-caret"),i.find(".left-caret").not(this).toggleClass("right-caret left-caret"),i.find(".sub-menu:visible").not(n).hide(),n.trigger("update"),n.toggle(),e.stopPropagation()}function s(e){var n=t(this).closest(".dropdown");n.find(".left-caret").toggleClass("right-caret left-caret"),n.find(".sub-menu:visible").hide()}var l={_init:function(e){return this.each(function(){var n=t(this);for(var i in e)e.hasOwnProperty(i)&&(n.navbar("appendDropdown",i),n.navbar("populateDropdown",i,e[i]));n.on("click","a",function(t){o(this,t)})})},appendDropdown:function(e){var n=this.children(".nav.navbar-nav.menubar"),i=t.el.ul({name:e,class:"dropdown-menu"}),r=t.el.li({class:"dropdown"},t.el.a({class:"dropdown-toggle","data-toggle":"dropdown"},e,t.el.b({class:"caret"})),i);return n.append(r),this},populateDropdown:function(t,e){if("function"==typeof e)e(this,t);else{var n=r(this,t);for(var o in e)e.hasOwnProperty(o)&&i(n,o,e[o])}},clearDropdown:function(t){return r(this,t).html(""),this},extendDropdown:function(t,e,n){i(r(this,t),e,n)}};t.fn.navbar=function(e){return l[e]?l[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.navbar"):l._init.apply(this,arguments)}}(jQuery)}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/hint/templates-hint",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){function e(t,e){return t.slice(0,e.length).toUpperCase()==e.toUpperCase()}function n(t){}function i(){this.marked=[],this.selectableMarkers=[],this.varIndex=-1}function r(t){return t._templateStack?t._templateStack.length:0}function o(t){this.name=t.name,this.description=t.description,this.text=t.text,t.varTemplates&&(this.varTemplates=t.varTemplates),null!=t.template?this.source=t.template:null!=t.tokens&&(this._tokens=t.tokens)}function a(t){for(var e=[],n=!1,i=null,r="",o=0;o<t.length;o++){var a=t.charAt(o);if("\n"==a)""!=r&&e.push(r),r="",e.push(a),i=null;else{var s=!0;if(n)"}"==a&&(n=!1,s=!1,"cursor"==r?e.push({cursor:!0}):"line_selection"==r?e.push({line_selection:!0}):e.push({variable:r}),r="");else if("$"==a&&o+1<=t.length){o++;var l=t.charAt(o);"{"==l&&(n=!0,s=!1,""!=r&&e.push(r),r="")}s&&"$"!=i?(r+=a,i=a):i=null}}return""!=r&&e.push(r),e}function s(t,e){var n=t.findMarksAt(e.from);if(n)for(var i=0;i<n.length;i++){var r=n[i];if(r._templateVar)return r}return null}function l(t,e){var n=t._templateState;if(e.origin&&n&&!n.updating)try{n.updating=!0;var i=s(t,e);if(null==i)f(t);else for(var r=i.find(),o=t.getRange(r.from,r.to),a=0;a<n.marked.length;a++){var l=n.marked[a];if(l!=i&&l._templateVar==i._templateVar){var c=l.find();t.replaceRange(o,c.from,c.to)}}}finally{n.updating=!1}}function c(t){n("template","endCompletion()",r(t)),r(t)&&f(t,!0)}function u(t,e){var n=t._templateState;if(n.selectableMarkers.length>0){if(++n.varIndex>=n.selectableMarkers.length){if(e)return void d(t);n.varIndex=0}var i=n.selectableMarkers[n.varIndex],r=i.find();t.setSelection(r.from,r.to);for(var o=(i._templateVar,0);o<n.marked.length;o++){var a=n.marked[o];a==i?(a.className="",a.startStyle="",a.endStyle=""):a._templateVar==i._templateVar?(a.className="CodeMirror-templates-variable-selected",a.startStyle="",a.endStyle=""):(a.className="CodeMirror-templates-variable",a.startStyle="CodeMirror-templates-variable-start",a.endStyle="CodeMirror-templates-variable-end")}t.refresh()}else d(t)}function h(e){function n(t,e){return t.ch==e.ch&&t.line==e.line}var i=e._templateState,r=i.selectableMarkers[i.varIndex],o={state:i};e._hintTemplateMarker&&(o.marker=e._hintTemplateMarker),e._templateStack||(e._templateStack=[]),e._templateStack.push(o),delete e._templateState,e._hintTemplateMarker=r;var a=r.find(),s=e.listSelections();1==s.length&&n(s[0].anchor,a.from)&&n(s[0].head,a.to)&&e.replaceRange("☰",a.from,a.to),t.commands.autocomplete(e)}function d(t){var e=t._templateState.cursor;if(null!=e){var n=e.find();null!=n&&t.setSelection(n,n)}f(t)}function f(t,e){var i=t._templateState;if(i){n("template","Uninstall, clearing: ",i.marked.length);for(var r=0;r<i.marked.length;r++)i.marked[r].clear();null!=i.cursor&&i.cursor.clear(),i.marked.length=0,i.selectableMarkers.length=0}else n("template","Uninstall, no state");if(t._templateStack&&t._templateStack.length>0){n("template","Popping from level",t._templateStack.length);var o=t._templateStack.pop();i=t._templateState=o.state,e&&t._hintTemplateMarker&&function(){n("template","Canceled?");for(var e=0;e<i.marked.length;e++){var r=i.marked[e];if(r==t._hintTemplateMarker){var o=r.find();o&&"☰"==t.getRange(o.from,o.to)&&t.replaceRange(r._templateVar,o.from,o.to)}}}(),o.marker?t._hintTemplateMarker=o.marker:delete t._hintTemplateMarker}else n("template","Leaving template mode"),t.off("change",l),t.off("endCompletion",c),t.removeKeyMap(m),delete t._templateState,delete t._hintTemplateMarker}var p=[],g=t.Pos;t.templatesHint={};var m={Tab:u,Enter:function(t){u(t,!0)},Esc:f,"Ctrl-Space":h};o.prototype.tokens=function(){return null==this._tokens&&(this._tokens=a(this.source)),this._tokens},o.prototype.content=function(){if(null==this._content){for(var t=this.tokens(),e="",n=0;n<t.length;n++){var i=t[n];"string"==typeof i?e+=i:i.variable&&(e+=i.variable)}this._content=e}return this._content},o.prototype.insert=function(t,e){var o=this,a=r(t);if(n("template","Insert, nested",a,"template",o),(t._templateState||a)&&(n("template","Uninstall from insert()",a),f(t)),o.text)return void t.replaceRange(o.text,e.from,e.to);var s=new i;t._templateState=s;for(var h=this.tokens(),d="",p=e.from.line,v=e.from.ch,y=[],x=[],b=null,w=0;w<h.length;w++){var _=h[w];if("string"==typeof _)d+=_,"\n"==_?(p++,v=0):v+=_.length;else if(_.variable){d+=_.variable;var S=g(p,v),C=g(p,v+_.variable.length),T=0!=x[_.variable];v+=_.variable.length,y.push({from:S,to:C,variable:_.variable,selectable:T}),x[_.variable]=!1}else _.cursor&&(b=g(p,v))}var S=e.from,C=e.to,k=S.line;t.replaceRange(d,S,C);for(var w=0;w<y.length;w++){var A=y[w],S=A.from,C=A.to,M=t.markText(S,C,{className:"CodeMirror-templates-variable",startStyle:"CodeMirror-templates-variable-start",endStyle:"CodeMirror-templates-variable-end",inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,_templateVar:A.variable,_templates:function(t){if(o.varTemplates&&o.varTemplates[t])return o.varTemplates[t]}(A.variable)});s.marked.push(M),1==A.selectable&&s.selectableMarkers.push(M)}null!=b&&(s.cursor=t.setBookmark(b));for(var E=d.split("\n"),L=1;L<E.length;L++){var P=k+L;t.indentLine(P)}a||(t.on("change",l),n("template","Installing endCompletion"),t.on("endCompletion",c),t.addKeyMap(m)),u(t,!0)},t.templatesHint.getCompletions=function(n,i,r){var o=n.doc.mode.name,a=p[o];if(a)for(var s=0;s<a.length;s++){var l=a[s];if(e(l.name,r)){var c=l.name;l.description&&(c+="- "+l.description);var u="CodeMirror-hint-template";l.className&&(u=l.className);var h={className:u,text:c,template:l};h.data=h,h.hint=function(t,e,n){n.template.insert(t,e)},h.info=function(e){var i=e.template.content();if(t.runMode){var r=document.createElement("div");return r.className="cm-s-default",n.options&&n.options.theme&&(r.className="cm-s-"+n.options.theme),t.runMode(i,n.getMode().name,r),r}return i},i.push(h)}}},t.templatesHint.Template=o,t.templatesHint.addTemplates=function(t){var e=t.context;if(e){var n=p[e];n||(n=[],p[e]=n),t.templates.forEach(function(t){n.push(new o(t))})}}}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/prolog/prolog-template-hint",["../../lib/codemirror","../../addon/hint/templates-hint","jquery","config","laconic"],t):t(CodeMirror)}(function(t,e,n,i){"use strict";function r(t){var e=this,i=["template","displayText","text",{from:"summary",to:"description"},"className","varTemplates"];if("string"==typeof t)this.displayText=t,this.text=t;else{for(var r=0;r<i.length;r++){var o=i[r];"string"==typeof o?t[o]&&(this[o]=t[o]):t[o.from]&&(this[o.to]=t[o.from])}t.mode&&function(t){var n=/[-+?:^@!]*([A-Z][A-Za-z_0-9]*)/g,i=/\bis\s+(det|nondet|semidet|fail|multi)$/;if(e.template||(e.template=t.replace(n,"$${$1}").replace(i,""),e.template.match(/\${cursor}/)||(e.template+="${cursor}")),e.displayText||(e.displayText=t),!e.varTemplates){var r=t.match(/:[A-Z][A-Za-z_0-9]*/g);if(r&&r.length>0){for(var o={},a=0;a<r.length;a++)o[r[a].substring(1)]=l;e.varTemplates=o}}}(t.mode),t.classes&&(t.className=t.classes.join(" "))}this.render=function(t,e,i){n(t).append(i.displayText)},this.info=function(t){return t.description}}function o(e,n,i){function o(t,e){return t.slice(0,e.length)==e}var a=n.token.string,s=[],c=l;e._hintTemplateMarker&&("☰"==a&&(a=""),c=e._hintTemplateMarker._templates);var u=a.length>0&&!a.match(/\w/);if(c)for(var h=0;h<c.length;h++){var d=c[h];if("string"==typeof d)o(d,a)&&s.push(new r(d));else{var f=["name","mode","template","text"];if(u)d.name&&d.name.indexOf(a)>=0&&s.push(new r(d));else for(var p=0;p<f.length;p++)if(d[f[p]]){o(d[f[p]],a)&&s.push(new r(d));break}}}if(0==s.length)for(var g=t.hint.anyword,m=""==a&&e._hintTemplateMarker?{word:/[A-Z][A-Za-z0-9_]*/}:i,v=g(e,m),h=0;h<v.list.length;h++)s.push(new r(v.list[h]));return{list:s,from:n.position.from,to:n.position.to}}function a(e,n,i){var r=s(e),a=o(e,r,i);t.attachContextInfo(a),n(a)}function s(e){var n=e.getCursor(),i=e.getTokenAt(n);return"prolog"!=t.innerMode(e.getMode(),i.state).mode.name?null:{token:i,position:{from:new t.Pos(n.line,i.start),to:new t.Pos(n.line,i.end)}}}var l=i.swish.templates||[];return r.prototype.hint=function(e,n,i){new t.templatesHint.Template(this).insert(e,n)},a.async=!0,t.registerHelper("hint","prologTemplate",a),{getHints:a,getState:s}}),define("cm/mode/prolog/prolog-ctype",[],function(){function t(t){var i=t.charCodeAt(0),r=Math.floor(i/256);if(r<e){var o=n[r];return"number"==typeof o?o:o.charCodeAt(255&i)}return 0}
-var e=4353,n=["@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\0@      ","","","\0\0\0\0\0\0\0\0\0\0","  ","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","@@@@@\0@\0@","\0@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0      \0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0      \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0   \0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0       \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0      \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","          \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0",3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",'\0\0\0\0\0"""""""""           \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',"",3,"\b\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0          \0\0\0\0\0\0","@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"\0\0\0',"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\b\b\b\b\b\b\b\b\b\b\b@@@@@\b\b@@@@@\b\b@@@@@\0@@@@@@@@@@ \0\0                \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0       \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","                 \0\0\0\0\0\0",16,"\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0                                                                                  ",16,16,"\0                              ",16,16,16,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0 ","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\b\0\0\0","\0\0\0\0\0\0\0\0\0    \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0                                                          \0",16,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,"\0\0\0\0\0\0\0\0\0\0",3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",3,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0",3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0   \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0      \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@","@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@","@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@",3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0                                             \0\0\0     \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0    \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,"\0\0\0\0\0\0\0\0\0\0        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","      \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0  \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0        \0\0\0\0\0        \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0                               \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,"\0\0\0\0                    \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,3,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0\0\0\0\0\0\0\0\0\0","\0\0@@@@@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0                  \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0","\0\0","\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","           \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,"\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0","\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0","@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\0\0",0]
-;return{flags:t,id_start:function(e){return 0!=(1&t(e))},id_continue:function(e){return 0!=(2&t(e))},uppercase:function(e){return 0!=(4&t(e))},separator:function(e){return 0!=(8&t(e))},symbol:function(e){return 0!=(16&t(e))},other:function(e){return 0!=(32&t(e))},control:function(e){return 0!=(64&t(e))}}}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/prolog/prolog",["../../lib/codemirror","./prolog-ctype"],t):t(CodeMirror)}(function(t,e){"use strict";t.defineMode("prolog",function(n,i){function r(t,e,n){return e.tokenize=n,n(t,e)}function o(t,e,n){if(n>0){for(;n-- >0;)if(!e.test(t.next()))return!1}else for(;e.test(t.peek());)t.next();return!0}function a(t){var e=t.next();if(S.test(e))return!0;switch(e){case"u":return!!w.unicodeEscape&&o(t,T,4);case"U":return!!w.unicodeEscape&&o(t,T,8);case null:return!0;case"c":return t.eatSpace(),!0;case"x":return o(t,T,2)}return!!C.test(e)&&(!!o(t,C,-1)&&("\\"==t.peek()&&t.next(),!0))}function s(t,e,n){for(var i;null!=(i=t.next());){if(i==n&&n!=t.peek())return e.nesting.pop(),!1;if("\\"==i&&!a(t))return!1}return w.multiLineQuoted}function l(t){return t.nesting.slice(-1)[0]}function c(t){var e=l(t);e?0==e.arg?e.arg=1:"control"==e.type&&(t.goalStart=!1):t.goalStart=!1}function u(t){var e=l(t);e&&!e.alignment&&void 0!=e.arg&&(0==e.arg?e.alignment=e.leftCol?e.leftCol+4:e.column+4:e.alignment=e.column+1)}function h(t){var e=l(t);e?e.arg?e.arg++:"control"==e.type&&(t.goalStart=!0):t.goalStart=!0}function d(t){var e=l(t);return e?"control"==e.type:t.inBody}function f(t,e,n){return x=t,b=n,e}function p(t){return!(!t.eol()&&!/[\s%]/.test(t.peek()))}function g(t,n){var i=t.next();if("("==i)return"functor"==n.lastType?(n.nesting.push({functor:n.functorName,column:t.column(),leftCol:n.functorColumn,arg:0}),delete n.functorName,delete n.functorColumn):n.nesting.push({type:"control",closeColumn:t.column(),alignment:t.column()+4}),f("solo",null,"(");if("{"==i&&"tag"==n.lastType)return n.nesting.push({tag:n.tagName,column:t.column(),leftCol:n.tagColumn,arg:0}),delete n.tagName,delete n.tagColumn,f("dict_open",null);if("/"==i&&t.eat("*"))return r(t,n,y);if("%"==i)return t.skipToEnd(),f("comment","comment");if(c(n),k.test(i)){switch(i){case")":n.nesting.pop();break;case"]":return n.nesting.pop(),f("list_close",null,"]");case"}":var o=l(n),s=o&&o.tag?"dict_close":"brace_term_close";return n.nesting.pop(),f(s,null);case",":t.eol()&&(n.commaAtEOL=!0),h(n);case";":d(n)&&(n.goalStart=!0);break;case"[":return n.nesting.push({type:"list",closeColumn:t.column(),alignment:t.column()+2}),f("list_open",null,"[");case"{":return w.quasiQuotations&&t.eat("|")?(n.nesting.push({type:"quasi-quotation",alignment:t.column()+1}),f("qq_open","qq_open")):(n.nesting.push({type:"curly",closeColumn:t.column(),alignment:t.column()+2}),f("brace_term_open",null));case"|":if(w.quasiQuotations){if(t.eat("|"))return n.tokenize=v,f("qq_sep","qq_sep");if(t.eat("}"))return n.nesting.pop(),f("qq_close","qq_close")}d(n)&&(n.goalStart=!0)}return f("solo",null,i)}if('"'==i||"'"==i||"`"==i)return n.nesting.push({type:"quoted",alignment:t.column()+1}),r(t,n,m(i));if("0"==i){if(t.eat(/x/i))return t.eatWhile(/[\da-f]/i),f("number","number");if(t.eat(/o/i))return t.eatWhile(/[0-7]/i),f("number","number");if(t.eat(/'/)){return"\\"!=t.next()||a(t)?f("code","code"):f("error","error")}}if(/\d/.test(i)||/[+-]/.test(i)&&t.eat(/\d/))return w.groupedIntegers?t.match(/^\d*((_|\s+)\d+)*(?:\.\d+)?(?:[eE][+\-]?\d+)?/):t.match(/^\d*(?:\.\d+)?(?:[eE][+\-]?\d+)?/),f("-"==i?"neg-number":"+"==i?"pos-number":"number");if(e.symbol(i)){t.eatWhile(e.symbol);var u=t.current();return"."==u&&p(t)?l(n)?f("fullstop","error",u):f("fullstop","fullstop",u):A.test(u)?f("neck","neck",u):d(n)&&M.test(u)?(n.goalStart=!0,f("symbol","operator",u)):f("symbol","operator",u)}t.eatWhile(e.id_continue);var g=t.current();if("{"==t.peek()&&w.dicts)return n.tagName=g,n.tagColumn=t.column(),f("tag","tag",g);if("_"==i){if(1==g.length)return f("var","anon",g);var x=g.charAt(1);return e.uppercase(x)?f("var","var-2",g):f("var","var",g)}return e.uppercase(i)?f("var","var",g):"("==t.peek()?(n.functorName=g,n.functorColumn=t.column(),f("functor","functor",g)):f("atom","atom",g)}function m(t){return function(e,n){if(!s(e,n,t)){if(n.tokenize=g,"("==e.peek()){var i=e.current();return n.functorName=i,f("functor","functor",i)}if("{"==e.peek()&&w.dicts){var i=e.current();return n.tagName=i,f("tag","tag",i)}}return f(_[t],_[t])}}function v(t,e){for(var n,i=!1;n=t.next();){if("}"==n&&i){e.tokenize=g,t.backUp(2);break}i="|"==n}return f("qq_content","qq_content")}function y(t,e){for(var n,i=!1;n=t.next();){if("/"==n&&i){e.tokenize=g;break}i="*"==n}return f("comment","comment")}var x,b,w={quasiQuotations:!0,dicts:!0,unicodeEscape:!0,multiLineQuoted:!0,groupedIntegers:!0},_={'"':"string","'":"qatom","`":"bqstring"},S=/[abref\\'"nrtsv]/,C=/[0-7]/,T=/[0-9a-fA-F]/,k=/[[\]{}(),;|!]/,A=/^(:-|-->)$/,M=/^(,|;|->|\*->|\\+|\|)$/;return{startState:function(){return{tokenize:g,inBody:!1,goalStart:!1,lastType:null,nesting:new Array,curTerm:null,curToken:null}},token:function(t,e){if(null==e.curTerm&&i.metainfo&&(e.curTerm=0,e.curToken=0),t.sol()&&delete e.commaAtEOL,e.tokenize==g&&t.eatSpace())return t.eol()&&u(e),null;var n=e.tokenize(t,e);return t.eol()&&u(e),"neck"==x?(e.inBody=!0,e.goalStart=!0):"fullstop"==x&&(e.inBody=!1,e.goalStart=!1),e.lastType=x,"function"==typeof i.enrich&&(n=i.enrich(t,e,x,b,n)),n},indent:function(e,n){if(e.tokenize==y)return t.Pass;var i;return(i=l(e))?i.closeColumn&&!e.commaAtEOL?i.closeColumn:i.alignment:e.inBody?4:0},theme:"prolog",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"%"}}),t.defineMIME("text/x-prolog","prolog")}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/prolog/prolog_keys",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";t.commands.prologStartIfThenElse=function(e){var n=e.getCursor("start");return 1==e.getTokenAt(n,!0).state.goalStart?void e.replaceSelection("(   ","end"):t.Pass},t.commands.prologStartThen=function(e){function n(t){var e=t.nesting.length;return e>0?t.nesting[e-1]:null}var i=e.getCursor("start"),r=e.getTokenAt(i,!0);return i.ch==r.end&&"operator"==r.type&&"-"==r.string&&function(t){var e=n(t);return e?"control"==e.type:t.inBody}(r.state)?void e.replaceSelection(">  ","end"):t.Pass},t.commands.prologStartElse=function(e){var n=e.getCursor("start"),i=e.getTokenAt(n,!0);return 0!=i.start||n.ch!=i.end||/\S/.test(i.string)?t.Pass:void e.replaceSelection(";   ","end")},t.defineOption("prologKeys",null,function(e,n,i){if(i&&i!=t.Init&&e.removeKeyMap("prolog"),n){var r={name:"prolog","'('":"prologStartIfThenElse","'>'":"prologStartThen","';'":"prologStartElse","Ctrl-L":"refreshHighlight"};e.addKeyMap(r)}})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/prolog/prolog_query",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";t.commands.prologMaybeFireQuery=function(e){for(var n=e.lineCount()-1;n>=0&&""==e.getLine(n).trim();)n--;if(n>=0){var i=e.getLine(n).length,r=e.getTokenAt({line:n,ch:i},!0);if("fullstop"==r.type){var o=e.getCursor();(o.line>n||o.line==n&&o.ch>=r.end)&&$(".swish-event-receiver").trigger("feedback",{html:"Use <b>Ctrl+Enter</b> to execute the query",owner:$(e.display.wrapper).closest(".pane-wrapper")})}}return t.Pass},t.commands.prologFireQuery=function(t){return t.prologFireQuery(t.getValue())},t.defineOption("prologQuery",null,function(e,n,i){if(i&&i!=t.Init&&e.removeKeyMap("prologQuery"),"function"==typeof n){var r={name:"prologQuery","Ctrl-Enter":"prologFireQuery",Enter:"prologMaybeFireQuery"};e.addKeyMap(r),e.prologFireQuery=n}})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/prolog/prolog_server",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t){"object"==typeof t&&(this.enabled=t.enabled||!1,this.role=t.role||"source",t.sourceID&&(this.sourceID=t.sourceID),this.url={change:t.url+"change",tokens:t.url+"tokens",leave:t.url+"leave",info:t.url+"info"},this.delay=t.delay?t.delay:a,this.generationFromServer=-1,this.tmo=null)}function n(t,e){var n=t.state.prologHighlightServer;null!=n&&null!=n.url&&n.enabled&&(n.tmo&&t.askRefresh(),void 0!==n.changes&&n.changes.push(e),"setValue"!=e.origin&&-1!=n.generationFromServer||(n.changes=void 0,t.serverAssistedHighlight()))}function i(t){var e=t.state.prologHighlightServer;if(null!=e&&null!=e.url&&null!=e.uuid){var n=e.uuid;delete e.uuid,$.ajax({url:e.url.leave,async:!1,contentType:"application/json",type:"POST",dataType:"json",data:JSON.stringify({uuid:n})})}}function r(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:7&n|8).toString(16)})}function o(t,e,n,i,r){function o(e){var n;if(i==e)return!0;if((n=e.lastIndexOf(i,1))>=0){for(var r=e.substring(i.length+n),o=0;o<r.length;o++)if(!t.eat(r.charAt(o)))return t.backUp(o),!1;return!0}return!1}function a(t){var e=t.slice(-1)[0];return e&&"quoted"==e.type}var c=this;if(null!=e.curTerm){var u,h;if(e.syntax_error)return"fullstop"==n&&(c.editor.askRefresh(),delete e.syntax_error),r;if(e.outOfSync){var d=e.outOfSync;if(d.skippedTerms<=3){if(d.skippedTokens.push({type:n,style:r,content:i}),h=function(){var t=e.outOfSync;t.okToken,t.okTerm;return t.skippedTerms,null}())return h;"fullstop"==n&&(d.skippedTokens=[],d.skippedTerms++)}return r}return(u=function(t){var e=c.metainfo[t.curTerm];if(!e)return null;var n=e[t.curToken];return n||null}(e))?void 0!==(h=function(t,e){if(t){if(!s[n])return i&&t.text==i?(e.curToken++,t.type):r;if(t.text&&i){if(o(t.text))return e.curToken++,t.type;return}if(s[n]==l[t.type])return"fullstop"==n?(e.curTerm++,e.curToken=0):a(e.nesting)||e.curToken++,t.type;if(s[n]==t.base)return e.curToken++,t.type;if("qatom"==n&&"atom"==l[t.type])return e.curToken++,t.type;if("number"==n&&"meta"==t.type)return e.curToken++,t.type;if("neg-number"==n&&t.text&&"-"==t.text)return e.curToken+=2,"number";if("pos-number"==n&&t.text&&"+"==t.text)return e.curToken+=2,"number"}}(u,e))?h:"syntax_error"==u.type?(e.syntax_error=!0,e.curToken=0,e.curTerm++,r):(function(){e.outOfSync||(console.log("Mismatch: ("+i+") "+n+"/"+u.type),e.outOfSync={okToken:e.curToken,okTerm:e.curTerm,skippedTerms:0,skippedTokens:[]}),c.editor.askRefresh()}(),r+" outofsync"):(c.editor.askRefresh(),r)}return r}var a=1e3;t.defineOption("prologHighlightServer",!1,function(t,r,o){function a(){i(t)}t.state.prologHighlightServer?null==r?(i(t),t.off("change",n),window.removeEventListener("unload",a),delete t.state.prologHighlightServer,t.setOption("mode",{name:"prolog"})):r.enabled!=o.enabled&&(t.state.prologHighlightServer.enabled=r.enabled,r.enabled?(t.on("change",n),window.addEventListener("unload",a),t.lineCount()>0&&t.serverAssistedHighlight(!0)):(i(t),t.off("change",n),window.removeEventListener("unload",a),t.setOption("mode",{name:"prolog"}))):r&&(t.state.prologHighlightServer=new e(r),t.state.prologHighlightServer.enabled&&(t.on("change",n),window.addEventListener("unload",a),t.lineCount()>0&&t.serverAssistedHighlight(!0)))}),t.prototype.askRefresh=function(t){var e=this,n=e.state.prologHighlightServer;null!=n&&(void 0===t&&(t=n.delay),n.tmo&&clearTimeout(n.tmo),n.tmo=setTimeout(function(){e.serverAssistedHighlight()},t))},t.prototype.serverAssistedHighlight=function(t){function e(){var t=n.getOption("mode");return"object"!=typeof t?t={name:"prolog",enrich:o,editor:n}:t.enrich||(t.enrich=o,t.editor=n),t}var n=this,i=n.state.prologHighlightServer,a={};if(i.tmo=null,null!=i&&null!=i.url&&i.enabled&&(!n.isClean(i.generationFromServer)||t)){if(i.uuid)a.uuid=i.uuid,void 0==i.changes?(a.text=n.getValue(),a.text.length>1e3&&(i.changes=[])):(a.changes=i.changes,i.changes=[]);else{if(a.text=n.getValue(),""==a.text.trim())return;i.uuid=r(),a.uuid=i.uuid}a.role=i.role,"function"==typeof i.sourceID&&(a.sourceID=i.sourceID()),i.generationFromServer=n.changeGeneration(),$.ajax({url:i.url.tokens,dataType:"json",contentType:"application/json",type:"POST",data:JSON.stringify(a),success:function(t,i){var r=e();r.metainfo=t.tokens,n.setOption("mode",r)},error:function(t){409==t.status&&delete i.uuid}})}},t.commands.refreshHighlight=function(t){t.serverAssistedHighlight(!0)};var s={var:"var",atom:"atom",qatom:"qatom",bqstring:"string",symbol:"atom",functor:"functor",tag:"tag",number:"number",string:"string",code:"number","neg-number":"number","pos-number":"number",list_open:"list_open",list_close:"list_close",qq_open:"qq_open",qq_sep:"qq_sep",qq_close:"qq_close",dict_open:"dict_open",dict_close:"dict_close",brace_term_open:"brace_term_open",brace_term_close:"brace_term_close",neck:"neck",fullstop:"fullstop"},l={var:"var",singleton:"var",uatom:"var",atom:"atom",qatom:"qatom",string:"string",codes:"string",chars:"string",functor:"functor",tag:"tag",control:"atom",meta:"atom",op_type:"atom",int:"number",float:"number",key:"atom",sep:"atom",ext_quant:"atom",expanded:"expanded",comment_string:"string",identifier:"atom",delimiter:"atom",module:"atom",constraint:"atom",head_exported:"atom",head_public:"atom",head_extern:"atom",head_dynamic:"atom",head_multifile:"atom",head_unreferenced:"atom",head_hook:"atom",head_meta:"atom",head_constraint:"atom",head_imported:"atom",head_built_in:"atom",head_iso:"atom",head_def_iso:"atom",head_def_swi:"atom",head:"atom",goal_built_in:"atom",goal_imported:"atom",goal_autoload:"atom",goal_global:"atom",goal_undefined:"atom",goal_thread_local:"atom",goal_dynamic:"atom",goal_multifile:"atom",goal_expanded:"atom",goal_extern:"atom",goal_recursion:"atom",goal_meta:"atom",goal_foreign:"atom",goal_local:"atom",goal_constraint:"atom",goal_not_callable:"atom",xpce_method:"functor",xpce_class_builtin:"atom",xpce_class_lib:"atom",xpce_class_user:"atom",xpce_class_undef:"atom",option_name:"atom",no_option_name:"atom",flag_name:"atom",no_flag_name:"atom",file_no_depends:"atom",file:"atom",nofile:"atom",list_open:"list_open",list_close:"list_close",qq_open:"qq_open",qq_sep:"qq_sep",qq_close:"qq_close",qq_type:"atom",dict_open:"dict_open",dict_close:"dict_close",brace_term_open:"brace_term_open",brace_term_close:"brace_term_close",neck:"neck",fullstop:"fullstop",string_terminal:"string",html:"functor",entity:"atom",html_attribute:"functor",sgml_attr_function:"atom",http_location_for_id:"atom",http_no_location_for_id:"atom"};t.prototype.getEnrichedToken=function(t){if(null!=t.state.curTerm&&null!=t.state.curToken){var e,n=this.getOption("mode");if(n.metainfo&&(e=n.metainfo[t.state.curTerm]))return e[t.state.curToken-1]}},t.prototype.tokenInfo=function(t,e){var n=this.state.prologHighlightServer;return e||(e=$($.el.span({class:"token-info"},"..."))),$.ajax({url:n.url.info,data:t,success:function(t){e.html(t)}}),e[0]},t.prototype.getTokenReferences=function(t){function e(t,e){if(e&&0==e.indexOf("swish://"))return t.file=e.substring(8),!0}var n=[];switch(t.type){case"goal_local":var i={title:"Source for "+t.text+"/"+t.arity,line:t.line,regex:new RegExp("\\b"+RegExp.escape(t.text),"g"),showAllMatches:!0};e(i,t.file),n.push(i);break;case"file":var i={};e(i,t.path)&&(i.title="Included file "+i.file,n.push(i))}return n}}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/xml/xml",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",function(i,r){function o(t,e){function n(n){return e.tokenize=n,n(t,e)}var i=t.next();if("<"==i)return t.eat("!")?t.eat("[")?t.match("CDATA[")?n(l("atom","]]>")):null:t.match("--")?n(l("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(c(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=l("meta","?>"),"meta"):(k=t.eat("/")?"closeTag":"openTag",e.tokenize=a,"tag bracket");if("&"==i){var r;return r=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),r?"atom":"error"}return t.eatWhile(/[^&<]/),null}function a(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=o,k=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return k="equals",null;if("<"==n){e.tokenize=o,e.state=f,e.tagName=e.tagStart=null;var i=e.tokenize(t,e);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=s(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=a;break}return"string"};return e.isInAttribute=!0,e}function l(t,e){return function(n,i){for(;!n.eol();){if(n.match(e)){i.tokenize=o;break}n.next()}return t}}function c(t){return function(e,n){for(var i;null!=(i=e.next());){if("<"==i)return n.tokenize=c(t+1),n.tokenize(e,n);if(">"==i){if(1==t){n.tokenize=o;break}return n.tokenize=c(t-1),n.tokenize(e,n)}}return"meta"}}function u(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(S.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function h(t){t.context&&(t.context=t.context.prev)}function d(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!S.contextGrabbers.hasOwnProperty(n)||!S.contextGrabbers[n].hasOwnProperty(e))return;h(t)}}function f(t,e,n){return"openTag"==t?(n.tagStart=e.column(),p):"closeTag"==t?g:f}function p(t,e,n){return"word"==t?(n.tagName=e.current(),A="tag",y):S.allowMissingTagName&&"endTag"==t?(A="tag bracket",y(t,e,n)):(A="error",p)}function g(t,e,n){if("word"==t){var i=e.current();return n.context&&n.context.tagName!=i&&S.implicitlyClosed.hasOwnProperty(n.context.tagName)&&h(n),n.context&&n.context.tagName==i||!1===S.matchClosing?(A="tag",m):(A="tag error",v)}return S.allowMissingTagName&&"endTag"==t?(A="tag bracket",m(t,e,n)):(A="error",v)}function m(t,e,n){return"endTag"!=t?(A="error",m):(h(n),f)}function v(t,e,n){return A="error",m(t,e,n)}function y(t,e,n){if("word"==t)return A="attribute",x;if("endTag"==t||"selfcloseTag"==t){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||S.autoSelfClosers.hasOwnProperty(i)?d(n,i):(d(n,i),n.context=new u(n,i,r==n.indented)),f}return A="error",y}function x(t,e,n){return"equals"==t?b:(S.allowMissing||(A="error"),y(t,e,n))}function b(t,e,n){return"string"==t?w:"word"==t&&S.allowUnquoted?(A="string",y):(A="error",y(t,e,n))}function w(t,e,n){return"string"==t?w:y(t,e,n)}var _=i.indentUnit,S={},C=r.htmlMode?e:n;for(var T in C)S[T]=C[T];for(var T in r)S[T]=r[T];var k,A;return o.isInText=!0,{startState:function(t){var e={tokenize:o,state:f,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;k=null;var n=e.tokenize(t,e);return(n||k)&&"comment"!=n&&(A=null,e.state=e.state(k||n,t,e),A&&(n="error"==A?n+" error":A)),n},indent:function(e,n,i){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+_;if(r&&r.noIndent)return t.Pass;if(e.tokenize!=a&&e.tokenize!=o)return i?i.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==S.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+_*(S.multilineTagIndentFactor||1);if(S.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;r;){if(r.tagName==s[2]){r=r.prev;break}if(!S.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(s)for(;r;){var l=S.contextGrabbers[r.tagName];if(!l||!l.hasOwnProperty(s[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+_:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:S.htmlMode?"html":"xml",helperType:S.htmlMode?"html":"xml",skipAttribute:function(t){t.state==b&&(t.state=y)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/mode/meta",["../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",
-mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.mime==e)return i;if(i.mimes)for(var r=0;r<i.mimes.length;r++)if(i.mimes[r]==e)return i}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.ext)for(var r=0;r<i.ext.length;r++)if(i.ext[r]==e)return i}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.file&&i.file.test(e))return i}var r=e.lastIndexOf("."),o=r>-1&&e.substring(r+1,e.length);if(o)return t.findModeByExtension(o)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var i=t.modeInfo[n];if(i.name.toLowerCase()==e)return i;if(i.alias)for(var r=0;r<i.alias.length;r++)if(i.alias[r].toLowerCase()==e)return i}}}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../xml/xml"),require("../meta")):"function"==typeof define&&define.amd?define("cm/mode/markdown/markdown",["../../lib/codemirror","../xml/xml","../meta"],t):t(CodeMirror)}(function(t){"use strict";t.defineMode("markdown",function(e,n){function i(n){if(t.findModeByName){var i=t.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=t.getMode(e,n);return"null"==r.name?null:r}function r(t,e,n){return e.f=e.inline=n,n(t,e)}function o(t,e,n){return e.f=e.block=n,n(t,e)}function a(t){return!t||!/\S/.test(t.string)}function s(t){return t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==c&&(t.f=f,t.block=l),t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function l(e,o){var s=e.column()===o.indentation,l=a(o.prevLine.stream),c=o.indentedCode,d=o.prevLine.hr,f=!1!==o.list,p=(o.listStack[o.listStack.length-1]||0)+3;o.indentedCode=!1;var g=o.indentation;if(null===o.indentationDiff&&(o.indentationDiff=o.indentation,f)){for(o.em=!1,o.strong=!1,o.code=!1,o.strikethrough=!1,o.list=null;g<o.listStack[o.listStack.length-1];)o.listStack.pop(),o.listStack.length?o.indentation=o.listStack[o.listStack.length-1]:o.list=!1;!1!==o.list&&(o.indentationDiff=g-o.listStack[o.listStack.length-1])}var m=!(l||d||o.prevLine.header||f&&c||o.prevLine.fencedCodeEnd),y=(!1===o.list||d||l)&&o.indentation<=p&&e.match(C),x=null;if(o.indentationDiff>=4&&(c||o.prevLine.fencedCodeEnd||o.prevLine.header||l))return e.skipToEnd(),o.indentedCode=!0,_.code;if(e.eatSpace())return null;if(s&&o.indentation<=p&&(x=e.match(A))&&x[1].length<=6)return o.quote=0,o.header=x[1].length,o.thisLine.header=!0,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,h(o);if(o.indentation<=p&&e.eat(">"))return o.quote=s?1:o.quote+1,n.highlightFormatting&&(o.formatting="quote"),e.eatSpace(),h(o);if(!y&&!o.setext&&s&&o.indentation<=p&&(x=e.match(T))){var b=x[1]?"ol":"ul";return o.indentation=g+e.current().length,o.list=!0,o.quote=0,o.listStack.push(o.indentation),n.taskLists&&e.match(k,!1)&&(o.taskList=!0),o.f=o.inline,n.highlightFormatting&&(o.formatting=["list","list-"+b]),h(o)}return s&&o.indentation<=p&&(x=e.match(L,!0))?(o.quote=0,o.fencedEndRE=new RegExp(x[1]+"+ *$"),o.localMode=n.fencedCodeBlockHighlighting&&i(x[2]),o.localMode&&(o.localState=t.startState(o.localMode)),o.f=o.block=u,n.highlightFormatting&&(o.formatting="code-block"),o.code=-1,h(o)):o.setext||!(m&&f||o.quote||!1!==o.list||o.code||y||P.test(e.string))&&(x=e.lookAhead(1))&&(x=x.match(M))?(o.setext?(o.header=o.setext,o.setext=0,e.skipToEnd(),n.highlightFormatting&&(o.formatting="header")):(o.header="="==x[0].charAt(0)?1:2,o.setext=o.header),o.thisLine.header=!0,o.f=o.inline,h(o)):y?(e.skipToEnd(),o.hr=!0,o.thisLine.hr=!0,_.hr):"["===e.peek()?r(e,o,v):r(e,o,o.inline)}function c(e,n){var i=b.token(e,n.htmlState);if(!w){var r=t.innerMode(b,n.htmlState);("xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=f,n.block=l,n.htmlState=null)}return i}function u(t,e){var i=e.listStack[e.listStack.length-1]||0,r=e.indentation<i,a=i+3;if(e.fencedEndRE&&e.indentation<=a&&(r||t.match(e.fencedEndRE))){n.highlightFormatting&&(e.formatting="code-block");var s;return r||(s=h(e)),e.localMode=e.localState=null,e.block=l,e.f=f,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,r?o(t,e,e.block):s}return e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),_.code)}function h(t){var e=[];if(t.formatting){e.push(_.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var i=0;i<t.formatting.length;i++)e.push(_.formatting+"-"+t.formatting[i]),"header"===t.formatting[i]&&e.push(_.formatting+"-"+t.formatting[i]+"-"+t.header),"quote"===t.formatting[i]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(_.formatting+"-"+t.formatting[i]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(_.linkHref,"url"):(t.strong&&e.push(_.strong),t.em&&e.push(_.em),t.strikethrough&&e.push(_.strikethrough),t.emoji&&e.push(_.emoji),t.linkText&&e.push(_.linkText),t.code&&e.push(_.code),t.image&&e.push(_.image),t.imageAltText&&e.push(_.imageAltText,"link"),t.imageMarker&&e.push(_.imageMarker)),t.header&&e.push(_.header,_.header+"-"+t.header),t.quote&&(e.push(_.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(_.quote+"-"+t.quote):e.push(_.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var r=(t.listStack.length-1)%3;r?1===r?e.push(_.list2):e.push(_.list3):e.push(_.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function d(t,e){if(t.match(E,!0))return h(e)}function f(e,i){var r=i.text(e,i);if(void 0!==r)return r;if(i.list)return i.list=null,h(i);if(i.taskList){return" "===e.match(k,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,h(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),h(i);var a=e.next();if(i.linkTitle){i.linkTitle=!1;var s=a;"("===a&&(s=")"),s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var l="^\\s*(?:[^"+s+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(l),!0))return _.linkHref}if("`"===a){var u=i.formatting;n.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var m=h(i);return i.code=0,m}return i.formatting=u,h(i)}return i.code=d,h(i)}if(i.code)return h(i);if("\\"===a&&(e.next(),n.highlightFormatting)){var v=h(i),y=_.formatting+"-escape";return v?v+" "+y:y}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),h(i);if("["===a&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),h(i);if("]"===a&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var v=h(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=g,v}if("["===a&&!i.image)return i.linkText=!0,n.highlightFormatting&&(i.formatting="link"),h(i);if("]"===a&&i.linkText){n.highlightFormatting&&(i.formatting="link");var v=h(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?g:f,v}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=p,n.highlightFormatting&&(i.formatting="link");var v=h(i);return v?v+=" ":v="",v+_.linkInline}if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=p,n.highlightFormatting&&(i.formatting="link");var v=h(i);return v?v+=" ":v="",v+_.linkEmail}if(n.xml&&"<"===a&&e.match(/^(!--|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*>)/i,!1)){var x=e.string.indexOf(">",e.pos);if(-1!=x){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(e.string.substring(e.start,x))&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=t.startState(b),o(e,i,c)}if(n.xml&&"<"===a&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===a||"_"===a){for(var w=1,S=1==e.pos?" ":e.string.charAt(e.pos-2);w<3&&e.eat(a);)w++;var C=e.peek()||" ",T=!/\s/.test(C)&&(!N.test(C)||/\s/.test(S)||N.test(S)),A=!/\s/.test(S)&&(!N.test(S)||/\s/.test(C)||N.test(C)),M=null,E=null;if(w%2&&(i.em||!T||"*"!==a&&A&&!N.test(S)?i.em!=a||!A||"*"!==a&&T&&!N.test(C)||(M=!1):M=!0),w>1&&(i.strong||!T||"*"!==a&&A&&!N.test(S)?i.strong!=a||!A||"*"!==a&&T&&!N.test(C)||(E=!1):E=!0),null!=E||null!=M){n.highlightFormatting&&(i.formatting=null==M?"strong":null==E?"em":"strong em"),!0===M&&(i.em=a),!0===E&&(i.strong=a);var m=h(i);return!1===M&&(i.em=!1),!1===E&&(i.strong=!1),m}}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return h(i);e.backUp(1)}if(n.strikethrough)if("~"===a&&e.eatWhile(a)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");var m=h(i);return i.strikethrough=!1,m}if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),h(i)}else if(" "===a&&e.match(/^~~/,!0)){if(" "===e.peek())return h(i);e.backUp(2)}if(n.emoji&&":"===a&&e.match(/^[a-z_\d+-]+:/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var L=h(i);return i.emoji=!1,L}return" "===a&&(e.match(/ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),h(i)}function p(t,e){if(">"===t.next()){e.f=e.inline=f,n.highlightFormatting&&(e.formatting="link");var i=h(e);return i?i+=" ":i="",i+_.linkInline}return t.match(/^[^>]+/,!0),_.linkInline}function g(t,e){if(t.eatSpace())return null;var i=t.next();return"("===i||"["===i?(e.f=e.inline=m("("===i?")":"]"),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,h(e)):"error"}function m(t){return function(e,i){if(e.next()===t){i.f=i.inline=f,n.highlightFormatting&&(i.formatting="link-string");var r=h(i);return i.linkHref=!1,r}return e.match(O[t]),i.linkHref=!0,h(i)}}function v(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=y,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,h(e)):r(t,e,f)}function y(t,e){if(t.match(/^\]:/,!0)){e.f=e.inline=x,n.highlightFormatting&&(e.formatting="link");var i=h(e);return e.linkText=!1,i}return t.match(/^([^\]\\]|\\.)+/,!0),_.linkText}function x(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),e.f=e.inline=f,_.linkHref+" url")}var b=t.getMode(e,"text/html"),w="null"==b.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var _={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var S in _)_.hasOwnProperty(S)&&n.tokenTypeOverrides[S]&&(_[S]=n.tokenTypeOverrides[S]);var C=/^([*\-_])(?:\s*\1){2,}\s*$/,T=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,k=/^\[(x| )\](?=\s)/i,A=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,M=/^ *(?:\={1,}|-{1,})\s*$/,E=/^[^#!\[\]*_\\<>` "'(~:]+/,L=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,P=/^\s*\[[^\]]+?\]:.*$/,N=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/,O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},R={startState:function(){return{f:l,prevLine:{stream:null},thisLine:{stream:null},block:l,htmlState:null,indentation:0,inline:f,text:d,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(b,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return s(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=c)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==c?{state:t.htmlState,mode:b}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:R}},indent:function(e,n,i){return e.block==c&&b.indent?b.indent(e.htmlState,n,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,i):t.Pass},blankLine:s,getType:h,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return R},"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/edit/matchbrackets",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){function e(t,e,i){var r=t.getLineHandle(e.line),o=e.ch-1,l=i&&i.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=!l&&o>=0&&s[r.text.charAt(o)]||s[r.text.charAt(++o)];if(!c)return null;var u=">"==c.charAt(1)?1:-1;if(i&&i.strict&&u>0!=(o==e.ch))return null;var h=t.getTokenTypeAt(a(e.line,o+1)),d=n(t,a(e.line,o+(u>0?1:0)),u,h||null,i);return null==d?null:{from:a(e.line,o),to:d&&d.pos,match:d&&d.ch==c.charAt(0),forward:u>0}}function n(t,e,n,i,r){for(var o=r&&r.maxScanLineLength||1e4,l=r&&r.maxScanLines||1e3,c=[],u=r&&r.bracketRegex?r.bracketRegex:/[(){}[\]]/,h=n>0?Math.min(e.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,e.line-l),d=e.line;d!=h;d+=n){var f=t.getLine(d);if(f){var p=n>0?0:f.length-1,g=n>0?f.length:-1;if(!(f.length>o))for(d==e.line&&(p=e.ch-(n<0?1:0));p!=g;p+=n){var m=f.charAt(p);if(u.test(m)&&(void 0===i||t.getTokenTypeAt(a(d,p+1))==i)){var v=s[m];if(">"==v.charAt(1)==n>0)c.push(m);else{if(!c.length)return{pos:a(d,p),ch:m};c.pop()}}}}}return d-n!=(n>0?t.lastLine():t.firstLine())&&null}function i(t,n,i){for(var r=t.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=t.listSelections(),c=0;c<l.length;c++){var u=l[c].empty()&&e(t,l[c].head,i);if(u&&t.getLine(u.from.line).length<=r){var h=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(t.markText(u.from,a(u.from.line,u.from.ch+1),{className:h})),u.to&&t.getLine(u.to.line).length<=r&&s.push(t.markText(u.to,a(u.to.line,u.to.ch+1),{className:h}))}}if(s.length){o&&t.state.focused&&t.focus();var d=function(){t.operation(function(){for(var t=0;t<s.length;t++)s[t].clear()})};if(!n)return d;setTimeout(d,800)}}function r(t){t.operation(function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=i(t,!1,t.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),a=t.Pos,s={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"};t.defineOption("matchBrackets",!1,function(e,n,i){i&&i!=t.Init&&(e.off("cursorActivity",r),e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)),n&&(e.state.matchBrackets="object"==typeof n?n:{},e.on("cursorActivity",r))}),t.defineExtension("matchBrackets",function(){i(this,!0)}),t.defineExtension("findMatchingBracket",function(t,n,i){return(i||"boolean"==typeof n)&&(i?(i.strict=n,n=i):n=n?{strict:!0}:null),e(this,t,n)}),t.defineExtension("scanForBracket",function(t,e,i,r){return n(this,t,e,i,r)})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/comment/continuecomment",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){function e(e){if(e.getOption("disableInput"))return t.Pass;for(var i,r=e.listSelections(),o=[],a=0;a<r.length;a++){var s=r[a].head;if(!/\bcomment\b/.test(e.getTokenTypeAt(s)))return t.Pass;var l=e.getModeAt(s);if(i){if(i!=l)return t.Pass}else i=l;var c=null;if(i.blockCommentStart&&i.blockCommentContinue){var u,h=e.getLine(s.line).slice(0,s.ch),d=h.lastIndexOf(i.blockCommentEnd);if(-1!=d&&d==s.ch-i.blockCommentEnd.length);else if((u=h.lastIndexOf(i.blockCommentStart))>-1&&u>d){if(c=h.slice(0,u),/\S/.test(c)){c="";for(var f=0;f<u;++f)c+=" "}}else(u=h.indexOf(i.blockCommentContinue))>-1&&!/\S/.test(h.slice(0,u))&&(c=h.slice(0,u));null!=c&&(c+=i.blockCommentContinue)}if(null==c&&i.lineComment&&n(e)){var h=e.getLine(s.line),u=h.indexOf(i.lineComment);u>-1&&(c=h.slice(0,u),/\S/.test(c)?c=null:c+=i.lineComment+h.slice(u+i.lineComment.length).match(/^\s*/)[0])}if(null==c)return t.Pass;o[a]="\n"+c}e.operation(function(){for(var t=r.length-1;t>=0;t--)e.replaceRange(o[t],r[t].from(),r[t].to(),"+insert")})}function n(t){var e=t.getOption("continueComments");return!e||"object"!=typeof e||!1!==e.continueLineComment}t.defineOption("continueComments",null,function(n,i,r){if(r&&r!=t.Init&&n.removeKeyMap("continueComment"),i){var o="Enter";"string"==typeof i?o=i:"object"==typeof i&&i.key&&(o=i.key);var a={name:"continueComment"};a[o]=e,n.addKeyMap(a)}})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/comment/comment",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t){var e=t.search(o);return-1==e?0:e}function n(t,e,n){return/\bstring\b/.test(t.getTokenTypeAt(a(e.line,0)))&&!/^[\'\"\`]/.test(n)}function i(t,e){var n=t.getMode();return!1!==n.useInnerComments&&n.innerMode?t.getModeAt(e):n}var r={},o=/[^\s\u00a0]/,a=t.Pos;t.commands.toggleComment=function(t){t.toggleComment()},t.defineExtension("toggleComment",function(t){t||(t=r);for(var e=this,n=1/0,i=this.listSelections(),o=null,s=i.length-1;s>=0;s--){var l=i[s].from(),c=i[s].to();l.line>=n||(c.line>=n&&(c=a(n,0)),n=l.line,null==o?e.uncomment(l,c,t)?o="un":(e.lineComment(l,c,t),o="line"):"un"==o?e.uncomment(l,c,t):e.lineComment(l,c,t))}}),t.defineExtension("lineComment",function(t,s,l){l||(l=r);var c=this,u=i(c,t),h=c.getLine(t.line);if(null!=h&&!n(c,t,h)){var d=l.lineComment||u.lineComment;if(!d)return void((l.blockCommentStart||u.blockCommentStart)&&(l.fullLines=!0,c.blockComment(t,s,l)));var f=Math.min(0!=s.ch||s.line==t.line?s.line+1:s.line,c.lastLine()+1),p=null==l.padding?" ":l.padding,g=l.commentBlankLines||t.line==s.line;c.operation(function(){if(l.indent){for(var n=null,i=t.line;i<f;++i){var r=c.getLine(i),s=r.slice(0,e(r));(null==n||n.length>s.length)&&(n=s)}for(var i=t.line;i<f;++i){var r=c.getLine(i),u=n.length;(g||o.test(r))&&(r.slice(0,u)!=n&&(u=e(r)),c.replaceRange(n+d+p,a(i,0),a(i,u)))}}else for(var i=t.line;i<f;++i)(g||o.test(c.getLine(i)))&&c.replaceRange(d+p,a(i,0))})}}),t.defineExtension("blockComment",function(t,e,n){n||(n=r);var s=this,l=i(s,t),c=n.blockCommentStart||l.blockCommentStart,u=n.blockCommentEnd||l.blockCommentEnd;if(!c||!u)return void((n.lineComment||l.lineComment)&&0!=n.fullLines&&s.lineComment(t,e,n));if(!/\bcomment\b/.test(s.getTokenTypeAt(a(t.line,0)))){var h=Math.min(e.line,s.lastLine());h!=t.line&&0==e.ch&&o.test(s.getLine(h))&&--h;var d=null==n.padding?" ":n.padding;t.line>h||s.operation(function(){if(0!=n.fullLines){var i=o.test(s.getLine(h));s.replaceRange(d+u,a(h)),s.replaceRange(c+d,a(t.line,0));var r=n.blockCommentLead||l.blockCommentLead;if(null!=r)for(var f=t.line+1;f<=h;++f)(f!=h||i)&&s.replaceRange(r+d,a(f,0))}else s.replaceRange(u,e),s.replaceRange(c,t)})}}),t.defineExtension("uncomment",function(t,e,n){n||(n=r);var s,l=this,c=i(l,t),u=Math.min(0!=e.ch||e.line==t.line?e.line:e.line-1,l.lastLine()),h=Math.min(t.line,u),d=n.lineComment||c.lineComment,f=[],p=null==n.padding?" ":n.padding;t:if(d){for(var g=h;g<=u;++g){var m=l.getLine(g),v=m.indexOf(d);if(v>-1&&!/comment/.test(l.getTokenTypeAt(a(g,v+1)))&&(v=-1),-1==v&&o.test(m))break t;if(v>-1&&o.test(m.slice(0,v)))break t;f.push(m)}if(l.operation(function(){for(var t=h;t<=u;++t){var e=f[t-h],n=e.indexOf(d),i=n+d.length;n<0||(e.slice(i,i+p.length)==p&&(i+=p.length),s=!0,l.replaceRange("",a(t,n),a(t,i)))}}),s)return!0}var y=n.blockCommentStart||c.blockCommentStart,x=n.blockCommentEnd||c.blockCommentEnd;if(!y||!x)return!1;var b=n.blockCommentLead||c.blockCommentLead,w=l.getLine(h),_=w.indexOf(y);if(-1==_)return!1;var S=u==h?w:l.getLine(u),C=S.indexOf(x,u==h?_+y.length:0),T=a(h,_+1),k=a(u,C+1);if(-1==C||!/comment/.test(l.getTokenTypeAt(T))||!/comment/.test(l.getTokenTypeAt(k))||l.getRange(T,k,"\n").indexOf(x)>-1)return!1;var A=w.lastIndexOf(y,t.ch),M=-1==A?-1:w.slice(0,t.ch).indexOf(x,A+y.length);if(-1!=A&&-1!=M&&M+x.length!=t.ch)return!1;M=S.indexOf(x,e.ch);var E=S.slice(e.ch).lastIndexOf(y,M-e.ch);return A=-1==M||-1==E?-1:e.ch+E,(-1==M||-1==A||A==e.ch)&&(l.operation(function(){l.replaceRange("",a(u,C-(p&&S.slice(C-p.length,C)==p?p.length:0)),a(u,C+x.length));var t=_+y.length;if(p&&w.slice(t,t+p.length)==p&&(t+=p.length),l.replaceRange("",a(h,_),a(h,t)),b)for(var e=h+1;e<=u;++e){var n=l.getLine(e),i=n.indexOf(b);if(-1!=i&&!o.test(n.slice(0,i))){var r=i+b.length;p&&n.slice(r,r+p.length)==p&&(r+=p.length),l.replaceRange("",a(e,i),a(e,r))}}}),!0)})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/hint/show-hint",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t,e){this.cm=t,this.options=e,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}function n(t,e,n){var i=t.options.hintOptions,r={};for(var o in p)r[o]=p[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(t,e)),r}function i(t){return"string"==typeof t?t:t.text}function r(t,e){function n(t,n){var r;r="string"!=typeof n?function(t){return n(t,e)}:i.hasOwnProperty(n)?i[n]:n,o[t]=r}var i={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(1-e.menuSize(),!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},r=t.options.customKeys,o=r?{}:i;if(r)for(var a in r)r.hasOwnProperty(a)&&n(a,r[a]);var s=t.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&n(a,s[a]);return o}function o(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(e,n){this.completion=e,this.data=n,this.picked=!1;var a=this,s=e.cm,l=this.hints=document.createElement("ul");l.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var c=n.list,d=0;d<c.length;++d){var f=l.appendChild(document.createElement("li")),p=c[d],g=u+(d!=this.selectedHint?"":" "+h);null!=p.className&&(g=p.className+" "+g),f.className=g,p.render?p.render(f,n,p):f.appendChild(document.createTextNode(p.displayText||i(p))),f.hintId=d}var m=s.cursorCoords(e.options.alignWithWord?n.from:null),v=m.left,y=m.bottom,x=!0;l.style.left=v+"px",l.style.top=y+"px";var b=window.innerWidth||Math.max(document.body.offsetWidth,document.documentElement.offsetWidth),w=window.innerHeight||Math.max(document.body.offsetHeight,document.documentElement.offsetHeight);(e.options.container||document.body).appendChild(l);var _=l.getBoundingClientRect(),S=_.bottom-w,C=l.scrollHeight>l.clientHeight+1,T=s.getScrollInfo();if(S>0){var k=_.bottom-_.top;if(m.top-(m.bottom-_.top)-k>0)l.style.top=(y=m.top-k)+"px",x=!1;else if(k>w){l.style.height=w-5+"px",l.style.top=(y=m.bottom-_.top)+"px";var A=s.getCursor();n.from.ch!=A.ch&&(m=s.cursorCoords(A),l.style.left=(v=m.left)+"px",_=l.getBoundingClientRect())}}var M=_.right-b;if(M>0&&(_.right-_.left>b&&(l.style.width=b-5+"px",M-=_.right-_.left-b),l.style.left=(v=m.left-M)+"px"),C)for(var E=l.firstChild;E;E=E.nextSibling)E.style.paddingRight=s.display.nativeBarWidth+"px";if(s.addKeyMap(this.keyMap=r(e,{moveFocus:function(t,e){a.changeActive(a.selectedHint+t,e)},setFocus:function(t){a.changeActive(t)},menuSize:function(){return a.screenAmount()},length:c.length,close:function(){e.close()},pick:function(){a.pick()},data:n})),e.options.closeOnUnfocus){var L;s.on("blur",this.onBlur=function(){L=setTimeout(function(){e.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(L)})}return s.on("scroll",this.onScroll=function(){var t=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),i=y+T.top-t.top,r=i-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(x||(r+=l.offsetHeight),r<=n.top||r>=n.bottom)return e.close();l.style.top=i+"px",l.style.left=v+T.left-t.left+"px"}),t.on(l,"dblclick",function(t){var e=o(l,t.target||t.srcElement);e&&null!=e.hintId&&(a.changeActive(e.hintId),a.pick())}),t.on(l,"click",function(t){var n=o(l,t.target||t.srcElement);n&&null!=n.hintId&&(a.changeActive(n.hintId),e.options.completeOnSingleClick&&a.pick())}),t.on(l,"mousedown",function(){setTimeout(function(){s.focus()},20)}),t.signal(n,"select",c[this.selectedHint],l.childNodes[this.selectedHint]),!0}function s(t,e){if(!t.somethingSelected())return e;for(var n=[],i=0;i<e.length;i++)e[i].supportsSelection&&n.push(e[i]);return n}function l(t,e,n,i){if(t.async)t(e,i,n);else{var r=t(e,n);r&&r.then?r.then(i):i(r)}}function c(e,n){var i,r=e.getHelpers(n,"hint");if(r.length){var o=function(t,e,n){function i(r){if(r==o.length)return e(null);l(o[r],t,n,function(t){t&&t.list.length>0?e(t):i(r+1)})}var o=s(t,r);i(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:i})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}var u="CodeMirror-hint",h="CodeMirror-hint-active";t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var i={hint:e};if(n)for(var r in n)i[r]=n[r];return t.showHint(i)},t.defineExtension("showHint",function(i){i=n(this,this.getCursor("start"),i);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!i.hint.supportsSelection)return;for(var o=0;o<r.length;o++)if(r[o].head.line!=r[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new e(this,i);a.options.hint&&(t.signal(this,"startCompletion",this),a.update(!0))}});var d=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},f=window.cancelAnimationFrame||clearTimeout;e.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(e,n){var r=e.list[n];r.hint?r.hint(this.cm,e,r):this.cm.replaceRange(i(r),r.from||e.from,r.to||e.to,"complete"),t.signal(e,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(f(this.debounce),this.debounce=0);var t=this.cm.getCursor(),e=this.cm.getLine(t.line);if(t.line!=this.startPos.line||e.length-t.ch!=this.startLen-this.startPos.ch||t.ch<this.startPos.ch||this.cm.somethingSelected()||t.ch&&this.options.closeCharacters.test(e.charAt(t.ch-1)))this.close();else{var n=this;this.debounce=d(function(){n.update()}),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var e=this,n=++this.tick;l(this.options.hint,this.cm,this.options,function(i){e.tick==n&&e.finishUpdate(i,t)})}},finishUpdate:function(e,n){this.data&&t.signal(this.data,"update");var i=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=e,e&&e.list.length&&(i&&1==e.list.length?this.pick(e,0):(this.widget=new a(this,e),t.signal(e,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(e,n){if(e>=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var i=this.hints.childNodes[this.selectedHint];i.className=i.className.replace(" "+h,""),i=this.hints.childNodes[this.selectedHint=e],i.className+=" "+h,i.offsetTop<this.hints.scrollTop?this.hints.scrollTop=i.offsetTop-3:i.offsetTop+i.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:c}),t.registerHelper("hint","fromList",function(e,n){var i,r=e.getCursor(),o=e.getTokenAt(r),a=t.Pos(r.line,o.start),s=r;o.start<r.ch&&/\w/.test(o.string.charAt(r.ch-o.start-1))?i=o.string.substr(0,r.ch-o.start):(i="",a=r);for(var l=[],c=0;c<n.words.length;c++){var u=n.words[c];u.slice(0,i.length)==i&&l.push(u)}if(l.length)return{list:l,from:a,to:s}}),t.commands.autocomplete=t.showHint;var p={hint:t.hint.auto,
-completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/hint/anyword-hint",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";var e=/[\w$]+/;t.registerHelper("hint","anyword",function(n,i){for(var r=i&&i.word||e,o=i&&i.range||500,a=n.getCursor(),s=n.getLine(a.line),l=a.ch,c=l;c&&r.test(s.charAt(c-1));)--c;for(var u=c!=l&&s.slice(c,l),h=i&&i.list||[],d={},f=new RegExp(r.source,"g"),p=-1;p<=1;p+=2)for(var g=a.line,m=Math.min(Math.max(g+p*o,n.firstLine()),n.lastLine())+p;g!=m;g+=p)for(var v,y=n.getLine(g);v=f.exec(y);)g==a.line&&v[0]===u||u&&0!=v[0].lastIndexOf(u,0)||Object.prototype.hasOwnProperty.call(d,v[0])||(d[v[0]]=!0,h.push(v[0]));return{list:h,from:t.Pos(a.line,c),to:t.Pos(a.line,l)}})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/display/placeholder",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder";var i=t.getOption("placeholder");"string"==typeof i&&(i=document.createTextNode(i)),n.appendChild(i),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function i(t){o(t)&&n(t)}function r(t){var i=t.getWrapperElement(),r=o(t);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?n(t):e(t)}function o(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",function(n,o,a){var s=a&&a!=t.Init;if(o&&!s)n.on("blur",i),n.on("change",r),n.on("swapDoc",r),r(n);else if(!o&&s){n.off("blur",i),n.off("change",r),n.off("swapDoc",r),e(n);var l=n.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&i(n)})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/runmode/runmode",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";t.runMode=function(e,n,i,r){var o=t.getMode(t.defaults,n),a=/MSIE \d/.test(navigator.userAgent),s=a&&(null==document.documentMode||document.documentMode<9);if(i.appendChild){var l=r&&r.tabSize||t.defaults.tabSize,c=i,u=0;c.innerHTML="",i=function(t,e){if("\n"==t)return c.appendChild(document.createTextNode(s?"\r":t)),void(u=0);for(var n="",i=0;;){var r=t.indexOf("\t",i);if(-1==r){n+=t.slice(i),u+=t.length-i;break}u+=r-i,n+=t.slice(i,r);var o=l-u%l;u+=o;for(var a=0;a<o;++a)n+=" ";i=r+1}if(e){var h=c.appendChild(document.createElement("span"));h.className="cm-"+e.replace(/ +/g," cm-"),h.appendChild(document.createTextNode(n))}else c.appendChild(document.createTextNode(n))}}for(var h=t.splitLines(e),d=r&&r.state||t.startState(o),f=0,p=h.length;f<p;++f){f&&i("\n");var g=new t.StringStream(h[f]);for(!g.string&&o.blankLine&&o.blankLine(d);!g.eol();){var m=o.token(g,d);i(g.current(),m,f,g.start,d),g.start=g.pos}}}}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/search/searchcursor",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t){var e=t.flags;return null!=e?e:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}function n(t,n){for(var i=e(t),r=i,o=0;o<n.length;o++)-1==r.indexOf(n.charAt(o))&&(r+=n.charAt(o));return i==r?t:new RegExp(t.source,r)}function i(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function r(t,e,i){e=n(e,"g");for(var r=i.line,o=i.ch,a=t.lastLine();r<=a;r++,o=0){e.lastIndex=o;var s=t.getLine(r),l=e.exec(s);if(l)return{from:g(r,l.index),to:g(r,l.index+l[0].length),match:l}}}function o(t,e,o){if(!i(e))return r(t,e,o);e=n(e,"gm");for(var a,s=1,l=o.line,c=t.lastLine();l<=c;){for(var u=0;u<s&&!(l>c);u++){var h=t.getLine(l++);a=null==a?h:a+"\n"+h}s*=2,e.lastIndex=o.ch;var d=e.exec(a);if(d){var f=a.slice(0,d.index).split("\n"),p=d[0].split("\n"),m=o.line+f.length-1,v=f[f.length-1].length;return{from:g(m,v),to:g(m+p.length-1,1==p.length?v+p[0].length:p[p.length-1].length),match:d}}}}function a(t,e){for(var n,i=0;;){e.lastIndex=i;var r=e.exec(t);if(!r)return n;if(n=r,(i=n.index+(n[0].length||1))==t.length)return n}}function s(t,e,i){e=n(e,"g");for(var r=i.line,o=i.ch,s=t.firstLine();r>=s;r--,o=-1){var l=t.getLine(r);o>-1&&(l=l.slice(0,o));var c=a(l,e);if(c)return{from:g(r,c.index),to:g(r,c.index+c[0].length),match:c}}}function l(t,e,i){e=n(e,"gm");for(var r,o=1,s=i.line,l=t.firstLine();s>=l;){for(var c=0;c<o;c++){var u=t.getLine(s--);r=null==r?u.slice(0,i.ch):u+"\n"+r}o*=2;var h=a(r,e);if(h){var d=r.slice(0,h.index).split("\n"),f=h[0].split("\n"),p=s+d.length,m=d[d.length-1].length;return{from:g(p,m),to:g(p+f.length-1,1==f.length?m+f[0].length:f[f.length-1].length),match:h}}}}function c(t,e,n,i){if(t.length==e.length)return n;for(var r=0,o=n+Math.max(0,t.length-e.length);;){if(r==o)return r;var a=r+o>>1,s=i(t.slice(0,a)).length;if(s==n)return a;s>n?o=a:r=a+1}}function u(t,e,n,i){if(!e.length)return null;var r=i?f:p,o=r(e).split(/\r|\n\r?/);t:for(var a=n.line,s=n.ch,l=t.lastLine()+1-o.length;a<=l;a++,s=0){var u=t.getLine(a).slice(s),h=r(u);if(1==o.length){var d=h.indexOf(o[0]);if(-1==d)continue t;var n=c(u,h,d,r)+s;return{from:g(a,c(u,h,d,r)+s),to:g(a,c(u,h,d+o[0].length,r)+s)}}var m=h.length-o[0].length;if(h.slice(m)==o[0]){for(var v=1;v<o.length-1;v++)if(r(t.getLine(a+v))!=o[v])continue t;var y=t.getLine(a+o.length-1),x=r(y),b=o[o.length-1];if(x.slice(0,b.length)==b)return{from:g(a,c(u,h,m,r)+s),to:g(a+o.length-1,c(y,x,b.length,r))}}}}function h(t,e,n,i){if(!e.length)return null;var r=i?f:p,o=r(e).split(/\r|\n\r?/);t:for(var a=n.line,s=n.ch,l=t.firstLine()-1+o.length;a>=l;a--,s=-1){var u=t.getLine(a);s>-1&&(u=u.slice(0,s));var h=r(u);if(1==o.length){var d=h.lastIndexOf(o[0]);if(-1==d)continue t;return{from:g(a,c(u,h,d,r)),to:g(a,c(u,h,d+o[0].length,r))}}var m=o[o.length-1];if(h.slice(0,m.length)==m){for(var v=1,n=a-o.length+1;v<o.length-1;v++)if(r(t.getLine(n+v))!=o[v])continue t;var y=t.getLine(a+1-o.length),x=r(y);if(x.slice(x.length-o[0].length)==o[0])return{from:g(a+1-o.length,c(y,x,y.length-o[0].length,r)),to:g(a,c(u,h,m.length,r))}}}}function d(t,e,i,a){this.atOccurrence=!1,this.doc=t,i=i?t.clipPos(i):g(0,0),this.pos={from:i,to:i};var c;"object"==typeof a?c=a.caseFold:(c=a,a=null),"string"==typeof e?(null==c&&(c=!1),this.matches=function(n,i){return(n?h:u)(t,e,i,c)}):(e=n(e,"gm"),a&&!1===a.multiline?this.matches=function(n,i){return(n?s:r)(t,e,i)}:this.matches=function(n,i){return(n?l:o)(t,e,i)})}var f,p,g=t.Pos;String.prototype.normalize?(f=function(t){return t.normalize("NFD").toLowerCase()},p=function(t){return t.normalize("NFD")}):(f=function(t){return t.toLowerCase()},p=function(t){return t}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){for(var n=this.matches(e,this.doc.clipPos(e?this.pos.from:this.pos.to));n&&0==t.cmpPos(n.from,n.to);)e?n.from.ch?n.from=g(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(e,this.doc.clipPos(g(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=g(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(e,g(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=g(e?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(e,n){if(this.atOccurrence){var i=t.splitLines(e);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=g(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",function(t,e,n){return new d(this.doc,t,e,n)}),t.defineDocExtension("getSearchCursor",function(t,e,n){return new d(this,t,e,n)}),t.defineExtension("selectMatches",function(e,n){for(var i=[],r=this.getSearchCursor(e,this.getCursor("from"),n);r.findNext()&&!(t.cmpPos(r.to(),this.getCursor("to"))>0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/dialog/dialog",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){function e(t,e,n){var i,r=t.getWrapperElement();return i=r.appendChild(document.createElement("div")),i.className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof e?i.innerHTML=e:i.appendChild(e),i}function n(t,e){t.state.currentNotificationClose&&t.state.currentNotificationClose(),t.state.currentNotificationClose=e}t.defineExtension("openDialog",function(i,r,o){function a(t){if("string"==typeof t)h.value=t;else{if(c)return;c=!0,l.parentNode.removeChild(l),u.focus(),o.onClose&&o.onClose(l)}}o||(o={}),n(this,null);var s,l=e(this,i,o.bottom),c=!1,u=this,h=l.getElementsByTagName("input")[0];return h?(h.focus(),o.value&&(h.value=o.value,!1!==o.selectValueOnOpen&&h.select()),o.onInput&&t.on(h,"input",function(t){o.onInput(t,h.value,a)}),o.onKeyUp&&t.on(h,"keyup",function(t){o.onKeyUp(t,h.value,a)}),t.on(h,"keydown",function(e){o&&o.onKeyDown&&o.onKeyDown(e,h.value,a)||((27==e.keyCode||!1!==o.closeOnEnter&&13==e.keyCode)&&(h.blur(),t.e_stop(e),a()),13==e.keyCode&&r(h.value,e))}),!1!==o.closeOnBlur&&t.on(h,"blur",a)):(s=l.getElementsByTagName("button")[0])&&(t.on(s,"click",function(){a(),u.focus()}),!1!==o.closeOnBlur&&t.on(s,"blur",a),s.focus()),a}),t.defineExtension("openConfirm",function(i,r,o){function a(){c||(c=!0,s.parentNode.removeChild(s),u.focus())}n(this,null);var s=e(this,i,o&&o.bottom),l=s.getElementsByTagName("button"),c=!1,u=this,h=1;l[0].focus();for(var d=0;d<l.length;++d){var f=l[d];!function(e){t.on(f,"click",function(n){t.e_preventDefault(n),a(),e&&e(u)})}(r[d]),t.on(f,"blur",function(){--h,setTimeout(function(){h<=0&&a()},200)}),t.on(f,"focus",function(){++h})}}),t.defineExtension("openNotification",function(i,r){function o(){l||(l=!0,clearTimeout(a),s.parentNode.removeChild(s))}n(this,o);var a,s=e(this,i,r&&r.bottom),l=!1,c=r&&void 0!==r.duration?r.duration:5e3;return t.on(s,"click",function(e){t.e_preventDefault(e),o()}),c&&(a=setTimeout(o,c)),o})}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define("cm/addon/search/search",["../../lib/codemirror","./searchcursor","../dialog/dialog"],t):t(CodeMirror)}(function(t){"use strict";function e(t,e){return"string"==typeof t?t=new RegExp(t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e?"gi":"g"):t.global||(t=new RegExp(t.source,t.ignoreCase?"gi":"g")),{token:function(e){t.lastIndex=e.pos;var n=t.exec(e.string);if(n&&n.index==e.pos)return e.pos+=n[0].length||1,"searching";n?e.pos=n.index:e.skipToEnd()}}}function n(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function i(t){return t.state.search||(t.state.search=new n)}function r(t){return"string"==typeof t&&t==t.toLowerCase()}function o(t,e,n){return t.getSearchCursor(e,n,{caseFold:r(e),multiline:!0})}function a(t,e,n,i,r){t.openDialog(e,i,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){p(t)},onKeyDown:r})}function s(t,e,n,i,r){t.openDialog?t.openDialog(e,r,{value:i,selectValueOnOpen:!0}):r(prompt(n,i))}function l(t,e,n,i){t.openConfirm?t.openConfirm(e,i):confirm(n)&&i[0]()}function c(t){return t.replace(/\\(.)/g,function(t,e){return"n"==e?"\n":"r"==e?"\r":e})}function u(t){var e=t.match(/^\/(.*)\/([a-z]*)$/);if(e)try{t=new RegExp(e[1],-1==e[2].indexOf("i")?"":"i")}catch(t){}else t=c(t);return("string"==typeof t?""==t:t.test(""))&&(t=/x^/),t}function h(t,n,i){n.queryText=i,n.query=u(i),t.removeOverlay(n.overlay,r(n.query)),n.overlay=e(n.query,r(n.query)),t.addOverlay(n.overlay),t.showMatchesOnScrollbar&&(n.annotate&&(n.annotate.clear(),n.annotate=null),n.annotate=t.showMatchesOnScrollbar(n.query,r(n.query)))}function d(e,n,r,o){var l=i(e);if(l.query)return f(e,n);var c=e.getSelection()||l.lastQuery;if(c instanceof RegExp&&"x^"==c.source&&(c=null),r&&e.openDialog){var u=null,d=function(n,i){t.e_stop(i),n&&(n!=l.queryText&&(h(e,l,n),l.posFrom=l.posTo=e.getCursor()),u&&(u.style.opacity=1),f(e,i.shiftKey,function(t,n){var i;n.line<3&&document.querySelector&&(i=e.display.wrapper.querySelector(".CodeMirror-dialog"))&&i.getBoundingClientRect().bottom-4>e.cursorCoords(n,"window").top&&((u=i).style.opacity=.4)}))};a(e,v,c,d,function(n,r){var o=t.keyName(n),a=e.getOption("extraKeys"),s=a&&a[o]||t.keyMap[e.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(t.e_stop(n),h(e,i(e),r),e.execCommand(s)):"find"!=s&&"findPersistent"!=s||(t.e_stop(n),d(r,n))}),o&&c&&(h(e,l,c),f(e,n))}else s(e,v,"Search for:",c,function(t){t&&!l.query&&e.operation(function(){h(e,l,t),l.posFrom=l.posTo=e.getCursor(),f(e,n)})})}function f(e,n,r){e.operation(function(){var a=i(e),s=o(e,a.query,n?a.posFrom:a.posTo);(s.find(n)||(s=o(e,a.query,n?t.Pos(e.lastLine()):t.Pos(e.firstLine(),0)),s.find(n)))&&(e.setSelection(s.from(),s.to()),e.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),r&&r(s.from(),s.to()))})}function p(t){t.operation(function(){var e=i(t);e.lastQuery=e.query,e.query&&(e.query=e.queryText=null,t.removeOverlay(e.overlay),e.annotate&&(e.annotate.clear(),e.annotate=null))})}function g(t,e,n){t.operation(function(){for(var i=o(t,e);i.findNext();)if("string"!=typeof e){var r=t.getRange(i.from(),i.to()).match(e);i.replace(n.replace(/\$(\d)/g,function(t,e){return r[e]}))}else i.replace(n)})}function m(t,e){if(!t.getOption("readOnly")){var n=t.getSelection()||i(t).lastQuery,r='<span class="CodeMirror-search-label">'+(e?"Replace all:":"Replace:")+"</span>";s(t,r+y,r,n,function(n){n&&(n=u(n),s(t,x,"Replace with:","",function(i){if(i=c(i),e)g(t,n,i);else{p(t);var r=o(t,n,t.getCursor("from")),a=function(){var e,c=r.from();!(e=r.findNext())&&(r=o(t,n),!(e=r.findNext())||c&&r.from().line==c.line&&r.from().ch==c.ch)||(t.setSelection(r.from(),r.to()),t.scrollIntoView({from:r.from(),to:r.to()}),l(t,b,"Replace?",[function(){s(e)},a,function(){g(t,n,i)}]))},s=function(t){r.replace("string"==typeof n?i:i.replace(/\$(\d)/g,function(e,n){return t[n]})),a()};a()}}))})}}var v='<span class="CodeMirror-search-label">Search:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',y=' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',x='<span class="CodeMirror-search-label">With:</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',b='<span class="CodeMirror-search-label">Replace?</span> <button>Yes</button> <button>No</button> <button>All</button> <button>Stop</button>';t.commands.find=function(t){p(t),d(t)},t.commands.findPersistent=function(t){p(t),d(t,!1,!0)},t.commands.findPersistentNext=function(t){d(t,!1,!0,!0)},t.commands.findPersistentPrev=function(t){d(t,!0,!0,!0)},t.commands.findNext=d,t.commands.findPrev=function(t){d(t,!0)},t.commands.clearSearch=p,t.commands.replace=m,t.commands.replaceAll=function(t){m(t,!0)}}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define("cm/addon/search/jump-to-line",["../../lib/codemirror","../dialog/dialog"],t):t(CodeMirror)}(function(t){"use strict";function e(t,e,n,i,r){t.openDialog?t.openDialog(e,r,{value:i,selectValueOnOpen:!0}):r(prompt(n,i))}function n(t,e){var n=Number(e);return/^[-+]/.test(e)?t.getCursor().line+n:n-1}t.commands.jumpToLine=function(t){var i=t.getCursor();e(t,'Jump to line: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use line:column or scroll% syntax)</span>',"Jump to line:",i.line+1+":"+i.ch,function(e){if(e){var r;if(r=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(e))t.setCursor(n(t,r[1]),Number(r[2]));else if(r=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(e)){var o=Math.round(t.lineCount()*Number(r[1])/100);/^[-+]/.test(r[1])&&(o=i.line+o+1),t.setCursor(o-1,i.ch)}else(r=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(e))&&t.setCursor(n(t,r[1]),i.ch)}})},t.keyMap.default["Alt-G"]="jumpToLine"}),function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("cm/addon/hover/text-hover",["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";!function(){function e(e,n){function i(e){if(!r.parentNode)return t.off(document,"mousemove",i);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}var r=document.createElement("div");return r.className="CodeMirror-hover-tooltip","string"==typeof n&&(n=document.createTextNode(n)),r.appendChild(n),document.body.appendChild(r),t.on(document,"mousemove",i),i(e),null!=r.style.opacity&&(r.style.opacity=1),r}function n(t){t.parentNode&&t.parentNode.removeChild(t)}function i(t){t.parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600))}function r(n,r,o,a,s){function l(){t.off(o,"mouseout",l),t.off(o,"click",l),o.className=o.className.replace(h,""),c&&(i(c),c=null),s.removeKeyMap(a.keyMap)}var c=e(n,r),u=setInterval(function(){if(c)for(var t=o;;t=t.parentNode){if(t==document.body)return;if(!t){l();break}}if(!c)return clearInterval(u)},400);t.on(o,"mouseout",l),t.on(o,"click",l),a.keyMap={Esc:l},s.addKeyMap(a.keyMap)}function o(t,e){this.options=e,this.timeout=null,e.delay?this.onMouseOver=function(e){s(t,e)}:this.onMouseOver=function(e){l(t,e)},this.keyMap=null}function a(e,n){if(n instanceof Function)return{getTextHover:n};if(n&&!0!==n||(n={}),n.getTextHover||(n.getTextHover=e.getHelper(t.Pos(0,0),"textHover")),!n.getTextHover)throw new Error("Required option 'getTextHover' missing (text-hover addon)");return n}function s(t,e){var n=t.state.textHover,i=n.options.delay;if(clearTimeout(n.timeout),e.srcElement){var r={srcElement:e.srcElement,clientX:e.clientX,clientY:e.clientY};e=r}n.timeout=setTimeout(function(){l(t,e)},i)}function l(t,e){var n=e.target||e.srcElement;if(n){var i=t.state.textHover,o=u(t,e),a=i.options.getTextHover(t,o,e);a&&(n.className+=h,"function"==typeof a?a(r,o,e,n,i,t):r(e,a,n,i,t))}}function c(e,n,i){if(i&&i!=t.Init&&(t.off(e.getWrapperElement(),"mouseover",e.state.textHover.onMouseOver),delete e.state.textHover),n){var r=e.state.textHover=new o(e,a(e,n));t.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}}function u(t,e){for(var n=e.target||e.srcElement,i=n.innerText||n.textContent,r=0;r<d.length;r+=2){var o=t.coordsChar({left:e.clientX+d[r],top:e.clientY+d[r+1]}),a=t.getTokenAt(o);if(a&&a.string===i)return{token:a,pos:o}}}var h=" CodeMirror-hover",d=[0,0,0,5,0,-5,5,0,-5,0];t.defineOption("textHover",!1,c)}()}),define("cm/addon/hover/prolog-hover",["../../lib/codemirror","jquery","laconic"],function(t,e){"use strict";function n(t){return e.el.span({class:"pred-name"},t.text+"/"+t.arity)}function i(t,e,n){s[n]=e}function r(t,e){var n;return s[t.file]?s[t.file]:(n=t.file.lastIndexOf("/"))?t.file.substring(n+1):t.file}function o(t,n,i){return n&&n.file?e.el.div(a(t)+" included from ",e.el.span({class:"file-path"},n.file)):n&&n.line?a(t)+" defined in line "+n.line:"Locally defined "+t}function a(t){return t[0].toUpperCase()+t.slice(1)}var s={},l={goal_built_in:function(t,i){return t?e.el.div(n(t),i.tokenInfo(t)):"Built-in predicate"},goal_global:function(t,i){return t?e.el.div(n(t),i.tokenInfo(t)):"Global predicate"},goal_autoload:function(t,i){return t?e.el.div(n(t)," (autoload from ",r(t,i),"): ",i.tokenInfo(t)):"Autoloaded predicate"},goal_imported:function(t,i){return t?e.el.div(n(t)," (imported from ",r(t,i),"): ",i.tokenInfo(t)):"Imported predicate"},goal_recursion:"Recursive call",goal_dynamic:"Dynamic predicate",goal_undefined:"Undefined predicate",goal_local:function(t,e){return o("predicate",t,e)},goal_constraint:function(t,e){return o("CHR constraint",t,e)},head_unreferenced:"Predicate is not called",unused_import:"Imported predicate is not used",undefined_import:"Imported predicate is not defined",head_constraint:"CHR constraint",file:function(t,n){return t?(i(n,t.text,t.path),e.el.div("File: ",e.el.span({class:"file-path"},t.path))):"File name"},file_no_depends:function(t,n){return t?(i(n,t.text,t.path),e.el.div("File: ",e.el.span({class:"file-path"},t.path),e.el.div({class:"hover-remark"},"does not resolve any dependencies"))):"File name (does not resolve any dependencies)"},error:function(t,n){return t&&t.expected?e.el.div("error: ",e.el.strong(t.expected)," expected"):"error"},singleton:"Variable appearing only once",codes:"List of Unicode code points (integers)",chars:"List of one-character atoms",string:"Packed string (SWI7, use `text` for a list of codes)",qatom:"Quoted atom",uatom:"Uppercase atom due to var_prefix flag",tag:"Tag of a SWI7 dict",ext_quant:"Existential quantification operator",instantiation_error:"No variable allowed here",string_terminal:"Terminal (DCG)",head:null,control:null,fullstop:null,var:null,int:null,float:null,number:null,atom:null,functor:null,comment:null,neck:null,operator:null,sep:null,list_open:null,list_close:null,dict_open:null,dict_close:null};t.registerHelper("textHover","prolog",function(t,n,i){if(n){var r,o=n.token,a=l[o.type];if(void 0===a)return(r=t.getEnrichedToken(o))?r.summary&&"ask"===r.info?e.el.div(r.summary,t.tokenInfo(r)):r.summary?e.el.div(r.summary):e.el.div(o.type):e.el.div(o.type);if("function"==typeof a){var s=a(t.getEnrichedT